OSDN Git Service

* c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-08-22  Jason Merrill  <jason@redhat.com>
2
3         * c-common.h (RETURN_STMT_EXPR): Rename from RETURN_EXPR.
4         * c-common.def: Adjust.
5         * c-dump.c (c_dump_tree): Adjust.
6         * c-semantics.c (genrtl_return_stmt): Adjust.
7         * c-pretty-print.c (pp_c_statement): Adjust.
8         * tree-inline.c (copy_body_r): Adjust.
9
10 2002-08-22  Zack Weinberg  <zack@codesourcery.com>
11
12         * ggc-page.c: Avoid division in ggc_set_mark.
13         (DIV_MULT, DIV_SHIFT, OFFSET_TO_BIT, inverse_table,
14         compute_inverse): New.
15         (ggc_set_mark, ggc_marked_p): Use OFFSET_TO_BIT.
16         (init_ggc): Initialize inverse_table.
17
18 2002-08-22  Tom Tromey  <tromey@redhat.com>
19
20         * doc/install.texi (Configuration): Document --datadir.
21
22 2002-08-22  Alexandre Oliva  <aoliva@redhat.com>
23
24         * Makefile.in ($(BUILD_PREFIX_1)varray.o): Depend on $(GGC_H).
25
26 2002-08-22  Hans-Peter Nilsson  <hp@bitrange.com>
27
28         * gengtype-lex.l (ID): Allow underscore as first character.
29
30 2002-08-21  David Edelsohn  <edelsohn@gnu.org>
31
32         * config/rs6000/rs6000.c (rs6000_xcoff_asm_globalize_label): New
33         function.
34         (rs6000_xcoff_asm_named_section): Rename.
35         * config/rs6000/xcoff.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
36
37 2002-08-21  Tom Tromey  <tromey@redhat.com>
38
39         For PR java/6005 and PR java/7611:
40         * fold-const.c (fold_truthop): Use can_use_bit_fields_p.
41         (fold): Likewise.
42         * langhooks.c (lhd_can_use_bit_fields_p): New function.
43         * langhooks-def.h (lhd_can_use_bit_fields_p): Declare.
44         (LANG_HOOKS_CAN_USE_BIT_FIELDS_P): New define.
45         (LANG_HOOKS_INITIALIZER): Use it.
46         * langhooks.h (struct lang_hooks) [can_use_bit_fields_p]: New
47         field.
48
49 2002-08-21  Stan Shebs  <shebs@apple.com>
50
51         * tree.c (finish_vector_type): Fix a typo in a comment.
52         * Makefile.in: Fix "the the" stutters in comments.
53         * genautomata.c: Ditto.
54         * ifcvt.c: Ditto.
55         * regrename.c: Ditto.
56         * config/alpha/alpha.c: Ditto.
57         * config/alpha/vms-crt0-64.c: Ditto.
58         * config/alpha/vms-crt0.c: Ditto.
59         * config/alpha/vms-psxcrt0-64.c: Ditto.
60         * config/alpha/vms-psxcrt0.c: Ditto.
61         * config/d30v/d30v.h: Ditto.
62         * config/fr30/fr30.h: Ditto.
63         * config/rs6000/rs6000.c: Ditto.
64         * config/stormy16/stormy16.h: Ditto.
65         * doc/md.texi: Ditto.
66
67 2002-08-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
68
69         * cppinit.c (remove_dup_nonsys_dirs): Fix warning and return value.
70
71 2002-08-21  Joseph S. Myers  <jsm@polyomino.org.uk>
72
73         * c-decl.c (grokdeclarator): Make invalid combinations with long,
74         short, signed or unsigned into hard errors.  Fixes PR c/4319.
75         Also make duplicate modifiers such as "short short" into hard
76         errors.
77
78 2002-08-21  Andrew Pinski <pinskia@physics.uc.edu>
79             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
80
81         * doc/tm.texi (TARGET_ASM_GLOBALIZE_LABEL): Move '@end deftypefn'
82         to the actual end.  Add '@end table' and '@table @code'.
83
84 2002-08-20  Geoffrey Keating  <geoffk@redhat.com>
85
86         * doc/tm.texi (Label Output): Add missing '@end deftypefn'.
87
88         * unroll.c (biv_total_increment): Don't try to compute the total
89         increment for FP BIVs.
90
91 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
92
93         * alpha.c (TARGET_ASM_GLOBALIZE_LABEL): Define for unicosmk.
94         * alpha/elf.h (ASM_OUTPUT_EXTERNAL_LIBCALL,
95         ASM_OUTPUT_ALIGNED_BSS): Use target hook.
96         * alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS): Likewise.
97         * alpha/unicosmk.h (ASM_GLOBALIZE_LABEL): Delete.
98         * arm/aof.h (ASM_GLOBALIZE_LABEL): Likewise.
99         (GLOBAL_ASM_OP): Define.
100         * arm.c (aof_globalize_label): New function.
101         (TARGET_ASM_GLOBALIZE_LABEL): Define for AOF.
102         * arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
103         * c4x.c (c4x_globalize_label): New function.
104         (TARGET_ASM_GLOBALIZE_LABEL): Define for c4x.
105         * c4x.h (ASM_GLOBALIZE_LABEL): Delete.
106         (GLOBAL_ASM_OP): Define.
107         * cris/aout.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
108         * darwin-protos.h (darwin_globalize_label): Declare.
109         * darwin.c (darwin_globalize_label): New function.
110         * darwin.h (ASM_DECLARE_CLASS_REFERENCE): Use target hook.
111         (ASM_GLOBALIZE_LABEL): Delete.
112         (GLOBAL_ASM_OP, TARGET_ASM_GLOBALIZE_LABEL): Define.
113         * dsp16xx.c (asm_output_common): Use target hook.
114         * elfos.h (ASM_OUTPUT_EXTERNAL_LIBCALL): Likewise.
115         * frv.h (ASM_GLOBALIZE_LABEL): Delete.
116         (GLOBAL_ASM_OP): Define.
117         * i370.c (i370_globalize_label): New function.
118         (TARGET_ASM_GLOBALIZE_LABEL): Define for i370.
119         * i370.h (ASM_GLOBALIZE_LABEL): Delete.
120         * i386.c (ix86_asm_file_end): Use target hook.
121         * i386/sco5.h (ASM_GLOBALIZE_LABEL): Don't undef.
122         (ASM_OUTPUT_EXTERNAL_LIBCALL): Use target hook.
123         * ia64.c (ia64_asm_output_external): Likewise.
124         * ia64/sysv4.h: Update comment.
125         * m32r.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
126         * mips/elf.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
127         * mips/iris5.h (ASM_OUTPUT_WEAK_ALIAS): Use target hook.
128         * mips/linux.h (ASM_OUTPUT_ALIGNED_BSS): Likewise.
129         * mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Use target hook.
130         * mmix-protos.h (mmix_asm_globalize_label): Delete.
131         * mmix.c (mmix_asm_globalize_label): Likewise.
132         * mmix.h (ASM_GLOBALIZE_LABEL): Likewise.
133         (GLOBAL_ASM_OP): Define.
134         * ns32k.c (ns32k_globalize_label): New function.
135         * ns32k.h (TARGET_ASM_GLOBALIZE_LABEL): Define for ns32k.
136         (ASM_GLOBALIZE_LABEL): Delete.
137         * pa/pa-linux.h (ASM_GLOBALIZE_LABEL): Don't undef.
138         (TARGET_ASM_GLOBALIZE_LABEL): Undefine.
139         * pa.c (pa_globalize_label): New function.
140         * pa.h (ASM_GLOBALIZE_LABEL): Delete.
141         (TARGET_ASM_GLOBALIZE_LABEL): Define for pa.
142         * rs6000/darwin.h (ASM_GLOBALIZE_LABEL): Delete.
143         (GLOBAL_ASM_OP): Define.
144         (TARGET_ASM_GLOBALIZE_LABEL): Undef.
145         * rs6000/sysv4.h (ASM_OUTPUT_ALIGNED_BSS): Use target hook.
146         * rs6000/xcoff.h (ASM_GLOBALIZE_LABEL): Delete.
147         (GLOBAL_ASM_OP): Define.
148         * v850.c (v850_output_aligned_bss): Use target hook.
149         * vax.c (vms_globalize_label): New function.
150         (TARGET_ASM_GLOBALIZE_LABEL): Define for vms.
151         * vax/vms.h (ASM_GLOBALIZE_LABEL): Delete.
152         (GLOBAL_ASM_OP): Define.
153         * defaults.h (ASM_GLOBALIZE_LABEL): Delete.
154         * doc/tm.texi: Update docs.
155         * dwarf2out.c (default_eh_frame_section, output_die_symbol): Use
156         target hook.
157         * final.c (output_alternate_entry_point): Likewise.
158         * hooks.c (hook_FILEptr_constcharptr_void): New function.
159         * hooks.h (hook_FILEptr_constcharptr_void): Declare.
160         * output.h (assemble_global): Delete.
161         (default_globalize_label): Declare.
162         * system.h (ASM_GLOBALIZE_LABEL): Poison.
163         * target-def.h (TARGET_ASM_GLOBALIZE_LABEL): Define.
164         (TARGET_ASM_OUT): Add TARGET_ASM_GLOBALIZE_LABEL.
165         * target.h (gcc_target): Add globalize_label member.
166         * varasm.c (asm_output_bss, asm_output_aligned_bss,
167         globalize_decl): Use target hook.
168         (assemble_global): Delete.
169         (default_globalize_label): New function.
170
171 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
172
173         * dsp16xx.h (dsp16xx_umulhi3_libcall): Delete.
174
175 2002-08-20  Devang Patel  <dpatel@apple.com>
176         * tree.c (get_qualified_type): Add TYPE_CONTEXT check.
177
178 2002-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
179
180         * arc.c (output_shift): Use stdio instead of asm_fprintf.
181         * arm.c (thumb_output_function_prologue): Likewise.
182         * avr.c (print_operand): Likewise.
183         * c4x.c (c4x_print_operand): Likewise.
184         * c4x.h (ASM_OUTPUT_INTERNAL_LABEL, TRAMPOLINE_TEMPLATE,
185         ASM_OUTPUT_REG_PUSH, ASM_OUTPUT_REG_POP): Likewise.
186         * cris.c (cris_target_asm_function_prologue,
187         cris_asm_output_mi_thunk): Likewise.
188         * h8300.c (print_operand): Likewise.
189         * h8300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
190         * ip2k.c (print_operand): Likewise.  Fix format specifier.
191         * m68hc11.c (asm_print_register, print_operand,
192         print_operand_address): Use stdio instead of asm_fprintf.
193         (print_operand_address): Fix format specifier.
194         * m68hc11.h (FUNCTION_PROFILER, ASM_OUTPUT_ADDR_DIFF_ELT,
195         ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ALIGN): Use stdio instead of
196         asm_fprintf.
197         * m68k/amix.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
198         * m68k/atari.h (ASM_OUTPUT_INTERNAL_LABEL): Likewise.
199         * m68k.c (m68k_output_function_prologue,
200         m68k_output_function_epilogue, print_operand): Likewise.
201         * mmix.c (mmix_asm_output_mi_thunk, mmix_asm_weaken_label):
202         Likewise.  Fix format specifier.
203         * mn10200.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
204         * mn10300.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
205         * v850.h (ASM_OUTPUT_ADDR_VEC_ELT): Likewise.
206
207 2002-08-15  Eric Christopher  <echristo@redhat.com>
208             Jeff Knaggs  <jknaggs@redhat.com>
209
210         * config.gcc (mipsisa64sr71k-elf): New target.
211         * config/mips/sr71k.md: New file.
212         * config/mips/mips.md: Use it.
213         (rot*): Add sr71k specifics.
214         * config/mips/t-sr71k: New file.
215         * config/mips/mips.h (sr71k): New cpu.
216         (TARGET_SR71K): Use it.
217         (TUNE_SR71K): Ditto.
218         (GENERATE_BRANCHLIKELY): Ditto.
219         (ISA_HAS_MULHI, ISA_HAS_MULS, ISA_HAS_MSAC, ISA_HAS_MACC,
220         ISA_HAS_ROTR_SIISA_HAS_ROTR_DI): Ditto.
221         * config/mips/mips.c (sr71k): New cpu.
222         (mips_use_dfa_pipeline_interface): Use.
223
224 2002-08-15  Eric Christopher  <echristo@redhat.com>
225             Richard Sandiford <rsandifo@redhat.com>
226             Aldy Hernandez  <aldyh@redhat.com>
227             Graham Stott    <grahams@redhat.com>
228             Michael Meissner  <meissner@redhat.com>
229             Gavin Romig-Koch  <gavin@redhat.com>
230             Ken Raeburn  <raeburn@cygnus.com>
231             Alexandre Oliva <aoliva@redhat.com>
232
233         * config.gcc (mips64vr-elf): New target.
234         * config/mips/5400.md: New file.
235         * config/mips/5500.md: Ditto.
236         * config/mips/mips.md: Use them.
237         (frsqrt): New.
238         * config/mips/mips.c (vr4111, vr4121, vr4320, vr5400, vr5500): New
239         cpus.
240         (mips_issue_rate): Use them.
241         (mips_use_dfa_pipeline_interface): New function. Use for 5400 and 5500.
242         (TARGET_SCHEDUSE_DFA_PIPELINE_INTERFACE): Define. Use above.
243         * config/mips/mips.h (vr4111, vr4121, vr4320, vr5400, vr5500): New
244         cpus.
245         (TARGET_MIPSx): Use them.
246         (TUNE_MIPSx): Ditto.
247         (GETNATE_MULT3_SI): Ditto.
248         (ISA_HAS_BRANCHLIKELY): Ditto.
249         (ISA_HAS_CONDMOVE): Ditto.
250         (ISA_HAS_NMADD_NMSUB): Ditto.
251         (ISA_HAS_MULHI): New. Ditto.
252         (ISA_HAS_MULS): Ditto.
253         (ISA_HAS_MSAC): Ditto.
254         (ISA_HAS_MACC): Ditto.
255         (ISA_HAS_ROTR_SI): Ditto.
256         (ISA_HAS_ROTR_DI): Ditto.
257         (RTX_COSTS): Use.
258
259 2002-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
260
261         * cppinit.c (remove_dup_dir): Add head_ptr argument to handle removal
262         at head.
263         (remove_dup_nonsys_dirs): New function.
264         (remove_dup_dirs): Change argument head to head_ptr.  Remove warnings.
265         (merge_include_chains): Remove non-system include directories from
266         quote and bracket include chains when they duplicate equivalent system
267         directories.
268         * doc/cpp.texi (-I): Update.
269         * doc/cppopts.texi (-I): Update.
270         * doc/install.texi (--with-local-prefix): Further document usage of
271         this option.
272         * doc/invoke.texi (-I): Update.
273
274 2002-08-20  Richard Henderson  <rth@redhat.com>
275
276         * expr.c (TARGET_MEM_FUNCTIONS): Transform to boolean.
277         (emit_block_move): Split out subroutines.
278         (emit_block_move_via_movstr): New.
279         (emit_block_move_via_libcall): New.  Emit bcopy via normal call also.
280         (emit_block_move_libcall_fn): New.  Construct function prototype for
281         bcopy as well.
282         (clear_storage): Split out subroutines.
283         (clear_storage_via_clrstr): New.
284         (clear_storage_via_libcall): New. Emit bzero as a normal call also.
285         (clear_storage_libcall_fn): New.  Construct function prototype for
286         bzero as well.
287         (emit_push_insn): Use emit_block_move.
288         (expand_assignment): Booleanize TARGET_MEM_FUNCTIONS.
289         (store_constructor): Likewise.
290
291 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
292
293         * objc/objc-act.c (building_objc_message_expr): Rename to
294         current_objc_message_selector.
295
296 2002-08-19  Ziemowit Laski  <zlaski@apple.com>
297
298         * objc/objc-act.c (build_ivar_chain): Remove.
299         (objc_copy_list): Likewise.
300         (get_class_ivars): Inline call to removed build_ivar_chain
301         function.  Save off a clean copy of ivars in the CLASS_OWN_IVARS
302         slot; use that slot (rather than CLASS_IVARS) when accessing
303         ivars for base classes.  Call copy_list and chainon instead of
304         objc_copy_list.
305         (build_private_template): Call get_class_ivars instead of
306         build_ivar_chain.
307         (start_class): Allocate room for the CLASS_OWN_IVARS slot.
308         (continue_class): Call get_class_ivars instead of
309         build_ivar_chain.
310         (encode_field_decl): Check for DECL_BIT_FIELD_TYPE instead
311         of DECL_BIT_FIELD (which may have been cleared).
312         * objc/objc-act.h (CLASS_OWN_IVARS): New accessor macro.
313
314 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
315
316         * genautomata.c (output_translate_vect, output_state_ainsn_table,
317         output_min_issue_delay_table): Mark variable with ATTRIBUTE_UNUSED
318         in output file.
319         (output_internal_min_issue_delay_func): Initialize variable in
320         output file.
321
322 2002-08-19  Alexandre Oliva  <aoliva@redhat.com>
323
324         * Makefile.in (GCC_FOR_TARGET): Prepend STAGE_CC_WRAPPER.
325         (stage2_build, stage3_build, stage4_build): Likewise, to CC.
326
327 2002-08-19  Geoffrey Keating  <geoffk@redhat.com>
328             Steve Ellcey  <sje@cup.hp.com>
329
330         * machmode.h (SCALAR_INT_MODE_P): New macro to test for
331         scaler integer mode (MODE_INT or MODE_PARTIAL_INT).
332         * explow.c (trunc_int_for_mode): Abort when the mode is not
333         a scaler integer mode.
334         * combine.c (expand_compound_operation): Don't expand Vector
335         or Complex modes into shifts.
336         (expand_field_assignment): Don't do bitwise arithmatic and
337         shifts on Vector or Complex modes.
338         (simplify_comparison): Don't call trunc_int_for_mode
339         for VOIDmode.
340         * recog.c (general_operand): Likewise.
341         (immediate_operand): Likewise.
342         (nonmemory_operand): Likewise.
343
344 2002-08-19  David Edelsohn  <edelsohn@gnu.org>
345
346         * config/rs6000/rs6000.c (rs6000_emit_set_const): Inline
347         multi-instruction SImode constant.  Add REG_EQUAL note.
348         * config/rs6000/rs6000.md (movsi splitter): Use
349         rs6000_emit_set_const.
350
351 2002-08-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
352
353         * tree-inline.c (initialize_inlined_parameters): Wrap variable in
354         the macro test controlling its use.
355
356 2002-08-18  H.J. Lu  (hjl@gnu.org)
357
358         * config.gcc (*-*-linux*): Set extra_parts="crtbegin.o
359         crtbeginS.o crtbeginT.o crtend.o crtendS.o", gas=yes and
360         gnu_ld=yes.
361         (alpha*-*-linux*, cris-*-linux*, i370-*-linux*,
362         i[34567]86-*-linux*, x86_64-*-linux*, mips*-*-linux*,
363         s390-*-linux*, s390x-*-linux*, sparc-*-linux*, sparc64-*-linux*,
364         xtensa-*-linux*): Remove setting extra_parts, gas, and gnu_ld
365         here.
366         (cris-*-linux*): Remove setting thread_file here.
367
368 2002-08-18  Neil Booth  <neil@daikokuya.co.uk>
369
370         PR preprocessor/7602
371         * cppinit.c (path_include): Treat the system environment
372         variables as being cxx_aware.
373
374 2002-08-17  Joseph S. Myers  <jsm@polyomino.org.uk>
375
376         * c-decl.c (flexible_array_type_p): New function.
377         (grokdeclarator, finish_struct): Use it.
378         * doc/extend.texi: Document constraints on use of structures with
379         flexible array members.
380
381 2002-08-17  Richard Sandiford  <rsandifo@redhat.com>
382
383         * config/mips/t-coff, config/mips/t-elf, config/mips/t-isa3264,
384         config/mips/t-r3900 (MULTILIB_MATCHES): Define.
385         * config/mips/mips.h (ASM_SPEC): Use %(endian_spec).
386
387 2002-08-16  Stan Shebs  <shebs@apple.com>
388
389         * c-common.c (cb_register_builds): Define __NEXT_RUNTIME__
390         for ObjC with -fnext-runtime.
391         * doc/cpp.texi: Document it.
392
393 2002-08-16  Janis Johnson  <janis187@us.ibm.com>
394
395         * doc/install.texi (Final installation): Replace links to individual
396         build status pages with a link to a common page that lists them all.
397
398 2002-08-16  Sylvain Pion <pion@cs.nyu.edu>
399
400         * doc/invoke.texi: Fix typo.
401
402 2002-08-16  David Edelsohn  <edelsohn@gnu.org>
403
404         * doc/install.texi (*-ibm-aix*): Explain AIX shared object versioning.
405
406 2002-08-16  Andrew Haley  <aph@redhat.com>
407
408         * tree-inline.c: Add includes for Java inliner.
409         (remap_decl): Don't handle anonymous types for Java.
410         (remap_block): Add handling for Java trees.
411         (copy_scope_stmt): Conditionalize for non-Java use only.
412         (copy_body_r): Handle Java trees.  Add handling for
413         LABELED_BLOCK_EXPR, EXIT_BLOCK_EXPR, Java blocks.
414         (initialize_inlined_parameters):  Handle Java trees.
415         (declare_return_variable): Likewise.
416         (expand_call_inline): Handle Java trees.
417         (walk_tree): Likewise.
418         (copy_tree_r): Don't handle SCOPE_STMTs for Java.
419         (add_stmt_to_compound): New function.
420
421 2002-08-15  Richard Henderson  <rth@redhat.com>
422
423         * Makefile.in (LOOSE_WARN): Remove -fno-common.
424         (NOCOMMON_FLAG): New substitution point.
425         (GCC_WARN_CFLAGS): Include it.
426         * configure.in (ac_checking): Set nocommon_flag.
427         (nocommon_flag): New substitution point.
428
429 2002-08-15  Alexandre Oliva  <aoliva@redhat.com>
430
431         * c-tree.h (skip_evaluation): Move declaration...
432         * c-common.h: ... here.
433         * c-typeck.c (build_external_ref): Don't assemble_external nor
434         mark a tree as used if skip_evaluation is set.
435         * c-parse.in (typeof): New non-terminal to set skip_evaluation
436         around TYPEOF.
437         (typespec_nonreserved_nonattr): Use it.
438
439 2002-08-15  Douglas B Rupp  <rupp@gnat.com>
440
441         * dbxout.c (dbx_debug_hooks): Update end_prologue, end_epilogue.
442         (xcoff_debug_hooks): Update end_prologue.
443         * debug.c (do_nothing_debug_hooks): Update end_prologue, end_epilogue.
444         * debug.h (end_prologue): Add file arg.
445         (end_epilogue): Add line and file args.
446         (dwarf2out_end_epilogue): Add line and file args.
447         (vmsdbgout_after_prologue): Remove.
448         * dwarf2out.c (dwarf2out_end_epilogue): Add line and file args.
449         (dwarf2_debug_hooks): Update end_prologue.
450         * dwarfout.c (dwarfout_end_epilogue): Add line and file args.
451         (dwarfout_end_prologue): Add file arg.
452         * final.c (vmsdbgout_after_prologue): Remove
453         (final_end_function): Update end_epilogue call.
454         (final_scan_insn): Update end_prologue call.
455         * sdbout.c (sdbout_end_epilogue): Add line and file args.
456         (sdbout_end_prologue): Add file arg.
457         (sdb_debug_hooks): Update end_prologue.
458         (sdb_begin_prologue): Update sdbout_end_prologue call.
459         * vmsdbgout.c (vmsdbg_debug_hooks): Add vmsdbgout_end_prologue,
460         vmsdbgout_end_function.
461         (vmsdbgout_end_prologue): New function renamed from
462         vmsdbgout_after_prologue. Call vmsdbgout_source_line.
463         (vmsdbgout_end_function): New function.
464         (vmsdbgout_end_epilogue): Add line and file args. Call
465         vmsdbgout_source_line.
466         (write_pclines): Write only valid line numbers.
467         (write_srccorr): Don't write source correlation records if 0 lines.
468         * xcoffout.c (xcoffout_end_epilogue): Add line and file args.
469
470 2002-08-15  Steve Ellcey  <sje@cup.hp.com>
471
472         * gcc/unwind.h (_Unwind_Ptr): Make 64 bits on IA64 HP-UX.
473         (_Unwind_Internal_Ptr): 32 bit version for use in
474         read_encoded_value_with_base.
475         * gcc/unwind-pe.h (read_encoded_value_with_base): Use
476         _Unwind_Internal_Ptr instead of _Unwind_Ptr in order to get the
477         right size.
478
479 2002-08-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
480
481         * loop.c (scan_loop, move_movables, count_one_set): Cast to avoid
482         signed/unsigned warnings.
483
484         * regclass.c (init_reg_sets_1, choose_hard_reg_mode,
485         record_reg_classes): Likewise.
486
487         * reload.c (reload_inner_reg_of_subreg, push_reload,
488         find_reloads_address_1): Likewise.
489
490 2002-08-15  David Edelsohn  <edelsohn@gnu.org>
491
492         * rs6000.c (output_mi_thunk): Return to function section on
493         TARGET_ELF.
494
495         * rs6000-c.c (rs6000_cpu_cpp_builtins): Define __PPC405__ if PPC405.
496
497 2002-08-15  Ulrich Weigand  <uweigand@de.ibm.com>
498
499         * config/s390/s390.c (legitimize_address): Optimize loading
500         of large displacements.
501
502 2002-08-14  Douglas B Rupp  <rupp@gnat.com>
503
504         * config/alpha/alpha-protos.h: Update.
505
506         * config/alpha/alpha.c: (LINKAGE_SYMBOL_REF_P): New macro.
507         (alpha_legitimate_address_p): Test LINKAGE_SYMBOL_REF_P.
508         (alpha_linkage_symbol_p): New static function.
509         (print_operand_address): Print linkage operand.
510
511         (alpha_funcs_num, alpha_funcs_tree, alpha_links_tree): New static
512         variables.
513         (reloc_kind): New enum.
514         (struct alpha_funcs): New struct.
515         (struct alpha_links): Add reloc_kind field. Rename links_kind field.
516
517         (alpha_need_linkage): Rewrite.
518         (alpha_use_linkage): New global function.
519         (alpha_write_linkage): Rewrite and make static.
520         (alpha_write_one_linkage): Rewrite
521
522         (alpha_start_function): Remove procedure descriptor output.
523         (alpha_end_function): Write linkages at end of each function.
524
525         * config/alpha/alpha.md (call_vms, call_value_vms): Rewrite.
526         (call_vms_1, call_value_vms_1): Rewrite.
527
528         * config/alpha/vms.h (ASM_FILE_END): Remove.
529
530 2002-08-14  Richard Henderson  <rth@redhat.com>
531
532         * ggc-page.c (RTL_SIZE): New.
533         (extra_order_size_table): Add specializations for 2 and 10 rtl slots.
534         * rtl.def (BARRIER, NOTE): Pad to 9 slots.
535
536 2002-08-14  Richard Henderson  <rth@redhat.com>
537
538         * calls.c: Include target.h.
539         * Makefile.in (calls.o): Update.
540
541         * config/alpha/alpha.c (alpha_end_function): Use targetm.binds_local_p.
542         * config/alpha/alpha.h (FUNCTION_OK_FOR_SIBCALL): Likewise.
543
544 2002-08-14  Richard Henderson  <rth@redhat.com>
545
546         * Makefile.in (LOOSE_WARN): Add -fno-common.
547         * c-common.h (constant_string_class_name): Add missing extern.
548
549 2002-08-15  Neil Booth  <neil@daikokuya.co.uk>
550
551         PR preprocessor/7358
552         * c-opts.c (check_deps_environment_vars): Ignore main file
553         for SUNPRO_DEPENDENCIES.
554         * cppfiles.c (stack_include_file): Ignore main file if
555         appropriate.
556         * cpplib.h (struct cpp_options): New member in deps.
557         * doc/cppenv.texi: Update.
558
559 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
560
561         PR preprocessor/7526
562         * cpplib.c (run_directive): Kludge so _Pragma dependency works.
563
564 2002-08-14  Nathan Sidwell  <nathan@codesourcery.com>
565
566         * doc/invoke.texi (-a): Remove documentation.
567         (-fprofile-arcs): Remove reference to -a, -ax options.
568         * doc/gcov.texi (Gcov Data Files): Data might be merged.
569
570 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
571
572         Fix PR/7566
573         * c-semantics.c (genrtl_case_label): Don't (mis)use
574         warning_with_decl.
575
576 2002-08-14  Dale Johannesen  <dalej@apple.com>
577
578         * explow.c (emit_stack_restore):  Emit memory clobbers
579         preceding the stack pop, to prevent the scheduler from
580         moving refs to variable arrays below this pop.
581         * reload1.c (reload):  Preserve these clobbers for sched2.
582         * doc/rtl.texi:  Document clobber (mem:BLK (scratch)).
583
584 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
585
586         * c-opts.c (c_common_post_options): Correct test.
587
588 2002-08-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
589
590         * m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Fix incorrect argument
591         order in call to fprintf.
592
593 2002-08-14  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
594
595         * config/sparc/sol2.h (SUBTARGET_EXTRA_SPECS): Define.
596
597 2002-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
598
599         * reload.c (find_reloads): Handle constraint letters marked by
600         EXTRA_ADDRESS_CONSTRAINT and EXTRA_MEMORY_CONSTRAINT.
601         (alternative_allows_memconst): Likewise.
602         * reload1.c (maybe_fix_stack_asms): Likewise.
603         * recog.c (asm_operand_ok, preprocess_constraints,
604         constrain_operands): Likewise.
605         * regclass.c (record_operand_costs, record_reg_classes): Likewise.
606         * local-alloc.c (block_alloc, requires_inout): Likewise.
607         * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
608
609         * defaults.h (EXTRA_MEMORY_CONSTRAINT): Provide a default.
610         (EXTRA_ADDRESS_CONSTRAINT): Likewise.
611         * doc/tm.texi: Document these two new target macros.
612
613         * config/s390/s390.c (s390_expand_plus_operand): Accept already
614         valid operands.
615         (q_constraint): New function.
616         config/s390/s390-protos.h (q_constraint): Declare it.
617         config/s390/s390.h (EXTRA_CONSTRAINT): Use it.
618         (EXTRA_MEMORY_CONSTRAINT): New macro.
619
620         * config/s390/s390.md: Throughout the machine description,
621         replace all instances of the constraint combinations 'Qo'
622         or 'oQ' with simply 'Q'.
623
624 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
625
626         * config/m68hc11/m68hc11.h (LINK_SPEC): Support -mrelax.
627         * config/m68hc11/t-m68hc11-gas (LIBGCC2_DEBUG_CFLAGS): Can use -g now.
628         (LIBGCC2_CFLAGS): Compile with -mrelax.
629
630 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
631
632         * doc/invoke.texi: Document -minmax for 68HC12.
633
634         * config/m68hc11/m68hc11.md ("umaxqi3"): Use TARGET_MIN_MAX.
635         ("uminqi3"): Likewise.
636         ("uminhi3", "umaxhi3"): Likewise.
637
638         * config/m68hc11/m68hc11.h (MASK_MIN_MAX): Define.
639         (TARGET_MIN_MAX): Define.
640         (TARGET_SWITCHES): New option -minmax/-mnominmax.
641
642 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
643
644         * config/m68hc11/t-m68hc11-gas (LIB1ASMFUNCS): Build __far_trampoline.
645         (MULTILIB_OPTIONS): Must also generate for -mlong-calls.
646
647         * config/m68hc11/larith.asm: Put a mode for ELF ABI flags.
648         (ret, declare, farsym): New gas macros.
649         (__premain, exit, abort, _cleanup, memcpy, memset, ___adddi3,
650         ___subdi3, ___notdi2, __mulhi32, __mulsi3): Use them to use 'rtc'
651         and declare the symbol far when compiled with -mlong-calls.
652         (__far_trampoline): New for 68HC12 trampoline code to invoke a
653         far handler using jsr/bsr.
654
655         * config/m68hc11/m68hc11-crt0.S: Put a mode for ELF ABI flags.
656         (jsr): New macro to transform a 'jsr' into a 'call'.
657
658 2002-08-14  Stephane Carrez  <stcarrez@nerim.fr>
659
660         * doc/invoke.texi: Document -mlong-calls for 68HC12.
661
662         * config/m68hc11/m68hc11.h (CPP_SPEC): Pass -D__USE_RTC__ when
663         -mlong-calls is specified.
664         (ASM_DECLARE_FUNCTION_NAME): Define to generate .far and .interrupt
665         assembler directives.
666         (TARGET_LONG_CALL, MASK_LONG_CALL): Declare.
667         (TARGET_SWITCHES): Add -mlong-calls options.
668         (current_function_far): Declare.
669
670         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset): Take
671         into account the page register saved on the stack.
672         (m68hc11_override_options): Take into account -mlong-calls option.
673         (m68hc11_asm_file_start): Put a mode for the ELF flags ABI.
674
675         * config/m68hc11/m68hc11.md ("*return_32bit"): Return rtc
676         if the function is going to be in 68HC12 banked memory (-mlong-calls).
677         ("*return_16bit"): Likewise.
678         ("*return_void"): Likewise.
679         ("call", "call_value"): Use call for a far function call.
680
681 2002-08-14  Neil Booth  <neil@daikokuya.co.uk>
682
683         * toplev.c (parse_options_and_default_flags): Don't call
684         post_options here.
685         (general_init): Initialize GC, pools and tree hash here,
686         instead of lang_independent_init.
687         (lang_independent_init): Rename backend_init.
688         (do_compile): Call post_options hook; exit early if there
689         have been errors after switch processing.
690         (toplev_main): Update.
691
692 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
693
694         * c-pretty-print.h: Guard against multiple inclusion.
695         Robustify macros.
696         (pp_c_attributes): Declare.
697         * c-pretty-print.c (pp_c_attributes): New function.
698
699 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
700
701         * m68k.c (m68k_output_function_prologue,
702         m68k_output_function_epilogue): Delete versions for DPX2/MOTOROLA
703         and NEWS/MOTOROLA.
704         * genattrtab.c: Remove dpx2 comment.
705         * libgcc2.c (__enable_execute_stack): Delete versions for
706         NeXT/__MACH__, __convex__, __sysV88__, __pyr__ and
707         sony_news/SYSTYPE_BSD.
708         * longlong.h: Delete code for __a29k__, _AM29K, __clipper__,
709         __gmicro__, __i860__, __NeXT__ and __pyr__.
710         * rtl.h: Remove convex comment.
711         * varasm.c: Likewise.
712
713 2002-08-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
714
715         * c-opts.c (lang_flags): Const-ify.
716         * ra-build.c (undef_table): Likewise.
717         * ra.c (eliminables): Likewise.
718
719 2002-08-14  Gabriel Dos Reis  <gdr@nerim.net>
720
721         * tree.h: Guard against multiple inclusion.
722
723 2002-08-14  Hans-Peter Nilsson  <hp@bitrange.com>
724
725         * reload1.c (reload_cse_simplify): Before checking
726         REG_FUNCTION_VALUE_P, check REG_P.
727
728 2002-08-13  Geoffrey Keating  <geoffk@redhat.com>
729
730         * Makefile.in (attribs.o): Remove $(OBSTACK_H) dependency.
731
732 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
733
734         * c-opts.c (c_common_init_options): Extra braces needed.
735
736 Tue Aug 13 17:40:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
737
738         * sh.c (sh_init_builtins): Add PARAMS to declaration.
739         (sh_media_init_builtins, sh_expand_builtin): Likewise.
740         (sh_expand_unop_v2sf): Use PARAMS for variable declaration.
741         (sh_expand_binop_v2sf): Likewise.
742         * sh-protos.h (sh_expand_unop_v2sf): Add PARAMS to declaration.
743         (sh_expand_binop_v2sf, sh_cfun_interrupt_handler_p): Likewise.
744         (sh_initialize_trampoline): Likewise.
745
746 2002-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
747
748         * s390-modes.def [CCL1, CCL2, CCT1, CCT2, CCT3, CCUR, CCSR]: Declare
749         new condition code modes.
750         s390.c (s390_match_ccmode_set): Handle those new CC modes.
751         (s390_select_ccmode): Likewise.
752         (s390_branch_condition_mask): Likewise.
753
754         * s390-protos.h (s390_tm_ccmode): Declare.
755         s390.c (s390_tm_ccmode): New function.
756         (s390_match_ccmode): Allow VOIDmode as REQ_MODE.
757
758         * s390.md ("*cmpdi_tm2"): Rename to "*tmdi_ext".
759         ("*cmpsi_tm2"): Rename to "*tmsi_ext".
760         ("*cmpqi_tm2"): Rename to "*tmqi_ext".
761
762         ("*cmpdi_tm_reg", "*cmpdi_tm_mem", "*cmpsi_tm_reg", "*cmpsi_tm_mem",
763         "*cmphi_tm_sub","*cmphi_cct_0",  "*cmpqi_tm", "*cmpqi_tm_sub",
764         "*cmpqi_cct_0", "*tm_0"): Remove, replace by ...
765         ("*tmdi_reg", "*tmsi_reg", "*tmdi_mem", "*tmsi_mem", "*tmhi_mem",
766         "*tmqi_mem", "*tmhi_full", "*tmqi_full"): ... these new patterns.
767
768         ("*ltgr", "*cmpdi_ccs_0_64", "*cmpdi_ccs_0_31", "*ltr", "*icm15",
769         "*icm15_cconly", "*cmpsi_ccs_0", "*icm3", "*cmphi_ccs_0", "*icm1",
770         "*cmpqi_ccs_0"): Remove, replace by ...
771         ("*tstdi_sign", "*tstdi", "*tstdi_cconly", "*tstdi_cconly_31",
772         "*tstsi", "*tstsi_cconly", "*tstsi_cconly2", "*tsthi", "*tsthi_cconly",
773         "*tstqi", "*tstqi_cconly"): ... these new patterns.
774
775         ("*cmpsidi_ccs"): Remove, replace by ...
776         ("*cmpsi_ccs_sign"): ... this new pattern.
777         ("*cmpdi_ccs_sign", "*cmpdi_ccu_zero"): New patterns.
778
779         ("*cmpqi_ccu_0", "*cmpqi_ccu_immed"): Remove, replace by ...
780         ("*cli"): ... this new pattern.
781
782         ("*adddi3_sign", "*adddi3_zero_cc", "*adddi3_zero_cconly",
783         "*adddi3_zero", "*adddi3_cc", "*adddi3_cconly", "*adddi3_cconly2"):
784         New patterns.
785         ("adddi3_64"): Rename to "*adddi3_64".
786         ("adddi3_31"): Replace by insn and splitter "*adddi3_31".
787         ("adddi3"): Adapt expander.
788
789         ("*addsi3_cc"): Allow "general_operand" for operand 2.
790         ("*addsi3_carry1_cc", "*addsi3_carry1_cconly",
791         "*addsi3_carry2_cc", "*addsi3_carry2_cconly"): New patterns.
792
793         ("addhi3", "addqi3"): Remove, replace by ...
794         ("*addsi3_sign", "*addsi3_sub"): ... these new patterns.
795
796         ("*subdi3_sign", "*subdi3_zero_cc", "*subdi3_zero_cconly",
797         "*subdi3_zero", "*subdi3_cc", "*subdi3_cconly"): New patterns.
798         ("subdi3"): Replace by insn and splitter "*subdi3_31".
799         ("subdi3"): New expander.
800
801         ("*subsi3_borrow_cc", "*subsi3_borrow_cconly"): New patterns.
802
803         ("subhi3", "subqi3"): Remove, replace by ...
804         ("*subsi3_sign", "*subsi3_sub"): ... these new patterns.
805
806         ("*muldi3_sign"): New pattern.
807         ("muldi3"): Do not clobber CC.
808         ("mulsi3"): Likewise.
809         ("mulsi_6432"): Likewise.
810
811 2002-08-13  Denis Chertykov  <denisc@overta.ru>
812
813         * config/avr/avr.md: Call CC_STATUS_INIT in all peepnoles
814         which can change CC0.
815
816 Tue Aug 13 14:49:20 2002  J"orn Rennecke <joern.rennecke@superh.com>
817
818         * gcse.c (adjust_libcall_notes): New function.
819         (do_local_cprop): Use it.  Add fourth parameter.  Changed caller.
820
821 2002-08-13  Nathan Sidwell  <nathan@codesourcery.com>
822
823         * libgcc2.c (L_bb): Remove unneeded #includes.
824         (__global_counters, __gthreads_active): Remove unused globals.
825         (__bb_exit_func): Merge counts into files rather than appending.
826         * Makefile.in (INTERNAL_CFLAGS): Move COVERAGE_FLAGS from here ...
827         (ALL_CFLAGS): ... to here.
828
829 2002-08-13  Denis Chertykov  <denisc@overta.ru>
830
831         * config/ip2k/ip2k.c (commands_in_file): Variable removed.
832         (function_epilogue): Don't calculate function size.
833         (ip2k_set_compare): Don't use lookup_const_double.
834         (asm_file_start): Initialization of commands_in_file removed.
835         (asm_file_end): Output of commands_in_file removed.
836
837         * config/ip2k/ip2k.c (CPP_PREDEFINES): Remove definition of
838         __INT_MAX__.
839
840 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
841
842         * c-opts.c (c_common_init_options): Check option array is
843         sorted if checking enabled.
844
845 2002-08-13  Gabriel Dos Reis  <gdr@nerim.net>
846
847         * c-pretty-print.c: #include "c-tree.h".
848         (pp_c_simple_type_specifier): Tweak.
849         (pp_c_storage_class_specifier): New.
850         (pp_c_function_specifier): Likewise.
851         (pp_c_declaration_specifiers): Likewise.
852         (pp_c_init_declarator): Likewise.
853         (pp_c_declaration): Likewise.
854         (pp_c_direct_declarator): Stub.
855         (pp_c_declarator): Likewise.
856         (pp_c_parameter_declaration): Likewise.
857
858 2002-08-13  Neil Booth  <neil@daikokuya.co.uk>
859
860         * c-opts.c (deps_seen, deps_file, deferred_count, deferred_size,
861         handle_deferred_opts, sanitize_cpp_opts, defer_opt,
862         struct deferred_opt): New.
863         (COMMAND_LINE_OPTIONS): Add -M*.
864         (missing_arg): Update.
865         (c_common_decode_option): Handle -M*.
866         (c_common_post_options): Handle -M*.  Use sanitize_cpp_opts;
867         don't call cpp_post_options.
868         (c_common_finish, check_deps_environment_vars): Update.
869         * cppfiles.c (stack_include_file, handle_missing_header): Update.
870         * cpphash.h (CPP_PRINT_DEPS): Remove.
871         * cppinit.c: Don't include version.h.
872         (cpp_create_reader): Don't call deps_init.  Initialize
873         warn_long_long.
874         (cpp_read_main_file): Init deps if necessary.
875         (cpp_destroy): Conditionally free deps.
876         (cpp_finish): Update.
877         (no_tgt): Remove.
878         (COMMAND_LINE_OPTIONS, cpp_handle_option): Remove -M*.
879         (cpp_post_options): Rename post_options.
880         * cpplib.h (struct cpp_options): Remove some dependency options;
881         move others to a new structure.
882         (cpp_post_options): Remove.
883         (cpp_finish): Comment.
884         * fix-header.c (read_scan_file): Don't call cpp_post_options.
885
886 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
887
888         * config/mmix/mmix.md (define_constants): Add MMIX_rR_REGNUM.
889         ("divdi3", "*divdi3_nonknuth", "moddi3", "*moddi3_nonknuth"): Mark
890         MMIX_rR_REGNUM as clobbered.
891         * config/mmix/mmix.h (MMIX_REMAINDER_REGNUM): Use MMIX_rR_REGNUM.
892
893 2002-08-12  Gabriel Dos Reis  <gdr@nerim.net>
894
895         * diagnostic.h (output_formatted_scalar): Rename from
896         output_formatted_integer.
897         * diagnostic.def: Add DK_DEBUG.
898         * diagnostic.c (output_decimal): Adjust.
899         (output_long_decimal): Likewise.
900         (output_unsigned_decimal): Likewise.
901         (output_octal): Likewise.
902         (output_long_octal): Likewise.
903         (output_hexadecimal): Likewise.
904         (output_long_hexadecimal): Likewise.
905         * c-pretty-print.c (pp_c_type_specifier): New function.
906         (pp_c_specifier_qualifier_list): Likewise.
907         (pp_c_abstract_declarator): Likewise.
908         (pp_c_char): Replace pp_format_integer with pp_format_scalar.
909
910 2002-08-12  David Edelsohn  <edelsohn@gnu.org>
911
912         * doc/trouble.texi (Disappointments): Add static constructor and
913         destructor dependency information for AIX.
914
915 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
916
917         * cpphash.h (struct printer): New from cppmain.c.
918         (cpp_reader): New member.
919         * cppmain.c (struct printer): Move to cpphash.h.
920         (options, print): Remove.
921         (account_for_newlines, print_line, maybe_print_line,
922         cpp_preprocess_file, setup_callbacks, scan_translation_unit,
923         scan_translation_unit_trad, cb_line_change, cb_ident,
924         cb_define, cb_undef, cb_include, cb_file_change, dump_macro,
925         cb_def_pragma): Make reentrant.
926
927 2002-08-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
928
929         * real.c (ieee_64): Always define.
930         (ieee_113): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
931         (dec_h): Not used yet, hide it.
932         (emdnorm): Mark parameter in ATTRIBUTE_UNUSED.  Guard label with
933         macro controlling use.
934         (TFbignan, TFlittlenan): Guard with INTEL_EXTENDED_IEEE_FORMAT == 0.
935
936 Mon Aug 12 12:48:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
937
938         * i386.md (tablejump): Sign extend the operand.
939         * i386.c (classify_argument): Fix missed case from previous patch.
940
941 2002-08-12  Neil Booth  <neil@daikokuya.co.uk>
942
943         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, c_common_init): Move
944         to c-copts.c.
945         (warn_multichar): Die.
946         (cb_register_builtins): Export.
947         * c-common.h (warn_multichar, preprocess_file): Remove.
948         (cb_register_builtins): New.
949         * c-lang.c (c_init): Remove.
950         (LANG_HOOKS_INIT): Use c_objc_common_init.
951         * c-lex.c (init_c_lex): Don't canonicalize filename.
952         * c-opts.c (in_fname, STDC_0_IN_SYSTEM_HEADERS): New.
953         (preprocess_file): Make static.  Update for cpplib.
954         (c_common_decode_option): Remove warn_multichar.  Use in_fname.
955         (c_common_post_options): Set some cpp options here.
956         (c_common_init): Move from c-common.c.
957         * cppinit.c (cpp_post_options): Don't canonicalize in_fname.
958         * cpplib.h (struct cpp_options): Remove in_fname.
959         (cpp_preprocess_file): Update.
960         * cppmain.c (cpp_preprocess_file): Update for new prototypes.
961
962 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
963
964         * config.gcc (mips*-*-netbsd*): Include ${tm_file}.
965
966 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
967
968         * i370.h (TARGET_CPU_CPP_BUILTINS): Remove spurious trailing
969         backslash in comment preceeding macro definition.
970         * i370/linux.h (TARGET_OS_CPP_BUILTINS): Likewise.
971         * i370/mvs.h (TARGET_OS_CPP_BUILTINS): Likewise.
972         * i370/oe.h (TARGET_OS_CPP_BUILTINS): Likewise.
973
974 2002-08-12  Hans-Peter Nilsson  <hp@bitrange.com>
975
976         * expr.c (store_expr): In condition for checking if value is
977         generated in TARGET, move call to expr_size last.
978
979 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
980
981         * c-common.c (c_common_init): Call preprocess_file instead.
982         (c_common_finish): Move to c-opts.c.
983         * c-common.h (preprocess_file): new.
984         * c-opts.c (out_fname, out_stream, deps_append, preprocess_file,
985         check_deps_environment_vars, c_common_finish): New.
986         (c_common_decode_option): Update for out_fname and dependencies.
987         * cppinit.c (init_dependency_output, output_deps): Remove.
988         (cpp_destroy): Update prototype.
989         (cpp_add_dependency_target): New.
990         (cpp_read_main_file): Don't overlay a buffer.
991         (cpp_finish): Take a deps output stream and write deps to it.
992         Return the error count.
993         (cpp_post_options): Don't canonicalize out_fname, or do anything
994         with dependencies.
995         * cpplib.h (struct cpp_options): Remove out_fname and
996         preprocess_only.
997         (cpp_add_dependency_target): New.
998         (cpp_destroy, cpp_finish, cpp_preprocess_file): Update.
999         * cppmain.c (cpp_preprocess_file): Update prototype.  Don't
1000         set preprocess_only.  Don't handle the output stream directly.
1001
1002 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1003
1004         * dsp16xx.c (print_operand): Fix format specifier.
1005         * dsp16xx.md: Avoid automatic aggregate initialization.
1006         * frv.h (REG_CLASS_FROM_LETTER): Avoid char as array index.
1007         * h8300.c (emit_a_rotate, h8300_adjust_insn_length): Avoid U
1008         integer constant modifier.
1009         * ip2k.c (ip2k_set_compare): Avoid signed/unsigned warning.
1010         * mmix-protos.h (mmix_use_simple_return): Move outside TREE_CODE
1011         guards.
1012         * sh/netbsd-elf.h (FUNCTION_PROFILER): Fix format specifier.
1013         * v850.c (v850_select_section): Mark parameter with
1014         ATTRIBUTE_UNUSED.
1015         * global.c (global_alloc): Const-ify.
1016         * ra-colorize.c (hardregset_to_string): Fix format specifier.
1017
1018 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1019
1020         * darwin-c.c (darwin_pragma_options): Const-ify.
1021         * darwin.c (machopic_non_lazy_ptr_name,
1022         machopic_validate_stub_or_non_lazy_ptr): Likewise.
1023         (machopic_indirect_data_reference): Wrap variables in macros
1024         controlling their use.
1025         (machopic_finish, update_non_lazy_ptrs, update_stubs): Const-ify.
1026         (machopic_select_section): Use parentheses around && within ||.
1027         * i386/darwin.h (ASM_OUTPUT_ALIGN): Avoid ambiguous-else.
1028
1029 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1030
1031         * ip2k.c (mdr_resequence_xy_yx, mdr_propagate_reg_equivs,
1032         mdr_try_move_dp_reload, ip2k_check_can_adjust_stack_ref,
1033         ip2k_adjust_stack_ref, mdr_try_move_pushes, mdr_try_propagate_clr,
1034         ip2k_xexp_not_uses_reg_for_mem, mdr_try_propagate_move,
1035         mdr_try_remove_redundant_insns, track_w_reload,
1036         mdr_try_wreg_elim): Make function static to match prototype.
1037         * mmix.c (mmix_target_asm_function_epilogue): Likewise.  Mark
1038         parameter with ATTRIBUTE_UNUSED.
1039
1040 2002-08-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1041
1042         * arc.c (arc_init): Don't use ISO C style function definitions.
1043         * arm.c (count_insns_for_constant, thumb_far_jump_used_p,
1044         arm_get_strip_length, arm_strip_name_encoding): Likewise.
1045         * avr.h (progmem_section): Likewise.
1046         * h8300.c h8300_asm_insn_count): Likewise.
1047         * m32r.c (init_idents): Likewise.
1048         * s390.c (s390_split_branches, s390_chunkify_pool): Likewise.
1049         * sh.c (sh_cfun_interrupt_handler_p): Likewise.
1050         * xtensa.c (xtensa_build_va_list): Likewise.
1051
1052 2002-08-11  Neil Booth  <neil@daikokuya.co.uk>
1053
1054         * c-common.h (enum c_language_kind): Emphasize that clk_c is 0.
1055         * c-opts.c (parse_option): Rename find_opt.
1056         (set_std_c99): New function.
1057         (COMMAND_LINE_OPTIONS): Handle -remap and -o.  Remove OPT_std_bad.
1058         (missing_arg): Remove OPT_std_bad.  Handle -o.
1059         (c_common_decode_option): Handle input and output file names,
1060         -o and -remap.  Clean up -std= handling.
1061         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_o and OPT_remap.
1062         (cpp_handle_option): Similarly.  Don't handle filenames.
1063
1064 Sun Aug 11 14:43:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
1065
1066         * i386.c (classify_argument): Fix computing of field's offsets.
1067
1068 2002-08-11  Andreas Jaeger  <aj@suse.de>
1069
1070         PR target/7531:
1071         * doc/invoke.texi (i386 and x86-64 Options): Document -mcmodel.
1072
1073 2002-08-10  Ziemowit Laski  <zlaski@apple.com>
1074
1075         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Replace
1076         reference to clk_objective_c with flag_objc.
1077         * config/i386/i386-interix.h (TARGET_OS_CPP_BUILTINS):
1078         Likewise.
1079         * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Likewise.
1080
1081 2002-08-10  Neil Booth  <neil@daikokuya.co.uk>
1082
1083         * c-opts.c (set_std_cxx98, set_std_c89): New.
1084         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
1085         (c_common_decode_option): Handle new switches from cppinit.c.
1086         Add -std=gnu++98.
1087         * cppinit.c (set_lang): Rename cpp_set_lang.  Export.
1088         (no_arg, no_num): Remove.
1089         (COMMAND_LINE_OPTIONS): Move more to c-opts.c.  Drop all lang-
1090         switches apart from -lang-objc and lang-asm.
1091         (cpp_handle_option): Similarly.
1092         * cpplib.h (cpp_set_lang): New.
1093         * doc/cppopts.texi, doc/invoke.texi: Document -std=c++98,
1094         -std=gnu++98.
1095         * objc/lang-specs.h: Remove -ansi.
1096
1097 Sat Aug 10 19:59:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
1098                                Graham Stott
1099
1100         * cfg.c (redirect_edge_succ_nodup): Avoid overflows due to roundoff
1101         errors.
1102
1103 2002-08-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1104
1105         * emit-rtl.c (emit_jump_insn_before, emit_call_insn_before,
1106         emit_jump_insn): Fix uninitialized variable.
1107         * gcov.c (init_line_info): Likewise.
1108         * genautomata.c (transform_3): Add braces around ambiguous
1109         else.
1110         * ifcvt.c (cond_exec_process_insns): Mark parameter with
1111         ATTRIBUTE_UNUSED.
1112         * ra-build.c (parts_to_webs_1): Fix uninitialized variable.
1113         * regrename.c (copyprop_hardreg_forward): Fix uninitialized
1114         variable.
1115
1116         * gengtype.c (write_gc_structure_fields): Avoid signed/unsigned
1117         warnings in output files.
1118
1119 2002-08-09  Ziemowit Laski  <zlaski@apple.com>
1120
1121         * c-common.c (flag_objc): New.
1122         * c-common.h (c_language_kind): Get rid of clk_objective_c
1123         enum value.
1124         (flag_objc): New extern declaration.
1125         * c-decl.c (implicitly_declare): Call objc_check_decl
1126         instead of maybe_objc_check_decl.
1127         (finish_decl): Likewise.
1128         (grokfield): Likewise.
1129         (finish_struct): Likewise.
1130         * c-lang.c (maybe_objc_check_decl): Rename to objc_check_decl.
1131         (maybe_objc_comptypes): Rename to objc_comptypes.
1132         (maybe_building_objc_message_expr): Rename to
1133         objc_message_selector.
1134         * c-lex.c (lex_charconst): Remove uses of clk_objective_c,
1135         replace with flag_objc as needed.
1136         * c-opts.c (c_common_init_options): Likewise.
1137         (c_common_decode_option): Likewise.
1138         * c-parse.in (init_reswords): Likewise.
1139         * c-tree.h (maybe_objc_check_decl): Rename to objc_check_decl.
1140         (maybe_objc_comptypes): Rename to objc_comptypes.
1141         (maybe_building_objc_message_expr): Rename to
1142         objc_message_selector.
1143         * c-typeck.c (comptypes): Call objc_comptypes instead of
1144         maybe_objc_comptypes, and/or objc_message_selector instead of
1145         maybe_building_objc_message_expr.
1146         (comp_target_types): Likewise.
1147         (convert_for_assignment): Likewise.
1148         (warn_for_assignment): Likewise.
1149         * cppinit.c (init_builtins): Set __OBJC__ manifest constant
1150         independently of those for other languages.
1151         * objc/objc-act.c (maybe_objc_comptypes): Delete.
1152         (maybe_objc_check_decl): Delete.
1153         (maybe_building_objc_message_expr): Rename to
1154         objc_message_selector.
1155         * objc/objc-lang.c (objc_init_options): Use clk_c instead of
1156         clk_objective_c; set flag_objc flag.
1157
1158 2002-08-09  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1159
1160         * ifcvt.c (find_if_case_2): Test correct basic block for size.
1161
1162 2002-08-09  Dale Johannesen  <dalej@apple.com>
1163
1164         * config/rs6000/rs6000.md: Add sibcall patterns.
1165         * config/rs6000/rs6000.h (FUNCTION_OK_FOR_SIBCALL):  Define.
1166         * config/rs6000/rs6000.c (rs6000_ra_ever_killed):
1167         Rewritten to handle sibcalls.
1168         * config/rs6000/rs6000.c (function_ok_for_sibcall):  New.
1169         * config/rs6000/rs6000-protos.h (function_ok_for_sibcall):  New.
1170
1171 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
1172
1173         * profile.c (da_file_name): New static var.
1174         (init_branch_prob): Initialize it.
1175         (end_branch_prob): Remove da file.
1176
1177         * Makefile.in (stage1_build): Pass empty COVERAGE_FLAGS.
1178         * configure.in (coverage_flags): Default to nothing.
1179         * configure: Rebuilt.
1180
1181 2002-08-09  Neil Booth  <neil@daikokuya.co.uk>
1182
1183         * Makefile.in (c-opts.o): Update
1184         * c-opts.c: Include intl.h.
1185         (print_help): Move from cppinit.c.  Remove unused options.
1186         (COMMAND_LINE_OPTIONS): Move more from cppinit.c.
1187         (missing_arg): Complain for switches without an argument.
1188         (c_common_decode_option): Reject missing joined arguments.
1189         Handle new switches from cppinit.c.
1190         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
1191         (cpp_handle_option): Similarly.
1192         (print_help): Moved to c-opts.c.
1193         * cpplib.h (struct cpp_options): Remove help_only.
1194         * gcc.c (cpp_unique_options): Remove -$.
1195         * doc/cppopts.texi: Undocument -h.
1196
1197 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1198
1199         * config/i386/i386.c (legitimate_constant_p): UNSPEC_TP is not
1200         legitimate constant.
1201         (legitimate_pic_operand_p): Neither pic operand.
1202         (legitimate_address_p): But legitimate address.
1203         (get_thread_pointer): Generate MEM/u instead of CONST around
1204         UNSPEC_TP.
1205         (print_operand): Remove printing of UNSPEC_TP.
1206         (print_operand_address): And print it here.
1207
1208 2002-08-08  Devang Patel  <dpatel@apple.com>
1209
1210         * objc/objc-act.c (build_selector_translation_table): Issue warning,
1211         when  -Wselector is used,if method for which selector is being
1212         created does not exist.
1213
1214 2002-08-08  Stephen Clarke <stephen.clarke@superh.com>
1215
1216         * config/sh/sh.c (prepare_move_operands): Only call
1217         target_reg_operand if TARGET_SHMEDIA.
1218
1219 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1220
1221         * config/rs6000/rs6000.h, config/rs6000/aix.h,
1222         config/rs6000/darwin.h, config/rs6000/linux64.h: Revert last
1223         two patches.
1224         * config/rs6000/sysv4.h: Likewise, remove #undef ADJUST_FIELD_ALIGN.
1225
1226 2002-08-08  Lars Brinkhoff  <lars@nocrew.org>
1227             Richard Henderson  <rth@redhat.com>
1228
1229         * emit-rtl.c (gen_rtx_REG): After reload, only return
1230         frame_pointer_rtx or hard_frame_pointer_rtx if frame_pointer_needed.
1231
1232 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1233
1234         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): Remove.
1235         * config/rs6000/rs6000.c (rs6000_field_alignment): Move...
1236         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): ...inline into the
1237         macro.
1238
1239 2002-08-08  Adam Nemet  <anemet@lnxw.com>
1240
1241         * config/arm/arm.c (thumb_unexpanded_epilogue): Stack the PIC
1242         register.
1243         (thumb_expand_prologue): Likewise.
1244         (thumb_output_function_prologue): Likewise.
1245         * config/arm/arm.h (THUMB_INITIAL_ELIMINATION_OFFSET): Account for
1246         the additional push of the PIC register.
1247
1248 2002-08-08  Nathan Sidwell  <nathan@codesourcery.com>
1249
1250         * configure.in (enable_coverage): New enable switch.
1251         * configure: Rebuilt.
1252         * Makefile.in (COVERAGE_FLAGS, coverageexts): New variables.
1253         (INTERNAL_CFLAGS): Append COVERAGE_FLAGS.
1254         (ALL_FLAGS): Reorder so INTERNAL_CFLAGS comes after CFLAGS.
1255         (mostlyclean): Remove coverage files.
1256         * doc/install.texi: Document enable_coverage.
1257
1258         * cp/Make-lang.in (c++.mostlyclean): Remove coverage files.
1259         * ada/Make-lang.in (ada.mostlyclean): Remove coverage files.
1260         * f/Make-lang.in (f.mostlyclean): Remove coverage files.
1261         * java/Make-lang.in (java.mostlyclean): Remove coverage files.
1262         * objc/Make-lang.in (objc.mostlyclean): Remove coverage files.
1263         * treelang/Make-lang.in (treelang.mostlyclean): Remove coverage
1264         files.
1265
1266 2002-08-08  Neil Booth  <neil@daikokuya.co.uk>
1267
1268         * c-opts.c (cpp_opts): New.
1269         (COMMAND_LINE_OPTIONS): Add switches from cppinit.c.
1270         (c_common_decode_options): Handle cpplib switches.
1271         (c_common_init_options): Set cpp_opts.
1272         * cppinit.c (COMMAND_LINE_OPTIONS): Move some switches to c-opts.c.
1273         (cpp_handle_option): Similarly.
1274
1275 2002-08-08  David Edelsohn  <edelsohn@gnu.org>
1276
1277         * config/rs6000/aix.h (TARGET_ALTIVEC): Define to 0.
1278         (TARGET_ALTIVEC_ABI): Same.
1279         (TARGET_ALTIVEC_VRSAVE): Same.
1280
1281         * config/rs6000/rs6000.c (rs6000_expand_ternop_builtin): Check
1282         icode not CODE_FOR_nothing.  Change switch to if.
1283
1284 2002-08-08  Alan Modra  <amodra@bigpond.net.au>
1285
1286         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Pass -mpower4 when cpu=power4.
1287
1288 2002-08-08  Jakub Jelinek  <jakub@redhat.com>
1289
1290         * stor-layout.c (place_union_field): For bitfields if
1291         PCC_BITFIELD_TYPE_MATTERS and TYPE_USER_ALIGN, set record's
1292         TYPE_USER_ALIGN.
1293
1294 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1295
1296         * pa.c (struct deferred_plabel): Constify name field.
1297
1298 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
1299
1300         * cppmacro.c (_cpp_builtin_macro_text): Remove unused variable.
1301
1302 2002-08-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1303
1304         * configure.in (PREFIX_INCLUDE_DIR): Don't define if prefix and
1305         local_prefix are the same.
1306         * configure: Rebuilt.
1307
1308 2002-08-07  Jakub Jelinek  <jakub@redhat.com>
1309             Richard Henderson  <rth@redhat.com>
1310
1311         * stor-layout.c (place_union_field): Apply ADJUST_FIELD_ALIGN
1312         to type_align when PCC_BITFIELD_TYPE_MATTERS.  Only apply
1313         ADJUST_FIELD_ALIGN if not DECL_USER_ALIGN resp. TYPE_USER_ALIGN.
1314         (place_field): Likewise.
1315         * config/i386/i386.c (x86_field_alignment): Don't check
1316         DECL_USER_ALIGN here.
1317         * config/rs6000/rs6000.c (rs6000_field_alignment): New.
1318         * config/rs6000/rs6000-protos.h (rs6000_field_alignment): New
1319         prototype.
1320         * config/rs6000/rs6000.h (ADJUST_FIELD_ALIGN): Define.
1321         * config/rs6000/aix.h (ADJUST_FIELD_ALIGN): Remove.
1322         * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Remove.
1323         * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Remove.
1324         * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Remove.
1325         * doc/tm.texi (ADJUST_FIELD_ALIGN): Update description.
1326
1327 2002-08-07  Neil Booth  <neil@daikokuya.co.uk>
1328
1329         * Makefile.in (c-opts.o, c-common.o, C_AND_OBJC_OBJS): Update.
1330         * c-common.c: Don't include tree-inline.h.
1331         (c_common_init_options, c_common_post_options): Move to c-opts.c.
1332         * c-common.h (c_common_decode_option): New.
1333         * c-decl.c (c_decode_option): Remove.
1334         * c-lang.c (LANG_HOOKS_DECODE_OPTION): Use c_common_decode_option.
1335         * c-opts.c: New file.
1336         * c-tree.h (c_decode_option): Remove.
1337         * doc/passes.texi: Update.
1338         * objc/objc-act.c (objc_decode_option): Remove.
1339         * objc/objc-act.h (objc_decode_option): Remove.
1340         * objc/ojbc-lang.c (LANG_HOOKS_DECODE_OPTION): Use
1341         c_common_decode_option.
1342
1343 2002-08-07  Chris Demetriou  <cgd@broadcom.com>
1344
1345         * config/mips/mips.md (sunlt_sf, suneq_sf, sunle_sf): Remove
1346         dependency on TARGET_DOUBLE_FLOAT.
1347
1348 2002-08-07  Stephen Clarke <stephen.clarke@superh.com>
1349
1350         * config/sh/lib1funcs.asm (GCC_shcompact_incoming_args): Don't
1351         overwrite callee-save registers.  Fix comment.
1352
1353 2002-08-06  Chris Demetriou  <cgd@broadcom.com>
1354
1355         * config/mips/mips.c (override_options): Set MASK_BRANCHLIKELY
1356         in target_flags based on ISA, if it was not set on the command
1357         line.  Warn if MASK_BRANCHLIKLEY is set but the ISA does not
1358         support Branch Likely instructions.
1359         * config/mips/mips.h (MASK_BRANCHLIKLEY): New macro.
1360         (TARGET_BRANCHLIKELY): Likewise.
1361         (TARGET_SWITCHES): Add -mbranch-likely and -mno-branch-likely.
1362         (GENERATE_BRANCHLIKELY): Use TARGET_BRANCHLIKELY rather than
1363         ISA_HAS_BRANCHLIKELY.
1364         (ISA_HAS_BRANCHLIKELY): Do not include MIPS16 check.
1365         * doc/invoke.texi: Document new MIPS -mbranch-likely and
1366         -mno-branch-likely options.
1367
1368 2002-08-06  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1369
1370         * ip2k.c (ip2k_set_compare): Add missing iteration variable.
1371
1372         * Makefile.in (dummy-conditions.o): Depend on $(HCONFIG_H) not
1373         $(GCONFIG_H).
1374
1375 2002-08-06  Aldy Hernandez  <aldyh@redhat.com>
1376
1377         * c-decl.c (duplicate_decls): Error out for incompatible TLS
1378         declarations.
1379
1380         * testsuite/gcc.dg/tls/diag-3.c: New.
1381
1382 2002-08-06  Jason Merrill  <jason@redhat.com>
1383
1384         * c-common.c (c_expand_expr) [STMT_EXPR]: If the last expression is
1385         a VAR_DECL with RTL that matches the target, just return that RTL.
1386
1387 2002-08-06  Dale Johannesen  <dalej@apple.com>
1388         * c-common.c (fname_decl): Use line number 0 for
1389         __func__, to avoid confusing debuggers.
1390
1391 2002-08-06  Nathan Sidwell  <nathan@codesourcery.com>
1392
1393         * gcov.c: Tidy.
1394         (struct line_info, struct coverage): New structures.
1395         (gcov_file_name, gcov_file): Remove globals.
1396         (output_data): Take source file parameter. Fix memory leak. Break
1397         up into ...
1398         (init_line_info, output_line_info, make_gcov_file_name,
1399         accumulate_branch_counts): ... here.
1400         (calculate_branch_probs, function_summary): Adjust.
1401         (main): Adjust.
1402         (function_*): Remove global variables.
1403
1404 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
1405
1406         * dwarf2out.c: Remove unused macros.
1407
1408 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
1409
1410         * function.c (TRAMPOLINE_ALIGNMENT): Always defined.
1411
1412 2002-08-06  Neil Booth  <neil@daikokuya.co.uk>
1413
1414         * cppinit.c (struct lang_flags): Rename trigraphs std.
1415         (set_lang): Update.
1416         * cpplib.h (struct cpp_options): New member std.
1417         * cppmacro.c (_cpp_builtin_macro_text): Use std.
1418         (collect_args): Flag whether to swallow a possible future
1419         comma pasted with varargs.
1420         (replace_args): Use this flag.
1421         * doc/cpp.texi: Update varargs extension documentation.
1422
1423 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
1424
1425         * config/i386/mmintrin.h (__m64): Make the type 64-bit aligned.
1426
1427 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
1428
1429         * config/i386/i386.c (x86_field_alignment): Apply min for all MODE_INT
1430         and MODE_CLASS_INT modes.
1431
1432 2002-08-06  Jakub Jelinek  <jakub@redhat.com>
1433
1434         * config.gcc (*-*-linux*): Default to --enable-threads=posix if no
1435         --{enable,disable}-threads is given to configure.
1436         (alpha*-*-linux*, hppa*-*-linux*, i[34567]86-*-linux*,
1437         x86_64-*-linux*, ia64*-*-linux*, m68k-*-linux*, mips*-*-linux*,
1438         powerpc-*-linux-gnualtivec*, powerpc-*-linux*, s390-*-linux*,
1439         s390x-*-linux*, sh-*-linux*, sparc-*-linux*, sparc64-*-linux*):
1440         Remove thread_file setting here.
1441
1442 2002-08-06  David Edelsohn  <edelsohn@gnu.org>
1443
1444         * doc/install.texi (Binaries): Update Bull Freeware URL.
1445
1446 2002-08-06  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1447
1448         * doc/gcc.texi (Top): Rename Index to Keyword Index.
1449
1450 2002-08-05  Nathan Sidwell  <nathan@codesourcery.com>
1451
1452         * gcov.c (output_data): Round to % to nearest, tweak formatting.
1453
1454 2002-08-05  Jakub Jelinek  <jakub@redhat.com>
1455
1456         * fold-const.c (associate_trees): Only optimize NEGATE_EXPR in one
1457         of the operands into MINUS_EXPR if code is PLUS_EXPR.
1458
1459 2002-08-05  Douglas B Rupp  <rupp@gnat.com>
1460
1461         * config.gcc (i[34567]86-*-interix*): Replace interix.o with winnt.o
1462         * config/i386/i386-interix.h (TARGET_NOP_FUN_DLLIMPORT,
1463         drectve_section): Define.
1464         * config/i386/t-interix: Replace interix.o rule with winnt.o.
1465         * config/i386/interix.c: Remove.
1466
1467 2002-08-05  Geoffrey Keating  <geoffk@redhat.com>
1468
1469         * attribs.c: Don't include obstack.h.
1470         * builtins.c: Likewise.
1471         * cfganal.c: Likewise.
1472         * cfgbuild.c: Likewise.
1473         * cfgcleanup.c: Likewise.
1474         * emit-rtl.c: Likewise.
1475         * loop.c: Likewise.
1476         * stmt.c: Likewise.
1477
1478         * Makefile.in (s-gtype): Re-add dependency on $(GTFILES).
1479
1480 2002-08-05  Gabriel Dos Reis  <gdr@nerim.net>
1481
1482         * doc/c-tree.texi (Expression trees): Document VA_ARG_EXPR
1483
1484 2002-08-04  Chris Demetriou  <cgd@broadcom.com>
1485
1486         * doc/invoke.texi: Remove duplicated paragraph describing
1487         TARGET_SWITCHES.
1488
1489 2002-08-04  Geoffrey Keating  <geoffk@redhat.com>
1490
1491         * Makefile.in (sdbout.o): Doesn't need $(OBSTACK_H).
1492         * collect2.h (permanent_obstack): Delete declaration.
1493         * collect2.c (permanent_obstack): Delete definition.
1494         (main): Don't initialise permanent_obstack.  Use xstrdup instead.
1495         * expr.c: Don't include obstack.h.
1496         (permanent_obstack): Delete declaration.
1497         * function.c: Don't include obstack.h.
1498         (permanent_obstack): Delete declaration.
1499         * integrate.c: Don't include obstack.h.
1500         (function_maybepermanent_obstack): Delete declaration.
1501         * print-tree.c (debug_tree): Use x*alloc not permalloc.
1502         * sdbout.c (gen_fake_label): Use x*alloc not permalloc.
1503         * tlink.c (pfgets): Use xstrdup not permanent_obstack.
1504         * toplev.c (lang_independent_init): Rename init_obstacks to init_ttree.
1505         * tree.h: Rename init_obstacks to init_ttree.  Remove declarations
1506         of permalloc, expralloc, perm_calloc.
1507         * tree.c (permanent_obstack): Delete definition.
1508         (init_ttree): Rename from init_obstacks.
1509         (permalloc): Delete.
1510         (perm_calloc): Delete.
1511         (dump_tree_statistics): Don't print information about
1512         permanent_obstack.
1513         * varasm.c (assemble_start_function): Use xstrdup instead of
1514         permalloc/strcpy.
1515         (assemble_variable): Likewise.
1516         * config/alpha/alpha.c (unicosmk_need_dex): Use xmalloc instead of
1517         permalloc.
1518         (unicosmk_add_extern): Likewise.
1519         * config/c4x/c4x.c (c4x_external_ref): Likewise.
1520         (c4x_global_label): Likewise.
1521         * config/frv/frv.c (frv_encode_section_info): Likewise.
1522         * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
1523         (i386_pe_record_exported_symbol): Likewise.
1524         * config/mips/mips.c (mips_output_external): Likewise.
1525         (mips_output_external_libcall): Likewise.
1526         * config/pa/pa.c: (permanent_obstack): Delete declaration.
1527         (output_call): Use ggc_strdup instead of allocating on
1528         permanent_obstack.
1529         * config/romp/romp.c: Include ggc.h.
1530         (get_symref): Don't declare permanent_obstack, use ggc_strdup
1531         intead of permanent_obstack.
1532         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use concat
1533         instead of permalloc.
1534         * config/rs6000/rs6000.c (rs6000_gen_section_name): Use xmalloc
1535         instead of permalloc
1536         * config/rs6000/xcoff.h (ASM_OUTPUT_EXTERNAL): Use concat
1537         instead of permalloc.
1538         * config/vax/vax.c (vms_check_external): Use xmalloc instead of
1539         permalloc.
1540
1541 2002-08-04  Bernd Schmidt  <bernds@redhat.com>
1542
1543         Contribute a port developed primarily by Michael Meissner,
1544         Catherine Moore, and Richard Sandiford <rsandifo@redhat.com>.
1545         * config.gcc: Add frv-elf target.
1546         * config/frv/cmovd.c: New file.
1547         * config/frv/cmovh.c: New file.
1548         * config/frv/cmovw.c: New file.
1549         * config/frv/frv-abi.h: New file.
1550         * config/frv/frv-asm.h: New file.
1551         * config/frv/frv-modes.def: New file.
1552         * config/frv/frv-protos.h: New file.
1553         * config/frv/frv.c: New file.
1554         * config/frv/frv.h: New file.
1555         * config/frv/frv.md: New file.
1556         * config/frv/frvbegin.c: New file.
1557         * config/frv/frvend.c: New file.
1558         * config/frv/lib1funcs.asm: New file.
1559         * config/frv/media.h: New file.
1560         * config/frv/modi.c: New file.
1561         * config/frv/t-frv: New file.
1562         * config/frv/uitod.c: New file.
1563         * config/frv/uitof.c: New file.
1564         * config/frv/ulltod.c: New file.
1565         * config/frv/ulltof.c: New file.
1566         * config/frv/umodi.c: New file.
1567         * config/frv/xm-frv.h: New file.
1568
1569         * config/frv/media.h: Removed again.
1570
1571 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
1572
1573         * gcov.c (bb_file_time): New static variable.
1574         (object_directory): May also be object file.
1575         (preserve_paths): New static variable.
1576         (print_usage): Adjust.
1577         (options): Adjust.
1578         (process_args): Adjust.
1579         (open_files): Simplify. Cope when OBJECT_DIRECTORY is an object
1580         file. Find modification date on bb file.
1581         (read_profile): Don't rewind a NULL file.
1582         (format_hwint): New static function.
1583         (function_summary): Use format_hwint.
1584         (output_data): SOURCE_FILE_NAME is never relative to
1585         OBJECT_DIRECTORY. Use format_hwint. Adjust gcov file name
1586         mangling. Adjust output format to make it more machine readable.
1587         * doc/gcov.texi: Document & clarify semantics.
1588
1589 2002-08-04  Joseph S. Myers  <jsm@polyomino.org.uk>
1590
1591         * doc/include/gcc-common.texi (version-GCC): Increase to 3.3.
1592
1593 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
1594
1595         * gcc.c (cc1_options): Pass output file as auxbase when
1596         appropriate.
1597         * profile.c (init_branch_prob): FILENAME has already had ending
1598         stripped.
1599         * final.c (end_final): Likewise.
1600         * toplev.c (aux_base_name): New global.
1601         (compile_file): Pass aux_base_name to init init_branch_prob and
1602         end_final.
1603         (independent_decode_option, case 'a'): New auxinfo options.
1604         (case 'd'): Protect against mising basename.
1605         (do_compile): Initialize aux_base_name.
1606         * toplev.h (aux_base_name): New global.
1607         * doc/invoke.texi: Adjust documentation.
1608
1609 2002-08-04  Nathan Sidwell  <nathan@codesourcery.com>
1610
1611         * config/i386/i386.c (x86_field_alignment): Remove duplicate test
1612         of TARGET_ALIGN_DOUBLE.
1613
1614 2002-08-04  Gabriel Dos Reis  <gdr@nerim.net>
1615
1616         * diagnostic.c (inform): New function.
1617         * diagnostic.h (inform): Declare.
1618
1619 2002-08-03  David Edelsohn  <edelsohn@gnu.org>
1620
1621         * config/rs6000/rs6000.md (movsi_internal1): Add nop mnemonic.
1622         (movhi_internal): Same.
1623         (movqi_internal): Same.
1624         (movdi_internal64): Same.
1625
1626         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_FLOAT): Add mcpu=405.
1627
1628         * config/rs6000/xcoff.h (SKIP_ASM_OP): Define.
1629         (ASM_OUTPUT_SKIP): Use it.  SIZE unsigned.
1630         (COMMON_ASM_OP): Define.
1631         (ASM_OUTPUT_ALIGNED_COMMON): Use it.  SIZE unsigned.
1632         Use ALIGN parameter.
1633         (LOCAL_COMMON_ASM_OP): Define.
1634         (ASM_OUTPUT_LOCAL): Use it.  SIZE unsigned.
1635
1636 2002-08-03  Roger Sayle  <roger@eyesopen.com>
1637
1638         * builtins.def: Define new builtin functions exp, expf, expl,
1639         log, logf and logl (and their __builtin_* variants).
1640         * optabs.h (enum optab_index): Add new OTI_exp and OTI_log.
1641         Define exp_optab and log_optab.
1642         * optabs.c (init_optans): Initialize exp_optab and log_optab.
1643         * genopinit.c (optabs): Implement exp_optab and log_optab
1644         using exp?f2 and log?f2 patterns.
1645         * builtins.c (expand_builtin_mathfn): Handle BUILT_IN_EXP*
1646         and BUILT_IN_LOG* using exp_optab and log_optab respectively.
1647         (expand_builtin): Ignore the new builtins (and all cos and
1648         sin variants) when not optimizing.  Expand new builtins via
1649         expand_builtin_mathfn when flag_unsafe_math_optimizations.
1650
1651         * doc/extend.texi: Document new exp and log builtins.
1652         * doc/md.texi: Document new exp?f2 and log?f2 patterns
1653         (and previously undocumented cos?f2 and sin?f2 patterns).
1654
1655 2002-08-03  Jason Merrill  <jason@redhat.com>
1656
1657         * explow.c (int_expr_size): New fn.
1658         * expr.c (expand_expr) [CONSTRUCTOR]: Use it.
1659         * expr.h: Declare it.
1660
1661 2002-08-02  Krister Walfridsson  <cato@df.lth.se>
1662
1663         * Makefile.in (gengtype-lex.o, gengtype-yacc.o): Add path to
1664         gengtype-* dependencies.
1665
1666 2002-08-02  Eric Christopher  <echristo@redhat.com>
1667
1668         * config.gcc (mips*-*-linux*): Fix ordering of tm_file.
1669         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Change
1670         #ifndef to #undef.
1671         (TARGET_MEM_FUNCTIONS): Define instead of define to 1.
1672
1673 2002-08-02  David Edelsohn  <edelsohn@gnu.org>
1674
1675         PR optimize/7067
1676         * config/rs6000/rs6000.h (RTX_COSTS): Artificially make MULT
1677         small if optimizing for size.
1678
1679 2002-08-02  Daniel Jacobowitz  <drow@mvista.com>
1680
1681         * configure.in (FORBUILD): Use $build_alias.
1682         * configure: Regenerated.
1683
1684 2002-08-02  Richard Sandiford  <rsandifo@redhat.com>
1685
1686         * config.gcc: Don't include mips/abi64.h in $tm_file.
1687         * hard-reg-set.h (call_really_used_regs): Declare.
1688         * config/mips/abi64.h: Remove file.
1689         * config/mips/linux.h,
1690         * config/mips/iris6.h: Don't include it.
1691         * config/mips/mips-protos.h (mips_conditional_register_usage): Declare.
1692         * config/mips/mips.h (CONDITIONAL_REGISTER_USAGE): Use it.
1693         (REG_PARM_STACK_SPACE, STACK_BOUNDARY, STRICT_ARGUMENT_NAMING,
1694         FUNCTION_ARG_PASS_BY_REFERENCE, FUNCTION_ARG_PADDING,
1695         FUNCTION_ARG_CALLEE_COPIES, MUST_PASS_IN_STACK, MIPS_STACK_ALIGN):
1696         Bring across definitions from abi64.h.
1697         (GP_ARG_LAST, FP_ARG_LAST): Use MAX_ARGS_IN_REGISTERS.
1698         (BIGGEST_MAX_ARGS_IN_REGISTERS): New.
1699         (struct mips_args): Use it.
1700         * config/mips/mips.c (mips_conditional_register_usage): Define.
1701
1702 2002-08-02  Jason Merrill  <jason@redhat.com>
1703
1704         * langhooks-def.h (LANG_HOOKS_EXPR_SIZE): New macro.
1705         * langhooks.c (lhd_expr_size): Define default.
1706         * langhooks.h (struct lang_hooks): Add expr_size.
1707         * explow.c (expr_size): Call it.
1708         * expr.c (store_expr): Don't copy an expression of size zero.
1709         (expand_expr) [CONSTRUCTOR]: Use expr_size to calculate how much
1710         to store.
1711         * Makefile.in (builtins.o): Depend on langhooks.h.
1712
1713 2002-08-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1714
1715         * Makefile.in (ra-debug.o): Depend on $(TM_P_H).
1716         * ra-debug.c: Include "tm_p.h".
1717         * ra-rewrite.c (is_partly_live_1): Change return type to bool.
1718
1719 2002-08-02  Toon Moene  <toon@moene.indiv.nluug.nl>
1720
1721         * simplify-rtx.c (simplify_binary_operation): x * 1 is allowed
1722         when not honoring signalling NaNs.
1723         (simplify_ternary_operation): a == b has a definite value
1724         when not honoring NaNs.
1725
1726 2002-08-02  Jason Merrill  <jason@redhat.com>
1727
1728         * gdbinit.in (pct): New macro.
1729
1730 2002-08-01  Stan Shebs  <shebs@apple.com>
1731             Andreas Tobler  <toa@pop.agri.ch>
1732
1733         * ginclude/stddef.h (_BSD_SIZE_T_DEFINED_): Define if not defined,
1734         plays nice with Darwin headers.
1735         (_BSD_RUNE_T_DEFINED_): Likewise.
1736
1737 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
1738
1739         * c-common.c (c_common_init): -Wtraditional also implies -Wlong-long.
1740         * cppinit.c (cpp_post_options): Likewise.
1741
1742         * cppexp.c (cpp_classify_number): Suppress -Wtraditional
1743         warning about 'LL' suffix (but not 'ULL' etc) when
1744         -Wno-long-long is in effect.
1745
1746         * cppmacro.c (_cpp_builtin_macro_text) [BT_TIME, BT_DATE]:
1747         Check for failing time()/localtime(), issue a warning, and
1748         make __TIME__ and __DATE__ expand to fallback strings.
1749
1750         * doc/cpp.texi, doc/extend.texi: Document behavior of __DATE__
1751         and __TIME__ when the date and time cannot be determined.
1752
1753 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
1754
1755         * config/rs6000/rs6000.c (output_cbranch): Hint differently for power4.
1756
1757 2002-08-01  Daniel Jacobowitz  <drow@mvista.com>
1758
1759         * Makefile.in ($(BUILD_PREFIX_1)ggc-none.o): Use $(GGC_H).
1760
1761 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
1762
1763         * config.gcc (mipsisa64sb1-*-elf*): New configuration.
1764         (mipsisa64sb1el-*-elf*): Likewise.
1765         * config/mips/mips.c (mips_cpu_info_table): Add sb1.
1766         * config/mips/mips.h (processor_type): Add PROCESSOR_SB1.
1767         (TARGET_SB1, TUNE_SB1): New macros.
1768         * doc/invoke.texi: Add sb1 to documentation for MIPS -march and
1769         -mtune flags.
1770
1771 2002-08-01  David Edelsohn  <edelsohn@gnu.org>
1772
1773         * varasm.c (asm_emit_uninitialized): Return false if global BSS
1774         and ASM_EMIT_BSS not supported by target.
1775         (assemble_variable): Do not duplicate uninitialized logic.
1776         Fall through if asm_emit_uninitialized failed.
1777
1778 2002-08-01  Chris Demetriou  <cgd@broadcom.com>
1779
1780         * config/mips/mips.h (BRANCH_LIKELY_P): Remove unused macro.
1781
1782 2002-08-02  Alan Modra  <amodra@bigpond.net.au>
1783
1784         * config/rs6000/linux64.h (DBX_OUTPUT_BRAC): Define.
1785         (DBX_OUTPUT_LBRAC, DBX_OUTPUT_RBRAC): Define.
1786
1787         * config/rs6000/rs6000.c (output_toc): Don't use lshift_double when
1788         HOST_BITS_PER_WIDE_INT == 64.
1789
1790 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1791
1792         * df.c (df_insn_table_realloc): Change parameter to unsigned.
1793         * optabs.c (expand_binop): Make variable unsigned.
1794         * simplify-rtx.c (simplify_subreg): Likewise.
1795         * unroll.c (unroll_loop): Cast to avoid signed/unsigned warnings.
1796
1797 2002-08-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1798
1799         * c-common.c (cb_register_builtins): Always define __GXX_ABI_VERSION.
1800
1801 2002-08-01  Richard Henderson  <rth@redhat.com>
1802
1803         * toplev.c (parse_options_and_default_flags): Don't set
1804         flag_reorder_blocks for -Os.
1805
1806         * config/avr/avr.c (avr_optimization_options): Remove.
1807         * config/avr/avr.h (OPTIMIZATION_OPTIONS): Remove.
1808         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): Remove.
1809         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Remove.
1810
1811 2002-08-01  H.J. Lu <hjl@gnu.org>
1812             Richard Henderson  <rth@redhat.com>
1813
1814         * output.h (DECL_READONLY_SECTION): Remove.
1815         (decl_readonly_section): Declare.
1816         * varasm.c (decl_readonly_section): New.
1817         (default_section_type_flags, default_select_section): Use it.
1818         * config/arm/pe.c (arm_pe_unique_section): Likewise.
1819         * config/i386/interix.c (i386_pe_unique_section): Likewise.
1820         * config/i386/winnt.c (i386_pe_unique_section): Likewise.
1821         * config/mcore/mcore.c (mcore_unique_section): Likewise.
1822         * config/mips/mips.c (mips_unique_section): Likewise.
1823
1824 2002-08-01  Richard Henderson  <rth@redhat.com>
1825
1826         * integrate.c (copy_rtx_and_substitute): Squash MEM_EXPR when it
1827         refers to a subroutine parameter.
1828
1829 2002-08-01  Jakub Jelinek  <jakub@redhat.com>
1830
1831         * varasm.c (assemble_visibility): Strip name encoding.
1832
1833 2002-08-01  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
1834
1835         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE): Correct earlier patch.
1836         (RETURN_ADDR_RTX): Cannot determine return address for FRAME > 0
1837         when there is no frame pointer.
1838         (INITIAL_FRAME_POINTER_OFFSET): Count stack space for saved fp
1839         registers properly.
1840         * config/ns32k/__unorddf2.c: New file.
1841         * config/ns32k/__unordsf2.c: New file.
1842         * config/ns32k/t-ns32k: New file.
1843         * config.gcc (ns32k-*-netbsd*): Use it.
1844
1845 2002-08-01  Aldy Hernandez  <aldyh@redhat.com>
1846
1847         * config/rs6000/rs6000.h (SPU_CONST_OFFSET_OK): Change to 0xff.
1848
1849 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
1850
1851         * c-common.c (__GXX_ABI_VERSION): Correct spelling.
1852
1853 2002-08-01  Benjamin Kosnik  <bkoz@redhat.com>
1854
1855         * c-common.c (cb_register_builtins): Set __GXX_ABI_VERSION__ to 102.
1856
1857 2002-08-01  Richard Sandiford  <rsandifo@redhat.com>
1858
1859         * config/mips/mips.md: Add [!]TARGET_MIPS16 to sgtu conditions.
1860
1861 2002-08-01  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1862
1863         * gcse.c (expr_hash_table_size, n_exprs, set_hash_table_size,
1864         n_sets): Removed.
1865         (expr_hash_table, set_hash_table): Type changed to ...
1866         (struct hash_table): New type.
1867         (hash_scan_insn, hash_scan_set, hash_scan_clobber, hash_scan_call,
1868         insert_expr_in_table, insert_set_in_table, compute_hash_table,
1869         dump_hash_table, lookup_expr, lookup_set, compute_local_properties,
1870         compute_ae_gen, compute_ae_kill): Modified to pass the table explicitly.
1871         (alloc_set_hash_table, alloc_expr_hash_table): Merged to ...
1872         (alloc_hash_table): New.
1873         (free_set_hash_table, free_expr_hash_table): Merged to ...
1874         (free_hash_table): New.
1875         (compute_set_hash_table, compute_expr_hash_table): Merged to ...
1876         (compute_hash_table_work): New.
1877         (classic_gcse, one_classic_gcse_pass, compute_cprop_data,
1878         find_avail_set, one_cprop_pass, find_bypass_set, compute_pre_data,
1879         pre_edge_insert, pre_insert_copies, pre_delete, pre_gcse,
1880         one_pre_gcse_pass, compute_transpout, compute_code_hoist_vbeinout,
1881         hoist_code, one_code_hoisting_pass,
1882         trim_ld_motion_mems): Altered due to changed type of hash tables.
1883
1884 2002-08-01  Zack Weinberg  <zack@codesourcery.com>
1885
1886         * final.c (output_alternate_entry_point):
1887         If ASM_OUTPUT_TYPE_DIRECTIVE is defined, use it.
1888
1889 2002-08-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1890
1891         * objc/objc-act.c (encode_complete_bitfield): Add prototype and
1892         avoid ISO C style function definition.
1893
1894         * expr.c (expand_assignment): Delete unused variable.
1895
1896 2002-08-01  Toon Moene  <toon@moene.indiv.nluug.nl>
1897
1898         * c-common.c (cb_register_builtins): Set
1899         __FINITE_MATH_ONLY__ to 1 if -ffinite-math-only
1900         is given, and to 0 otherwise.
1901         * combine.c (simplify_if_then_else): HONOR_NANS
1902         implies FLOAT_MODE_P.
1903
1904 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
1905
1906         * cppinit.c (COMMAND_LINE_OPTIONS): Remove OPT_dollar.
1907         (cpp_handle_option): Don't handle it.
1908         (print_help): Update.
1909         * doc/cppopts.texi: Update.
1910
1911 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
1912
1913         * c-common.c (cb_register_builtins): If C++, define
1914         __EXCEPTIONS, __DEPRECATED and __GXX_ABI_VERSION as appropriate.
1915         * gcc.c (cpp_unique_options): Remove __GXX_ABI_VERSION.
1916 cp:
1917         * lang-specs.h: Simplify in accordance with new code in
1918         c-common.c.
1919
1920 2002-08-01  Neil Booth  <neil@daikokuya.co.uk>
1921
1922         * c-common.c: Define all C/ObjC/C++ warning and flag variables.
1923         * c-common.h: Declare all C/ObjC/C++ warning and flag variables.
1924         * c-decl.c: Move all warning and flag variables to c-common.c.
1925         * c-format.c: Move all warning variables to c-common.c.
1926         * c-tree.h: Move all warning and flag declarations to c-common.h.
1927         * objc/objc-act.c: Move all warning variables to c-common.c.
1928         (flag_warn_protocol): Rename warn_protocol.
1929
1930 2002-07-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1931
1932         * pa-linux.h (GLOBAL_ASM_OP): Fix typo.
1933
1934 2002-07-31  Graham Stott  <grahams@btinternet.com>
1935
1936         * config/stormy16/stormy16.h (BSS_SECTION_ASM_OP): Add missing
1937         .section prefix.
1938
1939 2002-07-31  Stan Shebs  <shebs@apple.com>
1940
1941         * config.gcc (i[34567]86-*-darwin*): New configuration.
1942         * config/darwin.h (TARGET_ENCODE_SECTION_INFO): Undefine before
1943         defining.
1944         (TARGET_ENCODE_SECTION_INFO): Ditto.
1945         (ASM_PREFERRED_EH_DATA_FORMAT): Ditto.
1946         * config/darwin.c (machopic_indirect_data_reference): Remove
1947         setting of RTX_UNCHANGING_P.
1948         (machopic_legitimize_pic_address): Move RTX_UNCHANGING_P up so as
1949         not to be applied to sums.
1950         * config/i386/t-darwin: New file.
1951         * config/i386/darwin.h: New file.
1952         * config/i386/i386.h (TARGET_MACHO): Add default definition.
1953         * config/i386/i386.md (tablejump): Add TARGET_MACHO case.
1954         * config/i386/i386.c (output_set_got): For Mach-O, output Mach-O
1955         label and not the GOT add.
1956         (constant_address_p): For Mach-O, seeing a CONST is enough.
1957         (legitimate_pic_address_disp_p): Add a Mach-O case.
1958         (legitimate_address_p): Also test machopic_operand_p if Mach-O.
1959         (legitimize_pic_address): Use generic Mach-O code to legitimize.
1960         (output_pic_addr_const): Suppress @PLT if Mach-O, and parens
1961         if outputting a difference.
1962         (ix86_output_addr_diff_elt): Add Mach-O case.
1963         (ix86_expand_move): Similarly.
1964         (ix86_expand_call): Similarly.
1965         (current_machopic_label_num): New global.
1966         (machopic_output_stub): New function.
1967         (ix86_value_regno): New function.
1968         (ix86_function_value): Use it instead of VALUE_REGNO.
1969         (ix86_libcall_value): Ditto.
1970         * config/i386/unix.h (VALUE_REGNO): Remove.
1971
1972 2002-07-31  Graham Stott  <grahas@btinternet.com>
1973
1974         * config/rs6000/rs6000.c(rs6000_hash_constant): Fix
1975         hash for LABEL_REF's.
1976
1977 2002-07-31  Graham Stott  <grahams@btinternet.com>
1978
1979         * config/rs6000/rs6000.c (spe_init_builtins,
1980         altivec_init_builtins, rs6000_common_init_builtins):
1981         Replace ANSI with K&R function def.
1982
1983 2002-07-31  David Edelsohn  <edelsohn@gnu.org>
1984
1985         * rs6000.c (validate_condition_mode): Test flag_finite_math_only
1986         for CCFPmode.
1987
1988 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
1989
1990         * config/mips/crtn.asm: Don't use __mips16 to determine the
1991         return-address offset.  Define RA to a suitable temporary
1992         register for the return address.
1993
1994 2002-07-31  Richard Sandiford  <rsandifo@redhat.com>
1995
1996         * config/mips/mips.md (eh_set_lr_si, eh_set_lr_di): Change
1997         constraints to 'd'.
1998
1999 2002-07-30  Chris Demetriou  <cgd@broadcom.com>
2000
2001         * config/mips/elf.h (STARTFILE_SPEC): Define differently if
2002         default ABI is MEABI.  (Undoes incorrect change in Eric Christopher's
2003         patch on 2002-07-29.)
2004         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
2005
2006 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2007
2008         * alpha.h, arc.h, arm/aout.h, avr.h, cris.h, d30v.h, dsp16xx.h,
2009         fr30.h, h8300.h, i370.h, i386/sco5.h, i386/unix.h, i960.h, ia64.h,
2010         ip2k.h, m32r.h, mcore.h, mips.h, mn10200.h, mn10300.h, ns32k.h,
2011         openbsd.h, pa/pa-linux.h, pdp11.h, romp.h, rs6000/sysv4.h,
2012         s390/linux.h, sh.h, sparc.h, stormy16.h, v850.h, vax.h, xtensa.h:
2013         (ASM_GLOBALIZE_LABEL): Delete.
2014         (GLOBAL_ASM_OP): Define.
2015
2016         * m68hc11.h, m68k.h, m88k.h (ASM_GLOBALIZE_LABEL): Delete.
2017
2018         * defaults.h (ASM_GLOBALIZE_LABEL): Provide a default.
2019         * doc/tm.texi (ASM_GLOBALIZE_LABEL): Update docs.
2020
2021 2002-07-30  Geoffrey Keating  <geoffk@redhat.com>
2022
2023         * doc/extend.texi (Hints implementation): Document that GCC
2024         mostly ignores `register'.
2025
2026 2002-07-30  Toon Moene  <toon@moene.indiv.nluug.nl>
2027
2028         * flags.h: Declare flag_finite_math_only.
2029         Use it in definition of HONOR_NANS and
2030         HONOR_INFINITIES.
2031         * c-common.c (cb_register_builtins): Emit
2032         __FINITE_MATH_ONLY__ when flag_finite_math_only
2033         is set.
2034         * combine.c (simplify_if_then_else): If
2035         flag_finite_math_only is set, a == b has a
2036         definite value.
2037         * toplev.c: Initialize flag_finite_math_only.
2038         (set_flags_fast_math): Set it on -ffast-math.
2039         (flag_fast_math_set_p): Test it.
2040         * doc/invoke.texi: Document -ffinite-math-only.
2041
2042 2002-07-30  Richard Henderson  <rth@redhat.com>
2043
2044         * ifcvt.c (noce_get_alt_condition): Use reg_overlap_mentioned_p.
2045         (noce_process_if_block): Likewise.
2046
2047 2002-07-30  Bernd Schmidt  <bernds@redhat.com>
2048
2049         * ifcvt.c (cond_exec_process_if_block): Fix a merging error.
2050         Bail out early if false_expr is NULL and we'd crash due to this.
2051         * genemit.c (gen_expand): Recognize return insns even if the return
2052         appears in a parallel.
2053         * libgcc2.c: Expand macro DECLARE_LIBRARY_RENAMES if it is defined.
2054         * config/fp-bit.c: Likewise.
2055         * doc/tm.texi: Document it.
2056
2057 2002-07-30  David Edelsohn  <edelsohn@gnu.org>
2058             Zack Weinberg  <zack@codesourcery.com>
2059
2060         * rs6000.c (rs6000_expand_unop_builtin): Check icode not
2061         CODE_FOR_nothing.  Change switch to if.
2062         (rs6000_expand_binop_builtin): Same.
2063         (rs6000_expand_builtin): Expand builtin if target support enabled.
2064         (rs6000_init_builtins): Init builtin if target support enabled.
2065         (rs6000_common_init_builtins): Check icode not CODE_FOR_nothing.
2066
2067 2002-07-30  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2068
2069         * gcc.c (cpp_unique_options): Define __GXX_ABI_VERSION, bump it to 101.
2070
2071 2002-07-30  Richard Sandiford  <rsandifo@redhat.com>
2072
2073         * config/mips/mips.h (SUBTARGET_ASM_DEBUGGING_SPEC): Fix typo.
2074
2075 Tue Jul 30 18:31:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
2076
2077         * sh.md (cond_delay_slot): New attribute.
2078         (cbranch delay): Use it for anulled-true case.
2079         (stuff_delay_slot): New pattern.
2080         * sh.c (print_operand, case '.'): Don't print .s / /s fore zero-length
2081         delay slot insn.
2082         (gen_far_branch): Emit stuff_delay_slot pattern.
2083
2084 Tue Jul 30 11:21:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
2085
2086         * unroll.c (copy_loop_body): Don't copy NOTE_INSN_LOOP_CONT.
2087
2088 2002-07-30  Kazu Hirata  <kazu@cs.umass.edu>
2089
2090         * fold-const.c: Fix comment typos.
2091         * gcse.c: Likewise.
2092         * reload1.c: Likewise.
2093
2094 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
2095
2096         * config/rs6000/rs6000.md: Disallow CCEQ compare with crnor/crnot
2097         for TARGET_SPE.
2098
2099 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
2100
2101         * c-pretty-print.h (pp_c_statement): Declare.
2102         * c-pretty-print.c (pp_c_postfix_expression): #if 0 support for SRCLOC.
2103         (pp_c_statement): Define.
2104
2105 2002-07-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2106
2107         * alpha.h, arc.h, arm/aout.h, avr.h, c4x.h, cris.h, d30v.h,
2108         darwin.h, dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i960.h,
2109         ip2k.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mips.h,
2110         mn10200.h, mn10300.h, ns32k.h, pa/pa-linux.h, pdp11.h, romp.h,
2111         rs6000/sysv4.h, s390/linux.h, sh.h, sparc.h, stormy16.h,
2112         v850.h, vax.h, xtensa.h (ASM_OUTPUT_LABEL): Delete definition.
2113
2114         * defaults.h (ASM_OUTPUT_LABEL): Provide a default.
2115         * doc/tm.texi (ASM_OUTPUT_LABEL): Update docs.
2116
2117 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
2118
2119         * c-pretty-print.c (pp_c_primary_expression): Handle STMT_EXPR.
2120         (pp_c_postfix_expression): Handle ARROW_EXPR, FFS_EXPR,
2121         COMPOUND_LITERAL_EXPR, VA_ARG_EXPR.
2122         (pp_c_expression): Update.
2123
2124 2002-07-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2125
2126         * alpha/vms-cc.c (preprocess_args, main): Use xstrdup and/or
2127         concat in lieu of xmalloc/strcpy/memcpy/sprintf.
2128         * alpha/vms-ld.c (main): Likewise.
2129         * dsp16xx.c (double_reg_to_memory): Likewise.
2130         * mcore.c (mcore_expand_prolog): Likewise.
2131         * cppfiles.c (read_name_map): Likewise.
2132         * gensupport.c (process_rtx, identify_predicable_attribute,
2133         alter_test_for_insn): Likewise.
2134         * vmsdbgout.c (write_rtnbeg, vmsdbgout_init): Likewise.
2135
2136 2002-07-29  Roger Sayle  <roger@eyesopen.com>
2137
2138         * builtins.c (expand_builtin):  Change the default behavior to
2139         only issue an error if the builtin function doesn't have a
2140         fallback library call.  Remove several cases handled by the
2141         new default.
2142
2143 2002-07-29  John David Anglin  <dave@hiauly1.hia.nrc>
2144
2145         * real.c (ieee_24, ieee_53, ieee_64, ieee_113): Define only if the
2146         floating point format of the target is IEEE.
2147         * (dec_f, dec_d, dec_g, dec_h): Define only if the floating point
2148         format of the target is DEC.
2149
2150 2002-07-29  Richard Henderson  <rth@redhat.com>
2151
2152         * unroll.c (verify_addresses): Remove.
2153         (find_splittable_givs): Never split DEST_ADDR givs.
2154
2155 2002-07-29  Geoffrey Keating  <geoffk@redhat.com>
2156
2157         * doc/gty.texi (GGC Roots): Clarify that the list of syntaxes
2158         is exhaustive.
2159         (Files): Improve documentation on generated source files.
2160
2161         * doc/extend.texi (Translation implementation): Document what
2162         diagnostics look like.
2163         (Identifiers implementation): Document that there's normally no
2164         limit on identifier names.
2165         (Integers implementation): Document two's complement.
2166         (Hints implementation): Document that GCC honours 'inline', mostly.
2167         (Preprocessing directives implementation): Document that GCC
2168         requires the current time.
2169
2170 2002-07-30  Gabriel Dos Reis  <gdr@nerim.net>
2171
2172         * c-pretty-print.h (struct c_pretty_print_info): Add new member.
2173         (pp_initializer): New macro.
2174         (pp_c_initializer): Declare.
2175         * c-pretty-print.c (pp_c_primary_expression): HAndle TARGET_EXPR.
2176         (pp_c_initializer): Define.
2177         (pp_c_initializer_list): New function.
2178         (pp_c_postfix_expression): Handle ABS_EXPR, COMPLEX_CST,
2179         VECTOR_CST, CONSTRUCTOR.
2180         (pp_c_unary_expression): Handle CONJ_EXPR, REALPART_EXPR,
2181         IMAGPART_EXPR.
2182         (pp_c_cast_expression): Handle FLOAT_EXPR.
2183         (pp_c_assignment_expression): Handle INIT_EXPR.
2184         (pp_c_expression): Update.
2185
2186 2002-07-30  Neil Booth  <neil@daikokuya.co.uk>
2187
2188         * objc/objc-act.c (objc_init): Return immediately if filename
2189         is NULL.
2190
2191 2002-07-29  Eric Christopher  <echristo@redhat.com>
2192
2193         * config/mips/elf.h: Remove ecoff.h and gofast includes.
2194         (DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO): Define unconditionally.
2195         (SDB_DEBUGGING_INFO): Undefine.
2196         (PREFERRED_DEBUGGING_TYPE): Set to DWARF2_DEBUG.
2197         (PUT_SDB_SIZE): Remove.
2198         (SUBTARGET_ASM_DEBUGGING_SPEC): Redefine.
2199         (STARTFILE_SPEC): Add isa3264 define.
2200         * config/mips/elf64.h: Ditto.  Move TARGET_MEM_FUNCTIONS from here...
2201         * config/mips/ecoff.h: Remove. and here...
2202         * config/mips/iris3.h: and here...
2203         * config/mips/sni-svr4.h: and here...
2204         * config/mips/mips.h: To here. Remove OBJECT_FORMAT_ROSE ifdefs.
2205         Add assembler -mmdebug options for non-dwarf debugging.
2206         * config/mips/r3900.h: Remove debug info defines.
2207         * config/mips/isa32-linux.h: Remove, move functionality to config.gcc.
2208         * config/mips/isa3264.h: Ditto.
2209         * config/mips/t-isa3264: Fix up for file removal and gofast configure
2210         change.
2211         * config/mips/t-elf: Ditto.
2212         * config/mips/t-ecoff: Ditto.
2213         * config/mips/t-r3900: Ditto.
2214         * config/mips/t-iris5-6: Ditto.
2215         * config/mips/t-isa3264: Ditto.
2216         * config/mips/t-linux: Remove.
2217         * config/mips/t-netbsd: Remove.
2218         * config/mips/t-mips: New file.
2219         * config/mips/t-gofast: Ditto.
2220         * config/mips/netbsd.h: Remove unnecessary undefines.
2221         * config/mips/linux.h: Remove #include of mips.h.
2222         * config.gcc: Add mips.h include for elf targets. Remove tm_file
2223         for ecoff. Add gofast configure option for mips.
2224
2225 2002-07-29  Chris Demetriou  <cgd@broadcom.com>
2226
2227         * configure.in (mips*-*-*): Add a test to see if MIPS libgloss
2228         linker scripts use STARTUP directives consistently.
2229         * configure: Regenerate.
2230         * config.in: Regenerate.
2231         * config/mips/elf.h (STARTFILE_SPEC): Define conditionally, based
2232         on whether HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is defined.
2233         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
2234         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine if
2235         HAVE_MIPS_LIBGLOSS_STARTUP_DIRECTIVES is set; the result
2236         will be the same.
2237
2238 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
2239
2240         * config/rs6000/rs6000.md ("cpu"): Add ppc8540 to attribute.
2241
2242 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
2243
2244         * config/rs6000/rs6000.h (RTX_COSTS): Add MULT case for 8540.
2245
2246 2002-07-29  Aldy Hernandez  <aldy@quesejoda.com>
2247
2248         * config/rs6000/rs6000.md: Move altivec patterns from here...
2249
2250         * config/rs6000/altivec.md: ...to here.
2251
2252 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
2253
2254         * config/rs6000/spe.md ("spe_evmra"): Change to unspec.
2255
2256 2002-07-29  Richard Henderson  <rth@redhat.com>
2257
2258         * emit-rtl.c (set_mem_attributes_minus_bitpos): Rename from
2259         set_mem_attributes and add BITPOS argument.  Subtract it from
2260         OFFSET when same is adjusted.
2261         (set_mem_attributes): New wrapper function.
2262         * expr.c (expand_assignment): Use set_mem_attributes_minus_bitpos;
2263         remove offset adjustment hack.
2264         * expr.h (set_mem_attributes_minus_bitpos): Declare.
2265
2266 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
2267
2268         * Makefile.in (C_OBJS): Include c-pretty-print.o
2269         (c-pretty-print.o): Add depency rule.
2270         * pretty-print.h: Add more macros.
2271         * c-pretty-print.c: New file.
2272         * c-pretty-print.h: Likewise.
2273
2274 2002-07-29  Aldy Hernandez  <aldyh@redhat.com>
2275
2276         * config/rs6000/spe.h (__internal_ev_mwhgumian): Cast vector
2277         constants to __ev64_s32__.
2278         (__internal_ev_mwhgsmian): Same.
2279         (__internal_ev_mwhgsmfan): Same.
2280         (__internal_ev_mwhgssfan): Same.
2281         (__internal_ev_mwhgumiaa): Same.
2282         (__internal_ev_mwhgsmiaa): Same.
2283         (__internal_ev_mwhgsmfaa): Same.
2284         (__internal_ev_mwhgssfaa): Same.
2285
2286 2002-07-29  David Edelsohn  <edelsohn@gnu.org>
2287
2288         * varasm.c (assemble_variable): Narrow test for uninitialized
2289         without BSS target support.
2290
2291 2002-07-29  Nathan Sidwell  <nathan@codesourcery.com>
2292
2293         * profile.c: Add file comment describing the overall algorithm and
2294         structures.
2295         (struct edge_info): Add comments.
2296         (struct bb_info): Add comments.
2297         * basic-block.h (EDGE_*): Add comments.
2298         * doc/gcov.texi (Gcov Data Files): Document bit flags.
2299
2300 2002-07-29  Bob Wilson  <bob.wilson@acm.org>
2301
2302         * config/xtensa/elf.h, config/xtensa/linux.h
2303         (TARGET_OS_CPP_BUILTINS): Define.
2304         (CPP_PREDEFINES): Remove.
2305         * config/xtensa/xtensa.h (TARGET_CPU_CPP_BUILTINS): Define.
2306         (CPP_SPEC): Remove.
2307
2308 2002-07-29  Zack Weinberg  <zack@codesourcery.com>
2309
2310         * gensupport.c: Include hashtab.h.
2311         (insn_elision, condition_table, hash_c_test, cmp_c_test,
2312         maybe_eval_c_test): New routines and data structures to
2313         support insn elision.
2314         (init_md_reader): Read and initialize the condition_table.
2315         (read_md_rtx): Discard insn patterns whose C test is provably
2316         always false.
2317         * gensupport.h: Declare new functions and data structures.
2318
2319         * genconditions.c, dummy-conditions.c: New files.
2320         * Makefile.in: Build genconditions; run it to construct
2321         insn-conditions.c; build that and link it into most gen*
2322         programs.
2323         (HOST_SUPPORT, HOST_EARLY_SUPPORT): New variables.
2324         (GEN): Delete, unused.
2325         (STAGESTUFF): Update.
2326
2327         * gencodes.c: (gen_insn): #define CODE_FOR_xxx equal to
2328         CODE_FOR_nothing for all elided patterns.
2329         (main): Tweaked to support this.
2330         * genflags.c (gen_proto): Emit a static inline generator
2331         function here for all elided patterns, which simply returns
2332         NULL_RTX.
2333         (gen_insn): Do not define HAVE_xxx for elided patterns.
2334         (main): Tweaked to support this.  No need to forward-declare
2335         struct rtx_def.
2336         * genrecog.c: Do not bother emitting the C test if it's known
2337         to be true at compile time.
2338
2339 2002-07-29  Mike Stump  <mrs@apple.com>
2340
2341         * config.gcc (target_gtfiles): Initialize, as otherwise cross
2342         compilers hosted on powerpc-apple-darwin6.0 won't even build.
2343
2344 2002-07-29  Richard Earnshaw  <rearnsha@arm.com>
2345
2346         * arm.md (sibcall, sibcall_value): Add RETURN as part of the pattern,
2347         remove clobber of LR.
2348         (sibcall_insn, sibcall_value_insn): Update accordingly.
2349         (sibcall_epilogue): Remove debugging comment from assembler stream.
2350
2351 2002-07-29  Gabriel Dos Reis  <gdr@nerim.net>
2352
2353         * pretty-print.h: Define more macros.
2354         * diagnostic.h (output_formatted_integer): Moved from...
2355         * diagnostic.c: ... here.
2356
2357 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2358
2359         * stormy16.h (ASM_OUTPUT_SYMBOL_REF): Use ASM_OUTPUT_LABEL_REF.
2360
2361 2002-07-28  Zack Weinberg  <zack@codesourcery.com>
2362
2363         * defaults.h (ASM_OUTPUT_MEASURED_SIZE): Take only two
2364         arguments.  Always use ".-symbol" as expression argument.
2365         * doc/tm.texi: Update to match.  Document requirement for
2366         ".size symbol, .-symbol" to be acceptable to assembler.
2367
2368         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
2369         config/arm/elf.h, config/avr/avr.h, config/cris/aout.h,
2370         config/i386/freebsd-aout.h, config/i386/sco5.h,
2371         config/ip2k/ip2k.h, config/m88k/m88k.h, config/xtensa/elf.h,
2372         config/xtensa/linux.h:  Update uses of ASM_OUTPUT_MEASURED_SIZE.
2373
2374 2002-07-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2375
2376         * Makefile.in (gengtype-lex.c): Fix error in last change.
2377
2378         * alpha/freebsd.h (TARGET_OS_CPP_BUILTINS): Add missing
2379         backslash.
2380
2381         * Makefile.in (vmsdbgout.o): Depend on function.h.
2382
2383         * vmsdbgout.c: Include function.h.
2384
2385 2002-07-28  Alan Modra  <amodra@bigpond.net.au>
2386
2387         * prefix.c (update_path): Don't strip single `.' path components
2388         unless stripping a later `..' component.  Exit loop as soon as
2389         a valid path is found.
2390
2391 2002-07-27  Roger Sayle  <roger@eyesopen.com>
2392
2393         * builtins.def [DEF_GCC_BUILTIN]: Require an explicit ATTRS
2394         argument.  Mark BUILT_IN_RETURN, BUILT_IN_EH_RETURN,
2395         BUILT_IN_LONGJMP and BUILT_IN_TRAP as noreturn, the ISO C99
2396         floating point unordered comparisons (e.g. __builtin_isgreater)
2397         as const, and leave the remaining GCC_BUILTINs unchanged.
2398
2399         * c-decl.c (builtin_function): No need to explicitly mark
2400         BUILT_IN_RETURN and BUILT_IN_EH_RETURN as noreturn.
2401
2402 2002-07-27  Roger Sayle  <roger@eyesopen.com>
2403
2404         * Makefile.in: rtlanal.o now depends upon real.h.
2405
2406         * flags.h [flag_signaling_nans]: New flag.
2407         [HONOR_SNANS]: New macro.
2408
2409         * toplev.c [flag_signaling_nans]: Initialize to false.
2410         (f_options): Add processing for "-fsignaling-nans".
2411         (set_fast_math_flags): Clear flag_signaling_nans with -ffast-math.
2412         (process_options): flag_signaling_nans implies flag_trapping_math.
2413
2414         * c-common.c (cb_register_builtins): Define __SUPPORT_SNAN__
2415         when -fsignaling-nans.  First step to implementing WG14's N965.
2416
2417         * fold-const.c (fold) [MULT_EXPR]: Conditionalize transforming
2418         1.0 * x into x, and -1.0 * x into -x on !HONOR_SNANS.
2419         [RDIV_EXPR]: Conditionalize x/1.0 into x on !HONOR_SNANS.
2420
2421         * simplify-rtx.c (simplify_relational_operation): Conditionalize
2422         transforming abs(x) < 0.0 into false on !HONOR_SNANS.
2423
2424         * rtlanal.c: #include real.c for TARGET_FLOAT_FORMAT definitions
2425         required by HONOR_SNANS.  (may_trap_p): Floating point DIV, MOD,
2426         UDIV, UMOD, GE, GT, LE, LT and COMPARE may always trap with
2427         -fsignaling_nans.  EQ and NE only trap for flag_signaling_nans
2428         not flag_trapping_math (i.e. HONOR_SNANS but not HONOR_NANS).
2429
2430         * doc/invoke.texi: Document new -fsignaling-nans compiler option.
2431
2432 2002-07-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2433
2434         * Makefile.in (gengtype-lex.c): Work around a bug in flex.
2435         * gengtype-lex.l (YY_USE_PROTOS): Undef.
2436         (YY_DECL): Define.
2437
2438 2002-07-27  Roger Sayle  <roger@eyesopen.com>
2439
2440         * doc/invoke.texi: Document that both -fno-builtin-foo and
2441         -fno-builtin are supported by the g++ front-end.
2442
2443 2002-07-27  Stan Shebs  <shebs@apple.com>
2444
2445         * configure.in: Rename config_gtfiles to target_gtfiles.
2446         * configure: Regenerate.
2447         * doc/gty.texi: Update reference.
2448         * config.gcc (powerpc-*-darwin*): Set target_gtfiles
2449         instead of appending to it.
2450
2451 2002-07-25  Aldy Hernandez  <aldyh@redhat.com>
2452
2453         * config/rs6000/rs6000.c (function_arg_advance): SPE vararg
2454         vectors are split into two registers.
2455         (function_arg): Same.
2456
2457 Thu Jul 26 23:00:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
2458
2459         * pa.md (extv): Check predicates before emitting extv_32.
2460
2461 2002-07-27  Alan Modra  <amodra@bigpond.net.au>
2462
2463         * config/rs6000/rs6000.c (rs6000_traceback_name): New var.
2464         (rs6000_traceback): New var.
2465         (rs6000_override_options): Set rs6000_traceback.
2466         (rs6000_output_function_epilogue): Implement traceback options.
2467         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add "traceback=".
2468         (rs6000_traceback_name): Declare.
2469
2470         * config/rs6000/rs6000.c (output_profile_hook): Don't generate profile
2471         label reference when NO_PROFILE_COUNTERS.
2472
2473 2002-07-26  Jason Merrill  <jason@redhat.com>
2474
2475         * function.c (assign_parms): Handle frontend-directed pass by
2476         invisible reference.
2477
2478 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
2479
2480         * doc/cppopts.texi: Update.
2481
2482 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
2483
2484         * cppmacro.c (_cpp_create_definition): Don't attempt redefinition
2485         warnings on assertions.
2486
2487 2002-07-26  Neil Booth  <neil@daikokuya.co.uk>
2488
2489         * c-common.h (RID_AND, RID_AND_EQ, RID_NOT, RID_NOT_EQ,
2490         RID_OR, RID_OR_EQ, RID_XOR, RID_XOR_EQ, RID_BITAND, RID_BITOR,
2491         RID_COMPL): Remove.
2492         * c-parse.in (rid_to_yy): Similarly.
2493
2494 2002-07-26  Jason Merrill  <jason@redhat.com>
2495
2496         * c-dump.c: Resurrect.
2497         * tree-dump.c: Move C-specific stuff to c-dump.c.
2498         * c-common.h: Declare c_dump_tree.
2499         * c-lang.c (LANG_HOOKS_TREE_DUMP_DUMP_TREE_FN): Define.
2500         * Makefile.in (C_AND_OBJC_OBJS): Add c-dump.o.
2501         (c-dump.o): New rule.
2502
2503 2002-07-26  Alan Modra  <amodra@bigpond.net.au>
2504
2505         * config/rs6000/rs6000.md: Enable patterns using rlwinm for
2506         PowerPC64.  Replace "T" and "S" constraints with "n" when the
2507         predicate will do.  Formatting fixes.
2508         (extzvsi_internal2): Use "andi.", "andis." and attr type of "compare"
2509         as for extzvsi_internal1.
2510
2511 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
2512
2513         * dwarfout.c (VERSION_ASM_OP, DERIV_BEGIN_LABEL_FMT,
2514         DERIV_END_LABEL_FMT): Remove.
2515         (SL_BEGIN_LABEL_FMT, SL_END_LABEL_FMT): Move.
2516
2517 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
2518
2519         * objc/objc-act.c (UTAG_STATICS, UTAG_PROTOCOL_LIST, USERTYPE):
2520         Remove.
2521
2522 2002-07-25  Stan Shebs  <shebs@apple.com>
2523
2524         * config/rs6000/rs6000.c (rs6000_emit_prologue): Remove unused
2525         local var dwarfp.
2526         (output_compiler_stub): Remove unused locals.
2527         (output_call): Always initialize line number.
2528
2529 Thu Jul 25 20:34:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
2530
2531         * sh.h (LOAD_EXTEND_OP): QImode zero-extends on SHmedia.
2532         * sh.md (truncdiqi2, movqi_media): Likewise.
2533
2534 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
2535
2536         * gcse.c (obstack_chunk_alloc): Remove.
2537         (gcse_alloc): Fix to count allocated bytes.
2538         * collect2.c (SYMBOL__MAIN): Remove.
2539
2540 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
2541
2542         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Only used if
2543         HAVE_TARGET_EXECUTABLE_SUFFIX.
2544
2545 Thu Jul 25 18:57:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
2546
2547         * rtl.h (mem_attrs): Spell out more clearly the roles of ALIGN,
2548         SIZE, EXPR and OFFSET.
2549
2550 2002-07-25  Richard Henderson  <rth@redhat.com>
2551
2552         * emit-rtl.c (set_mem_attributes): Fix size and alignment thinkos
2553         in ARRAY_REF of DECL_P case.
2554
2555 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
2556
2557         * doc/invoke.texi: Document -mabi=meabi, and expand on the EABI
2558         description.  Document -mips32, -mips64, and the associated -march
2559         values.  Describe the "mipsN" arguments to -march.  Say that the
2560         -mipsN options are equivalent to -march.  Reword the description
2561         of default type sizes.
2562         * toplev.h (target_flags_explicit): Declare.
2563         * toplev.c (target_flags_explicit): New var.
2564         (set_target_switch): Update target_flags_explicit.
2565         * config/mips/abi64.h (SUBTARGET_TARGET_OPTIONS): Undefine.
2566         * config/mips/elf64.h (MIPS_ISA_DEFAULT): Undefine.
2567         * config/mips/iris6.h (SUBTARGET_ASM_SPEC): -mabi=64 implies -mips3.
2568         * config/mips/isa3264.h (MIPS_ENABLE_EMBEDDED_O32): Undefine.
2569         * config/mips/mips.h (mips_cpu_info): New struct.
2570         (mips_cpu_string, mips_explicit_type_size_string): Remove.
2571         (mips_cpu_info_table, mips_arch_info, mips_tune_info): Declare.
2572         (MIPS_CPP_SET_PROCESSOR): New macro.
2573         (TARGET_CPP_BUILTINS): Declare a macro for each supported processor.
2574         Define _MIPS_ARCH and _MIPS_TUNE.
2575         (MIPS_ISA_DEFAULT): Don't provide a default value.  Instead...
2576         (MIPS_CPU_STRING_DEFAULT): Set to "from-abi" if neither it nor
2577         MIPS_ISA_DEFAULT were already defined.
2578         (MULTILIB_DEFAULTS): Add MULTILIB_ABI_DEFAULT.
2579         (TARGET_OPTIONS): Remove -mcpu and -mexplicit-type-size.
2580         (ABI_NEEDS_32BIT_REGS, ABI_NEEDS_64BIT_REGS): New.
2581         (GAS_ASM_SPEC): Remove -march, -mcpu, -mgp* and -mabi rules.
2582         (ABI_GAS_ASM_SPEC): Remove.
2583         (MULTILIB_ABI_DEFAULT, ASM_ABI_DEFAULT_SPEC): New macros.
2584         (ASM_SPEC): Add -mgp32, -mgp64, -march, -mabi=eabi and -mabi=o64.
2585         Invoke %(asm_abi_default_spec) if no ABI was specified.
2586         (CC1_SPEC): Remove ISA -> register-size rules.
2587         (EXTRA_SPECS): Remove abi_gas_asm_spec.  Add asm_abi_default_spec.
2588         * config/mips/mips.c (mips_arch_info, mips_tune_info): New vars.
2589         (mips_cpu_string, mips_explicit_type_size_string): Remove.
2590         (mips_cpu_info_table): New array.
2591         (mips_set_architecture, mips_set_tune): New fns.
2592         (override_options): Rework to make -mipsN equivalent to -march.
2593         Detect more erroneous cases, including those removed from CC1_SPEC.
2594         Don't change the ABI based on architecture, or vice versa.
2595         Unify logic with GAS.
2596         (mips_asm_file_start): Get architecture name from mips_arch_info.
2597         (mips_strict_matching_cpu_name_p, mips_matching_cpu_name_p): New fns.
2598         (mips_parse_cpu): Take the name of the option as argument.  Handle
2599         'from-abi'.  Raise an error if the option is wrong.
2600         (mips_cpu_info_from_isa): New fn.
2601
2602 2002-07-25  Richard Sandiford  <rsandifo@redhat.com>
2603
2604         * config/mips/mips.md (tablejump_mips161): Use gen_rtx_LABEL_REF.
2605         (tablejump_mips162): Likewise.
2606
2607 Thu Jul 25 10:23:41 2002  J"orn Rennecke <joern.rennecke@superh.com>
2608
2609         * simpify-rtx.c (simplify_subreg): Don't pass MODE_CC mode to
2610         int_mode_for_mode.
2611
2612 2002-07-25  Gabriel Dos Reis  <gdr@nerim.net>
2613
2614         * c-common.c (c_sizeof_or_alignof_type): Take a third argument for
2615         complaining.
2616         * c-common.h (c_sizeof): Adjust definition.
2617         (c_alignof): Likewise.
2618         * c-tree.h (c_sizeof_nowarn): Now macro.
2619         * c-typeck.c (c_sizeof_nowarn): Remove definition.
2620
2621 2002-07-25  Neil Booth  <neil@daikokuya.co.uk>
2622
2623         * c-decl.c (c_decode_option): No need to handle switches
2624         cpplib handles.
2625
2626 2002-07-24  Zack Weinberg  <zack@codesourcery.com>
2627
2628         * defaults.h (ASM_OUTPUT_TYPE_DIRECTIVE, ASM_OUTPUT_SIZE_DIRECTIVE,
2629         ASM_OUTPUT_MEASURED_SIZE): New default definitions of new macros.
2630         * doc/tm.texi: Document them.  Also document SIZE_ASM_OP,
2631         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
2632
2633         * config/elfos.h, config/netbsd-aout.h, config/openbsd.h,
2634         config/alpha/elf.h, config/arm/elf.h, config/avr/avr.h,
2635         config/cris/aout.h, config/i386/freebsd-aout.h,
2636         config/i386/sco5.h, config/ia64/ia64.c, config/ip2k/ip2k.h,
2637         config/m68k/m68kelf.h, config/m68k/m68kv4.h, config/m88k/m88k.h,
2638         config/mcore/mcore-elf.h, config/mips/elf.h, config/mips/elf64.h,
2639         config/mips/iris6.h, config/mips/linux.h, config/pa/pa-linux.h,
2640         config/pa/pa64-hpux.h, config/rs6000/sysv4.h,
2641         config/xtensa/elf.h, config/xtensa/linux.h:
2642         Use the new macros.
2643         Where possible, remove redundant definitions of SIZE_ASM_OP,
2644         TYPE_ASM_OP, and TYPE_OPERAND_FMT.
2645
2646 2002-07-24  Aldy Hernandez  <aldyh@redhat.com>
2647
2648         * config/rs6000/eabi.h: Define TARGET_SPE_ABI, TARGET_SPE,
2649         TARGET_ISEL, and TARGET_FPRS.
2650
2651         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
2652         -mabi=spe, -mabi=no-spe, and -misel=.
2653
2654         * config/rs6000/rs6000-protos.h: Add output_isel.
2655         Move vrsave_operation prototype here.
2656
2657         * config/rs6000/rs6000.md (sminsi3): Allow pattern for TARGET_ISEL.
2658         (smaxsi3): Same.
2659         (uminsi3): Same.
2660         (umaxsi3): Same.
2661         (abssi2_nopower): Disallow when TARGET_ISEL.
2662         (*ne0): Same.
2663         (negsf2): Change to expand and rename old pattern to *negsf2.
2664         (abssf2): Change to expand and rename old pattern to *abssf2.
2665
2666         New expanders: fix_truncsfsi2, floatunssisf2, floatsisf2,
2667         fixunssfsi2.
2668
2669         Change patterns that check for TARGET_HARD_FLOAT or
2670         TARGET_SOFT_FLOAT to also check TARGET_FPRS.
2671
2672         * config/rs6000/rs6000.c: New globals: rs6000_spe_abi,
2673         rs6000_isel, rs6000_fprs, rs6000_isel_string.
2674         (rs6000_override_options): Add 8540 case to
2675         processor_target_table.
2676         Set rs6000_isel for the 8540.
2677         Call rs6000_parse_isel_option.
2678         (enable_mask_for_builtins): New.
2679         (rs6000_parse_isel_option): New.
2680         (rs6000_parse_abi_options): Add spe and no-spe.
2681         (easy_fp_constant): Treat !TARGET_FPRS as soft-float.
2682         (rs6000_legitimize_address): Check for TARGET_FPRS when checking
2683         for TARGET_HARD_FLOAT.
2684         Add case for SPE_VECTOR_MODE.
2685         (rs6000_legitimize_reload_address): Handle SPE vector modes.
2686         (rs6000_legitimate_address): Disallow PRE_INC/PRE_DEC for SPE
2687         vector modes.
2688         Check for TARGET_FPRS when checking for TARGET_HARD_FLOAT.
2689         (rs6000_emit_move): Check for TARGET_FPRS.
2690         Add cases for SPE vector modes.
2691         (function_arg_boundary): Return 64 for SPE vector modes.
2692         (function_arg_advance): Check for TARGET_FPRS and
2693         Handle SPE vectors.
2694         (function_arg): Same.
2695         (setup_incoming_varargs): Check for TARGET_FPRS.
2696         (rs6000_va_arg): Same.
2697         (struct builtin_description): Un-constify mask field.  Move up in
2698         file.
2699         (bdesc_2arg): Un-constify and add SPE builtins.
2700         (bdesc_1arg): Same.
2701         (bdesc_spe_predicates): New.
2702         (bdesc_spe_evsel): New.
2703         (rs6000_expand_unop_builtin): Add SPE 5-bit literal builtins.
2704         (rs6000_expand_binop_builtin): Same.
2705         (bdesc_2arg_spe): New.
2706         (spe_expand_builtin): New.
2707         (spe_expand_predicate_builtin): New.
2708         (spe_expand_evsel_builtin): New.
2709         (rs6000_expand_builtin): Call spe_expand_builtin for SPE.
2710         (rs6000_init_builtins): Initialize SPE builtins.  Call
2711         rs6000_common_init_builtins.
2712         (altivec_init_builtins): Move all non-altivec builtin code to...
2713         (rs6000_common_init_builtins): ...here.  New function.
2714         (branch_positive_comparison_operator): Allow NE code for SPE.
2715         (ccr_bit): Return correct ccr bit for SPE fp.
2716         (print_operand): Emit crnor in 'D' case for SPE.
2717         New case 't'.
2718         Add SPE code for 'y' case.
2719         (rs6000_generate_compare): Generate rtl for SPE fp.
2720         (output_cbranch): Handle SPE hard floats.
2721         (rs6000_emit_cmove): Handle isel.
2722         (rs6000_emit_int_cmove): New.
2723         (output_isel): New.
2724         (rs6000_stack_info): Adjust stack frame so GPRs are saved in
2725         64-bits for SPE.
2726         (debug_stack_info): Add SPE info.
2727         (gen_frame_mem_offset): New.
2728         (rs6000_emit_prologue): Save GPRs in 64-bits for SPE abi.
2729         Change mode of frame pointer, when saving it, to Pmode.
2730         (rs6000_emit_epilogue): Restore GPRs in 64-bits for SPE abi.
2731         Misc cleanups and use gen_frame_mem_offset when appropriate.
2732
2733         * config/rs6000/rs6000.h (processor_type): Add PROCESSOR_PPC8540.
2734         (TARGET_SPE_ABI): New.
2735         (TARGET_SPE): New.
2736         (TARGET_ISEL): New.
2737         (TARGET_FPRS): New.
2738         (FIXED_SCRATCH): New.
2739         (RTX_COSTS): Add PROCESSOR_PPC8540.
2740         (ASM_CPU_SPEC): Add case for 8540.
2741         (TARGET_OPTIONS): Add isel= case.
2742         (rs6000_spe_abi): New.
2743         (rs6000_isel): New.
2744         (rs6000_fprs): New.
2745         (rs6000_isel_string): New.
2746         (UNITS_PER_SPE_WORD): New.
2747         (LOCAL_ALIGNMENT): Adjust for SPE.
2748         (HARD_REGNO_MODE_OK): Same.
2749         (DATA_ALIGNMENT): Same.
2750         (MEMBER_TYPE_FORCES_BLK): New.
2751         (FIRST_PSEUDO_REGISTER): Set to 113.
2752         (FIXED_REGISTERS): Add SPE registers.
2753         (reg_class): Same.
2754         (REG_CLASS_NAMES): Same.
2755         (REG_CLASS_CONTENTS): Same.
2756         (REGNO_REG_CLASS): Same.
2757         (REGISTER_NAMES): Same.
2758         (DEBUG_REGISTER_NAMES): Same.
2759         (ADDITIONAL_REGISTER_NAMES): Same.
2760         (CALL_USED_REGISTERS): Same.
2761         (CALL_REALLY_USED_REGISTERS): Same.
2762         (SPE_ACC_REGNO): New.
2763         (SPEFSCR_REGNO): New.
2764         (SPE_SIMD_REGNO_P): New.
2765         (HARD_REGNO_NREGS): Adjust for SPE.
2766         (VECTOR_MODE_SUPPORTED_P): Same.
2767         (REGNO_REG_CLASS): Same.
2768         (FUNCTION_VALUE): Same.
2769         (LIBCALL_VALUE): Same.
2770         (LEGITIMATE_OFFSET_ADDRESS_P): Same.
2771         (SPE_VECTOR_MODE): New.
2772         (CONDITIONAL_REGISTER_USAGE): Disable FPRs when target does FP on
2773         the GPRs.  Set FIXED_SCRATCH fixed in SPE case.
2774         (rs6000_stack): Add spe_gp_size, spe_padding_size,
2775         spe_gp_save_offset.
2776         (USE_FP_FOR_ARG_P): Check for TARGET_FPRS.
2777         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
2778         (SPE_CONST_OFFSET_OK): New.
2779         (rs6000_builtins): Add SPE builtins.
2780
2781         * testsuite/gcc.dg/ppc-spe.c: New.
2782
2783         * config/rs6000/eabispe.h: New.
2784
2785         * config/rs6000/spe.h: New.
2786
2787         * config/rs600/spe.md: New.
2788
2789         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Define
2790         __SIMD__ for TARGET_SPE.
2791
2792         * config.gcc: Add powerpc-*-eabispe* case.
2793         Add spe.h to user headers for powerpc.
2794
2795 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
2796
2797         * config/mips/elf.h (STARTFILE_SPEC): Undo previous change.
2798         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
2799         * config/mips/isa3264.h (STARTFILE_SPEC): Likewise.
2800
2801 2002-07-24  Richard Henderson  <rth@redhat.com>
2802
2803         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Use GOTO_SUBROUTINE_EXPR
2804         form when not optimizing.
2805
2806 2002-07-24  David Mosberger  <davidm@hpl.hp.com>
2807
2808         * config/ia64/ia64.c (gen_thread_pointer): Fix typo in marking
2809         thread_pointer_rtx as unchanging.
2810
2811 2002-07-24  Michael Matz  <matz@suse.de>
2812
2813         * ra-colorize.c (INV_REG_ALLOC_ORDER): New macro.
2814         (free_reg): Use it.
2815
2816 2002-07-24  Richard Earnshaw  <rearnsha@arm.com>
2817
2818         * arm.md (arm_buneq, arm_bltgt): put '\' before ';' in output
2819         pattern.
2820         (arm_buneq_reversed, arm_bltgt_reversed): Likewise.
2821         (movsicc, movsfcc, movdfcc): FAIL if UNEQ or LTGT.
2822
2823 2002-07-24  Chris Demetriou  <cgd@broadcom.com>
2824
2825         * config/mips/elf.h (STARTFILE_SPEC): Never include crt0.o.
2826         * config/mips/elf64.h (STARTFILE_SPEC): Likewise.
2827         * config/mips/isa3264.h (STARTFILE_SPEC): Do not redefine.
2828
2829 Wed Jul 24 17:59:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
2830
2831         * toplev.c (rest_of_compilation): Dump loops before clobbering
2832         the structure.
2833
2834 Wed Jul 24 17:23:16 CEST 2002  Jan Hubicka  <jh@suse.cz>
2835
2836         * rtlanal.c (keep_with_call_p): Avoid overflow in fixed_regs.
2837
2838 2002-07-24  Frank van der Linden  <fvdl@wasabisystems.com>
2839
2840         PR optimization/7291
2841         * config/i386/i386.c (ix86_expand_clrstr): Fix bzero alignment
2842         problem on x86_64.
2843
2844 2002-07-24  Gabriel Dos Reis  <gdr@nerim.net>
2845
2846         * pretty-print.h: Add macros from cp/error.c
2847
2848 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
2849
2850         * config/rs6000/rs6000-protos.h (mask_operand_wrap): Declare.
2851         (mask64_2_operand): Declare.
2852         (build_mask64_2_operands): Declare.
2853         (and64_2_operand): Declare.
2854         (extract_MB): Declare.
2855         (extract_ME): Declare.
2856         * config/rs6000/rs6000.c (mask64_operand): Allow all ones.  Remove
2857         CONST_DOUBLE code.
2858         (mask_operand_wrap): New insn predicate.
2859         (mask64_2_operand): Likewise.
2860         (and64_2_operand): Likewise.
2861         (build_mask64_2_operands): New function.
2862         (extract_MB): New function.
2863         (extract_ME): New function.
2864         (print_operand <case m,M>): Use extract_MB and extract_ME.
2865         (print_operand <case S>): Allow all ones.  Remove CONST_DOUBLE support.
2866         * config/rs6000/rs6000.h (EXTRA_CONSTRAINT): Add 't'.
2867         (PREDICATE_CODES): Add and64_2_operand, mask_operand_wrap and
2868         mask64_2_operand.  Remove CONST_DOUBLE from mask64_operand.
2869         * config/rs6000/rs6000.md (andsi3_internal3): New
2870         (andsi3_internal3+1): Enable split for powerpc64.
2871         (andsi3_internal3+2): New split.
2872         (andsi3_internal4): Renamed old andsi3_internal3.
2873         (andsi3_internal5): New.
2874         (andsi3_internal5+1): Enable split for powerpc64.
2875         (andsi3_internal5+2): New split.
2876         (andsi3_internal6, andsi3_internal7, andsi3_internal8): New.
2877         (anddi3): Handle 't' constraint.
2878         (anddi3+1): New split.
2879         (anddi3_internal2): Handle 't' constraint.
2880         (anddi3_internal2+1): New split.
2881         (anddi3_internal3): Handle 't' constraint.
2882         (anddi3_internal3+1): New split.
2883
2884 2002-07-24  Alan Modra  <amodra@bigpond.net.au>
2885
2886         * config/rs6000/rs6000.md: Remove scratch reg on insns using
2887         addze and similar (plus (comparison r1 r2) r3) insns.  Add
2888         missing scratch reg in one case.  Formatting fixes.
2889
2890 2002-07-24  Neil Booth  <neil@daikokuya.co.uk>
2891
2892         * cppexp.c (parse_defined): Mark macro used.
2893         * cpphash.h (struct cpp_macro): New member "used".
2894         (_cpp_mark_macro_used, _cpp_warn_if_unused_macro): New.
2895         (struct cpp_reader): New member.
2896         * cppinit.c (cpp_finish_options): Set first_unused_line.
2897         (cpp_finish): Warn of unused macros if requested.
2898         (OPT_TABLE): New switches.
2899         (cpp_handle_option): Handle them.
2900         * cpplib.c (do_undef): Warn if macro unused.
2901         (do_ifdef, do_ifndef): Mark macro used.
2902         * cpplib.h (struct cpp_options): New member.
2903         * cppmacro.c (_cpp_warn_if_unused_macro): New.
2904         (enter_macro_context): Mark macro used.
2905         (_cpp_create_definition): Mark macro unused; warn if unused
2906         when redefined.
2907         * cpptrad.c (scan_out_logcial_line, push_replacement_text):
2908         Mark macros used.
2909         * doc/cppopts.texi: Update.
2910
2911 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
2912
2913         * dwarf2out.c (SECTION_ASM_OP,
2914         ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
2915         * system.h (SECTION_ASM_OP): Poison.
2916         * tree.c (FILE_FUNCTION_PREFIX_LEN): Remove.
2917         * config/alpha/alpha-interix.h, config/mips/linux.h
2918         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
2919         * config/mmix/mmix-protos.h, config/mmix/mmix.c
2920         (mmix_asm_output_define_label_difference_symbol): Remove.
2921         * config/mmix/mmix.h
2922         (ASM_OUTPUT_DEFINE_LABEL_DIFFERENCE_SYMBOL): Remove.
2923         * doc/tm.texi: Remove documentation.
2924
2925 Tue Jul 23 21:49:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
2926
2927         * recog.c (asm_operand_ok): Allow float CONST_VECTORs for 'F'.
2928         (constrain_operands): Likewise.
2929         * regclass.c (record_reg_classes): Likewise.
2930         * reload.c (find_reloads): Likewise.
2931         * doc/md.texi: Likewise.
2932
2933         * reload.c (find_reloads_toplev): Use simplify_gen_subreg.
2934         * simplify-rtx.c (simplify_subreg): When converting to a non-int
2935         mode, try to convert to an integer mode of matching size first.
2936
2937         * simplify-rtx.x (simplify_subreg): When constructing a CONST_VECTOR
2938         from individual subregs, check that each subreg has been generated
2939         sucessfully.
2940
2941 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
2942
2943         * genautomata.c (VLA_HWINT_SHORTEN, VLA_HWINT_LAST): Remove.
2944         * df.c (HANDLE_SUBREG, FOR_EACH_BB_IN_BITMAP_REV,
2945         FOR_EACH_BB_IN_SBITMAP): Remove.
2946         * gcse.c (NEVER_SET, FOLLOW_BACK_EDGES): Remove.
2947         * haifa-sched.c (DONE_PRIORITY, MAX_PRIORITY, TAIL_PRIORITY,
2948         LAUNCH_PRIORITY, DONE_PRIORITY_P, LOW_PRIORITY_P): Remove.
2949         * loop.c (PREFETCH_BLOACK_IN_LOOP_MIN,
2950         PREFETCH_LIMIT_TO_SIMULTANEOUS): Remove.
2951         * regrename.c (REGNO_MODE_OK_FOR_BASE_P): Remove.
2952
2953 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
2954
2955         * pretty-print.h: New file.
2956
2957 2002-07-23      Paul Koning     <pkoning@equallogic.com>
2958
2959         * real.c (REAL_WORDS_BIG_ENDIAN): Make 1 for DEC.
2960         (LARGEST_EXPONENT_IS_NORMAL): Ditto.
2961         (VAX_HALFWORD_ORDER): Define (1 for DEC VAX, 0 otherwise).
2962         (TARGET_G_FLOAT): Default to 0 if not defined.
2963         (ieeetoe): New, common routine to convert target format floats
2964         to internal form.
2965         (e24toe, e53toe): Change to use ieeetoe, distinguish DEC
2966         vs. others.
2967         (e113toe): Change to use ieeetoe.
2968
2969 2002-07-23  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2970
2971         * real.c (REAL_WORDS_BIG_ENDIAN): Make sure it is 0 for DEC and 1 for
2972         IBM.
2973         (e53toe): Assume IEEE if non of DEC, IBM and C4X is defined.
2974         (e64toe): Remove special cases for DEC and IBM. Remove support for
2975         ARM_EXTENDED_IEEE_FORMAT.
2976         (e24toe): Remove special cases for DEC.
2977         (significand_size): Simplify. Indent.
2978         (ieee_format, ieee_24, ieee_53, ieee_64, ieee_113): New.
2979         (etoieee, toieee): New.
2980         (etoe113, toe113, etoe64, toe64, etoe53, toe53, etoe24, toe24): Use
2981         etoieee and toieee for IEEE arithmetic.
2982
2983 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
2984
2985         * doc/extend.texi: Say ISO C90, not ISO C89.
2986         * doc/invoke.texi: Likewise.
2987         * doc/standards.texi: Likewise.
2988
2989 2002-07-23  Steve Ellcey  <sje@cup.hp.com>
2990
2991         * gcc/explow.c (convert_memory_address): Fix conversion of CONSTs.
2992         Fix permutation of conversion and plus/mult.
2993         * gcc/builtins.c (expand_builtin_memcpy) Ensure return pointer is
2994         ptr_mode and not Pmode when POINTERS_EXTEND_UNSIGNED is defined.
2995         (expand_builtin_strncpy) Ditto.
2996         (expand_builtin_memset) Ditto.
2997
2998 2002-07-23  Gabriel Dos Reis  <gdr@nerim.net>
2999
3000         Fix PR/7363:
3001         * c-common.c (c_sizeof_or_alignof_type): New function.
3002         (c_alignof): Remove definition.
3003         * c-common.h (c_sizeof, c_alignof): Define as macros.
3004         (c_sizeof_or_alignof_type): Declare.
3005         (my_friendly_assert): Moved from cp/cp-tree.h
3006         * c-typeck.c (c_sizeof): Remove definition.
3007
3008 2002-07-23  Jan Hubicka  <jh@suse.cz>
3009
3010         * gcse.c (try_replace_reg): Use num_changes_pending.
3011         * recog.c (num_changes_pending): New function.
3012         (validate_replace_src): Use validate_repalce_src_group.
3013         (validate_replace_src_group): New.
3014         * recog.h (validate_repalce_src_group): New.
3015         (num_changes_pending): Likewise.
3016
3017 Tue Jul 23 12:16:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
3018
3019         * calls.c (emit_library_call_value_1): If
3020         FUNCTION_ARG_PASS_BY_REFERENCE is true, pretend this is neither
3021         libcall, const call nor pure call.
3022
3023 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
3024
3025         * config/m88k/m88k.h (SECTION_ASM_OP): Remove.
3026
3027 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
3028
3029         * vmsdbgout.c (SECTION_ASM_OP): Remove.
3030
3031 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
3032
3033         * config/i386/i386.c (AT_BP): Remove.
3034
3035 2002-07-23  Neil Booth  <neil@daikokuya.co.uk>
3036
3037         * defaults.h (obstack_chunk_alloc, obstack_chunk_free):
3038         Default definition.
3039         * gcse.c: Don't define obstack_chunk_free.
3040         * collect2.c, conflict.c, df.c, diagnostic.c, fix-header.c,
3041         flow.c, gcc.c, genattrtab.c, genautomata.c, genflags.c, gensupport.c,
3042         integrate.c, loop.c, ra.c, read-rtl.c, regrename.c, reload1.c,
3043         reorg.c, tlink.c, tree.c, config/arm/arm.c, objc/objc-act.c:
3044         Don't define obstack macros.
3045
3046 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
3047
3048         PR target/6744
3049         * config/m68hc11/m68hc11.c (m68hc11_z_replacement): Also replace
3050         ASM_OPERANDS instructions.
3051
3052 2002-07-22  Stephane Carrez  <stcarrez@nerim.fr>
3053
3054         PR target/7361
3055         * config/m68hc11/m68hc11.c (go_if_legitimate_address_internal): Accept
3056         constant addresses only on 68HC12.
3057
3058 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
3059
3060         * cppfiles.c (stack_include_file): Correct test of whether
3061         a dependency should be output.
3062
3063 2002-07-22  David Edelsohn  <edelsohn@gnu.org>
3064
3065         * collect2.c (is_ctor_dtor): Add other possible JOINER values.
3066
3067 2002-07-22  Richard Earnshaw  <rearnsha@arm.com>
3068
3069         * arm.md (movqi): If optimizing and we can create pseudos, use
3070         a ZERO_EXTEND to load from memory, then copy the result into the
3071         target.
3072         (movhi): Likewise, but only for ARMv4.
3073
3074 2002-07-22  Neil Booth  <neil@daikokuya.co.uk>
3075
3076         * ssa-ccp.c (PHI_PARMS): Remove.
3077
3078 2002-07-22  Richard Sandiford  <rsandifo@redhat.com>
3079
3080         * config/mips/mips.h (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS
3081         on big-endian targets.
3082
3083 2002-07-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3084
3085         * hwint.h (HOST_WIDE_INT_PRINT_DEC_SPACE,
3086         HOST_WIDE_INT_PRINT_UNSIGNED_SPACE,
3087         HOST_WIDEST_INT_PRINT_DEC_SPACE, HOST_WIDEST_INT_PRINT_DEC_SPACE):
3088         New formatting macros.
3089
3090         * ra-debug.c (dump_static_insn_cost): Avoid string concatenation.
3091
3092 Mon Jul 22 15:27:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
3093
3094         * rtlanal.c (subreg_regno_offset): Return correct offset for
3095         big endian paradoxical subregs.
3096
3097         * optabs.c (expand_vector_unop): Don't expand using sub_optab
3098         if we got the wrong mode.
3099
3100         * hwint.c (define HOST_WIDE_INT_PRINT_DEC_C): New define.
3101         * genrecog.c (write_switch, write_cond): Use it.
3102         * genemit.c (gen_exp): Likewise.
3103
3104 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
3105
3106         * c-decl.c (build_compound_literal): Set decl TREE_READONLY from TYPE.
3107
3108 2002-07-22  Jakub Jelinek  <jakub@redhat.com>
3109
3110         * c-decl.c (build_compound_literal): Defer compound literal decls
3111         until until file end to emit them only if they are actually used.
3112
3113 2002-07-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3114
3115         * ra-build.c (check_conflict_numbers): Hide unused function.
3116         (livethrough_conflicts_bb): Avoid automatic aggregate
3117         initialization.
3118         (parts_to_webs_1): Avoid `U' integer constant modifier.
3119         (conflicts_between_webs): Wrap a variable in the macro controlling
3120         its usage.
3121         * ra-debug.c (ra_debug_msg): Use VA_OPEN/VA_CLOSE.
3122         (dump_igraph, dump_graph_cost): Avoid string concatenation
3123         (dump_static_insn_cost): Avoid automatic aggregate
3124         initialization.
3125         * ra-rewrite.c (insert_stores): Avoid automatic aggregate
3126         initialization.
3127         (dump_cost): Avoid string concatenation
3128
3129 2002-07-21  Richard Henderson  <rth@redhat.com>
3130
3131         * expr.c (expand_expr) [TRY_FINALLY_EXPR]: Don't use
3132         GOTO_SUBROUTINE_EXPR when finally_block can be re-expanded.
3133
3134 2002-07-21  Richard Henderson  <rth@redhat.com>
3135
3136         * unroll.c (find_splittable_givs): Do not split DEST_ADDR givs
3137         that are not unrolled completely.
3138
3139 2002-07-21  Richard Henderson  <rth@redhat.com>
3140
3141         * loop.h (LOOP_AUTO_UNROLL): Rename from LOOP_FIRST_PASS.
3142         * loop.c (strength_reduce): Update.
3143         * toplev.c (rest_of_compilation): Do unrolling in the first
3144         loop pass, not the second.
3145
3146 2002-07-21  Richard Henderson  <rth@redhat.com>
3147
3148         * emit-rtl.c (set_mem_attributes): Preserve indirection of PARM_DECL
3149         when flag_argument_noalias == 2.
3150         * alias.c (nonoverlapping_memrefs_p): Handle that.
3151         * print-rtl.c (print_mem_expr): Likewise.
3152
3153 2002-07-21  Hartmut Schirmer  <hartmut.schirmer@arcor.de>
3154
3155         * libgcc2.c (__divdi3, __moddi3): Use unary minus operator
3156         instead of __negdi2 directly.
3157
3158 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
3159
3160         * gengenrtl.c (gencode): Don't define obstack_alloc_rtx.
3161         * function.c (SYMBOL__MAIN): Remove definition.
3162         * global.c (SET_CONFLICT, REGBITP, ALLOCNO_LIVE_P): Remove.
3163         * predict.c (PROB_NEVER, PROB_LIKELY, PROB_UNLIKELY): Remove.
3164         * profile.c (GCOV_INDEX_TO_BB): Remove.
3165         * sched-rgn.c (ABS_VALUE, MIN_DIFF_PRIORITY, MIN_PROB_DIFF): Remove.
3166         * simplify-rtx.c (FIXED_BASE_PLUS_P): Remove.
3167
3168 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
3169
3170         * c-lex.c (GET_ENVIRONMENT): Remove.
3171         * collect2.c (GET_ENV_PATH_LIST): Remove.
3172         (prefix_from_env): Use GET_ENVIRONMENT.
3173         * cppinit.c (GET_ENV_PATH_LIST): Remove.
3174         (init_standard_includes): Use GET_ENVIRONMENT.
3175         * defaults.h (GET_ENVIRONMENT): Define here if not already.
3176         * gcc.c (GET_ENV_PATH_LIST): Remove.
3177         (make_relative_prefix, process_command): Update.
3178         * protoize.c (GET_ENV_PATH_LIST): Remove.
3179         (do_processing): Update.
3180
3181 2002-07-21  Gabriel Dos Reis  <gdr@nerim.net>
3182
3183         * c-decl.c (build_array_declarator): Say 'ISO C90', not 'ISO C89'.
3184         (grokdeclarator): Likewise.
3185         * c-format.c (C_STD_NAME): Likewise.
3186         * c-lex.c (interpret_integer): Likewise.
3187         * c-typeck.c (build_array_ref): Likewise.
3188         * cpplex.c (_cpp_lex_direct): Likewise.
3189         * toplev.c (documented_lang_options): Likewise.
3190
3191 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
3192
3193         * c-format.c (T99_I, T99_UI): Remove.
3194
3195 2002-07-21  Neil Booth  <neil@daikokuya.co.uk>
3196
3197         * c-typeck.c (SAVE_SPELLING_DEPTH): Remove.
3198
3199 Sun Jul 21 21:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
3200
3201         * gcse.c (do_local_cprop): Do not extend lifetimes of registers set by
3202         do_local_cprop.
3203
3204 2002-07-21  Andreas Jaeger  <aj@suse.de>
3205
3206         * reload1.c (fixup_abnormal_edges): Remove unused variable.
3207
3208 2002-07-21  Bernd Schmidt  <bernds@redhat.com>
3209
3210         Improvements for the ifcvt pass from Michael Meissner, with patches
3211         by Richard Sandiford <rsandifo@redhat.com>
3212         * basic-block.h (struct ce_if_block, ce_if_block_t): New types.
3213         * ifcvt.c (cond_exec_changed_p): New static variable.
3214         (last_active_insn): New function, renamed from last_active_insn_p
3215         and changed to return the last active insn in a basic block. All
3216         callers updated.
3217         (block_fallthru): New function.
3218         (cond_exec_process_insns): New argument CE_INFO.  Pass it to
3219         IFCVT_MODIFY_INSN.  All callers updated.
3220         Return false if START or END are NULL.
3221         Handle case where we're processing an insn that is already
3222         conditional.
3223
3224         (noce_process_if_block): CE_INFO argument rather than
3225         multiple args containing the involved basic blocks.  All callers
3226         changed.
3227         (process_if_block, merge_if_block, find_if_block,
3228         cond_exec_process_if_block): Likewise.
3229
3230         (cond_exec_process_if_block): New arg DO_MULTIPLE_P.  All callers
3231         changed.
3232         Use new function last_active_insn to simplify some code.
3233         New code to handle multiple tests.
3234         Call IFCVT_MODIFY_CANCEL in all failure cases, otherwise set
3235         cond_exec_changed_p to TRUE.
3236
3237         (process_if_block): New code to handle multiple tests.
3238         (merge_if_block): Likewise.
3239         (find_if_header): New arg PASS.  Changed to return the currently
3240         processed basic block or NULL instead of true/false. All callers
3241         changed.
3242         Call IFCVT_INIT_EXTRA_FIELDS.
3243         (block_jumps_and_fallthru_p): New function.
3244         (find_if_block): Discover opportunities to convert multiple tests.
3245         Add additional debugging output.
3246         Update the ce_info structure before returning.
3247
3248         (if_convert): Run multiple passes of if-conversion.
3249         * doc/tm.texi (IFCVT_MODIFY_TESTS, IFCVT_MODIFY_INSN,
3250         IFCVT_MODIFY_FINAL, IFCVT_MODIFY_CANCEL, IFCVT_MODIFY_MULTIPLE_TESTS,
3251         IFCVT_INIT_EXTRA_FIELDS, IFCVT_EXTRA_FIELDS): Update documentation for
3252         these macros.
3253
3254 Sun Jul 21 00:54:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
3255
3256         * gcse.c: Include cselib.h
3257         (constptop_register): Break out from ...
3258         (cprop_insn): ... here; kill basic_block argument.
3259         (do_local_cprop, local_cprop_pass): New functions.
3260         (one_cprop_pass): Call local_cprop_pass.
3261
3262 2002-07-20  Roger Sayle  <roger@eyesopen.com>
3263
3264         * simplify-rtx.c (simplify_relational_operation): Optimize
3265         abs(x) < 0.0 (and abs(x) >= 0.0 when using -ffast-math).
3266
3267 2002-07-20  Michae Matz  <matz@suse.de>
3268
3269         * ra-build.c: (remember_web_was_spilled): Use GENERAL_REGS.
3270
3271 2002-07-20  Neil Booth  <neil@daikokuya.co.uk>
3272
3273         * cppexp.c (struct op): Add token pointer.
3274         (check_promotion, CHECK_PROMOTION): New.
3275         (optab): Update.
3276         (_cpp_parse_expr): Update, use token pointer of struct op.
3277         (reduce): Warn about change of sign owing to promotion.
3278         * cppinit.c (cpp_handle_option): New warning if -Wall.
3279         * cpplib.h (struct cpp_options): New member.
3280
3281 2002-07-19  David Edelsohn  <edelsohn@gnu.org>
3282
3283         * config/rs6000/rs6000.md: Remove ppc630 fpcompare from single
3284         fpu list.  Separate Power4 compare and delayed_compare.  Correct
3285         Power4 fpcompare.
3286         (fix_truncdfsi2_internal): Restore FPR preference.
3287         * config/rs6000/t-aix43 (MULTILIB_MATCHES): Add mcpu?power3,
3288         mcpu?power4, mcpu?604e.  Remove mpower, mpower2, mpowerpc.
3289
3290 2002-07-19  Momchil Velikov <velco@fadata.bg>
3291
3292         * reload1.c (reload_as_needed): Duplicate oldpat.
3293
3294 2002-07-20  Alan Modra  <amodra@bigpond.net.au>
3295
3296         PR optimization/7130
3297         * loop.h (struct loop_info): Add "preconditioned".
3298         * unroll.c (unroll_loop): Set it.
3299         * doloop.c (doloop_modify_runtime): Correct count for unrolled loops.
3300
3301 2002-07-19  Zack Weinberg  <zack@codesourcery.com>
3302
3303         * rtl.def (CODE_LABEL): Remove slot 8.
3304         * rtl.h (struct rtx_def): Document new uses of jump and call fields.
3305         (LABEL_ALTERNATE_NAME): Delete.
3306         (LABEL_KIND, SET_LABEL_KIND, LABEL_ALT_ENTRY_P): New.
3307         * defaults.h: Remove default for ASM_OUTPUT_ALTERNATE_LABEL_NAME.
3308
3309         * final.c (output_alternate_entry_point): New.
3310         (final_scan_insn): Use it instead of
3311         ASM_OUTPUT_ALTERNATE_LABEL_NAME.  Do not consider possibility
3312         of a case label being an alternate entry point.
3313
3314         * cfgbuild.c (make_edges, find_bb_boundaries): Use LABEL_ALT_ENTRY_P.
3315         * emit-rtl.c (gen_label_rtx): Adjust call to gen_rtx_CODE_LABEL.
3316         Do not clear LABEL_NUSES (unnecessary) or LABEL_ALTERNATE_NAME
3317         (field deleted).
3318         * print-rtl.c, ra-debug.c: Update code to output CODE_LABELs.
3319
3320         * doc/rtl.texi: Document LABEL_KIND, SET_LABEL_KIND, and
3321         LABEL_ALT_ENTRY_P; not LABEL_ALTERNATE_NAME.
3322         * doc/tm.texi: Delete documentation of
3323         ASM_OUTPUT_ALTERNATE_LABEL_NAME.
3324
3325 2002-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3326
3327         * config/mips/iris5gas.h (DWARF2_DEBUGGING_INFO): Define.
3328         (PREFERRED_DEBUGGING_TYPE): Use DWARF2_DEBUG.
3329         (LINK_SPEC): Define.
3330         (STARTFILE_SPEC): Define.
3331         (ENDFILE_SPEC): Define.
3332
3333         * config/mips/iris6-o32.h (LINK_SPEC): Move ...
3334         * config/mips/iris6-o32-as.h (LINK_SPEC): ... here.
3335
3336         * config/mips/iris6-o32-gas.h: New file.
3337         * config.gcc (mips-sgi-irix6*o32): Use it.
3338
3339         * config/mips/t-iris5-gas: New file.
3340         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
3341
3342 2002-07-19  Neil Booth  <neil@daikokuya.co.uk>
3343
3344         * cppexp.c (ALWAYS_EVAL): Remove.
3345         (optab, reduce): Always evaluate.
3346         (num_unary_op, num_binary_op, num_div_op): Issue diagnostics
3347         only if not skipping evaluation.
3348
3349 2002-07-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3350
3351         * config/avr/avr.c (debug_hard_reg_set): Remove.
3352
3353 2002-07-19  Chris Demetriou  <cgd@broadcom.com>
3354
3355         * gcc.c (cpp_options): Include "%1" (cc1_spec).
3356
3357 2002-07-19  Richard Henderson  <rth@redhat.com>
3358
3359         * loop.c (loop_givs_rescan): Delete the REG_EQUAL note, not the insn.
3360
3361 2002-07-19  Alan Modra  <amodra@bigpond.net.au>
3362
3363         * prefix.c (update_path): Don't zap single `.' path components
3364         unless followed by another `.' and fix typo last patch.
3365
3366 2002-07-18  Neil Booth  <neil@daikokuya.co.uk>
3367
3368         * cppexp.c (cpp_num_mul): Remove unused parameter.
3369         (UNARY, BINARY, OTHER, binary_handler): Remove.
3370         (ALWAYS_EVAL): New.
3371         (optab): Update.
3372         (reduce): Refactor to a large switch, don't use a function
3373         pointer.
3374
3375 2002-07-18  Bo Thorsen  <bo@berlioz.suse.de>
3376
3377         * config/i386/linux64.h (STARTFILE_PREFIX_SPEC): Define this always.
3378
3379 Thu Jul 18 19:39:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
3380
3381         * sh-protos.h (sh_expand_unop_v2sf): Move inside #ifdef RTX_CODE guard.
3382         (sh_expand_binop_v2sf): Likewise.
3383         * sh.c (machine_dependent_reorg): Add move for UNSPEC_MOVA.
3384         (int_gpr_dest, trunc_hi_operand): New functions.
3385         * sh.h (PREDICATE_CODES): Add any_register_operand, int_gpr_dest and
3386         trunc_hi_operand.
3387         (SPECIAL_MODE_PREDICATES, any_register_operand): Define.
3388         * sh.md (cmpeqdi_t+1): Remove comments that genrecog warns about.
3389         (adddi3_compact+1, subdi3_compact+1, ashlsi3_n+1, ashlhi3+1): Likewise.
3390         (ashrsi2_16+1, ashrsi2_31+1, lshrsi3_n+1, ashrdi3+[12]): Likewise.
3391         (and_shl_scratch+[12], zero_extendhidi2+1): Likewise.
3392         (zero_extendhisi2_media+1, extendhidi2+1, extendqidi2+1): Likewise.
3393         (extendhisi2_media+1, extendqisi2_media+1): Likewise.
3394         (movsi_media_nofpu+[12], movhi_media+1, movdi_media_nofpu+1): Likewise.
3395         (movdi_const_16bit+[12], movdf_i4+[123], reload_outdf+[2-5]): Likewise.
3396         (movsf_ie+1): Likewise.
3397         (loaddi_trunc): Use int_gpr_dest predicate.
3398         (use_sfunc_addr, indirect_jump_scratch, sibcall_compact): Add mode(s).
3399         (mova, mova_const, GOTaddr2picreg, ptrel, casesi_worker_0): Likewise.
3400         (casesi_worker_0+[12], casesi_worker): Likewise.
3401         (shcompact_preserve_incoming_args): Likewise.
3402         (mov_nop): Use any_register_operand predicate.
3403         (mperm_w0): Use trunc_hi_operand predicate.
3404
3405 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3406
3407         * pa-linux.h (DWARF2_UNWIND_INFO): Delete define.
3408         * pa.h (EH_RETURN_DATA_REGNO): Revise TARGET_64BIT and correct
3409         numbering.
3410
3411 2002-07-18  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3412
3413         * pa.c (output_deferred_plabels): Remove unused millicode enum mulU.
3414
3415 2002-07-18  Richard Henderson  <rth@redhat.com>
3416
3417         PR optimization/7147
3418         * ifcvt.c (noce_get_condition): Make certain that the condition
3419         is valid at JUMP.
3420
3421 Thu Jul 18 13:44:51 2002  J"orn Rennecke <joern.rennecke@superh.com>
3422
3423         * sh.c (barrier_align, push): Shut up compiler warnings.
3424         (initial_elimination_offset,sh_media_init_builtins): Likewise.
3425         (reg_no_subreg_operand): Delete.
3426
3427 2002-07-17  Bo Thorsen  <bo@suse.de>
3428
3429         * config/i386/linux64.h (LINK_SPEC): Remove bogus -Y option.
3430         (STARTFILE_PREFIX_SPEC): Define for NATIVE_CROSS compilations.
3431         (STARTFILE_SPEC): Remove hardcoded library paths.
3432         (ENDFILE_SPEC): Likewise.
3433
3434 Thu Jul 18 09:38:59 CEST 2002  Jan Hubicka  <jh@suse.cz>
3435
3436         * gcse.c (hoist_expr_reaches_here_p):  Stop once expr_bb is reached.
3437
3438         * gcse.c (try_replace_reg): Do not return false positives.
3439
3440 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
3441
3442         * prefix.c: (update_path): Strip ".." components when prior dir
3443         doesn't exist.  Pass correct var to UPDATE_PATH_HOST_CANONICALIZE.
3444
3445         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Remove 64-bit support.
3446         (ASM_OUTPUT_REG_POP): Likewise.
3447
3448 2002-07-18  Alan Modra  <amodra@bigpond.net.au>
3449
3450         * config/rs6000/rs6000.c (first_reg_to_save): Remove bogus
3451         adjustments to first_reg for profiling case.
3452         (output_function_profiler): Correct lr save slot for ABI_AIX_NODESC.
3453         Disable profiling for 64 bit code on both ABI_V4 and ABI_AIX_NODESC.
3454         Save static chain reg to sp + 12 on ABI_AIX_NODESC.
3455         * config/rs6000/sysv4.h (ASM_OUTPUT_REG_PUSH): Define.
3456         (ASM_OUTPUT_REG_POP): Define.
3457         * config/rs6000/linux64.h (ASM_OUTPUT_REG_PUSH): Undef.
3458         (ASM_OUTPUT_REG_POP): Undef.
3459
3460 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
3461
3462         * cpplib.c (do_sccs): Handle #sccs on all systems.
3463         * system.h (SCCS_DIRECTIVE): Poison.
3464         * config/darwin.h, config/freebsd.h, config/netbsd.h,
3465         config/ptx4.h, config/svr3.h, config/svr4.h, config/alpha/elf.h,
3466         config/arm/linux-elf.h, config/c4x/c4x.h, config/d30v/d30v.h,
3467         config/i370/i370.h, config/i386/gas.h, config/i386/sco5.h,
3468         config/i960/i960.h, config/m68hc11/m68hc11.h, config/m68k/3b1.h,
3469         config/m68k/3b1g.h, config/m68k/crds.h, config/m68k/mot3300.h,
3470         config/m68k/pbb.h, config/m88k/m88k.h, config/mips/mips.h,
3471         config/sparc/pbd.h, config/stormy16/stormy16.h, config/vax/vaxv.h:
3472         Remove all references to SCCS_DIRECTIVE.
3473         * doc/cpp.texi, doc/tm.texi: Update.
3474
3475 Wed Jul 17 19:23:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
3476
3477         * regrename.c (maybe_mode_change): New function.
3478         (find_oldest_value_reg, copyprop_hardreg_forward_1): Use it.
3479
3480 2002-07-17  Rodney Brown  <rbrown64@csc.com.au>
3481
3482         * config/i386/i386.c (ix86_expand_int_movcc): In the general case
3483         suppress addition when either ct or cf are zero.
3484
3485 2002-06-17  Eric Botcazou <ebotcazou@multimania.com>
3486             Glen Nakamura <glen@imodulo.com>
3487
3488         PR optimization/6713
3489         * loop.c (loop_givs_rescan): Explicitly delete the insn that
3490         sets a non-replaceable giv after issuing the new one.
3491
3492 2002-07-17  Neil Booth  <neil@daikokuya.co.uk>
3493
3494         * cppexp.c (cpp_interpret_integer, append_digit, parse_defined,
3495         eval_token): Clarify and correct use of "bool" variables.
3496         * cpplib.h (struct cpp_options): Similarly.
3497         * cppmacro.c (parse_params, _cpp_save_parameter): Ditto.
3498         * cpptrad.c (recursive_macro): Similarly.
3499
3500 Wed Jul 17 17:08:06 2002  J"orn Rennecke <joern.rennecke@superh.com>
3501
3502         * config/sh/lib1funcs.asm (udivsi3_i4): Implement SHcompact version in
3503         SHmedia code.
3504
3505         * sh.md (cmpgtudi_media): Remove spurious @.
3506
3507         * config/sh/lib1funcs.asm (FMOVD_WORKS): Don't define for little endian.
3508         * sh.h (OVERRIDE_OPTIONS): Don't set FMOVD_BIT for little endian.
3509
3510         * config/sh/lib1funcs.asm (init_trampoline): New entry point.
3511         * sh-protos.h (sh_initialize_trampoline): Declare.
3512         * sh.c (sh_initialize_trampoline): New function.
3513         * sh.h (TRAMPOLINE_SIZE): Only 24 for TARGET_SHMEDIA32.
3514         (TRAMPOLINE_ALIGNMENT): Need cache-line alignment for TARGET_SHMEDIA.
3515         (INITIALIZE_TRAMPOLINE): Call sh_initialize_trampoline.
3516         (TRAMPOLINE_ADJUST_ADDRESS): Not needed for SHcompact.
3517         * sh.md (initialize_trampoline, double_shori): New patterns.
3518         (initialize_trampoline_compact): Likewise.
3519         (shmedia32_initialize_trampoline_big): Remove.
3520         (shmedia32_initialize_trampoline_little): Likewise.
3521
3522         * sh-protos.h (binary_float_operator): Remove declaration.
3523         (sh_expand_unop_v2sf, sh_expand_binop_v2sf): Declare.
3524         * sh.c (print_operand, case 'N'): Check against CONST0_RTX.
3525         (unary_float_operator, sh_expand_unop_v2sf): New functions.
3526         (sh_expand_binop_v2sf): Likewise.
3527         (zero_vec_operand): Delete.
3528         (SH_BLTIN_UDI): New builtin shared signature define.  Renumbered
3529         all non-shared ones.
3530         (bdesc): Change all the mextr builtins to use SH_BLTIN_UDI.
3531         Enable nsb and byterev.
3532         * sh.h (CONDITIONAL_REGISTER_USAGE): Initialize DF_HI_REGS.
3533         (HARD_REGNO_MODE_OK): Allow TImode in fp regs.  Allow V2SFmode
3534         in general regs.
3535         (enum reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add DF_HI_REGS.
3536         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.  Remove clause for
3537         immediate operands.
3538         (SECONDARY_INPUT_RELOAD_CLASS): Add clause for immediate operands.
3539         Add DF_HI_REGS.
3540         (CLASS_CANNOT_CHANGE_MODE, CLASS_CANNOT_CHANGE_MODE_P): Allow
3541         lowpart fp regs - only for big endian for now.
3542         (LEGITIMATE_CONSTANT_P): Don't allow non-zero float vectors
3543         when FPU is in use.
3544         (EXTRA_CONTRAINT_U): Check against CONST0_RTX.
3545         (LOAD_EXTEND_OP): NIL for SImode.
3546         (REGISTER_MOVE_COST): Add DF_HI_REGS.  Const for moves between
3547         general and fp registers is 4.
3548         PREDICATE_CODES: Amend binary_float_operator entry.
3549         Remove zero_vec_operand.  Add unary_float_operator.
3550         * sh.md (udivsi3_i4_media): Use truncate instead of paradoxical
3551         subreg SET_DEST.
3552         (truncdisi2, truncdihi2, movv2sf): Allow memory destinations.
3553         (truncdiqi2): Do sign extension.
3554         (movsi_media, movdi_media): Allow to use r63 to an fp register.
3555         (movdf_media, movsf_media): Likewise.
3556         (movv2sf_i, movv2sf_i+1): Don't use f{ld,st}.p or SUBREGS.
3557         Collapse to one define_insn_and_split.  Allow immediate sources.
3558         (addv2sf3, subv2sf3, mulv2sf3, divv2sf3): New patterns.
3559         (movv4sf_i): Allow immediate sources.  Use simplify_gen_subreg.
3560         (movv4sf): Allow immediate sources.
3561         (movsf_media_nofpu+1): Don't split moves to FP registers.
3562         (unary_sf_op, binary_sf_op, mshflo_w_x, concat_v2sf): New patterns.
3563         (movv8qi_i+3): Check against CONST0_RTX.
3564         (mextr1, mextr2. mextr3. mextr4, mextr5, mextr6, mextr7): Use DImode
3565         for input and output operands.  Fix argument 3 to gen_mextr_rl.
3566         (mmul23_wl, mmul01_wl, mmulsum_wq_i): s/const_vector/parallel/
3567         (msad_ubq_i, mshf4_b, mshf0_b, mshf4_l, mshf0_l, mshf4_w): Likewise.
3568         (mshf0_w, fipr, ftrv): Likewise.
3569         (mshfhi_l_di): Now insn_and_split.  Can handle FP regs.
3570
3571 2002-07-17  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
3572
3573         * arm.h (ARM_NUM_INTS, ARM_NUM_REGS, ARM_NUM_REGS2): Renamed from
3574         NUM_INTS, NUM_REGS and ARM_NUM_REGS2 respectively.  All uses changed.
3575         * arm.c: Similarly.
3576
3577 2002-07-17  Richard Sandiford  <rsandifo@redhat.com>
3578
3579         * config/mips/mips-protos.h (mips_sign_extend): Declare.
3580         * config/mips/mips.h (MASK_DEBUG_H, TARGET_DEBUG_H_MODE): Remove.
3581         (TARGET_SWITCHES): Remove debugh.
3582         (ISA_HAS_TRUNC_W): New macro.
3583         (CLASS_CANNOT_CHANGE_MODE): Include FP_REGS if TARGET_FLOAT64.
3584         (PREDICATE_CODES): Remove se_nonimmediate_operand.
3585         * config/mips/mips.c (movdi_operand): Allow sign-extensions of
3586         any SImode move_operand.
3587         (se_nonimmediate_operand): Remove.
3588         (mips_sign_extend): New.
3589         (mips_move_2words): Use it for sign-extended source operands.
3590         (override_options): Allow integers to be put into single FPRs.
3591         (mips_secondary_reload_class): Handle integers in float registers.
3592         * config/mips/mips.md (extendsidi2): Turn into a define_expand.
3593         (fix_truncsfsi2, fix_truncdfsi2): Likewise.
3594         (fix_truncdfsi2_insn, fix_truncdfsi2_macro): New.
3595         (fix_truncsfsi2_insn, fix_truncsfsi2_macro): New.
3596         (fix_truncdfdi2): Provide only a single alternative, in which the
3597         integer is in a float register.  Depend on TARGET_FLOAT64 rather
3598         than TARGET_64BIT.
3599         (fix_truncsfdi2, floatdidf2, floatdisf2): Likewise.
3600         (floatsidf2, floatsisf2): Likewise, but no TARGET_FLOAT64 dependency.
3601         (movdi_internal2): Don't allow the source operand to be sign-extended.
3602         Add alternatives for float registers.
3603         (*movdi_internal2_extend): New.  Version of movdi_internal2 that
3604         allows sign-extension.
3605         (*movdi_internal2_mips16): Name the existing mips16 movdi pattern.
3606         (movsi_internal2): Rename to movsi_internal.  Add alternatives for
3607         float registers.  Remove TARGET_DEBUG_H_MODE test.
3608         (movhi_internal1): Rename to movhi_internal.  Don't check
3609         TARGET_DEBUG_H_MODE.  Fix transposed *d and *f source constraints.
3610         (movqi_internal1): Rename to movqi_internal and remove
3611         TARGET_DEBUG_H_MODE dependency.
3612         (movsi_internal1, movhi_internal2, movqi_internal2): Remove.
3613
3614 2002-07-16  Jim Wilson  <wilson@redhat.com>
3615
3616         * toplev.c (lang_dependent_init): Create function context for
3617         init_expr_once.
3618
3619 2002-07-16  Hans-Peter Nilsson  <hp@axis.com>
3620
3621         * config/cris/linux.h (CRIS_LINK_SUBTARGET_SPEC): Don't
3622         --gc-sections if -r.
3623         * config/cris/cris.h: Ditto.
3624
3625 2002-07-16  Rodney Brown  <rbrown64@csc.com.au>
3626
3627         * config/i386/i386.c (ix86_expand_int_movcc): In the case where
3628         the comparison directly gives a mask suppress addition when cf is
3629         zero by complementing the mask.
3630
3631 2002-07-16  Nathanael Nerode  <neroden@gcc.gnu.org>
3632
3633         * Makefile.in: Delete references to enquire.
3634         * enquire.c: Move to contrib.
3635
3636 2002-07-16  Stan Shebs  <shebs@apple.com>
3637
3638         * config/darwin.h (ASM_OUTPUT_LABEL): Move to here from
3639         config/rs6000/darwin.h.
3640         (ASM_OUTPUT_SKIP): Ditto.
3641         (TEXT_SECTION_ASM_OP): Ditto.
3642         (DATA_SECTION_ASM_OP): Ditto.
3643         (ASM_APP_ON): Define.
3644         (ASM_APP_OFF): Define.
3645         * config/rs6000/darwin.h (ASM_OUTPUT_LABEL, ASM_OUTPUT_SKIP,
3646         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP): Remove.
3647
3648         * config/darwin.c (func_name_maybe_scoped): Remove unused decl.
3649         (machopic_function_base_name): Declare result to be const.
3650         (machopic_non_lazy_ptr_name): Ditto.
3651         (machopic_stub_name): Ditto.
3652         * config/darwin-protos.h: Ditto for the prototypes.
3653
3654 Wed Jul 17 00:22:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3655
3656         * m68hc11.c (m68hc11_reorg): Do not rebuild CFG.
3657
3658 Wed Jul 17 00:20:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
3659
3660         * i386.md (prefetch): Fix for 64bit mode.
3661         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
3662
3663 Wed Jul 17 00:19:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
3664
3665         * i386.h (MACHINE_DEPENDENT_REORG): New macro.
3666         * i386.c (x86_machine_dependent_reorg): New function.
3667         * i386-protos.h (x86_machine_dependent_reorg): Declare.
3668
3669 2002-07-16  Zack Weinberg  <zack@codesourcery.com>
3670
3671         * builtins.c (std_expand_builtin_va_start): Remove unused
3672         first argument.
3673         (expand_builtin_va_start): Call EXPAND_BUILTIN_VA_START and
3674         std_expand_builtin_va_start with just two arguments.
3675         * expr.h: Update prototypes.
3676
3677         * alpha-protos.h, alpha.h, alpha.c, arc-protos.h, arc.h,
3678         arc.c, d30v-protos.h, d30v.h, d30v.c, i386-protos.h, i386.h,
3679         i386.c, i960-protos.h, i960.h, i960.c, m88k-protos.h, m88k.h,
3680         m88k.c, mips-protos.h, mips.h, mips.c, mn10300-protos.h,
3681         mn10300.h, mn10300.c, pa-protos.h, pa.h, pa.c,
3682         rs6000-protos.h, rs6000.h, rs6000.c, s390-protos.h, s390.h,
3683         s390.c, sh-protos.h, sh.h, sh.c, sparc-protos.h, sparc.h,
3684         sparc.c, stormy16-protos.h, stormy16.h, stormy16.c,
3685         xtensa-protos.h, xtensa.h, xtensa.c:  Remove unused first
3686         argument from all implementations of EXPAND_BUILTIN_VA_START
3687         and all uses of std_expand_builtin_va_start.
3688
3689 Tue Jul 16 19:32:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
3690
3691         * regrename.c (copy_value): Don't record high part copies.
3692
3693 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
3694
3695         * gcc/config/pa/long_double.h (FIXUNS_TRUNCTFDI2_LIBCALL): New define.
3696         (fixunstfdi_libfunc): Change to use FIXUNS_TRUNCTFDI2_LIBCALL.
3697         * gcc/config/pa/quadlib.c (_U_Qfcnvfxt_quad_to_udbl): New function.
3698
3699 2002-07-16  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
3700
3701         * doc/invoke.texi (NS32K Options): Document -mieee-compare option
3702
3703         * config/ns32k/ns32k.md (addsi3, *frame_addr, *stack_addr): merge
3704         into addsi3 using register class "x" and "y".
3705
3706         * config/ns32k/ns32k.md (*madddf, *maddsf, *msubdf, *msubsf):
3707         "earlyclobber" constraint modifier for some alternative.
3708
3709         * config/ns32k/ns32k.md (tstdf, tstsf, cmpdf, cmpsf, blt, ble)
3710         (*ble, *blt): Flag to indicate bCOND and sCOND should check for
3711         unordered.
3712         config/ns32k/ns32k.h (CC_UNORD): define corresponding mask.
3713
3714         * config/ns32k/ns32k.h (TARGET_IEEE_COMPARE, MASK_IEEE_COMPARE)
3715         (TARGET_SWITCHES): Add -mieee-compare option.
3716         (OVERRIDE_OPTIONS): 32332 is a subset of
3717         32532. Don't use IEEE_COMPARE -funsafe-math-optimizations.
3718         (TARGET_SWITCHES): Fix description of bitfield option.
3719         * config/ns32k/netbsd.h (TARGET_DEFAULT): Add
3720         -mieee-compare option. Remove 32332 flag.
3721
3722 2002-07-16  Steve Ellcey  <sje@cup.hp.com>
3723
3724         * explow.c (convert_memory_address): Remove special handling
3725         when POINTERS_EXTEND_UNSIGNED < 0.
3726         * config/ia64.md (movsi_symbolic): New instruction for ILP32 mode.
3727         (movedi_symbolic): Fix typo.
3728         (load_fptr): Remove mode restriction so it works for SI and DI.
3729         (load_fptr_internal1): Ditto.
3730         (load_gprel): Ditto.
3731         (load_symptr_internal1): Ditto.
3732         (call_pic): Ditto.
3733         * config/ia64.c (call_operand): Modify mode check.
3734         (ia64_expand_load_address): Handle DI and SI addresses and symbols.
3735         (ia64_expand_move): Ditto.
3736         (ia64_assemble_integer): Handle SImode function pointers.
3737         (ia64_expand_fetch_and_op): Handle SImode mem addresses.
3738         (ia64_expand_op_and_fetch): Ditto.
3739         (ia64_expand_compare_and_swap): Ditto.
3740         (ia64_expand_lock_test_and_set): Ditto.
3741         (ia64_expand_lock_release): Ditto.
3742
3743 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3744
3745         * arm.c (emit_sfm): Don't set RTX_FRAME_RELATED_P on DWARF.
3746
3747 2002-07-16  Jeroen Dobbelaere <jeroen.dobbelaere@acunia.com>
3748             Richard Earnshaw  <rearnsha@arm.com>
3749
3750         * arm.h (LEGITIMATE_PIC_OPERAND_P): Only test
3751         CONSTANT_POOL_ADDRESS_P if a SYMBOL_REF.  Simplify logic.
3752
3753 2002-07-16  Richard Earnshaw  <rearnsha@arm.com>
3754
3755         * arm.md (stack_tie): New insn.  Use an idiom that the alias code
3756         understands to be a memory clobber.
3757         * arm.c (arm_expand_prologue): Use it.
3758
3759 2002-07-16  Daniel Berlin  <dberlin@dberlin.org>
3760
3761         * ra-rewrite.c: #include reload.h, insn-config.h
3762         * ra-build.c: #include reload.h
3763         * Makefile.in: Update ra-rewrite.o, ra-build.o dependencies to
3764         depend on reload.h, insn-config.h.
3765
3766 Tue Jul 16 11:57:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
3767
3768         * expr.c (emit_move_insn_1): Handle arbitrary moves that are
3769         the same size as a word.
3770
3771         * regrename.c (find_oldest_value_reg): Take WORDS_BIG_ENDIAN /
3772         BYTES_BIG_ENDIAN into account.
3773
3774 Tue Jul 16 12:22:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
3775
3776         * i386.md (prefetch): Fix for 64bit mode.
3777         (prefetch_sse_rex, prefetch_3dnow_rex): New patterns.
3778
3779         * i386.md (movss, movsd): Use xorps/xorpd for Athlon.
3780
3781 2002-07-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3782
3783         * hard-reg-set.h (TEST_HARD_REG_BIT): Return 1 if the bit is set.
3784
3785 2002-07-15  Zack Weinberg  <zack@codesourcery.com>
3786
3787         * ginclude/varargs.h: Replace with stub which issues #error.
3788         * ginclude/stdarg.h: __builtin_stdarg_start is renamed
3789         __builtin_va_start.
3790
3791         * builtins.def (BUILT_IN_VARARGS_START): Delete.
3792         (BUILT_IN_VA_START): New.
3793         * builtins.c (expand_builtin_va_start): Eliminate first
3794         argument and code to implement pre-ISO varargs.
3795         (std_expand_builtin_va_start): Ignore first argument; it is
3796         always 1.
3797         (expand_builtin): Handle BUILT_IN_VA_START and
3798         BUILT_IN_STDARG_START identically.  Delete
3799         BUILT_IN_VARARGS_START case.
3800
3801         * function.c (assign_parms): Delete hide_last_arg and all
3802         its uses.
3803         (mark_varargs): Delete function.
3804         * function.h (struct function): Delete 'varargs' bit.
3805         (current_function_varargs): Delete macro.
3806         * tree.h: Don't declare mark_varargs.
3807
3808         * c-decl.c (c_function_varargs, c_mark_varargs): Delete.
3809         (c_expand_body): Don't call mark_varargs.
3810         * c-objc-common.c: Handle BUILT_IN_VA_START and
3811         BUILT_IN_STDARG_START identically.  Delete
3812         BUILT_IN_VARARGS_START case.
3813         * c-tree.h: Don't declare c_mark_varargs.
3814         * c-parse.in: Remove grammar rules for '&...' (which has been
3815         commented out since before 2.7.2) and for '...' in K+R
3816         argument declarations.
3817
3818         * builtins.c, function.c, integrate.c, sibcall.c,
3819         config/alpha/unicosmk.h, config/arc/arc.c, config/arc/arc.h,
3820         config/avr/avr.c, config/cris/cris.c, config/fr30/fr30.c,
3821         config/i960/i960.c, config/i960/i960.md, config/m32r/m32r.c,
3822         config/m32r/m32r.h, config/m88k/m88k.c, config/m88k/m88k.h,
3823         config/mips/mips.c, config/mmix/mmix.c, config/mmix/mmix.h,
3824         config/mn10300/mn10300.c, config/pa/som.h, config/s390/s390.c,
3825         config/sh/sh.c, config/sh/sh.h, config/sparc/sparc.h,
3826         config/stormy16/stormy16.c: Delete all references to
3827         current_function_varargs, and code predicated on that flag.
3828
3829         * config/alpha/alpha.c (alpha_va_start),
3830         config/arc/arc.c (arc_va_start),
3831         config/i386/i386.c (ix86_va_start),
3832         config/mips/mips.c (mips_va_start),
3833         config/mn10300/mn10300.c (mn10300_va_start),
3834         config/rs6000/rs6000.c (rs6000_va_start),
3835         config/s390/s390.c (s390_va_start),
3836         config/sh/sh.c (sh_va_start),
3837         Ignore first argument; it is always 1.
3838
3839         * config/c4x/c4x-protos.h, config/c4x/c4x.c: Delete c4x_va_start.
3840         * config/ia64/ia64-protos.h, config/ia64/ia64.c: Delete ia64_va_start.
3841         * config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c:
3842         Delete m68hc11_va_start.
3843         * config/c4x/c4x.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h:
3844         No need to define EXPAND_BUILTIN_VA_START.
3845
3846         * doc/invoke.texi, doc/sourcebuild.texi, doc/tm.texi,
3847         doc/trouble.texi: Remove references to GCC-provided <varargs.h>.
3848
3849 2002-07-15  Eric Botcazou  <ebotcazou@multimania.com>
3850
3851         PR optimization/7153
3852         * regmove.c (optimize_reg_copy_3): Don't optimize if the register
3853         dies in more than one insn.
3854
3855 2002-07-15  Jason Thorpe  <thorpej@wasabisystems.com>
3856
3857         * config/sparc/netbsd-elf.h (TRANSFER_FROM_TRAMPOLINE): Remove.
3858
3859 2002-07-15  Michael Matz  <matz@suse.de>,
3860             Daniel Berlin  <dberlin@dberlin.org>,
3861             Denis Chertykov  <denisc@overta.ru>
3862
3863         Add a new register allocator.
3864
3865         * ra.c: New file.
3866         * ra.h: New file.
3867         * ra-build.c: New file.
3868         * ra-colorize.c: New file.
3869         * ra-debug.c: New file.
3870         * ra-rewrite.c: New file.
3871
3872         * Makefile.in (ra.o, ra-build.o, ra-colorize.o, ra-debug.o,
3873         (ra-rewrite.o): New .o files for libbackend.a.
3874         (GTFILES): Add basic-block.h.
3875
3876         * toplev.c (flag_new_regalloc): New.
3877         (f_options): New option "new-ra".
3878         (rest_of_compilation): Call initialize_uninitialized_subregs()
3879         only for the old allocator.  If flag_new_regalloc is set, call
3880         new allocator, instead of local_alloc(), global_alloc() and
3881         friends.
3882
3883         * doc/invoke.texi: Document -fnew-ra.
3884         * basic-block.h (FOR_ALL_BB): New.
3885         * config/rs6000/rs6000.c (print_operand): Write small constants
3886         as @l+80.
3887
3888         * df.c (read_modify_subreg_p): Narrow down cases for a rmw subreg.
3889         (df_reg_table_realloc): Make size at least as large as max_reg_num().
3890         (df_insn_table_realloc): Size argument now is absolute, not relative.
3891         Changed all callers.
3892
3893         * gengtype.c (main): Add the pseudo-type "HARD_REG_SET".
3894         * regclass.c (reg_scan_mark_refs): Ignore NULL rtx's.
3895
3896         2002-06-20  Michael Matz  <matz@suse.de>
3897
3898         * df.h (struct ref.id): Make unsigned.
3899         * df.c (df_bb_reg_def_chain_create): Remove unsigned cast.
3900
3901         2002-06-13  Michael Matz  <matz@suse.de>
3902
3903         * df.h (DF_REF_MODE_CHANGE): New flag.
3904         * df.c (df_def_record_1, df_uses_record): Set this flag for refs
3905         involving subregs with invalid mode changes, when
3906         CLASS_CANNOT_CHANGE_MODE is defined.
3907
3908         2002-05-07  Michael Matz  <matz@suse.de>
3909
3910         * reload1.c (fixup_abnormal_edges): Don't insert on NULL edge.
3911
3912         2002-05-03  Michael Matz  <matz@suse.de>
3913
3914         * sbitmap.c (sbitmap_difference): Accept sbitmaps of different size.
3915
3916         Sat Feb  2 18:58:07 2002  Denis Chertykov  <denisc@overta.ru>
3917
3918         * regclass.c (regclass): Work with all regs which have sets or
3919         refs.
3920         (reg_scan_mark_refs): Count regs inside (clobber ...).
3921
3922         2002-01-04  Michael Matz  <matzmich@cs.tu-berlin.de>
3923
3924         * df.c (df_ref_record): Correctly calculate SUBREGs of hardregs.
3925         (df_bb_reg_def_chain_create, df_bb_reg_use_chain_create): Only
3926         add new refs.
3927         (df_bb_refs_update): Don't clear insns_modified here, ...
3928         (df_analyse): ... but here.
3929
3930         * sbitmap.c (dump_sbitmap_file): New.
3931         (debug_sbitmap): Use it.
3932
3933         * sbitmap.h (dump_sbitmap_file): Add prototype.
3934
3935         2001-08-07  Daniel Berlin  <dan@cgsoftware.com>
3936
3937         * df.c (df_insn_modify): Grow the UID table if necessary, rather
3938         than assume all emits go through df_insns_modify.
3939
3940         2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
3941
3942         * regclass.c (reg_scan_mark_refs): When we increase REG_N_SETS,
3943         increase REG_N_REFS (like flow does), so that regclass doesn't
3944         think a reg is useless, and thus, not calculate a class, when it
3945         really should have.
3946
3947         2001-01-28  Daniel Berlin  <dberlin@redhat.com>
3948
3949         * sbitmap.h (EXECUTE_IF_SET_IN_SBITMAP_REV): New macro, needed for
3950         dataflow analysis.
3951
3952 2002-07-15  Jakub Jelinek  <jakub@redhat.com>
3953
3954         PR middle-end/7245
3955         * config/i386/i386.c (const_int_1_31_operand): New.
3956         * config/i386/i386.h (PREDICATE_CODES): Add it.
3957         * config/i386/i386.md (ashlsi3_cmp, ashlsi3_cmp_zext, ashlhi3_cmp,
3958         ashlqi3_cmp, ashrsi3_cmp, ashrsi3_cmp_zext, ashrhi3_cmp, ashrqi3_cmp,
3959         lshrsi3_cmp, lshrsi3_cmp_zext, lshrhi3_cmp, lshrqi3_cmp): Use it.
3960
3961 2002-07-14  Alan Modra  <amodra@bigpond.net.au>
3962
3963         PR target/7282
3964         * config/rs6000/rs6000.md (floatsidf2): Enable for POWERPC64.
3965         (floatunssidf2): Likewise.
3966         (floatsidf_ppc64): New insn_and_split.
3967         (floatunssidf_ppc64): Likewise.
3968
3969 2002-07-14  Andreas Jaeger  <aj@suse.de>
3970
3971         * config.gcc (sh64): Remove unused
3972         target_requires_64bit_host_wide_int.
3973
3974 2002-07-12  Roger Sayle  <roger@eyesopen.com>
3975
3976         * expr.c [CLEAR_RATIO]: New macro defining the maximum number
3977         of move instructions to use when clearing memory, c.f. MOVE_RATIO.
3978         [CLEAR_BY_PIECES]: New macro, using CLEAR_RATIO, to determine
3979         whether clear_by_pieces should be used to clear storage.
3980         (clear_storage): Use CLEAR_BY_PIECES instead of MOVE_BY_PIECES.
3981
3982         * doc/tm.texi: Document these two new target macros.
3983
3984 2002-07-12  Stephane Carrez  <stcarrez@nerim.fr>
3985
3986         * config/m68hc11/m68hc11.md ("zero_extendsidi2"): Use D_REG only for
3987         the scratch register.
3988         ("*movhi2_push"): Accept Z_REG because a split pattern can make use
3989         of it, forbid reload to use it.
3990
3991 2002-07-12  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3992
3993         * config/avr/avr.c (test_hard_reg_class): Fix TEST_HARD_REG_BIT
3994         usage on 64-bit hosts, return value was truncated to 32 bits.
3995
3996 Fri Jul 12 00:49:36 2002  J"orn Rennecke <joern.rennecke@superh.com>
3997
3998         * simplify-rtx.c (simplify_subreg): Handle floating point
3999         CONST_DOUBLEs.  When an integer subreg of a smaller mode than
4000         the element mode is requested, compute a subreg with an
4001         integer mode of the same size as the element mode first.
4002
4003 Thu Jul 11 22:02:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
4004
4005         * combine.c (try_combine): When converting a paradoxical subreg
4006         to an extension, take LOAD_EXTEND_OP into account.
4007
4008 2002-07-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4009
4010         * config.gcc (mips-sgi-irix6*o32): New configuration.
4011
4012         * configure.in (libgcc_visibility): Disable for mips-sgi-irix6*o32
4013         configurations.
4014         * configure: Regenerate.
4015
4016         * config/mips/iris6-o32-as.h: New file.
4017         * config/mips/iris6-o32.h: New file.
4018
4019         * config/mips/iris5gas.h (TARGET_ASM_NAMED_SECTION): Define.
4020         (NM_FLAGS): Define.
4021         (HAVE_AS_SHF_MERGE): Undefine.
4022
4023         * config/mips/t-iris5-as: New file.
4024         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix5*): Use it.
4025
4026         * config/mips/t-iris6 (SHLIB_EXT, SHLIB_SOLINK, SHLIB_SONAME,
4027         SHLIB_NAME, SHLIB_MAP, SHLIB_OBJS, SHLIB_SLIBDIR_QUAL, SHLIB_LINK,
4028         SHLIB_INSTALL, SHLIB_MKMAP, SHLIB_MAPFILES, FPBIT, DPBIT,
4029         dp-bit.c, fp-bit.c): Move ...
4030         * config/mips/t-iris5-6: ... here.
4031         New file, shared by IRIX 5 and IRIX 6.
4032         * config.gcc (mips-sgi-irix6*o32, mips-sgi-irix6*,
4033         mips-sgi-irix5*): Use it.
4034
4035         * config/mips/iris6.h: Remove duplicate comment.
4036
4037         * config/mips/mips.c (TARGET_ASM_UNALIGNED_DI_OP) [TARGET_IRIX5 &&
4038         !TARGET_IRIX6]: Define.
4039         (mips_asm_file_start): Don't emit mdebug.<ABI> sections on IRIX 5/6.
4040
4041         * config/mips/mips.h (ASM_DECLARE_FUNCTION_NAME): Fix comment.
4042
4043 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4044
4045         * pa.md (adddi3): Change predicate of operand 2 to adddi3_operand
4046         and delete code to force constant to register.
4047         * pa-protos.h (adddi3_operand): Add prototype.
4048         * pa.c (adddi3_operand): New function.
4049
4050 2002-07-11  Roger Sayle  <roger@eyesopen.com>
4051
4052         * c-decl.c (duplicate_decls): Preserve the noreturn attribute on
4053         non-ANSI builtin functions.
4054
4055 Thu Jul 11 11:31:12 2002  J"orn Rennecke <joern.rennecke@superh.com>
4056
4057         * rtl.h (gen_rtx_CONST_VECTOR): Declare.
4058         * gengenrtl.c (special_rtx): Check for CONST_VECTOR.
4059         * emit-rtl.c (gen_rtx_CONST_VECTOR): New function.
4060         (gen_const_vector_0): Use it.
4061
4062 2002-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4063
4064         * pa.md (adddi3): For 32-bit targets, force constants to a register
4065         if they don't fit in an 11-bit immediate.  Change insn predicate to
4066         arith11_operand.  Remove comment.
4067         * pa.c (cint_ok_for_move): Fix comment.
4068         (emit_move_sequence):  Don't directly split DImode constants on 32-bit
4069         targets.
4070
4071 2002-07-11  Tim Josling  <tej@melbpc.org.au>
4072
4073         Remove front end hard coding from gengtype.c.
4074
4075         * Makefile.in
4076         (STAGESTUFF): add gtyp-gen.h
4077         (GTFILES): Remove front end specific files.
4078         (GTFILES_FILES_LANGS): New, from configure..
4079         (GTFILES_FILES_FILES): Likewise.
4080         (GTFILES_LANG_DIR_NAMES): Likewise.
4081         (GTFILES_SRCDIR): Likewise.
4082         (gtyp-gen.h): Build from configure information.
4083         (s-gtype): Remove command line parameters from gengtype.
4084         (gengtype.o): Remove dependency on GTFILES. Depend on gtyp-gen.h.
4085         (mostlyclean): Delete files generated by and for gengtype.
4086
4087         * c-config-lang.in: New file.
4088
4089         * configure.in (all_gtfiles_files_langs): New. Accumulate files
4090         for each language.
4091         (all_gtfiles_files_files): New. Accumulate language for each file
4092         accumulated.
4093         (gtfiles): Pick up value for C.
4094         (srcdir): AC-SUBST this variable.
4095         (all_gtfiles_files_langs): AC-SUBST this variable.
4096         (all_gtfiles_files_files): AC-SUBST this variable.
4097
4098         * configure: Regenerate.
4099
4100         * gengtype-lex.l (parse_file): Make parameter const.
4101
4102         * gengtype.c (toplevel): include gtyp-gen.h.
4103         (BASE_FILE_<language> unnamed enum): Delete.
4104         (lang_names): Delete (replaced by gtyp-gen.h)
4105         (lang_dir_names): From gtyp-gen.h, replaces lang_names; changed
4106         all references.
4107         (NUM_GT_FILES): New.
4108         (NUM_LANG_FILES): New.
4109         (srcdir_len): New.
4110         (NUM_BASE_FILES): Change calculation.
4111         (open_base_files): Change prototype to avoid warning.
4112         (startswith): Delete.
4113         (get_file_basename): Iterate through generated language list not
4114         hard coded list.
4115         (get_base_file_bitmap): Use generated list of files and languages.
4116         (close_output_files): Add prototype to rmove warning.
4117         (main): Iterate through list of generated files from gtyp-gen.h
4118         rather than command line paramaters.  Ignore duplicated file
4119         names.
4120
4121         * gengtype.h (parse_file): Amend prototype for const parameter.
4122
4123         * doc/sourcebuild.texi: Document gtfiles variable.
4124
4125         * doc/gty.texi: Document changes to gtfiles variable for front
4126         ends.
4127
4128         * objc/config-lang.in (gtfiles): Add files needed for objc front
4129         end.
4130
4131 2002-07-10  Roger Sayle  <roger@eyesopen.com>
4132
4133         PR c/2454
4134         * combine.c (nonzero_bits): LOAD_EXTEND_OP should only apply
4135         to SUBREGs of MEMs.  (num_sign_bit_copies): Likewise.
4136
4137 2002-07-10  Roger Sayle  <roger@eyesopen.com>
4138             Zack Weinberg <zack@codesourcery.com>
4139
4140         * builtins.def: Make the argument types of abort and exit
4141         independent of the front-end.
4142
4143 2002-07-11  Alan Modra  <amodra@bigpond.net.au>
4144
4145         * config/rs6000/linux64.h (ASM_SPEC): Define.
4146
4147 2002-07-10  Aldy Hernandez  <aldyh@redhat.com>
4148
4149         * config/rs6000/rs6000.c (emit_frame_save): New.
4150         (rs6000_frame_related): Replace reg2 before reg.
4151         (rs6000_emit_prologue): Use emit_frame_save for saving gprs, fprs,
4152         and eh_return registers.
4153
4154 2002-07-10  Toon Moene  <toon@moene.indiv.nluug.nl>
4155
4156         Revert all patches for optimization of Complex .op. Real.
4157         * complex_part_zero_p: Remove
4158         * expand_cmplxdiv_straight: Replace complex_part_zero_p(x)
4159         with x.
4160         * expand_cmplxdiv_wide: Ditto.
4161         * expand_binop: Ditto.
4162
4163 2002-07-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
4164
4165         * config/avr/avr.md: Fix two 0x80000000 constants to make them
4166         negative also on 64-bit hosts.
4167
4168         Default to -fno-reorder-blocks when optimizing for size.
4169         * config/avr/avr-protos.h (avr_optimization_options): Declare.
4170         * config/avr/avr.c (avr_optimization_options): New function.
4171         * config/avr/avr.h (OPTIMIZATION_OPTIONS): New.
4172
4173         Optimize returning from simple functions.
4174         * config/avr/avr-protos.h (avr_simple_epilogue): Declare.
4175         * config/avr/avr.c (avr_simple_epilogue): New function.
4176         * config/avr/avr.md (return): New insn.
4177
4178 2002-07-10  Douglas B Rupp  <rupp@gnat.com>
4179
4180         * config/i386/i386.c  (ix86_svr3_asm_out_constructor): Add
4181         HAS_INIT_SECTION to protection.
4182
4183 2002-07-10  Mark Mitchell  <mark@codesourcery.com>
4184
4185         * doc/invoke.texi (Debugging Options): Mention that -gdwarf is
4186         deprecated.
4187
4188 Wed Jul 10 19:50:03 2002  J"orn Rennecke <joern.rennecke@superh.com>
4189
4190         * combine.c (gen_lowpart_for_combine): Handle vector modes.
4191         Supply non-VOID mode to simplify_gen_subreg.
4192
4193 Wed Jul 10 18:48:55 CEST 2002  Jan Hubicka  <jh@suse.cz>
4194
4195         * i386.c (ix86_init_mmx_sse_builtins): Fix thinko.
4196
4197 2002-07-10  Jeffrey A Law  <law@redhat.com>
4198
4199         * mn10200.c (expand_prologue): Create REG_MAYBE_DEAD notes
4200         as appropriate.
4201
4202         * mn10200.c (expand_epilogue): Fix test to determine which scratch
4203         register to use.
4204
4205 Wed Jul 10 16:06:00 2002  J"orn Rennecke <joern.rennecke@superh.com>
4206
4207         * cse.c (cse_insn): Supply proper SUBREG_BYTE to simplify_gen_subreg.
4208         Get mode from dest.
4209         If simplify_gen_subreg fails, try next equivalent.
4210
4211 2002-07-09  Gabriel Dos Reis  <gdr@codesourcery.com>
4212
4213         * diagnostic.h: #include location.h
4214         (location_t): Move definition to..
4215         * location.h: ... here.  New file.
4216         * tree.h: #include location.h
4217         (DECL_SOURCE_LOCATION): New macro.
4218         (DECL_SOURCE_FILE): Use.
4219         (DECL_SOURCE_LINE): Likewise.
4220         (struct tree_decl): REplace filename and linenum with locus.
4221         * Makefile.in (TREE_H): add location.h
4222         (diagnostic.o): Depends on gt-location.h
4223         (gt-location.h): Depends on s-gtype
4224
4225 2002-07-09  Matt Kraai  <kraai@alumni.cmu.edu>
4226
4227         * config/rs6000/aix.h: Convert CPP_PREDEFINES to
4228         TARGET_OS_CPP_BUILTINS.
4229         * config/rs6000/aix31.h: Likewise.
4230         * config/rs6000/aix41.h: Likewise.
4231         * config/rs6000/aix43.h: Likewise.
4232         * config/rs6000/aix51.h: Likewise.
4233         * config/rs6000/beos.h: Likewise.
4234         * config/rs6000/darwin.h: Likewise.
4235         * config/rs6000/eabi.h: Likewise.
4236         * config/rs6000/eabisim.h: Likewise.
4237         * config/rs6000/linux.h: Likewise.
4238         * config/rs6000/linux64.h: Likewise.
4239         * config/rs6000/lynx.h: Likewise.
4240         * config/rs6000/mach.h: Likewise.
4241         * config/rs6000/rtems.h: Likewise.
4242         * config/rs6000/sysv4.h: Likewise.
4243         * config/rs6000/vxppc.h: Likewise.
4244
4245 2002-07-09 Devang Patel <dpatel@apple.com>
4246         * objc/objc-act.c (adjust_type_for_id_default): Fix my previous patch.
4247         Do not allow ObjC objects as a parameter type for Objective-C methods.
4248         My previous patch restricted  'struct' also.
4249
4250 2002-07-09  Neil Booth  <neil@daikokuya.co.uk>
4251
4252         * cpperror.c (cpp_error): Default to directive_line within
4253         directives here.
4254         * cppexp.c (cpp_interpret_integer): Only use traditional
4255         number semantics in directives.
4256         * cpplib.c (prepare_directive_trad): Don't reset pfile->line.
4257         (do_include_common): Similarly.
4258         * cpptrad.c (scan_out_logical_line): Implement accurate
4259         quoting of <> in #include.
4260         * doc/cpp.texi: Update.
4261
4262 Tue Jul  9 22:37:44 2002  Stephen Clarke <stephen.clarke@superh.com>
4263                           J"orn Rennecke <joern.rennecke@superh.com>
4264
4265         * sh.c (sh_adjust_cost): Special handling of SHMEDIA code.
4266         * sh.md (attribute issues): Replace with:
4267         (attribute pipe_model).  All users changed.
4268         (attribute type): Change pt / ptabs to pt_media / ptabs_media.
4269         All users changed.
4270         (function units sh5issue, sh5fds): New.
4271         (attribute is_mac_media): New.
4272         (adddi3_media, subdi3_media, divsi3_i1_media, anddi3): Add type.
4273         (andcdi3, iordi3, xordi3, ashldi3_media, lshrdi3_media): Likewise.
4274         (ashrdi3_media, negdi_media, extendsidi2, movqi_media): Likewise.
4275         (movhi_media, shori_media, movv2sf_i, jump_media): Likewise.
4276         (call_media, call_value_media, sibcall_media): Likewise.
4277         (casesi_jump_media, casesi_shift_media, casesi_load_media): Likewise.
4278         (return_media_i, addsf3_media, subsf3_media, mulsf3_media): Likewise.
4279         (mac_media, divsf3_media, floatdisf2, floatsisf2_media): Likewise.
4280         (fix_truncsfdi2, fix_truncsfsi2_media, cmpeqsf_media): Likewise.
4281         (cmpgtsf_media, cmpgesf_media, cmpunsf_media, negsf2_media): Likewise.
4282         (sqrtsf2_media, abssf2_media, adddf3_media, subdf3_media): Likewise.
4283         (muldf3_media, divdf3_media, floatdidf2, floatsidf2_media): Likewise.
4284         (fix_truncdfdi2, fix_truncdfsi2_media, cmpeqdf_media): Likewise.
4285         (cmpgtdf_media, cmpgedf_media,cmpundf_media, negdf2_media): Likewise.
4286         (sqrtdf2_media, absdf2_media, extendsfdf2_media): Likewise.
4287         (truncdfsf2_media): Likewise.
4288         (movsi_media, movsi_media_nofpu, movdi_media): Use new types.
4289         (movdi_media_nofpui, movdf_media, movdf_media_nofpu): Likewise.
4290
4291 Tue Jul  9 21:39:50 2002  J"orn Rennecke <joern.rennecke@superh.com>
4292
4293         * sh.h (PREDICATE_CODES): Add general_extend_operand and inqhi_operand.
4294         * sh.c (general_extend_operand, inqhi_operand): New functions.
4295         * sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): Collapse
4296         alternatives using 'N' modifier.  Add type.
4297         (adddi3z_media): Likewise.  Enable generator function generation.
4298         (movdicc_false, movdicc_true, addsi3_media, subsi3_media): Use more
4299         exact predicates / constraints.  Add type.
4300         (subsi3): Allow 0 for SHMEDIA.
4301         (udivsi3_i4_media): Use match_operand for input values
4302         rather than hard registers.
4303         (udivsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
4304         unnecessarily through hard registers.  Keep copies of pseudo
4305         registers outside of the libcall sequence.
4306         (mulsidi3_media, umulsidi3_media): Use more exact predicates.  Add type.
4307         (ashlsi3_media, ashrsi3_media, lshrsi3_media): Likewise.
4308         (zero_extendsidi2, zero_extendhidi2, zero_extendqidi2): Likewise.
4309         (extendhidi2, extendqidi2): Likewise.
4310         (andsi3_compact): Name.
4311         (andcdi3): Enable generator function generation.
4312         (zero_extendhisi2, zero_extendqisi2): Rename to
4313         (zero_extendhisi2_compact, zero_extendqisi2_compact).
4314         (extendhisi2, extendqisi2): Rename to
4315         (extendhisi2_compact, extendqisi2_compact).
4316         (rotldi3, rotldi3_mextr, rotrdi3, rotrdi3_mextr): New patterns.
4317         (loaddi_trunc, zero_extendhisi2, zero_extendhisi2_media): Likewise.
4318         (zero_extendhisi2_media+1, zero_extendqisi2): Likewise.
4319         (zero_extendqisi2_media, extendhisi2, extendhisi2_media): Likewise.
4320         (extendhisi2_media, extendhisi2_media+1, extendqisi2): Likewise.
4321         (extendqisi2_media, extendqisi2_media+1, truncdisi2): Likewise.
4322         (truncdihi2, truncdiqi2, reload_inqi, reload_inhi): Likewise.
4323         (shmedia32_initialize_trampoline_big): Likewise.
4324         (shmedia32_initialize_trampoline_little): Likewise.
4325         (nsb, nsbsi, nsbdi, ffsdi2, ffssi2, byterev): Likewise.
4326         (negdi2): Remove spurious T clobber.
4327         (zero_extendhidi2+1, extendhidi2+1, extendqidi2+1): Handle TRUNCATE.
4328         (movsi_media, movsi_media_nofpu): Remove spurious *k after b.
4329         (movdi_media, movdi_media_nofpu, pt, ptb): Likewise.
4330         (movsi_media_nofpu+2, movhi_media+1): Only do split after reload.
4331         (ic_invalidate_line_media): Write back data cache before invalidating
4332         instruction cache.  Add type.
4333         (movsf_media): Sign-extend when the destination is a general
4334         purpose register.  Add type.
4335         (bgt_media, bge_media, bgtu_media, bgeu_media, blt_media_i): Allow 0.
4336         (casesi_worker_0+1): Only increment ref count for proper label.
4337         (casesi_worker_0+2): Likewise.
4338
4339 2002-07-09  Mark Mitchell  <mark@codesourcery.com>
4340
4341         * dwarfout.c (dwarfout_init): Warn that DWARF1 is deprecated.
4342
4343 2002-07-09  Steve Ellcey  <sje@cup.hp.com>
4344
4345         * gcc/except.c (expand_eh_region_end_cleanup): Change exception pointer
4346         from Pmode to ptr_mode.
4347         (get_exception_pointer): Ditto.
4348         (connect_post_landing_pads): Ditto.
4349         (dw2_build_landing_pads): Ditto.
4350
4351 2002-07-08  Steve Ellcey  <sje@cup.hp.com>
4352         * gcc/c-pragma.h (add_to_renaming_pragma_list): New function.
4353         * gcc/c-pragma.c (add_to_renaming_pragma_list): New function.
4354         (handle_pragma_redefine_extname): Change to use new function.
4355
4356 2002-07-08  Roger Sayle  <roger@eyesopen.com>
4357
4358         * combine.c (combine_simplify_rtx): Add an explicit cast
4359         to avoid signed/unsigned comparison warning.
4360         (simplify_if_then_else): Likewise.
4361         (extended_count): Likewise.
4362         (simplify_shift_const): Likewise.
4363         (simplify_comparison): Likewise.
4364
4365 2002-07-08  Richard Sandiford  <rsandifo@redhat.com>
4366
4367         * config/mips/mips.md: Add imadd type.  Update scheduler description
4368         to use imadd as well as imul.
4369         (*mul_acc_si, *madsi): Change imul alternatives to imadd.
4370         (*mul_acc_di, *mul_acc_64bit_di): Likewise.
4371         (*mul_sub_si): Likewise for first alternative.  Change second
4372         alternative from imul to multi.
4373
4374 2002-07-07  Neil Booth  <neil@daikokuya.co.uk>
4375
4376         * c-common.c (c_common_post_options): Update prototype;
4377         don't init backends if preprocessing only.
4378         * langhooks-def.h (LANG_HOOKS_POST_OPTIONS): Update.
4379         * langhooks.h (struct lang_hooks): Update post_options to
4380         return a boolean.
4381         * toplev.c (parse_options_and_default_flags, do_compile,
4382         lang_independent_init): Update prototypes.  Allow the
4383         front end to specify that there is no need to initialize
4384         the back end.
4385         (general_init): Move call to hex_init here...
4386         (toplev_main): ...from here.  Pass flag for back end init
4387         suppression.
4388
4389 Sun Jul  7 20:38:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
4390
4391         * sh.h (PRINT_OPERAND_PUNCT_VALID_P): Allow '\''.
4392         (PREDICATE_CODES): Add entries for equality_comparison_operator,
4393         greater_comparison_operator and less_comparison_operator.
4394         * sh.c (print_operand): Add '\'' code.  Make 'o' handle
4395         more operators.
4396         (equality_comparison_operator): New function.
4397         (greater_comparison_operator, less_comparison_operator): Likewise.
4398         * sh.md (beq_media_i): Disable generator function generation.
4399         Use match_operator to handle a whole class of comparisons.  Add
4400         modifier in output template to provide branch prediction.  Add type.
4401         (bgt_media_i, ble_media_i): Likewise.  Allow zero operands.
4402         (bne_media_i, bge_media_i, bgtu_media_i, bgeu_media_i): Delete.
4403         (blt_media_i, bleu_media_i, bltu_media_i): Likewise.
4404         (bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Allow zero operands.
4405
4406 2002-07-07  Hans-Peter Nilsson  <hp@bitrange.com>
4407
4408         Emit MMIX function prologue and epilogue as rtl.
4409         * config/mmix/mmix.md ("call"): Use mmix_get_hard_reg_initial_val,
4410         not unprototyped get_hard_reg_initial_val.
4411         ("call_value", "nonlocal_goto_receiver"): Ditto.
4412         ("return"): Make define_expand.  Move real insn to...
4413         ("*expanded_return"): New pattern.
4414         ("prologue", "epilogue"): New define_expands.
4415         * config/mmix/mmix.h (MMIX_rO_REGNUM): New macro.
4416         (struct machine_function): New member in_prologue.
4417         (FIRST_PSEUDO_REGISTER): Adjust for including rO as register.
4418         (FIXED_REGISTERS, CALL_USED_REGISTERS): Ditto.
4419         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Ditto.
4420         (MMIX_GNU_ABI_REG_ALLOC_ORDER, REG_CLASS_CONTENTS): Ditto.
4421         (REGISTER_NAMES, ADDITIONAL_REGISTER_NAMES): Ditto.
4422         (LOCAL_REGNO): Define.  Adjust comment.
4423         * config/mmix/mmix.c (MMIX_CFUN_NEEDS_SAVED_EH_RETURN_ADDRESS):
4424         Consider regs_ever_live[MMIX_rJ_REGNUM], not just
4425         leaf_function_p.
4426         (MMIX_OUTPUT_REGNO): Don't translate registers while outputting
4427         the prologue.
4428         (mmix_target_asm_function_prologue): Make static.  Just mark that
4429         the prologue is being emitted.  Move guts to...
4430         (mmix_expand_prologue): New function.  Adjust for emitting
4431         prologue as rtl.  For sizes, use HOST_WIDE_INT only.
4432         (mmix_target_asm_function_epilogue): Make static.  Simply emit a
4433         \n.  Move guts to...
4434         (mmix_expand_epilogue): New function.  Adjust for emitting
4435         epilogue as rtl.  For sizes, use HOST_WIDE_INT only.
4436         (mmix_target_asm_function_end_prologue): Mark that the prologue
4437         has ended.
4438         (TARGET_ASM_FUNCTION_END_PROLOGUE): Define.
4439         (mmix_conditional_register_usage): Improve comments.
4440         (mmix_local_regno): New function.
4441         (mmix_emit_sp_add, mmix_get_hard_reg_initial_val): Ditto.
4442         * config/mmix/mmix-protos.h (mmix_local_regno): Prototype.
4443         (mmix_expand_prologue, mmix_expand_epilogue): Ditto.
4444         (mmix_get_hard_reg_initial_val): Ditto.
4445
4446 2002-07-06  Andreas Jaeger  <aj@suse.de>
4447
4448         * toplev.c (set_fast_math_flags): Don't use ISO C style function
4449         definitions.
4450         * gengtype.c (open_base_files): Likewise.
4451         (close_output_files): Likewise.
4452         * tracer.c (find_best_predecessor): Likewise.
4453         (find_best_successor): Likewise.
4454         (ignore_bb_p): Likewise.
4455
4456 2002-07-05  Roger Sayle  <roger@eyesopen.com>
4457
4458         PR c++/7099
4459         * builtin-attrs.def: Define new attribute lists for use in
4460         builtins.def.
4461         * builtins.def [DEF_BUILTIN]: Modify to take an additional
4462         ATTRS argument, an enumerated value defined in builtin-attrs.def
4463         that represents the attribute list for the builtins.  Modify
4464         all builtin functions to pass an appropriate attribute list.
4465         Specify "abort", "exit", "_exit" and "_Exit" builtins here with
4466         their required noreturn attributes.
4467         * tree.h (enum_builtin_function): Ignore the additional parameter
4468         to DEF_BUILTIN.
4469         * builtins.c (built_in_names): Likewise.
4470         * c-common.c: (builtin_function_2): Replace the "int noreturn_p"
4471         argument with a tree representing the functions attribute list.
4472         Pass this "attrs" argument to builtin_function.  No longer handle
4473         the noreturn_p processing manually.
4474         (built_in_attributes): Move the definitions from builtin-attrs.def
4475         before c_common_nodes_and_builtins.
4476         (c_common_nodes_and_builtins): Handle the new ATTRS parameter in
4477         DEF_BUILTIN, passing it to both builtin_function and the changed
4478         builtin_function_2.
4479
4480         * doc/extend.texi: Document __builtin_abort, __builtin_exit,
4481         __builtin__exit and __builtin__Exit.
4482
4483 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
4484
4485         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Avoid allocating
4486         QI mode registers in soft registers.
4487         ("zero_extendqihi2"): Do not take into account soft registers
4488         for register allocation (use '*' constraint).
4489
4490 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
4491
4492         * config/m68hc11/m68hc11.md ("*ashlsi3"): Avoid saving y if we know
4493         it is dead.
4494         ("*ashrsi3"): Likewise.
4495         ("*lshrsi3"): Likewise.
4496
4497 2002-07-05  Vladimir Makarov  <vmakarov@redhat.com>
4498
4499         * genautomata.c (output_max_insn_queue_index_def): Take latencies
4500         into account.
4501
4502 2002-07-05  Stephane Carrez  <stcarrez@nerim.fr>
4503
4504         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
4505         address computation and memory moves.
4506
4507 2002-07-03  Mark Mitchell  <mark@codesourcery.com>
4508
4509         PR c++/6706
4510         * dwarfout.c (output_reg_number): Fix warning message.
4511         (output_bound_representation): Check SAVE_EXPR_RTL is not NULL
4512         before using it.
4513
4514 2002-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4515
4516         * gcc/gcc.c (asm_debug): Move initialization ...
4517         (init_spec): ... here.
4518
4519 2002-07-05  Nathan Sidwell  <nathan@codesourcery.com>
4520
4521         * c-parse.in (extdef): Append ';'.
4522         (old_style_parm_decls): Append ';'.
4523
4524 2002-07-04  Daniel Jacobowitz  <drow@mvista.com>
4525
4526         * configure.in: Correct typos: gcc_cv_as_gdwarf2_debug_flag to
4527         gcc_cv_as_gdwarf2_flag and gcc_cv_as_gstabs_debug_flag
4528         to gcc_cv_as_gstabs_flag.
4529         * configure: Rebuilt.
4530
4531 2002-07-04  Geoffrey Keating  <geoffk@redhat.com>
4532
4533         * ggc.h (ggc_add_root): Document as obsolete.
4534
4535 Thu Jul  4 07:58:01 2002  J"orn Rennecke <joern.rennecke@superh.com>
4536
4537         * sh.md (mshfhi_b, mshflo_b, mshfhi_l, mshflo_l, mshfhi_w): Add DONE.
4538         (mshflo_w): Likewise.
4539
4540 Thu Jul  4 07:36:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
4541
4542         * simplify-rtx.c (simplify_subreg): Reduce problem of finding
4543         vector mode subregs of constants to finding integer mode
4544         subregs of constants.
4545         * cse.c (cse_insn): Use simplify_gen_subreg.
4546         * convert.c (convert_to_integer): Don't strip a NOP_EXPR
4547         From a vector mode expression of different size than the
4548         target mode.
4549
4550 2002-07-03  Eric Christopher  <echristo@redhat.com>
4551
4552         * config/mips/linux.h: Add #undef for SUBTARGET_CPP_SPEC.
4553         * config/mips/mips.h: Remove deprecated -m<processor> options
4554         and cc1_cpu_spec associated.
4555         (CONSTANT_ADDRESS_P): Fix last patch.
4556         (ASM_DECLARE_FUNCTION_NAME): Declare. Fix comment.
4557         * config/mips/mips.md (bungt, bunge, sungt_df, sungt_sf, sunge_df,
4558         sunge_sf): Remove.
4559
4560 2002-07-03  Stan Shebs  <shebs@apple.com>
4561
4562         * config/darwin.h (APPLE_CC): Remove, not meaningful in FSF GCC.
4563         (STRINGIFY_THIS, REALLY_STRINGIFY): Remove.
4564         (CPP_SPEC): Remove insertion of APPLE_CC definition.
4565
4566 2002-07-03  Roger Sayle  <roger@eyesopen.com>
4567
4568         * combine.c (struct_undo): Change types of recorded substitutions
4569         to be either "int" or "rtx", instead of "unsigned int" and "rtx".
4570         (do_SUBST_INT): Change types of the substitution from unsigned int
4571         to int, to avoid compilation warning from SUBST_INT's only caller.
4572
4573         (make_extraction): Add cast to avoid compilation warning.
4574         (force_to_mode): Remove cast to avoid compilation warning.
4575
4576 2002-07-03  Eric Botcazou  <ebotcazou@multimania.com>
4577             Jeff Law  <law@redhat.com>
4578
4579         * i386.md (length_immediate attribute): Fix typo.
4580         (length_address attribute): Likewise.
4581         (modrm attribute): Set it to 0 for immediate call instructions.
4582         (jcc_1 pattern): Set modrm attribute to 0.
4583         (jcc_2 pattern ): Likewise.
4584         (jump pattern): Likewise.
4585         (doloop_end_internal pattern): Explicitly set length.
4586         (leave pattern): Fix typo.
4587         (leave_rex64 pattern): Likewise.
4588
4589 2002-07-03  David Edelsohn  <edelsohn@gnu.org>
4590
4591         * config/rs6000/rs6000.md (fix_truncdfsi2_internal): Ignore DImode
4592         in FPR as preference.
4593         (fctiwz): Same.
4594         (floatdidf2, fix_truncdfdi2): Same.
4595         (floatdisf2, floatditf2, fix_trunctfdi2): Same.
4596         (floatditf2): Same.
4597         (floatsitf2, fix_trunctfsi2): SImode in GPR.
4598         (ctrdi): Remove FPR alternative and splitter.
4599
4600 2002-07-03  Will Cohen  <wcohen@redhat.com>
4601
4602         * config/i386/i386.c (x86_integer_DFmode_moves): Disable for PPro.
4603
4604 Wed Jul  3 10:24:16 2002  J"orn Rennecke <joern.rennecke@superh.com>
4605
4606         * optabs.c (expand_vector_binop): Don't store using a SUBREG smaller
4607         than UNITS_PER_WORD, unless this is little endian and the first unit
4608         in this word.  Let extract_bit_field decide how to load an element.
4609         Force arguments to matching mode.
4610         (expand_vector_unop): Likewise.
4611
4612         * simplify-rtx.c (simplify_subreg): Don't assume that all vectors
4613         consist of word_mode elements.
4614         * c-typeck.c (build_binary_op): Allow vector types for BIT_AND_EXPR,
4615         BIT_ANDTC_EXPR, BIT_IOR_EXPR and BIT_XOR_EXPR.
4616         (build_unary_op): Allow vector types for BIT_NOT_EPR.
4617         * emit-rtl.c (gen_lowpart_common): Use simplify_gen_subreg for
4618         CONST_VECTOR.
4619         * optabs.c (expand_vector_binop): Try to perform operation in
4620         smaller vector modes with same inner size.  Add handling of AND, IOR
4621         and XOR.  Reject expansion to inner-mode sized scalars when using
4622         OPTAB_DIRECT.  Use simplify_gen_subreg on constants.
4623         (expand_vector_unop): Try to perform operation in smaller vector
4624         modes with same inner size.  Add handling of one's complement.
4625         When there is no vector negate operation, try a vector subtract
4626         operation.  Use simplify_gen_subreg on constants.
4627         * simplify-rtx.c (simplify_subreg): Add capability to convert vector
4628         constants into smaller vectors with same inner mode, and to
4629         integer CONST_DOUBLEs.
4630
4631 2002-07-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4632
4633         * c-parse.in (parsing_iso_function_signature): New variable.
4634         (extdef_1): New, copied from...
4635         (extdef): ... here.  Reset parsing_iso_function_signature.
4636         (old_style_parm_decls):  Reset parsing_iso_function_signature.
4637         (old_style_parm_decls_1): New, copied from old_style_parm_decls.
4638         Warn about ISO C style function definitions.
4639         (nested_function, notype_nested_function): Reset
4640         parsing_iso_function_signature.
4641         (parmlist_2): Set parsing_iso_function_signature.
4642
4643         * doc/invoke.texi (-Wtraditional): Document new behavior.
4644
4645 2002-07-02  Chris Demetriou  <cgd@broadcom.com>
4646
4647         * config.gcc (mips*el-*-*): Use tm_defines to set
4648         TARGET_ENDIAN_DEFAULT, rather than including mips/little.h.
4649         * config/mips/little.h: Remove.
4650
4651 2002-07-02 Devang Patel <dpatel@apple.com>
4652
4653         * objc/objc-act.c (adjust_type_for_id_default): Do not allow an
4654         object as parameter. Prevent something like 'NSObject' to be
4655         used as the type for a method argument.
4656
4657 2002-07-03  Neil Booth  <neil@daikokuya.co.uk>
4658
4659         * cpptrad.c: Update comment.
4660
4661 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
4662
4663         * doc/cpp.texi: Update for traditional preprocessing changes.
4664         * goc/cppopts.texi: Similarly.
4665
4666 2002-07-02  Ziemowit Laski  <zlaski@apple.com>
4667
4668         * c-parse.in (designator): Enable designated initializers if ObjC.
4669         (objcmessageexpr): Remove references to objc_receiver_context.
4670         * objc/objc-act.h (objc_receiver_context): Remove decl.
4671         * objc/objc-act.c (objc_receiver_context): Remove.
4672         (lookup_objc_ivar): Test objc_method_context instead of
4673         objc_receiver_context.
4674
4675 Tue Jul  2 18:45:45 2002  J"orn Rennecke <joern.rennecke@superh.com>
4676
4677         * sh.c (print_operand, case 'N'): Allow zero vector.
4678         (arith_reg_or_0_operand): Likewise.
4679         (zero_vec_operand): Check for CONST_VECTOR, not PARALLEL.
4680         * sh.h (CONST_COSTS): 0 has 0 cost.  Check OUTER_CODE for
4681         IOR, XOR, PLUS and SET and take their respective constant
4682         ranges into account.
4683         (PREDICATE_CODES, arith_reg_or_0_operand): Can be CONST_VECTOR.
4684         * sh.md (subdi3, subdi3_media): Allow zero operand.
4685         (movv8qi_i+3): Only vector that is not split is the zero vector.
4686         Fix operand 3 to simplify_subreg.
4687         (movv2si_i): Split alternative 1.
4688         (mshfhi_l_di_rev+1): New splitter.
4689
4690 2002-07-02  Neil Booth  <neil@daikokuya.co.uk>
4691
4692         PR preprocessor/7029
4693         * cppinit.c (cpp_handle_option):  Suppress warnings with an
4694         implicit "-w" for "-M" and "-MM".
4695         * doc/cppopts.texi: Update.
4696
4697 2002-07-01  Roger Sayle  <roger@eyesopen.com>
4698
4699         * config/sh/sh.c (sh_media_init_builtins): Change use of poisoned
4700         identifier "bzero" to "memset".  Pass extra NULL_TREE argument to
4701         builtin_function.
4702
4703 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
4704
4705         * README.Portability: Fix typos.
4706
4707 2002-07-01  Hans-Peter Nilsson  <hp@axis.com>
4708
4709         PR target/7177
4710         * config/cris/cris.h (LEGITIMIZE_RELOAD_ADDRESS): Correct number
4711         of indirections for register inside sign-extended mem part.
4712
4713 2002-07-01  Roger Sayle  <roger@eyesopen.com>
4714
4715         * tree.h:  Modify builtin_function interface to take an extra
4716         argument ATTRS, which is a tree representing an attribute list.
4717
4718         * c-decl.c (builtin_function): Accept additional parameter.
4719         * objc/objc-act.c (builtin_function): Likewise.
4720         * f/com.c (builtin_function): Likewise.
4721         * java/decl.c (builtin_function): Likewise.
4722         * ada/utils.c (builtin_function): Likewise.
4723         * cp/decl.c (builtin_function): Likewise.
4724         (builtin_function_1): Likewise.
4725
4726         * c-common.c (c_common_nodes_and_builtins): Pass an additional
4727         NULL_TREE argument to builtin_function.  (builtin_function_2):
4728         Likewise.
4729         * cp/call.c (build_java_interface_fn_ref): Likewise.
4730         * objc/objc-act.c (synth_module_prologue): Likewise.
4731         * java/decl.c (java_init_decl_processing): Likewise.
4732         * f/com.c (ffe_com_init_0): Likewise.
4733
4734         * config/alpha/alpha.c (alpha_init_builtins): Pass an additional
4735         NULL_TREE argument to builtin_function.
4736         * config/arm/arm.c (def_builtin): Likewise.
4737         * config/c4x/c4x.c (c4x_init_builtins): Likewise.
4738         * config/i386/i386.c (def_builtin): Likewise.
4739         * config/ia64/ia64.c (def_builtin): Likewise.
4740         * config/rs6000/rs6000.c (def_builtin): Likewise.
4741
4742 2002-07-01  Zack Weinberg  <zack@codesourcery.com>
4743
4744         * config/ip2k/t-ip2k: Remove LIBGCC1, CROSS_LIBGCC1, and LIBGCC1_TEST.
4745         * config/mips/t-isa3264: Likewise.
4746         * config/mmix/t-mmix: Likewise.
4747
4748 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4749
4750         * emit-rtl.c (init_emit_once): Add missing cast to HOST_WIDE_INT.
4751
4752 2002-07-01  Roger Sayle  <roger@eyesopen.com>
4753
4754         PR opt/4046
4755         * fold-const.c (fold) [COND_EXPR]: Simplify A ? 0 : 1 to !A,
4756         A ? B : 0 to A && B and A ? B : 1 into !A || B if both A and
4757         B are truth values.
4758
4759 2002-07-01  Nathanael Nerode  <neroden@gcc.gnu.org>
4760
4761         * config/mmix/t-mmix: Eliminate last reference to LIBGCC1_TEST.
4762
4763 2002-07-01  Matt Kraai  <kraai@alumni.cmu.edu>
4764
4765         * README.Portability (Function prototypes): Give an example of
4766         declaring and defining a function with no arguments.
4767
4768         * README.Portability (Function prototypes): Document new
4769         variable-argument function macros.
4770
4771 Mon Jul  1 19:55:17 2002  J"orn Rennecke <joern.rennecke@superh.com>
4772
4773         * sh.c (langhooks.h): Include.
4774         (sh_init_builtins, sh_media_init_builtins): New functions.
4775         (sh_expand_builtin, arith_reg_dest,and_operand): Likewise.
4776         (mextr_bit_offset, extend_reg_operand, zero_vec_operand): Likewise.
4777         (sh_rep_vec, sh_1el_vec, sh_const_vec): Likewise.
4778         (builtin_description): New struct tag.
4779         (signature_args, bdesc): New arrays.
4780         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): Undef / define.
4781         (print_operand): Add 'N' modifier.
4782         * sh.h (VECTOR_MODE_SUPPORTED_P): Add SHmedia vector modes.
4783         (EXTRA_CONSTRAINT_U, EXTRA_CONSTRAINT_W): New macros.
4784         (EXTRA_CONSTRAINT): Add 'U' and 'W' cases.
4785         (CONST_COSTS): Add special case for SHmedia AND.
4786         (PREDICATE_CODES): Add and_operand, arith_reg_dest,
4787         extend_reg_operand, extend_reg_or_0_operand, mextr_bit_offset,
4788         sh_const_vec, sh_1el_vec, sh_rep_vec, zero_vec_operand.
4789         target_operand can also be const or unspec.
4790         * sh.md (UNSPEC_INIT_TRAMP, UNSPEC_FCOSA UNSPEC_FSRRA): New constants.
4791         (UNSPEC_FSINA, UNSPEC_NSB, UNSPEC_ALLOCO): Likewise.
4792         (attribute type): Add new types.
4793         (anddi3): Add splitter.
4794         (movdi_const_16bit+1): Add code to handle vector constants and
4795         bitmasks efficiently.
4796         (shori_media): Have generator function made.
4797         (movv8qi, movv8qi_i, movv8qi_i+1, movv8qi_i+2): New patterns.
4798         (movv8qi_i+3, movv2hi, movv2hi_i, movv4hi, movv4hi_i): Likewise.
4799         (movv2si, movv2si_i, absv2si2, absv4hi2, addv2si3, addv4hi3): Likewise.
4800         (ssaddv2si3, usaddv8qi3, ssaddv4hi3, negcmpeqv8qi): Likewise.
4801         (negcmpeqv2si, negcmpeqv4hi, negcmpgtuv8qi, negcmpgtv2si): Likewise.
4802         (negcmpgtv4hi, mcmv, mcnvs_lw, mcnvs_wb, mcnvs_wub): Likewise.
4803         (mextr_rl, mextr_lr, mextr1, mextr2, mextr3, mextr4, mextr5): Likewise.
4804         (mextr6, mextr7, mmacfx_wl, mmacfx_wl_i, mmacnfx_wl): Likewise.
4805         (mmacnfx_wl_i, mulv2si3, mulv4hi3, mmulfx_l, mmulfx_w): Likewise.
4806         (mmulfxrp_w, mmulhi_wl, mmullo_wl, mmul23_wl, mmul01_wl): Likewise.
4807         (mmulsum_wq, mmulsum_wq_i, mperm_w, mperm_w_little): LIkewise.
4808         (mperm_w_big, mperm_w0, msad_ubq, msad_ubq_i, mshalds_l): Likewise.
4809         (mshalds_w, ashrv2si3, ashrv4hi3, mshards_q, mshfhi_b): Likewise.
4810         (mshflo_b,  mshf4_b, mshf0_b, mshfhi_l, mshflo_l, mshf4_l): Likewsie.
4811         (mshf0_l, mshfhi_w, mshflo_w, mshf4_w, mshf0_w, mshfhi_l_di): Likewise.
4812         (mshfhi_l_di_rev, mshflo_l_di, mshflo_l_di_rev): Likewise.
4813         (mshflo_l_di_x, mshflo_l_di_x_rev, ashlv2si3, ashlv4hi3): Likewise.
4814         (lshrv2si3, lshrv4hi3, subv2si3, subv4hi3, sssubv2si3): Likewise.
4815         (ussubv8qi3, sssubv4hi3, fcosa_s, fsina_s, fipr, fsrra_s): Likewise.
4816         (ftrv): Likewise.
4817
4818         (fpu_switch+1, fpu_switch+2): Remove constraint.
4819
4820 2002-07-01  Aldy Hernandez  <aldyh@redhat.com>
4821
4822         * tree.c (build_function_type_list): Update function comment.
4823         Rename first argument to return_type.
4824
4825 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
4826
4827         * Makefile.in: Remove all trace of tradcpp.c, tradcpp.h,
4828         tradcif.y and related files.
4829
4830 2002-07-01  Neil Booth  <neil@daikokuya.co.uk>
4831
4832         * cpptrad.c (skip_whitespace): Pass pointer to prior char.
4833
4834 2002-07-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4835
4836         * mips.h (FUNCTION_ARG_REGNO_P): Fix parentheses.
4837
4838 2002-06-30  Devang Patel  <dpatel@apple.com>
4839
4840         * objc/objc-act.c (finish_file): Avoid finish_objc() if
4841         -fsyntax-only.
4842
4843 Fri Jun 28 17:22:37 2002  Denis Chertykov  <denisc@overta.ru>
4844                           Frank Ch. Eigler  <fche@redhat.com>
4845                           Matthew Green  <mrg@redhat.com>
4846                           Richard Henderson <rtl@redhat.com>
4847                           Dave Hudson  <dave.hudson@ubicom.com>
4848                           Jeff Johnston  <jjohnstn@redhat.com>
4849                           Alan Lehotsky <apl@alum.mit.edu>
4850                           Bernd Schmidt  <bernds@redhat.com>
4851                           Graham Stott  <grahams@redhat.com>
4852
4853         * doc/extend.texi: Add ip2k port to description of attribute
4854         naked.
4855         * doc/install.texi (Specific): Add ip2k description.
4856         * doc/install-old.texi (Configurations): Add ip2k to possible
4857         cpu types.
4858         * doc/md.texi: Document ip2k constraints.
4859         * config/ip2k/crt0.S: New file.
4860         * config/ip2k/ip2k-protos.h: New file.
4861         * config/ip2k/ip2k.c: New file.
4862         * config/ip2k/ip2k.h: New file.
4863         * config/ip2k/ip2k.md: New file.
4864         * config/ip2k/libgcc.S: New file.
4865         * config/ip2k/t-ip2k: New file.
4866
4867 2002-06-30  Hans-Peter Nilsson  <hp@bitrange.com>
4868
4869         * config/mmix/mmix.md ("return"): New pattern.
4870         * config/mmix/mmix.h (TARGET_MASK_USE_RETURN_INSN)
4871         (TARGET_USE_RETURN_INSN): New macros.
4872         (TARGET_DEFAULT): Include TARGET_MASK_USE_RETURN_INSN.
4873         (TARGET_SWITCHES): Add -msingle-exit and -mno-single-exit.
4874         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Fix spacing.
4875         (MMIX_POP_ARGUMENT): New macro.
4876         (mmix_target_asm_function_prologue): When no epilogue is executed,
4877         just emit a blank line.  Use MMIX_POP_ARGUMENT with final POP insn.
4878         (mmix_print_operand) <case '.'>: New case.
4879         (mmix_print_operand_punct_valid_p): Match '.'.
4880         (mmix_use_simple_return): New function.
4881         * config/mmix/mmix-protos.h (mmix_use_simple_return): Prototype.
4882         * doc/invoke.texi (Option Summary) <MMIX Summary>: Add
4883         -msingle-exit, -mno-single-exit.
4884         (MMIX Options): Ditto.
4885
4886 2002-06-30  Aldy Hernandez  <aldyh@redhat.com>
4887
4888         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Fix typos.
4889
4890 2002-06-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4891
4892         * gengtype.c (oprintf): Move VA_CLOSE after all fixedarg uses.
4893
4894 2002-06-30  Alan Modra  <amodra@bigpond.net.au>
4895
4896         * unroll.c (loop_iterations): Handle EQ loops.
4897
4898 2002-06-29  David Edelsohn  <edelsohn@gnu.org>
4899
4900         * config/rs6000/rs6000.md (ctrdi): Allocate pseudo for FPR
4901         constraint in define_expand, not splitter.
4902         Formatting.
4903
4904 2002-06-29  Aldy Hernandez  <aldyh@redhat.com>
4905
4906         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Use
4907         build_function_type_list instead of build_function_type.
4908
4909         * config/ia64/ia64.c (ia64_init_builtins): Same.
4910
4911         * config/alpha/alpha.c (alpha_init_builtins): Same.
4912
4913         * config/rs6000/rs6000.c (altivec_init_builtins): Same.
4914
4915         * config/arm/arm.c (arm_init_builtins): Same.
4916
4917         * tree.h: Add build_function_type_list prototype.
4918
4919         * tree.c (build_function_type_list): New.
4920
4921 2002-06-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4922
4923         * collect2.c (scan_prog_file): Fix typo in message.
4924
4925 2002-06-28  Aaron Lehmann  <aaronl@vitelus.com>
4926
4927         * fold-cont.c: Remove unused CHARMASK.
4928
4929 2002-06-29  Neil Booth  <neil@daikokuya.co.uk>
4930
4931         PR preprocessor/7150
4932         * cppmain.c (scan_translation_unit_trad): Simplify.
4933         * cppmacro.c (cpp_scan_nooutput): Handle traditional case.
4934
4935 2002-06-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4936
4937         * config/i386/crtdll.h: Define EXTRA_OS_CPP_BUILTINS.
4938         Don't use CPP_PREDEFINES.
4939         * config/i386/cygwin.h (EXTRA_OS_CPP_BUILTINS): New.
4940         Used TARGET_OS_CPP_BUILTINS in preference to CPP_PREDEFINES.
4941         * config/i386/djgpp.h, config/i386/i386-coff.h,
4942         config/i386/i386-interix.h, config/i386/i386-interix3.h,
4943         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mingw32.h,
4944         config/i386/openbsd.h, config/i386/ptx4-i.h, config/i386/sysv3.h,
4945         config/i386/uwin.h: Similarly.
4946
4947 2002-06-29  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4948
4949         * c4x.h: (TARGET_CPU_CPP_BUILTINS): Check flag_inline_functions and
4950         flag_inline_trees to enable inlining.
4951
4952 2002-06-28  Phil Edwards  <pme@gcc.gnu.org>
4953
4954         * configure.in (gcc_gxx_include_dir):  Change to match versioned
4955         C++ headers if --enable-version-specific-runtime-libs is used.
4956         * configure:  Regenerate.
4957
4958 2002-06-28  Jan Hubicka  <jh@suse.cz>
4959
4960         * gcse.c (gcse_emit_move_after): Use gen_move_insn to produce the move.
4961
4962 2002-06-28  Stephen Clarke  <stephen.clarke@superh.com>
4963
4964         * combine.c (combine_simplify_rtx): Pass the mode of the
4965         shift count, not the shift operation when trying to simplify
4966         a shift on a SHIFT_COUNT_TRUNCATED target.
4967
4968 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
4969
4970         * config/m68hc11/m68hc11.md ("*addsi3"): Use 'o' constraint to
4971         avoid the auto increment addressing modes.
4972         ("*subsi3"): Likewise.
4973         (split for add/sub on address): For 68HC12 push the value on
4974         the stack and do the operation with a pop.
4975
4976 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
4977
4978         * cpplib.c (_cpp_handle_directive): Move #define-specific
4979         code to the #define handler...
4980         (do_define): ...here.
4981         (lex_macro_node): No longer a need to check for comments here.
4982
4983 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
4984
4985         * config/m68hc11/m68hc11.h (OPTIMIZATION_OPTIONS): Define.
4986         * config/m68hc11/m68hc11-protos.h (m68hc11_optimization_options):
4987         Declare.
4988         * config/m68hc11/m68hc11.c (m68hc11_optimization_options): New,
4989         do not reorder basic blocks at the end when optimizing for size.
4990
4991 2002-06-28  Stephane Carrez  <stcarrez@nerim.fr>
4992
4993         * config/m68hc11/m68hc11.c (autoinc_mode): New function.
4994         (m68hc11_make_autoinc_notes): New function.
4995         (m68hc11_split_move): Be very cautious when spliting a move with
4996         auto increment/decrement modes because this may result in incompatible
4997         directions; add REG_INC notes to the resulting insn for CSE reg.
4998
4999 2002-06-28  Stephane Carrez  <Stephane.Carrez@nerim.fr>
5000
5001         * config/m68hc11/m68hc11.c (register_indirect_p): For 68HC12 a constant
5002         can be a valid address.
5003
5004 2002-06-28  Aldy Hernandez  <aldyh@redhat.com>
5005
5006         * config/rs6000/rs6000.c: Remove unusued variables from last
5007         patch.
5008
5009 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
5010
5011         Revert:
5012         * config/rs6000/rs6000.c (rs6000_override_options): Move
5013         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
5014
5015 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
5016
5017         * config/rs6000/rs6000.c (altivec_expand_builtin): Move
5018         lvx/stv/dst builtins...
5019         (altivec_expand_ld_builtin): ...to here.
5020         (altivec_expand_st_builtin): ...here.
5021         (altivec_expand_dst_builtin): ...and here (respectively).
5022
5023 2002-06-28  Bob Wilson  <bob.wilson@acm.org>
5024
5025         * config/xtensa/xtensa.h (RETURN_IN_MEMORY): Update comment.
5026
5027 2001-06-08  Bernd Schmidt  <bernds@redhat.com>
5028
5029         * emit-rtl.c (gen_lowpart_common): Don't create paradoxical FLOAT_MODE
5030         subregs.
5031         * recog.c (general_operand, register_operand): Disallow them.
5032
5033 2002-06-28  Neil Booth  <neil@daikokuya.co.uk>
5034
5035         PR preprocessor/7138
5036         * cpplib.c (_cpp_handle_directive): Do traditional
5037         preparation after setting state.angled_headers.
5038         * cpptrad.c (scan_out_logical_line): Fix potential
5039         quote bug.
5040
5041 2002-06-27  Aldy Hernandez  <aldyh@redhat.com>
5042
5043         * config/rs6000/rs6000.c (rs6000_override_options): Move
5044         *SUBTARGET_OVERRIDE_OPTIONS before the -m options.
5045
5046 2002-06-27  Bob Wilson  <bob.wilson@acm.org>
5047
5048         * config/xtensa/xtensa.md: Give "*xxx" names to all unnamed insn's.
5049         (*lsiu, *ssiu, movstrsi_internal, zero_cost_loop_start,
5050         zero_cost_loop_end): Remove unnecessary "parallel" from insns.
5051
5052 2002-06-27  Roger Sayle  <roger@eyesopen.com>
5053
5054         * config/d30v/d30v.h: Remove commented out STACK_REGS #defines.
5055         * config/stormy16/stormy16.h: Likewise.
5056
5057         * config/stormy16/stormy16.h (CUMULATIVE_ARGS): Replace typedef
5058         with #define.
5059
5060 2002-06-26  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5061
5062         * doc/install.texi (Binaries): Add Sinix/Reliant Unix.  Move
5063         Hitachi entry.  Make punctuation more consistent.
5064
5065 2002-06-27  Matt Kraai  <kraai@alumni.cmu.edu>
5066
5067         * doc/install.texi: Change ` bit' to `-bit'.
5068         * doc/md.texi: Change `-bits' to `-bit'.
5069         * doc/tm.texi: Change `-bits' to ` bits'.
5070
5071 2002-06-27  Daniel Berlin  <dberlin@dberlin.org>
5072
5073         * gcse.c (hoist_code): Rewrite to only get list of dominated
5074         blocks once per BB. Also fix reversed test (by removing need for
5075         the test at all).
5076
5077 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
5078
5079         * cpphash.h (_cpp_set_trad_context): Remove.
5080         * cpplib.c (prepare_directive_trad): Do nothing for #define.
5081         (cpp_push_buffer, _cpp_pop_buffer): Don't call _cpp_set_trad_context.
5082         * cpptrad.c: Update comments.
5083         (_cpp_read_logical_line_trad): Let scan_logical_line handle
5084         updating the current context.
5085         (scan_logical_line): Update the current context.
5086         (_cpp_create_trad_definition): Similarly.
5087         (_cpp_set_trad_context): Remove.
5088
5089 2002-06-27  Neil Booth  <neil@daikokuya.co.uk>
5090
5091         PR preprocessor/7070
5092         * c-lex.c (cb_def_pragma): Don't try to spell CPP_EOF.
5093
5094 2002-06-26  Bob Wilson  <bob.wilson@acm.org>
5095
5096         * config/xtensa/xtensa-protos.h (xtensa_return_addr): Declare.
5097         config/xtensa/xtensa.c (xtensa_return_addr): New function.
5098         config/xtensa/xtensa.h (RETURN_ADDR_RTX): Use xtensa_return_addr.
5099         config/xtensa/xtensa.md (fix_return_addr): New pattern.
5100
5101 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5102
5103         * mips.c (coprocessor_operand, coprocessor2_operand,
5104         symbolic_operand): Move prototypes from here...
5105         * mips-protos.h (coprocessor_operand, coprocessor2_operand,
5106         symbolic_operand): ...to here.
5107
5108 Wed Jun 26 16:32:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
5109
5110         * config/sh/crt1.asm: remove _stack label definition
5111         and sentinel value.
5112
5113 2002-06-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5114
5115         * varasm.c: Include real.h before output.h.
5116
5117 2002-06-26  Aldy Hernandez  <aldyh@redhat.com>
5118
5119         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Revert change to
5120         check for TARGET_ALTIVEC.
5121
5122 2002-06-26  Nathanael Nerode  <neroden@gcc.gnu.org>
5123
5124         * config.gcc (vax-*-vms*): Make obselete.
5125
5126 2002-06-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5127
5128         * gcc.c (warn_std): Delete.
5129
5130 2002-06-25  Loren J. Rittle  <ljrittle@acm.org>
5131
5132         * doc/extend.texi: Fix formatting of last checkin.
5133
5134 2002-06-25  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5135
5136         * config/alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Remove leading
5137         underscore from __IEEE_FP and __IEEE_FP_INEXACT.
5138
5139 2002-06-25  Aldy Hernandez  <aldyh@redhat.com>
5140
5141         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5142         discrepancies from motorola's documentation.
5143
5144 Tue Jun 25 21:51:13 2002  J"orn Rennecke <joern.rennecke@superh.com>
5145
5146         * optabs.c (expand_vector_binop, expand_vector_unop): Don't assume
5147         GET_MODE_UNIT_SIZE (mode) == UNITS_PER_WORD.
5148
5149         * config/sh/lib1funcs.asm (udivdi3): Make first divide step
5150         produce a 32 bit result before normalization, then normalize with a
5151         left shift.  Compute approximative error of 2nd reciprocal
5152         approximation in 2's complement.  Fix mask generation from upper
5153         longword of second divide stage result.
5154         For large divisor, fix shift count used to truncate first stage
5155         divide result; make decision if to adjust upwards based on comparison
5156         of higher parts of normalized values.
5157         (udivdi): Likewise.  Undo normalization of result for large divisor
5158         case.
5159
5160 2002-06-25  David S. Miller  <davem@redhat.com>
5161
5162         * config/sparc/sparc.md: Change \\{t,n} to \{t,n}.
5163
5164 2002-06-25  Neil Booth  <neil@daikokuya.co.uk>
5165
5166         * cpplib.c (do_include_common): Revert to correct line number
5167         if -traditional.
5168         * cpptrad.c (scan_out_logical_line): Treat null directive as
5169         white space.  Invlidate MI optimization for non-whitespace
5170         text outside a directive.
5171
5172 2002-06-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5173
5174         * Makefile.in (SHELL): Set to @SHELL@.
5175         * fixinc/Makefile.in (SHELL): Likewise.
5176
5177         * mips.md (fixuns_truncdfsi2, fixuns_truncdfdi2,
5178         fixuns_truncsfsi2, fixuns_truncsfdi2): Avoid automatic aggregate
5179         initialization.
5180
5181 2002-06-24  Jeff Law <law@redhat.com>
5182
5183         * flow.c (propagate_one_insn): When removing an insn
5184         with a REG_LIBCALL note but not the entire libcall sequence,
5185         delete the associated REG_RETVAL note.
5186
5187 Mon Jun 24 21:05:09 2002  J"orn Rennecke <joern.rennecke@superh.com>
5188
5189         * lib1funcs.asm (sdivsi3): Add optimized SH64 implementations.
5190         (udivsi3): Likewise.  Rewrite SH1 implementation.
5191         (udivdi3, divdi3, umoddi3, moddi3): New SHmedia functions.
5192         * sh.md (R20_REG, R21_REG, R22_REG, R23_REG, FR23_REG): New constants.
5193         (udivsi3_i1_media, divsi3_i1_media): Fix clobber list.
5194         * config/sh/t-sh64 (LIB1ASMFUNCS): (_udivdi3, _divdi3, _umoddi3): Add.
5195         (_moddi3): Likewise.
5196
5197         * lib1funcs.asm (ic_invalidate): Add data cache line writeback.
5198
5199         * sh.h (FUNCTION_ARG_ADVANCE): Take SHCOMPACT_FORCE_ON_STACK
5200         arguments into account for stack_regs.
5201
5202 2002-06-24  Matt Kraai  <kraai@alumni.cmu.edu>
5203
5204         * doc/extend.texi: Change `@dots{}' to `/* @r{@dots{}} */'
5205         in examples.
5206
5207 2002-06-24  Art Haas  <ahaas@neosoft.com>
5208
5209         * doc/extend.texi (Other Builtins): Change `...' to `@dots{}'.
5210         * doc/tm.texi (Frame Layout): Likewise.
5211
5212 2002-06-20  Steve Ellcey  <sje@cup.hp.com>
5213
5214         * gcc/config.gcc (ia64*-*-hpux*): Set use_collect2 to no.
5215         Set float_format to i128.
5216
5217 2002-06-24  David S. Miller  <davem@redhat.com>
5218
5219         * config/sparc/sparc.c (INIT_TARGET_OPTABS): If ARCH64, set the
5220         32-bit ABI libfuncs to NULL.
5221
5222         * config/sparc/sparc.md: Use define_insn_and_split.  Use braced
5223         strings instead of quoted strings for code blocks.
5224
5225         * expmed.c (expand_divmod): Do not set optab1/optab2 to the shift
5226         optabs if op1 is const0_rtx.
5227
5228         * Makefile.in (GTFILES): Add basic-block.h
5229         * basic-block.h (label_value_list, tail_recursion_label_list):
5230         Mark with GTY.
5231
5232 2002-06-24  Neil Booth  <neil@daikokuya.co.uk>
5233
5234         * cpptrad.c (scan_out_logical_line): Check recursing only when
5235         we know we have a macro invocation in the function-like case.
5236         Only call _cpp_handle_directive if we know we have a good
5237         directive, or we want to reject a bad directive.
5238
5239 2002-06-24  Alan Modra  <amodra@bigpond.net.au>
5240
5241         * doloop.c (doloop_valid_p): Correct comment.
5242         (doloop_modify_runtime <abs_inc != 1>): Simplify.
5243         (doloop_modify_runtime <do-while>): Don't emit code when NE.
5244
5245 Thu Jun 20 00:26:53 2002  Denis Chertykov  <denisc@overta.ru>
5246
5247         * config.gcc: Add support for ip2k.
5248
5249 2002-06-23  Jan Hubicka  <jh@suse.cz>
5250             Jeff Law <law@redhat.com>
5251
5252         * function.h (struct emit_status): Clarify potential contents
5253         of regno_reg_rtx array.
5254         * integrate.c (copy_rtx_and_substitute): Update comments.  Make
5255         sure entry in regno_reg_rtx is a REG before checking REG_POINTER.
5256
5257         * reg-stack.c (convert_regs_exit): Push the registers to stack in
5258         proper order.
5259
5260 2002-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
5261
5262         PR middle-end/6963
5263         * function.c (assign_stack_temp_for_type): Do not return
5264         the same MEM rtx for multiple uses of a stack slot.
5265
5266 2002-06-22  David S. Miller  <davem@redhat.com>
5267
5268         PR target/6841 target/6770 target/6719
5269         * config/sparc/sparc.h (PREFERRED_RELOAD_CLASS): Return
5270         NO_REGS for constant X when CLASS is GENERAL_OR_FP_REGS or
5271         GENERAL_OR_EXTRA_FP_REGS.
5272
5273 2002-06-22  Neil Booth  <neil@daikokuya.co.uk>
5274
5275         * cpptrad.c (struct fun_macro): Add line number.
5276         (scan_out_logical_line): Set it, and use it to report unterminated
5277         macro invocations.
5278
5279 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5280
5281         * genautomata.c (copy_node, VLA_PTR_CREATE, VLA_PTR_EXPAND,
5282         VLA_PTR_ADD, VLA_HWINT_CREATE, VLA_HWINT_EXPAND, VLA_HWINT_ADD,
5283         DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON, DECL_EXCL, DECL_PRESENCE,
5284         DECL_ABSENCE, DECL_RESERV, DECL_INSN_RESERV, REGEXP_UNIT,
5285         REGEXP_RESERV, REGEXP_SEQUENCE, REGEXP_REPEAT, REGEXP_ALLOF,
5286         REGEXP_ONEOF, check_name): Const-ify.
5287
5288 2002-06-21  Matt Thomas  <matt@3am-software.com>
5289
5290         * config/vax/vax.c (vax_output_function_prologue): Use
5291         REGISTER_PREFIX.  Fix some indentation.
5292         * config/vax/vax.h (FUNCTION_PROFILER): Use reg_names[].
5293         (VAX_ISTREAM_SYNC): Define.
5294         (INITIALIZE_TRAMPOLINE): Use VAX_ISTREAM_SYNC.  Move the
5295         i-stream sync to the end.
5296         (REGISTER_PREFIX): Define as "".
5297         (ASM_OUTPUT_MI_THUNK): Use REGISTER_PREFIX.
5298
5299 2002-06-21  Jason Thorpe  <thorpej@wasabisystems.com>
5300
5301         * config.gcc (ns32k-*-netbsd*): Remove from list of obsolete
5302         configurations.
5303
5304 2002-06-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5305
5306         * tree.c (tree_node_kind, tree_node_counts, tree_node_sizes,
5307         tree_node_kind_names): Wrap in GATHER_STATISTICS macro.
5308
5309 2002-06-21  Matt Thomas  <matt@3am-software.com>
5310
5311         * config/vax/netbsd.h: Adjust a comment.
5312         (TARGET_DEFAULT): Redefine as 0.
5313
5314 2002-06-21  Richard Henderson  <rth@redhat.com>
5315
5316         * bb-reorder.c (make_reorder_chain_1): Search harder for the
5317         vax casesi fallthru edge.
5318         * cfglayout.c (cleanup_unconditional_jumps): Use
5319         redirect_edge_succ_nodup.  Do not delete ADDR_VEC insns as dead.
5320         * cfgrtl.c (force_nonfallthru_and_redirect): Place redirection
5321         block after ADDR_VEC.
5322
5323 2002-06-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5324
5325         * config/sparc/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
5326
5327 2002-06-21  Neil Booth  <neil@daikokuya.co.uk>
5328
5329         * cpperror.c (cpp_error): For traditional CPP, default to
5330         diagnostics on pfile->line.
5331         * cpplib.c (prepare_directive_trad): Set line number for
5332         diagnostics for #define too.
5333         * cpptrad.c (skip_whitespace): Skip comments properly.
5334         (_cpp_expansions_different_trad): Initialize quote2.
5335
5336 2002-06-21  Hans-Peter Nilsson  <hp@bitrange.com>
5337
5338         * config/mmix/mmix.md: Change GNU CC to GCC in file header comment.
5339         * config/mmix/mmix.h: Ditto.
5340         * config/mmix/mmix-protos.h: Ditto.
5341         * config/mmix/mmix.c: Ditto.  Fix typo in comment.
5342         * config/mmix/mmix-modes.def: Change GNU CC to GCC in file header
5343         comment.  Comment extra CC modes.
5344
5345 2002-06-20 Jan Hubicka  <jh@suse.cz>
5346
5347         * cfglayout.c (scope_to_insns_initialize): Call set_block_levels.
5348         (scope_to_insns_finalize): Do not call set_block_levels; handle
5349         sequences.
5350         (choose_inner_scope): New.
5351         * rtl.h (choose_inner_scope): Declare.
5352
5353 2002-06-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5354
5355         * pa-protos.h (pa_asm_output_mi_thunk): Change third argument to
5356         HOST_WIDE_INT.
5357         * pa.c (pa_asm_output_mi_thunk): Likewise.
5358         (n_deferred_plabels): Change type to size_t.
5359         (output_deferred_plabels, output_call): Use size_t instead of int.
5360
5361 2002-06-20  Richard Henderson  <rth@redhat.com>
5362
5363         PR target/4041
5364         * config/m68k/m68k.md (zero_extendsidi2): Create expander; duplicate
5365         pattern and adjust constraints for coldfire.
5366
5367 2002-06-20  Richard Henderson  <rth@redhat.com>
5368
5369         * explow.c (probe_stack_range): Use gen_rtx_fmt_ee.
5370
5371 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
5372
5373         * config.gcc (mipsisa64-*-elf*, mipsisa64el-*-elf*): New targets.
5374
5375 2002-06-20  Chris Demetriou  <cgd@broadcom.com>
5376
5377         * config/mips/mips.h (ISA_HAS_FP4): Fix comment to reflect use.
5378
5379 2002-06-20  Stan Shebs  <shebs@apple.com>
5380
5381         * dominance.c: Include errors.h instead of error.h.
5382
5383 2002-06-20  Neil Booth  <neil@daikokuya.co.uk>
5384
5385         * cppexp.c (cpp_interpret_integer): Don't force traditional
5386         numbers to be unsigned.
5387         * cpplib.c (prepare_directive_trad): Set line number for
5388         diagnostics.
5389         * cpptrad.c (scan_out_logical_line): Continue scanning out
5390         at start of buffer.
5391         * gcc.c (trad_capable_cpp): Use cc1 always.
5392
5393 2002-06-20  Jeffrey Law  <law@redhat.com>
5394
5395         * i386.h (TARGET_DEFAULT): Do not turn on frame pointer
5396         elimination in leaf functions by default yet.
5397
5398 2002-06-20  Richard Sandiford  <rsandifo@redhat.com>
5399
5400         * combine.c (make_extraction): Reapply to the argument of an ASHIFT.
5401
5402 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5403
5404         * config/sparc/t-crtfm (crtfastmath.o): Prefix with $(T) for
5405         multilibs.
5406         * config/sparc/t-sol2-64 (EXTRA_MULTILIB_PARTS): Add crtfastmath.o.
5407         Fixes PR other/6836.
5408
5409 Thu Jun 20 19:42:21 CEST 2002  Jan Hubicka  <jh@suse.cz>
5410                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
5411
5412         Mon Jun 10 20:42:34 CEST 2002  Jan Hubicka  <jh@suse.cz>
5413
5414         * basic-block.h: Do not include et-forest.h
5415         (dominance_info): Declare as struct dominance-info.
5416         * cfglayout.c (cleanup_unconditional_jumps): Remove the edge before
5417         deleting block.
5418         * dominance.c (struct dominance_info): Define.
5419         (BB_NODE, SET_BB_NODE): New macros.
5420         (bb_hash_func, bb_eq_func): Kill.
5421         (calculate_dominace_info, free_dominacne_info, set_immediate_dominator,
5422         nearest_common_dominator, dominated_by_p, recount_dominator,
5423         add_to_dominance_info, delete_from_dominance_info): update for new
5424         representation.
5425         (get_dominated_by, redirect_immediate_dominators): Rewrite using
5426         enumerate_sons.
5427         * ifcvt.c (process_double_test_block, merge_if_block, find_cond_trap,
5428         find_if_case_1, find_if_case_2): Remove killed blocks from dominance
5429         structure.
5430
5431         * et-forest.h: Update copyright; revamp all function to operate on
5432         nodes
5433         (et_forest_value): Kill.
5434         (et_forest_enumerate_sons, et_forest_node_value): New.
5435         * et-forest.c: Update copyright.
5436         * et-forest.h: Update copyright; revamp all function to operate on
5437         nodes
5438         (et_forest_value): Kill.
5439         (et_forest_enumerate_sons, et_forest_node_value): New.
5440
5441         Thu Jun  6 22:43:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
5442
5443         * basic-block.h: Inlude et-forest.h
5444         (basic_block_def): Kill dominator.
5445         (dominance_info): New type.
5446         (loops): Use dominace_info.
5447         (dominace handling functions): Take dominace_info as argument
5448         instead of bitmaps.
5449         (create_preheader): Likewise.
5450         * cfg.c (entry_exit_blocks): Kill dominator.
5451         (dump_flow_info): Do not dump dominators.
5452         * cfglayout.c (cleanup_unconditonal_jumps): Delete deleted block from
5453         dominators.
5454         * cfgloop.c (flow_pre_header_find): Use dominacne_info.
5455         (flow_loops_pre_header_scan, make_forwarder_block,
5456         canonicale_loop_headers, flow_loops_find): Likewise.
5457         * dominance.c: Include error.h
5458         (idoms_to_doms): Kill.
5459         (bb_hash_func, bb_eq_func): New static functions.
5460         (debug_dominace_info): New global function.
5461         (calculate_dominance_info): Use new et forest structure.
5462         (free_dominace_info, get_immediate_dominator, set_immediate_dominator,
5463         get_dominated_by, redirect_immediate_dominators,
5464         nearest_common_dominator, dominated_by_p, verify_dominators,
5465         recount_dominator, iterate_fix_dominators, add_to_dominace_info,
5466         delete_from_dominance_info): New global functions.
5467         * gcse.c (domnators): CHange to dominance_info.
5468         (alloc_hoist_mem): Do not alloc dominators
5469         (free_code_hoist_mem): Use free_dominance_info.
5470         (compute_code_hoist_data): Use dominance_info.
5471         (hoist_code): Likewise.
5472         * ifcvt.c (post_dominators): Likewise.
5473         (find_if_case_2, if_convert): Likewise.
5474         * predict.c (process_note_predictions, process_note_prediction,
5475         estimate-probability): Likewise.
5476         * sched-rgn.c (find_rgns, init_regions): Likewise.
5477         * ssa-dce.c (find_all_control_dependences, fint_control_depemndence,
5478         find_pdom, delete_insn_bb, ssa_eliminate_dead_code): Likewise.
5479         * ssa.c (compute_dominance_frontiers_1, rename_block, rename_registers,
5480         find_evaluations, convert_to_ssa): Likewise.
5481         * ssa.h (compute_dominance_frontiers): Likewise.
5482
5483         Thu Jun  6 22:57:34 CEST 2002  Pavel Nejedly <bim@atrey.karlin.mff.cuni.cz>
5484
5485         * Makefile.in (et-forest.c): Add.
5486         * et-forest.c: New file.
5487         * at-forest.h: New file.
5488
5489 2002-06-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5490
5491         * c-decl.c (c_decode_option): Use ARRAY_SIZE in lieu of explicit
5492         array size calculation.
5493         * gengtype.c (NUM_BASE_FILES, create_file, write_gc_root):
5494         Likewise.
5495
5496         * diagnostic.c (diagnostic_kind_text): Const-ify.
5497         * gengtype.c (lang_names): Likewise.
5498
5499 Thu Jun 20 17:25:29 CEST 2002  JAn HUbicka  <jh@suse.cz>
5500
5501         * combine.c (subst): Be prepared for simplify_subreg to return VOIDmode.
5502
5503 2002-06-20  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5504
5505         * config/sol2.h: New file.
5506         * config.gcc (i?86-*-solaris2*): Include it before i386/sol2.h.
5507         (sparc64-wrs-vxworks*): Include it before sparc/sol2.h.
5508         (sparc-*-chorusos*): Likewise.
5509         (sparc-*-elf*): Likewise.
5510         (sparc-*-rtems*, sparc-*-rtemself*): Likewise.
5511         (sparc64-*-solaris2*, sparcv9-*-solaris2*): Likewise.
5512         (sparc-hal-solaris2*): Likewise.
5513         (sparc-*-solaris2*): Likewise.
5514         (sparclite-*-elf*): Likewise.
5515         (sparc86x-*-elf*): Likewise.
5516         (sparc64-*-elf*): Likewise.
5517
5518         * config/i386/sol2.h (PREFERRED_DEBUGGING_TYPE): Moved to
5519         config/sol2.h.
5520         (ASM_SPEC): Override config/sol2.h version for now.
5521         Removed obsolete GAS_REJECTS_MINUS_S variant.
5522         (WINT_TYPE, WINT_TYPE_SIZE): Moved to config/sol2.h.
5523         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
5524         (TARGET_OS_CPP_BUILTINS): Likewise.
5525         Assert system=unix.
5526         (CPP_SPEC): Simplified using new CPP_SUBTARGET_SPEC.
5527         (LIB_SPEC, ENDFILE_SPEC, STARTFILE_SPEC, LINK_SPEC): Moved to
5528         config/sol2.h.
5529         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
5530         (ASM_CPU_SPEC): Define.
5531         (SUBTARGET_EXTRA_SPECS): Define.
5532
5533         * config/sparc/sol2-bi.h (LONG_DOUBLE_TYPE_SIZE): Removed, already
5534         in config/sparc/sol2.h.
5535         (ASM_SPEC): Moved to config/sol2.h.
5536         (CPP_CPU_SPEC): Simplified.
5537         (STARTFILE_SPEC32): Likewise, renamed to STARTFILE_ARCH32_SPEC for
5538         consistency.
5539         (STARTFILE_SPEC64): Renamed to STARTFILE_ARCH64_SPEC.
5540         (STARTFILE_ARCH_SPEC): Use new names STARTFILE_ARCH32_SPEC,
5541         STARTFILE_ARCH64_SPEC.
5542         (STARTFILE_SPEC): Moved to config/sol2.h
5543         (SUBTARGET_EXTRA_SPECS): Add startfile_arch.
5544         (LINK_ARCH32_SPEC): Moved to config/sol2.h.
5545         (LINK_ARCH64_SPEC): Simplified.
5546         (LINK_ARCH_SPEC): Redefined config/sol2.h version for 64-bit support.
5547         (LINK_SPEC): Moved to config/sol2.h
5548
5549         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Moved to
5550         config/sol2.h.
5551         Use BITS_PER_WORD for size.
5552         (WINT_TYPE, WINT_TYPE_SIZE): Likewise.
5553         (HANDLE_PRAGMA_REDEFINE_EXTNAME): Likewise.
5554         (CPP_PREDEFINES): Removed OS-specific part handled by
5555         TARGET_OS_CPP_BUILTINS.
5556         (CPP_SUBTARGET_SPEC): Moved to config/sol2.h.
5557         (CPLUSPLUS_CPP_SPEC): Removed, handled by TARGET_OS_CPP_BUILTINS.
5558         (ASM_SPEC): Moved to config/sol2.h.
5559         (PREFERRED_DEBUGGING_TYPE): Likewise.
5560         (STARTFILE_SPEC, LIB_SPEC, LINK_SPEC): Likewise.
5561         (SWITCH_TAKES_ARG, STDC_0_IN_SYSTEM_HEADERS): Likewise.
5562         (TARGET_DEFAULT): Reordered to match config/sparc/sol2-bi.h version.
5563         (TRANSFER_FROM_TRAMPOLINE): Moved to config/sol2.h
5564
5565         * config.gcc (i?86-*-solaris2*): Removed obsolete gas support.
5566         * config/i386/sol2gas.h: Removed.
5567
5568 Thu Jun 20 12:14:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
5569
5570         * i386.md (xorqi_1_slp, xorqi_2_slp): New patterns.
5571
5572 2002-06-16  Aldy Hernandez  <aldyh@redhat.com>
5573
5574         * gcc.c-torture/execute/simd-1.c: New.
5575
5576         * gcc.dg/simd-1.c: New.
5577
5578         * doc/extend.texi (Vector Extensions): Document that we can
5579         specify simd types not specifically supported by the hardware.
5580         Document that simd types can be used as function arguments.
5581         Document that signness does make a difference in SIMD types.
5582         Misc cleanups and revisions to the vector extensions section.
5583
5584         * simplify-rtx.c (simplify_subreg): Simplify subregs of vector
5585         constants.
5586
5587         * expr.c (vector_mode_valid_p): New.
5588
5589         * expr.h: Add vector_mode_valid_p.
5590
5591         * defaults.h (VECTOR_MODE_SUPPORTED_P): Set default.
5592
5593         * c-common.c (type_for_mode): Always build vector nodes regardless
5594         of VECTOR_MODE_SUPPORTED_P.
5595         (handle_mode_attribute): Error if we can't emulate a nonexisting
5596         vector mode.
5597         (handle_vector_size_attribute): Same.
5598
5599         * optabs.c (expand_binop): Open-code vector operations.
5600         (expand_unop): Open-code vector unops.
5601         (expand_vector_binop): New.
5602         (expand_vector_unop): New.
5603
5604         * c-typeck.c (build_binary_op): Allow vectors in binops.
5605         Allow vectors in conditional operatiors.
5606         (build_unary_op): Allow vectors in unary minus.
5607
5608         * config/rs6000/rs6000.h (ALTIVEC_VECTOR_MODE): Conditionalize on
5609         TARGET_ALTIVEC.
5610
5611 2002-05-20  Richard Henderson  <rth@redhat.com>
5612
5613         * c-common.c (c_common_get_alias_set): Correctly handle characters.
5614         Rearrange order of expressions; don't handle vectors here.
5615         * alias.c (get_alias_set): Let vectors match their components.
5616
5617 2002-06-19  Chris Demetriou  <cgd@broadcom.com>
5618
5619         * config/mips/mips.c (mips_emit_prefetch): Use hints which
5620         match desired locality.
5621
5622 2002-06-19  Dhananjay R. Deshpande  <dhananjayd@kpit.com>
5623
5624         * config/h8300/h8300.c (TARGET_INSERT_ATTRIBUTES): Define.
5625         (h8300_insert_attributes): New.
5626
5627 2002-06-19  Akim Demaille  <akim@epita.fr>
5628
5629         * c-parse.in (initelt: identifier ':' initval): Add an empty
5630         action to fix a type clash.
5631         (aliasdecl, classdef): Add the missing closing `;'.
5632         Whitespace changes.
5633         * gengtype-yacc.y (typedef_struct): Add an empty action to preevnt
5634         $$ = $1 type clashes.
5635
5636 2002-06-19  Eric Christopher  <echristo@redhat.com>
5637
5638         * config/mips/mips.c (symbol_operand): New function.
5639         (mips_emit_prefetch): Ditto.
5640         * config/mips/mips-protos.h: Define.
5641         * config/mips/mips.h (ISA_HAS_PREFETCH): Define.
5642         (CONSTANT_ADDRESS_P): Adjust, use TARGET_GAS.
5643         (LEGITIMIZE_ADDRESS): Ditto.
5644         * config/mips/mips.md (prefetch, prefetch_si_address,
5645         prefetch_si, prefetch_di_address, prefetch_di): New patterns.
5646
5647 2002-06-19  Eric Christopher  <echristo@redhat.com>
5648
5649         * config/fp-bit.h: Add unordered defines for gofast.
5650
5651 2002-06-19  Vladimir Makarov  <vmakarov@redhat.com>
5652
5653         * genautomata.c (DECL_UNIT, DECL_BYPASS, DECL_AUTOMATON,
5654         DECL_EXCL, DECL_PRESENCE, DECL_ABSENCE, DECL_RESERV,
5655         DECL_INSN_RESERV, REGEXP_UNIT, REGEXP_RESERV, REGEXP_SEQUENCE,
5656         REGEXP_REPEAT, REGEXP_ALLOF, REGEXP_ONEOF): New macros with
5657         checking and without it.
5658         (decl_name, decl_mode_check_failed, regexp_name,
5659         regexp_mode_check_failed): New functions.
5660         (gen_cpu_unit, gen_query_cpu_unit, gen_bypass, gen_excl_set,
5661         gen_presence_set, gen_absence_set, gen_automaton,
5662         gen_regexp_repeat, gen_regexp_allof, gen_regexp_oneof,
5663         gen_regexp_sequence, gen_reserv, gen_insn_reserv,
5664         automaton_decl_hash, automaton_decl_eq_p): Use the macros.
5665         (find_automaton_decl): Ditto.  Set up mode of work_automaton_decl.
5666         (insn_decl_hash, insn_decl_hash, insn_decl_eq_p): Use the macros.
5667         (find_insn_decl): Ditto.  Set up mode of work_insn_decl.
5668         (decl_hash, decl_eq_p): Use the macros.
5669         (find_decl): Ditto.  Set up mode of work_decl.
5670         (process_excls, process_presence_absence, process_decls,
5671         check_automaton_usage, process_regexp, process_regexp_decls,
5672         check_usage, loop_in_regexp, check_loops_in_regexps,
5673         process_regexp_cycles, add_advance_cycle_insn_decl,
5674         initiate_states, initiate_excl_sets,
5675         initiate_presence_absence_sets, copy_insn_regexp, transform_1,
5676         transform_2): Use the macros.
5677         (transform_3): Ditto.  Check mode before making transformations of
5678         ALLOF.
5679         (regexp_transform_func, transform_insn_regexps,
5680         process_unit_to_form_the_same_automaton_unit_lists,
5681         form_the_same_automaton_unit_lists_from_regexp,
5682         form_the_same_automaton_unit_lists,
5683         process_seq_for_forming_states, process_alts_for_forming_states,
5684         create_alt_states, form_ainsn_with_same_reservs, make_automaton,
5685         form_arcs_marked_by_insn, NDFA_to_DFA, set_new_cycle_flags,
5686         estimate_one_automaton_bound, compare_max_occ_cycle_nums,
5687         units_to_automata_heuristic_distr, create_ainsns,
5688         units_to_automata_distr, create_automata): Use the macros.
5689         (form_regexp): Ditto.  Fix typo in access to fields of ALLOF.
5690         (longest_path_length, min_issue_delay_pass_states,
5691         output_dead_lock_vect, output_tables, output_insn_code_cases,
5692         output_internal_insn_latency_func, output_print_reservation_func,
5693         output_description, output_automaton_units, generate): Use the
5694         macros.
5695         (make_insn_alts_attr): Ditto.  Check case when there are not
5696         alternatives in the reservation.
5697         (make_internal_dfa_insn_code_attr, make_default_insn_latency_attr,
5698         make_bypass_attr, form_important_insn_automata_lists,
5699         expand_automata): Use the macros.
5700
5701 2002-06-20  Tim Josling  <tej@melbpc.org.au>
5702
5703         * Makefile.in: Clean up code to check for misspecified languages
5704         in enable-languages.
5705
5706 2002-06-19  Andrew Pinski <pinskia@physics.uc.edu>
5707
5708         * cpptrad.c (_cpp_replacement_text_len): initialize len.
5709
5710 2002-06-19  Jason Merrill  <jason@redhat.com>
5711
5712         * Makefile.in (unstrap, restrap): New targets.
5713         (bootstrap): Mention restrap.
5714
5715 2002-06-19  Matt Kraai  <kraai@alumni.cmu.edu>
5716
5717         * except.c (ehl_free): Remove.
5718
5719         * doc/tm.texi (TARGET_CPU_CPP_BUILTINS): Correct misnamings of
5720         builtin_define and builtin_define_std.
5721
5722 2002-06-19  Ian Dall  <ian@sibyl.beware.dropbear.id.au>
5723
5724         * config/ns32k/ns32k.md: Give "*xxx" names to all unnamed insn's.
5725         (sCOND): Restrict operand class so that gcc knows how to reload them.
5726         (bitfield_set): Merge two unnamed insn's using alternatives.
5727         (call_value): Remove constraint on unused uperand.
5728         (udivmodhi4, udivmodsi4, udivmoddihi4_internal): Remove.
5729         (udivmoddiqi4_internal, udivmoddihi4, udivmoddiqi4): Remove.
5730
5731         * longlong.h (count_trailing_zeros): Escape newline and beautify.
5732
5733 2002-06-19  Mark Mitchell  <mark@codesourcery.com>
5734
5735         * Makefile.in (QMTEST_DIR): Simplify definition.
5736
5737 2002-06-19  Nick Clifton  <nickc@cambridge.redhat.com>
5738
5739         * config/d30v/d30v.h (CUMULATIVE_ARGS): Replace typedef with
5740         #define.
5741
5742 2002-06-19  Neil Booth  <neil@daikokuya.co.uk>
5743
5744         * cpphash.h (struct cpp_reader): Make date and time strings.
5745         (_cpp_builtin_macro_text, _cpp_copy_replacement_text,
5746         _cpp_replacement_text_len): New.
5747         * cppinit.c (cpp_create_reader): Update.
5748         (init_builtins): Register appropriate builtins for -traditional-cpp.
5749         * cppmacro.c (new_number_token): Remove.
5750         (_cpp_builtin_macro_text): New.
5751         (builtin_macro): Use it.
5752         (cpp_macro_definition): Update to handle traditional macros.
5753         * cppmain.c (cb_line_change): Don't do column positioning for
5754         traditional output.
5755         * cpptrad.c (enum ls): Rename ls_fun_macro to ls_fun_open.  New
5756         state ls_fun_close.
5757         (skip_whitespace): Fix.
5758         (maybe_start_funlike): Don't set state.parsing_args.
5759         (scan_out_logical_line): Remove duplicate error.  Use lex_state
5760         rather than state.parsing_args.
5761         (push_replacement_text): Handle builtins.
5762         (_cpp_replacement_text_len, _cpp_copy_replacement_text): New.
5763
5764 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
5765             Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5766
5767         * config/fp-bit.c (_fpmul_parts, _fpdiv_parts): Mark with
5768         attribute __always_inline__.
5769
5770 2002-06-18  Bob Wilson  <bob.wilson@acm.org>
5771
5772         * config/xtensa/xtensa.h (FUNCTION_PROFILER): Respect flag_pic
5773         when generating the call to _mcount.
5774         (NO_PROFILE_COUNTERS): Define.
5775
5776 2002-06-18  Richard Henderson  <rth@redhat.com>
5777
5778         * print-rtl.c (print_rtx): Adjust NOTE argument numbers for
5779         2002-06-02 change.
5780
5781 Tue Jun 18 20:53:32 2002  J"orn Rennecke <joern.rennecke@superh.com>
5782
5783         * t-sh (MULTILIB_EXCEPTIONS): Set to ml.
5784         config/sh/t-linux (MULTILIB_EXCEPTIONS): Clear.
5785         * config/sh/t-netbsd (MULTILIB_EXCEPTIONS): Likewise.
5786         * config/sh/t-sh64 (MULTILIB_EXCEPTIONS): Likewise.
5787
5788         * sh-protos.h (sh_pr_interrupt): Declare.
5789         * sh.c (sh_pr_interrupt): New function.
5790         (print_operand, calc_live_regs, sh_expand_prologue): Use it.
5791         (sh_hard_regno_rename_ok): Likewise.
5792         * sh.h (NORMAL_MODE): FP_MODE_NONE for interupt handlers.
5793
5794 2002-06-18  Vladimir Makarov  <vmakarov@redhat.com>
5795
5796         * rtl.def (DEFINE_AUTOMATON): Add description of new options
5797         `time' and `v'.  Fix incorrect description of option `w'.
5798
5799         * doc/md.texi: Ditto.
5800
5801         * genautomata.c (TIME_OPTION, V_OPTION): New macros.
5802         (gen_automata_option): Process the new options.
5803         (transform_2, transform_3): Initialize some variables.
5804         (initiate_automaton_gen): Use the new macros.
5805
5806 2002-06-18  Richard Sandiford  <rsandifo@redhat.com>
5807
5808         * config/mips/mips-protos.h (mips_initial_elimination_offset): Declare.
5809         (mips_set_return_address, mips_restore_gp): Declare.
5810         * config/mips/mips.h (struct mips_frame_info): Move to mips.c
5811         (current_frame_info): Remove.
5812         (INITIAL_ELIMINATION_OFFSET): Use mips_initial_elimination_offset.
5813         * config/mips/mips.c: Remove uses of current_frame_info.
5814         (struct mips_frame_info): Moved from mips.h.  Remove 'insns_len'.
5815         (struct machine_function): Add 'frame' and 'insns_len'.
5816         (current_frame_info, zero_frame_info): Remove.
5817         (mips_restore_gp, mips_set_return_address): New.
5818         (mips_initial_elimination_offset): New.
5819         * config/mips/mips.md (exception_receiver): Use mips_restore_gp.
5820         (eh_return define_split): Use mips_set_return_address.
5821
5822 2002-06-18  Neil Booth  <neil@daikokuya.demon.co.uk>
5823
5824         * cpplib.c (dtable): Update.
5825         (end_directive): Decrement expansion prevention count.
5826         Clear state.in_expression.
5827         (prepare_directive_trad): Set state.in_expression.
5828         Increment expansion prevention count.
5829         * cpptrad.c (enum ls): New.
5830         (_cpp_overlay_buffer): Set overlaid_buffer.
5831         (_cpp_remove_overlay): Use overlaid_buffer.
5832         (_cpp_read_logcial_line_trad): Update buffer when it might
5833         have changed.
5834         (scan_out_logical_line): Handle state transitions for assertions
5835         and defined() in #if, and for funlike invocations including the
5836         directive case.  Handle '<' and '>' as a quote mechanism in
5837         #include.  Warn about unterminated macro invocations.
5838         * cpphash.h (struct lexer_state): New member in_expression.
5839         (struct cpp_reader): New member overlaid buffer.
5840
5841 2002-06-18  Hans-Peter Nilsson  <hp@axis.com>
5842
5843         * config/cris/arit.c (do_31div, __Udiv, __Umod): Mark prototype
5844         __always_inline__.
5845
5846 2002-06-18  Alan Modra  <amodra@bigpond.net.au>
5847
5848         * config/ia64/ia64.md (doloop_end_internal): Correct rtl.
5849
5850         * doloop.c (doloop_optimize): Extract pattern from insn.
5851
5852 2002-06-17  Matt Kraai  <kraai@alumni.cmu.edu>
5853
5854         * doc/extend.texi (Function Attributes): Remove `,...' from @var.
5855
5856 2002-06-17  Jeff Law <law@redhat.com>
5857
5858         * libgcc2.c: Do not include symcat.h or machmode.h.
5859
5860 2002-06-17  Richard Henderson  <rth@redhat.com>
5861
5862         PR target/6922
5863         * expmed.c (make_tree): Handle SIGN_EXTEND/ZERO_EXTEND.
5864
5865 2002-06-17  Tom Tromey  <tromey@redhat.com>
5866
5867         * dwarfout.c: Include function.h.
5868
5869 2002-06-17  Andreas Schwab  <schwab@suse.de>
5870
5871         * print-rtl.c (print_rtx): Print space before vector, not after.
5872         (debug_rtx): Clear sawclose before printing.
5873         (debug_rtx_list): Print newline after each list element.
5874         (debug_rtx_range): Likewise.
5875
5876 2002-06-17  Richard Henderson  <rth@redhat.com>
5877
5878         * function.h (struct function) [funcdef_no]: Rename profile_label_no.
5879         (current_function_funcdef_no): Similarly.
5880         * function.c (funcdef_no): Similarly.
5881         (prepare_function_start): Set current_function_funcdef_no.
5882         (expand_function_start): Don't set current_function_profile_label_no.
5883         * dwarf2out.h (current_funcdef_number): Remove.
5884         * dwarf2out.c (current_funcdef_number): Remove.  Replace with
5885         current_function_funcdef_no throughout.
5886         * dwarfout.c, vmsdbgout.c: Similarly.
5887         * except.c (sjlj_funcdef_number): Remove.
5888         (sjlj_emit_function_enter): Use current_function_funcdef_no instead.
5889         (output_function_exception_table): Likewise.
5890         * final.c (profile_function): Use current_function_funcdef_no
5891         instead of current_function_profile_label_no.
5892
5893 2002-06-17  Vladimir Makarov  <vmakarov@redhat.com>
5894
5895         * sched-ebb.c (init_ready_list): Check INSN_P first.
5896
5897 Mon Jun 17 17:26:15 2002  J"orn Rennecke <joern.rennecke@superh.com>
5898
5899         * sh.md (divsi3): Update way how to find insns in a sequence.
5900
5901         * reload1.c (merge_assigned_reloads): Don't change reloads
5902         other than RELOAD_FOR_INPUT_ADDRESS / RELOAD_FOR_INPADDR_ADDRESS
5903         to RELOAD_OTHER when there are conflicting input reloads.
5904
5905 2002-06-17  Richard Earnshaw  (rearnsha@arm.com)
5906
5907         * function.c (epilogue_done): Correctly build a sequence of insns for
5908         a sibcall epilogue.
5909
5910 2002-06-17  Nick Clifton  <nickc@cambridge.redhat.com>
5911
5912         * config/fr30/fr30.h (CUMULATIVE_ARGS): Replace typedef with
5913         #define.
5914
5915         * config/m32r/m32r.md: Replace gen_sequence with get_insns.
5916
5917 2002-06-16  Richard Henderson  <rth@redhat.com>
5918
5919         * config/i386/i386.h (BIGGEST_FIELD_ALIGNMENT): Define instead
5920         of ADJUST_FIELD_ALIGN if IN_TARGET_LIBS.
5921
5922 2002-06-16  Richard Henderson  <rth@redhat.com>
5923
5924         PR opt/6722
5925         * regclass.c (globalize_reg): Update regs_invalidated_by_call.
5926
5927 2002-06-16  Neil Booth  <neil@daikokuya.demon.co.uk>
5928
5929         * config.gcc: Add i386/sysv4-cpp.h; remove i386-aout.h from vxworks.
5930         * config/i386/i386-aout.h, config/i386/i386elf.h,
5931         config/i386/sysv4.h: Remove CPP_PREDEFINES.
5932         * config/i386/linux64.h, config/i386/i386elf.h, config/i386/mach.h,
5933         config/i386/netware.h, config/i386/rtemself.h, config/i386/sco5.h,
5934         config/i386/sol2.h, config/i386/vsta.h, config/i386/vxi386.h,
5935         config/i386/win32.h: Use TARGET_OS_CPP_BUILTINS rather than
5936         CPP_PREDEFINES and part of CPP_SPEC.
5937         * config/i386/sysv4-cpp.h: New.
5938
5939 2002-06-16  Richard Henderson  <rth@redhat.com>
5940
5941         PR c/7030
5942         * dwarf2out.c (modified_type_die): Don't assign the qualified die
5943         to the unqualified type.
5944
5945 Sun Jun 16 22:16:10 CEST 2002  Jan Hubicka  <jh@suse.cz>
5946
5947         * i386-protos.h (x86_field_alignment): Declare.
5948         * i386.c (x86_field_alignment): Define.
5949         * i386.h (ADJUST_FIELD_ALIGNMENT): New.
5950         (BIGGEST_FIELD_ALIGNMENT): Kill.
5951
5952 2002-06-16  Richard Henderson  <rth@redhat.com>
5953
5954         * vax.md (casesi): Use emit_jump_insn.  Tidy expander pattern.
5955
5956 2002-06-16  Richard Henderson  <rth@redhat.com>
5957
5958         * c-common.c (flag_ms_extensions): Move from c++ front end.
5959         * c-common.h (flag_ms_extensions): Declare.
5960         * c-decl.c (c_decode_option): Add -fms-extensions.
5961         (grokfield): Don't accept anonymous structures in ISO C mode;
5962         accept only unnamed anonymous structures in GNU C mode; accept
5963         Plan 9 extensions in MS mode.
5964         * c-parse.in (SAVE_EXT_FLAGS, RESTORE_EXT_FLAGS): Rename from
5965         SAVE/RESTORE_WARN_FLAGS; add flag_iso frobbing; update all callers.
5966         (extension): Clear flag_iso.
5967         * doc/invoke.texi (C Dialect Options): Add -fms-extensions.
5968
5969 2002-06-16  Hans-Peter Nilsson  <hp@axis.com>
5970
5971         PR target/7042
5972         * reorg.c (make_return_insns) [DELAY_SLOTS_FOR_EPILOGUE]: Exit
5973         early if current_function_epilogue_delay_list is non-empty.
5974         * config/cris/cris.md ("return"): Add sanity check asserting that
5975         current_function_epilogue_delay_list is empty.
5976
5977 2002-06-16  Jeff Law <law@redhat.com>
5978
5979         * emit-rtl.c (gen_rtx_REG): Temporarily turn off automatic
5980         sharing of hard registers.
5981
5982         * toplev.c (rest_of_compilation): Remove redundant conditional.
5983
5984         * toplev.c (rest_of_compilation): Perform a simpler, less costly
5985         cleanup of the CFG when not optimizing.
5986
5987 2002-06-16  Alan Modra  <amodra@bigpond.net.au>
5988
5989         * gcc.c (main): Correct startfile_prefix_spec check.
5990
5991 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
5992
5993         * config.gcc: Revert rth's patch of 2002-05-18.  Instead,
5994         include both darwin.o and rs6000-c.o.
5995
5996 2002-06-15  Roger Sayle  <roger@eyesopen.com>
5997
5998         * expr.c (compare_from_rtx): Call simplify_relational_operation
5999         on all comparisons, not just those between integer constants,
6000         with the correct (possibly unsigned) comparison code.
6001         (do_compare_rtx_and_jump): Likewise.
6002
6003 2002-06-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6004
6005         * Makefile.in (tm_defines): New configuration variable.
6006         (cs-config.h, cs-hconfig.h, cs-tconfig.h): Rename DEFINES to XM_DEFINES.
6007         Pass tm_defines in TM_DEFINES.
6008         (cs-tm_p.h): Rename DEFINES to XM_DEFINES.  Pass TM_DEFINES.
6009         * config.gcc (tm_defines): New configuration variable.
6010         (hppa*-*-* | parisc*-*-*): Use tm_defines instead of pa-700.h and
6011         pa-7100.h headers.  Change hppa1* scheduling default to 7100LC.
6012         * configure.in: Substitute tm_defines.
6013         * configure: Rebuilt.
6014         * mkconfig.sh: Rename DEFINES to XM_DEFINES.  Output TM_DEFINES.
6015         * doc/install.texi: Update.
6016         * pa/pa-700.h: Delete file.
6017         * pa/pa-7100.h: Delete file.
6018
6019 2002-06-15  Roger Sayle  <roger@eyesopen.com>
6020
6021         * fold-const.c (comparison_to_compcode): New function to convert
6022         an comparison TREE CODE into a bit-based representation.
6023         (compcode_to_comparison): New function to convert from this bit
6024         based representation back to a comparison TREE CODE.
6025         (fold_truthop): Simplify (x<y) && (x==y) and related composite
6026         comparisons.
6027
6028 2002-06-15  Aldy Hernandez  <aldyh@redhat.com>
6029
6030         * tm.texi (MEMBER_TYPE_FORCES_BLK): Document MODE argument.
6031
6032         * stor-layout.c (compute_record_mode): Remove check for
6033         FUNCTION_ARG_REG_LITTLE_ENDIAN and VOIDmode when checking for
6034         MEMBER_TYPE_FORCES_BLK.  Pass new mode field to
6035         MEMBER_TYPE_FORCES_BLK.
6036
6037         * config/ia64/hpux.h (MEMBER_TYPE_FORCES_BLK): Same.
6038
6039         * config/c4x/c4x.h (MEMBER_TYPE_FORCES_BLK): Same.
6040
6041 2002-06-14  Jeff Sturm  <jsturm@one-point.com>
6042
6043         * config/sparc/sparc.h (DYNAMIC_CHAIN_ADDRESS): Add SPARC_STACK_BIAS.
6044
6045 2002-06-14  Steve Ellcey  <sje@cup.hp.com>
6046
6047         * configure.in (USE_UNWIND_EXCEPTIONS): Add support to set
6048         USE_UNWIND_EXCEPTIONS if --enable-libunwind-exceptions is set.
6049         * configure, config.in: Regenerate.
6050
6051 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
6052
6053         * loop.c (check_final_value): Use v->always_executed
6054         instead of v->always_computable.
6055         * unroll.c (final_giv_value): Don't calculate the final
6056         value as a function of the biv if the giv is not computed
6057         for every loop iteration.
6058
6059 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
6060
6061         * loop.c (for_each_insn_in_loop): Fix formatting and comments.
6062
6063 2002-06-14  Eric Botcazou  <ebotcazou@multimania.com>
6064
6065         PR c/6677
6066         * convert.c (convert_to_integer) [LSHIFT_EXPR]: Don't pass
6067         the truncation down when the target type is signed.
6068         [trunc1]: Use unsigned arithmetic for LSHIFT_EXPR.
6069         * fold-const.c (extract_muldiv) [NOP_EXPR]: Don't pass through
6070         the conversion if the target type is a smaller type.
6071
6072 2002-06-14  Richard Henderson  <rth@redhat.com>
6073
6074         * fold-const.c (fold) [compare ops]: Move X>=C / X<C transfomation
6075         earlier.  Re-factor comparisons vs extrema.
6076
6077 2002-06-14  Richard Henderson  <rth@redhat.com>
6078
6079         * config/alpha/alpha.md (builtin_zapnot): Fix op2 mode.
6080
6081 2002-06-14  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6082
6083         * rtl.h (SCHED_GROUP_P): Disallow CODE_LABEL, BARRIER and NOTE.
6084         * sched-deps.c (add_dependence): Likewise.
6085         (group_leader): Likewise.
6086         * sched-rgn.c (init_ready_list): Likewise.
6087         * doc/rtl.texi: Adjust accordingly.
6088
6089 2002-06-13  Jeffrey Law  <law@redhat.com>
6090
6091         * gcse.c (delete_null_pointer_checks_1): Inform caller if any
6092         null pointer checks were eliminated.  Update prototype.
6093         (delete_null_pointer_checks): Similarly.
6094         * rtl.h (delete_null_pointer_checks): Update prototype.
6095         * toplev.c (rest_of_compilation): Only run cleanup_cfg if
6096         delete_null_pointer_checks deletes one or more null
6097         pointer checks.  Do not run cleanup_cfg before gcse, the
6098         CFG is accurate and optimized at that point..
6099
6100         * rs6000.c (rs6000_frame_related): Avoid unwanted sharing
6101         of hard registers.
6102
6103 2002-06-14  Ulrich Weigand  <uweigand@de.ibm.com>
6104
6105         * Makefile.in (libgcc.mk): Depend on specs.
6106
6107 Fri Jun 14 12:15:11 2002  J"orn Rennecke <joern.rennecke@superh.com>
6108
6109         * sh.md (mulsi3): Update way how to find insns in a sequence.
6110
6111 Fri Jun 14 12:04:02 2002  Dhananjay R. Deshpande <dhananjayd@kpit.com>
6112
6113         * sh.h: Define HARD_REGNO_RENAME_OK
6114         * sh.c: sh_hard_regno_rename_ok: New. If current function has
6115         interrupt_handler attribute, only registers saved on stack are OK.
6116         * sh-protos.h: Declare sh_hard_regno_rename_ok.
6117
6118 2002-06-14  Kaz Kojima  <kkojima@gcc.gnu.org>
6119
6120         * config/sh/sh.md (jump): Emit jump insn.
6121         (call_pcrel): Get pattern of the result of gen_call_site.
6122         (call_value_pcrel, sibcall_pcrel, GOTaddr2picreg): Likewise.
6123
6124 2002-06-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6125
6126         * cpphash.h (struct cpp_buffer): Remove saved_line_base.
6127         * cpptrad.c: Update comments.
6128         (skip_whitespace, copy_comment): Take a new parameter.
6129         (skip_escaped_newlines): Don't duplicate escaped newline test.
6130         (copy_comment): Different location for CUR, decide here how
6131         to copy / replace the comment.
6132         (skip_whitespace): Copy whitespace.
6133         (_cpp_overlay_buffer, _cpp_remove_overlay): Don't play with line_base.
6134         (scan_out_logical_line): Let copy comment handle keeping or
6135         replacing comments.
6136         (scan_parameters, _cpp_create_trad_definition): Update.
6137
6138 2002-06-13  Alan Lehotsky  <apl@alum.mit.edu>
6139
6140         * reload.c (get_secondary_mem,find_reloads_address,
6141         find_reloads_address_1): Pass reference to MEM to find_reloads_address
6142         so that LEGITIMIZE_RELOAD_ADDRESS will be called.
6143
6144 2002-06-13  Jessica Han  <jessica@cup.hp.com>
6145
6146         * defaults.h (TARGET_VTABLE_ENTRY_ALIGN): New.
6147         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
6148         * doc/tm.texi: Document them.
6149         * config/ia64/ia64.h (TARGET_VTABLE_ENTRY_ALIGN): New.
6150         (TARGET_VTABLE_DATA_ENTRY_DISTANCE): New.
6151         (TARGET_VTABLE_USES_DESCRIPTORS): 4 word descriptors for 32-bit mode.
6152         (ASM_OUTPUT_FDESC): Likewise.
6153
6154 2002-06-13  Eric Christopher  <echristo@redhat.com>
6155
6156         * diagnostic.c (output_format): Fix thinko.
6157
6158 Thu Jun 13 22:34:33 2002  J"orn Rennecke <joern.rennecke@superh.com>
6159
6160         * config/sh/coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Don't define.
6161         (DWARF2_UNWIND_INFO): Define to 0.
6162
6163         * config/sh/sh.c (calc_live_regs): Don't use initial_value
6164         optimization for PR_MEDIA_REG.
6165
6166 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6167
6168         * cpphash.h (_cpp_lex_identifier_trad): Remove.
6169         * cpplib.c (end_directive): Don't skip, always remove overlay
6170         apart from #define.
6171         (prepare_directive_trad): Handle NULL pfile->directive.
6172         (_cpp_handle_directive): Always call prepare_directive_trad
6173         if traditional.
6174         * cppmain.c (check_multiline_token): Rename account_for_newlines,
6175         generalize inputs.
6176         (scan_translation_unit_trad): Use it.
6177         * cpptrad.c (skip_comment): Rename copy_comment, copy comment to
6178         output, get escaped newline in comment close correct.
6179         (check_output_buffer, skip_whitespace): Update.
6180         (_cpp_lex_identifier_trad): Remove.
6181         (scan_out_logical_line): Handle -C and comments in directives
6182         properly.
6183
6184 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6185
6186         * config.gcc: Add support for sh[234]*-*-elf*, sh[2346lbe]*-*-linux*.
6187         * config/sh/linux.h (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
6188         * sh.h (SELECT_SH1, SELECT_SH2, SELECT_SH3, SELECT_SH3E): New macros.
6189         (SELECT_SH4_NOFPU, SELECT_SH4_SINGLE_ONLY, SELECT_SH4): Likewise.
6190         (SELECT_SH4_SINGLE, SELECT_SH5_64, SELECT_SH5_64_NOFPU): Likewise.
6191         (SELECT_SH5_32, SELECT_SH5_32_NOFPU, SELECT_SH5_COMPACT): Likewise.
6192         (SELECT_SH5_COMPACT_NOFPU): Likewise.
6193         (TARGET_SWITCHES): Use them.
6194         (TARGET_CPU_DEFAULT): Define if not already defined.
6195         (TARGET_DEFAULT): Use it.
6196         (LINK_DEFAULT_CPU_EMUL): Value now depends on TARGET_CPU_DEFAULT.
6197         * config/sh/t-linux (MULTILIB_OPTIONS): Use MULTILIB_ENDIAN.
6198         * config/sh/t-monolib: New file.
6199
6200 2002-06-13  Roger Sayle  <roger@eyesopen.com>
6201
6202         * toplev.c (rest_of_compilation): Simplify (and correct) the
6203         logic of the first delete-null-pointer-checks pass.
6204
6205 Thu Jun 13 18:24:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
6206
6207         * i386.c (ix86_expand_movstr):  Fix pasto.
6208
6209 Thu Jun 13 18:18:17 CEST 2002  Jan Hubicka  <jh@suse.cz>
6210
6211         * reload.c (find_valid_class):  Fix thinko in my previous patch.
6212
6213 2002-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
6214
6215         * config/s390/s390.h (TARGET_CPU_CPP_BUILTINS): New macro.
6216         * config/s390/linux.h (TARGET_OS_CPP_BUILTINS): New macro.
6217         (CPP_PREDEFINES, CPP_SPEC, CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): Remove.
6218         (EXTRA_SPECS): Remove cpp_arch31 and cpp_arch64.
6219
6220 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
6221
6222         * tree-inline.c (expand_call_inline): Don' mess with _DECL
6223         fields.
6224
6225 2002-06-13  Gabriel Dos Reis  <gdr@codesourcery.com>
6226
6227         * diagnostic.c (output_format): Recognize "%H" as a format
6228         specifier for a location_t.
6229         (text_specifies_location): New function.
6230         (diagnostic_set_info): Use it.
6231
6232 2002-06-13  Jeffrey Law  <law@redhat.com>
6233
6234         * emit-rtl.c (static_regno_reg_rtx): Define.
6235         (init_emit_once): Initialize static_regno_reg_rtx.
6236         (init_emit): Copy static_regno_reg_rtx into regno_reg_rtx instead
6237         of building new hard reg objects once per function.
6238         (gen_rtx_REG): Try to share hard regs.
6239         * regclass.c (init_fake_stack_mems): New function broken out from
6240         init_regs.
6241         * rtl.h (init_fake_stack_mems): Declare.
6242         * toplev.c (lang_independent_init): Call init_regs before
6243         init_emit_once.  Call init_fake_stack_mems after init_emit_once.
6244
6245         * i386.md (extenddfxf2, extenddftf2): Fix typo/thinko.
6246
6247         * alias.c (argument_registers): Remove.
6248         (init_alias_once): Initialize static_reg_base_value here.  Remove
6249         initialization of argument_registers.
6250         (init_alias_once_per_function): Remove.
6251         (init_alias_analysis): Copy all the entries from static_reg_base_value
6252         into new_reg_base_value all at once.
6253         * rtl.h (init_alias_once_per_function): Remove declaration.
6254         * function.c (prepare_function_start): Do not call
6255         init_alias_once_per_function.
6256
6257         * caller-save.c (init_caller_save): Use gen_rtx_INSN instead of
6258         starting a sequence and emitting an INSN.
6259
6260 2002-06-13  Richard Sandiford  <rsandifo@redhat.com>
6261
6262         * config/mips/r3900.h (MIPS_CPU_STRING_DEFAULT): Make lower case.
6263
6264 2002-06-13  David S. Miller  <davem@redhat.com>
6265
6266         * expmed.c (init_expmed): Remove duplicate init of 'reg'.
6267
6268 2002-06-13  Neil Booth  <neil@daikokuya.demon.co.uk>
6269
6270         * cpplib.c (end_directive): Handle line skipping.  Only remove
6271         the rest of the line if the directive was valid.
6272         * cppmacro.c (_cpp_push_text_context): Set NODE_DISABLED when
6273         expanding a traditional macro.
6274         * cpptrad.c (recursive_macro): New.
6275         (read_logical_line_trad): Handle skipping.
6276         (scan_out_logical_line): Continue after a successful directive.
6277         Don't expand macros whilst skipping, or if recursing.
6278         (_cpp_create_trad_definition): scan_out_logical_line now sets
6279         the output current position.
6280
6281 2002-06-12  Eric Christopher  <echristo@redhat.com>
6282
6283         From Chris Demetriou  <cgd@broadcom.com>
6284         * config/mips/mips.h (ISA_HAS_FP4): Add ISA_MIPS64 and fix
6285         comment.
6286         (ISA_HAS_MADD_MSUB): Ditto.
6287         (ISA_HAS_NMADD_NMSUB): Ditto.
6288
6289 2002-06-12  Eric Christopher  <echristo@redhat.com>
6290
6291         * config.gcc: Consolidate little endian handling and
6292         little/big endian targets.
6293         * config/mips/elfl.h: Remove file.
6294         * config/mips/elfl64.h: Ditto.
6295         * config/mips/ecoffl.h: Ditto.
6296         * config/mips/r3900.h (SUBTARGET_CPP_SPEC): Remove.
6297
6298 2002-06-12  Geoffrey Keating  <geoffk@redhat.com>
6299
6300         * gengtype.h (xvasprintf): New prototype.
6301         (xasprintf): New prototype.
6302         (struct outf): New.
6303         (get_output_file): Return an outf_p.
6304         (header_file): Is now an outf_p.
6305         (base_files): Now are outf_p.
6306         (oprintf): New.
6307         * gengtype.c: Replace all output FILE * with outf_p; use oprintf
6308         rather than stdio operations.  Use xasprintf in a few places,
6309         when appropriate.
6310         (xvasprintf): New.
6311         (xasprintf): New.
6312         (struct filemap): Delete.
6313         (files): Delete.
6314         (output_files): New.
6315         (oprintf): New.
6316         (create_file): Create an outf_p.  Add parameter to indicate output
6317         file name, change all callers.
6318         (open_base_files): Create gtype-desc.c here.
6319         (get_output_file_with_visibility): Rewrite.
6320         (get_output_file_name): Just look at 'name' field in struct outf.
6321         (close_output_files): Rewrite.
6322
6323 2002-06-12  Jason Thorpe  <thorpej@wasabisystems.com>
6324
6325         * config/vax/vax.h (MASK_UNIX_ASM, MASK_VAXC_ALIGNMENT)
6326         (MASK_G_FLOAT): Define.
6327         (TARGET_UNIX_ASM, TARGET_VAXC_ALIGNMENT, TARGET_G_FLOAT): Use them.
6328         (TARGET_SWITCHES): Likewise.
6329         (TARGET_DEFAULT): Likewise.
6330
6331 2002-06-12  Daniel Jacobowitz  <drow@mvista.com>
6332
6333         * config/mips/elf.h (DWARF2_DEBUG_INFO): Define.
6334         * config/mips/mips.c (mips_output_filename): Don't print a
6335         ".file" directive if we are using DWARF-2.
6336         (mips_output_function_prologue): Do not emit source file
6337         name for TARGET_GAS.
6338
6339 Wed Jun 12 16:45:13 CEST 2002  Jan Hubicka  <jh@suse.cz>
6340
6341         * i386.md (shift patterns): Use (TARGET_SHIFT1 || optimize_size) to
6342         decide whether emit the short opcode.
6343         * i386.h (x86_shift1): Declare.
6344         (TARGET_SHIFT1): New macro.
6345         * i386.c (x86_shift1): New global variable.
6346
6347         * toplev.c (rest_of_compilation): Call find_basic_block pre-loop
6348         unconditionally; make loop to rebuild CFG; kill unnecesary
6349         find_basic_block calls; kill compute_bb_for_insn call.
6350         * cfgbuild.c (find_basic_blocks): Kill compute_bb_for_insn call.
6351         * haifa-sched.c (sched_init): Likewise.
6352         * ssa-ccp.c (ssa_const_prop): Likewise.
6353         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
6354
6355 2002-06-11  David S. Miller  <davem@redhat.com>
6356
6357         * emit-rtl.c (emit_*_scope): Only access INSN_SCOPE if
6358         active_insn_p.
6359
6360 2002-06-11  Richard Henderson  <rth@redhat.com>
6361
6362         * c-common.c (builtin_define_type_max): New.
6363         (cb_register_builtins): Define __SCHAR_MAX__, __SHRT_MAX__,
6364         __INT_MAX__, __LONG_MAX__, __LONG_LONG_MAX__, __CHAR_BIT__.
6365
6366         From Joseph S. Myers:
6367         * glimits.h: Rewrite to expect the double underscore definitions
6368         from the compiler.
6369
6370         * config/alpha/unicosmk.h, config/avr/avr.h, config/h8300/h8300.h,
6371         config/i386/linux64.h, config/ia64/aix.h, config/ia64/hpux.h,
6372         config/ia64/ia64.h, config/m68hc11/m68hc11.h, config/m68hc11/m68hc12.h,
6373         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
6374         config/pa/pa.h, config/rs6000/aix43.h, config/rs6000/aix51.h,
6375         config/rs6000/linux64.h, config/s390/linux.h, config/sh/sh.h,
6376         config/stormy16/stormy16.h: Don't define any of __SHRT_MAX__,
6377         __INT_MAX__, __LONG_MAX__, or __LONG_LONG_MAX__.
6378
6379 2002-06-11  Richard Henderson  <rth@redhat.com>
6380
6381         * config/alpha/alpha.c (ALPHA_BUILTIN_THREAD_POINTER): New.
6382         (ALPHA_BUILTIN_SET_THREAD_POINTER): New.
6383         (code_for_builtns): Update.
6384         (alpha_init_builtins): Add __builtin_thread_pointer and
6385         __builtin_set_thread_pointer.
6386         (alpha_expand_builtin): Handle void builtins.
6387         * doc/extend.texi (Alpha Built-in Functions): Update.
6388
6389 2002-06-11  Hans-Peter Nilsson  <hp@axis.com>
6390
6391         PR target/6997
6392         * config/cris/cris.md ("sleu"): Set attribute "cc" to "none".
6393
6394 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
6395
6396         * config.gcc: Make the name of the extra-modes file adjustable
6397         by target stanzas.
6398         (s390x, strongarm, xscale stanzas): Use this facility.
6399         * configure.in: Update to match.
6400         * configure: Regenerate.
6401
6402 2002-06-11  Aldy Hernandez  <aldyh@redhat.com>
6403
6404         * config/rs6000/rs6000.c (rs6000_emit_minmax): Treat unsigned
6405         max/mins as unsigned GE compares.
6406
6407 2002-06-11  Jason Thorpe  <thorpej@wasabisystems.com>
6408
6409         * config.gcc (vax-*-bsd*): Add vax/bsd.h to ${tm_file}.
6410         * config/vax/bsd.h: New file.
6411         * config/vax/netbsd.h: Add missing notice.
6412         (CPP_PREDEFINES): Remove.
6413         (TARGET_OS_CPP_BUILTINS): Define.
6414         (CPP_SPEC): Use NETBSD_CPP_SPEC.
6415         * config/vax/openbsd.h: Update copyright years.
6416         (CPP_PREDEFINES): Remove.
6417         (TARGET_OS_CPP_BUILTINS): Define.
6418         * config/vax/ultrix.h: Likewise.
6419         * config/vax/vaxv.h: Likewise.
6420         * config/vax/vms.h: Likewise.
6421         * config/vax/vax.h (TARGET_CPU_CPP_BUILTINS): Define.
6422         (CPP_PREDEFINES, CPP_SPEC): Remove.
6423
6424 Wed Jun 12 01:50:28 CEST 2002  Jan Hubicka  <jh@suse.cz>
6425
6426         * i386.md (addqi_1_slp, subqi_1_slp
6427         (andqi_ext0, testqi_ext0): Remove unnecesary check.
6428         (addhi*, addqi*): Simplify "dec" condition.
6429         (testsi to testqi splitters): Remove TARGET_PROMOTE_QImode check.
6430         (and, or, xor to QImode splitters): New.
6431         (iorqi_ext*): New.
6432         (xorqi_ext_0): New.
6433         (xorqi_ext_1): Rename to xorqi_ext_2; bring to sync with and versions.
6434         (andqi_ext_1_rex64): New.
6435         (ashrqi*_slp): New.
6436         (ashlqi*_slp): New.
6437         (lshlqi*_slp): New.
6438         (rotrqi3*_slp): New.
6439         (rotlqi3*_slp): New.
6440
6441 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
6442
6443         * config.gcc (powerpc*-*-*, rs6000-*-*-*): Don't bother including
6444         softfloat.h.
6445         * config/rs6000/vxppc.h (CPP_ENDIAN_BIG_SPEC): Delete.
6446         (CPP_ENDIAN_LITTLE_SPEC): Delete.
6447         * config/rs6000/sysv4le.h (CPP_ENDIAN_DEFAULT_SPEC): Delete.
6448         * config/rs6000/sysv4.h (CPP_SYSV_SPEC): Delete _SOFT_FLOAT setting,
6449         __LONG_DOUBLE_128__ setting, _CALL_* setting.
6450         (CPP_DEFAULT_SPEC): Delete.
6451         (CPP_FLOAT_DEFAULT_SPEC): Delete.
6452         (CPP_LONGDOUBLE_DEFAULT_SPEC): Delete.
6453         (CPP_SYSV_DEFAULT_SPEC): Delete.
6454         (CPP_ENDIAN_BIG_SPEC): Delete.
6455         (CPP_ENDIAN_LITTLE_SPEC): Delete.
6456         (CPP_ENDIAN_SPEC): Delete.
6457         (CPP_SPEC): Don't include cpp_endian, cpp_cpu.
6458         (SUBTARGET_EXTRA_SPECS): Delete cpp_sysv_default, cpp_endian_default,
6459         cpp_endian, cpp_endian_big, cpp_endian_little, cpp_float_default,
6460         cpp_longdouble_default.
6461         * config/rs6000/softfloat.h: Delete.
6462         * config/rs6000/rs6000.h (CPP_CPU_SPEC): Delete.
6463         (EXTRA_SPECS): Delete cpp_cpu.
6464         (TARGET_CPU_CPP_BUILTINS): New.
6465         * config/rs6000/rs6000-protos.h (rs6000_cpu_cpp_builtins): New
6466         prototype.
6467         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): New.
6468         * config/rs6000/linux64.h (CPP_PREDEFINES): Remove endianness defines.
6469         (CPP_DEFAULT_SPEC): Delete.
6470         * config/rs6000/eabiaix.h (CPP_SYSV_DEFAULT_SPEC): Delete.
6471         * config/rs6000/darwin.h (CPP_PREDEFINES): Don't define __BIG_ENDIAN__.
6472         * config/rs6000/beos.h (CPP_SPEC): Remove cpp_cpu.
6473         (CPP_DEFAULT_SPEC): Delete.
6474         * config/rs6000/aix51.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
6475         (CPLUSPLUS_CPP_SPEC): Likewise.
6476         (CPP_CPU_SPEC): Delete.
6477         (CPP_DEFAULT_SPEC): Delete.
6478         * config/rs6000/aix43.h (CPP_SPEC): Remove cpp_cpu, -D_ARCH_PPC.
6479         (CPLUSPLUS_CPP_SPEC): Likewise.
6480         (CPP_CPU_SPEC): Delete.
6481         (CPP_DEFAULT_SPEC): Delete.
6482         * config/rs6000/aix41.h (CPP_SPEC): Remove cpp_cpu.
6483         (CPP_DEFAULT_SPEC): Delete.
6484         * config/rs6000/aix.h (CPP_SPEC): Remove cpp_cpu.
6485         (CPP_DEFAULT_SPEC): Delete.
6486
6487         * doc/gty.texi: Small updates.
6488
6489 2002-06-12  Gabriel Dos Reis  <gdr@codesourcery.com>
6490
6491         * objc/objc-act.c (warn_with_ivar): Adjust calls to
6492         diagnostic_count_error.
6493         (warn_with_method): Likewise.
6494
6495         * diagnostic.h (warnings_are_errors_message): New field of
6496         diagnostic_context.
6497         (diagnostic_count_error): Rename to diagnostic_count_diagnostic to
6498         match semantics.
6499         * diagnostic.c: Adjust calls to diagnostic_count_error through out.
6500         (diagnostic_count_diagnostic): Make aware of other kinds of
6501         diagnostics.
6502         (diagnostic_initialize): Initialize warnings_are_errors_message field.
6503
6504 2002-06-11  Tom Tromey  <tromey@redhat.com>
6505
6506         For PR java/6520:
6507         * fold-const.c (fold_convert): Don't modify existing tree's type.
6508
6509 2002-06-11  Geoffrey Keating  <geoffk@redhat.com>
6510
6511         * config/rs6000/ppc-asm.h: Remove some Windows NT leftovers.
6512
6513 2002-06-11  Richard Henderson  <rth@redhat.com>
6514
6515         * caller-save.c (init_caller_save): Clear INSN_CODE each iteration.
6516
6517 2002-06-11  Richard Henderson  <rth@redhat.com>
6518
6519         * defaults.h (EH_FRAME_SECTION_NAME): Don't define if
6520         DWARF2_UNWIND_INFO is false.
6521
6522 2002-06-11  Bob Wilson  <bob.wilson@acm.org>
6523
6524         * config/xtensa/t-xtensa (LIBGCC1_TEST, CROSS_LIBGCC1): Delete.
6525
6526         * config/s390/s390.c (emit_prologue): gen_store_multiple
6527         returns an insn now, not a pattern.
6528
6529 2002-06-11  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6530
6531         * Makefile.in (gccinstall.dvi): Pass absolute pathnames to
6532         $(TEXI2DVI) -o.
6533
6534 Tue Jun 11 21:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
6535
6536         * i386.c (x86_promote_QImode): Set for Athlon
6537         (x86_fast_prefix): New global variable.
6538         (x86_arch_always_fancy_math_387): Fix formating.
6539         * i386.h (x86_fast_prefix): Declare
6540         (TARGET_FAST_PREFIX): define.
6541         * i386.md (and to strict_low_part, HI to SI
6542         promoting splitter): Use new macro.
6543
6544         * i386.h (RTX_COSTS): float_extend is not for free for SSE.
6545
6546 2002-06-11  Zack Weinberg  <zack@codesourcery.com>
6547
6548         * Makefile.in (distclean): Delete junk left in testsuite
6549         directory, too.
6550
6551 2002-06-11  Jeffrey Law <law@redhat.com>
6552
6553         * emit-rtl.c (try_split): Use INSN_LAST, not LAST_INSN to get the
6554         last insn created by the splitter.
6555
6556         * caller-save.c (init_caller_save): Move creation of SAVEINSN
6557         and RESTINSN into into the scope of the sequence.
6558
6559         * mips.c (mips_expand_prologue): Use emit_jump_insn for trivial
6560         RETURN insns.
6561
6562         * loop.c (loop_regs_scan): Avoid useless generation of REG objects.
6563
6564         * mips.c (function_arg_advance): gen_ashldi3 returns an INSN now,
6565         not the pattern.  So extract the pattern from the insn.
6566
6567         * mips.c (embedded_pic_fnaddr_reg): Fix typo.
6568
6569 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
6570
6571         * config/s390/s390.md (movsi): Only use floating point
6572         register alternatives when operands are already fprs.
6573         (movdi_31, movdi_64): Likewise.
6574
6575 2002-06-11  David S. Miller  <davem@redhat.com>
6576
6577         * emit-rtl.c (try_split): Do not abort on non-INSN_P.
6578         Only run RTX equality checks on INSN_P rtl.
6579
6580 2002-06-11  Ulrich Weigand  <uweigand@de.ibm.com>
6581
6582         * config/s390/s390.md (reload_base, ltorg): Remove.
6583         * s390.c (s390_stop_dump_lit_p, s390_dump_literal_pool,
6584         s390_asm_output_pool_prologue, s390_pool_start_insn): Remove.
6585         * s390-protos.h (s390_stop_dump_lit_p, s390_dump_literal_pool,
6586         s390_asm_output_pool_prologue): Likewise.
6587         * s390.h (s390_pool_start_insn): Likewise.
6588
6589         * s390.c (s390_output_symbolic_const): Remove support for
6590         old-style pool chunks.
6591         (s390_function_epilogue): Likewise.
6592         (s390_output_constant_pool): Likewise.  Also, fix incorrect
6593         alignment for 64-bit literal pools.
6594         (print_operand_address): Remove 'y' and 'Y' format flags.
6595         * s390.h (ASM_OUTPUT_POOL_PROLOGUE): Remove support for
6596         old-style pool chunks.
6597         (ASM_OUTPUT_SPECIAL_POOL_ENTRY): Likewise.
6598         (ASM_OUTPUT_POOL_EPILOGUE): Remove.
6599         (S390_CHUNK_MAX, S390_CHUNK_OV, S390_POOL_MAX): Remove.
6600
6601         * s390.c (consttable_operand): New function.
6602         * s390-protos.h (consttable_operand): Declare it.
6603         * s390.h (PREDICATE_CODES): Add consttable_operand.
6604         * s390.md (consttable_qi, consttable_hi, consttable_si, consttable_di,
6605         consttable_sf, consttable_df, pool_start_31, pool_end_31,
6606         pool_start_64, pool_end_64, reload_base, reload_base2): New insns.
6607         * s390.c (struct constant, struct constant_pool): New data types.
6608         (constant_modes, gen_consttable): New variables.
6609         (s390_start_pool, s390_end_pool, s390_add_pool,
6610         s390_dump_pool, s390_free_pool): New functions.
6611         (s390_chunkify_pool): Completely reimplement literal pool
6612         overflow handling.
6613
6614         * s390.c (s390_pool_overflow): New variable.
6615         * s390.h (s390_pool_overflow): Declare it.
6616         * s390.md (cjump, icjump): Use it to adapt length for out-of-range
6617         jumps in literal pool overflow situations.
6618
6619         * s390.c (s390_decompose_address): Accept new-style pool chunk offsets.
6620         (s390_frame_info): Account for possible use of RETURN_REGNUM
6621         by new literal pool overflow code.
6622         (s390_emit_prologue): Likewise.
6623
6624 2002-06-05  David S. Miller  <davem@redhat.com>
6625
6626         Delete SEQUENCE rtl usage outside of reorg and ssa passes.
6627         * rtl.h (gen_sequence, emit_insns, emit_insns_before,
6628         emit_insns_before_scope, emit_insns_after,
6629         emit_insns_after_scope): Delete declaration.
6630         * ada/misc.c (insert_code_for): Use emit_insn* instead of
6631         emit_insns_foo.
6632         * config/alpha/alpha.c (alpha_set_memflags_1): Abort on SEQUENCE.
6633         (alpha_set_memflags): Fix comment.
6634         (set_frame_related_p): Use get_insns instead of gen_sequence.
6635         * config/alpha/alpha.md (setjmp receiver splitter): Avoid
6636         emitting no insns.
6637         * config/arm/arm.c (arm_finalize_pic): Use get_insns instead of
6638         gen_sequence.
6639         (arm_gen_load_multiple, arm_gen_store_multiple): Likewise.
6640         * config/fr30/fr30.c (fr30_move_double): Likewise.
6641         * config/i386/i386.c (ix86_expand_int_movcc, ix86_expand_movstr):
6642         Likewise.
6643         * config/ia64/ia64.c (spill_restore_mem): Likewise.
6644         * config/ia64/ia64.md (conditional move spliiter): Avoid emitting
6645         no insns.
6646         * config/m32r/m32r.c (gen_split_move_double): Use get_insns
6647         instead of gen_sequence.
6648         * config/mips/mips.c (embedded_pic_fnaddr_reg): Likewise.
6649         (mips_expand_prologue, mips16_gp_pseudo_reg): Likewise.
6650         * config/sh/sh.c (sh_need_epilogue): Likewise.
6651         * config/sparc/sparc.md (current_function_calls_alloca, flat): New
6652         attributes.
6653         (setjmp pattern and split): Use them to avoid splitter which emits
6654         no RTL.
6655         * genattrtab.c (main): Emit include of function.h
6656         * config/stormy16/stormy16.c (xstormy16_split_cbranch): Use
6657         get_insns instead of gen_sequence.
6658         * config/cris/cris.c (cris_split_movdx): Likewise.
6659         * emit-rtl.c (emit_insns*): Kill.
6660         (try_split): Expect insn list instead of SEQUENCE.
6661         (make_jump_insn_raw, make_call_insn_raw): Fix comments.
6662         (emit_*insn*): Reimplement to work with INSN lists and PATTERNs.
6663         Make them abort if a SEQUENCE is given and RTL checking is
6664         enabled.
6665         (emit_*_scope): Don't forget to set scope on final insn.
6666         (gen_sequence): Move from here...
6667         * ssa.c (gen_sequence): To here as private function.
6668         * builtins.c (expand_builtin_apply_args): Use emit_insn_foo, fix
6669         comments.
6670         (expand_builtin_return, expand_builtin_mathfn): Likewise.
6671         (expand_builtin_strlen): Use get_insns instead of gen_sequence.
6672         (expand_builtin_saveregs): Use emit_insn_foo, fix comments.
6673         (expand_builtin_expect_jump): Use get_insns and fix comments.
6674         * calls.c (try_to_integrate): Use emit_insn_foo.
6675         (expand_call, emit_library_call_value_1): Likewise.
6676         * expr.c (emit_queue): Handle insn lists instead of SEQUENCE.
6677         (emit_move_insn_1): Use get_insns instead of gen_sequence.
6678         (expand_expr): Use emit_insn_foo.
6679         * cfgrtl.c (commit_one_edge_insertion): Use emit_insn_foo.
6680         * except.c (build_post_landing_pads): Likewise.
6681         * flow.c (attempt_auto_inc): Likewise.
6682         * stmt.c (expand_fixup, fixup_gotos, expand_nl_handler_label,
6683         expand_nl_goto_receivers, expand_decl_cleanup): Likewise.
6684         * function.c (fixup_var_refs_insn): Use get_insns instead of
6685         gen_sequence.
6686         (fixup_var_refs_1): Likewise and expect insn list from gen_foo.
6687         (fixup_memory_subreg): Use get_insns instead of gen_sequence.
6688         (fixup_stack_1, purge_addressof_1, expand_main_function,
6689         get_arg_pointer_save_area): Likewise.
6690         (optimize_bit_field, instantiate_virtual_regs_1, assign_parms,
6691         expand_function_end): Use emit_insn_foo.
6692         (record_insns, keep_stack_depressed): Work with insn list instead
6693         of SEQUENCE, fix comments.
6694         * ifcvt.c (noce_emit_store_flag, noce_try_store_flag,
6695         noce_try_store_flag_constants, noce_try_store_flag_inc,
6696         noce_try_store_flag_mask, noce_emit_cmove, noce_try_cmove_arith,
6697         noce_try_minmax, noce_try_abs): Use emit_insn_foo.
6698         (noce_process_if_block): Use get_insns instead of gen_sequence.
6699         * optabs.c (add_equal_note): Work with insn list, fix comments.
6700         (expand_binop): Expect insn list from GEN_FCN(), use emit_insn_foo.
6701         (expand_unop, expand_complex_abs, expand_unop_insn,
6702         expand_no_conflict_block): Likewise.
6703         (gen_move_insn): Use get_insns instead of gen_sequence.
6704         (gen_cond_trap): Likewise.
6705         * integrate.c (copy_rtx_and_substitute): Likewise.
6706         (emit_initial_value_sets): Use emit_insn_foo.
6707         * reload1.c (emit_output_reload_insns, emit_reload_insns): Likewise.
6708         (fixup_abnormal_edges): Avoid losing REG_NOTES more intelligently
6709         now that RTL generators give insn lists.
6710         * sibcall.c (replace_call_placeholder): Use emit_insn_foo.
6711         * doloop.c (doloop_modify, doloop_modify_runtime): Use get_insns
6712         instead of gen_sequence.
6713         (doloop_optimize): Work with insn lists instead of SEQUENCE rtl.
6714         * explow.c (emit_stack_save, emit_stack_restore): Use get_insns
6715         instead of gen_sequence.
6716         * loop.c (move_movables, emit_prefetch_instructions,
6717         gen_add_mult, check_dbra_loop, gen_load_of_final_value):
6718         Likewise.
6719         (loop_regs_update): Work with insn list instead of SEQUENCE rtl.
6720         (product_cheap_p): Likewise, and add commentary about RTL wastage
6721         here.
6722         * lcm.c (optimize_mode_switching): Use get_insns instead of
6723         gen_sequence.
6724         * profile.c (gen_edge_profiler): Likewise.
6725         * regmove.c (copy_src_to_dest): Likewise.
6726         * reg-stack.c (compensate_edge): Likewise and fix comment.
6727         * gcse.c (process_insert_insn): Likewise.
6728         (insert_insn_end_bb): Work with insn list instead of SEQUENCE rtl.
6729         * jump.c (delete_prior_computation): Update comment.
6730         * genemit.c (gen_expand, gen_split, main): Use get_insns instead
6731         of gen_sequence, update comments to match.
6732         * recog.c (peephole2_optimize): Work with insn lists instead of
6733         SEQUENCE rtl.
6734         * sched-vis.c (print_pattern): Abort on SEQUENCE.
6735         * unroll.c (unroll_loop, find_splittable_givs, final_giv_value):
6736         Use get_insns instead of gen_sequence.
6737         (copy_loop_body): Likewise and don't emit dummy NOTE.
6738         * genrecog.c: Don't mention SEQUENCE rtl in comments.
6739         * combine.c (try_combine): Expect insn lists from split generator.
6740         * reorg.c (relax_delay_slots): Emit SEQUENCE into insn list by
6741         hand.
6742
6743 2002-06-11  Roger Sayle  <roger@eyesopen.com>
6744             Andreas Jaeger <aj@suse.de>
6745
6746         * cfgbuild.c: Update copyright years.
6747
6748 2002-06-11  Andreas Schwab  <schwab@suse.de>
6749
6750         * config/m68k/m68k.h (PREDICATE_CODES): Define.
6751
6752 2002-06-11  Eric Christopher  <echristo@redhat.com>
6753
6754         * doc/tm.texi (Run-time Target): Add comment about flag_iso
6755         and strict ANSI.
6756         * config/mips/ecoff.h (CPP_PREDEFINES): Remove.
6757         * config/mips/ecoffl.h: Ditto.
6758         * config/mips/elf64.h (SUBTARGET_CPP_SPEC): Remove.
6759         (CPP_PREDEFINES): Ditto.
6760         * config/mips/elfl64.h: Ditto.
6761         * config/mips/elfl.h: Ditto.
6762         * config/mips/iris3.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): #if 0
6763         out until irix header consolidation.
6764         * config/mips/iris5.h (CPP_PREDEFINES, SUBTARGET_CPP_SPEC): Replace
6765         with SUBTARGET_OS_CPP_BUILTINS.
6766         * config/mips/iris6.h: Ditto.
6767         (CPLUSPLUS_CPP_SPEC): Remove.
6768         * config/mips/linux.h: Ditto.
6769         * config/mips/netbsd.h: Ditto.
6770         * config/mips/openbsd.h: Ditto.
6771         * config/mips/rtems.h: Ditto.
6772         * config/mips/rtems64.h: Ditto.
6773         * config/mips/sni-svr4.h: Ditto.
6774         * config/mips/mips.h (ISA_MIPS1, ISA_MIPS2, ISA_MIPS3, ISA_MIPS4,
6775         ISA_MIPS32, ISA_MIPS64): New defines.
6776         (GENERATE_MULT3_SI, HAVE_SQRT_P, ISA_HAS_64BIT_REGS,
6777         ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4,
6778         ISA_HAS_COND_TRAP, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
6779         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Use.
6780         (TARGET_CPU_CPP_BUILTINS): Define.
6781         (CPP_PREDEFINES, LONG_MAX_SPEC, CPP_FPR_SPEC, CPP_SPEC): Remove.
6782         * config/mips/mips.md (mulsi3_mult3): Use ISA_MIPS32/64.
6783         (movdicc): Remove check for ISA_MIPS32.
6784          (bunordered, bordered, bungt, bunlt, buneq, bunge, bunle,
6785         sunordered_df, sunordered_sf, sordered_df, sordered_sf,
6786         sunlt_df, sunlt_sf, sungt_df, sungt_sf, suneq_df, suneq_sf, sunge_df,
6787         sunge_sf, sunle_df, sunle_sf): New patterns.
6788
6789 2002-06-11  Neil Booth  <neil@daikokuya.demon.co.uk>
6790
6791         * Makefile.in: Update cppmain.o.
6792         * cpphash.h (struct cpp_reader): Move some members to a
6793         nested structure.
6794         (trad_line): Rename saved_line.
6795         (_cpp_read_logical_line_trad): Update.
6796         (_cpp_remove_overlay): New.
6797         * cppinit.c (cpp_create_reader): No need to set saved_line.
6798         (cpp_destroy): Update.
6799         (cpp_read_main_file): Only overlay if compiling.
6800         * cpplex.c (continue_after_nul): Return false if in directive.
6801         * cpplib.c (EXPAND): New.
6802         (directive_table, SEEN_EOL): Update.
6803         (end_directive): Remove overlay if traditional; don't skip
6804         line in traditional #define.
6805         (prepare_directive_trad): New.
6806         (_cpp_handle_directive, run_directive): Update for traditional
6807         directives.
6808         (lex_macro_node): Simplify, don't use lex_identifier_trad.
6809         * cpplib.h (struct options): Add preprocess_only.
6810         * cppmain.c: Don't include intl.h.
6811         (cpp_preprocess_file): Set options->preprocess_only.
6812         (scan_translation_unit_trad): Fix, and print line numbers.
6813         * cpptrad.c (check_output_buffer, lex_identifier, scan_parameters,
6814         maybe_start_funlike, scan_out_logical_line, replace_args_and_push,
6815         save_replacement_text, _cpp_create_trad_definition): Update for
6816         variable renaming.
6817         (_cpp_overlay_buffer): Save line number.
6818         (_cpp_remove_overlay): Rename from restore_buff, restore line.
6819         (_cpp_read_logical_line_trad): Don't handle overlays here.
6820         (scan_out_logical_line): Process directives.
6821
6822 2002-06-11  Danny Smith  <dannysmith@users.sourforge.net>
6823
6824         * gthr-win32.h: Wrap functions in extern "C".
6825         (__gthread_key_t): Typedef as unsigned long,
6826         not win32 DWORD.
6827         (__GTHREAD_ONCE_INIT): Use 0, not win32 FALSE.
6828         (__gthread_mutex_t): Typedef as void*, not win32 HANDLE.
6829         (__gthr_win32_once, __gthr_win32_key_create,
6830         __gthr_win32_key_delete, __gthr_win32_getspecific,
6831         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
6832         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
6833         __gthr_win32_mutex_unlock): Declare.
6834         (__gthread_once,__gthread_key_create,
6835         __gthread_key_delete, __gthread_getspecific,
6836         __gthread_setspecific, __gthread_mutex_init_function,
6837         __gthread_mutex_lock,__gthread_mutex_trylock,
6838         __gthread_mutex_unlock): Call corresponding
6839         __gthr_win32_* extern implementations if #defined
6840         __GTHREAD_HIDE_WIN32API.
6841         * config/i386/t-mingw32 (LIB2FUNCS_EXTRA): Set to
6842         $(srcdir)/config/i386/gthr-win32.c
6843         * config/i386/gthr-win32.c: New implementation file.
6844         (__gthr_win32_once, __gthr_win32_key_create,
6845         __gthr_win32_key_delete, __gthr_win32_getspecific,
6846         __gthr_win32_setspecific, __gthr_win32_mutex_init_function,
6847         __gthr_win32_mutex_lock,__gthr_win32_mutex_trylock,
6848         __gthr_win32_mutex_unlock): New functions, based on
6849         static inlines in gthr-win32.h.
6850
6851 2002-06-10  Bob Wilson  <bob.wilson@acm.org>
6852
6853         * config/xtensa/xtensa.c (override_options): Don't warn about
6854         using -fpic or -fPIC when PIC is enabled by default.
6855
6856 2002-06-10  Roger Sayle  <roger@eyesopen.com>
6857
6858         * toplev.c (rest_of_compilation): Revert flag_if_conversion change.
6859
6860 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
6861
6862         * Makefile.in (MACHMODE_H): Add @extra_modes_file@.
6863         * configure.in: If $srcdir/config/${cpu_type}/${cpu_type}-modes.def
6864         exists, substitute its pathname as @extra_modes_file@, define
6865         EXTRA_MODES_FILE to be an appropriate string to #include it
6866         with, and define EXTRA_CC_MODES to 1.
6867
6868         * machmode.def: Update comments.  Include EXTRA_MODES_FILE if
6869         it's defined.  Get rid of redundancy in calling sequence for
6870         CC; don't use it to define CCmode, to avoid a warning.
6871         * libgcc2.c: Include symcat.h for the sake of machmode.def.
6872
6873         * arc-modes.def, arm-modes.def, c4x-modes.def, i386-modes.def,
6874         i960-modes.def, ia64-modes.def, m88k-modes.def, mmix-modes.def,
6875         pa-modes.def, pdp11-modes.def, rs6000-modes.def, sparc-modes.def:
6876         New files.
6877         * arc.h, arm.h, c4x.h, i386.h, i960.h, ia64.h, m88k.h, mmix.h,
6878         pa.h, pdp11.h, rs6000.h, sparc.h: Don't define EXTRA_CC_MODES.
6879
6880         * doc/sourcebuild.texi, doc/tm.texi: Document new scheme for
6881         defining extra CC modes.
6882
6883 2002-06-10  Roger Sayle  <roger@eyesopen.com>
6884             Andreas Jaeger <aj@suse.de>
6885
6886         * cfgrtl.c (create_basic_block_structure):  Remove index argument
6887         and use last_basic_block++ instead.  (create_basic_block): Update.
6888         * cfgbuild.c (find_basic_blocks_1): Likewise.
6889
6890         * cfgrtl.c (compute_bb_for_insn): Remove unused "max" argument.
6891         * haifa-sched.c (sched_init): Update compute_bb_for_insn caller.
6892         * sched-ebb.c (schedule_ebbs): Likewise.
6893         * sched-rgn.c (schedule_insns): Likewise.
6894         * ssa-ccp.c (ssa_const_prop): Likewise.
6895         * ssa-dcs.c (ssa_eliminate_dead_code): Likewise.
6896         * toplev.c (rest_of_compilation): Likewise.
6897         * config/ia64/ia64.c (ia64_reorg): Likewise.
6898
6899 2002-06-10  Roger Sayle  <roger@eyesopen.com>
6900
6901         * simplify-rtx.c (simplify_replace_rtx): Allow replacement
6902         of matching registers.
6903
6904 2002-06-10  Roger Sayle  <roger@eyesopen.com>
6905
6906         * toplev.c (rest_of_compilation): Disable early if-conversion pass.
6907         * gcse.c (bypass_conditional_jumps): Fix typo in setcc test.
6908
6909 2002-06-10  Hans-Peter Nilsson  <hp@bitrange.com>
6910
6911         * config/mmix/mmix.h: Improve comments.
6912         (CPP_SPEC, CPP_PREDEFINES): Don't define.
6913         (TARGET_CPU_CPP_BUILTINS): Define.
6914         (CANONICALIZE_COMPARISON): Don't define, replace with comment.
6915         (PREDICATE_CODES) <"mmix_reg_or_8bit_or_256_operand">: Remove
6916         unused predicate.
6917         * config/mmix/mmix.c (MMIX_OUTPUT_REGNO): Add cast to avoid
6918         compiler warning.
6919         (mmix_constant_address_p): Remove another
6920         redundant test before case.
6921         (mmix_canonicalize_comparison): Remove unused function.
6922         (mmix_print_operand_address): Don't test and adjust for operand in
6923         non-canonical format.
6924         (mmix_reg_or_8bit_or_256_operand): Remove unused predicate.
6925         (mmix_gen_compare_reg): Don't use CANONICALIZE_COMPARISON.
6926
6927 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
6928
6929         * config/m32r/m32r.h: Don't define SELECT_CC_MODE.
6930         * config/m32r/m32r-protos.h: Don't prototype m32r_select_cc_mode.
6931         * config/m32r/m32r.c: Don't define m32r_select_cc_mode.
6932         (gen_compare): Use CCmode unconditionally.
6933
6934 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
6935
6936         PR optimization/6759
6937         * cse.c (cse_insn): Fold src_eqv just once, store it folded back into
6938         the REQ_EQUAL note.
6939
6940 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
6941
6942         PR c/6660
6943         * c-decl.c (grokfield): Allow user defined types if they declare
6944         structs or unions for unnamed fields.
6945
6946 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
6947
6948         PR c/6809
6949         * print-rtl.c (print_mem_expr): Don't crash on unnamed fields.
6950
6951 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
6952
6953         PR optimization/6842
6954         * combine.c (combine_simplify_rtx) [SUBREG]: Don't ICE if VOIDmode
6955         operand subreg cannot be simplified.
6956
6957 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
6958
6959         * varasm.c (const_hash): Handle FDESC_EXPR like ADDR_EXPR.
6960         (compare_constant): Likewise.
6961         (output_addressed_constants): Likewise.
6962
6963 2002-06-10  Jakub Jelinek  <jakub@redhat.com>
6964
6965         * cfgcleanup.c (try_optimize_cfg): Make sure merge_blocks doesn't
6966         merge bb with itself.
6967
6968 2002-06-10  Richard Henderson  <rth@redhat.com>
6969
6970         * config/alpha/alpha.md (builtin_zap): Fix thinkos expanding mask.
6971         (builtin_zapnot): Likewise.
6972
6973         * config/alpha/ev5.md: Don't combine shift and mvi insns in one
6974         reservation.
6975
6976 2002-06-10  Eric Christopher  <echristo@redhat.com>
6977
6978         * config/i386/i386.c (ix86_osf_output_function_prologue): Remove
6979         prototype and function.
6980         (TARGET_ASM_FUNCTION_PROLOGUE): Remove OSF version.
6981         (call_insn_operand): Remove half pic references.
6982         (legitimate_address_p): Ditto.
6983         * config/i386/i386.h: Remove half pic defines.
6984
6985 2002-06-10  Eric Christopher  <echristo@redhat.com>
6986
6987         * doc/extend.texi (Return Address): Add note explaining the side-
6988         effects of inlining on __builtin_return_address.
6989
6990 2002-06-10  Tom Tromey  <tromey@redhat.com>
6991
6992         * Makefile.in (LANGHOOKS_DEF_H): Include langhooks-def.h.
6993         (c-common.o): Depend on langhooks.h.
6994
6995 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
6996
6997         * cpphash.h (_cpp_read_logical_line_trad,
6998         _cpp_expansions_different_trad): Update prototypes.
6999         * cpplex.c (continue_after_nul): New.
7000         * cppmain.c: Include cpphash.h.
7001         (scan_translation_unit_trad): New.
7002         (cpp_preprocess_file): Call it.
7003         * cpptrad.c (_cpp_read_logical_line_trad): Take new parameter
7004         overlay.
7005         (_cpp_expansions_different_trad): Update prototype.
7006
7007 Mon Jun 10 18:02:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
7008
7009         Fix cfi generation for SH[1-4]:
7010
7011         * sh.c (frame_insn): New function.
7012         (output_stack_adjust): Add parameter emit_fn.  All callers changed.
7013         (push): Now returns rtx.  Use frame_insn.
7014         (sh_expand_prologue): Clear RTX_FRAME_RELATED_P for second push
7015         of a DF register.
7016         * sh.h (INCOMING_RETURN_ADDR_RTX, DWARF_FRAME_RETURN_COLUMN): Define.
7017
7018 2002-06-10  Zack Weinberg  <zack@codesourcery.com>
7019
7020         * Makefile.in (STAGESTUFF): Add s-gtype, gt-*.h, gtype-*.h,
7021         and gtype-desc.c.
7022         (mostlyclean): Delete specs.h, options.h, gencheck.h here...
7023         (distclean): ... not here.  But do delete all testsuite/*.log,
7024         testsuite/*.sum files here.  Delete mkheaders.  Delete
7025         po/*.gmo and the testsuite directory in a split tree build.
7026
7027 2002-06-10  Jeffrey Law  <law@redhat.com>
7028
7029         * alias.c (static_reg_base_value): New to hold RTL for
7030         items allocated once per function for the aliasing code.
7031         (init_alias_once_per_function): Initialize static_reg_base_value.
7032         (init_alias_analysis): Avoid throw-away allocations of RTL by
7033         using pre-computed values in static_reg_base_value.
7034         * function.c (prepare_function_start): Call
7035         init_alias_once_per_function appropriately.
7036         * rtl.h (init_alias_once_per_function): Declare.
7037         * caller-save (init_caller_save): Restructure slightly to
7038         avoid lots of silly RTL generation.
7039         * expr.c (init_expr_once): Likewise.
7040         * reload1.c (reload_cse_regs_1): Allocate throw-away register
7041         RTL object here.  Pass it into children.
7042         (reload_cse_simplify_operands): Use passed-in register RTL
7043         object.
7044         (reload_cse_simplify): Pass through throw-away register
7045         RTL object.
7046
7047 2002-06-10  Daniel Berlin  <dberlin@dberlin.org>
7048
7049         * Makefile.in (ssa.o): Add dependency on $(RTL_H), which was missing.
7050
7051 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
7052
7053         * gcc.c (process_command): Avoid assignment to read-only location.
7054         Fix sizeof calculation.
7055
7056 2002-06-10  Neil Booth  <neil@daikokuya.demon.co.uk>
7057
7058         * cpphash.h (struct cpp_macro): Put comments on their own lines.
7059         (_cpp_expansions_different_trad): New.
7060         * cppmacro.c (warn_of_redefinition): Fix for traditional case.
7061         * cpptrad.c (canonicalize_text): New.
7062         (scan_out_logical_line): Handle no arguments correctly.
7063         (save_replacement_text): Commit memory when finished.
7064         (_cpp_expansions_different_trad): New.
7065
7066 2002-06-10  Tim Josling  <tej@melbpc.org.au>
7067
7068         * gengtype.c (unnamed enum containing BASE_FILE_*): Add languages
7069         TREELANG and COBOL.
7070         (lang_names): Add treelang and cobol.
7071         (get_file_basename): Add code to support treelang and cobol as
7072         4th and 5th users of c-common.c.
7073
7074 2002-06-09  Geoffrey Keating  <geoffk@redhat.com>
7075
7076         * Makefile.in (install-driver): Install driver as
7077         $(target_alias)-gcc-$(version).
7078         * gcc.c (spec_version): Make const.
7079         (process_command): Handle -V and -b by using exec.
7080         * doc/invoke.texi (Target Options): Restore -V option,
7081         update docs for -b option.
7082
7083 2002-06-10  Tim Josling  <tej@melbpc.org.au>
7084
7085         * configure.in (remaining_languages_check):
7086         Added check that all languages specified were found.
7087         Exit if not found. Previous behaviour was silent failure.
7088         * configure: Regenerated.
7089
7090 2002-06-10  Tim Josling  <tej@melbpc.org.au>
7091
7092          First steps to making treelang documentation compliant, based on
7093          instructions in sourcebuild.texi. Also add to gcc.c list of
7094          default languages.
7095
7096         * doc/contrib.texi: Add self as contributor of treelang.
7097
7098         * doc/frontends.texi: Add mention of treelang.
7099
7100         * doc/invoke.texi (Overall Options): Add mention of treelang.
7101
7102         * doc/standards.texi:  Add mention of treelang.
7103
7104 2002-06-09  Hans-Peter Nilsson  <hp@axis.com>
7105
7106         * config/cris/cris.c: Include ggc.h
7107
7108 2002-06-09  Neil Booth  <neil@daikokuya.demon.co.uk>
7109
7110         * cpphash.h (_cpp_push_text_context): Update.
7111         (_cpp_arguments_ok): New.
7112         * cppmacro.c (_cpp_arguments_ok): New, split out from...
7113         (collect_args): ...here.
7114         (_cpp_push_text_context): Change inputs.
7115         * cpptrad.c (struct fun_macro, maybe_start_funlike, save_argument,
7116         replace_args_and_push): New.
7117         (lex_identifier, _cpp_lex_identifier_trad, scan_parameters):
7118         Don't use IS macros directly.
7119         (scan_out_logical_line): Handle function-like macro argument
7120         collection.
7121         (push_replacement_text): Update.
7122         (replacement_length): Remove.
7123         (_cpp_create_trad_definition): Don't skip whitespace before
7124         checking for '('.
7125
7126 2002-06-09  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7127
7128         * config/avr/avr.c (avr_mcu_types): Update for new devices.
7129         * config/avr/avr.h (TARGET_SWITCHES, AVR_MEGA): Add -mshort-calls.
7130         (LINK_SPEC, CRT_BINUTILS_SPECS): Update for new devices.
7131         * config/avr/avr.md ("type" and "length" attributes): New type
7132         "xcall", length 1 or 2 if AVR_MEGA.  Use in all patterns that
7133         output a single "call" or "rcall" insn depending on device size.
7134         * config/avr/t-avr (MULTILIB_MATCHES): Update for new devices.
7135
7136 2002-06-09  David Edelsohn  <edelsohn@gnu.org>
7137
7138         * config/rs6000/{aix43.h,aix5.1} (ASM_CPU_SPEC): Add power3
7139         synonym for 630.  Add power4.  Remove embedded processors.  Use -m604
7140         assembler option.
7141         (CPP_CPU_SPEC): Add power3 and power4.
7142         (PROCESSOR_DEFAULT): Change to 604e.
7143         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Similar additions.
7144         (CPP_CPU_SPEC): Similar additions.
7145         (enum process_type): Add POWER4.
7146         (RTX_COSTS): Add POWER4.
7147         (CPP_CPU_SPEC): Similar additions.
7148         * config/rs6000/linux64.h (PROCESSOR_DEFAULT): Define.
7149         (PROCESSOR_DEFAULT64): Define.
7150         * config/rs6000/rs6000.c (rs6000_override_options): Add power4.
7151         (rs6000_adjust_cost): Add 603, 604, 604e, 620, 630, Power4 to
7152         branch adjustment.
7153         (rs6000_issue_rate): Add Power4.
7154         * config/rs6000/rs6000.md (cpu attr): Add power4.
7155         (iu compare): Remove 604, 604e, 620, 630.
7156         Add basic Power4 scheduling information.
7157         (mfcr/mtcrf): Change type attribute to cr_logical.
7158
7159 2002-06-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7160
7161         * gengtype.h (error_at_line): Use PARAMS, not VPARAMS.  Add
7162         ATTRIBUTE_PRINTF_2.
7163         * gengtype-lex.l: Fix format specifier warning.
7164
7165         * genautomata.c: Don't include ctype.h or limits.h.  Use ISSPACE,
7166         not isspace.
7167         * gengtype-lex.l: Don't include ctype.h and use ISSPACE/ISIDNUM in
7168         lieu of isspace/IDchar.
7169         * gengtype.c: Likewise for ctype.h and ISALNUM vs isalnum.
7170         * read-rtl.c: Likewise for ctype.h.  Don't define ISDIGIT or
7171         ISSPACE.
7172
7173 2002-06-08  Zack Weinberg  <zack@codesourcery.com>
7174
7175         * Makefile.in (LIBCPP_OBJS): Take out version.o.
7176         * cpphash.h (cpp_reader): Take out print_version member.
7177         * cppinit.c: (cpp_handle_option): Don't do anything with
7178         -version.  Just set help_only for --version, --target-help.
7179         Just set verbose option for -v.
7180         (cpp_post_options): Don't print a version string.
7181
7182 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7183
7184         * config/avr/avr.c (TARGET_SECTION_TYPE_FLAGS): New.
7185         (avr_section_type_flags): New, handle .noinit* sections.
7186
7187 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7188
7189         * config/sh/netbsd-elf.h (SUBTARGET_EXTRA_SPECS): Define
7190         and include netbsd_entry_point.
7191         (SUBTARGET_LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
7192         (NETBSD_ENTRY_POINT): Define.
7193
7194 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7195
7196         * config/sh/sh.h (SUBTARGET_EXTRA_SPECS): Define empty
7197         if not already defined.
7198         (EXTRA_SPECS): Add SUBTARGET_EXTRA_SPECS.
7199
7200 2002-06-08  Marek Michalkiewicz  <marekm@amelek.gda.pl>
7201
7202         * config/avr/avr.c (avr_regs_to_save): No need to save any registers
7203         in a noreturn function.
7204         (avr_output_function_prologue, avr_output_function_epilogue):
7205         Correct function size calculation.  Do not crash on empty function.
7206         (avr_output_function_epilogue): No need for epilogue after a BARRIER.
7207
7208 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7209
7210         * config/mips/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
7211         netbsd_link_spec and netbsd_entry_point.
7212         (LINK_SPEC): Use %(netbsd_link_spec).
7213         (NETBSD_ENTRY_POINT): Define.
7214
7215 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7216
7217         * config/sparc/netbsd-elf.h (LINK_ARCH32_SPEC): Only specify
7218         linker emulation.
7219         (LINK_ARCH64_SPEC): Likewise.
7220         (LINK_SPEC, NETBSD_ENTRY_POINT): Define.
7221         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and netbsd_entry_point.
7222
7223 2002-06-08  Marc Espie  <espie@openbsd.org>
7224
7225         * lists.c (free_list):  Fix typo in comment.
7226
7227 2002-06-08  Andreas Jaeger  <aj@suse.de>
7228
7229         * lcm.c (optimize_mode_switching): Add unused attribute for
7230         variable.
7231
7232         * sched-deps.c (sched_analyze): Remove unused variable.
7233
7234 2002-06-08  Gabriel Dos Reis  <gdr@codesourcery.com>
7235
7236         * diagnostic.def: Don't capitalize diagnostict descriptors.
7237
7238 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7239
7240         * config/m68k/netbsd-elf.h (EXTRA_SPECS): Add netbsd_entry_point.
7241         (LINK_SPEC): Define as NETBSD_LINK_SPEC_ELF.
7242         (NETBSD_ENTRY_POINT): Define.
7243
7244 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7245
7246         * config/i386/netbsd-elf.h (LINK_SPEC): Define as
7247         NETBSD_LINK_SPEC_ELF.
7248         (SUBTARGET_EXTRA_SPECS): Add netbsd_entry_point.
7249         (NETBSD_ENTRY_POINT): Define.
7250         * config/i386/netbsd64.h (LINK_SPEC): Use %(netbsd_link_spec).
7251         (SUBTARGET_EXTRA_SPECS): Add netbsd_link_spec and
7252         netbsd_entry_point.
7253         (NETBSD_ENTRY_POINT): Define.
7254
7255 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7256
7257         * config/alpha/netbsd.h (SUBTARGET_EXTRA_SPECS): Add
7258         netbsd_link_spec and netbsd_entry_point.
7259         (LINK_SPEC): Use %(netbsd_link_spec).
7260         (NETBSD_ENTRY_POINT): Define.
7261
7262 2002-06-08  Jason Thorpe  <thorpej@wasabisystems.com>
7263
7264         * config/netbsd-elf.h (LINK_SPEC): Rename to...
7265         (NETBSD_LINK_SPEC_ELF): ...this.  Use %(netbsd_entry_point)
7266         to specify program entry point.
7267
7268 2002-06-07  Jeff Law <law@redhat.com
7269
7270         * emit-rtl.c (init_emit): Add hard registers to regno_reg_rtx.
7271         * combine.c (move_deaths): Use regno_reg_rtx for hard regs rather
7272         than creating a new register.
7273         (distribute_notes): Likewise.
7274         * df.c (df_reg_use_gen): Likewise.
7275         (df_reg_clobber_gen): Likewise.
7276         (df_ref_record): Likewise.
7277         * expr.c (use_regs): Likewise.
7278         * flow.c (propagate_one_insn): Likewise.
7279         (mark_set_1): Likewise.
7280         (mark_used_reg): Likewise.
7281         * reload.c (emit_reload_insns): Likewise.
7282
7283 2002-06-07  Roger Sayle  <roger@eyesopen.com>
7284
7285         * simplify-rtx.c (simplify_gen_relational): Simplify RTL of the form
7286         (ne (comp x y) 0) into (comp x y) where comp is a comparison code.
7287         Simplify (eq (comp x y) 0) into (revcomp x y) if the sense of the
7288         comparison code comp can be reversed.
7289
7290 2002-06-07  Roger Sayle  <roger@eyesopen.com>
7291
7292         * fold-const.c (fold) [EQ_EXPR]:  Place both integer and real
7293         constants last in comparisons.  Optimize (x+1.0)>0.0 into the
7294         equivalent x > -1.0 when -ffast-math.
7295
7296 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
7297
7298         * config.gcc (mips*-*-netbsd*): Add mips/t-netbsd to ${tmake_file}.
7299         * config/mips/t-netbsd: New file.
7300
7301 2002-06-07  Zack Weinberg  <zack@codesourcery.com>
7302
7303         * cppinit.c (COMMAND_LINE_OPTIONS): Give all relevant -W
7304         options their own entries.
7305         (parse_option): Clarify comment.
7306         (cpp_handle_option): Remove 'ignore' parameter and OPT_W
7307         special case.  Replace if/strcmp chain for -W options with
7308         use of new OPT_* entries for them.
7309         (cpp_handle_options): Update to match.
7310         * cpplib.h: Remove last parameter to cpp_handle_option from prototype.
7311         * c-decl.c: Update call to cpp_handle_option.
7312
7313 2002-06-07  Akim Demaille  <akim@epita.fr>
7314
7315         * gengtype-yacc.y (optionseqopt): Add the ending `;' to the action.
7316         Whitespace changes.
7317
7318 2002-06-07  Jeffrey Law  <law@redhat.com>
7319
7320         * sched-deps.c (free_deps): Avoid calling free_INSN_LIST_list
7321         on empty lists.
7322
7323 2002-06-07  H.J. Lu  (hjl@gnu.org)
7324
7325         * configure.in: Add --enable-__cxa_atexit.
7326         * configure: Regenerated.
7327         * config.in: Likewise.
7328
7329         * defaults.h (DEFAULT_USE_CXA_ATEXIT): New. Defined to be 0 if
7330         not defined.
7331
7332 2002-06-07  Gabriel Dos Reis  <gdr@merlin.nerim.net>
7333
7334         * diagnostic.c (diagnostic_build_prefix): Fix initialization.
7335
7336 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
7337
7338         * config/mips/netbsd.h (CACHE_FLUSH_FUNC): Define.
7339
7340 2002-06-07  Jason Merrill  <jason@redhat.com>
7341
7342         * cppexp.c (num_equality_op): Use a temporary variable to work
7343         around gcc 3.0.4 bug.
7344
7345 2002-06-07  Gabriel Dos Reis  <gdr@codesourcery.com>
7346
7347         * diagnostic.c (diagnostic_build_prefix): Tidy.
7348
7349 2002-06-07  Neil Booth  <neil@daikokuya.demon.co.uk>
7350
7351         * cpptrad.c (struct block, BLOCK_HEADER_LEN, BLOCK_LEN,
7352         scan_parameters, save_replacement_text, replacement_length): New.
7353         (scan_out_logical_line): Take a macro and save parameters if
7354         non-NULL.
7355         (_cpp_logical_line_trad): Update.
7356         (_cpp_create_trad_definition): Update to handle function-like
7357         macros.
7358         * cpplex.c (new_buff): Update.
7359         (struct dummy, DEFAULT_ALIGNMENT, CPP_ALIGN): Move...
7360         * cpphash.h: ...here.
7361         (CPP_ALIGN2, _cpp_save_parameter): New.
7362         * cppmacro.c (save_parameter): Rename, export.
7363         (parse_params): Update.
7364
7365 2002-06-07  Andreas Jaeger  <aj@suse.de>
7366
7367         * config/mmix/mmix.c: Remove extra broken prototype for
7368         mmix_init_machine_status.
7369
7370 2002-06-06  Geoffrey Keating  <geoffk@redhat.com>
7371
7372         * gengtype.c: Add comments before all the routines.
7373
7374 2002-06-07  Jason Thorpe  <thorpej@wasabisystems.com>
7375
7376         * config.gcc (sh5*-*-netbsd*): Remove sh/t-netbsd-sh5-32
7377         from and add t-sh64 to ${tmake_file}.
7378         (sh64*-*-netbsd*): Add t-sh64 to ${tmake_file}.
7379         * config/sh/t-netbsd-sh5 (LIB1ASMFUNCS): Remove.
7380         * config/sh/t-netbsd-sh5-32: Remove.
7381         * config/sh/t-netbsd-sh5-64 (MULTILIB_OPTIONS): Use
7382         MULTILIB_ENDIAN.
7383         (MULTILIB_DIRNAMES): Define.
7384
7385 Thu Jun  6 23:14:46 CEST 2002  Jan Hubicka  <jh@suse.cz>
7386
7387         * i386.md (and promoting splitters): Disable QI to SImode promoting
7388         when doing so changes immediate to be 32bit.
7389
7390         * rtl.h (emit_*_scope): Declare.
7391         * emit-rtl.c (emit_*_scope): New global functions.
7392         (try_split): Copy scope.
7393         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
7394         noce_try_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
7395         noce_try_cmove_arith, noce_try_minmax, noce_try_abs,
7396         noce_process_if_block, find_cond_trap): Copy scopes.
7397         * recog.c (peephole2_optimize): likewise.
7398
7399 2002-06-06  Jeffrey Law  <law@redhat.com>
7400
7401         * h8300.h (OK_FOR_U): Fix thinko exposed by flag checking.
7402
7403 Thu Jun  6 21:06:25 2002  J"orn Rennecke <joern.rennecke@superh.com>
7404
7405         * gengtype-lex.l (INITIAL): New rule for "'"("\\".|[^\\])"'".
7406
7407 2002-06-06  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7408
7409         * Makefile.in (TEXI_GCCINSTALL_FILES): Define.
7410         ($(docdir)/gccinstall.info): New target.
7411         (info): Depend on it.
7412         (gccinstall.dvi): New target.
7413         (dvi): Depend on it.
7414         * doc/.cvsignore: Ignore new info files.
7415         * doc/install.texi (@setfilename): Reflect new info filename.
7416
7417 Thu Jun  6 15:57:23 2002  J"orn Rennecke <joern.rennecke@superh.com>
7418
7419         * sh.c (machine_dependent_reorg): Don't set RTX_UNCHANGING_P
7420         on an UNSPEC.
7421
7422 Thu Jun  6 07:17:43 2002  Nicola Pero  <n.pero@mi.flashnet.it>
7423
7424         PR objc/6834
7425         * objc/objc-lang.c (LANG_HOOKS_GET_ALIAS_SET): Define to be
7426         c_common_get_alias_set.
7427         (LANG_HOOKS_SAFE_FROM_P): Define to be c_safe_from_p.
7428
7429 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7430
7431         * emit-rtl.c (get_first_nonnote_insn, get_last_nonnote_insn): New
7432         functions.
7433         * rtl.h (get_first_nonnote_insn, get_last_nonnote_insn): Declare.
7434         * avr/avr.c (avr_output_function_epilogue): Use above to determine
7435         function size.
7436         * pa/pa.c (pa_output_function_prologue): Likewise.
7437
7438 2002-06-05  David S. Miller  <davem@redhat.com>
7439
7440         * integrate.c (subst_constants): Handle 'B' RTL format.
7441
7442 2002-06-05  Eric Christopher  <echristo@redhat.com>
7443
7444         * varasm.c (make_decl_rtl): Fix comment for removed
7445         halfpic.c.
7446
7447 2002-06-05  Eric Christopher  <echristo@redhat.com>
7448
7449         * Makefile.in: Remove missed halfpic bits.
7450
7451 2002-06-05  Eric Christopher  <echristo@redhat.com>
7452
7453         * toplev.c: Remove half-pic.
7454         * config/mips/mips.c: Ditto.
7455         * config/mips/mips.h: Ditto. Remove unused defines.
7456         * config/mips/openbsd.h: Update comment to reflect above.
7457         * config/mips/mips.md: Remove half-pic constraints.
7458         * halfpic.h: Delete.
7459         * halfpic.c: Ditto.
7460
7461 2002-06-05  Jeffrey Law  <law@redhat.com>
7462
7463         * pa.h (EXTRA_CONSTRAINT, T case): Further refine so that it
7464         rejects (mem (lo_sum (reg) (unspec))), but will allow
7465         (mem (lo_sum (reg) (symbol_ref)) for PA2.0.
7466
7467 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7468
7469         * cpphash.h (_cpp_create_definition): Update prototype.
7470         (_cpp_push_text_context, _cpp_create_trad_definition): New.
7471         ( cpp_lex_identifier_trad): New.
7472         (_cpp_set_trad_context): New.
7473         * cppinit.c (cpp_finish_options): Don't conditionalize builtins.
7474         * cpplib.c (SEEN_EOL): Update.
7475         (lex_macro_node): Update for -traditional.
7476         (cpp_push_buffer, _cpp_pop_buffer): Similarly.
7477         * cppmacro.c (_cpp_create_definition): Split into
7478         create_iso_definition() and _cpp_create_trad_definition().
7479         (warn_of_redefinition): Update prototype; handle traditional
7480         macros.
7481         (_cpp_push_text_context): New.
7482         * cpptrad.c (skip_whitespace, push_replacement_text): New.
7483         (lex_identifier): Call ht_lookup with correct start.
7484         (_cpp_lex_identifier_tradm _cpp_create_trad_definition,
7485         _cpp_set_trad_context): New.
7486         (scan_out_logical_line): Update to handle changing contexts.
7487
7488 Wed Jun  5 20:42:31 2002  J"orn Rennecke <joern.rennecke@superh.com>
7489
7490         * config.gcc (sh-*-elf*,  sh64*-*-elf*): Unify.
7491         (shl*-*-elf*): Add.
7492         * config/sh/t-be (MULTILIB_ENDIAN): Set.
7493         * config/sh/t-le (MULTILIB_ENDIAN): Likewise.
7494         * t-sh (MULTILIB_ENDIAN): Set.
7495         (MULTILIB_OPTIONS): Use it.
7496         * t-sh64 (MULTILIB_OPTIONS): Likewise.
7497         (MULTILIB_DIRNAMES): Likewise.
7498
7499 2002-06-05  Gabriel Dos Reis  <gdr@codesourcery.com>
7500
7501         * toplev.h (report_error_function): Remove.
7502
7503         * diagnostic.h (location_t): New datatype.
7504         (text_info): Likewise.
7505         (diagnostic_info): Likewise.
7506         (output_prefix): New macro.
7507         (diagnostic_last_function_changed): Likewise.
7508         (diagnostic_set_last_function): Likewise.
7509         (diagnostic_last_module_changed): Likewise.
7510         (diagnostic_set_last_module): Likewise.
7511         (report_diagnostic): Now macro.
7512         (diagnostic_set_info): Declare.
7513
7514         * diagnostic.c (report_problematic_module): Rename to
7515         diagnostic_repor_current_module.
7516         (set_diagnostic_context): Remove.
7517         (count_error): Rename to diagnostic_error_count.
7518         (error_function_changed): Remove.
7519         (record_last_error_function): Likewise.
7520         (error_module_changed): Likewise.
7521         (record_last_error_module): Likewise.
7522         (context_as_prefix): Rename to diagnostic_build_prefix.
7523         (flush_diagnostic_buffer): Rename to diagnostic_flush_buffer.
7524         (diagnostic_set_info): New function.
7525
7526         * objc/objc-act.c: #include diagnostic.h
7527         (error_with_ivar): Adjust call to count_error.
7528         (warn_with_method): Likewise.
7529         * objc/Make-lang.in (objc-act.o): Depend on diagnostic.h
7530
7531 2002-06-05  Bob Wilson  <bob.wilson@acm.org>
7532
7533         * config/xtensa/xtensa.c (xtensa_build_va_list): Use
7534         lang_hooks.types.make_type instead of make_node; set up
7535         __va_list_tag type decl.
7536         (xtensa_builtin_saveregs): Remove broken use of
7537         RTX_UNCHANGING_P and unnecessary use of MEM_IN_STRUCT_P
7538         for saved registers; add varargs alias set.
7539
7540 2002-06-05  Neil Booth  <neil@daikokuya.demon.co.uk>
7541
7542 config:
7543         * alpha/gnu.h: Undef TARGET_OS_CPP_BUILTINS.
7544         * i386/beos-elf.h: Use TARGET_OS_CPP_BUILTINS rather than
7545         CPP_PREDEFINES and part of CPP_SPEC.
7546         i386/freebsd-aout.h, i386/gas.h, i386/gnu.h, i386/linux-aout.h,
7547         i386/linux.h, i386/moss.h, i386/xm-vsta.h: Similarly.
7548
7549 Wed Jun  5 15:20:58 CEST 2002  Jan Hubicka  <jh@suse.cz>
7550
7551         * reg-stack.c (reg_to_stack): Do not call find_basic_blocks.
7552
7553 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
7554
7555         * config/rs6000/linux64.h (ASM_OUTPUT_SOURCE_LINE): Define.
7556
7557 2002-06-04  Zack Weinberg  <zack@codesourcery.com>
7558
7559         * gengtype-yacc.y: Make sure all rules end with a semicolon.
7560
7561 2002-06-04  Bob Wilson  <bob.wilson@acm.org>
7562
7563         * config/xtensa/xtensa.c (xtensa_init_machine_status): Fix
7564         typo in function prototype and include "ggc.h" header.
7565
7566 2002-06-04  Richard Henderson  <rth@redhat.com>
7567
7568         * config/alpha/alpha.c (mode_mask_operand): Simplify without ifdefs.
7569         (print_operand) ['U']: Likewise.
7570         (alpha_expand_unaligned_store): Correct constants for 32-bit cross.
7571         (alpha_expand_unaligned_store_words): Likewise.
7572         (alpha_expand_builtin_vector_binop): Fix typo.
7573         (enum alpha_builtin, code_for_builtin): Add remaining ext, ins, msk,
7574         umulh, and cix insns.
7575         (one_arg_builtins): Add cix builtins.
7576         (two_arg_builtins): Add ext, ins, msk, umulh builtins.
7577         (alpha_expand_builtin): Fix typo in arity.
7578         * config/alpha/alpha.md (UNSPEC_CTLZ, UNSPEC_CTPOP): New.
7579         (builtin_extbl, builtin_extwl, builtin_extll, builtin_extwh,
7580         builtin_extlh, builtin_insbl, builtin_inswl, builtin_insll,
7581         builtin_insql, builtin_inswh, builtin_inslh, builtin_insqh,
7582         builtin_mskbl, builtin_mskwl, builtin_mskll, builtin_mskql,
7583         builtin_mskwh, builtin_msklh, builtin_mskqh, builtin_cttz,
7584         builtin_ctlz, builtin_ctpop): New.
7585         * doc/extend.texi (Alpha Built-in Functions): Update.
7586
7587 2002-06-04  Geoffrey Keating  <geoffk@redhat.com>
7588
7589         * gengtype.c (write_gc_root): Don't unnecessarily prevent
7590         global variable-length arrays being roots.
7591
7592         * config.gcc (powerpc-*-darwin*): Set config_gtfiles.
7593         * configure.in (config_gtfiles): New variable.
7594         (all_gtfiles): Initialise from config_gtfiles.
7595         * configure: Regenerate.
7596
7597 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7598
7599 config/i386:
7600         * beos-elf.h, cygwin.h, djgpp.h, gas.h, gnu.h, i386-interix.h,
7601         i386-interix3.h, i386elf.h, linux-aout.h, linux.h, linux64.h,
7602         mingw32.h, netbsd-elf.h, netbsd.h, netbsd64.h, rtemself.h,
7603         sco5.h, sol2.h, sysv3.h, sysv4.h, sysv5.h, uwin.h, vxi386.h,
7604         win32.h (CPP_SPEC): Remove cpp_cpu.
7605         * i386.h (TARGET_CPU_CPP_BUILTINS): Use.
7606         (CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Die!
7607
7608 2002-06-04  Janis Johnson  <janis187@us.ibm.com>
7609
7610         * config/ia64/ia64.c (gen_thread_pointer): Fix variable name.
7611
7612 2002-06-04  Jeff Law <law@redhat.com.
7613             David Edelsohn <edelsohn@gnu.org>
7614             Michael Matz <matz@kde.org>
7615
7616         * sched-int.h (struct deps): New field libcall_block_tail_insn.
7617         * sched_deps.c (init_deps): Initialize libcall_block_tail_insn.
7618         * sched_deps.c (sched_analyze_insn): If libcall_block_tail_insn
7619         is set, then mark the current insn as being part of a libcall
7620         scheduling group.
7621         (sched_analyze): Set and clear libcall_block_tail_insn appropriately.
7622
7623         * haifa-sched.c (schedule_block): Do not count USE or CLOBBER
7624         insns against the issue rate.
7625
7626 Tue Jun  4 19:29:42 CEST 2002  Jan Hubicka  <jh@suse.cz>
7627
7628         * cfglayout.c (duplicate_insn_chain): Kill NOTE_INSN_RANGE notes.
7629         * final.c (final_scan_insn): Likewise.
7630         * ggc-common.c (ggc_mark_rtx_children_1): Likewise; use
7631         NOTE_EXPECTED_VALUE instead of NOTE_RANGE.
7632         * haifa-sched.c (unlink_other_notes): Likeewise.
7633         (reemit_notes): Likewise.
7634         * print-rtl.c (print_rtx): Likewise.
7635         * sched-deps (sched-analyze): Likewise.
7636         * rtl.c (note_insn_name): Likewise.
7637         * rtl.h (NOTE_RANGE_INFO, NOTE_LIVE_INFO): Kill.
7638         (enum insn_note): Kill NOTE_INSN_RANGE_*, NOTE_INSN_LIVE.
7639         (RANGE_*): Kill.
7640
7641 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
7642
7643         * varasm.c (mark_constants): Handle RTX format 'B'.
7644
7645 2002-06-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7646
7647         * cpphash.h (FIRST, LAST, CUR, RLIMIT): New.
7648         (struct cpp_context): Add traditional fields.
7649         * cppmacro.c (paste_all_tokens, push_ptoken_context,
7650         push_token_context, cpp_get_token, _cpp_backup_tokens): Update.
7651         * cpptrad.c (skip_comment, lex_identifier,
7652         _cpp_read_logical_line_trad, scan_out_logical_line): Update.
7653
7654 2002-06-04  Kazu Hirata  <kazu@cs.umass.edu>
7655
7656         * gbl-ctors.h: Fix formatting.
7657         * gcc.c: Likewise.
7658         * gccspec.c: Likewise.
7659         * gcov.c: Likewise.
7660         * gcov-io.h: Likewise.
7661         * gcse.c: Likewise.
7662         * ggc-common.c: Likewise.
7663         * ggc.h: Likewise.
7664         * ggc-page.c: Likewise.
7665         * ggc-simple.c: Likewise.
7666         * global.c: Likewise.
7667         * graph.h: Likewise.
7668         * gthr-dce.h: Likewise.
7669         * gthr.h: Likewise.
7670         * gthr-posix.h: Likewise.
7671         * gthr-rtems.h: Likewise.
7672         * gthr-solaris.h: Likewise.
7673         * gthr-win32.h: Likewise.
7674
7675 2002-06-03  Geoffrey Keating  <geoffk@redhat.com>
7676
7677         Merge from pch-branch:
7678
7679         * gengtype.h (UNION_OR_STRUCT_P): New macro.
7680         * gengtype.c (write_gc_structure_fields): Use it.
7681         (write_gc_root): Use it here too.
7682
7683         * gengtype.c (write_gc_structure_fields): Assume that lengths
7684         of typenames fit into an 'int'; don't pass a size_t to "%d" in
7685         printf.
7686         (write_gc_marker_routine_for_structure): Likewise.
7687         (write_gc_types): Likewise.
7688         (write_gc_root): Likewise.
7689
7690         * varray.h (VARRAY_CLEAR): New.
7691         (varray_clear): Prototype.
7692         * varray.c (varray_clear): New.
7693         * cselib.c (reg_values_old): New.
7694         (used_regs_old): New.
7695         (cselib_init): Use cached varrays if available to avoid
7696         generating large amounts of garbage.
7697         (cselib_finish): Don't throw away old varrays.
7698
7699         * final.c (insn_addresses_): Move out of ifdef.
7700
7701         * varray.c (uses_ggc): Make more varray kinds GCable.
7702         * varray.h (union varray_data_tag): Let gengtype see
7703         fields 'generic' and 'te'.
7704         * reg-stack.c: Include gt-reg-stack.h, ggc.h.
7705         (stack_regs_mentioned_data): Move out of ifdef; mark with gengtype.
7706         (reg_to_stack): Don't call VARRAY_FREE.
7707         * insn-addr.h (INSN_ADDRESSES_FREE): Don't use VARRAY_FREE.
7708         (insn_addresses_): Use gengtype to mark.
7709         * gengtype.c (write_gc_structure_fields): Handle arrays of generic
7710         pointers; handle generic pointers in unused union fields.
7711         (get_output_file_with_visibility): Include cselib.h,
7712         insn-addr.h in gtype-desc.c.
7713         * function.c (prologue): Use gengtype to mark.
7714         (epilogue): Likewise.
7715         (sibcall_epilogue): Likewise.
7716         * dependence.c: Include gt-dependence.h, ggc.h.
7717         (struct def_use): Use gengtype to mark.
7718         (struct loop): Likewise.
7719         (struct induction): Likewise.
7720         (struct dependence): Likewise.
7721         (def_use_chain): Likewise.
7722         (dep_chain): Likewise.
7723         (loop_chain): Likewise.
7724         (induction_chain): Likewise.
7725         (init_dependence_analysis): Don't free anything, just clear pointers.
7726         (build_def_use): Use GGC to allocate def_use.
7727         (add_loop): Use GGC to allocate loop.
7728         (find_induction_variable): Use GGC to allocate induction.
7729         (check_node_dependence): Use GGC to allocate induction, dependence.
7730         (dump_node_dependence): Don't free varrays.
7731         (end_dependence_analysis): Likewise.
7732         * cselib.h (struct cselib_val_struct): Use gengtype to mark.
7733         (struct elt_loc_list): Likewise.
7734         (struct elt_list): Likewise.
7735         * cselib.c: Don't include obstack.h.
7736         (hash_table): Use gengtype to mark.
7737         (reg_values): Use gengtype to mark.
7738         (used_regs): Use gengtype to mark.
7739         (cselib_obstack): Delete.
7740         (cselib_startobj): Delete.
7741         (empty_vals): Mark as deletable.
7742         (empty_elt_lists): Mark as deletable.
7743         (empty_elt_loc_lists): Mark as deletable.
7744         (new_elt_list): Use GGC to allocate struct elt_list.
7745         (new_elt_loc_list): Use GGC to allocate struct elt_loc_list.
7746         (clear_table): Don't delete obstack; don't unnecessarily clear
7747         deletable variables.
7748         (new_cselib_val): Use GGC to allocate struct cselib_val.
7749         (cselib_init): Don't set up obstacks.  Use GGC to allocate
7750         hash table.
7751         (cselib_finish): Just clear variables, don't free anything.
7752         * Makefile.in (cselib.o): Remove dependency on $(OBSTACK_H).
7753         (reg-stack.o): Add dependency on gt-reg-stack.h, $(GGC_H).
7754         (dependence.o): Add dependency on gt-dependence.h, $(GGC_H).
7755         (GTFILES): Add insn-addr.h, cselib.h, dependence.c, reg-stack.c.
7756         (gt-reg-stack.h): New rule.
7757         (gt-dependence.h): New rule.
7758         (gtype-desc.o): Add cselib.h, insn-addr.h.
7759
7760         * varray.c: Use only necessary headers.
7761         (element_size): New.
7762         (uses_ggc): New.
7763         (varray_init): Take type, not size.  Use GGC if appropriate.
7764         (varray_grow): Update for change to struct varray_head_tag.
7765         Use GGC if appropriate.
7766         * varray.h (struct const_equiv_data): Use gengtype.
7767         (enum varray_data_enum): New.
7768         (union varray_data_tag): Use gengtype.
7769         (struct varray_head_tag): Use gengtype.  Replace size field with
7770         enum varray_data_enum.
7771         (varray_init): Update prototype.
7772         (VARRAY_SCHED_INIT): Delete.
7773         (VARRAY_*_INIT): Update for change to varray_init.
7774         (VARRAY_SCHED): Delete.
7775         (VARRAY_PUSH_SCHED): Delete.
7776         (VARRAY_TOP_SCHED): Delete.
7777         * tree.h: Update for change to length specifier.
7778         * tree-inline.c (optimize_inline_calls): Don't use VARRAY_FREE.
7779         (clone_body): Likewise.
7780         * ssa.h (ssa_definition): Use gengtype to mark.
7781         * ssa.c (convert_from_ssa): Don't use VARRAY_FREE.
7782         * ssa-dce.c (ssa_eliminate_dead_code): Don't use VARRAY_FREE.
7783         * rtl.h (struct rtvec_def): Update for change to length specifier.
7784         * integrate.c (expand_inline_function): Don't use VARRAY_FREE.
7785         (struct initial_value_struct): Update for change to length specifier.
7786         * ggc.h (ggc_add_rtx_varray_root): Delete prototype.
7787         (ggc_add_tree_varray_root): Delete prototype.
7788         (ggc_mark_rtx_varray): Delete prototype.
7789         (ggc_mark_tree_varray): Delete prototype.
7790         * ggc-common.c (ggc_add_rtx_varray_root): Delete.
7791         (ggc_add_tree_varray_root): Delete.
7792         (ggc_mark_rtx_varray): Delete.
7793         (ggc_mark_tree_varray): Delete.
7794         (ggc_mark_rtx_varray_ptr): Delete.
7795         (ggc_mark_tree_varray_ptr): Delete.
7796         * gengtype.h (enum typekind): Remove TYPE_VARRAY.
7797         (create_varray): Delete prototype.
7798         * gengtype.c (varrays): Delete.
7799         (create_varray): Delete.
7800         (adjust_field_type): Detect array of string pointers.
7801         (process_gc_options): Remove code to handle varray_type option.
7802         (set_gc_used_type): Remove TYPE_VARRAY case.
7803         (output_escaped_param): New.
7804         (write_gc_structure_fields): Use output_escaped_param on all
7805         parameters.  Handle 'skip' with 'use_param' option.  Handle
7806         arrays of strings.  Remove TYPE_VARRAY handling.
7807         (write_gc_roots): Use boolean to detect 'length' option.
7808         * gengtype-yacc.y (VARRAY_TYPE): Delete token.
7809         (struct_fields): Call adjust_field_type on array fields.
7810         (type): Remove VARRAY_TYPE case.
7811         (type_option): Likewise.
7812         * gengtype-lex.l: Don't consider varray_type a keyword.
7813         * function.h: Update for change to length specifier.
7814         (free_eh_status): Delete prototype.
7815         * function.c (free_after_compilation): Don't call free_eh_status.
7816         (reorder_blocks): Don't use VARRAY_FREE.
7817         * except.c (struct eh_status): Update for change to length specifier.
7818         remove varray_type specifier.
7819         (free_eh_status): Delete.
7820         * dwarf2out.c: Include gt-dwarf2out.h.
7821         (used_rtx_varray): Use gengtype to mark, move
7822         outside ifdefs.
7823         (incomplete_types): Likewise.
7824         (decl_scope_table): Likewise.
7825         (dwarf2out_init): Don't call ggc_add_tree_varray_root.
7826         * cfglayout.c (scope_to_insns_finalize): Don't use VARRAY_FREE.
7827         * c-tree.h (struct lang_type): Update for change to length specifier.
7828         * c-parse.in (yylexstring): Don't use VARRAY_FREE.
7829         * c-objc-common.c: Include gt-c-objc-common.h.
7830         (deferred_fns): Mark for gengtype.
7831         (c_objc_common_init): Don't call ggc_add_tree_varray_root.
7832         (expand_deferred_fns): Just set deferred_fns to 0 to free it.
7833         * Makefile.in (c-objc-common.o): Add gt-c-objc-common.h.
7834         (gtype-desc.o): Update dependencies.
7835         (dwarf2out.o): Add gt-dwarf2out.h.
7836         (varray.o): Update dependencies.
7837         (GTFILES): Add varray.h, ssa.h, dwarf2out.c, c-objc-common.c.
7838         (gt-c-objc-common.h): New rule.
7839         (gt-dwarf2out.h): New rule.
7840         * objc/objc-act.c (build_objc_string_object): Don't use VARRAY_FREE.
7841
7842         * doc/gty.texi (GTY Options): Correct spelling.
7843         (GGC Roots): Likewise.
7844         * Makefile.in (TEXI_CPP_FILES): New.
7845         (TEXI_GCC_FILES): New.
7846         (TEXI_GCCINT_FILES): New.
7847         (TEXI_CPPINT_FILES): New.
7848         ($(docdir)/cpp.info): Use new macros.
7849         ($(docdir)/gcc.info): Likewise.
7850         ($(docdir)/gccint.info): Likewise.
7851         ($(docdir)/cppinternals.info): Likewise.
7852         (cpp.dvi): Likewise.
7853         (gcc.dvi): Likewise.
7854         (gccint.dvi): Likewise.
7855         (cppinternals.dvi): Likewise.
7856
7857         * Makefile.in ($(docdir)/gccint.info): Depend on gty.texi.
7858         * doc/gccint.texi (Top): Include gty.texi.
7859         * doc/gty.texi: New file.
7860
7861         * bitmap.c: Include ggc.h, gt-bitmap.h.
7862         (bitmap_ggc_free): New.
7863         (bitmap_elem_to_freelist): New.
7864         (bitmap_element_free): Use bitmap_elem_to_freelist.
7865         (bitmap_element_allocate): Allow use of GGC.
7866         (bitmap_clear): Use bitmap_elem_to_freelist.
7867         (bitmap_copy): Update for change to bitmap_element_allocate.
7868         (bitmap_set_bit): Likewise.
7869         (bitmap_operation): Update for changes elsewhere.
7870         (bitmap_initialize): Allow to create bitmaps that will use GGC.
7871         * bitmap.h (struct bitmap_element_def): Use gengtype.
7872         (struct bitmap_head_def): Likewise.  Also add 'using_obstack' field.
7873         (bitmap_initialize): Add extra parameter.
7874         (BITMAP_OBSTACK_ALLOC): Update for change to bitmap_initialize.
7875         (BITMAP_ALLOCA): Delete.
7876         (BITMAP_XMALLOC): Update for change to bitmap_initialize.
7877         (BITMAP_GGC_ALLOC): New.
7878         * Makefile.in (gtype-desc.o): Add bitmap.h.
7879         (bitmap.o): Add gt-bitmap.h, $(GGC_H).
7880         (GTFILES): Add bitmap.c.
7881         (gt-bitmap.h): New rule.
7882         ($(HOST_PREFIX_1)bitmap.o): Add gt-bitmap.h.
7883         * basic-block.h: Update for changes to bitmap_initialize.
7884         * except.c (exception_handler_label_map): Move into...
7885         (struct eh_status): Here.
7886         (struct eh_region): Make 'aka' GCable.
7887         (free_eh_status): Don't need to specially handle
7888         exception_handler_label_map.
7889         (add_ehl_entry): Update for changes to exception_handler_label_map.
7890         (find_exception_handler_labels): Likewise.
7891         (remove_exception_handler_label): Likewise.
7892         (maybe_remove_eh_handler): Likewise.
7893         (for_each_eh_label): Likewise.
7894         (remove_eh_handler): Allocate 'aka' using GGC.
7895         * gengtype.c (get_output_file_with_visibility): Add bitmap.h
7896         to list of includes.
7897
7898         * gengtype.c (write_gc_marker_routine_for_structure): Name
7899         the routines 'gt_ggc_mx_*' instead of 'gt_ggc_m_*'.
7900         (write_gc_types): Arrange for the tests with NULL to be inlined.
7901         (write_gc_roots): Update uses of procedure pointers.
7902         * ggc-common.c (gt_ggc_mx_rtx_def): Rename from gt_ggc_m_rtx_def.
7903
7904         * Makefile.in (explow.o): Add dependency on gt-explow.h.
7905         (sdbout.o): Add dependency on gt-sdbout.h.
7906
7907         * emit-rtl.c (const_int_htab): Use gengtype to clear unused entries.
7908         (mem_attrs_htab): Likewise.
7909         (init_emit_once): Don't call ggc_add_deletable_htab.
7910         * fold-const.c (size_htab): Use gengtype to clear unused entries.
7911         (size_int_type_wide): Don't call ggc_add_deletable_htab.
7912         * gengtype.c (finish_root_table): Add LASTNAME and TNAME
7913         parameters, use them, change callers.
7914         (write_gc_root): Add IF_MARKED parameter, use it, change callers.
7915         (write_gc_roots): Handle 'if_marked' option.
7916         (main): Don't need to call set_gc_used_type any more.
7917         * ggc.h (ggc_htab_marked_p): Delete.
7918         (ggc_htab_mark): Delete.
7919         (struct ggc_cache_tab): New.
7920         (gt_ggc_cache_rtab): New declaration.
7921         * ggc-common.c (struct d_htab_root): Delete.
7922         (d_htab_roots): Delete.
7923         (ggc_add_deletable_htab): Delete.
7924         (ggc_htab_delete): Handle new htab-deleting mechanism.
7925         (ggc_mark_roots): Use new htab-deleting mechanism.
7926         * tree.c (type_hash_table): Use gengtype to clear unused entries.
7927         Make static.
7928         (init_obstacks): Don't call ggc_add_deletable_htab.
7929
7930         * objc/objc-act.h (struct hashed_attribute): Use gengtype.
7931         (struct hashed_entry): Likewise.
7932         (nst_method_hash_list): Likewise.
7933         (cls_method_hash_list): Likewise.
7934         (HASH_ALLOC_LIST_SIZE): Delete.
7935         (ATTR_ALLOC_LIST_SIZE): Delete.
7936         * objc/objc-act.c (hash_init): Use ggc to allocate
7937         nst_method_hash_list, cls_method_hash_list.
7938         (hash_enter): Use ggc to allocate; allocate one entry at a time.
7939         (hash_add_attr): Likewise.
7940         (ggc_mark_hash_table): Delete.
7941         (objc_act_parse_init): Delete.
7942         (objc_init): Delete reference to objc_act_parse_init.
7943         * tlink.c: Replace hash.h with hashtab.h.  Explicitly include
7944         obstack.h.  Replace references to 'struct hash_table' with htab_t.
7945         (struct symbol_hash_entry): Replace hash header with key field.
7946         (struct file_hash_entry): Replace hash header with key field.
7947         (struct demangled_hash_entry): Replace hash header with key field.
7948         (hash_string_eq): New.
7949         (hash_string_hash): New.
7950         (symbol_hash_newfunc): Delete.
7951         (symbol_hash_lookup): Modify to use htab_t.
7952         (file_hash_newfunc): Delete.
7953         (file_hash_lookup): Modify to use htab_t.
7954         (demangled_hash_newfunc): Delete.
7955         (demangled_hash_lookup): Modify to use htab_t.
7956         (tlink_init): Modify to use htab_t.
7957         * hash.h: Delete.
7958         * hash.c: Delete.
7959         * ggc.h: Delete forward structure declarations.
7960         Delete prototypes for deleted functions.
7961         * ggc-common.c: Don't include hash.h.
7962         (ggc_add_tree_hash_table_root): Delete.
7963         (ggc_mark_tree_hash_table_entry): Delete.
7964         (ggc_mark_tree_hash_table): Delete.
7965         (ggc_mark_tree_hash_table_ptr): Delete.
7966         * gengtype.c (write_gc_structure_fields): Allow param_is option.
7967         (write_gc_marker_routine_for_structure): Use visibility of
7968         the parameter if there is one.
7969         * function.c: Replace hash.h with hashtab.h.  Replace references
7970         to 'struct hash_table *' with htab_t.
7971         (struct insns_for_mem_entry): Include a plain key.
7972         (fixup_var_refs_insns_with_hash): Update to use htab_t.
7973         (insns_for_mem_newfunc): Delete.
7974         (insns_for_mem_hash): Update to use htab_t.
7975         (insns_for_mem_comp): Likewise.
7976         (insns_for_mem_walk): Likewise.
7977         * c-lang.c: Include ggc.h.
7978         * Makefile.in (OBJS): Remove hash.o.
7979         (c-lang.o): Add GGC_H.
7980         (COLLECT2_OBJS): Remove hash.o.
7981         (tlink.o): Remove hash.h, add HASHTAB_H and OBSTACK_H.
7982         (ggc-common.o): Remove hash.h.
7983         (function.o): Remove hash.h, add HASHTAB_H.
7984         (genautomata.o): Remove hash.h, add HASHTAB_H.
7985
7986         * varasm.c (mark_const_str_htab_1): Delete.
7987         (mark_const_str_htab): Delete.
7988         (const_str_htab_del): Delete.
7989         (const_str_htab): Use gengtype to mark.
7990         (init_varasm_once): Use gengtype to mark hashtables.  Use GC to
7991         allocate them.
7992         * tree.c (mark_tree_hashtable_entry): Delete.
7993         (mark_tree_hashtable): Delete.
7994         * tree.h (mark_tree_hashtable): Delete prototype.
7995         * ggc.h (ggc_test_and_set_mark): Treat (void *)1 like NULL.
7996         (ggc_mark): Likewise.
7997         (ggc_calloc): New.
7998         (htab_create_ggc): New.
7999         * ggc-common.c (ggc_calloc): New.
8000         * gengtype.h (enum typekind): Add TYPE_PARAM_STRUCT.
8001         (struct type): Add param_struct structure.
8002         * gengtype.c (param_structs): New.
8003         (adjust_field_type): Handle param_is option.
8004         (set_gc_used_type): Handle TYPE_PARAM_STRUCT.
8005         (get_output_file_with_visibility): Include hashtab.h in gtype-desc.c.
8006         (write_gc_structure_fields): Add new PARAM parameter.  Update
8007         callers.  Handle use_param option.  Handle TYPE_PARAM_STRUCT.
8008         (write_gc_marker_routine_for_structure): Add new PARAM parameter.
8009         Use it to generate function name.  Update callers.
8010         (write_gc_types): Add new PARAM_STRUCTS parameter.  Update callers.
8011         Process them.
8012         (write_gc_roots): Handle TYPE_PARAM_STRUCT.  Allow param_is
8013         option.
8014         (main): Define PTR as pointer-to-scalar.  Don't specially
8015         mark deferred_string or ehl_map_entry.
8016         * gengtype-yacc.y (PARAM_IS): Add new token.
8017         (externstatic): Use adjust_field_type.
8018         (type_option): Add PARAM_IS.
8019         * gengtype-lex.l: Add rule for typedef of function pointers.
8020         Add rule for PARAM_IS.
8021         (IWORD): Add size_t.
8022         * except.c (exception_handler_label_map): Use gengtype to mark.
8023         (type_to_runtime_map): Likewise.
8024         (mark_ehl_map_entry): Delete.
8025         (mark_ehl_map): Delete.
8026         (init_eh): Use gengtype for roots; use GC to allocate hash tables.
8027         (t2r_mark_1): Delete.
8028         (t2r_mark): Delete.
8029         * Makefile.in (gtype-desc.o): Correct dependencies.
8030         (GTFILES): Add hashtab.h.
8031         (genautomata.o): Actually uses hashtab.h.
8032
8033         * Makefile.in (stringpool.o): Add $(GGC_H).
8034         (dwarf2asm.o): Likewise.
8035         (GTFILES): Add hashtable.h.
8036         * c-common.h (struct c_common_identifier): Use gengtype.
8037         * c-decl.h (c_mark_tree): Delete.
8038         * c-lang.c (LANG_HOOKS_MARK_TREE): Delete.
8039         * c-tree.h (struct lang_identifier): Use gengtype.
8040         (union lang_tree_node): New.
8041         (c_mark_tree): Delete prototype.
8042         * dwarf2out.c [!DWARF2_DEBUGGING_INFO]: Define dummy
8043         dwarf2_debug_hooks.
8044         * gengtype-lex.l (IWORD): Allow 'bool'.
8045         (ptr_alias): Match.
8046         * gengtype-yacc.y (ALIAS): New token.
8047         (type_option): New rule.
8048         (option): Use type_option.
8049         * gengtype.c (process_gc_options): New.
8050         (set_gc_used_type): Use it.
8051         (write_gc_structure_fields): Add 'bitmap' parameter, change callers.
8052         Add new variable 't' to hold the type of the field being processed.
8053         Add more error checking.  Use UNION_P when looking at 'desc' option.
8054         Handle language-specific structures containing other
8055         language-specific structures.
8056         (write_gc_types): Handle 'ptr_alias' option.
8057         (main): Don't need to specially output lang_type, lang_decl, lang_id2.
8058         * ggc-common.c (ggc_pending_trees): Delete.
8059         (ggc_mark_roots): Don't manipulate ggc_pending_trees.
8060         (ggc_mark_trees): Delete.
8061         (gt_ggc_m_tree_node): Delete.
8062         * ggc.h (ggc_pending_trees): Delete.
8063         (ggc_mark_tree): Make alias of gt_ggc_m_tree_node.
8064         * hashtable.h (ht_identifier): Use gengtype.
8065         * langhooks-def.h (LANG_HOOKS_MARK_TREE): Delete.
8066         * langhooks.h (struct lang_hooks): Delete mark_tree.
8067         * sdbout.c [! SDB_DEBUGGING_INFO]: Define dummy sdb_debug_hooks
8068         anyway.
8069         * system.h: Poison LANG_HOOKS_MARK_TREE.
8070         * tree.c (tree_node_structure): New.
8071         * tree.h (struct tree_common): Use gengtype.
8072         (struct tree_int_cst): Likewise.
8073         (struct tree_real_cst): Likewise.
8074         (struct tree_string): Likewise.
8075         (struct tree_complex): Likewise.
8076         (struct tree_vector): Likewise.
8077         (struct tree_identifier): Likewise.
8078         (struct tree_list): Likewise.
8079         (struct tree_vec): Likewise.
8080         (struct tree_exp): Likewise.
8081         (struct tree_block): Likewise.
8082         (struct tree_type): Likewise.
8083         (struct tree_decl): Likewise.
8084         (enum tree_structure_enum): New.
8085         (union tree_node): Use gengtype, with an alias.
8086         (tree_node_structure): Prototype.
8087         * objc/objc-lang.c (LANG_HOOKS_MARK_TREE): Delete.
8088
8089         Merge to tag pch-merge-20020430.  The LANG_HOOKS_FUNCTION_MARK
8090         macro was deleted.  The LANG_HOOKS_FUNCTION_FREE macro was renamed
8091         to LANG_HOOKS_FUNCTION_FINAL.
8092         * Makefile.in (GTFILES): Add bitmap.h.
8093         * except.c (struct eh_region): Mark field 'aka' to be skipped.
8094
8095         * config/alpha/alpha.c [TARGET_ABI_UNICOSMK]
8096         (alpha_init_machine_status): Give proper type.
8097         * Makefile.in (c-lang.o): Depend on gtype-c.h.
8098         (optabs.o): Depend on gt-optabs.h.
8099         (GTFILES): Add optabs.o.
8100         (gt-optabs.h): Add rule.
8101         * optabs.c: Include gt-optabs.h.
8102
8103         * gengtype.c (set_gc_used_type): Correct some errors in last change.
8104         (write_gc_structure_fields): If a field which should be NULL is
8105         not, abort.
8106         * c-pragma.c: Move struct align_stack and variable alignment_stack
8107         out from the ifdef.
8108
8109         * config/xtensa/t-xtensa: Add dependencies for gt-xtensa.h.
8110         * config/xtensa/xtensa.c: Include gt-cris.h.
8111         (struct machine_function): Use gengtype to mark.
8112         * config/mmix/mmix.h (struct machine_function): Use gengtype
8113         to mark.
8114         * config/cris/t-cris: Add dependencies for gt-cris.h.
8115         * config/cris/cris.c: Include gt-cris.h.
8116         (struct machine_function): Use gengtype to mark.
8117         * config/rs6000/rs6000.h (struct machine_function): Use gengtype
8118         to mark.
8119         * doc/tm.texi (Per-Function Data): Delete references to
8120         mark_machine_status.
8121         * config/ia64/ia64.c (ia64_override_options): Don't set
8122         mark_machine_status.
8123         * config/i386/i386.c (override_options): Likewise.
8124         * config/d30v/d30v.c (d30v_init_expanders): Likewise.
8125         * config/arm/arm.c (arm_init_expanders): Likewise.
8126         * config/alpha/alpha.c (override_options): Likewise.
8127         * gengtype.h (enum gc_used_enum): Add GC_MAYBE_POINTED_TO.
8128         * gengtype.c (set_gc_used_type): Handle 'maybe_null' option.
8129         (write_gc_structure_fields): Don't handle 'really' option.
8130         Handle 'maybe_null' option.
8131         (write_gc_types): Handle 'maybe_null' option.
8132         * function.h (struct function): Don't use "really".
8133         (mark_machine_status): Delete declaration.
8134         (mark_lang_status): Delete declaration.
8135         (gt_ggc_mr_machine_function): Delete prototype.
8136         (gt_ggc_mr_language_function): Delete prototype.
8137         * function.c (mark_machine_status): Delete.
8138         (mark_lang_status): Delete.
8139         (gt_ggc_mr_machine_function): Delete.
8140         (gt_ggc_mr_language_function): Delete.
8141         * c-tree.h (mark_c_function_context): Delete prototype.
8142         * c-objc-common.c (c_objc_common_init): Don't set mark_lang_status.
8143         * c-decl.c (struct language_function): Rename from struct
8144         c_language_function.  Update uses.  Use gengtype to mark.
8145         (mark_c_function_context): Delete.
8146         * c-common.h (struct c_language_function): Rename from struct
8147         language_function.
8148         (mark_stmt_tree): Delete prototype.
8149         (c_mark_lang_decl): Delete prototype.
8150         (mark_c_language_function): Delete prototype.
8151         * c-common.c (mark_stmt_tree): Delete.
8152         (c_mark_lang_decl): Delete.
8153         (mark_c_language_function): Delete.
8154
8155         * gengtype.h (enum typekind): Add TYPE_LANG_STRUCT.
8156         (lang_bitmap): New typedef.  Use where appropriate.
8157         (struct type): Add gc_used field, lang_struct field.
8158         (UNION_P): New macro.
8159         (new_structure): New prototype.
8160         (find_structure): Remove 'pos' parameter.  Change all callers.
8161         * gengtype-lex.l: Update for changes to find_structure.
8162         * gengtype-yacc.y (typedef_struct): Use new_structure.
8163         (yacc_ids): Suppress warning.
8164         (type): Use new_structure.
8165         * gengtype.c (string_type): Update for changes to struct type.
8166         (find_structure): Just find a structure, don't worry about
8167         creating one.
8168         (new_structure): New.
8169         (note_yacc_type): Use new_structure.
8170         (set_gc_used_type): New.
8171         (set_gc_used): New.
8172         (write_gc_structure_fields): Allow for pointers to TYPE_LANG_STRUCT.
8173         (write_gc_types): Handle TYPE_LANG_STRUCT.
8174         (write_gc_marker_routine_for_structure): New.
8175         (main): Call set_gc_used.  Add some calls to set_gc_used_type
8176         for places where GCC doesn't use gengtype properly yet.
8177         * ggc.h (gt_ggc_m_rtx_def): Don't prototype.
8178         (gt_ggc_m_tree_node): Likewise.
8179
8180         * varasm.c (copy_constant): Call expand_constant if we hit
8181         something we can't recognise.
8182
8183         * ggc-common.c (ggc_mark_rtvec_children): Delete.
8184         (ggc_mark_rtx_children): Use generic name for ggc_mark_rtvec.
8185         (lang_mark_false_label_stack): Delete.
8186         * rtl.h (struct rtvec_def): Use gengtype to mark.
8187         * ggc.h (ggc_mark_rtvec): Delete.
8188         (gt_ggc_m_rtvec_def): Delete.
8189         (ggc_mark_nonnull_tree): Delete.
8190         (ggc_mark_rtvec_children): Delete prototype.
8191         (lang_mark_false_label_stack): Delete declaration.
8192
8193         * gengtype.h (note_yacc_type): Add prototype.
8194         * gengtype.c (note_yacc_type): New function.
8195         * gengtype-lex.l: Add lexer support for yacc files.
8196         * gengtype-yacc.y (start): Extract union from yacc files.
8197         (yacc_union): New rule.
8198         (yacc_typematch): New rule.
8199         (yacc_ids): New rule.
8200         (enum_items): Tweak for efficiency.
8201         (optionseq): Likewise.
8202
8203         * c-common.h (struct language_function): Use gengtype.
8204         (struct c_lang_decl): Likewise.
8205         * c-tree.h (struct lang_decl): Likewise.
8206         (struct lang_type): Likewise.
8207         * c-decl.c (lang_mark_tree): Use generated marker routines to mark
8208         tree language substructures.
8209
8210         * stringpool.c (mark_ident): Replace ggc_mark_nonnull_tree with
8211         ggc_mark_tree.
8212         * dwarf2asm.c (mark_indirect_pool_entry): Likewise.
8213
8214         * varasm.c (struct rtx_const): Remove 'skip' tags for scalar arrays.
8215
8216         * stmt.c (struct nesting): Add discriminator.  Use gengtype to
8217         mark. Remove 'data.block.cleanup_ptr' field.
8218         (struct stmt_status): Use usual technique to mark struct nesting.
8219         (gt_ggc_mr_nesting_cond): Delete.
8220         (gt_ggc_mr_nesting_loop): Delete.
8221         (gt_ggc_mr_nesting_block): Delete.
8222         (gt_ggc_mr_nesting_case_stmt): Delete.
8223         (expand_start_cond): Set discriminator.
8224         (expand_start_loop): Likewise.
8225         (expand_start_null_loop): Likewise.
8226         (expand_start_bindings_and_block): Set discriminator.  Don't set
8227         deleted fields.
8228         (expand_decl_cleanup): Replace 'cleanup_ptr' with
8229         &thisblock->data.block.cleanups.
8230         (expand_start_case): Set discriminator.
8231         (expand_start_case_dummy): Set discriminator.
8232
8233         * ggc-callbacks.c: Remove.
8234
8235         * gengtype.h (struct type): Add 'u.s.bitmap' field.
8236         (find_structure): Add 'pos' parameter.
8237         * gengtype-lex.l: Update callers to find_structure.
8238         * gengtype-yacc.y: Likewise.
8239         * gengtype.c (find_structure): Allow for structures to be defined
8240         in multiple language backends.
8241         (get_output_file_with_visibility): Include debug.h in gtype-desc.c.
8242         (counter): Rename to gc_counter.
8243         (write_gc_structure_fields): Fail when writing out fields for
8244         an incomplete structure.  Ignore arrays of scalars.  Handle
8245         'tree_vec' special.
8246         (write_gc_types): Reset counter for each procedure written.
8247
8248         * stmt.c (add_case_node): Use GGC to allocate struct case_node.
8249         (free_case_nodes): Delete.
8250         (expand_end_case_type): Delete call to free_case_nodes.
8251
8252         * Makefile.in (cselib.o): Include gt-<filename>.h.
8253         (gcse.o): Likewise.
8254         (profile.o): Likewise.
8255         (alias.o): Likewise.
8256         (GTFILES): Add alias.c, cselib.c, gcse.c, profile.c, and
8257         alphabetize backend files.
8258         (gt-alias.h, gt-cselib.h, gt-gcse.h, gt-profile.h): New rules.
8259         * alias.c: Use gengtype for roots.
8260         * c-common.h (struct stmt_tree_s): Use gengtype.
8261         * c-decl.c: Use gengtype for roots.
8262         * cselib.c: Use gengtype for roots.
8263         * expr.c: Use gengtype for roots.
8264         * fold-const.c: Use gengtype for roots.
8265         * gcse.c: Use gengtype for roots.
8266         * gengtype-lex.l: Handle typedefs of function types.
8267         Allow for empty array bounds.
8268         Allow processing to stop on initialisers.
8269         * gengtype-yacc.y (externstatic): Stop processing on initialisers.
8270         (semiequal): New rule.
8271         * gengtype.c (create_file): Tidy output files.
8272         (get_output_file_with_visibility): Fix paren warning.  Fix bug
8273         involving multiple input files mapping to one output file.
8274         (write_gc_structure_fields): Skip arrays of scalars.
8275         (write_gc_types): Tidy output files.
8276         (write_gc_root): New function.
8277         (write_gc_roots): Fix bugs, add support for roots that are
8278         structures.
8279         * ggc-common.c (ggc_mark_rtx_ptr): Delete.
8280         (ggc_mark_tree_ptr): Delete.
8281         (ggc_add_rtx_root): Delete.
8282         (ggc_add_tree_root): Delete.
8283         (ggc_del_root): Delete.
8284         * integrate.c (get_func_hard_reg_initial_val): Use ggc_alloc to
8285         allocate struct initial_value_struct.
8286         * profile.c: Use gengtype for roots.
8287         * sdbout.c: Use gengtype for roots.
8288         * varasm.c (mark_weak_decls): Delete unused prototype.
8289         (mark_const_hash_entry): Delete unused function.
8290         * config/darwin-protos.h: Use gengtype for roots.
8291         (machopic_add_gc_roots): Delete.
8292         * config/arm/arm.c: Use gengtype for roots.
8293         * config/arm/arm.h: Use gengtype for roots.
8294         * config/c4x/c4x-protos.h: Use gengtype for roots.
8295         * config/c4x/c4x.c (c4x_add_gc_roots): Delete.
8296         * config/d30v/d30v-protos.h: Use gengtype for roots.
8297         * config/d30v/d30v.c (d30v_add_gc_roots): Delete.
8298         * config/dsp16xx/dsp16xx.c (override_options): Use gengtype for roots.
8299         * config/dsp16xx/dsp16xx.h: Use gengtype for roots.
8300         * config/ia64/ia64-protos.h: Use gengtype for roots.
8301         * config/ia64/ia64.c (ia64_add_gc_roots): Delete.
8302         * config/m68hc11/m68hc11-protos.h: Use gengtype for roots.
8303         * config/m68hc11/m68hc11.c (z_reg): Make global.
8304         (z_reg_qi): Make global.
8305         (m68hc11_add_gc_roots): Delete.
8306         * config/mcore/mcore-protos.h: Use gengtype for roots.
8307         * config/mcore/mcore.c (mcore_add_gc_roots): Delete.
8308         * config/mips/mips.c (mips_add_gc_roots): Delete.
8309         * config/mips/mips.h: Use gengtype for roots.
8310         * config/mmix/mmix.c (override_options): Use gengtype for roots.
8311         * config/mmix/mmix.h: Use gengtype for roots.
8312         * config/mn10200/mn10200.c (asm_file_start): Use gengtype for roots.
8313         * config/mn10200/mn10200.h: Use gengtype for roots.
8314         * config/pa/pa.c: Use gengtype for roots, marking.
8315         (struct deferred_plabel): Use GGC, gengtype.
8316         (pa_add_gc_roots): Delete.
8317         (mark_deferred_plabels): Delete.
8318         * config/pj/pj-protos.h: Use gengtype for roots.
8319         * config/pj/pj.h (OVERRIDE_OPTIONS): Don't define.
8320         * config/rs6000/rs6000.c: Use gengtype for roots.  Don't call
8321         machopic_add_gc_roots.
8322         * config/rs6000/rs6000.h: Use gengtype for roots.
8323         * config/rs6000/t-darwin (darwin.o): Add dependency on gt-darwin.h.
8324         (gt-darwin.h): Add rule.
8325         * config/sh/sh.c: Use gengtype for roots.
8326         * config/sh/t-sh ($(out_object_file)): Add dependency on gt-sh.h.
8327         (gt-sh.h): Add rule.
8328         * config/sparc/sparc.c: Use gengtype for roots.
8329         (sparc_add_gc_roots): Delete.
8330         (struct ultrasparc_pipeline_state): Use GGC, gengtype.
8331         (mark_ultrasparc_pipeline_state): Delete.
8332         * config/sparc/sparc.h: Use gengtype for roots.
8333
8334         * Makefile.in (c-parse.o): Update dependencies.
8335         (c-common.o): Likewise.
8336         (GTFILES): Add c-common.h, c-tree.h, c-common.c, c-parse.in.
8337         Add dependencies for the files they generate.
8338         * c-common.c: Replace ggc_add_* uses with GTY annotations.
8339         * c-common.h: Likewise.
8340         * c-decl.c: Likewise.
8341         (gt_ggc_mp_binding_level): Delete.
8342         * c-lang.c: Include gtype-c.h.
8343         * c-parse.in: Replace ggc_add_* uses with GTY annotations.  Include
8344         gt-c-parse.h.
8345         * c-pragma.h: Replace ggc_add_* uses with GTY annotations.
8346         (gt_ggc_mp_align_stack): Delete.
8347         * c-tree.h: Replace ggc_add_* uses with GTY annotations.
8348         * function.c: Replace ggc_add_* uses with GTY annotations.
8349         (gt_ggc_mp_function): Delete.
8350         * function.h: Replace ggc_add_* uses with GTY annotations.
8351         * gengtype.c (lang_names): New.
8352         (NUM_BASE_FILES): New.
8353         (open_base_files): Create language base files.
8354         (startswith): New.
8355         (get_file_basename): New.
8356         (get_base_file_bitmap): New.
8357         (get_output_file_with_visibility): Rename from get_output_file.
8358         Add more mappings for various C/Objc filenames.
8359         (finish_root_table): New.
8360         (write_gc_roots): Handle dependencies and scoping properly.
8361         * gengtype.h: Add prototypes for new functions.
8362         * ggc-common.c (struct deletable_root): Delete.
8363         (deletables): Delete.
8364         (ggc_add_deletable_root): Delete.
8365         (ggc_mark_roots): No need to deal with deleted functionality.
8366         * ggc.h (ggc_add_deletable_root): Delete prototype.
8367         * objc/Make-lang.in (objc-act.o): Add gtype-objc.h dependency.
8368         (gtype-objc.h): Add rule to create.
8369         * objc/config-lang.in (gtfiles): New.
8370         * objc/objc-act.c: Allocate imp_list using GGC.  Replace uses of
8371         ggc_add_* with GTY markers.  Include gtype-objc.h.
8372         (ggc_mark_imp_list): Delete.
8373         * objc/objc-act.h: Replace uses of ggc_add_* with GTY markers.
8374         * objc/objc-lang.c: Random Whitespace Change.
8375
8376         * except.h (exception_handler_labels): Delete.
8377         (get_exception_handler_labels): New.
8378         * except.c (exception_handler_labels): Delete.
8379         (struct eh_status): Add exception_handler_labels field.
8380         (doing_eh): Don't add exception_handler_labels as root.
8381         (free_eh_status): Don't need to free exception_handler_labels.
8382         (get_exception_handler_labels): New.
8383         (find_exception_handler_labels): Update for move of
8384         exception_handler_labels.
8385         (remove_exception_handler_label): Likewise.
8386         * cfgrtl.c (can_delete_label_p): Use get_exception_handler_labels.
8387         * jump.c (rebuild_jump_labels): Likewise.
8388         * loop.c (find_and_verify_loops): Likewise.
8389         * sched-rgn.c (is_cfg_nonregular): Likewise.
8390
8391         * gengtype.c (write_gc_structure_fields): Handle variable-length
8392         TYPE_ARRAYs.
8393
8394         * varasm.c (struct weak_syms): Use GGC, gengtype.
8395         (mark_weak_decls): Delete.
8396         (weak_decls): Likewise.
8397         (add_weak): Likewise.
8398         (remove_from_pending_weak_list): Likewise.
8399         (init_varasm_once): Likewise.
8400
8401         * Makefile.in (gtype-desc.o): Add libfuncs.h dependency.
8402         (GTFILES): Add tree.h, libfuncs.h, emit-rtl.c, explow.c,
8403         stor-layout.c, regclass.c, and lists.c.
8404         Add dependencies of gt-emit-rtl.h gt-explow.h gt-stor-layout.h
8405         gt-regclass.h and gt-lists.h on s-gtype.
8406         * emit-rtl.c: Use gengtype for roots.  Include gt-emit-rtl.h.
8407         * except.c: Use gengtype for roots.
8408         * explow.c: Use gengtype for roots.  Include gt-explow.h.
8409         * expr.h (init_stor_layout_once): Delete prototype.
8410         * function.c: Use gengtype for roots.
8411         * gengtype-lex.l: Add ENT_EXTERNSTATIC lexing.
8412         * gengtype-yacc.y (start): Can also be an externstatic.
8413         (externstatic): New production.
8414         (struct_fields): Correct array bounds inversion for 2-d arrays.
8415         * gengtype.c (variables): New variable.
8416         (note_variable): New function.
8417         (get_output_file): Include libfuncs.h into gtype-desc.c.
8418         (get_output_file_name): New function.
8419         (write_gc_structure_fields): Suppress warnings.
8420         (write_gc_types): Make static.
8421         (put_mangled_filename): New function.
8422         (write_gc_roots): New function.
8423         (main): Call write_gc_roots.
8424         * gengtype.h (note_variable): Prototype.
8425         (get_output_file_name): Prototype.
8426         (write_gc_types): Delete prototype.
8427         * ggc.h: Clean up unnecessary structure predefinitions.
8428         (struct ggc_root_tab): Define.
8429         (gt_ggc_m_rtx_def): Make function, not macro.
8430         (gt_ggc_m_tree_node): Likewise.
8431         * libfuncs.h: Use gengtype for roots.
8432         * lists.c: Use gengtype for roots.  Include gt-lists.h.
8433         (init_EXPR_INSN_LIST_cache): Delete.
8434         * optabs.c: Use gengtype for roots.
8435         (gt_ggc_mp_optab): Delete.
8436         * optabs.h: Use gengtype for roots.
8437         * regclass.c: Use gengtype for roots.  Include gt-regclass.h.
8438         * rtl.h: Use gengtype for roots.
8439         (init_EXPR_INSN_LIST_cache): Delete prototype.
8440         * stor-layout.c: Use gengtype for roots.
8441         Include gt-stor-layout.h.
8442         (init_stor_layout_once): Delete.
8443         * toplev.c: Use gengtype for roots.  Delete calls to deleted
8444         routines.
8445         * tree.c: Use gengtype for roots.
8446         * tree.h: Use gengtype for roots.
8447         * varasm.c: Use gengtype for roots.
8448
8449         * Makefile.in (GTFILES): Add @all_gtfiles@.
8450         * configure: Regenerate.
8451         * configure.in: Construct all_gtfiles from the gtfiles definitions
8452         in config-lang.in.
8453         * gengtype-yacc.y (type): Warn about duplicate structure names.
8454         * gengtype.c (get_output_file): Handle .c files in language
8455         subdirectories.
8456
8457         * Makefile.in (GTFILES): Run gengtype on all the config files
8458         and on the target .c file.
8459         * except.c (mark_eh_region): Delete.
8460         (init_eh_for_function): Use GGC on struct eh_status.
8461         (mark_eh_status): Delete.
8462         (free_eh_status): Use GGC.
8463         (expand_eh_region_start): Use GGC to
8464         (collect_eh_region_array): Allocate last_region_number using GGC.
8465         (duplicate_eh_region_1): Use GGC to allocate struct eh_region.
8466         (remove_eh_handler): Let GGC free struct eh_region.
8467         (add_call_site): Use GGC to reallocate call_site_record array.
8468         * function.c (init_machine_status): Update calling sequence.
8469         (mark_machine_status): Likewise.
8470         (mark_lang_status): Likewise.
8471         (prepare_function_start): Update init_machine_status call.
8472         (mark_function_status): Delete.
8473         (maybe_mark_struct_function): Delete.
8474         (ggc_mark_struct_function): Delete.
8475         (gt_ggc_mp_function): New.
8476         (gt_ggc_mr_machine_function): New.
8477         (gt_ggc_mr_language_function): New.
8478         (init_function_once): Use canonical names.
8479         * function.h (struct function): Use gengtype.
8480         (init_machine_status): Return the structure.
8481         (mark_machine_status): Take a 'void *'.
8482         (mark_lang_status): Likewise.
8483         * ggc-common.c (ggc_mark_trees): Use canonical name for
8484         ggc_mark_struct_function.
8485         * tree.h (ggc_mark_struct_function): Delete prototype.
8486         * config/alpha/alpha.c (alpha_mark_machine_status): Delete.
8487         (alpha_init_machine_status): Likewise.
8488         (override_options): Use canonical name for alpha_mark_machine_status.
8489         * config/alpha/unicosmk.h (struct machine_function): Use gengtype.
8490         * config/arm/arm.h (struct machine_function): Use gengtype.
8491         * config/arm/arm.c (arm_mark_machine_status): Delete.
8492         (arm_init_machine_status): Update calling sequence.
8493         (arm_init_expanders): Use canonical name for arm_mark_machine_status.
8494         * config/cris/cris.c (cris_init_machine_status): Update
8495         calling sequence.
8496         * config/d30v/d30v.h (struct machine_function): Use gengtype.
8497         * config/d30v/d30v.c (d30v_init_machine_status): Update
8498         calling sequence.
8499         (d30v_mark_machine_status): Delete.
8500         * config/i386/i386.c: Include gt-i386.h.
8501         (struct machine_function): Use gengtype.
8502         (ix86_init_machine_status): Update calling sequence.
8503         (ix86_mark_machine_status): Delete.
8504         (override_options): Use canonical namke for ix86_mark_machine_status.
8505         * config/ia64/ia64.h (struct machine_function): Use gengtype.
8506         * config/ia64/ia64.c (ia64_init_machine_status): Update calling
8507         sequence.
8508         (ia64_mark_machine_status): Delete.
8509         (ia64_override_options): Use canonical name for
8510         ia64_mark_machine_status.
8511         * config/mmix/mmix.c (mmix_init_machine_status): Update calling
8512         sequence.
8513         * config/rs6000/rs6000.c (rs6000_init_machine_status): Likewise.
8514         * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
8515         * gengtype.c (get_output_file): Fix warning.
8516         (main): Add prototype to suppress warning.
8517         * tree.c: Remove tree_hash_mark prototype.
8518
8519         * tree.h (init_stmt): Delete prototype.
8520         * toplev.c (lang_independent_init): Don't call init_stmt.
8521         * stmt.c (ALLOC_NESTING): Use GGC for 'struct nesting'.
8522         (stmt_obstack): Delete.
8523         (POPSTACK): No need to free 'struct nesting'.
8524         (gt_ggc_mr_nesting_cond): Use canonical names.
8525         (gt_ggc_mr_nesting_loop): Use canonical names.
8526         (gt_ggc_mr_nesting_block): Use canonical names.
8527         (gt_ggc_mr_nesting_case_stmt): Use canonical names.
8528         (mark_stmt_status): Delete.
8529         (init_stmt): Delete.
8530         (clear_last_expr): Clear both last_expr_type and last_expr_value.
8531         Use it everywhere that last_expr_type was cleared.
8532         * lists.c (init_EXPR_INSN_LIST_cache): Use ggc_add_deletable_root.
8533         (zap_lists): Delete.
8534         * ggc.h (ggc_add_deletable_root): Prototype.
8535         (mark_stmt_status): Remove prototype.
8536         * ggc-common.c (ggc_add_deletable_root): New.
8537         (ggc_mark_roots): Handle deletable roots.
8538         * function.c (ggc_mark_struct_function): Use canonical name
8539         for mark_stmt_status.
8540         * emit-rtl.c (free_sequence_stack): New.
8541         (start_sequence): Use a freelist for sequences.
8542         (end_sequence): Likewise.
8543         (init_emit_once): Add free_sequence_stack as a deleteable root.
8544         * c-pragma.c Include gt-c-pragma.h.
8545         (struct align_stack): Use gengtype.
8546         (push_alignment): Use GGC for struct align_stack.
8547         (mark_align_stack): Delete.
8548         (gt_ggc_mp_align_stack): New.
8549         (init_pragma): Use canonical name for mark_align_stack.
8550         * c-decl.c: Include gt-c-decl.h.
8551         (struct binding_level): Use gengtype.
8552         (make_binding_level): Use GGC; handle the freelist here.
8553         (pop_binding_level): New.
8554         (pushlevel): Move code into make_binding_level.
8555         (push_label_level): Likewise.
8556         (poplevel): Move code into pop_binding_level.
8557         (pop_label_level): Likewise.
8558         (mark_binding_level): Delete.
8559         (gt_ggc_mp_binding_level): New.
8560         (c_init_decl_processing): Use canonical name for mark_binding_level.
8561         Add free_binding_level as deletable root.
8562         (mark_c_function_context): Use canonical name for mark_binding_level.
8563         * Makefile.in (c-decl.o): Add gt-c-decl.h.
8564         (c-pragma.o): Add gt-c-pragma.h.
8565         (GTFILES): Add c-decl.c and c-pragma.c.
8566         (gt-c-decl.h, gt-c-pragma.h): Create using gengtype.
8567
8568         * tree.c (struct type_hash): Use gengtype.
8569         (init_obstacks): Use canonical name for type_hash_mark.
8570         (type_hash_mark): Delete.
8571         Include gt-tree.h.
8572         * rtl.h (struct mem_attrs): Use gengtype.
8573         * optabs.h (struct optab): Use gengtype.
8574         * optabs.c (expand_binop): Squish signed/unsigned warning.
8575         (mark_optab): Make local, use canonical name, use autogenerated
8576         marker procedure.
8577         (init_optabs): Use canonical name for mark_optab.
8578         (new_optab): Use GGC to allocate optabs.
8579         * ggc.h: Delete mark_optab prototype.
8580         * ggc-common.c (ggc_mark_rtx_children): Use canonical name for
8581         mem_attrs marker procedure.
8582         * gengtype.c (get_output_file): Include headers in gtype-desc.c
8583         explicitly rather than deducing them from file names.
8584         (write_gc_structure_fields): Handle arrays of structures.
8585         (main): Return non-zero exit code if errors occur during output.
8586         * emit-rtl.c (mem_attrs_mark): Delete.
8587         (init_emit_once): Use canonical name for mem_attrs marker procedure.
8588         * Makefile.in (gtype-desc.o): Explicitly name dependencies.
8589         (tree.o): Depend on gt-tree.h.
8590         (GTFILES): Add rtl.h, optabs.h, tree.c.
8591         (gt-tree.h): Add it to s-gtype rule.
8592
8593         * .cvsignore: Ignore gengtype flex/bison generated files.
8594         * Makefile.in (GGC_H): Add gtype-desc.h.
8595         (OBJS): Add gtype-desc.o.
8596         (GEN): Add gengtype.
8597         (STAGESTUFF): Add gengtype.
8598         (varasm.o): Add gt-varasm.h.
8599         (stmt.o): Add gt-stmt.h.
8600         (except.o): Add gt-except.h.
8601         (integrate.o): Add gt-integrate.h.
8602         (GTFILES): New.
8603         Add new rules for new files.
8604         * configure: Regenerate.
8605         * configure.in: Correct defaults.h paths.
8606         * emit-rtl.c (mark_sequence_stack): Delete.
8607         (mark_emit_status): Delete.
8608         (start_sequence): Allocate sequence structures using GGC.
8609         (end_sequence): Allocate sequence structures using GGC.
8610         * except.c: Use gengtype for various structures.  Include
8611         gt-except.h.
8612         * expr.c (mark_expr_status): Delete.
8613         * function.c: Use gengtype for various structures.  Include
8614         gt-function.h.
8615         (mark_function_status): Use standard gt_ggc names for marker functions.
8616         (ggc_mark_struct_function): Likewise.
8617         * function.h: Use gengtype for various structures.
8618         * gengtype-lex.l: New file.
8619         * gengtype-yacc.y: New file.
8620         * gengtype.c: New file.
8621         * gengtype.h: New file.
8622         * ggc.h: Include gtype-desc.h.  Alias some marker procedures to
8623         the standard names.  Remove some now-unnecessary prototypes.
8624         * integrate.c: Use gengtype for various structures.  Include
8625         gt-integrate.h.
8626         (mark_hard_reg_initial_vals): Delete.
8627         * integrate.h (mark_hard_reg_initial_vals): Delete.
8628         * stmt.c: Use gengtype for various structures.  Include
8629         gt-stmt.h.
8630         (mark_case_node): Delete.
8631         (mark_goto_fixup): Delete.
8632         (mark_stmt_status): Use standard gt_ggc names for marker functions.
8633         * system.h: Define GTY to empty.   In flex/bison files,
8634         don't poison malloc or realloc, instead just define them to
8635         xmalloc and xrealloc.
8636         * varasm.c: Use gengtype for various structures.  Include
8637         gt-varasm.h.  Use standard gt_ggc names for marker functions.
8638         (mark_pool_constant): Delete.
8639         (mark_varasm_status): Delete.
8640         (decode_rtx_const): #if 0 out non-typesafe hack.
8641
8642         * function.h (free_lang_status): Mark as obsolete.
8643         * function.c (free_lang_status): Mark as obsolete.
8644         * c-decl.c (push_c_function_context): Use GC to allocate and free
8645         struct language_function.
8646         (pop_c_function_context): Likewise.
8647         * c-common.c (mark_c_language_function): Mark struct
8648         language_function.
8649
8650         * doc/tm.texi (Per-Function Data): Don't document free_machine_status.
8651         Document that the machine_function structures must be allocated
8652         using GC.  Update mark_machine_status documentation.
8653         * function.h: Don't declare free_machine_status.
8654         * function.c (free_machine_status): Don't define.
8655         (free_after_compilation): Don't call free_machine_status.
8656         (ggc_mark_struct_function): Mark f->machine.  Call
8657         mark_machine_status only on non-NULL pointers.
8658         * system.h: Poison free_machine_status.
8659         * config/xtensa/xtensa.c (xtensa_init_machine_status): Use GC on
8660         struct machine_function.
8661         (xtensa_free_machine_status): Delete.
8662         (override_options): Don't set free_machine_status.
8663         * config/rs6000/rs6000.c (rs6000_override_options): Don't set
8664         free_machine_status.
8665         (rs6000_init_machine_status): Use GC on struct machine_function.
8666         (rs6000_free_machine_status): Delete.
8667         * config/ia64/ia64.c (ia64_init_machine_status): Use GC on struct
8668         machine_function.
8669         (ia64_mark_machine_status): Likewise.
8670         (ia64_free_machine_status): Delete.
8671         (ia64_override_options): Don't set free_machine_status.
8672         * config/i386/i386.c (override_options): Don't set
8673         free_machine_status.
8674         (ix86_init_machine_status): Use GC on struct machine_function.
8675         (ix86_mark_machine_status): Likewise.
8676         (ix86_free_machine_status): Delete.
8677         * config/d30v/d30v.c: (d30v_init_machine_status): Use GC on struct
8678         machine_function.
8679         (d30v_mark_machine_status): Likewise.
8680         (d30v_free_machine_status): Delete.
8681         (d30v_init_expanders): Don't set free_machine_status.
8682         * config/arm/arm.c (arm_mark_machine_status): Use GC on struct
8683         machine_function.
8684         (arm_init_machine_status): Likewise.
8685         (arm_free_machine_status): Delete.
8686         (arm_init_expanders): Don't set free_machine_status.
8687         * config/alpha/alpha.c (override_options): Don't set
8688         free_machine_status.
8689         (alpha_init_machine_status): Use GC on struct machine_function.
8690         (alpha_mark_machine_status): Likewise.
8691         (alpha_free_machine_status): Delete.
8692
8693         * varasm.c (compare_constant): Fix typo.
8694
8695         * varasm.c: Don't include obstack.h.
8696         (struct varasm_status): x_const_rtx_hash_table is a hash of rtxes.
8697         (struct rtx_const): Give substructures names, improve formatting.
8698         (struct constant_descriptor): Delete.
8699         (struct constant_descriptor_tree): New, based on constant_descriptor.
8700         (const_hash_table): Is a hash table of trees.
8701         (mark_const_hash_entry): Is used for hashes of trees.  Mark
8702         constant_descriptor_tree structure.
8703         (mark_const_str_htab_1): Mark deferred_string structure.
8704         (compare_constant): Rewrite to compare trees.
8705         (compare_constant_1): Delete.
8706         (record_constant): Delete.
8707         (record_constant_1): Delete.
8708         (output_constant_def): Use struct constant_descriptor_tree.
8709         Don't duplicate trees twice.
8710         (struct constant_descriptor_rtx): New.
8711         (struct pool_constant): Used for rtx constants.
8712         (init_varasm_status): Update for change to struct varasm_status.
8713         (mark_varasm_status): Likewise.
8714         (free_varasm_status): Delete.
8715         (compare_constant_rtx): Rewrite to handle constant_descriptor_rtx.
8716         (record_constant_rtx): Likewise.
8717         (mem_for_const_double): Update to use struct constant_descriptor_rtx.
8718         (force_const_mem): Likewise.
8719         * Makefile.in (varasm.o): Doesn't depend on obstack.h.
8720         * function.c (free_after_compilation): Don't use free_varasm_status.
8721         * function.h: Don't prototype free_varasm_status.
8722
8723         * ggc-common.c (ggc_realloc): Handle X being NULL.
8724
8725         * ggc-common.c (ggc_realloc): New function.
8726         * ggc.h: Prototype it.
8727         * emit-rtl.c (free_emit_status): Delete.
8728         (init_emit): Allocate emit subarrays using GC.
8729         (gen_reg_rtx): Reallocate subarrays using GC.
8730         (init_emit): Use GC to allocate 'struct emit_status' and its
8731         subarrays.
8732         (mark_emit_status): Mark structure and its subarrays.
8733         * stmt.c (free_stmt_status): Delete.
8734         * expr.c (free_expr_status): Delete.
8735         * function.h: Remove prototypes for deleted functions.
8736         * function.c (free_after_compilation): Don't use deleted functions.
8737         Don't call free() on x_parm_reg_stack_loc.
8738         (free_after_parsing): Don't use free_stmt_status.
8739         (assign_parms): Use GC to allocate and resize x_parm_reg_stack_loc.
8740         (mark_function_status): Mark x_parm_reg_stack_loc.
8741
8742         * varasm.c (init_varasm_status): Use GC to allocate
8743         'struct varasm_status' and its fields x_const_rtx_hash_table
8744         and x_const_rtx_sym_hash_table.
8745         (mark_varasm_status): Mark them.
8746         (free_varasm_status): Use GC to free them.
8747         * expr.c (init_expr): Use GC to allocate 'struct expr_status'.
8748         (mark_expr_status): Mark the structure itself.
8749         (free_expr_status): Use GC to free the structure.
8750         * stmt.c (free_stmt_status): Use GC to free 'struct stmt_status'.
8751         (mark_stmt_status): Mark the 'struct stmt_status' itself.
8752         (init_stmt_for_function): Allocate the structure for GC.
8753
8754         * dwarf2out.c (lookup_type_die): Use TYPE_SYMTAB_DIE.
8755         (equate_type_number_to_die): Likewise.
8756         * tree.h (TYPE_SYMTAB_DIE): New macro.
8757         (struct die_struct): Predeclare.
8758         (struct tree_type): Add field symtab.die.   Add a tag
8759         to the union type of field symtab.
8760
8761         * varray.h (VARRAY_RTVEC_INIT): A varray of rtvec contains
8762         'struct rtvec_def *', not 'struct rtvec_def'.
8763
8764         * function.h (original_arg_vector): Make a real rtvec.
8765         * function.c (ggc_mark_struct_function): Adjust.
8766         * integrate.c (expand_inline_function): Adjust.
8767
8768 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
8769
8770         * config.gcc (sh5-*-netbsd*, sh5l*-*-netbsd*)
8771         (sh64-*-netbsd*, sh64l*-*-netbsd*): New targets.
8772         * config/sh/netbsd-elf.h (TARGET_VERSION_ENDIAN)
8773         (TARGET_VERSION_CPU): Define according to the
8774         default target.
8775         (TARGET_VERSION): Use TARGET_VERSION_ENDIAN and
8776         TARGET_VERSION_CPU.
8777         (TARGET_OS_CPP_BUILTINS): Use NETBSD_OS_CPP_BUILTINS_LP64
8778         if TARGET_SHMEDIA64.
8779         (LINK_DEFAULT_CPU_EMUL): Define according to the
8780         default target.
8781         (SUBTARGET_LINK_EMUL_SUFFIX): Define.
8782         (SUBTARGET_LINK_SPEC): Define.
8783         (LINK_SPEC): Use SH_LINK_SPEC.
8784         (ASM_SPEC): Remove.
8785         (TARGET_DEFAULT): Use TARGET_CPU_DEFAULT.
8786         (FUNCTION_PROFILER): Add cases for TARGET_SHMEDIA32
8787         and TARGET_SHMEDIA64 which abort, for now.
8788         * config/sh/t-netbsd-sh5: New file.
8789         * config/sh/t-netbsd-sh5-32: New file.
8790         * config/sh/t-netbsd-sh5-64: New file.
8791
8792 2002-06-03  Falk Hueffner  <falk.hueffner@student.uni-tuebingen.de>
8793             Richard Henderson  <rth@redhat.com>
8794
8795         * config/alpha/alpha.c (reg_or_const_int_operand): New.
8796         (some_operand, input_operand): Accept CONST_VECTOR.
8797         (alpha_extra_constraint): Add 'W'.
8798         (alpha_expand_zap_mask): New.
8799         (alpha_expand_builtin_vector_binop): New.
8800         (enum alpha_builtin): New.
8801         (zero_arg_builtins, one_arg_builtins, two_arg_builtins): New.
8802         (alpha_init_builtins, alpha_expand_builtin): New.
8803         (TARGET_INIT_BUILTINS, TARGET_EXPAND_BUILTIN): New.
8804         * config/alpha/alpha.h (VECTOR_MODE_SUPPORTED_P): New.
8805         (PREDICATE_CODES): Update.
8806         * config/alpha/alpha-protos.h: Update.
8807         * config/alpha/alpha.md (UNSPEC_CMPBGE, UNSPEC_ZAP,
8808         UNSPEC_AMASK, UNSPEC_IMPLVER, UNSPEC_PERR, UNSPECV_RPCC): New.
8809         (movv8qi, movv8qi_fix, movv8qi_nofix): New.
8810         (movv4hi, movv4hi_fix, movv4hi_nofix): New.
8811         (movv2si, movv2si_fix, movv2si_nofix): New.
8812         (uminv8qi3, sminv8qi3, uminv4hi3, sminv4hi3): New.
8813         (umaxv8qi3, smaxv8qi3, umaxv4hi3, smaxv4hi3): New.
8814         (builtin_cmpbge, builtin_extql, builtin_extqh, builtin_zap,
8815         builtin_zap_1, builtin_zapnot, builtin_zapnot_1, builtin_amask,
8816         builtin_implver, builtin_rpcc, builtin_minub8, builtin_minsb8,
8817         builtin_minuw4, builtin_minsw4, builtin_maxub8, builtin_maxsb8,
8818         builtin_maxuw4, builtin_maxsw4, builtin_perr, builtin_pklb,
8819         pklb, builtin_pkwb, pkwb, builtin_unpkbl, unpkbl,
8820         builtin_unpkbw, unpkbw): New.
8821         * doc/extend.texi (Alpha Built-in Functions): New.
8822
8823 2002-06-03  Richard Henderson  <rth@redhat.com>
8824
8825         * crtstuff.c (__EH_FRAME_BEGIN__): Conditionalize on
8826         USE_EH_FRAME_REGISTRY, not EH_FRAME_SECTION_NAME.
8827
8828 2002-06-03  Richard Henderson  <rth@redhat.com>
8829
8830         * config/alpha/alpha-protos.h: Eliminate unneeded ifdefs.
8831
8832         * config/alpha/alpha.c (reg_or_0_operand): Use CONST0_RTX.
8833         (const0_operand): New.
8834         (reg_or_fp0_operand, fp0_operand): Remove.
8835         * config/alpha/alpha.h (PREDICATE_CODES): Update.
8836         * config/alpha/alpha-protos.h: Update.
8837         * config/alpha/alpha.md: Replace all uses of reg_or_fp0_operand
8838         and fp0_operand with reg_or_0_operand and const0_operand.
8839
8840 2002-06-03  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
8841
8842         * alias.c (nonoverlapping_memrefs_p): Fix off by one error.
8843
8844 2002-06-03  Roger Sayle  <roger@eyesopen.com>
8845
8846         * gcse.c (cprop_jump): Use single_set to get the pattern
8847         from the setcc argument.
8848
8849 2002-06-03  Gabriel Dos Reis  <gdr@codesourcery.com>
8850
8851         * diagnostic.h (diagnostic_count): Move from output_buffer to
8852         diagnostic_context.
8853         (diagnostic_kind_count): Adjust definition.
8854
8855 Mon Jun  3 19:11:53 CEST 2002  Jan Hubicka  <jh@suse.cz>
8856
8857         * except.c (except.c): Do not rebuild CFG.
8858         * toplev.c (rest_of_compilation): Recompute CFG after sibcall
8859         optimization.
8860
8861 Mon Jun  3 11:53:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
8862
8863         * integrate.c (copy_insn_list): Properly pace the INSN_SCOPE copies.
8864         * toplev.c: Include cfglahout.h
8865         * Makefile.in (toplev.c): Add dependnecy.
8866
8867 2002-06-03  Neil Booth  <neil@daikokuya.demon.co.uk>
8868
8869         * config/i386/i386.h (TARGET_CPU_CPP_BUILTINS): New.
8870         (CPP_CPU32_SPEC, CPP_CPU64_SPEC): Kill.
8871         (CPP_CPUCOMMON_SPEC): Rename CPP_CPU_SPEC.
8872
8873 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
8874
8875         * config/ns32k/netbsd.h: Update copyright years.
8876         (TARGET_OS_CPP_BUILTINS): Define.
8877         (CPP_PREDEFINES): Remove.
8878         * config/ns32k/ns32k.h (CPP_PREDEFINES): Remove.
8879         (TARGET_CPU_CPP_BUILTINS): Define.
8880
8881 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
8882
8883         * emit-rtl.c: Fix formatting.
8884         * errors.h: Likewise.
8885         * except.c: Likewise.
8886         * explow.c: Likewise.
8887         * expmed.c: Likewise.
8888         * expr.c: Likewise.
8889         * expr.h: Likewise.
8890
8891 2002-06-02  Kazu Hirata  <kazu@cs.umass.edu>
8892
8893         * config/h8300/elf.h: Fix formatting.
8894         * config/h8300/rtems.h: Likewise.
8895
8896 2002-06-03  Jason Thorpe  <thorpej@wasabisystems.com>
8897
8898         * config/rs6000/netbsd.h (DRAFT_V4_STRUCT_RET): Remove.
8899
8900 2002-06-02  Tom Tromey  <tromey@redhat.com>
8901
8902         * fixinc/fixincl.x: Rebuilt.
8903         * fixinc/inclhack.def (thread_keyword): Match `*__thread'.
8904
8905 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8906
8907 config/i370:
8908         * i370.h (TARGET_CPU_CPP_BUILTINS): Use.
8909         * linux.h: Use TARGET_OS_CPP_BUILTINS rather than CPP_PREDEFINES.
8910         * mvs.h: Similarly.
8911         * oe.h: Similarly.
8912
8913 Mon Jun  3 00:18:20 CEST 2002  Jan Hubicka  <jh@suse.cz>
8914
8915         * final.c (final):  Allow notes to not have computed addresses;
8916         kill no longer needed STACK_REGS ifdef.
8917
8918 2002-06-02  Richard Henderson  <rth@redhat.com>
8919
8920         * gcse.c (bypass_conditional_jumps): Fix typo last change.
8921
8922 Sun Jun  2 23:02:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
8923
8924         * loop.c (emit_prefetch_instructions): Properly place the address
8925         computation.
8926
8927 Sun Jun  2 22:56:48 CEST 2002  Jan Hubicka  <jh@suse.cz>
8928
8929         * basic-block.h (basic_block_for_insn, BLOCK_FOR_INSN): Kill.
8930         (set_block_for_insn): Turn into macro.
8931         * cfgbuild.c (find_basic_block): Do not clear basic_block_for_insn.
8932         * cfglayout.c (insn_scopes): Kill.
8933         (scope_to_insns_initialize): Do not use insn_scopes.
8934         (scope_to_insns_finalize): Likewise.
8935         (duplicate_insn_chain): Likewise.
8936         (cfg_layout_initialize, cfg_layout_finalize): Do not turn scopes to notes.
8937         * cfgrtl.c (basic_block_for_insn): Kill.
8938         (delete_insn_and_edges, delete_insn_chain_and_edges): Simplify.
8939         (create_basic_block_structure): Use reorder_insns.
8940         (compute_bb_for_insn): Do not use basic_block_for_insn.
8941         (merge_blocks_nomove): Likewise.
8942         (update_bb_for_insn): Likewise.
8943         (verify_flow_info): Likewise.
8944         (set_block_for_insn): Kill.
8945         * combine.c (try_combine): Update gen_rtx_INSN call.
8946         * emit-rtl.c (gen_label_rtx): Update gen_rtx_CODE_LABEL call.
8947         (mark_insn_raw, make_jump_insn_raw, make_call_insn_raw): Clear
8948         scopes and BBs.
8949         (add_insn_after, add_insn_before, remove_insn, reorder_insns): Simplify.
8950         (emit_note_before, emit_note_after, emit_line_note_after, emit_note):
8951         Clear BB.
8952         (emit_insns_after): Simplify.
8953         (emit_copy_of_insn_after): Copy scope.
8954         * final.c (final_start_function): Lower scopes.
8955         * flow.c (check_function_return_warnings): Do not rely on deleted insn.
8956         * integrate.c (copy_insn_list): Cope scopes.
8957         * jump.c (duplicate_loop_exit_test): LIkewise; simplify.
8958         * loop.c (loop_optimize): Do not care block notes.
8959         * print-rtl.c (print_rtx): Print BB.
8960         * recog.c (apply_change_group): Simplify.
8961         * rtl.c (copy_rtx): Handle 'B'.
8962         * rtl.def (INSN, CALL_INSN, JUMP_INSN, NOTE): Add extra fields.
8963         * rtl.h (Field accessors): Update indexes.
8964         * sched-ebb.c (schedule_ebbs): Do not lower notes.
8965         * sched-rgn.c (schedule_insns): Likewise.
8966         * toplev.c (rest_of_compilation): Lower notes.
8967         * unroll.c (unroll_loop): Do not care scoping notes.
8968         (copy_loop_body): Copy scopes.
8969
8970 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8971
8972 config/h8300:
8973         * elf.h: Use TARGET_OS_CPP_BUILTINS rather than
8974         SUBTARGET_SPEC.
8975         * rtems.h: Similarly.
8976         * h8300.h (CPP_PREDEFINES, CPP_SPEC, SUBTARGET_CPP_SPEC,
8977         EXTRA_SPECS, SUBTARGET_EXTRA_SPECS): Remove.
8978         (TARGET_CPU_CPP_BUILTINS): Use.
8979
8980 2002-06-02  Richard Henderson  <rth@redhat.com>
8981
8982         * alias.c: Include target.h.
8983         (mark_constant_function): Use targetm.binds_local_p instead
8984         of checking TREE_PUBLIC ourselves.
8985         * Makefile.in (alias.o): Add TARGET_H.
8986
8987 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8988
8989         * c-lex.c: Update copyright and file description.
8990
8991 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8992
8993         * config/fr30/fr30.h: Update to new CPP macros.
8994
8995 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
8996
8997         * config/dsp16xx/dsp16xx.h: Update to new CPP macros.
8998
8999 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9000             Zack Weinberg <zack@codesourcery.com>
9001
9002         * c-common.c (c_common_init): Override cpplib's default
9003         warn_long_long setting.
9004         * c-lex.c (lex_number): Replace with interpret_integer,
9005         interpret_float, narrowest_unsigned_type and
9006         narrowest_signed_type, taking advantage of the new
9007         cpplib functionality.
9008         * cpperror.c (_cpp_begin_message): If a warning is turned
9009         into an error, avoid printing "warning:".
9010         * cppexp.c (cpp_num_sign_extend): New.
9011         * cppinit.c: Update comment.
9012         * cpplib.h (cpp_num_sign_extend): New.
9013         * tree.h: Update comment.
9014
9015 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
9016
9017         * diagnostic.h (struct diagnostic_context):  Add new member
9018         internal_error.
9019         (internal_error_function): Remove declaration.
9020         * diagnostic.c (internal_error_function): Remove definition..
9021         (internal_error): Adjust use.
9022
9023 2002-06-02  Richard Henderson  <rth@redhat.com>
9024
9025         * rtl.h (CC0_P): New.
9026         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
9027         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
9028         (bypass_block): Save old dest block for dump text.
9029         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
9030         Allow only true SET insns, not single_set.
9031
9032 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
9033
9034         * diagnostic.c (diagnostic_finish): Rename to output_flush.
9035         (clear_disgnostic_info): Rename to output_clear_data.  Use false
9036         instead of 0 for boolean value.
9037         Adjust function call throughout.
9038
9039 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
9040
9041         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
9042         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
9043
9044 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9045
9046         * d30v.h (CPP_PREDEFINES): Replace with
9047         (TARGET_CPU_CPP_BUILTINS): New.
9048
9049 2002-06-02  Roger Sayle  <roger@eyesopen.com>
9050
9051         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
9052
9053 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
9054
9055         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
9056
9057 2002-06-02  Richard Henderson  <rth@redhat.com>
9058
9059         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
9060
9061 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9062
9063         Support for C++ constructors/destructors.
9064         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
9065         instead of looping if main() returns.
9066         (asm_file_start): Output global symbols that cause .data and .bss
9067         initialization code to be linked in, unconditionally for now.
9068         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
9069         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
9070         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
9071         (LIBSTDCXX): New.
9072         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
9073         (__tablejump__): New.
9074         (__do_copy_data, __do_clear_bss): New.
9075         (__do_global_ctors, __do_global_dtors): New.
9076         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
9077         _ctors, _dtors.
9078
9079 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
9080
9081         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
9082         (CPP_SPEC, CPP_PREDEFINES): Kill.
9083         * c4x/rtems.h (CPP_PREDEFINES): Kill.
9084         (TARGET_OS_CPP_BUILTINS): New.
9085
9086 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
9087
9088         * Makefile.in (tracer.o): New.
9089         * params.def (TRACER_*): New options.
9090         * rtl.h (tracer): Declare.
9091         * timevar.def (TV_TRACER): New.
9092         * toplev.c (dump_file_index): Add DFI_tracer.
9093         (dump_file_info): Add tracer.
9094         (flag_tracer): New.
9095         (lang_indepdenent_options): Add tracer.
9096         (rest_of_compilation): Call tracer.
9097         * tracer.c: New file.
9098         * invoke.texi (-ftracer): Document.
9099         (--param tracer-*): Document.
9100
9101 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
9102
9103         * tree-inline.c (expand_call_inline): Make the statement
9104         expression we generate have a COMPOUND_STMT.
9105
9106 2002-06-01  Roger Sayle  <roger@eyesopen.com>
9107
9108         * gcse.c (cprop_cc0_jump): Function deleted.
9109         (cprop_jump): Take an additional argument which is the possibly
9110         NULL cc setting insn immediately before the conditional jump.
9111         When a MODE_CC set is present, substitute it into the JUMP_INSN
9112         before attempting the constant propagation.
9113         (cprop_insn):  Recognize cc setters followed by conditional jumps
9114         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
9115         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
9116         (find_bypass_set): New function based upon find_avail_set used by
9117         cprop, but finds constant expressions available at the end of
9118         basic blocks.
9119         (bypass_block): New function.  Given a basic block that begins
9120         with a conditional jump and multiple incoming edges, perform
9121         the jump bypass optimization.
9122         (bypass_conditional_jumps): New function.  Call bypass_block with
9123         each suitable basic block in the CFG using a simple single pass.
9124
9125 2002-06-01  Roger Sayle  <roger@eyesopen.com>
9126
9127         * tree.c (real_minus_onep): New function to test for -1.0.
9128         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
9129
9130 2002-06-01  Roger Sayle  <roger@eyesopen.com>
9131
9132         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
9133         and "!p && !q" into "(p|q) == 0" under suitable conditions.
9134
9135 2002-06-01  Andreas Jaeger  <aj@suse.de>
9136
9137         * cppexp.c (cpp_classify_number): Cast precission to int for
9138         correct printf format.
9139
9140 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
9141
9142         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
9143         expected, but don't really exist: atmega83, atmega85, attiny10.
9144         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
9145         emulations for all devices.
9146         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
9147         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
9148
9149 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
9150
9151         * config/h8300/h8300-protos.h: Add a prototype for
9152         h8300_shift_needs_scratch_p.
9153         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
9154         * config/h8300/h8300.h (OK_FOR_R): New.
9155         (OK_FOR_S): Likewise.
9156         (OK_FOR_T): Likewise.
9157         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
9158         * config/h8300/h8300.md (anonymous shift patterns): Use
9159         constraints R, S, and T.
9160
9161 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9162
9163         * basic-block.h (struct basic_block_def): New field loop_father.
9164         (BB_VISITED): New flag.
9165         (struct loop): New field pred, removed field shared.
9166         (struct loops): New field parray.
9167         (LOOP_EXITS_DOMS): Removed.
9168         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
9169         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
9170         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
9171         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
9172         verify_loop_structure): Declare.
9173         * cfg.c (entry_exit_blocks): Initialize loop_father field.
9174         * cfganal.c (dfs_enumerate_from): New function.
9175         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
9176         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
9177         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
9178         flow_loop_dump, flow_loops_dump, flow_loops_free,
9179         flow_loop_tree_node_add, flow_loop_level_compute,
9180         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
9181         flow_loop_outside_edge_p): Modified for new infrastructure.
9182         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
9183         redirect_edge_with_latch_update, flow_loop_free): New static functions.
9184         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
9185         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
9186         find_common_loop, verify_loop_structure, loop_latch_edge,
9187         loop_preheader_edge): New functions.
9188         (flow_loops_cfg_dump): Do not show dominators, as this information
9189         does not remain up to date long.
9190         (flow_loops_find): Store results in new format.
9191         * predict.c (propagate_freq, estimate_probability,
9192         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
9193         infrastructure.
9194
9195 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
9196
9197         * except.c (nothrow_function_p): Walk epilogue delay list
9198         checking the insn, not the chain for potential throws.
9199
9200 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
9201
9202         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
9203         (install): Refer to install-cpp directly.
9204         (uninstall-cpp): Folded into uninstall rule.
9205         * configure.in: Delete all code relating to --disable-cpp.
9206         * configure: Regenerate.
9207         * config/t-install-cpp: Delete.
9208
9209 2002-05-31  Richard Henderson  <rth@redhat.com>
9210
9211         * configure.in (HAVE_AS_TLS): Add alpha tests.
9212         * configure: Rebuild.
9213         * config/alpha/alpha.c (TARGET_AS_TLS): New.
9214         (alpha_tls_size, alpha_tls_size_string): New.
9215         (overide_options): Set it.  Always install machine_status hooks.
9216         (input_operand): Accept got tls predicates.
9217         (local_symbol_p): Merge into ...
9218         (local_symbolic_operand): ... here.  Reject tls symbols.
9219         (global_symbolic_operand): Likewise.
9220         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
9221         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
9222         (tp16_symbolic_operand, tp32_symbolic_operand): New.
9223         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
9224         (alpha_encode_section_info): Handle TLS symbols.
9225         (alpha_strip_name_encoding): Likewise.
9226         (alpha_legitimate_address_p): Likewise.
9227         (alpha_legitimize_address): Likewise.
9228         (alpha_expand_mov): Early exit to avoid nop moves.
9229         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
9230         (alpha_init_machine_status, alpha_mark_machine_status,
9231         alpha_free_machine_status): Always define.
9232         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
9233         (print_operand, print_operand_address): Add TLS relocs.
9234         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
9235         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
9236         (TARGET_SWITCHES): Add -mtls-kernel.
9237         (alpha_tls_size, alpha_tls_size_string): New.
9238         (TARGET_OPTIONS): Add -mtls-size=.
9239         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
9240         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
9241         (ASM_OUTPUT_LABELREF): Skip %.
9242         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
9243         (PREDICATE_CODES): Update.
9244         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
9245         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
9246         UNSPEC_TP, UNSPECV_SET_TP): New.
9247         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
9248         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
9249         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
9250         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
9251         (call_value_osf_2_er): Accept anything as op4.
9252         * config/alpha/alpha-protos.h: Update.
9253         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
9254
9255 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
9256
9257         * cppinit.c (append_include_chain): Always pay attention to
9258         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
9259         marker on argument.
9260
9261 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
9262
9263         * target.h: Fix formatting.
9264         * timevar.h: Likewise.
9265         * tlink.c: Likewise.
9266         * toplev.c: Likewise.
9267         * toplev.h: Likewise.
9268         * tree.c: Likewise.
9269         * tree-dump.h: Likewise.
9270         * tree.h: Likewise.
9271         * tree-inline.h: Likewise.
9272         * unroll.c: Likewise.
9273         * unwind-dw2.c: Likewise.
9274         * unwind-dw2-fde.c: Likewise.
9275         * unwind-dw2-fde-glibc.c: Likewise.
9276         * unwind-dw2-fde.h: Likewise.
9277         * unwind.h: Likewise.
9278         * unwind-sjlj.c: Likewise.
9279         * varasm.c: Likewise.
9280         * varray.h: Likewise.
9281         * vmsdbg.h: Likewise.
9282         * vmsdbgout.c: Likewise.
9283         * xcoffout.h: Likewise.
9284
9285 2002-05-31  Igor Shevlyakov <igor@microunity.com>
9286
9287         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
9288         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
9289
9290 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
9291
9292         * gcc.c (cpp_unique_options): Remove "-d" options.
9293         (cpp_debug_options): New spec string.
9294         (default_compilers): Use it.
9295         * objc/lang-specs.h: Likewise.
9296
9297 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
9298
9299         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
9300         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
9301         * gcc/mklibgcc.in: Likewise.
9302         * gcc/config/arc/t-arc: Likewise.
9303         * gcc/configure.in: Likewise.
9304         * gcc/configure: Regenerate.
9305
9306 2002-05-31  Stan Shebs  <shebs@apple.com>
9307             Turly O'Connor  <turly@apple.com>
9308
9309         * c-decl.c (struct binding_level): Change int field n_incomplete
9310         to tree list incomplete_list.
9311         (clear_binding_level): Init field with NULL.
9312         (pushdecl): Add incomplete type to list.
9313         (mark_binding_level): Mark the incomplete list.
9314         (finish_struct): Scan the incomplete list for types instead
9315         of all decls in the current binding level.
9316
9317 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9318
9319         * pa.c (output_millicode_call): Add missing '%' characters.
9320         (output_call): Likewise.
9321
9322 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
9323
9324         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
9325         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
9326
9327 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
9328
9329         * varasm.c (mark_constant_pool): Walk epilogue delay list
9330         checking the insn, not the chain for potential constants.
9331
9332 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
9333
9334         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
9335
9336 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
9337
9338         * i386.c (classify_argument): Properly handle base types.
9339
9340         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
9341         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
9342         registers.
9343
9344 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
9345
9346         * gcse.c (gcse_emit_move_after): New.
9347         (pre_delete, hoist_store): Use it.
9348
9349         * reload1.c (emit_input_reload_insns): Use constrain_operands
9350         instead of constraint_accepts_reg_p to verify optimization.
9351         (constraint_accepts_reg_p): Kill
9352
9353         * reload1.c (reload_cse_delete_noop_set): Kill.
9354         (reload_cse_simplify): use delte_insn_and_edges.
9355
9356 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9357
9358         * cfgloop.c (flow_loops_find): Initialize first and last fields
9359         correctly.
9360
9361 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
9362
9363         * c-common.c (builtin_define_std): Correct logic.
9364
9365 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9366
9367         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
9368         (output_call): Likewise.
9369
9370 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9371
9372         * pa.c: Move output.h include after tree.h include.
9373         (pa_asm_output_mi_thunk): Constify identifier lab.
9374
9375 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
9376
9377         * config/ns32k/ns32k.h: Define named constants for the
9378         bits in target_flags and use them.
9379         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
9380
9381 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9382
9383         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
9384         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
9385         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
9386         default scheduling model.
9387         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
9388         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
9389         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
9390         * doc/install.texi (hppa*-*-*): Document default scheduling.
9391
9392 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9393
9394         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
9395
9396 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
9397
9398         * config.gcc (ns32k-*-netbsd*): Set tm_file to
9399         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
9400         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
9401         netbsd.h, or netbsd-aout.h.
9402
9403 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
9404
9405         * longlong.h (count_trailing_zeros): Add missing \, and clean up
9406         whitespace in __ns32000__ case.
9407
9408 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
9409
9410         * expr.c (expand_expr): Output partially zeroed out vectors with
9411         output_constant_def.
9412
9413 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9414
9415         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
9416         (sh-*-netbsdelf*)
9417         (shl*-*-netbsdelf*): New targets.
9418         * config/sh/netbsd-elf.h: New file.
9419         * config/sh/t-netbsd: New file.
9420
9421 2002-05-30  Richard Henderson  <rth@redhat.com>
9422             Eric Botcazou  <ebotcazou@multimania.com>
9423
9424         PR optimization/6822
9425         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
9426         to unsigned int for op1 comparisons.  Use gen_int_mode.
9427
9428 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
9429
9430         * expmed.c (const_mult_add_overflow_p): New.
9431         * expr.h: Declare it.
9432         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
9433         Don't eliminate the biv if the giv has a constant multiplier and
9434         the rhs argument of the comparison does satisfy the predicate.
9435         Use expand_mult_add to compute the replacement constant.
9436
9437 2002-05-30  Osku Salerma  <osku@iki.fi>
9438
9439         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
9440         (c_common_get_alias_set): Handle it.
9441         * doc/extend.texi: Document it.
9442
9443 2002-05-30  Richard Henderson  <rth@redhat.com>
9444
9445         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
9446         * toplev.c (process_options): Don't check it.
9447         * doc/tm.texi: Don't document it.
9448         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
9449         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
9450         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
9451         frame pointer optimization if current_function_profile.
9452
9453 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
9454
9455         * langhooks.c: Fix formatting.
9456         * langhooks.h: Likewise.
9457         * lcm.c: Likewise.
9458         * libgcc2.c: Likewise.
9459         * lists.c: Likewise.
9460         * local-alloc.c: Likewise.
9461         * loop.c: Likewise.
9462         * loop.h: Likewise.
9463
9464 2002-05-30  Marc Espie <espie@openbsd.org>
9465
9466         * config.gcc (sparc64-*-openbsd*): New.
9467         * config/sparc/openbsd1-64.h: New.
9468         * config/sparc/openbsd64.h: New.
9469
9470 2002-05-30  Jeff Law <law@redhat.com>
9471
9472         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
9473         a dead insn with a REG_RETVAL note when the entire libcall is not
9474         dead and remove the associated REG_LIBCALL note at the same time.
9475
9476 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
9477
9478         * lcm.c (output.h): #include.
9479         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
9480         as an ordinary block.
9481         (optimize_mode_switching): Don't pretend that the exit block is
9482         an ordinary block, or handle sucessors of entry block specially.
9483         Instead, split edges from entry block and to exit block, and
9484         put a computing definition on the thus gained post-entry-block,
9485         and a need on the pre-exit-block.
9486
9487 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
9488
9489         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
9490         * rtl.texi: Document 'B'
9491
9492 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
9493
9494         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
9495         at run-time.
9496         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
9497
9498 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
9499
9500         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
9501         const0_rtx instead of NULL_RTX when in error.
9502         (altivec_expand_abs_builtin): Same.
9503         (rs6000_expand_binop_builtin): Same.
9504         (altivec_expand_predicate_builtin): Same.
9505         (altivec_expand_stv_builtin): Same.
9506         (rs6000_expand_ternop_builtin): Same.
9507         (altivec_expand_builtin): Same.
9508
9509 2002-05-29  David S. Miller  <davem@redhat.com>
9510
9511         * rtl.h (clear_emit_caches): Delete.
9512         * integrate.c (output_inline_function): Don't call it.
9513         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
9514         (clear_emit_caches): Delete definition.
9515         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
9516
9517 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
9518
9519         * config/mmix/mmix.c: Include real.h.
9520         (mmix_constant_address_p): Remove redundant test before switch.
9521
9522 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
9523
9524         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
9525         only if not already defined.
9526
9527 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
9528
9529         * config/h8300/h8300-protos.h: Remove prototypes for
9530         ok_for_bclr and small_power_of_two.
9531         * config/h8300/h8300.c (small_power_of_two): Remove.
9532         (ok_for_blcr): Likewise.
9533         (fix_bit_operand): Make WHAT deal with an integer instead of a
9534         constraint character.
9535         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
9536         (CONST_OK_FOR_P): Likewise.
9537         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
9538         CONST_OK_FOR_P any more.
9539         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
9540         of fix_bit_operand.
9541         (iorqi3): Likewise.
9542         (xorqi3): Likewise.
9543
9544 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
9545
9546         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
9547         (CPP_PREDEFINES): Make sure this is undefined.
9548         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
9549         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
9550         or -U__MIPSEB__ before defining one or the other.  Instead,
9551         use %(subtarget_endian_default) if neither -EB nor -EL are
9552         specified.
9553         (SUBTARGET_EXTRA_SPECS): Define.
9554         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
9555         %(netbsd_cpp_spec).
9556
9557 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
9558
9559         * doc/md.texi (Patterns): Note pattern condition pitfall
9560         for unnamed insn.
9561
9562 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
9563
9564         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
9565         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
9566         ternary operations from here...
9567         (rs6000_expand_builtin): ...to here.
9568         New argument expandedp.
9569         Change all instances of altivec_expand_binop_builtin to
9570         rs6000_expand_binop_builtin.
9571         (altivec_expand_unop_builtin): Rename to
9572         rs6000_expand_unop_builtin.
9573         (altivec_expand_binop_builtin): Rename to
9574         rs6000_expand_binop_builtin.
9575         (altivec_expand_ternop_builtin): Rename to
9576         rs6000_expand_ternop_builtin.
9577
9578 2002-05-29  Richard Henderson  <rth@redhat.com>
9579
9580         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
9581         (TARGET_BI_ARCH): Likewise.
9582         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
9583         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
9584         (TARGET_64BIT_DEFAULT): Default to 0.
9585         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
9586
9587 2002-05-29  Richard Henderson  <rth@redhat.com>
9588
9589         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
9590         (get_pc_thunk_name): New.
9591         (output_set_got): Use it.
9592         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
9593         into linkonce sections.
9594
9595 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
9596
9597         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
9598         (CPP_PREDEFINES): Make sure this is undefined.
9599         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
9600         (CPP_SUBTARGET_SPEC): Don't provide different versions for
9601         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
9602         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
9603         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
9604         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
9605         (CPP_PREDEFINES): Make sure this is undefined.
9606         (SUBTARGET_EXTRA_SPECS): Define.
9607         (CPP_SPEC): Use %(netbsd_cpp_spec).
9608
9609 2002-05-29  Jeff Law <law@redhat.com>
9610
9611         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
9612
9613         * flow.c (propagate_one_insn): Do not remove a dead insn if it
9614         contains a REG_RETVAL note.
9615
9616         * haifa-sched (sched_analyze): Remove another useless clearing
9617         of SCHED_GROUP_P I missed yesterday.
9618
9619         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
9620         * pa.c (pa_asm_output_mi_thunk): New function.
9621         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
9622
9623 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9624             Marek Michalkiewicz  <marekm@amelek.gda.pl>
9625
9626         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
9627         (avr_asm_only_p): Make non-static.
9628         (enum avr_arch): Remove.
9629         (avr_arch_types): New.
9630         (avr_mcu_types): Update.
9631         (avr_override_options): Use avr_arch_types table instead of switch.
9632         * avr.h (CPP_PREDEFINES): Die.
9633         (avr_base_arch_macro, avr_extra_arch_macro): New.
9634         (TARGET_CPU_CPP_BUILTINS): New.
9635         (CPP_SPEC, EXTRA_SPECS): Simplify.
9636         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
9637         CPP_AVR5_SPEC): Die.
9638
9639 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
9640
9641         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
9642         NETBSD_OS_CPP_BUILTINS_AOUT.
9643         (SUBTARGET_EXTRA_SPECS): Define.
9644         (CPP_SPEC): Use %(netbsd_cpp_spec).
9645
9646 2002-05-29  Richard Henderson  <rth@redhat.com>
9647
9648         * config/i386/i386.c (ix86_output_function_epilogue): New.
9649         (TARGET_ASM_FUNCTION_EPILOGUE): New.
9650         (pic_label_name): Remove.
9651         (pic_labels_used): New.
9652         (ix86_asm_file_end): Emit one pc load stub for each register used.
9653         (output_set_got): Generate deep pc load to any register.
9654         (ix86_select_alt_pic_regnum): New.
9655         (ix86_save_reg): Don't save pic register if we can find a valid
9656         call-clobbered replacement.
9657         (ix86_expand_prologue): If we found a valid replacement, renumber
9658         pic_offset_table_rtx.
9659         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
9660         pic_offset_table_rtx after reload.
9661         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
9662         * config/i386/i386.md (set_got): Make insn, not expander.
9663         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
9664
9665 2002-05-29  Richard Henderson  <rth@redhat.com>
9666
9667         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
9668         alignment for alloca.
9669
9670 2002-05-29  Richard Henderson  <rth@redhat.com>
9671
9672         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
9673         (print_operand_address): Only add rip for symbolic addresses
9674         for which we do not have another relocation type.
9675
9676 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
9677
9678         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
9679         (EXTRA_SPECS): Add netbsd_cpp_spec.
9680         (CPP_SPEC): Use %(netbsd_cpp_spec).
9681         (CPP_PREDEFINES): Remove.
9682         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
9683         (EXTRA_SPECS): Define.
9684         (CPP_SPEC): Use %(netbsd_cpp_spec).
9685         (CPP_PREDEFINES): Remove.
9686
9687 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9688
9689         PR preprocessor/6844
9690         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
9691         NUL.
9692
9693 2002-05-29  Eric Christopher  <echristo@redhat.com>
9694
9695         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
9696         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
9697
9698 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
9699
9700         * config/fr30/fr30.md: Remove previous restriction on splits.
9701         Enforce conformance through gen_lowpart and cont_int_operand.
9702         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
9703         as the assembler does not support ".bss".
9704
9705 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
9706
9707         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
9708         (CPP_PREDEFINES): Remove.
9709         (SUBTARGET_EXTRA_SPECS): Define.
9710         (CPP_SPEC): Use %(netbsd_cpp_spec).
9711         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
9712         (CPP_PREDEFINES): Remove.
9713         (SUBTARGET_EXTRA_SPECS): Define.
9714         (CPP_SPEC): Use %(netbsd_cpp_spec).
9715         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
9716         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
9717         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
9718         Add netbsd_cpp_spec.
9719         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
9720
9721 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
9722             Zack Weinberg <zack@codesourcery.com>
9723
9724         * cppexp.c (cpp_num): Move to cpplib.h.
9725         (CPP_ERROR): Remove.
9726         (interpret_float_suffix, interpret_int_suffix): New.
9727         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
9728         (cpp_classify_number, cpp_interpret_integer): New.
9729         (interpret_number): Remove.
9730         (eval_token): Update to use new routines.
9731         * cpphash.h (cpp_num_part): Move to cpplib.h.
9732         * cppinit.c (cpp_post_options): Set warn_long_long.
9733         * cpplib.h (struct cpp_options): Add warn_long_long.
9734         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
9735         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
9736         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
9737         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
9738         cpp_interpret_integer): New.
9739
9740 2002-05-29  Joel Sherrill <joel@OARcorp.com>
9741
9742         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
9743
9744 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
9745
9746         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
9747         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
9748         (CPP_SUBTARGET_SPEC): Define.
9749         (SUBTARGET_EXTRA_SPECS): Define.
9750         (CPP_SPEC): Remove.
9751
9752 2002-05-29  Chris Lattner  <sabre@nondot.org>
9753
9754         * ssa.c (rename_insn_1): Rename uses of undefined registers to
9755         prevent confusion if/when the register is defined.
9756
9757 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
9758
9759         PR target/6838
9760         * config/cris/cris.md: Fix typos and thinkos in comments.
9761         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
9762         second alternative.
9763         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
9764         ("*mov_sideqi_mem"): Similar, but for operand 3.
9765         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
9766         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
9767         Remove spurious mode specifier on operand 2.
9768
9769 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
9770
9771         * config/h8300/h8300-protos.h: Remove the prototype for
9772         o_operand.
9773         Add prototypes for single_one_operand and single_zero_operand.
9774         * config/h8300/h8300.c (o_operand): Remove.
9775         (single_one_operand): New.
9776         (single_zero_operand): Likewise.
9777         (print_operand): For 'V' operand, and the operand with 0xff.
9778         For 'V' and 'W' operands, do not and the bit position with 7.
9779         * config/h8300/h8300.md (various anonymous patterns): Replace
9780         use of exact_log2 with single_one_operand/single_zero_operand.
9781
9782 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
9783
9784         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
9785
9786 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
9787
9788         * config/s390/s390.c (legitimate_pic_operand_p): Do not
9789         accept symbolic LARL operands.
9790         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
9791         epilogue insns.
9792
9793 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
9794
9795         * config/s390/s390.md (cmpstr_64/31): Mark whole
9796         input registers as used.
9797
9798 2002-05-28  Richard Henderson  <rth@redhat.com>
9799
9800         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
9801         not current_function_uses_pic_offset_table and
9802         current_function_uses_const_pool; examine current_function_profile.
9803         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
9804         input to blockage if needed.
9805         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
9806         (legitimize_pic_address): Likewise.  Set regs_ever_live for
9807         pic_offset_table_rtx when invoked during reload.
9808         * config/i386/i386.h (FINALIZE_PIC): Remove.
9809         * config/i386/i386.md (tablejump): Reformat.  Do not set
9810         current_function_uses_pic_offset_table.
9811         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
9812         (blockage): Accept anything as operand 0.
9813
9814 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
9815
9816         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
9817         common CPP built-ins for all NetBSD a.out targets.
9818         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
9819         common CPP built-ins for all NetBSD ELF targets.
9820         * config/netbsd.h: Add missing notice.
9821         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
9822         for all NetBSD targets.
9823         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
9824         for all NetBSD targets using an LP64 code model.
9825         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
9826         NetBSD targets.
9827
9828 2002-05-28  Richard Henderson  <rth@redhat.com>
9829
9830         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
9831         update if UPDATE_LIFE_LOCAL.
9832
9833 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
9834
9835         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
9836
9837 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
9838                           Jason R. Thorpe <thorpej@wasabisystems.com>
9839
9840         config/sh reorganization to factor out endianness and coff:
9841
9842         * config/sh/little.h: New file.
9843         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
9844         defined, define to 0 to select big-endian.
9845         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
9846         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
9847         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
9848         * config/sh/t-be: New file.
9849         * config/sh/t-le: New file.
9850
9851         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
9852         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
9853         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
9854         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
9855         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
9856         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
9857         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
9858         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
9859         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
9860         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
9861         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
9862         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
9863         (LINK_SPEC): Define to SH_LINK_SPEC.
9864         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
9865         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
9866         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
9867         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
9868         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
9869         * config/sh/coff.h: New file.
9870         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
9871         (TARGET_OBJFMT_CPP_BUILTINS): Define.
9872         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
9873         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
9874         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
9875         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
9876         (PTRDIFF_TYPE): Likewise.
9877         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
9878         (CPP_PREDEFINES): Don't define.
9879         (TARGET_OBJFMT_CPP_BUILTINS): Define.
9880         (LINK_SPEC): Define to SH_LINK_SPEC.
9881         (LINK_EMUL_PREFIX): Redefine.
9882         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
9883         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
9884         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
9885         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
9886         (TARGET_OS_CPP_BUILTINS): Define.
9887         (TARGET_DEFAULT): Redefine.
9888         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
9889         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
9890         (LINK_SPEC): Don't redefine.
9891         (LINK_DEFAULT_CPU_EMUL): Redefine.
9892         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
9893         * sh.c (sh_asm_named_section): Don't declare / define.
9894         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
9895         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
9896         (sh64-*-elf* tm_file): Likewise.
9897         (sh-*-rtemself* tm_file): Likewise.
9898         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
9899         (sh-*-linux* tmake_file): Add sh/t-le.
9900         (sh-*-rtems* tm_file): Add sh/coff.h
9901         (sh-*-* tm_file): Likewise.
9902
9903 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
9904
9905         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
9906         CONSTANT_POOL_ADDRESS_P.
9907
9908         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
9909
9910 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
9911             Jeff Law <law@redhat.com>
9912
9913         * optabs.c (expand_binop): Fix nwords sign warnings.
9914         generate pseudo for add_optab.
9915
9916         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
9917         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
9918
9919 2002-05-28      Marc Espie <espie@openbsd.org>
9920
9921         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
9922         inherited from gas.h.
9923         (ASM_QUAD):  Undef.  OpenBSD does not support it.
9924
9925 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
9926
9927         * doc/install.texi (binaries): Change mingw binaries
9928         link to www.mingw.org.
9929
9930 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9931
9932         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
9933
9934 2002-05-28  Richard Henderson  <rth@redhat.com>
9935
9936         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
9937         bottom alignment for leaf functions.
9938
9939 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
9940
9941         * config/pa/milli32.S, config/pa/lib1funcs.asm,
9942         config/sparc/sol2-g1.asm: Delete unused files.
9943
9944 2002-05-28  Richard Henderson  <rth@redhat.com>
9945
9946         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
9947
9948         * flow.c (calculate_global_regs_live): Rename call_used to
9949         invalidated_by_call.  Initialize from regs_invalidated_by_call
9950         instead of call_used_regs.
9951
9952         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
9953         DECL_EXTERNAL.
9954
9955 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
9956
9957         * tree.h: Don't include real.h.
9958         Forward-declare struct realvaluetype.
9959         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
9960         contain it.
9961         (TREE_REAL_CST_PTR): New accessor.
9962         (TREE_REAL_CST): Update.
9963         * real.h: Include machmode.h.
9964         (realvaluetype): Make it struct realvaluetype, not a typedef.
9965         (build_real): Prototype here.
9966
9967         * tree.c: Include real.h.
9968         (build_real): Allocate the REAL_VALUE_TYPE as a separate
9969         object in GC memory, set TREE_REAL_CST_PTR to point to it.
9970         (build_real_from_int_cst): Use build_real.
9971         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
9972         REAL_CST.
9973
9974         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
9975         fold-const.c, print-tree.c, real.c: Include real.h.
9976         * Makefile.in: Update dependency lists.
9977
9978 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
9979
9980         * basic-block.h (last_basic_block): Declare.
9981         (expunge_block_nocompact): Declaration removed.
9982         (compact_blocks): Declare.
9983         * cfg.c (last_basic_block): New variable.
9984         (expunge_block_nocompact): Removed.
9985         (expunge_block): Do not compact basic blocks.
9986         (compact_blocks): New.
9987         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
9988         longer change.
9989         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
9990         last_basic_block.
9991         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
9992         real positions of blocks.
9993         (delete_unreachable_blocks): Simplified -- quadratic behavior now
9994         cannot occur.
9995         (cleanup_cfg): Compact blocks.
9996         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
9997         basic_block_info varray.
9998         (flow_delete_block): Comment update.
9999         (back_edge_of_syntactic_loop_p): Modify position check code.
10000         (verify_flow_info): Update checking.
10001         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
10002         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
10003         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
10004         indices no longer change.
10005         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
10006         last_basic_block.
10007         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
10008         * profile.c (branch_prob): Compact blocks.
10009         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
10010         last_basic_block.
10011
10012 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
10013
10014         * config/h8300/h8300.md (two anonymous patterns): New.
10015
10016 2002-05-28  David S. Miller  <davem@redhat.com>
10017
10018         * config/sparc/sparc.md (cpu): Tidy.
10019         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
10020         'trap'.
10021         (in_call_delay): Delete reference to 'return' type.
10022         (eligible_for_return_delay, in_return_delay, define_delay
10023         referencing those): Delete.
10024         (rest of file): Use new type attributes as appropriate.
10025         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
10026         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
10027         * config/sparc/ultra1_2.md (us1_single): New reservation.
10028         (us1_ialuX): Likewise.
10029         * config/sparc/ultra3.md (us3_single): Likewise.
10030         (us3_ialuX): Likewise.
10031         (us3_imul, us3_idiv): Tweak.
10032
10033 2002-05-28  Richard Henderson  <rth@redhat.com>
10034
10035         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
10036         STRING_CST.
10037
10038 2002-05-28  Richard Henderson  <rth@redhat.com>
10039
10040         * config.gcc: Obsolete mn10200.
10041
10042 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10043
10044         * cppexp.c (interpret_number): Optimize for single-digit
10045         and less-than-half-precision cases.
10046         (num_trim, num_positive, num_div_op): Cast constants.
10047
10048 2002-05-27  Bo Thorsen  <bo@suse.de>
10049
10050         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
10051         3.1 branch. The file was made by Jakub Jelinek.
10052         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
10053         support so multilib doesn't break. And don't define this at all
10054         when -Dinhibit_libc is used.
10055         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
10056         * config/i386/t-linux64: Implement full multilib support. Patch
10057         originally done by Andreas Jaeger and Jakub Jelinek.
10058
10059 2002-05-27  Roger Sayle  <roger@eyesopen.com>
10060
10061         * c-common.c: Add support for __attribute__((nothrow)) to specify
10062         that a function cannot throw an exception (using TREE_NOTHROW).
10063         (handle_nothrow_attribute): New function to process this attribute.
10064
10065         * doc/extend.texi: Document the new nothrow function attribute.
10066
10067 2002-05-27  H.J. Lu  (hjl@gnu.org)
10068
10069         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
10070         (num_positive): Likewise.
10071         (num_div_op): Likewise.
10072
10073 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10074
10075         * c-common.c (c_common_init): Always use intmax_t.
10076
10077 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10078
10079         * c-common.c (c_common_init): Use intmax_t for now.
10080
10081 2002-05-24  Andrew Haley  <aph@redhat.com>
10082
10083         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
10084         if T is a boolean type.
10085
10086 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10087
10088         * basic-block.h (last_basic_block): Defined as synonym for
10089         n_basic_blocks.
10090         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
10091         flow_depth_first_order_compute, flow_preorder_transversal_compute,
10092         flow_dfs_compute_reverse_init): Replaced relevant occurences of
10093         n_basic_blocks with last_basic_block.
10094         * cfgbuild.c (make_edges): Likewise.
10095         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
10096         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
10097         * combine.c (combine_instructions): Likewise.
10098         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
10099         iterative_dataflow_bitmap): Likewise.
10100         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
10101         calc_idoms, idoms_to_doms): Likewise.
10102         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
10103         Likewise.
10104         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
10105         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
10106         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
10107         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
10108         delete_null_pointer_checks, compute_code_hoist_vbeinout,
10109         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
10110         compute_store_table, build_store_vectors): Likewise.
10111         * haifa-sched.c (sched_init): Likewise.
10112         * ifcvt.c (if_convert): Likewise.
10113         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
10114         pre_edge_lcm, compute_available, compute_nearerout,
10115         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
10116         Likewise.
10117         * predict.c (estimate_probability, process_note_prediction,
10118         note_prediction_to_br_prob): Likewise.
10119         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
10120         * recog.c (split_all_insns, peephole2_optimize): Likewise.
10121         * regrename.c (copyprop_hardreg_forward): Likewise.
10122         * resource.c (init_resource_info): Likewise.
10123         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
10124         init_regions, schedule_insns): Likewise.
10125         * ssa-ccp.c (ssa_const_prop): Likewise.
10126         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
10127         * ssa.c (compute_dominance_frontiers,
10128         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
10129
10130         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
10131         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
10132         sizes consistently.
10133
10134 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
10135
10136         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
10137         new.
10138         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
10139         hoist_insn_after, hoist_insn_to_edge): New.
10140
10141 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
10142
10143         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
10144         (PROP_FINAL): Include.
10145         * flow.c (life_analysis, update_life_info,
10146         init_propagate_block_info, mark_set_1, mark_used_rgs):
10147         Support SCAN_DEAD_STORE.
10148
10149 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10150
10151         * c-common.c (c_common_init): Set CPP arithmetic precision.
10152         * cppexp.c (cpp_num_part): Move typedef ...
10153         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
10154         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
10155         (sanity_checks): Update.
10156
10157 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
10158
10159         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
10160         (mkheaders): New rule.
10161         (install-mkheaders): New rule.
10162         * configure.in (all_outputs): Add mkheaders.
10163         * configure: Regenerate.
10164         * mkheaders.in: New file.
10165
10166 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
10167
10168         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
10169
10170 2002-05-26  Andreas Jaeger  <aj@suse.de>
10171
10172         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
10173
10174 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
10175
10176         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
10177         right_shift): Remove.
10178         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
10179         HIGH_PART): New.
10180         (struct op): Use cpp_num.
10181         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
10182         num_part_mul, num_unary_op, num_binary_op, num_negate,
10183         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
10184         num_div_op, num_lshift, num_rshift, append_digit): New.
10185         (interpret_number, parse_defined, eval_token, reduce): Update
10186         for two-integer arithmetic.
10187         (binary_handler): New typedef.
10188         (optab): Update.
10189         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
10190         (_cpp_parse_expr, reduce): Update to handle two-integers.
10191         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
10192
10193 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10194
10195         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
10196         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
10197         branch insn into account, do not assume 1.
10198         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
10199         over single word insn.  Handle upper half of I/O space too.
10200         * config/avr/avr.md (*sbrx_branch): Use it.
10201         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
10202         (*sbix_branch, *sbix_branch_bit7): Likewise.
10203         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
10204         Use RTL peepholes to optimize register operand sign tests.
10205
10206 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10207
10208         * config/avr/avr.c (avr_asm_only_p): New variable.
10209         (avr_override_options): Set it here if AVR1.
10210         (asm_file_start): Test it here, report an error if set.
10211
10212 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
10213
10214         * alias.c: Fix formatting.
10215         * attribs.c: Likewise.
10216         * bb-reorder.c: Likewise.
10217         * bitmap.c: Likewise.
10218         * bitmap.h: Likewise.
10219         * builtins.c: Likewise.
10220
10221 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
10222
10223         * reload.c (find_valid_class): Accept new argument DEST,
10224         choose class accordingly.
10225         (push_reload): Update callers.
10226
10227 2002-05-26  Andreas Jaeger  <aj@suse.de>
10228
10229         * combine.c (combine_instructions): Do not indent #if for
10230         traditional C.
10231
10232 2002-05-25  Richard Henderson  <rth@redhat.com>
10233
10234         * c-pragma.c (apply_pragma_weak): Convert value identifier to
10235         string for decl_attributes.
10236         (handle_pragma_weak): Call assemble_alias if we're modifying
10237         an existing decl.
10238
10239 2002-05-25  Richard Henderson  <rth@redhat.com>
10240
10241         PR target/6788
10242         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
10243         using rtl instead of fprintf.
10244         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
10245         * config/sparc/sparc-protos.h: Update.
10246
10247 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
10248
10249         * Makefile.in (C_COMMON_H): Fix.
10250         Update other targets.
10251         * c-common.c: Don't include c-lex.h.
10252         (builtin_define_with_value): Make static and prototype.
10253         (builtin_define_std): Move from c-lex.h.
10254         * c-common.h (init_c_lex): Move from c-lex.h.
10255         * c-decl.c: Don't include c-lex.h.
10256         (make_pointer_declarator): Move from c-parse.in.
10257         * c-lex.c: Don't include c-lex.h.
10258         * c-lex.h: Remove.
10259         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
10260         (make_pointer_declarator): Move to c-decl.c.
10261         * c-pragma.c: Don't include c-lex.h.
10262         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
10263         * c-tree.h (make_pointer_declarator): New.
10264 doc:
10265         * passes.texi, tm.texi: Update.
10266 objc:
10267         * Make-lang.in: Update and correct.
10268         * objc-act.c: Don't include c-lex.h or cpplib.h.
10269 treelang:
10270         * treetree.c: Don't include c-lex.h.
10271 config:
10272         * darwin-c.c: Don't include c-lex.h.
10273         * c4x/c4x-c.c: Don't include c-lex.h.
10274         * c4x/t-c4x: Update.
10275         * i370/i370-c.c: Don't include c-lex.h.
10276         * i370/t-i370: Update.
10277         * i960/i960-c.c: Don't include c-lex.h.
10278         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
10279         * i960/t-960bare: Update.
10280         * i960/t-vxworks: Update.
10281         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
10282         * rs6000/t-darwin: Update.
10283         * rs6000/t-rs6000-c-rule: Update.
10284         * v850/v850-c.c: Don't include c-lex.h.
10285         * v850/v850.c: Don't include c-lex.h or cpplib.h.
10286
10287
10288 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
10289
10290         * tree.def: Fix typos.
10291         * doc/install.texi: Likewise.
10292
10293 2002-05-25  Richard Henderson  <rth@redhat.com>
10294
10295         * configure.in (HAVE_AS_TLS): Add ia64 test.
10296         * configure: Rebuild.
10297         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
10298         (override_options): Set it.
10299         (TARGET_HAVE_TLS): New.
10300         (sdata_symbolic_operand): Look for 's'.
10301         (tls_symbolic_operand): New.
10302         (ia64_expand_load_address): Abort for tls symbols.
10303         (gen_tls_get_addr): New.
10304         (gen_thread_pointer): New.
10305         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
10306         (rtx_needs_barrier): Add new unspecs.
10307         (ia64_encode_section_info): Handle tls symbols.
10308         (ia64_strip_name_encoding): Strip two encoding chars.
10309         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
10310         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
10311         (TARGET_OPTIONS): Add tls-size.
10312         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
10313         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
10314         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
10315         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
10316         (movsf, movdf): Likewise.
10317         (movdi_symbolic): Use match_scratch.  Don't split if we won't
10318         have a scratch availiable.
10319         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
10320         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
10321         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
10322         * config/ia64/ia64-protos.h: Update.
10323         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
10324         sdata_symbolic_operand.
10325         (ASM_OUTPUT_LABELREF): Strip two characters.
10326
10327 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
10328
10329         * combine.c (simplify_set): Remove an unnecessary subreg.
10330
10331 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10332
10333         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
10334
10335         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
10336
10337 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
10338
10339         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
10340
10341 2002-05-25  Roger Sayle  <roger@eyesopen.com>
10342
10343         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
10344         (cond (compare x y) 0) into the equivalent (cond x y).
10345
10346 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
10347
10348         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
10349
10350 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
10351
10352         * config.gcc: Remove all stanzas for previously obsoleted
10353         systems.  Where necessary, add explicit error stanzas to
10354         prevent removed systems from being misidentified as something
10355         else.  Begin a fresh obsoletions list, with the systems that
10356         were reprieved last round.
10357         * doc/install.texi: Remove all mention of dead targets.
10358         * fixinc/mkfixinc.sh: Likewise.
10359
10360         * config/arm/arm.h: Bit 31 of target_flags is no longer
10361         reserved.
10362
10363         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
10364         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
10365         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
10366         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
10367         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
10368         config/alpha/osf12.h, config/alpha/osf2or3.h,
10369         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
10370         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
10371         config/clipper/clipper-protos.h, config/clipper/clipper.c,
10372         config/clipper/clipper.h, config/clipper/clipper.md,
10373         config/clipper/clix.h, config/convex/convex-protos.h,
10374         config/convex/convex.c, config/convex/convex.h,
10375         config/convex/convex.md, config/convex/fixinc.convex,
10376         config/convex/proto.h, config/elxsi/elxsi-protos.h,
10377         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
10378         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
10379         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
10380         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
10381         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
10382         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
10383         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
10384         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
10385         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
10386         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
10387         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
10388         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
10389         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
10390         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
10391         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
10392         config/m68k/altos3068.h, config/m68k/apollo68.h,
10393         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
10394         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
10395         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
10396         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
10397         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
10398         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
10399         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
10400         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
10401         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
10402         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
10403         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
10404         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
10405         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
10406         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
10407         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
10408         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
10409         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
10410         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
10411         config/mips/dec-osf1.h, config/mips/elflorion.h,
10412         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
10413         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
10414         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
10415         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
10416         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
10417         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
10418         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
10419         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
10420         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
10421         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
10422         config/ns32k/sequent.h, config/ns32k/tek6000.h,
10423         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
10424         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
10425         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
10426         config/sparc/rtems.h, config/we32k/we32k-protos.h,
10427         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
10428         Delete file.
10429
10430 2002-05-24  Richard Henderson  <rth@redhat.com>
10431
10432         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
10433         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
10434         * config/i386/i386.c (tls_model_chars): Add leading space.
10435         (tls_symbolic_operand): Don't bias by 1.
10436         (legitimize_address): Don't unbias by 1.
10437
10438 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
10439
10440         * lcm.c (optimize_mode_switching): Change bb used as indices
10441         to bb->index.
10442
10443 2002-05-24  Richard Henderson  <rth@redhat.com>
10444
10445         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
10446         of update_life_info_in_dirty_blocks.
10447
10448 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
10449
10450         PR other/6782
10451         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
10452
10453 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10454
10455         PR preprocessor/6780
10456         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
10457
10458 2002-05-24  Jim Blandy  <jimb@redhat.com>
10459
10460         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
10461         entry with a type code of zero, marking the end of the compilation
10462         unit's macro info.
10463
10464 2002-05-24  Richard Henderson  <rth@redhat.com>
10465
10466         * varasm.c (asm_output_bss): Always output one byte.
10467         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
10468
10469 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
10470
10471         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
10472         namespace.
10473
10474 2002-05-24  Andreas Jaeger  <aj@suse.de>
10475
10476         * ggc-page.c (alloc_page): Cast variables of type size_t to
10477         unsigned long, adjust printf format string.
10478         (ggc_alloc): Likewise.
10479         (ggc_print_statistics): Likewise.
10480         (ggc_print_statistics): Correct printf format string for SCALE to
10481         use unsigned long.
10482
10483 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
10484
10485         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
10486
10487 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
10488             Zack Weinberg     <zack@codesourcery.com>
10489
10490         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
10491         quoted strings.
10492         * dwarf2out.c (lookup_filename): Properly quote filename in .file
10493         directive in assembly file.
10494         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
10495         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
10496         * config/pj/pj.h (ASM_FILE_START): Likewise.
10497         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
10498         * config/avr/avr.c (asm_file_end): Likewise.
10499         * toplev.c (output_quoted_string): Handle possibly signed plain
10500         char.
10501         * toplev.h (output_clean_symbol_name): Declare
10502         * toplev.c (output_clean_symbol_name): Define.
10503         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
10504         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
10505
10506 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
10507
10508         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
10509
10510 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
10511
10512         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
10513         of size of unsigned.
10514
10515 2002-05-23  Richard Henderson  <rth@redhat.com>
10516
10517         * configure.in (HAVE_AS_TLS): New test.
10518         * config.in, configure: Rebuild.
10519         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
10520         (ix86_tls_dialect_string, ix86_tls_dialect): New.
10521         (override_options): Set it.
10522         (tls_model_chars, tls_symbolic_operand): New.
10523         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
10524         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
10525         (local_exec_symbolic_operand): New.
10526         (get_pic_label_name): Merge into output_set_got.
10527         (ix86_asm_file_end): Emit pic_label_name if defined.
10528         (legitimate_constant_p, constant_address_p): New.
10529         (legitimate_pic_operand_p): New.
10530         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
10531         (legitimate_address_p): Likewise.
10532         (ix86_encode_section_info): Rename from i386_; handle tls decls.
10533         (ix86_strip_name_encoding): New.
10534         (get_thread_pointer): New.
10535         (legitimize_address): Handle tls symbols.
10536         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
10537         Remove UNSPEC_PLT.
10538         (struct machine_function): Add some_ld_name.
10539         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
10540         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
10541         (output_addr_const_extra): New.
10542         (maybe_get_pool_constant): New.
10543         (ix86_split_to_parts): Use it.
10544         (ix86_expand_move): Handle tls symbols.
10545         (ix86_tls_get_addr): New.
10546         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
10547         (TARGET_OPTIONS): Add tls-dialect.
10548         (CONSTANT_ADDRESS_P): Use new out-of-line function.
10549         (LEGITIMATE_CONSTANT_P): Likewise.
10550         (LEGITIMATE_PIC_OPERAND_P): Likewise.
10551         (TARGET_STRIP_NAME_ENCODING): New.
10552         (ASM_OUTPUT_LABELREF): New.
10553         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
10554         (OUTPUT_ADDR_CONST_EXTRA): New.
10555         (PREDICATE_CODES): Update.
10556         (ix86_tls_dialect, ix86_tls_dialect_string): New.
10557         * config/i386/i386.md: Regroup and renumber unspec constants.
10558         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
10559         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
10560         (tls_global_dynamic, tls_local_dynamic_base): New.
10561         (tls_local_dynamic_once): New.
10562         * config/i386/i386-protos.h: Update.
10563
10564 2002-05-23  Richard Henderson  <rth@redhat.com>
10565
10566         * genemit.c (gen_insn): Print file:lineno comment before function.
10567         (main): likewise.
10568         * gensupport.c (struct queue_elem): Add filename member.
10569         (queue_pattern): Initialize it; update all callers.
10570         (process_include): Don't free filename.
10571         (read_md_rtx): Set read_rtx_filename.
10572
10573 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
10574
10575         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
10576
10577 2002-05-23  Richard Henderson  <rth@redhat.com>
10578
10579         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
10580
10581 2002-05-23  Richard Henderson  <rth@redhat.com>
10582
10583         * doc/extend.texi (C++98 Thread-Local Edits): Update with
10584         commentary from Mark.
10585
10586 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
10587
10588         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
10589         Use FOR_EACH_BB macros to iterate over basic block chain.
10590         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
10591         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
10592         Likewise.
10593         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
10594         find_unreachable_blocks, create_edge_list, verify_edge_list,
10595         remove_fake_edges, add_noreturn_fake_exit_edges,
10596         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
10597         Likewise.
10598         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
10599         find_sub_basic_blocks): Likewise.
10600         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
10601         Likewise.
10602         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
10603         Likewise.
10604         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
10605         Likewise.
10606         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
10607         commit_edge_insertions, commit_edge_insertions_watch_calls,
10608         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
10609         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
10610         * conflict.c (conflict_graph_compute): Likewise.
10611         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
10612         df_modified_p, df_refs_unlink, df_dump): Likewise.
10613         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
10614         * final.c (compute_alignments): Likewise.
10615         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
10616         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
10617         count_or_remove_death_notes): Likewise.
10618         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
10619         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
10620         classic_gcse, compute_transp, cprop, compute_pre_data,
10621         compute_transpout, invalidate_nonnull_info,
10622         delete_null_pointer_checks_1, delete_null_pointer_checks,
10623         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
10624         compute_store_table, build_store_vectors, store_motion): Likewise.
10625         * global.c (global_conflicts, mark_elimination): Likewise.
10626         * graph.c (print_rtl_graph_with_bb): Likewise.
10627         * haifa-sched.c (sched_init): Likewise.
10628         * ifcvt.c (if_convert): Likewise.
10629         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
10630         compute_available, compute_nearerout, compute_rev_insert_delete,
10631         optimize_mode_switching): Likewise.
10632         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
10633         * predict.c (estimate_probability, note_prediction_to_br_prob,
10634         propagate_freq, counts_to_freqs, expensive_function_p,
10635         estimate_bb_frequencies): Likewise.
10636         * profile.c (instrument_edges, get_exec_counts,
10637         compute_branch_probabilities, compute_checksum, branch_prob,
10638         find_spanning_tree): Likewise.
10639         * recog.c (split_all_insns, peephole2_optimize): Likewise.
10640         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
10641         Likewise.
10642         * regclass.c (scan_one_insn, regclass): Likewise.
10643         * regmove.c (mark_flags_life_zones, regmove_optimize,
10644         record_stack_memrefs): Likewise.
10645         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
10646         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
10647         * resource.c (find_basic_block): Likewise.
10648         * sched-ebb.c (schedule_ebbs): Likewise.
10649         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
10650         find_single_block_region, find_rgns, schedule_insns)
10651         * sibcall.c (optimize_sibling_and_tail_recursive_call)
10652         * ssa-ccp.c (optimize_unexecutable_edges,
10653         ssa_ccp_df_delete_unreachable_insns): Likewise.
10654         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
10655         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
10656         rename_block, convert_to_ssa, compute_conservative_reg_partition,
10657         compute_coalesced_reg_partition, rename_equivalent_regs,
10658         convert_from_ssa): Likewise.
10659         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
10660         process_for_unwind_directive): Likewise.
10661
10662         * df.c (FOR_ALL_BBS): Removed.
10663         * gcse.c (struct null_pointer_info): Type of current_block field
10664         changed.
10665         (struct reg_avail_info): Type of last_bb field changed.
10666         * config/ia64/ia64.c (block_num): Removed.
10667         (need_copy_state): Type changed.
10668         (last_block): New.
10669
10670 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10671
10672         * cppinit.c (mark_named_operators): Split out from init_builtins.
10673         (cpp_finish_options): Call it from here instead.
10674
10675 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
10676
10677         * builtin-attrs.def: Update copyright years.
10678         (ATTR_NONNULL): New attribute identifier.
10679         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
10680         attribute tree lists.
10681         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
10682         format operand.
10683         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
10684         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
10685         attribute lists.  Chain the appropriate nonnull attribute.
10686         * c-format.c (check_format_arg): Remove null format string
10687         warning.
10688         * testsuite/gcc.dg/format/null-1.c: New test.
10689
10690 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10691
10692         * Makefile.in (ADAC): Define.
10693         (SYSLIBS): Define.
10694         (.SUFFIXES): Move before language makefile fragments.
10695         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
10696
10697 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
10698
10699         * varasm.c (make_decl_rtl): Don't allow weak variables to be
10700         placed in common.
10701
10702 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
10703
10704         * cfg.c (dump_flow_info): Print results of
10705         maybe_hot/probably_never_executed predicates.
10706         * toplev.c (open_dump_file): Print function frequency.
10707
10708 2002-05-23  David S. Miller  <davem@redhat.com>
10709
10710         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
10711         regsets.
10712
10713 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
10714
10715         * c-common.c (warn_nonnull): Declare.
10716         (c_common_attribute_table): Add "nonnull" attribute.
10717         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
10718         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
10719         check_function_arguments_recurse): New functions.
10720         * c-common.h (warn_nonnull): Declare extern.
10721         (check_function_arguments, check_function_arguments_recurse): New
10722         prototypes.
10723         * c-decl.c (c_decode_option): Add -Wnonnull option.
10724         * c-format.c (set_Wformat): Set warn_nonnull if enabling
10725         format checking.
10726         (format_check_context): New structure.
10727         (check_format_info_recurse): Remove recursion and rename to...
10728         (check_format_arg): ...this.  Update comment.
10729         (check_format_info): Use check_function_arguments_recurse.
10730         * c-typeck.c (build_function_call): Call check_function_arguments
10731         instead of check_function_format.
10732         * doc/extend.texi: Document "nonnull" attribute.
10733         * doc/invoke.texi: Docuemnt -Wnonnull option.
10734         * testsuite/gcc.dg/nonnull-1.c: New test.
10735         * testsuite/gcc.dg/nonnull-2.c: New test.
10736
10737 2002-05-23  David S. Miller  <davem@redhat.com>
10738
10739         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
10740         * cfgcleanup.c (cleanup_cfg): If it is set do not
10741         attempt to delete trivially dead insns.
10742         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
10743         * toplev.c (rest_of_compilation): Document non-trivial aspect
10744         the RTL before optimize_save_area_alloca is run.
10745
10746 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10747
10748         * c-lex.c (indent_level): Remove.
10749         (cb_file_change, c_lex): Remove indent level handling.
10750         * c-lex.h (indent_level): Remove.
10751         * input.h (struct file_stack): Remove indent_level.
10752         * toplev.c (push_srcloc): Remove indent_level handling.
10753
10754 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
10755
10756         PR target/6753
10757         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
10758         of x in constraints for clarity.
10759         (sse_mov?fcc split): abort if op2 == op3.
10760         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
10761         sse_movsfcc_const0_4): Add earlyclobber.
10762         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
10763         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
10764         Use Y instead of x in constraints.
10765
10766 2002-05-23  Richard Henderson  <rth@redhat.com>
10767
10768         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
10769         (C++98 Thread-Local Edits): New subsection.
10770
10771         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
10772         (ix86_arch): Set type to enum processor_type.
10773
10774         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
10775         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
10776
10777 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
10778
10779         * configure.in: Fix as version test for binutils 2.12.1 releases
10780         (without dates).
10781         * configure: Rebuilt.
10782
10783 2002-05-23  Richard Henderson  <rth@redhat.com>
10784
10785         * config/i386/i386.c (get_pic_label_name): New.
10786         (load_pic_register): Remove.
10787         (output_set_got): New.
10788         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
10789         * config/i386/i386.md (UNSPEC_SET_GOT): New.
10790         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
10791         (prologue_set_got, prologue_get_pc): Remove.
10792         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
10793         (builtin_setjmp_receiver): Use gen_set_got.
10794         * config/i386/i386-protos.h: Update.
10795
10796 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
10797
10798         * gcse.c (hash_expr): Do not use alias set for hashing.
10799
10800 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
10801
10802         * dbxout.c (dbxout_class_name_qualifiers): New function.
10803         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
10804
10805 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10806
10807         * cpperror.c (_cpp_begin_message): No special casing
10808         of CPP_FATAL_LIMIT.
10809         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
10810         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
10811         * cpplib.c (do_include_common): Use DL_ERROR.
10812         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
10813         (DL_ICE): Renumber.
10814         * fix-header.c (read_scan_file): Update.
10815
10816 2002-05-22  Richard Henderson  <rth@redhat.com>
10817
10818         * config/i386/i386.c (ix86_expand_call): New function, extracted
10819         from md call patterns.  Add pic_offset_table_rtx to
10820         CALL_INSN_FUNCTION_USAGE when needed.
10821         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
10822         (call_value_pop, call_value, untyped_call): Likewise.
10823         (call_exp, call_value_exp): Remove.
10824         * config/i386/i386-protos.h: Update.
10825
10826 2002-05-22  Richard Henderson  <rth@redhat.com>
10827
10828         * varasm.c (default_section_type_flags): Check for VAR_DECL
10829         before using DECL_THREAD_LOCAL.
10830
10831 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
10832
10833         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
10834         (STARTFILE_SPEC): Delete PE crt0.o.
10835         * config/rs6000/aix51.h: Same.
10836         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
10837         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
10838         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
10839         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
10840         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
10841
10842 2002-05-22  Richard Henderson  <rth@redhat.com>
10843
10844         * varasm.c (default_section_type_flags): Handle tls data and
10845         default sections.
10846         (default_unique_section): Handle tls sections.
10847
10848 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
10849
10850         * configure.in (CROSS): Define NATIVE_CROSS.
10851         * configure: Regenerate.
10852         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
10853         (startfile_prefix_spec): New var.
10854         (static_specs): Add startfile_prefix_spec.
10855         (do_spec_2): Split out from..
10856         (do_spec): ..here.
10857         (main): Process startfile_prefix_spec.
10858         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
10859         dynamic linker.
10860         (STARTFILE_PREFIX_SPEC): Define.
10861         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
10862         absolute paths.
10863
10864 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
10865
10866         * cpperror.c: Fix formatting.
10867         * cppexp.c: Likewise.
10868         * cppfiles.c: Likewise.
10869         * cpphash.c: Likewise.
10870         * cpphash.h: Likewise.
10871         * cppinit.c: Likewise.
10872         * cpplex.c: Likewise.
10873         * cpplib.c: Likewise.
10874         * cppmacro.c: Likewise.
10875         * cppmain.c: Likewise.
10876         * cppspec.c: Likewise.
10877
10878 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
10879
10880         * combine.c (force_to_mode): Use gen_int_mode.
10881         Don't clear CONST_INT bits outside of mode.
10882
10883 2002-05-22  Richard Henderson  <rth@redhat.com>
10884
10885         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
10886         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
10887
10888 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
10889
10890         PR c/6643
10891         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
10892         if DECL_SIZE_UNIT is INTEGER_CST.
10893
10894 2002-05-22  Richard Henderson  <rth@redhat.com>
10895
10896         * flow.c (life_analysis): Delete broken reg_label check.
10897
10898 2002-05-22  Richard Henderson  <rth@redhat.com>
10899
10900         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
10901         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
10902
10903 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
10904
10905         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
10906         (embed-bb.c): New rule.
10907         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
10908         * config/sh/embed_bb.c: Delete.
10909
10910 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
10911
10912         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
10913
10914 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
10915
10916         * config/h8300/h8300.md (*andorqi3): New.
10917
10918 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10919
10920         PR preprocessor/6517
10921         * Makefile.in: Update.
10922         * c-common.c (c_common_post_options): Add preprocessor
10923         errors to the error count.
10924         * c-lang.c (c_post_options): Kill.
10925         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
10926         * hooks.h: Add header guards.
10927         * langhooks-def.h: Include hooks.h.
10928         (LANG_HOOKS_POST_OPTIONS): Update.
10929         * langhooks.h (struct lang_hooks): Update post_options.
10930         * toplev.c (parse_options_and_default_flags): Update.
10931 objc:
10932         * objc-lang.c (objc_post_options): Kill.
10933         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
10934
10935 2002-05-21  Bruce Korb  <bkorb@gnu.org>
10936
10937         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
10938         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
10939         * fixinc/fixincl.x: regen.
10940
10941 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
10942
10943         * cfgbuild.c: Fix formatting.
10944         * cfg.c: Likewise.
10945         * cfgcleanup.c: Likewise.
10946         * cfglayout.c: Likewise.
10947         * cfgloop.c: Likewise.
10948         * cfgrtl.c: Likewise.
10949
10950 2002-05-21  Richard Henderson  <rth@redhat.com>
10951
10952         * c-common.h (enum rid): Add RID_THREAD.
10953         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
10954         (grokdeclarator): Grok __thread.
10955         * c-parse.in (reswords): Add __thread.
10956         (rid_to_yy): Add RID_THREAD.
10957
10958         * tree.h (DECL_THREAD_LOCAL): New.
10959         (struct tree_decl): Add thread_local_flag.
10960         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
10961         * tree.c (staticp): TLS variables are not static.
10962
10963         * target-def.h (TARGET_HAVE_TLS): New.
10964         * target.h (have_tls): New.
10965         * output.h (SECTION_TLS): New.
10966         * varasm.c (assemble_variable): TLS variables can't be common for now.
10967         (default_section_type_flags): Handle .tdata and .tbss.
10968         (default_elf_asm_named_section): Handle SECTION_TLS.
10969         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
10970
10971         * flags.h (flag_tls_default): Declare.
10972         * toplev.c (flag_tls_default): Define.
10973         (display_help): Display help for it.
10974         (decode_f_option): Set it.
10975
10976         * doc/extend.texi (Thread-Local): New node describing language-level
10977         thread-local storage.
10978         * doc/invoke.texi (-ftls-model): Document.
10979
10980         * fixinc/inclhack.def (thread_keyword): New.
10981         * fixinc/fixincl.x: Rebuild.
10982
10983 2002-05-21  Jeffrey A Law  <law@redhat.com>
10984
10985         * optabs.c (expand_binop): For double-word integer multiplies,
10986         do not compute intermediate results into something that is
10987         not a register (such as a SUBREG or MEM).
10988
10989         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
10990         (ix86_sched_reorder): Make sure to initialize scheduling
10991         data even when there's only one insn in the ready queue.
10992
10993 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
10994
10995         * genautomata.c (reserv_sets_hash_value): Fix a typo.
10996
10997 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
10998
10999         * genautomata.c (reserv_sets_hash_value): Define hash_value as
11000         set_el_t.  Transform the hash value into unsigned.
11001         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
11002         (transform_3): Add code to process `(A,B)+(D,E)'.
11003
11004 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
11005
11006         * reload1.c (do_output_reload): Run delete_output_reload
11007         only if optimizing.
11008
11009 2002-05-21  Roger Sayle  <roger@eyesopen.com>
11010
11011         PR middle-end/6600
11012         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
11013         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
11014         (can_store_by_pieces): ... and here to limit the largest mode used.
11015         Add a comment to document this function.
11016
11017 2002-05-21  Richard Henderson  <rth@redhat.com>
11018
11019         * flow.c (life_analysis): Fix test for deleted label.
11020
11021 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
11022
11023         * doc/tm.texi: Fix typo.
11024
11025 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
11026
11027         * c-common.c (c_common_init): Set options->unsigned_char from
11028         flag_signed_char.
11029         (cb_register_builtins): Define __STRICT_ANSI__ and
11030         __CHAR_UNSIGNED__ here...
11031         * cppinit.c (init_builtins): Not here.
11032         (cpp_create_reader): unsigned_char option defaults to 0, not
11033         !DEFAULT_SIGNED_CHAR.
11034         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
11035         and -funsigned-char.
11036
11037         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
11038         * cpphash.c (_cpp_init_hashtable): Don't set it.
11039         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
11040         directly.  Clarify comment.
11041
11042 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11043
11044         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
11045         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
11046         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
11047         BASIC_BLOCK (n_basic_blocks - 1).
11048         * cfganal.c (can_fallthru, flow_call_edges_add,
11049         flow_preorder_transversal_compute): Too.
11050         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
11051         find_sub_basic_blocks): Too.
11052         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
11053         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
11054         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
11055         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
11056         * combine.c (this_basic_block): Type changed to basic_block.
11057         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
11058         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
11059         get_last_value, distribute_notes, distribute_links): Too.
11060         * final.c (compute_alignments): Too.
11061         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
11062         * function.c (thread_prologue_and_epilogue_insns): Too.
11063         * gcse.c (compute_code_hoist_vbeinout): Too.
11064         * global.c (build_insn_chain): Too.
11065         * ifcvt.c (find_if_block, find_cond_trap): Too.
11066         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
11067         * regmove.c (regmove_optimize): Too.
11068         * resource.c (find_basic_block): Too.
11069         * sched-ebb.c (schedule_ebbs): Too.
11070         * ssa-dce.c (find_control_dependence, find_pdom): Too.
11071
11072 2002-05-21  Andreas Jaeger  <aj@suse.de>
11073
11074         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
11075
11076 2002-05-21  Richard Henderson  <rth@redhat.com>
11077
11078         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
11079         unspec names, not numbers.
11080
11081 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11082
11083         * doc/sourcebuild.texi: Mention snapshot-README and
11084         snapshot-index.html as needing updating for new front ends.
11085
11086 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11087
11088         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
11089         disabling checking, and avoid multiple evaluation of RTX.
11090
11091 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
11092
11093         * bitmap.c (bitmap_find_bit): Return early if we have the correct
11094         element cached.
11095
11096 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
11097
11098         * profile.c (gen_edge_profiler):  Set alias set before the memory is
11099         used.
11100
11101 2002-05-20  David S. Miller  <davem@redhat.com>
11102
11103         * cselib.c (max_value_regs): New.
11104         (cselib_lookup, cselib_invalidate_regno): Initialize it when
11105         adding new entries to the REG_VALUES table and we are dealing with
11106         a hard register.
11107         (clear_table): Initialize it.
11108         (cselib_invalidate_regno): Use it to determine which hard
11109         registers to scan when mode is not VOIDmode.
11110
11111 2002-05-20  Duraid Madina   <duraid@fl.net.au>
11112
11113         * tradcpp.c (fixup_newlines): Use old-style function header.
11114
11115 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
11116
11117         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
11118
11119 2002-05-20  H.J. Lu  (hjl@gnu.org)
11120
11121         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
11122
11123         * config/mips/mips.h (DFMODE_NAN): Defined.
11124         (SFMODE_NAN): Likewise.
11125
11126 2002-05-20  Dale Johannesen  <dalej@apple.com>
11127
11128         * combine.c (cant_combine_insn_p):  Back out my
11129         previous patch.
11130
11131 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
11132
11133         * params.c: Fix formatting.
11134         * params.h: Likewise.
11135         * predict.c: Likewise.
11136         * prefix.c: Likewise.
11137         * print-rtl.c: Likewise.
11138         * print-tree.c: Likewise.
11139         * profile.c: Likewise.
11140
11141 2002-05-20  H.J. Lu  (hjl@gnu.org)
11142
11143         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
11144
11145 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
11146
11147         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
11148         switches straight on to the assembler, do not abbreviate them.
11149         * config/arm/elf.h (ASM_SPEC): As above.
11150         * config/arm/semi.h (ASM_SPEC): As above.
11151         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
11152         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
11153         -mcpu=xscale on to the assembler by default.
11154         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
11155
11156 2002-05-20  Richard Henderson  <rth@redhat.com>
11157
11158         * cse.c (canon_hash): Reorder do_not_record test.  Always
11159         allow pic_offset_table_rtx.
11160
11161 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
11162
11163         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
11164         (expand_binop): Ditto (3 times).
11165
11166 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
11167
11168         * Makefile.in (distclean): Remove QMTest stuff.
11169         (QMTEST_PATH): New variable.
11170         (QMTESTFLAGS): Likewise.
11171         (QMTESTRUNFLAGS): Likewise.
11172         (QMTEST): Likewise.
11173         (QMTEST_GPP_TESTS): Likewise.
11174         (QMTEST_DIR): Likewise.
11175         (QMTEST_DIR/context): New target.
11176         (qmtest-g++): Likeise.
11177         (qmtest-gui): Likewise.
11178         (QMTEST_DIR/gpp-expected.qmr): Likewise.
11179
11180 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
11181
11182         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
11183         an altivec register if TARGET_ALTIVEC.
11184
11185         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
11186         to ALTIVEC_VECTOR_MODE.
11187         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
11188         (rs6000_va_arg): Vectors may go in registers if they are not
11189         altivec vectors.
11190
11191 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
11192
11193         * protoize.c: Fix formatting.
11194
11195 2002-05-19  Richard Henderson  <rth@redhat.com>
11196
11197         * gensupport.c (init_include_reader): Merge into ...
11198         (process_include): ... here.  Simplify composite path creation.
11199         Plug memory leaks.  Fix file/line number tracking.  Do not
11200         process_define_cond_exec.  Return void.
11201         (process_rtx): Don't check process_include return value.
11202
11203 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11204
11205         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
11206         fields.
11207         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
11208         traversing basic block chain.
11209         (create_basic_block_structure, create_basic_block): Declaration changed.
11210         (link_block, unlink_block): Declare.
11211         * cfg.c (entry_exit_blocks): Initialize new fields.
11212         (link_block, unlink_block): New.
11213         (expunge_block_nocompact): Unlink basic block.
11214         (dump_flow_info): Print prev_bb/next_bb fields.
11215         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
11216         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
11217         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
11218         * cfgrtl.c (create_basic_block_structure, create_basic_block,
11219         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
11220         (verify_flow_info): Check that list agrees with numbering.
11221
11222 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11223
11224         * c-common.c (preprocessing_asm): New macro.
11225         * c-lex.h (builtin_define, builtin_assert): Use pfile.
11226 doc:
11227         * tm.texi: Update.
11228 config/alpha:
11229         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
11230         (CPP_SPEC): Simplify.
11231         (TARGET_CPU_CPP_BUILTINS): Update.
11232         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
11233         (CPP_SPEC): Simplify.
11234         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
11235         (TARGET_OS_CPP_BUILTINS): Update.
11236         * osf.h (CPP_XFLOAT_SPEC): Kill.
11237         (TARGET_OS_CPP_BUILTINS): Update.
11238         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
11239         * osf5.h (CPP_XFLOAT_SPEC): Kill.
11240         * vms.h (CPP_SUBTARGET_SPEC): Kill.
11241         (TARGET_OS_CPP_BUILTINS): Update.
11242
11243 2002-05-19  Richard Henderson  <rth@redhat.com>
11244
11245         * varasm.c (default_binds_local_p): Fix typo.
11246
11247 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11248
11249         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
11250         CONST_INT operand to the correct mode after adding 1 to it.
11251
11252 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
11253
11254         * config.gcc (powerpc-wrs-windiss*): New target.
11255
11256 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11257
11258         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
11259         (ashrdi3): Use it.
11260
11261 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
11262
11263         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
11264         alphasort.
11265         * config.in: Regenerated.
11266         * configure: Regenerated.
11267
11268 2002-05-19  Richard Henderson  <rth@redhat.com>
11269
11270         * target-def.h (TARGET_BINDS_LOCAL_P): New.
11271         * target.h (struct gcc_target): Move boolean fields to the end.
11272         Add binds_local_p.
11273         * varasm.c (default_binds_local_p): New.
11274         * output.h: Declare it.
11275
11276         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
11277         * config/cris/cris.c (cris_encode_section_info): Likewise.
11278         * config/i386/i386.c (i386_encode_section_info): Likewise.
11279         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
11280         * config/sh/sh.c (sh_encode_section_info): Likewise.
11281
11282         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
11283         (TARGET_BINDS_LOCAL_P): New.
11284
11285 2002-05-19  Richard Henderson  <rth@redhat.com>
11286
11287         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
11288         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
11289         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
11290
11291         * toplev.c (display_help): Kill -a -ax help.
11292
11293         * config/1750a/1750a.h, config/alpha/alpha.h,
11294         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
11295         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
11296         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
11297         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
11298
11299         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
11300         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
11301
11302         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
11303         (ix86_output_function_block_profiler): Kill.
11304         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
11305         (m68hc11_function_block_profiler): Kill.
11306         * config/m68hc11/m68hc11-protos.h: Update.
11307         * config/m88k/m88k.c (output_block_profiler): Kill.
11308         (output_function_block_profiler): Kill.
11309         * config/m88k/m88k-protos.h: Update.
11310
11311 2002-05-19  Richard Henderson  <rth@redhat.com>
11312
11313         * system.h (STRIP_NAME_ENCODING): Poison it.
11314         * output.h (STRIP_NAME_ENCODING): Remove.
11315         (default_strip_name_encoding): Declare.
11316         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
11317         * target.h (strip_name_encoding): New.
11318         * varasm.c (default_strip_name_encoding): New.
11319
11320         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
11321         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
11322         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
11323         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
11324         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
11325         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
11326         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
11327         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
11328         config/v850/v850.h: Use the hook, not the macro.
11329
11330         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
11331         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
11332         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
11333         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
11334         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
11335         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
11336         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
11337         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
11338         config/v850/v850.c, config/v850/v850.h:
11339         Move STRIP_NAME_ENCODING to out-of-line function and add
11340         TARGET_STRIP_NAME_ENCODING.
11341
11342         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
11343         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
11344         with TARGET_STRIP_NAME_ENCODING referencing existing function;
11345         make function static.
11346
11347         * xcoffout.c: Include target.h
11348         * Makefile.in (xcoffout.o): Update.
11349
11350         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
11351         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
11352         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
11353         reloc argument unused.
11354         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
11355
11356         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
11357         STRIP_NAME_ENCODING docs.
11358
11359 2002-05-19  Andreas Jaeger  <aj@suse.de>
11360
11361         * gengenrtl.c: Add prototype for excluded_rtx.
11362
11363         * real.h: Add prototype for exact_real_truncate.
11364
11365 2002-05-18  Richard Henderson  <rth@redhat.com>
11366
11367         * system.h (ENCODE_SECTION_INFO): Poison it.
11368         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
11369         * target.h (encode_section_info): New.
11370         * varasm.c (make_decl_rtl, output_constant_def): Use it.
11371         * hooks.c (hook_tree_int_void): New.
11372         * hooks.h: Declare it.
11373
11374         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
11375         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
11376         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
11377         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
11378         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
11379         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
11380         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
11381         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
11382         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
11383         config/mcore/mcore-protos.h, config/mcore/mcore.c,
11384         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
11385         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
11386         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
11387         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
11388         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
11389         referencing existing function.  Make function static.
11390
11391         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
11392         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
11393         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
11394         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
11395         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
11396         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
11397         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
11398         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
11399         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
11400         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
11401         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
11402         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
11403         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
11404         Move ENCODE_SECTION_INFO to out-of-line function and add
11405         TARGET_ENCODE_SECTION_INFO.
11406
11407         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
11408         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
11409
11410         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
11411         from SUBTARGET_*
11412         (switch_to_section): Replace in_rdata case with in_readonly_data.
11413
11414         * config/h8300/h8300.c (h8300_encode_label): Make static.
11415         * config/h8300/h8300-protos.h: Update.
11416
11417         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
11418         from rs6000_encode_section_info; make static.
11419         (rs6000_xcoff_encode_section_info): New.
11420
11421         * config/v850/v850.c (v850_encode_data_area): Make static.
11422         * config/v850/v850-protos.h: Update.
11423
11424         * config/vax/vax.c: Include flags.h.
11425         (vms_select_section): Fix typo.
11426
11427         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
11428         ENCODE_SECTION_INFO docs.
11429
11430 2002-05-18  Richard Henderson  <rth@redhat.com>
11431
11432         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
11433         REGISTER_TARGET_PRAGMAS.
11434         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
11435
11436         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
11437
11438 2002-05-18  Richard Henderson  <rth@redhat.com>
11439
11440         * system.h (SELECT_RTX_SECTION): Poison.
11441         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
11442         * target.h (select_rtx_section): New.
11443         * varasm.c (output_constant_pool): Use it.
11444         (default_select_rtx_section, default_elf_select_rtx_section): New.
11445         * output.h: Declare them.
11446
11447         * config/darwin.h (SELECT_RTX_SECTION): Move ...
11448         * config/darwin.c (machopic_select_rtx_section): ... here.
11449         * config/darwin-protos.h: Update.
11450
11451         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
11452         * config/nextstep.c (machopic_select_rtx_section): ... here.
11453         (nextstep_select_section): Rename variable to avoid macro clash.
11454         * config/nextstep-protos.h: Update.
11455
11456         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
11457         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
11458         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
11459         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
11460         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
11461         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
11462         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
11463         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
11464         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
11465         (SELECT_RTX_SECTION): Remove.
11466
11467         * config/darwin.h, config/elfos.h, config/nextstep.h,
11468         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
11469         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
11470         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
11471         config/sparc/lynx.h, config/xtensa/xtensa.c
11472         (TARGET_ASM_SELECT_RTX_SECTION): New.
11473
11474         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
11475         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
11476         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
11477         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
11478         (ia64_aix_select_rtx_section): New.
11479         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
11480         redefining.
11481         * config/mips/mips.c (mips_select_rtx_section): Make static.
11482         Support ELF SHF_MERGE features.
11483         * config/mips/mips-protos.h: Update.
11484         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
11485         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
11486         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
11487         make static, fall back to default_elf_select_rtx_section.
11488         * config/rs6000/rs6000-protos.h: Update.
11489         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
11490         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
11491         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
11492         * config/romp/romp.c (romp_select_rtx_section): New.
11493         * config/s390/s390.c (s390_select_rtx_section): New.
11494         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
11495         declarations before target macro definition.
11496         (xtensa_emit_call): Use static buffer.
11497         (xtensa_select_rtx_section): New.
11498         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
11499         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
11500         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
11501
11502         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
11503         SELECT_RTX_SECTION docs.
11504
11505 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
11506
11507         * i386.md (movsi/movdi): Fix template.
11508         (sse2 patterns): Set attributes consistently.
11509
11510         * i386.md (pushqi2, ashrqi_*): Fix constraint.
11511
11512 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
11513
11514         * optabs.c (complex_part_zero_p): New.
11515         * (expand_cmplxdiv_straight): Use it.
11516         * (expand_cmplxdiv_wide): Ditto.
11517         * (expand_binop): Ditto.
11518
11519 2002-05-18  Richard Henderson  <rth@redhat.com>
11520
11521         * final.c (HAVE_READONLY_DATA_SECTION): New.
11522         (shorten_branches): Use it instead of ifdefs.
11523         * varasm.c (enum in_section): Add in_readonly_data.
11524         (text_section, data_section): Tidy.
11525         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
11526
11527         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
11528         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
11529         (READONLY_DATA_SECTION): Don't undef.
11530
11531         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
11532         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
11533         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
11534
11535         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
11536         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
11537         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
11538         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
11539
11540         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
11541         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
11542         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
11543         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
11544         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
11545         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
11546         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
11547         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
11548         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
11549
11550         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
11551         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
11552         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
11553         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
11554         config/pa/pa64-hpux.h, config/sparc/litecoff.h
11555         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
11556
11557         * config/elfos.h, config/netware.h, config/svr3.h,
11558         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
11559         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
11560         config/h8300/h8300.h, config/i386/i386-interix.h,
11561         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
11562         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
11563
11564         * config/elfos.h, config/netware.h, config/svr3.h,
11565         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
11566         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
11567         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
11568         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
11569
11570         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
11571         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
11572         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
11573         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
11574         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
11575         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
11576         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
11577         config/rs6000/sysv4.h, config/v850/v850.h
11578         (EXTRA_SECTIONS): Remove in_const/in_rdata.
11579         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
11580
11581         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
11582         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
11583         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
11584         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
11585         * config/alpha/alpha.c (alpha_start_function): Likewise.
11586         (alpha_write_linkage): Likewise.
11587         * config/m32r/m32r.c (m32r_select_section): Likewise.
11588         * config/m88k/m88k.c (m88k_select_section): Likewise.
11589         * config/mips/mips.c (mips_select_rtx_section): Likewise.
11590         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
11591         (rs6000_elf_select_section): Likewise.
11592         * config/v850/v850.c (v850_select_section): Likewise.
11593
11594         * config/1750a/1750a.h, config/i860/sysv3.h
11595         (READONLY_DATA_SECTION_ASM_OP): New.
11596         READONLY_DATA_SECTION_ASM_OP.
11597         * config/i386/interix.c, config/i386/winnt.c
11598         (i386_pe_unique_section): Always use .rdata prefix.
11599         * config/pa/som.h (readonly_data): Always switch to read-only section.
11600         (READONLY_DATA_SECTION): Predicate on flag_pic.
11601         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
11602         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
11603         (READONLY_DATA_SECTION): Update.
11604
11605 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
11606
11607         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
11608         is used without -Wformat.
11609         * c-common.h (warn_format_zero_length): Declare extern.
11610         * c-decl.c (warn_options): Add "format-zero-length".
11611         * c-format.c (warn_format_zero_length): Declare.
11612         (set_Wformat): Set warn_format_zero_length for -Wformat.
11613         (check_format_info): Only warn about zero-length formats if
11614         warn_format_zero_length is true.  Include the format type
11615         name in the warning message.
11616         * doc/invoke.texi: Document -Wformat-zero-length.
11617         * testsuite/gcc.dg/format/zero-length-1.c: New test.
11618
11619 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
11620
11621         * timevar.c: Fix formatting.
11622         * tlink.c: Likewise.
11623         * toplev.c: Likewise.
11624         * tree-dump.c: Likewise.
11625         * tree-inline.c: Likewise.
11626
11627 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
11628
11629         * cppinit.c (cpp_post_options): If preprocessed, turn off
11630         traditional.  If traditional, turn off column numbers.
11631         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
11632         * cpptrad.c (handle_newline): Update line_base.
11633         (skip_comment): Handle -Wcomment.
11634
11635 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
11636
11637         * cppinit.c (struct builtin): Remove unused fields.
11638         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
11639         (operator_array): New - was second half of builtin_array.
11640         (init_builtins): Simplify loop over builtin_array/operator_array.
11641
11642 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
11643
11644         * defaults.h (UNIQUE_SECTION): Remove.
11645         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
11646
11647 2002-05-17  Richard Henderson  <rth@redhat.com>
11648
11649         * expr.c (init_expr_once): Don't use start/end_sequence.
11650         Use rtx_alloc instead of emit_insn.
11651         * toplev.c (lang_dependent_init): Run init_expr_once here ...
11652         (lang_independent_init): ... not here.
11653
11654 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
11655
11656         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
11657
11658 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11659
11660         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
11661         for fixed registers, possibly used for global register variables.
11662         (initial_elimination_offset, avr_output_function_prologue,
11663         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
11664
11665 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11666
11667         * Makefile.in: Update for cpptrad.c.
11668         * cpphash.h (struct cpp_buffer): New members for buffer
11669         overlays.
11670         (struct cpp_reader): New members for traditional output.
11671         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
11672         * cppinit.c (cpp_create_reader): Set trad_line.
11673         (cpp_destroy): Free trad_out_base if used.
11674         (cpp_read_main_file): Overlay an empty buffer if traditional.
11675         (cpp_finish_options): Don't do builtins.
11676         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
11677         (cpp_handle_option): Handle it.
11678         * cpplex.c (continue_after_nul): New.
11679         (_cpp_lex_direct): Use handle_nul.
11680         * cpplib.h (struct cpp_options): New traditional option.
11681         * cpptrad.c: New file.
11682
11683 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
11684
11685         * c-common.c (c_common_init_options): Use C89 for Objective-C,
11686         and set the options flag.
11687         * cppinit.c (lang_flags): Remove objc.
11688         (lang_defaults): Remove OBJC and OBJCXX.
11689         (set_lang): Update.
11690         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
11691         (cpp_handle_option): Remove -+ and -lang-objc++.
11692         For ObjC, just set a flag.
11693         (print_help): Update.
11694         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
11695
11696 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11697
11698         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
11699         bootstrap with -mips3.
11700
11701 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
11702
11703         * final.c: Fix formatting.
11704         * fix-header.c: Likewise.
11705         * flow.c: Likewise.
11706         * fold-const.c: Likewise.
11707         * function.c: Likewise.
11708
11709 2002-05-17  David S. Miller  <davem@redhat.com>
11710
11711         PR c/6689, PR optimization/6615
11712         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
11713         and make it a pointer to rtx.  Update comments.
11714         (update_equiv_regs): When scanning for equivalences, record
11715         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
11716         it while making the equiv replacements.
11717
11718 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11719
11720         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
11721
11722 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
11723
11724         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
11725         when encoding visibility into SYMBOL_REF_FLAG.
11726
11727 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
11728
11729         * expr.c (force_operand): Fix reversed move.
11730
11731 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
11732
11733         * doc/install.texi (Testing): Mention two common DejaGnu warnings
11734         that can be ignored.
11735
11736 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11737
11738         * doc/install.texi (Final install): Recommend to install into a
11739         "clean" target directory.
11740
11741 2002-05-17  Richard Henderson  <rth@redhat.com>
11742
11743         * config/ia64/ia64.md: Use braced strings instead of quoted strings
11744         for code blocks.  Tidy whitespace.
11745
11746 2002-05-17  Richard Henderson  <rth@redhat.com>
11747
11748         * hooks.c (hook_tree_bool_false): New.
11749         * hooks.h: Declare it.
11750         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
11751         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
11752         * target.h (select_section, unique_section): New.
11753         (in_small_data_p): New.
11754         * varasm.c (resolve_unique_section): Use hooks instead of macros.
11755         (variable_section, output_constant_def_contents): Likewise.
11756         (default_select_section, default_unique_section): New.
11757         (categorize_decl_for_section, default_elf_select_section): New.
11758         * output.h: Declare them.
11759
11760         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
11761         (TARGET_ASM_SELECT_SECTION): New.
11762         (SELECT_SECTION): Move ...
11763         * config/darwin.c (machopic_select_section): ... here.
11764         * config/darwin-protos.h: Update.
11765
11766         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
11767         (SELECT_SECTION): Move ...
11768         * config/nextstep.c (nextstep_select_section): ... here.
11769         * config/nextstep-protos.h: Update.
11770
11771         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
11772         (TARGET_ASM_SELECT_SECTION): New.
11773         * config/svr3.h (SELECT_SECTION): Remove.
11774
11775         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
11776         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
11777         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
11778         (alpha_encode_section_info): Use it.
11779         * config/alpha/alpha-protos.h: Update.
11780         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
11781         (SELECT_SECTION, UNIQUE_SECTION): Remove.
11782         (TARGET_ASM_SELECT_SECTION): New.
11783         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
11784
11785         * config/arm/pe.h (UNIQUE_SECTION): Remove.
11786         (TARGET_ASM_UNIQUE_SECTION): New.
11787
11788         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
11789         (avr_unique_section): Rename from unique_section; make static.
11790         * config/avr/avr-protos.h: Update.
11791         * config/avr/avr.h (UNIQUE_SECTION): Remove.
11792
11793         * config/c4x/c4x.h (SELECT_SECTION): Remove.
11794
11795         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
11796         (TARGET_ASM_UNIQUE_SECTION): New.
11797         * config/i386/i386-interix.h: Likewise.
11798         * config/i386/win32.h: Likewise.
11799         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
11800         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
11801         * config/i386/sco5.h (SELECT_SECTION): Remove.
11802         (TARGET_ASM_SELECT_SECTION): New.
11803         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
11804
11805         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
11806         instead of SELECT_SECTION.
11807         * config/m68k/dpx2.h: Likewise.
11808         * config/rs6000/lynx.h: Likewise.
11809
11810         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
11811         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
11812         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
11813         (ia64_in_small_data_p): New.
11814         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
11815         (ia64_aix_select_section, ia64_aix_unique_section): New.
11816         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
11817         (SELECT_SECTION, UNIQUE_SECTION): Remove.
11818
11819         * config/m32r/m32r.h (SELECT_SECTION): Remove.
11820         (TARGET_ASM_SELECT_SECTION): New.
11821         * config/m32r/m32r.c (m32r_select_section): Take align argument.
11822         * config/m32r/m32r-protos.h: Update.
11823
11824         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
11825         (SELECT_SECTION): Move ...
11826         * config/m88k/m88k.c (m88k_select_section): ... here.
11827
11828         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
11829         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
11830         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
11831         (mcore_unique_section): Make static.
11832         * config/mcore/mcore-protos.h: Update.
11833
11834         * config/mips/elf.h (UNIQUE_SECTION): Remove.
11835         (TARGET_ASM_UNIQUE_SECTION): New.
11836         * config/mips/elf64.h: Likewise.
11837         * config/mips/iris6gld.h: Likewise.
11838         * config/mips/linux.h: Likewise.
11839         * config/mips/mips-protos.h: Update.
11840         * config/mips/mips.c (mips_select_section): Add align argument.
11841         * config/mips/mips.h (SELECT_SECTION): Remove.
11842         (TARGET_ASM_SELECT_SECTION): New.
11843
11844         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
11845         * config/mmix/mmix.c (mmix_select_section): Remove.
11846         (mmix_unique_section): Remove.
11847         * config/mmix/mmix-protos.h: Update.
11848
11849         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
11850         (SELECT_SECTION): Move ...
11851         * config/pa/pa.c (pa_select_section): ... here.
11852         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
11853
11854         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
11855         from rs6000_select_section and make static.
11856         (rs6000_elf_unique_section): Similarly.
11857         (rs6000_xcoff_select_section): From xcoff.h.
11858         (rs6000_xcoff_unique_section): Likewise.
11859         * config/rs6000/rs6000-protos.h: Update.
11860         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
11861         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
11862         * config/rs6000/xcoff.h: Likewise.
11863
11864         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
11865         (SELECT_SECTION): Move ...
11866         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
11867
11868         * config/v850/v850.h (SELECT_SECTION): Move ...
11869         * config/v850/v850.c (v850_select_section): ... here.
11870         (TARGET_ASM_SELECT_SECTION): New.
11871
11872         * config/vax/vms.h (SELECT_SECTION): Move ...
11873         * config/vax/vax.c (vms_select_section): ... here.
11874         (TARGET_ASM_SELECT_SECTION): New.
11875
11876         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
11877         for the target hooks.
11878
11879 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
11880
11881         * config/arm/arm.c (emit_multi_reg_push): Do not set
11882         RTX_FRAME_RELATED_P on the SEQUENCE.
11883
11884 2002-05-16  Richard Henderson  <rth@redhat.com>
11885
11886         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
11887         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
11888
11889 2002-05-16  Richard Henderson  <rth@redhat.com>
11890
11891         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
11892
11893         * config/ia64/ia64.c (saveable_obstack): Do not declare.
11894
11895 2002-05-16  Richard Henderson  <rth@redhat.com>
11896
11897         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
11898         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
11899         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
11900         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
11901         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
11902         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
11903         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
11904         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
11905         Revert "Basic block renumbering removal", and two followup patches.
11906
11907 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
11908
11909         * lcm.c (optimize_mode_switching): Revert previous change.
11910
11911 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11912
11913         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
11914         with only extant block numbers.
11915
11916 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
11917
11918         * lcm.c (optimize_mode_switching): Fix typo.
11919
11920 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
11921
11922         * flow.c (calculate_global_regs_live): Queue blocks in program order.
11923
11924 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11925
11926         * doc/install.texi (Configuration): Document PWDCMD.
11927
11928 2002-05-16  Dale Johannesen  <dalej@apple.com>
11929
11930         * combine.c (cant_combine_insn_p):  Reenable combinations
11931         involving hard regs unless CLASS_LIKELY_SPILLED_P.
11932
11933 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
11934
11935         * c-common.c (cb_register_builtins): Handle more built-ins
11936         here rather than in gcc.c specs.
11937         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
11938         (cpp_options): Pass -O flags even when only preprocessing.
11939         * toplev.c (set_fast_math_flags): New prototype.
11940         (fast_math_flags_set_p): New.
11941         (set_no_fast_math_flags): Remove.
11942         (decode_f_option): Update.
11943         * toplev.h (set_fast_math_flags): Update.
11944         (fast_math_flags_set_p): New.
11945         (set_no_fast_math_flags): Remove.
11946 config:
11947         * c4x/c4x.c (c4x_override_options): Update.
11948
11949 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
11950
11951         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
11952         Default-define here.
11953         (builtin_define_with_value): Can now wrap the expansion in
11954         quotation marks if such is wanted.
11955         (cb_register_builtins): Update calls to builtin_define_with_value.
11956         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
11957         here.
11958         (c_common_init): Set options->stdc_0_in_system_headers.
11959         * c-lex.h: Update prototype of builtin_define_with_value.
11960         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
11961         and REGISTER_PREFIX.
11962
11963         * cppinit.c (VERS, ULP, C, X): Kill.
11964         (builtin_array): Remove entries for __VERSION__,
11965         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
11966         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
11967         a constant.
11968         (init_builtins): Kill off a bunch of now-dead code.
11969         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
11970         -fno-leading-underscore.
11971         (cpp_handle_option): Remove code to set user_label_prefix.
11972         (cpp_post_options): Likewise.
11973
11974         * cpplib.h (struct cpp_options): Remove user_label_prefix.
11975         (stdc_0_in_system_headers): New.
11976         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
11977         stdc_0_in_system_headers) too to decide the value of __STDC__.
11978
11979         * tradcpp.c (user_label_prefix): Kill.
11980         (main): Remove code handling -f(no-)leading-underscore.
11981         (initialize_builtins): Don't define __REGISTER_PREFIX__
11982         or __USER_LABEL_PREFIX__.
11983         (install_value): Wrap compound statement in dummy loop so the
11984         macro works properly in an if statement.
11985
11986
11987 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
11988
11989         * loop.h (struct loop_info): Add member has_prefetch.
11990         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
11991         (prescan_loop): Initialize has_prefetch.
11992         (struct prefetch_info): Change prefetch_in_loop and
11993         prefetch_before_loop from bit fields to ints.
11994         (emit_prefetch_instructions): Several small fixes.
11995         (check_dbra_loop): Don't reverse loop that uses prefetch.
11996
11997 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11998
11999         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
12000         * configure.in: Likewise.
12001         * fixinc/check.tpl: Likewise.
12002         * fixinc/fixinc.dgux: Likewise.
12003         * fixinc/fixinc.svr4: Likewise.
12004         * fixinc/fixinc.winnt: Likewise.
12005         * fixinc/fixincl.sh: Likewise.
12006         * fixproto: Likewise.
12007         * configure: Regenerate.
12008
12009 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
12010
12011         Basic block renumbering removal:
12012         * basic_block.h (struct basic_block_def): Renamed index to sindex,
12013         added prev_bb and next_bb fields.
12014         (n_basic_blocks): Renamed to num_basic_blocks.
12015         (last_basic_block): New, index of last basic block.
12016         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
12017         traversing basic block chain.
12018         (BLOCK_NUM): index -> sindex.
12019         (create_basic_block_structure, create_basic_block): Declaration changed.
12020         (debug_num2bb): Declare.
12021         (expunge_block_nocompact): Declaration removed.
12022         (link_block, unlink_block, compact_blocks): Declare.
12023         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
12024         * cfg.c (entry_exit_blocks): Initialize new fields.
12025         (clear_edges, alloc_block, expunge_block, cached_make_edge,
12026         redirect_edge_pred, dump_flow_info, dump_edge_info,
12027         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
12028         free_aux_for_edges): Modified.
12029         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
12030         (expunge_block_nocompact): Removed.
12031         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
12032         find_unreachable_blocks, create_edge_list, print_edge_list,
12033         verify_edge_list, flow_edge_list_print, remove_fake_successors,
12034         remove_fake_edges, flow_reverse_top_sort_order_compute,
12035         flow_depth_first_order_compute, flow_preorder_transversal_compute,
12036         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
12037         flow_dfs_compute_reverse_execute): Modified.
12038         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
12039         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
12040         Modified.
12041         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
12042         merge_blocks_move_predecessor_nojumps,
12043         merge_blocks_move_successor_nojumps, merge_blocks,
12044         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
12045         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
12046         * cfglayout.c (skip_insns_after_block, label_for_bb,
12047         record_effective_endpoints, scope_to_insns_finalize,
12048         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
12049         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
12050         cfg_layout_duplicate_bb): Modified.
12051         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
12052         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
12053         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
12054         flow_loops_find, flow_loop_outside_edge_p): Modified.
12055         * cfgrtl.c (create_basic_block_structure, create_basic_block,
12056         flow_delete_block, compute_bb_for_insn, split_block,
12057         try_redirect_by_replacing_jump, redirect_edge_and_branch,
12058         force_nonfallthru_and_redirect, tidy_fallthru_edge,
12059         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
12060         commit_edge_insertions, commit_edge_insertions_watch_calls,
12061         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
12062         purge_all_dead_edges): Modified.
12063         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
12064         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
12065         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
12066         Modified.
12067         * conflict.c (conflict_graph_compute): Modified.
12068         * df.c (FOR_ALL_BBS): Removed.
12069         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
12070         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
12071         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
12072         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
12073         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
12074         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
12075         * final.c (compute_alignments, final_scan_insn): Modified.
12076         * flow.c (verify_local_live_at_start, update_life_info,
12077         update_life_info_in_dirty_blocks, free_basic_block_vars,
12078         delete_noop_moves, calculate_global_regs_live,
12079         initialize_uninitialized_subregs, allocate_bb_life_data,
12080         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
12081         mark_used_reg, count_or_remove_death_notes): Modified.
12082         * function.c (thread_prologue_and_epilogue_insns): Modified.
12083         * gcse.c (struct null_pointer_info): Change typo of current_block
12084         to basic_block.
12085         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
12086         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
12087         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
12088         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
12089         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
12090         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
12091         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
12092         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
12093         pre_delete, one_pre_gcse_pass, compute_transpout,
12094         invalidate_nonnull_info, delete_null_pointer_checks_1,
12095         free_code_hoist_mem, compute_code_hoist_vbeinout,
12096         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
12097         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
12098         compute_store_table, build_store_vectors, insert_insn_start_bb,
12099         insert_store, replace_store_insn, free_store_memory, store_motion):
12100         Modified.
12101         * global.c (global_alloc, global_conflicts, mark_elimination,
12102         build_insn_chain): Modified.
12103         * graph.c (print_rtl_graph_with_bb): Modified.
12104         * haifa-sched.c (sched_init): Modified.
12105         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
12106         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
12107         if_convert): Modified.
12108         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
12109         compute_insert_delete, pre_edge_lcm, compute_available,
12110         compute_farthest, compute_nearerout, compute_rev_insert_delete,
12111         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
12112         Modified.
12113         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
12114         * loop.c (loop_dump_aux): Modified.
12115         * predict.c (combine_predictions_for_insn, estimate_probability,
12116         last_basic_block_p, process_note_prediction, process_note_predictions,
12117         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
12118         expensive_function_p, estimate_bb_frequencies,
12119         compute_function_frequency): Modified.
12120         * print-rtl.c (print_rtx): Modified.
12121         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
12122         get_exec_counts, compute_branch_probabilities, compute_checksum,
12123         branch_prob, find_spanning_tree): Modified.
12124         * recog.c (split_all_insns, peephole2_optimize): Modified.
12125         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
12126         convert_regs_1, convert_regs_2, convert_regs): Modified.
12127         * regclass.c (scan_one_insn, regclass): Modified.
12128         * regmove.c (mark_flags_life_zones, regmove_optimize,
12129         combine_stack_adjustments): Modified.
12130         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
12131         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
12132         * reorg.c (dbr_schedule): Modified.
12133         * resource.c (find_basic_block, init_resource_info): Modified.
12134         * sbitmap.c (sbitmap_intersection_of_succs,
12135         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
12136         sbitmap_union_of_preds): Modified.
12137         * sched-deps.c (init_dependency_caches): Modified.
12138         * sched-ebb.c (schedule_ebbs): Modified.
12139         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
12140         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
12141         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
12142         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
12143         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
12144         ssa_const_prop): Modified.
12145         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
12146         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
12147         * ssa.c (remove_phi_alternative, find_evaluations,
12148         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
12149         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
12150         make_regs_equivalent_over_bad_edges,
12151         make_equivalent_phi_alternatives_equival,
12152         compute_conservative_reg_partition,
12153         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
12154         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
12155         Modified.
12156
12157 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
12158
12159         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
12160
12161 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
12162
12163         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
12164         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
12165         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
12166         calling CONSTANT_POOL_ADDRESS_P.
12167         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
12168         to decide whether to define __arm__ or __thumb.
12169         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
12170         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
12171
12172 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12173
12174         * config/arc/arc.h (CPP_PREDEFINES): Remove.
12175         (CPP_SPEC): Update.
12176         (TARGET_CPU_CPP_BUILTINS): New.
12177
12178 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
12179
12180         * cpphash.h (cpp_macro): Move here, and make expansion a union.
12181         * cppmacro.c (cpp_macro): Remove.
12182         (enter_macro_context, replace_args, warn_of_redefinition,
12183         _cpp_create_definition, cpp_macro_definition): Update.
12184
12185 2002-05-16  Jason Merrill  <jason@redhat.com>
12186
12187         * config/mips/mips.c (mips_output_external): Don't do sdata
12188         optimization for a variable with DECL_COMDAT set.
12189
12190 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
12191
12192         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
12193         Cleanups for accepting modifiers on pointers.
12194         Fix predicate typos.
12195         Allow long pointers as well as int pointers.
12196
12197 2002-05-15  Richard Henderson  <rth@redhat.com>
12198
12199         * varasm.c (merge_weak): Remove special case for extern and common.
12200
12201 2002-05-15  Matt Hiller  <hiller@redhat.com>
12202
12203         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
12204         XFAILing.
12205         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
12206         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
12207         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
12208         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
12209         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
12210         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
12211
12212 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
12213
12214         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
12215
12216 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
12217
12218         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
12219         ("altivec_mfvscr"): Read from VSCR.
12220
12221         Add vscr sets for the following insns: altivec_vctuxs,
12222         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
12223         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
12224         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
12225         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
12226         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
12227         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
12228         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
12229         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
12230         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
12231         altivec_vsum2sws, altivec_vsumsws.
12232
12233         * config/rs6000/rs6000.h: Add VSCR fixed register.
12234         (CALL_REALLY_USED_REGISTERS): Add vscr.
12235         (CALL_USED_REGISTERS): Same.
12236         (FIXED_REGISTERS): Same.
12237         (REG_ALLOC_ORDER): Same.
12238         (reg_class): Add VSCR_REGS.
12239         (REG_CLASS_NAMES): Same.
12240         (REG_CLASS_CONTENTS): Same.
12241         (VSCR_REGNO): New.
12242         (REGISTER_NAMES): Add vscr.
12243         (DEBUG_REGISTER_NAMES): Same.
12244         (ADDITIONAL_REGISTER_NAMES): Same.
12245         (FIRST_PSEUDO_REGISTER): Increment.
12246         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
12247
12248 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
12249
12250         * fold-const.c (fold): Fix a typo.
12251
12252 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
12253
12254         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
12255         comparison against the highest or lowest integer value before
12256         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
12257         transformation and that of an unsigned comparison against 0
12258         right after.
12259
12260 2002-05-15  Richard Henderson  <rth@redhat.com>
12261
12262         * varasm.c (merge_weak): Error for any weakening after definition.
12263         Adjust weakening after use warning to catch more cases.
12264         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
12265         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
12266
12267 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
12268
12269         * invoke.texi (-malign-double): Re-add lost warning.
12270
12271         * i386-protos.h (x86_output_mi_thunk): Declare.
12272         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
12273         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
12274
12275         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
12276         when flag_asynchronous_unwind_tables is set.
12277
12278         * flags.h (flag_reorder_functions): Declare.
12279         * function.c (prepare_function_start): Initialize frequnecy.
12280         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
12281         * Makefile.in (predict.o): Add dependency on target.h and params.h
12282         * defaults.h (HOT_TEXT_SECTION_NAME,
12283         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
12284         * predict.c (choose_function_section): New function.
12285         (estimate_bb_frequencies): Use it.
12286         * toplev.c (flag_reorder_functions): New global variable.
12287         (lang_independent_options): New.
12288         (parse_options_and_default_flags): Set.
12289         * varasm.c (assemble_start_function): Bypass functdion alignment
12290         for never executed functions.
12291         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
12292         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
12293         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
12294         Document.
12295
12296         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
12297
12298         * predict.c: Inlude profile.h
12299         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
12300         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
12301         Use the information about maximal counter in the program.
12302
12303         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
12304
12305         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
12306         probably_never_executed_bb_p): New functions.
12307         * cfgcleanup.c (outgoing_edges_match): Use them.
12308         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
12309         (maybe_hot_bb_p, probably_cold_bb_p,
12310         probably_never_executed_bb_p): New functions.
12311
12312         * function.h (function): Add new field function_frequency.
12313         * predict.c (compute_function_frequency): New function.
12314         (estimate_probability): Call it.
12315
12316 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
12317
12318         PR optimization/5172, optimization/5200
12319         * gcse.c (gcse_main): Disable store_motion.
12320
12321 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
12322
12323         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
12324         (c_common_nodes_and_builtins): Use it.
12325         (builtin_define_with_value): New function.
12326         (cb_register_builtins): Define __SIZE_TYPE__,
12327         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
12328         using builtin_define_with_value.  Use consistent notation when
12329         defining __GXX_WEAK__.
12330         (WCHAR_TYPE_SIZE): Don't redefine.
12331         (combine_strings): Don't use WCHAR_TYPE_SIZE.
12332
12333         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
12334         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
12335         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
12336         * tradcpp.c (initialize_builtins): Likewise.
12337         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
12338
12339         * c-lex.h (builtin_define_with_value): Prototype.
12340         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
12341         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
12342         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
12343
12344         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
12345         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
12346         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
12347         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
12348         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
12349         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
12350         config/sparc/sol2-bi.h, config/sparc/sparc.h:
12351         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
12352         to __SIZE_TYPE__ etc from all spec strings. When this makes
12353         extra specs empty, delete them.
12354
12355 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12356
12357         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
12358         for PA8000 or generating dwarf2 call frame information.
12359         (output_call): Remove DO_FRAME_NOTES check from return pointer
12360         optimization.
12361         (following_call): Return 0 when scheduling for PA8000 or generating
12362         dwarf2 call frame information.  Revise comment.
12363
12364 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
12365
12366 config/alpha:
12367         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
12368         and __IEEE_FP_INEXACT as appropriate.
12369         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
12370         (CPP_SPEC): Remove ieee defines.
12371         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
12372
12373 2002-05-14  Richard Henderson  <rth@redhat.com>
12374
12375         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
12376         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
12377
12378 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
12379
12380         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
12381         (CPP_SPEC): Update.
12382         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
12383         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
12384         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
12385         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
12386         (EXTRA_SPECS): Update.
12387         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
12388         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
12389         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
12390         define TARGET_OS_CPP_BUILTINS if necessary.
12391
12392 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
12393
12394         * gcc.c (cpp_options): Must pass -m* and -f* options
12395         to the front end even when only preprocessing.
12396         (cc1_options): Remove redundant -lang-c.
12397         * tradcpp.c (main): Ignore -m options.
12398 objc:
12399         * lang-specs.h: Similarly.
12400
12401 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
12402
12403         * genautomata.c (transform_3): Add code for transformation
12404         `(A,B,...)+C -> A+C,B,...'.
12405
12406 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
12407
12408         * final.c (end_final): Do not output profile_arcs constructor, when
12409         no functions are instrumented.
12410
12411 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
12412
12413         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
12414
12415 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12416
12417         * doc/install.texi: Remove special markup originally required for
12418         HTML generation with texi2html.
12419
12420 2002-05-14  Andreas Schwab  <schwab@suse.de>
12421
12422         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
12423         SELECT_SECTION.
12424         (UNIQUE_SECTION): Define to get small data correctly.
12425
12426         * varasm.c (resolve_unique_section): Add third parameter
12427         flag_function_or_data_sections and use it instead of
12428         flag_function_sections.
12429         (assemble_start_function): Pass flag_function_sections.
12430         (asm_emit_uninitialised): Pass flag_data_sections.
12431         (assemble_variable): Likewise.
12432
12433 2002-05-14  Richard Henderson  <rth@redhat.com>
12434
12435         * config/i386/i386.md: Use define_constants for unspec numbers.
12436         * config/i386/i386.c: Likewise.
12437
12438 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
12439
12440         * doc/contrib.texi: Update my entry.
12441
12442 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
12443
12444         * fixinc/inclhack.def (winidss_valist): Limit applicability.
12445         * fixinc/fixincl.x: Regenerated.
12446         * fixinc/tests/base/math.h: Update.
12447         * fixinc/tests/base/testing.h: Likewise.
12448
12449 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
12450
12451         * genattr.c (gen_attr): Don't emit a comma after the last
12452         enumerator.
12453
12454 2002-05-13  Richard Henderson  <rth@redhat.com>
12455
12456         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
12457         by non-local gotos.
12458         * recog.c (peephole2_optimize): Likewise.
12459
12460 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
12461
12462         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
12463         input to O_BINARY.
12464
12465 2002-05-13  Jeffrey A Law  (law@redhat.com)
12466
12467         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
12468         Update prototype and callers.
12469         (propagate_one_insn): Stack pointer adjustments kill MEMs on
12470         the mem_set_list which reference the stack pointer, as do
12471         calls to constant functions as they may clobber outgoing
12472         argument space.
12473
12474         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
12475
12476         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
12477         (ia32_multipass_dfa_lookahead): New function.
12478
12479 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
12480
12481         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
12482         (translate_options): Remove 'V'.
12483         (process_command): Similarly.
12484 doc:
12485         * invoke.texi: Remove documentation of 'V'.
12486
12487 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
12488
12489         * config/s390/linux.h: Revert 2002-04-22 changes.
12490
12491 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
12492
12493         * config/fr30/fr30.md: Only allow splits of immediate loads
12494         if the destination is a register.
12495
12496 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
12497
12498         * Makefile.in (c-common.o, cppinit.o): Update.
12499         * c-common.c: Include except.h.
12500         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
12501         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
12502         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
12503         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
12504         CPP_PREDEFINES): Handle here.
12505 config:
12506         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
12507         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
12508         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
12509         TARGET_OS_CPP_BUILTINS.
12510         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
12511         (CPP_SPEC, EXTRA_SPECS): Update.
12512         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
12513         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
12514         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
12515         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
12516         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
12517 doc:
12518         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
12519         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
12520
12521 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
12522
12523         * emit-rtl.c (global_rtl): Update comment.
12524         (const_double_htab, const_double_htab_hash,
12525         const_double_htab_hash, lookup_const_double): New.
12526         (const_int_htab_hash, const_int_htab_eq): Remove const
12527         qualifiers, which cause tons of warnings with RTL checking on.
12528         (gen_rtx_CONST_DOUBLE): Deleted.
12529         (const_double_from_real_value): New function - bears some
12530         resemblance to the former immed_real_const_1.
12531         (immed_double_const): Moved here from varasm.c and
12532         simplified.
12533         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
12534         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
12535         (gen_rtx): Use immed_double_const.
12536         (init_emit_once): Initialize the const_double_htab.  Use
12537         REAL_VALUE_FROM_INT where possible.  Can now use
12538         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
12539         * varasm.c (struct varasm_status): Remove x_const_double_chain.
12540         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
12541         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
12542         (init_varasm_status, mark_varasm_status): Don't touch
12543         x_const_double_chain.
12544
12545         * output.h: Delete prototype for clear_const_double_mem.
12546         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
12547         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
12548         const_double_from_real_value, not immed_real_const_1, and use
12549         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
12550         CONST_DOUBLE_ATOF.
12551         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
12552         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
12553         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
12554         (gen_rtx_REG): Second arg is unsigned.
12555
12556         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
12557         (excluded_rtx): New, return true for CONST_DOUBLE.
12558         (genmacro): Write nothing for excluded codes.
12559         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
12560         * expr.c (expand_expr): Likewise.
12561         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
12562         CONST_DOUBLE_CHAIN.
12563         * toplev.c (rest_of_compilation): Don't call
12564         clear_const_double_mem.
12565
12566         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
12567         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
12568         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
12569         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
12570         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
12571         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
12572         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
12573         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
12574
12575 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12576
12577         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
12578
12579 2002-05-12  Tom Tromey  <tromey@redhat.com>
12580
12581         * tree.h (copy_node): Don't mention TREE_PERMANENT.
12582
12583 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
12584
12585         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
12586         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
12587         * gensupport.h: Prototype new routines.
12588         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
12589         use of printf.
12590         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
12591         (next_comma_elt): Use scan_comma_elt.
12592
12593         * config/i386/i386.md: Use new attribute notation to break up
12594         long lines in define_attr forms.
12595
12596 2002-05-12  Richard Henderson  <rth@redhat.com>
12597
12598         * expr.c (compress_float_constant): New.
12599         (emit_move_insn): Use it.
12600         (float_extend_from_mem): New.
12601         (init_expr_once): Initialize it.
12602         * real.c (exact_real_truncate): New.
12603
12604         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
12605         dropped into memory; penalize for size.
12606         (RTX_COSTS): FLOAT_EXTEND is free.
12607         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
12608         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
12609
12610 2002-05-12  Richard Henderson  <rth@redhat.com>
12611
12612         * profile.h (profile_info): Add missing extern to declaration.
12613         * profile.c (profile_info): Define it.
12614
12615 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12616
12617         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
12618         used for DImode and TImode.
12619
12620 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
12621
12622         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
12623         fake a newline.
12624
12625 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
12626
12627         * config/rs6000/rs6000.c (rs6000_default_long_calls,
12628         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
12629         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
12630         (rs6000_override_options): Handle -m(no-)longcall.
12631         (init_cumulative_args, output_mi_thunk): Check for both
12632         longcall and shortcall attributes on the function.
12633         (rs6000_attribute_table): Add "shortcall".
12634         (rs6000_handle_longcall_attribute): Update comment.
12635         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
12636         altivec_expand_ternop_builtin): Add default clauses to switches
12637         to silence warnings.
12638
12639         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
12640         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
12641         (TARGET_OPTIONS): Add longcall and no-longcall.
12642
12643         * config/rs6000/rs6000.md (call_nonlocal_sysv,
12644         call_value_nonlocal_sysv): Split by alternatives.  One pair
12645         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
12646         the call cookie.  The other pair accepts only LR/CTR and has
12647         no restriction.
12648
12649         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
12650         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
12651         tmake_file.
12652         * config/rs6000/rs6000-c.c: New file.
12653         * config/rs6000/t-rs6000-c-rule: New file.
12654         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
12655         Prototype rs6000_pragma_longcall.
12656
12657         * doc/extend.texi: Document shortcall attribute.
12658         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
12659
12660 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12661
12662         * reorg.c (dbr_schedule): Remove unnecessary test.
12663
12664 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
12665
12666         * i386.md (testsi to testqi spliters): New.
12667
12668         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
12669
12670         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
12671
12672         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
12673
12674         * basic-block.h: New flag EDGE_CAN_FALLTHRU
12675         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
12676         that can be made fallthru.
12677
12678         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
12679
12680         * cfglayout.c (cleanup_unconditional_jumps): New static function.
12681         (cfg_layout_initialize): Use it.
12682
12683 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12684
12685         * config/avr/avr.c (avr_mcu_types): Update supported devices.
12686         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
12687         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
12688
12689 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
12690
12691         * dbxout.c: Fix formatting.
12692         * dependence.c: Likewise.
12693         * df.c: Likewise.
12694         * diagnostic.c: Likewise.
12695         * doloop.c: Likewise.
12696         * dominance.c: Likewise.
12697         * doschk.c: Likewise.
12698         * dwarf2asm.c: Likewise.
12699         * dwarf2out.c: Likewise.
12700         * dwarfout.c: Likewise.
12701
12702 2002-05-10  Richard Henderson  <rth@redhat.com>
12703
12704         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
12705         Convert integers constants as needed.  Replace "nwords" field with
12706         "sizeof_bb".
12707         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
12708         * function.h: Fix typo in comment.
12709         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
12710
12711 2002-05-10  Roger Sayle  <roger@eyesopen.com>
12712
12713         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
12714         into the equivalent (signed char)c > 0.
12715
12716 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
12717
12718         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
12719         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
12720         (struct prefetch_info): Fix spelling of member bytes_accessed.
12721         (emit_prefetch_instructions): Make dump messages more regular;
12722         restructure code to add more dump messages; use new macros for
12723         heuristics. (There are no code generation changes in any of this).
12724
12725 2002-05-10  David S. Miller  <davem@redhat.com>
12726
12727         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
12728         (struct rtx_def): Update unchanging flag comment.
12729         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
12730         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
12731         to be handled to INSN too.
12732         (dbr_schedule): Likewise.
12733         * resource.c (next_insn_no_annul): Likewise.
12734
12735         * cse.c (rtx_cost): Remove multiplication by power of 2 special
12736         casing.
12737
12738 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12739
12740         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
12741         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
12742         (possibly) work around broken /bin/sh.
12743
12744 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12745
12746         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
12747         . as N64/N32 libgcc_s.so subdirs.
12748
12749 2002-05-10  David S. Miller  <davem@redhat.com>
12750
12751         * config/sparc/sparc.md: Use define_constants for unspec numbers.
12752
12753         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
12754         more accurately.
12755         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
12756         comment.
12757         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
12758         * doc/rtl.texi: Document these macros more accurately.
12759         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
12760         JUMP_INSNs and CALL_INSNs.
12761         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
12762         or INSN_FROM_TARGET_P if the code is appropriate.
12763
12764 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
12765
12766         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
12767         before using SYMBOL_REF_FLAG (addr).
12768
12769         * config/avr/avr-protos.h (avr_io_address_p): Declare.
12770         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
12771         Make non-static.  Update all callers.
12772         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
12773         New insns to clear/set/test a single bit in I/O address space.
12774
12775 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12776
12777         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
12778
12779 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12780
12781         * Makefile.in: Update.
12782         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
12783         builtin_define_std): New.
12784         (c_common_init): Register CPP builtins callback.
12785         * c-common.h (flag_iso, flag_undef): New.
12786         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
12787         * c-lex.c: Don't include target.h.
12788         (cb_register_builtins): Move to c-common.c.
12789         (init_c_lex): Don't register hook here.
12790         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
12791         (cpp_define, cpp_assert): Remove.
12792         * gcc.c (cc1_options): Pass -undef to front end.
12793         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
12794         (TARGET_INITIALIZER): Update.
12795         * target.h (struct cpp_reader): Don't predeclare.
12796         (struct gcc_target): Remove cpp builtin hook.
12797         * tree.c (default_register_cpp_builtins): Remove.
12798 doc:
12799         * tm.texi: Update.
12800
12801 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12802
12803         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
12804
12805 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12806
12807         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
12808         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
12809
12810 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
12811
12812         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
12813         * config/sparc/libgcc-sparc-glibc.ver: New file.
12814         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
12815         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
12816
12817 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
12818
12819         PR target/6429
12820         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
12821         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
12822         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
12823         base multilibs.
12824         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
12825         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
12826         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
12827         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
12828
12829 2002-05-09  Richard Henderson  <rth@redhat.com>
12830
12831         * config/ia64/ia64.md: Use define_constants for unspec numbers.
12832         * config/ia64/ia64.c: Likewise.
12833
12834 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
12835
12836         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
12837         (save_restore_insns): Likewise.
12838         (mips_expand_prologue, mips_expand_epilogue): Update callers.
12839         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
12840
12841 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
12842
12843         * athlon.md, k6.md, pentium.md, ppro.md): New files.
12844         * i386.md: Move scheduling information into new files.
12845
12846         * i386.md (type attribute): Add "rotate" for rotate insns.
12847         (rotate insns): Set type to "rotate".
12848         (various attributes and function units): Treat rotate like shift.
12849         (pent_pair attribute): Only rotates by one bit position are
12850         pairable.
12851         (sbb insns): Explicitly set pent_pair attribute on a couple
12852         that were missing it.
12853
12854 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
12855
12856         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
12857         make sure that buffer starts on odd word address.
12858         (sh_va_arg): Skip odd fp registers when reading a double precision
12859         value.
12860
12861 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12862
12863         * tree.h (preserve_data, object_permanent_p, type_precision):
12864         Remove.
12865
12866 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
12867
12868         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
12869         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
12870 doc:
12871         * cpp.texi: Update for removal of obsolete features.
12872
12873 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
12874                           Jeffrey A Law  (law@redhat.com)
12875
12876         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
12877         the DFA interface for Pentium processors.
12878         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
12879         (attr_pent_pair, ix86_pent_find_pair): Remove.
12880         (ix86_sched_reorder_pentium): Remove.
12881         (ix86_sched_reorder): Remove reordering for Pentium.
12882         * i386.md (Pentium scheduling): Rewrite using DFA description.
12883
12884 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
12885
12886         * cfganal.c (can_fallthru): Fix fast path.
12887         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
12888         with edges to the next block.
12889
12890 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
12891                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
12892
12893         * final.c (end_final): Use C trees to output data structures for profiling.
12894
12895         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
12896         (profile.o): New dependency profile.h
12897         (final.o): New dependency profile.h
12898         * profile.h: New file. New global structure profile_info.
12899         * final.h (count_edges_instrumented_now): Declare.
12900         (current_function_cfg_checksum): Declare.
12901         (function_list): New structure.
12902         (functions_head, functions_tail): New static variables.
12903         (end_final): Emits more data, removed some -ax stuff.
12904         (final): Stores function names and chcksums.
12905         * gcov-io.h (__write_gcov_string): New function.
12906         (__read_gcov_string): New function.
12907         * gcov.c (read_profile): New function.
12908         (create_program_flow_graph): Uses read_profile instead of reading
12909         da_file.
12910         (read_files): Removed da_file checking, it's done by read_profile now.
12911         * libgcc2.c (bb_function_info): New structure.
12912         (bb): New field in structure, removed some -ax stuff.
12913         (__bb_exit_func): Changed structure of da_file.
12914         * profile.c (count_edges_instrumented_now): New global variable.
12915         (current_function_cfg_checksum): New global variable.
12916         (max_counter_in_program): New global variable.
12917         (get_exec_counts): New function.
12918         (compute_checksum): New function.
12919         (instrument_edges): Sets count_edges_instrumented_now.
12920         (compute_branch_probabilities): Uses get_exec_counts instead of
12921         reading da_file.
12922         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
12923         (init_branch_prob): Removed da_file checking, done in get_exec_counts
12924         now.
12925         (end_branch_prob): Removed da_file checking, done in get_exec_counts
12926         now.
12927         * gcov.texi: Updated information about gcov file format.
12928
12929 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
12930
12931         * sbitmap.c: Fix formatting.
12932         * scan.c: Likewise.
12933         * scan-decls.c: Likewise.
12934         * sched-deps.c: Likewise.
12935         * sched-ebb.c: Likewise.
12936         * sched-rgn.c: Likewise.
12937         * sched-vis.c: Likewise.
12938         * sdbout.c: Likewise.
12939         * sibcall.c: Likewise.
12940         * simplify-rtx.c: Likewise.
12941         * ssa.c: Likewise.
12942         * ssa-ccp.c: Likewise.
12943         * ssa-dce.c: Likewise.
12944         * stmt.c: Likewise.
12945         * stor-layout.c: Likewise.
12946         * stringpool.c: Likewise.
12947
12948 2002-05-09  David S. Miller  <davem@redhat.com>
12949
12950         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
12951
12952 2002-05-07  David S. Miller  <davem@redhat.com>
12953
12954         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
12955         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
12956         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
12957         library implementation clobbers the output before the inputs
12958         are fully consumed, use stack temporary for the output.
12959
12960 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
12961
12962         * config/netbsd.h (CPP_SPEC): Remove.
12963         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
12964         * config/i386/netbsd.h (CPP_SPEC): Define.
12965         * config/ns32k/netbsd.h (CPP_SPEC): Define.
12966         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
12967         * config/sparc/netbsd.h (CPP_SPEC): Define.
12968         * config/vax/netbsd.h (CPP_SPEC): Define.
12969
12970 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
12971
12972         * read-rtl.c: Fix formatting.
12973         * real.c: Likewise.
12974         * recog.c: Likewise.
12975         * regclass.c: Likewise.
12976         * regmove.c: Likewise.
12977         * reg-stack.c: Likewise.
12978         * reload1.c: Likewise.
12979         * reload.c: Likewise.
12980         * resource.c: Likewise.
12981         * rtlanal.c: Likewise.
12982         * rtl.c: Likewise.
12983         * rtl-error.c: Likewise.
12984
12985 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12986
12987         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
12988         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
12989
12990 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
12991
12992         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
12993         use __SSE2__ macro instead.
12994         * config/i386/xmmintrin.h: Likewise.
12995
12996 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
12997
12998         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
12999         and use it in all invocations of these macros.  Clean up comments.
13000         * rtl.c (rtl_check_failed_flag): Add an argument for the name
13001         of the flag access macro whose check failed.
13002         * doc/rtl.texi (Flags): Document additional flag uses.
13003
13004 2002-05-08  Robert Spier <rspier@pobox.com>
13005             Neil Booth  <neil@daikokuya.demon.co.uk>
13006
13007         PR preprocessor/6521
13008         * cppfiles.c (handle_missing_header): Don't do anything
13009         different for <> includes.
13010 doc:
13011         * cppopts.texi: Update documentation for -MG.
13012
13013 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
13014
13015         * cpplex.c (cpp_interpret_charconst): Truncate as well as
13016         sign-extend.
13017 doc:
13018         * cpp.texi: Clarify multichar charconst valuation.
13019
13020 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
13021
13022         * doc/invoke.texi: Document -mwindiss option.
13023
13024 2002-05-08  Jason Merrill  <jason@redhat.com>
13025
13026         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
13027
13028         * dwarf2out.c (gen_type_die): Abort on broken recursion.
13029
13030         PR c++/6381
13031         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
13032         REAL_CST.
13033
13034 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
13035
13036         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
13037         little-endian multilibs to override arm/thumb multilibs.
13038         Do not build hardware floating point multilibs, nor apcs-26
13039         multilibs for the Thumb.
13040
13041 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
13042
13043         PR c/6569.
13044         * varasm.c (mark_weak): New function.
13045         (merge_weak): Use it.  Do not call declare_weak.
13046         (declare_weak): Use merge_weak.
13047
13048 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
13049
13050         * cse.c (dead_libcall_p): Update counts.
13051         (delete_trivially_dead_insns): Update call of dead_libcall_p.
13052
13053 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
13054
13055         * cfglayout.c (function_tail_eff_head): Rename to ...
13056         (function_footer): ... this one.
13057         (unlink_insn_chain): New functions.
13058         (label_for_bb): Only call block_label and emit debug message.
13059         (record_effective_endpoints): Actually unlink the headers and footers.
13060         (fixup_reorder_cahin): Re-insert the unlinked sequences.
13061         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
13062         * cfglayout.h (struct reorder_block_def): New fields footer/header;
13063         remove eff_head/eff_end.
13064         * rtl.h (set_first_insn): Declare.
13065         * emit-rtl.c (set_first_insn): New function.
13066
13067         * cfglayout.c (fixup_reorder_chain): Dump duplicated
13068         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
13069         cfg_layout_duplicate_bb): New global function.
13070         (duplicate_insn_chain): New static function.
13071         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
13072         cfg_layout_duplicate_bb): Declare.
13073         (struct reorder_block_def): Add "original" field.
13074         * emit-rtl.c (emit_copy_of_insn_after): New function.
13075         * rtl.h (emit_copy_of_insn_after): Declare.
13076
13077         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
13078         (fixup_reorder_chain): properly handle edges to exit block.
13079
13080 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
13081                                Jan Hubicka  <jh@suse.cz>
13082
13083         * basic-block.h (note_prediction_to_br_prob): declare.
13084         * c-semantics.c: Inlucde predit.h
13085         (expand_stmt): predict GOTO_STMT as not taken.
13086         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
13087         (cleanup_cfg): Do not free tail_recursion_list.
13088         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
13089         (flow_delete_block): Kill predictions past end of basic block.
13090         * output.h (delete_unreachable_blocks): Declare.
13091         * predict.c (predicted_by_p, process_note_predictions,
13092         process_note_prediction, last_block_p): New function.
13093         (estimate_probability): Bypass loop on PRED_CONTINUE;
13094         do not handle noreturn heuristics; kill PRED_RETURN; add
13095         PRED_EARLY_RETURN.
13096         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
13097         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
13098         * predict.h (IS_TAKEN): New constant.
13099         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
13100         * rtl.c (NOTE_INSN_PREDICTION): New.
13101         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
13102         New macro.
13103         (insn_note): add NOTE_INSN_PREDICTION.
13104         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
13105         CFG; free tail_recursion_label_list.
13106         * stmt.c: Include predict.h;
13107         (return_prediction): New.
13108         (expand_value_return): Use it.
13109         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
13110
13111 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
13112
13113         * config/mips/mips.md: Name the unspecs with define_constant.
13114         (*HILO_delay): Rename to 'hilo_delay' (no star).
13115         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
13116         (reload_outdi, reload_outsi): Likewise.
13117
13118 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
13119
13120         * toplev.c: Fix formatting.
13121
13122 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
13123
13124         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
13125         * configure.in (ac_rtlflag_checking): New.
13126         * doc/install.texi (--enable-checking): Document RTL flag checking.
13127
13128 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
13129
13130         * c-common.c (c_common_init): Set options->unsigned_wchar.
13131         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
13132         group target dependencies.
13133         (init_builtins, cpp_handle_option): Update.
13134         * cpplex.c (cpp_interpret_charconst): Update.
13135         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
13136         signed_char to unsigned_char, group target dependencies.
13137         * defaults.h (WCHAR_UNSIGNED): Remove.
13138         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
13139 config:
13140         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
13141         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
13142         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
13143         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
13144         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
13145 doc:
13146         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
13147
13148 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
13149
13150         * fixinc/inclhack.def (windiss_math1): New fix.
13151         (windiss_math2): Likewise.
13152         (windiss_valist): Likewise.
13153         * fixinc/fixincl.x: Regenerated.
13154
13155 2002-05-07  Andreas Jaeger  <aj@suse.de>
13156
13157         * genautomata.c (output_internal_min_issue_delay_func): Add
13158         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
13159         (output_internal_trans_func): Likewise.
13160
13161 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
13162
13163         * pa.c (hppa_profile_hook): Use force_reg to get the address
13164         of the profile hook into an appropriate pseudo register.
13165
13166 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
13167
13168         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
13169         (LINK_START_SPEC): Handle it.
13170         (LINK_OS_SPEC): Likewise.
13171         (CPP_SPEC): Likewise.
13172         (STARTFILE_SPEC): Likewise.
13173         (LIB_SPEC): Likewise.
13174         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
13175         all platforms.
13176         (CRTSAVRES_DEFAULT_SPEC): New macro.
13177         (LIB_WINDISS_SPEC): New macro.
13178         (CPP_OS_WINDISS_SPEC): Likewise.
13179         (STARTFILE_WINDISS_SPEC): Likewise.
13180         (ENDFILE_WINDISS_SPEC): Likewise.
13181         (LINK_START_WINDISS_SPEC): Likewise.
13182         (LINK_OS_WINDISS_SPEC): Likewise.
13183         * config/rs6000/windiss.h: New file.
13184
13185 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
13186
13187         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
13188
13189 2002-05-06  David S. Miller  <davem@redhat.com>
13190
13191         * config/sparc/sparc.md (shift insns): Do not mask off
13192         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
13193         take care of it.
13194
13195 2002-05-06  Richard Henderson  <rth@redhat.com>
13196
13197         PR c++/6212
13198         * expr.c (highest_pow2_factor_for_type): New.
13199         (expand_assignment): Use it.
13200
13201 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
13202
13203         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
13204         unspec_volatile.
13205         ("altivec_mfvscr"): Same.
13206
13207 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
13208
13209         * rtl.h (struct rtx_def): Update comments.
13210         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
13211         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
13212         RTL_FLAG_CHECK macros with list of expected RTL codes.
13213         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
13214         (rtl_check_failed_flag): New.
13215         * reload1.c (reload): Use REG macro before changing rtx to MEM.
13216         (reload_cse_noop_set_p): Check rtx code before using access macro.
13217         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
13218         before using access macro.
13219
13220 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
13221
13222         * doc/rtl.texi (Flags): Update to reflect current usage.
13223
13224 2002-05-06  Roger Sayle  <roger@eyesopen.com>
13225
13226         PR opt/3995
13227         * fold-const.c (sign_bit_p): New function.
13228         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
13229         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
13230         Reapply fold when converting (A & C) == C into (A & C) != 0.
13231         (fold_binary_op_with_conditional_arg): Fix typo in comment.
13232
13233 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
13234
13235         * c-common.c (warn_multichar): New.
13236         (c_common_init): Set CPP's warn_multichar.
13237         * c-common.h (warn_multichar): New.
13238         * c-decl.c (warn_multichar): Remove.
13239         * c-lex.c (lex_charconst): Update.
13240         * c-tree.h (warn_multichar): Remove.
13241         * cppexp.c (eval_token): Sign-extend charconst value.
13242         * cppinit.c (cpp_create_reader): Set warn_multichar.
13243         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
13244         each character.  Update prototype.  Sign-extend the result.
13245         * cpplib.h: Fix conditions.
13246         (struct cpp_options): Add new warning flag.
13247         (cpp_interpret_charconst): Update prototype.
13248 doc:
13249         * cpp.texi: Update documentation.
13250
13251 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
13252
13253         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
13254         Fix typo in usage of allof instead of unit.
13255
13256 2002-05-06  Richard Henderson  <rth@redhat.com>
13257
13258         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
13259         and any jump or call for IN.
13260
13261 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
13262
13263         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
13264         -msse2.
13265         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
13266
13267 2002-05-06  Roger Sayle  <roger@eyesopen.com>
13268
13269         * fold-const.c (lshift-double): Cast the high word to an unsigned
13270         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
13271         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
13272         avoid compiler warning.  (fold): Remove redundant code from
13273         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
13274
13275 2002-05-06  Jeff Law  <law@redhat.com>
13276
13277         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
13278         * pa.c (pa_adjust_cost): Remove all true dependency cost
13279         adjustments.  Also remove support for non-DFA scheduling.
13280         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
13281         to adjust true dependency costs.  Update various comments.
13282         (7100lc, 7200, 7300 scheduling): Simplify by combining the
13283         FP ALU & MPY units into a single unit.
13284
13285 2002-05-06  Catherine Moore  <clm@redhat.com>
13286
13287         * config/v850/v850.c (compute_register_save_size): Make sure
13288         to count all of the registers that will be saved.
13289
13290 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
13291
13292         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
13293
13294 2002-05-06  David S. Miller  <davem@redhat.com>
13295
13296         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
13297         allow result to overlap input operands in memory.
13298
13299 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
13300
13301 doc:
13302         * cpp.texi: Update multichar charconst docs.
13303
13304 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
13305
13306         * cpplex.c (cpp_interpret_charconst): Sign-extend each
13307         character.  Don't ignore excess characters.  Treat
13308         multicharacter character constants as signed.
13309         (cpp_parse_escape): Clarify diagnostic.
13310
13311 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
13312
13313         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
13314         use add instead of shift.
13315         (ashldi3_sp64): Likewise.
13316         (ashlsi3_const1, ashldi3_const1): Remove.
13317         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
13318         * config/sparc/sparc.c (const1_operand): New.
13319
13320 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
13321
13322         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
13323
13324 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
13325
13326         PR target/6561
13327         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
13328
13329 2002-05-05  Richard Henderson  <rth@redhat.com>
13330
13331         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
13332         memory latency adjustments.
13333         (alpha_variable_issue): Remove.
13334         (alpha_use_dfa_pipeline_interface): New.
13335         (alpha_multipass_dfa_lookahead): New.
13336         * config/alpha/alpha.md: Remove define_function_unit scheduling;
13337         include new dfa scheduling.
13338         (attr type): Add none.
13339         (blockage): Use it.
13340         * config/alpha/ev4.md: New.
13341         * config/alpha/ev5.md: New.
13342         * config/alpha/ev6.md: New.
13343
13344 2002-05-05  David S. Miller  <davem@redhat.com>
13345
13346         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
13347
13348 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
13349
13350         * cse.c: Fix formatting.
13351         * emit-rtl.c: Likewise.
13352
13353 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
13354
13355         * genautomata.c (initiate_states): Add additional guard to
13356         initialize `units_array'.
13357
13358 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
13359
13360         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
13361         process_unit_to_form_the_same_automaton_unit_lists,
13362         form_the_same_automaton_unit_lists
13363         check_unit_distributions_to_automata): New prototypes and
13364         functions.
13365         (check_automata): Rename it into `check_automata_insn_issues'.
13366         (unit_decl): New fields `the_same_automaton_unit' and
13367         `the_same_automaton_message_reported_p'.
13368         (unit_decl_t): New typedef.
13369         (the_same_automaton_lists): New gloval variable.
13370         (unit_regexp, unit_set_el, units_array, units_cmp,
13371         output_get_cpu_unit_code_func): Use the typedef.
13372         (evaluate_max_reserv_cycles): Increment
13373         `description->max_insn_reserv_cycles'.
13374         (initiate_states): Don't increment `max_cycles_num'.
13375         (transform_insn_regexps): Move code around transformation of
13376         regexps from `generate'.
13377         (generate): Remove call of `transform_insn_regexps'.
13378         (expand_automata): Call `transform_insn_regexps' and
13379         `check_unit_distributions_to_automata'.  Check errors before
13380         `generate'.
13381
13382         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
13383         automaton `ultrasparc3_1'.
13384
13385 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
13386
13387         * c-common.c (c_common_init): Set up CPP arithmetic.
13388         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
13389         something reasonable for the host.
13390         (sanity_checks): Add checks.
13391         (cpp_read_main_file): Call sanity_checks() from here...
13392         (cpp_post_options): ... not here.
13393         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
13394         * cpplib.h (struct cpp_options): New member int_precision.
13395
13396 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13397
13398         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
13399
13400 2002-05-04  David S. Miller  <davem@redhat.com>
13401
13402         * config/sparc/linux.h, config/sparc/linux64.h
13403         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
13404
13405         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
13406         more RTX codes.
13407         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
13408
13409         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
13410         of SETs.
13411
13412 2002-05-05  Tim Josling  <tej@melbpc.org.au>
13413
13414         * treelang; New directory for new sample language treelang.
13415
13416 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
13417
13418         * Makefile.in (c-lex.o): Update.
13419         * c-lex.c: Include target.h.
13420         (cb_register_builtins): New.
13421         (init_c_lex): Set builtins callback.
13422         * c-lex.h (cpp_define, cpp_assert): New prototypes.
13423         * cppinit.c (init_builtins): Use callback, including for
13424         GXX_WEAK.
13425         * cpplib.h (struct cpp_callbacks): New member.
13426         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
13427         (TARGET_INITIALIZER): Update.
13428         * target.h (struct gcc_target): New hook.
13429         * tree.c (default_register_cpp_builtins): New.
13430         * tree.h (default_register_cpp_builtins): New.
13431 doc:
13432         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
13433
13434 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
13435
13436         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
13437         (cpp_post_options): Move sanity checks to...
13438         (sanity_checks): New.
13439         * cpplex.c (maybe_read_ucs): Fix prototype.
13440         (parse_string, cpp_parse_escape): Cast for %c format specifier.
13441         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
13442         if necessary.
13443
13444 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
13445
13446         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
13447         builtins.  Use V2DI patterns instead of TI for logical operations.
13448         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
13449         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
13450         (ix86_expand_builtins): Change the pattern used for movntdq.
13451         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
13452         sse2_nandv2di3): New patterns.
13453         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
13454         on operands.
13455         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
13456         (cvtdq2pd): Correct mode on operand 1.
13457         (sse2_umulsidi3): Describe without unspec.
13458         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
13459         machine modes.
13460         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
13461         (ashlv2di3): Likewise, from sse2_ashlv2di3.
13462         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
13463         ashlv4si3, ashlv2di3): Use SImode for shift count.
13464         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
13465         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
13466         New patterns.
13467         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
13468         New typedefs.
13469         (__m128i, __m128d): New macros.
13470         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
13471         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
13472         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
13473         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
13474         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
13475         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
13476         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
13477         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
13478         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
13479         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
13480         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
13481         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
13482         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
13483         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
13484         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
13485         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
13486         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
13487         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
13488         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
13489         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
13490         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
13491         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
13492         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
13493         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
13494         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
13495         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
13496         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
13497         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
13498         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
13499         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
13500         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
13501         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
13502         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
13503         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
13504         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
13505         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
13506         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
13507         functions.
13508         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
13509         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
13510
13511 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
13512
13513         * dwarf2out.c: Fix formatting.
13514         * varasm.c: Likewise.
13515
13516 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
13517
13518         PR c/6543
13519         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
13520         clobber and use result as temporary value.
13521
13522 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
13523
13524         * expr.c (force_operand): Use expand_simple_* to handle more
13525         cases.
13526
13527 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
13528
13529         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
13530         and sign-extension.
13531         (lex_charconst): Update for change in prototype of
13532         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
13533         appropriately.
13534         * cpphash.h (BITS_PER_CPPCHAR_T): New.
13535         * cppinit.c (cpp_create_reader): Initialize them for no
13536         change in semantics.
13537         (cpp_post_options): Add sanity checks.
13538         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
13539         and truncation issues.  Calculate in type cppchar_t.
13540         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
13541         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
13542         run-time dependent precision correctly.  Return whether the
13543         result is signed or not.
13544         * cpplib.c (dequote_string): Use cppchar_t; update.
13545         * cpplib.h (cppchar_signed_t): New.
13546         struct cpp_options): New precision members.
13547         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
13548         * cppexp.c (eval_token): Update.
13549
13550 2002-05-03  David S. Miller  <davem@redhat.com>
13551
13552         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
13553         * config/sparc/sparc.c (sparc_rtx_costs): New function
13554         implementing RTX_COSTS and CONST_COSTS.
13555         * config/sparc/sparc.h (CONST_COSTS): Delete.
13556         (RTX_COSTS_CASES): Define.
13557         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
13558         the work.
13559
13560         * config/sparc/sparc.md (DFA schedulers): Split out...
13561         * config/sparc/cypress.md, config/sparc/hypersparc.md,
13562         config/sparc/sparclet.md, config/sparc/supersparc.md,
13563         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
13564
13565         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
13566         checks on it, always defined for Sparc.
13567
13568         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
13569         Tweak, and add more detailed comments.
13570
13571 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
13572
13573         * Re-apply patch accidentally reverted with
13574         DFA scheduler merge: remove all rules and variables to slurp
13575         source files out of libiberty and rebuild them with HOST_CC.
13576         ($(HOST_PREFIX_1)varray.o): New rule.
13577         (genattrtab rule): Word wrap.
13578
13579 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
13580
13581         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
13582         (CPP_SUBTARGET_SPEC): Define.
13583         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
13584         cpp_subtarget specs.
13585         (CPP_SPEC): Redefine to include %(cpp_subtarget).
13586
13587 2002-05-03  David S. Miller  <davem@redhat.com>
13588
13589         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
13590         * target.h (struct gcc_target): Delete cycle_display member.
13591
13592         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
13593         (rtx_needs_barrier): Delete reference to cycle_display unspec.
13594         (ia64_sched_reorder2): Mention need for cycle display handling
13595         once such notes exist.
13596
13597 2002-05-03  Richard Henderson  <rth@redhat.com>
13598
13599         * real.c (etoasc): Strip most trailing zeros for clarity.
13600         * sched-vis.c: Include real.h.
13601         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
13602         * Makefile.in (sched-vis.o): Add real.h.
13603
13604 2002-05-03  David S. Miller  <davem@redhat.com>
13605
13606         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
13607         no longer needed.
13608
13609 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
13610
13611         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
13612         when we get an out of range literal.
13613         (altivec_expand_ternop_builtin): Same.
13614         (altivec_expand_unop_builtin): Same.
13615         (altivec_expand_builtin): Same, for dss.
13616         (altivec_expand_builtin): Use trees instead of rtl when
13617         determining literal argument validity.
13618
13619 2002-05-03  David S. Miller  <davem@redhat.com>
13620
13621         Delete cycle display scheduling hook.
13622         * config/ia64/ia64.c (ia64_cycle_display,
13623         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
13624         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
13625         and use emit_insn_before instead of ia64_emit_insn_before.
13626         * config/ia64/ia64.md (unspec usage): Delete cycle display.
13627         (cycle_display): Delete insn pattern.
13628         * config/sparc/sparc.md (unspec usage): Delete cycle display.
13629         (cycle_display): Delete insn pattern.
13630         * config/sparc/sparc.c (sparc_cycle_display,
13631         TARGET_SCHED_CYCLE_DISPLAY): Delete.
13632         * doc/md.texi (cycle_display): Don't mention.
13633         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
13634
13635 2002-05-03  Richard Henderson  <rth@redhat.com>
13636
13637         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
13638         * recog.h: Declare them.
13639
13640         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
13641         * config/sparc/sparc.md: Use store_data_bypass_p instead.
13642         * config/sparc/sparc-protos.h: Update.
13643
13644 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
13645
13646         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
13647         -D__arch64__.  Add -D_LP64.
13648         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
13649         from sparc.h.
13650         (CPP_ARCH64_SPEC): Likewise.
13651         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
13652         (NO_BUILTIN_SIZE_TYPE): Undef.
13653
13654 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
13655
13656         * genautomata.c (min_issue_delay_pass_states): Change return type
13657         in the prototype.
13658         (min_issue_delay_pass_states): Change the algorithm.
13659         (min_issue_delay): Set up min_insn_issue_delay for the state.
13660         (output_min_issue_delay_table): Interchange the nested loops and
13661         and initiate min_insn_issue_delay for states.
13662
13663 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
13664
13665         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
13666         jump is simplejump.
13667
13668 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
13669
13670         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
13671         sequence.
13672
13673 2002-05-03  Richard Henderson  <rth@redhat.com>
13674
13675         PR opt/6534
13676         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
13677         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
13678         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
13679         code before JUMP, not EARLIEST.
13680
13681 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
13682
13683         * c-format.c (check_format_info_main): Don't check for presence of
13684         parameter for * width until after operand number has been read,
13685         and only check for it if format parameters are available.
13686         Fixes PR c/6547.
13687
13688 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
13689
13690         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
13691         (LINK_SPEC): Undef before defining.
13692
13693 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
13694
13695         PR preprocessor/6489
13696         * tradcpp.c (fixup_newlines): New.
13697         (main, finclude): Use it.
13698
13699 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
13700
13701         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
13702         * config/mips/mips.c (mips_unique_section): Strip encoding from
13703         decl name.
13704
13705 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
13706
13707         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
13708         mode.
13709
13710 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13711
13712         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
13713         (Specific): Removed buildstats references.
13714         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
13715         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
13716         Accomodate Solaris versions beyond 8.
13717         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
13718         (Specific, *-*-solaris2.8): Removed, obsolete.
13719
13720 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
13721
13722         PR target/6542
13723         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
13724         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
13725         fill leaf_reg_remap with identity.
13726         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
13727
13728 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
13729
13730         * config/h8300/crti.asm: Remove trailing spaces.
13731         * config/h8300/h8300.c: Likewise.
13732         * config/h8300/lib1funcs.asm: Likewise.
13733
13734 2002-05-02  Jason Merrill  <jason@redhat.com>
13735
13736         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
13737         * c-decl.c (c_init_decl_processing): Use it.
13738         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
13739         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
13740         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
13741
13742 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
13743
13744         * regrename.c: Fix formatting.
13745         * tree.c: Likewise.
13746
13747 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
13748
13749         * i386.md (attribute memory): Handle compares properly.
13750
13751 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
13752
13753         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
13754         to none.
13755
13756 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
13757
13758         * function.c: Fix formatting.
13759
13760 2002-05-02  Jan Hubicka  <jh@suse.cz>
13761
13762         * haifa-sched.c (schedule_insn): Print table of instructions and
13763         reservations.
13764         (sched_block): Do not print ready list at verbosity level 1.
13765         * sched-vis.c (print_insn): Make global.
13766         * sched-ebb.c (ebb_print_insn): Rename from...
13767         (print_insn): ... this one.
13768         * sched-int.h (print_insn): Declare
13769
13770 2002-05-02  Richard Henderson  <rth@redhat.com>
13771
13772         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
13773         emitted by cycle_display.
13774
13775 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
13776
13777         * doc/install.texi (*-*-freebsd*): Update to latest status.
13778
13779 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
13780
13781         PR target/6540
13782         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
13783         * config/float-sparc.h: Assume 128-bit long double if
13784         __LONG_DOUBLE_128__ is defined.
13785
13786 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
13787
13788         * genattrtab.c (write_function_unit_info): Add a dummy element
13789         when num_units == 0.
13790
13791 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13792
13793         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
13794         TYPE_MODE (double_type_node) instead of DFmode.
13795
13796 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
13797
13798         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
13799         jumps post reload.
13800         * toplev.c (rest_of_compilation): Revert Richard's patch.
13801
13802 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13803
13804         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
13805
13806 2002-05-02  Catherine Moore  <clm@redhat.com>
13807
13808         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
13809
13810 2002-05-02  Kazu Hirata  <kazu@hxi.com>
13811
13812         * combine.c: Fix comment typos.
13813         * expr.c: Likewise.
13814         * genautomata.c: Likewise.
13815         * stmt.c: Likewise.
13816         * tree.h: Likewise.
13817
13818 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
13819
13820         * doc/install.texi: State GNAT version requirements.
13821
13822 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
13823
13824         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
13825         of the frame pointer or arg pointer register which strict register
13826         checking is not enabled.
13827
13828 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
13829
13830         * gcc.dg/altivec-8.c: New.
13831
13832         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
13833         PRE_INC and PRE_DEC for altivec modes.
13834
13835 2002-05-01  Bruce Korb  <bkorb@gnu.org>
13836
13837         * fixinc/check.tpl(set-writable): make sure the function exists first
13838         * fixinc/inclhack.def(alpha_assert): fix test_text
13839         * fixinc/tests/base/assert.h: add in missing result
13840
13841 2002-05-01  Jeff Law  <law@redhat.com>
13842
13843         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
13844         'T' constraint.
13845
13846 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
13847
13848         * dbxout.c (dbxout_type): Emit size information for range types,
13849         as well, but only when using GDB extensions.
13850
13851 2002-05-01  Richard Henderson  <rth@redhat.com>
13852
13853         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
13854         target-independent gnu binutils date test.
13855
13856 2002-05-01  Richard Henderson  <rth@redhat.com>
13857
13858         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
13859         info before expunging the block.
13860
13861 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
13862
13863         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
13864         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
13865         -M -or -MM is in effect.
13866
13867 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
13868
13869         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
13870         A29k configurations.
13871         * doc/install.texi: Update to match.
13872
13873 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
13874
13875         PR bootstrap/6514
13876         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
13877         for duplicates. Always loop over whole list.
13878
13879 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13880
13881         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
13882
13883 2002-05-01      Joel Sherrill <joel@OARcorp.com>
13884
13885         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
13886         support routines.
13887
13888 2002-05-01      Joel Sherrill <joel@OARcorp.com>
13889
13890         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
13891
13892 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
13893
13894         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
13895         (nabs_nopower): Same.
13896         (floatdisf2): New pattern.
13897         (absdi2): Convert to define_insn_and_split.
13898         (nabsdi2): Same.
13899         (trunctfsf2): Same.
13900         (floatditf2): Same.
13901         (floatsitf2): Same.
13902         (fix_trunctfdi2): Same.
13903         (fix_trunctfsi2): Same.
13904
13905 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
13906
13907         * doc/install.texi: Update Texinfo version requirement
13908         documentation.
13909
13910 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
13911
13912         PR target/6512, PR target/5628
13913         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
13914         when memory is not aligned.
13915         (movdf_insn_v9only_vis): Likewise.
13916         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
13917         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
13918         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
13919
13920 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
13921
13922         * gcc.dg/altivec-7.c: New.
13923
13924         * config/rs6000/altivec.h: Cleanup.
13925
13926 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
13927
13928         * doc/invoke.texi (Option Summary): Add -mvrsave=.
13929         (RS/6000 and PowerPC Options): Document -mvrsave=.
13930
13931         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
13932         (rs6000_altivec_vrsave_string): Same.
13933         (rs6000_override_options): Call rs6000_parse_vrsave_option.
13934         (rs6000_parse_vrsave_option): New.
13935         (rs6000_stack_info): Only generate vrsave instructions when
13936         TARGET_ALTIVEC_VRSAVE.
13937
13938         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
13939         (rs6000_altivec_vrsave_string): Define extern.
13940         (rs6000_altivec_vrsave): Same.
13941         (TARGET_ALTIVEC_VRSAVE): New.
13942
13943 2002-04-30  Richard Henderson  <rth@redhat.com>
13944
13945         PR opt/6516
13946         * toplev.c (rest_of_compilation): Don't run cross-jump before
13947         bb-reorder.
13948
13949 2002-04-30  Tom Rix  <trix@redhat.com>
13950
13951         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
13952         check which_alternative.
13953
13954 2002-04-30  Kazu Hirata  <kazu@hxi.com>
13955
13956         * cpplex.c: Fix comment formatting.
13957         * function.c: Likewise.
13958         * integrate.c: Likewise.
13959         * regrename.c: Likewise.
13960         * sibcall.c: Likewise.
13961         * simplify-rtx.c: Likewise.
13962         * tree-inline.c: Likewise.
13963
13964 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13965
13966         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
13967         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
13968         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
13969         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
13970         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
13971         * pa/x-ada: New file.  Define ADA_CFLAGS.
13972
13973 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
13974
13975         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
13976         from MMIX_LAST_REGISTER_FILE_REGNUM.
13977         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
13978         (struct machine_function): New member highest_saved_stack_register
13979         previously static variable in mmix.c.
13980         (MACHINE_DEPENDENT_REORG): Define.
13981         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
13982         (MMIX_OUTPUT_REGNO): New.
13983         (mmix_target_asm_function_prologue): Move calculation of last used
13984         saved-stack-register into...
13985         (mmix_machine_dependent_reorg): New function.  Update to also handle
13986         !TARGET_ABI_GNU.
13987         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
13988         register names, simplify somewhat by new variable regno.
13989         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
13990         register.
13991         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
13992         emitting register names.
13993         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
13994         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
13995         Remove fixed FIXME.
13996         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
13997         Declare.
13998
13999         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
14000
14001 2002-04-30  Richard Henderson  <rth@redhat.com>
14002
14003         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
14004         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
14005         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
14006         emit_tfmode_cvt): New.
14007         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
14008         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
14009         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
14010         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
14011         * config/sparc/sparc-protos.h: Update.
14012
14013 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
14014
14015         * install.texi (Final install): Add to the list of info to include
14016         in a report of a successful bootstrap, and add link to 3.1 list.
14017
14018 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
14019
14020         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
14021         (mode): Add vector modes
14022         (i387): Kill attribute.
14023         (unit): New attribute.
14024         (length_immediate): Grok new types.
14025         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
14026         (modrm): Use "unit".
14027         (memory): Handle MMX/SSE properly.
14028         (scheduling descriptions): Kill uses of fop1.
14029         (sse, mmx, fp patterns): Set type and mode properly.
14030
14031 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
14032
14033         * pa.c (override_options): Default to PA8000 scheduling.
14034         * doc/invoke.texi (HP-PA options): Mention newly added 7300
14035         scheduling parameter.
14036
14037         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
14038         handling of double precision multiplies.
14039
14040         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
14041         fpdiv and fpsqrt instructions.
14042         (7200 & 7300 scheduling): Fix typo in handling of
14043         store-load and store-store penalties.
14044
14045 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14046
14047         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
14048         mips.  Add two missing commas.
14049
14050 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
14051
14052         * doc/contrib.texi (Contributors): Update Paolo Carlini's
14053         and Benjamin Kosnik's entries.
14054
14055 2002-04-29  David S. Miller  <davem@redhat.com>
14056
14057         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
14058         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
14059         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
14060         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
14061
14062 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14063
14064         * combine.c (find_split_point): Use gen_int_mode.
14065
14066 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
14067
14068         Merging code from dfa-branch:
14069
14070         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
14071
14072         * genautomata.c (output_reserv_sets): Fix typo.
14073
14074         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
14075
14076         * genautomata.c (output_reserv_sets): Remove
14077         next_cycle_output_flag.
14078
14079         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
14080
14081         * sched-rgn.c (init_ready_list): Make the DFA code handle
14082         USE/CLOBBER insns in the same way as the traditional
14083         scheduler.
14084         (new_ready): Similarly..
14085
14086         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
14087
14088         * haifa-sched.c (schedule_block): Change the DFA state only after
14089         issuing insn.
14090
14091         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
14092
14093         * pa.c (hppa_use_dfa_pipeline_interface): New function.
14094         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
14095         (override_options): Add PA7300 scheduling support.
14096         (pa_adjust_cost): Update various comments.  Properly
14097         handle anti and output dependencies when using the
14098         DFA scheduler.
14099         (pa_issue_rate): Add PA7300 scheduling support.
14100         (pa_can_combine_p): Call extract_insn before calling
14101         constrain_operands (taken from mainline tree).
14102         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
14103         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
14104         descriptions using DFA descriptions.  Add PA7300
14105         scheduling support.
14106
14107         2002-03-30  David S. Miller  <davem@redhat.com>
14108
14109         Add UltraSPARC-III DFA scheduling support.
14110         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
14111         Update FP conditional move on register insn patterns to use it, as
14112         appropriate.
14113         (define_attr cpu): Add ultrasparc3.
14114         (define_attr us3load_type): New, update integer load patterns to
14115         set it, as appropriate.
14116         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
14117         (rest): Add UltraSPARC3 scheduling description.
14118         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
14119         (PROCESSOR_ULTRASPARC3): New.
14120         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
14121         ({ASM,CPP}_CPU_SPEC): Likewise.
14122         (REGISTER_MOVE_COST): Likewise.
14123         (RTX_COSTS): Likewise.
14124         * config/sparc/sparc.c (sparc_override_options,
14125         sparc_initialize_trampoline, sparc64_initialize_trampoline,
14126         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
14127         sparc_issue_rate): Likewise.
14128         * config/sparc/sol2.h: Likewise.
14129         * config/sparc/sol2-sld-64.h: Likewise.
14130         * config/sparc/linux64.h: Likewise.
14131
14132         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
14133
14134         * doc/md.texi: Add comments about usage the latency time for the
14135         different dependencies and about case when two or more conditions
14136         in different define_insn_reservations returns TRUE for an insn.
14137
14138         * doc/md.texi: Add reference for automaton based pipeline
14139         description.
14140
14141         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
14142
14143         * doc/passes.texi: Add missed information about genattrtab.
14144
14145         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
14146
14147         * genautomata.c (output_automata_list_transition_code): Check
14148         automata_list on NULL.
14149
14150         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
14151
14152         * genautomata.c (output_insn_code_cases,
14153         output_automata_list_min_issue_delay_code,
14154         output_automata_list_transition_code,
14155         output_automata_list_state_alts_code): Comment the functions.
14156
14157         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
14158
14159         * genautomata.c (automata_list_el_t): New typedef.
14160         (get_free_automata_list_el,free_automata_list_el,
14161         free_automata_list, automata_list_hash, automata_list_eq_p,
14162         initiate_automata_lists, automata_list_start, automata_list_add,
14163         automata_list_finish, finish_automata_lists,
14164         output_insn_code_cases, output_automata_list_min_issue_delay_code,
14165         output_automata_list_transition_code,
14166         output_automata_list_state_alts_code, add_automaton_state,
14167         form_important_insn_automata_lists): New functions and prototypes.
14168         (insn_reserv_decl): Add members important_automata_list and
14169         processed_p.
14170         (ainsn): Add members important_p.
14171         (automata_list_el): New structure.
14172         (first_free_automata_list_el, current_automata_list,
14173         automata_list_table): New global variables.
14174         (create_ainsns): Initiate member important_p.
14175         (output_internal_min_issue_delay_func): Generate the switch and
14176         call output_insn_code_cases.
14177         (output_internal_trans_func, output_internal_state_alts_func):
14178         Ditto.
14179         (generate): Call initiate_automata_lists.
14180         (automaton_states): New global variable.
14181         (expand_automata): Call form_important_insn_automata_lists.
14182         (write_automata): Call finish_automata_lists.
14183
14184         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
14185
14186         * genautomata.c (add_excls, add_presence_absence): Check that
14187         cpu units in the sets belong the same automaton.
14188
14189         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
14190         about that cpu units in the sets belong the same automaton.
14191
14192         * doc/md.texi: Ditto.
14193
14194         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
14195                     Nitin Gupta  <niting@noida.hcltech.com>
14196
14197         * config/sh/sh.c (sh_use_dfa_interface): New function.
14198
14199         (sh_issue_rate): New Function.
14200         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
14201         TARGET_SCHED_ISSUE_RATE: define.
14202
14203         * config/sh/sh.md: Add DFA based pipeline description for SH4.
14204
14205         (define_attr insn_class): New attribute used for DFA
14206          scheduling.
14207         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
14208         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
14209          cmpeqdi_t): Likewise.
14210
14211         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
14212          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
14213          ex_group.
14214         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
14215
14216         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
14217
14218         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
14219         break.
14220
14221         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
14222
14223         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
14224         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
14225         necessary.
14226         (output_dfa_start_func): Initiate new variable insn_codes_length,
14227         (write_automata): Output definition of the new variable.
14228
14229         2001-10-02  David S. Miller  <davem@redhat.com>
14230
14231         * haifa-sched.c (advance_one_cycle): New function.
14232         (schedule_block): Use it.
14233         (queue_to_ready): Use it, and also make sure to advance the DFA
14234         state on all stall cycles, not just those where insn_queue links
14235         are found.
14236
14237         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
14238
14239         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
14240         non-zero if the highest-priority instruction could be scheduled.
14241         (choose_ready): Remove last argument from max_issue call.
14242
14243         2001-09-28  David S. Miller  <davem@redhat.com>
14244
14245         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
14246         ultrasparc and 3 for other multi-issue sparcs.
14247
14248         2001-09-27  David S. Miller  <davem@redhat.com>
14249
14250         * config/sparc/sparc.md (cycle_display): New pattern.
14251         * config/sparc/sparc.c (sparc_cycle_display): New.
14252         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
14253
14254         2001-09-25  David S. Miller  <davem@redhat.com>
14255
14256         Convert all of Sparc scheduling to DFA
14257         * config/sparc/sparc.md: Kill all define_function_unit
14258         directives and replace with DFA equivalent.
14259         * config/sparc/sparc.c (ultrasparc_adjust_cost,
14260         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
14261         ultra_fpmode_conflict_exists, ultra_find_type,
14262         ultra_build_types_avail, ultra_flush_pipeline,
14263         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
14264         ultrasparc_variable_issue, ultrasparc_sched_init,
14265         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
14266         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
14267         ultra_cur_hist, ultra_cycles_elapsed): Kill.
14268         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
14269         ultrasparc_store_bypass_p): New.
14270         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
14271         Declare.
14272
14273         2001-09-24  David S. Miller  <davem@redhat.com>
14274
14275         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
14276         ready->vec[foo] not ready[foo].
14277
14278         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
14279
14280         * doc/md.texi: Correct examples for define_insn_reservations
14281         `mult' and `div'.
14282
14283         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
14284
14285         * genautomata.c (create_automata): Print message about creation of
14286         each automaton.
14287         (generate): Remove printing meease about creation of
14288         automata.
14289
14290         2001-09-05  David S. Miller  <davem@redhat.com>
14291
14292         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
14293         * config/sparc/linux64.h: Likewise.
14294
14295         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
14296
14297         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
14298         schedule_block, sched_init, sched_finish): Add missed calls of
14299         use_dfa_pipeline_interface.
14300
14301         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
14302         Ditto.
14303
14304         * sched-vis.c (get_visual_tbl_length): Ditto.
14305
14306         2001-08-27  Richard Henderson  <rth@redhat.com>
14307
14308         * genattr.c (main): Emit state_t even when not doing scheduling.
14309
14310         2001-08-27  Richard Henderson  <rth@redhat.com>
14311
14312         * genautomata.c (expand_automata): Always create a description.
14313
14314         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
14315
14316         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
14317         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
14318         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
14319         RTL constructions.
14320
14321         * genattr.c (main): New variable num_insn_reservations.  Increase
14322         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
14323         pipeline hazard recognizer interface.
14324
14325         * genattrtab.h: New file.
14326
14327         * genattrtab.c: Include genattrtab.h.
14328         (attr_printf, check_attr_test, make_internal_attr,
14329         make_numeric_value): Move protypes into genattrtab.h.  Define them
14330         as external.
14331         (num_dfa_decls): New global variable.
14332         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
14333         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
14334         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
14335         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
14336
14337         * genautomata.c: New file.
14338
14339         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
14340
14341         * sched-int.h: (curr_state): Add the external definition for
14342         automaton pipeline interface.
14343         (haifa_insn_data): Add comments for members blockage and units.
14344
14345         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
14346         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
14347         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
14348         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
14349         TARGET_SCHED_DFA_POST_CYCLE_INSN,
14350         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
14351         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
14352         macros.
14353         (TARGET_SCHED): Use the new macros.
14354
14355         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
14356         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
14357         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
14358         dfa_bubble): New members in gcc_target.sched.
14359
14360         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
14361         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
14362         (insn_queue): Redefine it as pointer to array.
14363         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
14364         INSN_QUEUE_SIZE.
14365         (max_insn_queue_index_macro_value): New variable.
14366         (curr_state, dfa_state_size, ready_try): New varaibles for
14367         automaton interface.
14368         (ready_element, ready_remove, max_issue): New function prototypes
14369         for automaton interface.
14370         (choose_ready): New function prototype.
14371         (insn_unit, blockage_range): Add comments.
14372         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
14373         FUNCTION_UNITS_SIZE == 0.
14374         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
14375         actual_hazard, potential_hazard): Add comments.
14376         (insn_cost): Use cost -1 as undefined value.  Remove
14377         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
14378         pipeline interface.
14379         (ready_element, ready_remove): New functions for automaton
14380         interface.
14381         (schedule_insn): Add new code for automaton pipeline interface.
14382         (queue_to_ready): Add new code for automaton pipeline interface.
14383         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
14384         (debug_ready_list): Print newline when the queue is empty.
14385         (max_issue): New function for automaton pipeline interface.
14386         (choose_ready): New function.
14387         (schedule_block): Add new code for automaton pipeline interface.
14388         Print ready list before scheduling each insn.
14389         (sched_init): Add new code for automaton pipeline interface.
14390         Initiate insn cost by -1.
14391         (sched_finish): Free the current automaton state and finalize
14392         automaton pipeline interface.
14393
14394         * sched-rgn.c: Include target.h.
14395         (init_ready_list, new_ready, debug_dependencies): Add new code for
14396         automaton pipeline interface.
14397
14398         * sched-vis.c: Include target.h.
14399         (get_visual_tbl_length): Add code for automaton interface.
14400         (target_units, print_block_visualization):  Add comments.
14401
14402         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
14403         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
14404         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
14405         (getruntime.o, genautomata.o): New entries.
14406         (genattrtab.o): Add new dependency file genattrtab.h.
14407         (genattrtab): Add new dependencies.  Link it with `libm.a'.
14408         (getruntime.o, hashtab.o): New entries for canadian cross.
14409
14410         * doc/md.texi: Description of automaton based model.
14411
14412         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
14413         Add comments.
14414         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
14415         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
14416         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
14417         TARGET_SCHED_DFA_POST_CYCLE_INSN,
14418         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
14419         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
14420         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
14421         hook descriptions.
14422         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
14423         MAX_DFA_ISSUE_RATE): New macro descriptions.
14424
14425         * doc/contrib.texi: Add dfa based scheduler contribution.
14426
14427         * doc/gcc.texi: Add more information about genattrtab.
14428
14429 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14430
14431         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
14432         adjust_address_nv call.
14433
14434 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
14435
14436         * doc/install.texi (Testing): Provide additional information, and
14437         a stronger encouragement, for running the testsuites.
14438
14439 2002-04-29  DJ Delorie  <dj@redhat.com>
14440
14441         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
14442         given in upper case.
14443
14444 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14445
14446         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
14447         Solaris 2 <widec.h> if missing.
14448         * fixinc/fixincl.x: Regenerate.
14449         * fixinc/tests/base/widec.h: New file.
14450
14451 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
14452
14453         * toplev.c (f_options): Add "profile" switch so that
14454         -fno-profile can be used to disable -p.
14455
14456 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
14457
14458         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
14459         UV2DImode.
14460         * tree.c (build_common_tree_nodes_2): Likewise.
14461         * tree.h (enum tree_index): Likewise.
14462         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
14463
14464         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
14465         entries.
14466         (init_mmx_sse_builtins): Initialize SSE2 builtins.
14467         (ix86_expand_builtin): Add support for SSE2 builtins.
14468         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
14469         (VALID_SSE_REG_MODE): Use it.
14470         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
14471         (enum ix86_builtins): Add SSE2 builtins.
14472         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
14473         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
14474         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
14475         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
14476         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
14477         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
14478         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
14479         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
14480         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
14481         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
14482         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
14483         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
14484         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
14485         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
14486         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
14487         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
14488         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
14489         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
14490         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
14491         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
14492         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
14493         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
14494         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
14495         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
14496         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
14497         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
14498         lfence_insn): New patterns.
14499         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
14500         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
14501
14502 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
14503
14504         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
14505
14506 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
14507
14508         * doc/contrib.texi (Contributors): Add Paolo Carlini and
14509         Janis Johnson.
14510         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
14511         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
14512         and CPU instead of cpu.
14513
14514 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
14515
14516         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
14517         variables.
14518         (lang_independent_options): Add -fif-conversion, -fif-conversion2
14519         (rest_of_compilation): Do if conversion only when asked for.
14520         (parse_options_and_default_flags): Set new variables to 1 for -O1
14521         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
14522
14523 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
14524
14525         * i386.c (dbx64_register_map): Fix typo.
14526
14527 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
14528
14529         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
14530         real_one_half, real_bb_freq_max): New static variables.
14531         (debug_profile_bbauxs): Kill.
14532         (process_note_predictions): Kill unused variable.
14533         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
14534         volatile double.
14535         (propagate_freq): Use REAL_ARITHMETICS.
14536         (estimate_bb_frequencies): Likevise; init new static variables.
14537         * Makefile.in (predict.o): Add dependency on real.h
14538
14539 2002-04-28  David S. Miller  <davem@redhat.com>
14540
14541         PR target/6500
14542         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
14543         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
14544         several {reads,writes} instead.
14545         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
14546         Define.
14547
14548 2002-04-27  David S. Miller  <davem@redhat.com>
14549
14550         PR target/6494
14551         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
14552         of the stack bias.
14553
14554         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
14555         including signal.h and sys/ucontext.h, not needed.
14556
14557 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
14558
14559         * varasm.c (output_constant_def): Correct test for not calling
14560         ENCODE_SECTION_INFO for INTEGER_CST.
14561
14562 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14563
14564         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
14565         keep most cases as function eval_token.
14566         (eval_token): New function.
14567         (_cpp_parse_expr): Read token here for improved diagnostics.
14568         Don't use op_as_text.  Detect bad ':' here.
14569         (reduce): Don't detect bad ':' here.
14570         (op_as_text): Remove.
14571         * cpphash.h (_cpp_test_assertion): Change prototype.
14572         * cpplib.c (_cpp_test_assertion): Change prototype.
14573
14574 2002-04-28  Richard Henderson  <rth@redhat.com>
14575
14576         PR c/5154
14577         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
14578         (ggc_mark_rtx_children): New.
14579
14580 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
14581
14582         PR target/6496
14583         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
14584         after call peepholes for UltraSPARC.
14585         (call + jump 64-bit peepholes): Remove.
14586
14587 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14588
14589         PR c/6497
14590         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
14591         result as temporary value.
14592
14593 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
14594
14595         PR c++/6396
14596         * toplev.c (rest_of_compilation): Only run regrename and copy
14597         propagation if optimizing.
14598
14599 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
14600
14601         PR optimization/6475
14602         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
14603         register of REGNO_DECL (i).
14604         * Makefile.in (reload1.o): Add $(TREE_H).
14605
14606 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
14607
14608         * cppexp.c (lex): Update to use state.skip_eval.
14609         (struct op): Remove prio and flags members.
14610         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
14611         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
14612         (LEFT_ASSOC): New macro.
14613         (optab): New table of operator priorities and flags.
14614         (SHIFT): Update.
14615         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
14616         malloc-ed parser stack.
14617         (reduce): New; reduce the operator stack.
14618         (_cpp_expand_op_stack): Expand the operator stack as necessary.
14619         * cpphash.h (struct op): Predeclare.
14620         (struct cpp_reader): New members op_stack, op_limit.
14621         (struct lexer_state): New member skip_eval.
14622         (_cpp_parse_expr): Update.
14623         (_cpp_expand_op_stack): New.
14624         * cpplib.c (do_if): Update.
14625         * cppinit.c (cpp_create_reader): Create op stack.
14626         (cpp_destroy): And destroy it.
14627         * cpplib.h (CPP_LAST_CPP_OP): Correct.
14628         (TTYPE_TABLE): Correct.
14629
14630 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14631
14632         PR c/6343
14633         * c-decl.c (duplicate_decls): Call merge_weak.
14634         * c-pragma.c (apply_pragma_weak): Warn about misuse.
14635         * output.h (merge_weak): Prototype merge_weak.
14636         * varasm.c (merge_weak): New function.
14637         (declare_weak): Make sure we don't give an error on VAR_DECLs.
14638         Mark RTL with SYMBOL_REF_WEAK.
14639
14640 2002-04-27  Kurt Garloff <garloff@suse.de>
14641
14642         * tree-inline.c (inlinable_function_p): Improve heuristics
14643         by using a smoother function to cut down allowable inlinable size.
14644         * param.def: Add parameters max-inline-insns-single,
14645         max-inline-slope, min-inline-insns that determine the exact
14646         shape of the above function.
14647         * param.h: Likewise.
14648
14649 2002-04-26  Richard Henderson  <rth@redhat.com>
14650
14651         * c-parse.in (malloced_yyss, malloced_yyvs): New.
14652         (yyoverflow): Re-add.  Set them.
14653         (free_parser_stacks): New.
14654         * c-common.h: Declare it.
14655         * c-lex.c (c_common_parse_file): Call it.
14656
14657 2002-04-26  Richard Henderson  <rth@redhat.com>
14658
14659         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
14660         for fallthru search.
14661
14662 2002-04-26  Eric Christopher  <echristo@redhat.com>
14663
14664         PR optimization/3700
14665         * config/mips/mips.c (mips_issue_rate): Define.  New function.
14666         (TARGET_SCHED_ISSUE_RATE): Use.
14667
14668 2002-04-25  David S. Miller  <davem@redhat.com>
14669
14670         PR target/6422
14671         * reorg.c (optimize_skip): Do not allow exception causing
14672         instructions to be considered for delay slots.
14673         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
14674         (relax_delay_slots): Do not try to consider exception causing
14675         instructions as redundant.
14676
14677 2002-04-26  Richard Henderson  <rth@redhat.com>
14678
14679         PR c/5225
14680         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
14681
14682 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
14683
14684         PR bootstrap/6445
14685         * config/i386/i386.md (untyped_call): Return the value in a float
14686         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
14687         TARGET_80387.
14688
14689 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
14690
14691         * tree.c (tree_int_cst_lt): Compare constants whose types differ
14692         in unsigned-ness correctly.
14693
14694 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14695
14696         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
14697         portable runtime model.
14698
14699 2002-04-26  Richard Henderson  <rth@redhat.com>
14700
14701         * c-parse.in (yyoverflow): Revert.
14702
14703 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
14704             Richard Henderson  <rth@redhat.com>
14705
14706         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
14707         result as temporary value.
14708
14709 2002-04-26  Richard Henderson  <rth@redhat.com>
14710
14711         PR c/3581
14712         * c-common.c (fix_string_type): Split out of ...
14713         (combine_strings): ... here.  Take a varray, not a tree list.
14714         (c_expand_builtin_printf): Use fix_string_type.
14715         * c-common.h: Update decls.
14716         * c-parse.in (string): Remove.  Update all uses to use STRING
14717         instead, and not call combine_strings.
14718         (yylexstring): New.
14719         (_yylex): Use it.
14720         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
14721         (build_asm_stmt): Likewise.
14722         * objc/objc-act.c (my_build_string): Use fix_string_type.
14723         (build_objc_string_object): Build varray for combine_strings.
14724
14725 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
14726
14727         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
14728         x86-64.
14729
14730 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
14731
14732         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
14733         (HAVE_NO_R_OPERAND): Remove.
14734         (HAVE_VALUE): Remove.
14735         (op_to_prio): Update.
14736         (UNARY): Don't alter flags.
14737         (_cpp_parse_expr): want_value used to indicate whether
14738         a number or unary operator is expected next.  Distinguish
14739         unary and binary +/-.
14740         (op_as_text): Update for unary operators.
14741
14742 2002-04-25  Richard Henderson  <rth@redhat.com>
14743
14744         PR c/2161
14745         * c-parse.in (yyoverflow): New.
14746
14747 2002-04-25  Richard Henderson  <rth@redhat.com>
14748
14749         PR c/2098
14750         * c-common.c (shorten_compare): Simplfy conditions leading to
14751         the generation of a warning.
14752
14753 2002-04-25  Richard Henderson  <rth@redhat.com>
14754
14755         PR c/2035
14756         * expmed.c (extract_bit_field): Fall through to generic code rather
14757         than aborting on subreg special case.
14758
14759 2002-04-25  David S. Miller  <davem@redhat.com>
14760
14761         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
14762         for DECL being NULL.
14763
14764 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
14765
14766         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
14767
14768 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
14769
14770         * c-decl.c (grokdeclarator): Remove outdated ??? note
14771         on invalid declaration of flexible array members.
14772
14773 2002-04-25  Richard Henderson  <rth@redhat.com>
14774
14775         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
14776
14777 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
14778
14779         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
14780         needed by the compiler, even if they are used as global regs.
14781
14782 2002-04-25  Matt Hiller  <hiller@redhat.com>
14783
14784         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
14785         functions.
14786         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
14787         of the corresponding functions.
14788         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
14789         New prototypes.
14790
14791 2002-04-25  Matt Hiller  <hiller@redhat.com>
14792
14793         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
14794
14795         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
14796         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
14797         registers, adjust comment accordingly.
14798         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
14799         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
14800         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
14801         for coprocessor registers.
14802         (ADDITIONAL_REGISTER_NAMES): Include
14803         ALL_COP_ADDITIONAL_REGISTER_NAMES.
14804
14805         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
14806         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
14807         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
14808         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
14809         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
14810
14811         (mips_char_to_class): Adjust comment to include coprocessor
14812         constraint letters.
14813
14814         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
14815         New functions.
14816         (mips_reg_names, mips_regno_to_class): Include coprocessor
14817         information.
14818         (mips_sw_reg_names): Ditto, make non-static.
14819         (mips_move_1word): Handle moves to and from coprocessor registers.
14820         (mips_move_2words): Handle moves to and from coprocessor
14821         registers.
14822         (mips_class_max_nregs, mips_register_move_cost): Handle
14823         coprocessor register classes.
14824         (override_options): Initialize mips_char_to_class and
14825         mips_hard_regno_mode_ok properly for coprocessor registers.
14826
14827         * config/mips/mips.md (movdi_internal, movdi_internal2,
14828         movsi_internal1, movsi_internal2): Add constraint-sets for
14829         coprocessor registers.
14830         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
14831         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
14832         isn't mips.
14833         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
14834         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
14835         isn't mips.
14836         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
14837         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
14838         isn't mips.
14839         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
14840         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
14841         isn't mips.
14842
14843         * doc/tm.texi: Document feature.
14844
14845 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
14846
14847         * integrate.c (function_attribute_inlinable_p): Simplify.
14848         Check the table pointer is not NULL.
14849
14850 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
14851
14852         * doc/c-tree.texi: Fix typo in introduction.
14853
14854 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
14855
14856         * c-common.h (c_common_parse_file): Update.
14857         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
14858         * c-lex.c (YYDEBUG): Get from c-lex.h.
14859         (c_common_parse_file): Update.
14860         * c-lex.h (YYDEBUG, yydebug): New.
14861         * c-parse.in (YYDEBUG): Get from c-lex.h.
14862         (c_set_yydebug): Remove.
14863         * c-tree.h (c_set_yydebug): Remove.
14864         * langhooks-def.h (lhd_do_nothing_i): New.
14865         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
14866         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
14867         * langhooks.c  (lhd_do_nothing_i): New.
14868         (lhd_set_yydebug): Remove.
14869         * langhooks.h (struct lang_hooks): Update.
14870         * toplev.c (set_yydebug): New.
14871         (compile_file): Update call to parse_file hook.
14872         (decode_d_option): Update.
14873 objc:
14874         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
14875
14876 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
14877
14878         * loop.c (load_mems): Don't change the interface of called functions.
14879
14880         * calls.c (expand_call): Take current_function_pretend_args_size
14881         into account when setting argblock for sibcalls.
14882
14883 2002-04-24  Matt Hiller  <hiller@redhat.com>
14884
14885         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
14886         * c-lex.c: Ditto.
14887
14888         * cpplex.c (skip_line_comment): Process comment one multibyte
14889         character at a time rather than one char at a time, if
14890         appropriate.
14891         (parse_string): Process string one multibyte character at a time
14892         rather than one char at a time, if appropriate.
14893         * c-lex.c (lex_string): Lex and copy multibyte strings
14894         appropriately.
14895         * cpplib.h (cppchar_t): Change to unsigned.
14896
14897 2002-04-24  Richard Henderson  <rth@redhat.com>
14898
14899         PR c/3467
14900         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
14901         for c99.
14902
14903 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
14904
14905         * sh.c (sh_va_arg): If argument was passed by reference,
14906         dereference the pointer.
14907
14908         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
14909
14910         * sh.md (divsi3_i4_media): Use match_operand for input values
14911         rather than hard registers.
14912         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
14913         unnecessarily through hard registers.  Keep copies of pseudo
14914         registers outside of the libcall sequence.
14915
14916         * sh.md (casesi_shift_media): Add modes.
14917
14918         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
14919         values in memory.
14920
14921 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
14922
14923         * attribs.c (c_common_attribute_table): Move table and handlers
14924         to c-common.c.
14925         (format_attribute_table, lang_attribute_table,
14926         lang_attribute_common): Remove.
14927         (init_attributes): Replace NULL pointers with pointers to the
14928         empty table.
14929         (handle_packed_attribute, handle_nocommon_attribute,
14930         handle_common_attribute, handle_noreturn_attribute,
14931         handle_noinline_attribute, handle_always_inline_attribute,
14932         handle_used_attribute, handle_unused_attribute,
14933         handle_const_attribute, handle_transparent_union_attribute,
14934         handle_constructor_attribute, handle_destructor_attribute,
14935         handle_mode_attribute, handle_section_attribute,
14936         handle_aligned_attribute, handle_weak_attribute,
14937         handle_alias_attribute, handle_visibility_attribute,
14938         handle_no_instrument_function_attribute, handle_malloc_attribute,
14939         handle_no_limit_stack_attribute, handle_pure_attribute,
14940         handle_deprecated_attribute, handle_vector_size_attribute,
14941         vector_size_helper): Move to c-common.c.
14942         * c-common.c (c_common_attribute_table,
14943         handle_packed_attribute, handle_nocommon_attribute,
14944         handle_common_attribute, handle_noreturn_attribute,
14945         handle_noinline_attribute, handle_always_inline_attribute,
14946         handle_used_attribute, handle_unused_attribute,
14947         handle_const_attribute, handle_transparent_union_attribute,
14948         handle_constructor_attribute, handle_destructor_attribute,
14949         handle_mode_attribute, handle_section_attribute,
14950         handle_aligned_attribute, handle_weak_attribute,
14951         handle_alias_attribute, handle_visibility_attribute,
14952         handle_no_instrument_function_attribute, handle_malloc_attribute,
14953         handle_no_limit_stack_attribute, handle_pure_attribute,
14954         handle_deprecated_attribute, handle_vector_size_attribute,
14955         vector_size_helper): Move from attribs.c.
14956         * c-common.h (c_common_attribute_table,
14957         c_common_format_attribute_table): New.
14958         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
14959         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
14960         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
14961         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
14962         (LANG_HOOKS_INITIALIZER): Update.
14963         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
14964         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
14965         * target.h: Update comment.
14966         * tree.c (default_target_attribute_table): Remove.
14967         * tree.h (default_target_attribute_table, format_attribute_table,
14968         lang_attribute_table, lang_attribute_common): Remove.
14969 objc:
14970         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
14971         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
14972
14973 2002-04-24  Jason Merrill  <jason@redhat.com>
14974
14975         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
14976         * dwarf2out.c (dwarf_attr_name): Support it.
14977         (gen_array_type_die): Emit it.
14978         (lookup_type_die): No special handling for VECTOR_TYPE.
14979         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
14980
14981 2002-04-24  Richard Henderson  <rth@redhat.com>
14982
14983         * config/mips/mips.md (movdi_usd): Renumber.
14984
14985 2002-04-24  David S. Miller  <davem@redhat.com>
14986
14987         PR target/6420
14988         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
14989         32-bit Sparc and current_function_returns_struct is true.
14990
14991 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
14992
14993         * loop.c (canonicalize_condition): Use gen_int_mode.
14994
14995 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
14996
14997         * config/rs6000/altivec.h: Cleanup file.  Add non individual
14998         variants.
14999         (vec_vaddubm): New.
15000         (vec_vadduhm): New.
15001         (vec_vadduwm): New.
15002         (vec_vaddfp): New.
15003         (vec_vaddcuw): New.
15004         (vec_vaddubs): New.
15005         (vec_vaddsbs): New.
15006         (vec_vadduhs): New.
15007         (vec_vadduws): New.
15008         (vec_vaddsws): New.
15009         (vec_vand): New.
15010         (vec_vandc): New.
15011         (vec_vavgub): New.
15012         (vec_vavgsb): New.
15013         (vec_vavguh): New.
15014         (vec_vavgsh): New.
15015         (vec_vavguw): New.
15016         (vec_vavgsw): New.
15017         (vec_vrfip): New.
15018         (vec_vcmpbfp): New.
15019         (vec_vcmpequb): New.
15020         (vec_vcmpequh): New.
15021         (vec_vcmpequw): New.
15022         (vec_vcmpeqfp): New.
15023         (vec_vcmpgefp): New.
15024         (vec_vcmpgtub): New.
15025         (vec_vcmpgtsb): New.
15026         (vec_vcmpgtuh): New.
15027         (vec_vcmpgtsh): New.
15028         (vec_vcmpgtuw): New.
15029         (vec_vcmpgtsw): New.
15030         (vec_vcmpgtfp): New.
15031         (vec_vcmpgefp): New.
15032         (vec_vcfux): New.
15033         (vec_vcfsx): New.
15034         (vec_vctsxs): New.
15035         (vec_vctuxs): New.
15036         (vec_vexptefp): New.
15037         (vec_vrfim): New.
15038         (vec_lvx): New.
15039         (vec_lvebx): New.
15040         (vec_lvehx): New.
15041         (vec_lde): Add vector float variant.
15042         (vec_lvewx): New.
15043         (vec_lvxl): New.
15044         (vec_vlogefp): New.
15045         (vec_vmaddfp): New.
15046         (vec_vmhaddshs): New.
15047         (vec_vmaxub): New.
15048         (vec_vmaxsb): New.
15049         (vec_vmaxuh): New.
15050         (vec_vmaxsh): New.
15051         (vec_vmaxuw): New.
15052         (vec_vmaxsw): New.
15053         (vec_vmaxsw): New.
15054         (vec_vmaxfp): New.
15055         (vec_vmrghb): New.
15056         (vec_vmrghh): New.
15057         (vec_vmrghw): New.
15058         (vec_vmrglb): New.
15059         (vec_vmrglh): New.
15060         (vec_vmrglw): New.
15061         (vec_vminub): New.
15062         (vec_vminsb): New.
15063         (vec_vminuh): New.
15064         (vec_vminsh): New.
15065         (vec_vminuw): New.
15066         (vec_vminsw): New.
15067         (vec_vminfp): New.
15068         (vec_vmladduhm): New.
15069         (vec_vmhraddshs): New.
15070         (vec_msumubm): New.
15071         (vec_vmsummbm): New.
15072         (vec_vmsumuhm): New.
15073         (vec_vmsumshm): New.
15074         (vec_vmsumuhs): New.
15075         (vec_vmsumshs): New.
15076         (vec_vmuleub): New.
15077         (vec_vmulesb): New.
15078         (vec_vmuleuh): New.
15079         (vec_vmulesh): New.
15080         (vec_vmuloub): New.
15081         (vec_mulosb): New.
15082         (vec_vmulouh): New.
15083         (vec_vmulosh): New.
15084         (vec_vnmsubfp): New.
15085         (vec_vnor): New.
15086         (vec_vor): New.
15087         (vec_vpkuhum): New.
15088         (vec_vpkuwum): New.
15089         (vec_vpkpx): New.
15090         (vec_vpkuhus): New.
15091         (vec_vpkshss): New.
15092         (vec_vpkuwus): New.
15093         (vec_vpkswss): New.
15094         (vec_vpkshus): New.
15095         (vec_vpkswus): New.
15096         (vec_vperm): New.
15097         (vec_vrefp): New.
15098         (vec_vrlb): New.
15099         (vec_vrlh): New.
15100         (vec_vrlw): New.
15101         (vec_vrfin): New.
15102         (vec_vrsqrtefp): New.
15103         (vec_vsel): New.
15104         (vec_vslb): New.
15105         (vec_vslh): New.
15106         (vec_vslw): New.
15107         (vec_vsldoi): New.
15108         (vec_vsl): New.
15109         (vec_vslo): New.
15110         (vec_vspltb): New.
15111         (vec_vsplth): New.
15112         (vec_vspltw): New.
15113         (vec_vspltisb): New.
15114         (vec_vspltish): New.
15115         (vec_vspltisw): New.
15116         (vec_vsrb): New.
15117         (vec_vsrh): New.
15118         (vec_vsrw): New.
15119         (vec_vsrab): New.
15120         (vec_vsrah): New.
15121         (vec_vsraw): New.
15122         (vec_vsr): New.
15123         (vec_vsro): New.
15124         (vec_stvx): New.
15125         (vec_stvebx): New.
15126         (vec_stvehx): New.
15127         (vec_stvewx): New.
15128         (vec_stvxl): New.
15129         (vec_vsububm): New.
15130         (vec_vsubuhm): New.
15131         (vec_vsubuwm): New.
15132         (vec_vsubfp): New.
15133         (vec_vsubcuw): New.
15134         (vec_vsububs): New.
15135         (vec_vsubsbs): New.
15136         (vec_vsubuhs): New.
15137         (vec_vsubshs): New.
15138         (vec_vsubuws): New.
15139         (vec_vsubsws): New.
15140         (vec_vsum4ubs): New.
15141         (vec_vsum4sbs): New.
15142         (vec_vsum4shs): New.
15143         (vec_vsum2sws): New.
15144         (vec_vsumsws): New.
15145         (vec_vrfiz): New.
15146         (vec_vupkhsb): New.
15147         (vec_vupkhpx): New.
15148         (vec_vupkhsh): New.
15149         (vec_vupklsb): New.
15150         (vec_vupklpx): New.
15151         (vec_vupklsh): New.
15152         (vec_vxor): New.
15153
15154 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
15155
15156         PR c/5430
15157         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
15158         added literals from substracted literals.
15159         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
15160         (fold) [associate]: Preserve MINUS_EXPR if needed.
15161
15162 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
15163
15164         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
15165         are obsoleted.
15166
15167 2002-04-23  Tom Tromey  <tromey@redhat.com>
15168
15169         * gcc.c: Added --resource.  For PR java/6314.
15170
15171 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
15172
15173         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
15174         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
15175         these libraries.
15176
15177 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
15178
15179         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
15180
15181 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
15182
15183         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
15184         workaround.
15185         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
15186         (ix86_expand_clrstr): Fix typo.
15187         * loop.c (gen_load_of_final_value): New.
15188         (loop_givs_rescan, strength_reduce, check_dbra_loop):
15189         Use it.
15190
15191 2002-04-23  Roger Sayle  <roger@eyesopen.com>
15192
15193         * builtins.c (builtin_memset_gen_str): New function.
15194         (expand_builtin_memset): Optimize the case of constant length, but
15195         unknown value.
15196
15197 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
15198
15199         * config/rs6000/altivec.h (vec_step): Remove extraneous
15200         parentheses.
15201         (vec_ctu): Cast return.
15202
15203 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
15204
15205         PR target/6413
15206         * function.h: (struct function): Add profile_label_no field.
15207         (current_function_profile_label_no): Define.
15208         * function.c: (profile_label_no): New static var.
15209         (expand_function_start): Increment it, and copy to
15210         current_function_profile_label_no.
15211         * output.h (profile_label_no): Delete.
15212         * final.c (profile_label_no): Delete.
15213         (profile_function): Use current_function_profile_label_no.
15214         (final_end_function): Don't increment profile_label_no here.
15215         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
15216         profile_label_no with current_function_profile_label_no.
15217         * config/pa/pa.c (current_function_number): Delete.
15218         (pa_output_function_prologue): Don't output profile label here.
15219         (hppa_profile_hook): Use label_no param rather than
15220         current_function_number.
15221         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
15222         * config/pa/pa.h: .. here.
15223         (FUNCTION_PROFILER): Output profile label here.
15224
15225 2002-04-22  Eric Christopher  <echristo@redhat.com>
15226
15227         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
15228         patch of 2002-04-09 due to binutils issues.
15229         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
15230
15231 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
15232
15233         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
15234         constraint to 'o' for m=r and r=m alternatives.
15235         ("*movv8hi_internal1"): Same.
15236         ("*movv16qi_internal1"): Same.
15237         ("*movv4sf_internal1"): Same.
15238
15239 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
15240
15241         * rtl.h (RTX_FLAG): New macro.
15242         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
15243         * final.c (alter_subreg): Use macro to access rtx flag.
15244         * integrate.c (copy_rtx_and_substitute): Use new access macro.
15245         * print-rtl.c (print_rtx): Use new access macro.
15246
15247         * cse.c (insert): Check rtx code before accessing flag.
15248
15249         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
15250         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
15251         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
15252         convert_const_symbol_ref, make_canonical, make_alternative_compare,
15253         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
15254         simplify_test_exp, optimize_attrs, simplify_by_exploding,
15255         find_and_mark_used_attributes, unmark_used_attributes,
15256         add_values_to_cover, simplify_with_current_value,
15257         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
15258         copy_rtx_unchanging, main): Use new access macros.
15259
15260 2002-04-22  Tom Rix  <trix@redhat.com>
15261
15262         * expmed.c (init_expmed): Generate shifted constant once.
15263
15264 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
15265
15266         * c-lex.c (lex_charconst): Call convert to get constant in
15267         proper type; don't just smash the type field.
15268         Fixes PR c/6300.
15269
15270         * config.gcc: Add list of obsolete configurations.  Disallow
15271         building these without --enable-obsolete.
15272         * doc/install.texi: Document --enable-obsolete and obsoletion
15273         policy.  Mention obsoletion of individual targets in
15274         appropriate places.
15275
15276 2002-04-22  Richard Henderson  <rth@redhat.com>
15277
15278         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
15279
15280 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
15281
15282         PR f/6138.
15283         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
15284         (walk_fixup_memory_subreg): Likewise.
15285         (fixup_var_refs_insn): Adjust accordingly.
15286         (fixup_var_refs_1): Likewise.
15287
15288 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
15289
15290         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
15291         LIBPATH_ARCH64_SPEC): Define.
15292         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
15293         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
15294         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
15295         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
15296
15297 2002-04-22      Joel Sherrill <joel@OARcorp.com>
15298
15299         * gthr-rtems.h: Correct prototypes to remove warnings.
15300
15301 2002-04-22  Richard Henderson  <rth@redhat.com>
15302
15303         PR c/6344
15304         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
15305
15306         * gcse.c (free_insn_expr_list_list): New.
15307         (clear_modify_mem_tables): Use it.  Fix bit set usage.
15308         (canon_list_insert): Use EXPR_LISTs for expressions.
15309         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
15310
15311 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
15312
15313         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
15314         file change and include code to _cpp_pop_buffer.
15315         * cpphash.h (struct pending_option): Predeclare.
15316         (struct cpp_reader): New member next_include_file.
15317         (_cpp_pop_file_buffer): Update.
15318         (_cpp_push_next_buffer): Update, rename.
15319         * cppinit.c (cpp_destroy): Free include chain and pending here.
15320         (cpp_finish_options): Simplify.
15321         (_cpp_push_next_buffer): Rename and clean up.
15322         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
15323         Clarify.
15324         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
15325
15326 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
15327
15328         * config/rs6000/altivec.h (vec_xor): Add variant for both args
15329         being vector signed int.
15330         (vec_andc): Same.
15331         (vec_xor): Add variant for both args being vector signed char.
15332         Remove redundant variant.
15333         (vec_andc): Same.
15334
15335 2002-04-21  David S. Miller  <davem@redhat.com>
15336
15337         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
15338         compare mode in output RTL.
15339
15340 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
15341
15342         * config/rs6000/rs6000.c (rs6000_override_options): Correct
15343         style and formatting of previous patch.
15344
15345 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
15346
15347         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
15348         flag_pic for ABI_AIX.
15349
15350 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
15351
15352         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
15353         * cppfiles.c (read_include_file): Similarly.
15354         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
15355         uxstrdup ustrchr, ufputs): Similarly.
15356         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
15357         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
15358         cpp_ideq, parse_identifier, parse_number): Similarly.
15359         * cpplib.c (struct directive, dequote_string, D, run_directive,
15360         cpp_push_buffer): Similarly.
15361         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
15362         _cpp_create_definition, check_trad_stringification,
15363         cpp_macro_definition): Similarly.
15364
15365 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
15366
15367         * cppmacro.c (funlike_invocation_p): Don't step back
15368         over CPP_EOF.
15369
15370 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
15371
15372         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
15373         labelno.
15374
15375 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
15376
15377         * doc/invoke.texi: Remove Chill references.
15378         * doc/gcc.texi: Update last modified date.
15379
15380 2002-04-20  Kazu Hirata  <kazu@hxi.com>
15381
15382         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
15383         push and pop.  Replace add.l with add.w.
15384
15385 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
15386
15387         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
15388         multiply instructions for H8/300H case.
15389
15390 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
15391
15392         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
15393         Bum three instructions from each routine.
15394
15395 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
15396
15397         * Makefile.in: Update.
15398         * decl.c (push_c_function_context, pop_c_function_context,
15399         mark_c_function_context): Rename for consistency.
15400         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
15401         * c-tree.h (push_c_function_context, pop_c_function_context,
15402         mark_c_function_context): Rename for consistency.
15403         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
15404         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
15405         * function.c (init_lang_status, save_lang_status,
15406         restore_lang_status, mark_lang_status, free_lang_status):
15407         Move to langhooks.h.
15408         (push_function_context_to, pop_function_context_from,
15409         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
15410         Update.
15411         * function.h (init_lang_status, save_lang_status,
15412         restore_lang_status, mark_lang_status, free_lang_status):
15413         Move to langhooks.h.
15414         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
15415         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
15416         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
15417         LANG_HOOKS_FUNCTION_INITIALIZER): New.
15418         (LANG_HOOKS_INITIALIZER): Update.
15419         (lhd_do_nothing_f): New.
15420         * langhooks.h (struct lang_hooks_for_functions): New.
15421         (struct lang_hooks): New hooks.
15422         * langhooks.c (lhd_do_nothing_f): New.
15423 objc:
15424         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
15425         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
15426
15427 2002-04-19  David S. Miller  <davem@redhat.com>
15428
15429         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
15430         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
15431
15432 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
15433
15434         PR optimization/3756
15435         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
15436         x = ((int) y < 0) ? cst1 : cst2.
15437
15438 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
15439
15440         PR c/6358
15441         * function.c: Reapply patch for c/6358.
15442         (expand_function_end): Copy decl_rtl's mode, not
15443         current_function_return_rtx mode.
15444
15445 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
15446
15447         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
15448         targets.
15449
15450 2002-04-19  Tom Tromey  <tromey@redhat.com>
15451
15452         * doc/install.texi (Specific): Update status of Solaris 2.8.
15453         For PR libgcj/6158.
15454
15455 2002-04-19  Andreas Schwab  <schwab@suse.de>
15456
15457         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
15458         (PUT_REAL): Restore old definition.
15459
15460 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
15461             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15462
15463         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
15464         binutils 2.11.2 and higher generate smaller binaries than Sun's
15465         native tools.
15466
15467 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
15468
15469         PR c++/6352
15470         * toplev.c (rest_of_compilation): Do not defer functions for which
15471         TREE_SYMBOL_REFERENCED has already been set.
15472
15473 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
15474
15475         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
15476         alternative.
15477
15478 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
15479
15480         * builtins.c: Include langhooks.h.
15481         (lang_type_promotes_to): Remove.
15482         (expand_builtin_va_arg): Use new hook.
15483         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
15484         (simple_type_promotes_to): Move to c-typeck.c.
15485         * c-common.h (simple_type_promotes_to): Remove.
15486         * c-decl.c (duplicate_decls, grokdeclarator): Update.
15487         * c-format.c: Include langhooks.h.
15488         (check_format_types): Update.
15489         * c-tree.h (c_type_promotes_to): New.
15490         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
15491         (type_lists_compatible_p): Update.
15492         * langhooks-def.h (lhd_type_promotes_to): New.
15493         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
15494         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
15495         * langhooks.c (lhd_type_promotes_to): New.
15496         * langhooks.h (struct lang_hooks_for_types): New hook.
15497         * tree.h (lang_type_promotes_to): Remove.
15498 objc:
15499         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
15500
15501 2002-04-18  Richard Henderson  <rth@redhat.com>
15502
15503         * function.c: Revert patch for c/6358.
15504
15505 2002-04-18  Richard Henderson  <rth@redhat.com>
15506
15507         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
15508         blocks.  Handle multiple references to the TRAP block.  Handle
15509         non-adjacent THEN and OTHER blocks.
15510
15511 2002-04-18  Richard Henderson  <rth@redhat.com>
15512
15513         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
15514         crash with no type for by-mode libcalls.
15515
15516         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
15517
15518 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
15519
15520         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
15521         __xtensa_nonlocal_goto): Use a syscall instructions to flush
15522         the register windows.
15523
15524 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
15525
15526         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
15527         appropriate.  Document need for extended precision even when
15528         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
15529         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
15530         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
15531         instead of relying on later syntax error when REAL_WIDTH > 5.
15532         * real.c: Define NE based only on whether or not we have a
15533         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
15534         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
15535         define GET_REAL and PUT_REAL as simple memcpy operations; no
15536         need to byteswap or round.
15537         Use #error instead of #ifdef-ing out the entire file, for
15538         prompt error detection.
15539
15540         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
15541
15542 2002-04-18  David S. Miller  <davem@redhat.com>
15543
15544         * config/sparc/sparc.h (BRANCH_COST): Define.
15545
15546         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
15547         does it.
15548
15549 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
15550
15551         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
15552         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
15553         propagate_block calls after relaxation loop using new variable
15554         stabilized_prop_flags.
15555
15556 2002-04-18  Richard Henderson  <rth@redhat.com>
15557
15558         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
15559         (ia64_va_arg): Expect variable sized types by reference.
15560         * config/ia64/ia64-protos.h: Update.
15561         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
15562         ia64_function_arg_pass_by_reference.
15563
15564 2002-04-18  Richard Henderson  <rth@redhat.com>
15565
15566         * ifcvt.c: Include except.h.
15567         (block_has_only_trap): Break out from find_cond_trap.
15568         (find_cond_trap): Use it.  Always delete the trap block.
15569         (merge_if_block): Allow then block null.  Be less simplistic about
15570         what insns can end a block.
15571         * Makefile.in (ifcvt.o): Depend on except.h.
15572
15573         * config/ia64/ia64.md (trap, conditional_trap): New.
15574
15575 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
15576
15577         PR c/6358
15578         * function.c (assign_parms): Assign hard current_function_return_rtx
15579         register here...
15580         (expand_function_end): ...not here.
15581
15582 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
15583
15584         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
15585         * c-tree.h (c_incomplete_type_error): New.
15586         * c-typeck.c (require_complete_type, build_component_ref): Update.
15587         (incomplete_type_error): Rename.
15588         * langhooks-def.h (lhd_incomplete_type_error): New.
15589         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
15590         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
15591         * langhooks.c (lhd_incomplete_type_error): New.
15592         * langhooks.h (struct lang_hooks_for_types): New hook.
15593         * tree.c (size_in_bytes): Use new hook.
15594         * tree.h (incomplete_type_error): Remove.
15595 objc:
15596         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
15597
15598 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
15599
15600         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
15601         TARGET_FLOAT_FORMAT blocks.
15602
15603 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15604
15605         * doc/install.texi (Downloading the source): Do not mention Chill
15606         any longer, but mention Ada.
15607         (Configuration): Do not mention Chill any longer.
15608
15609 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
15610
15611         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
15612
15613 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
15614
15615         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
15616         in last patch.
15617
15618 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
15619
15620         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
15621         instead of unsigned_type.
15622
15623 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
15624
15625         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
15626         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
15627         later.
15628
15629 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
15630
15631         * attribs.c (vector_type_node_list): New static variable.
15632         (handle_vector_size_attribute): Use it to avoid generating a
15633         new type node each time we are called.
15634
15635         * combine.c (subst): Avoid trying to make a vector mode subreg of
15636         an integer constant.
15637         (gen_lowpart_for_combine): Likewise.
15638
15639 2002-04-18  Roger Sayle  <roger@eyesopen.com>
15640             Jakub Jelinek  <jakub@redhat.com>
15641
15642         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
15643         for integer constant c (if x has unsigned type or sign bit is not
15644         set in c).  This folds the zero/sign extension into the bit-wise and
15645         operation.
15646
15647 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
15648
15649         PR middle-end/6205
15650         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
15651         otherwise xorps.
15652
15653 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
15654
15655         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
15656
15657 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
15658
15659         * gcc.c (read_specs): Detect and fail if an attempt is made to
15660         rename a spec string to an already existing string.
15661
15662 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
15663
15664         * config/s390/s390.c (legitimize_pic_address): Do not generate
15665         illegal address constant without CONST.
15666
15667 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15668
15669         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
15670         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
15671
15672 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
15673
15674         PR optimization/6305
15675         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
15676         to make sure previous reloads are taken into account.  Generate
15677         better code if one operand is an in-range immediate constant.
15678
15679 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
15680
15681         * doc/install.texi (Building): libgcj requires GNU make.
15682
15683 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
15684
15685         PR bootstrap/6315
15686         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
15687         even if hard quad and register is not floating.
15688         (movtf reg<-mem split): Disallow splitting if hard quad and
15689         register is floating.
15690         (movtf mem<-reg split): Likewise.
15691         * config/sparc/sparc.c (fp_register_operand): New predicate.
15692         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
15693
15694 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
15695
15696         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
15697         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
15698         (unprotoize.o): Ditto.  Build from protoize.c.  Define
15699         UNPROTOIZE on command line.
15700         * protoize.c: Include cppdefault.h.  Delete include_defaults.
15701         (in_system_include_dir): Use cpp_include_defaults (defined in
15702         cppdefault.o).
15703         * unprotoize.c: Delete file.
15704
15705 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
15706
15707         * config/rs6000/altivec.h (vec_ld): Add array variants.
15708         (vec_lde): Same.
15709         (vec_ldl): Same.
15710
15711 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
15712             Aldy Hernandez <aldyh@redhat.com>
15713
15714         * config/rs6000/altivec.h: Define __ALTIVEC__.
15715         (bool): New.
15716         (__pixel): New.
15717         (pixel): New.
15718         (vec_cfux): New.
15719         (vec_vmaddfp): New.
15720         (vec_vsldoi): New.
15721         Add parentheses to all macro arguments.
15722
15723 2002-04-16  Richard Henderson  <rth@redhat.com>
15724
15725         PR c++/6320
15726         * except.c (remove_eh_handler): Insert inner regions at beginning
15727         of sibling chain.  Refactor expressions.
15728
15729 2002-04-16  Richard Henderson  <rth@redhat.com>
15730
15731         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
15732         * config/sparc/sol2-gas-bi.h: New file.
15733         * config.gcc (sparc*-solaris): Add it as needed.
15734         * configure.in (AS_SPARC64_FLAG): Remove check.
15735         * config.in, configure: Regenerate.
15736
15737         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
15738
15739 2002-04-16  Richard Henderson  <rth@redhat.com>
15740
15741         * config/mips/mips.c (override_options): Don't override N32 for
15742         a 64-bit ISA.
15743
15744         PR 6202
15745         * config/mips/mips.md (can_delay): Split out of existing define_delays.
15746         (HILO_delay): Set can_delay false.
15747
15748 2002-04-16  Dale Johannesen <dalej@apple.com>
15749
15750         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
15751         instruction addresses.
15752         (rs6000_output_function_epilogue): Likewise.
15753
15754 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
15755
15756         * c-parse.in (poplevel, compstmt_start,
15757         compstmt_primary_start): Add ending ';', in accordance
15758         with POSIX.
15759
15760 2002-04-16  Richard Henderson  <rth@redhat.com>
15761
15762         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
15763         Adjust tm_file order to get TARGET_DEFAULT set properly.
15764         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
15765         * doc/install.texi (sparc-solaris): Update.
15766
15767 2002-04-16  Dale Johannesen <dalej@apple.com>
15768
15769         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
15770         comparison operands do not match each other or if modes of
15771         conditions do not match result.
15772
15773 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
15774
15775         PR target/6305
15776         * config/s390/s390.md (mulsidi3): Set both subregs of the
15777         multiword register.
15778
15779 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
15780
15781         * config/rs6000/altivec.h (vec_addc): Type check.
15782
15783 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
15784
15785         PR middle-end/6279
15786         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
15787
15788         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
15789
15790 2002-04-15  Richard Henderson  <rth@redhat.com>
15791
15792         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
15793         call_really_used_regs too.
15794
15795 2002-04-15  Richard Henderson  <rth@redhat.com>
15796
15797         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
15798
15799 2002-04-15  David S. Miller  <davem@redhat.com>
15800
15801         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
15802         as being CLOBBERed.
15803
15804 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
15805
15806         PR c/6290
15807         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
15808         CONST_VECTOR is { 0, ... 0 }.
15809
15810 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
15811
15812         * doc/install.texi (Installing GCC: Configuration): Clarify
15813         the only supported ways to configure gcc.
15814
15815 2002-04-15  Roland McGrath  <roland@frob.com>
15816
15817         * config.gcc (alpha*-*-gnu*): New target configuration.
15818         * config/alpha/gnu.h: New file for it.
15819         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
15820
15821 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
15822
15823         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
15824         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
15825         * tree.h (expand_start_stmt_expr): Update prototype.
15826         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
15827         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
15828         on the STMT_EXPR created for the inline function.
15829
15830 2002-04-15  Richard Henderson  <rth@redhat.com>
15831
15832         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
15833         config/i386/linux-aout.h, config/i386/linux-oldld.h,
15834         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
15835         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
15836         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
15837         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
15838         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
15839         Define __gnu_linux__, not gnu_linux.
15840         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
15841
15842 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
15843
15844         Remove Chill front end.
15845         * gcc.c (default_compilers): Remove Chill entries.
15846         * ch: Remove directory.
15847         * doc/frontends.texi: Remove information about Chill.
15848         * doc/sourcebuild.texi: Likewise.
15849         * doc/standards.texi: Likewise.
15850
15851 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
15852
15853         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
15854         (LONGLONG_STANDALONE): Define.
15855
15856 2002-04-15  David S. Miller  <davem@redhat.com>
15857
15858         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
15859         Call emit_library_call with LCT_NORMAL.
15860         (sparc_initialize_trampoline): Use LCT_foo instead of
15861         magic constant in emit_library_call invocations.
15862         (sparc64_initialize_trampoline): Likewise.
15863         (sparc_profile_hook): Likewise.
15864         * config/sparc/sparc.md: Likewise.
15865
15866         * config/sparc/sparc.c (sparc_extra_constraint_check):
15867         Fix type of argument 'c'.
15868         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
15869         Likewise.
15870
15871 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
15872
15873         * diagnostic.h (output_buffer_state): Redefine.
15874         (output_format_decoder): New macro.
15875         (output_prefixing_rule): Likewise.
15876         (output_line_cutoff): Likewise.
15877         (diagnostic_format_decoder): Adjust.
15878         (diagnostic_prefixing_rule): Likewise.
15879         (diagnostic_line_cutoff): Likewise.
15880         (diagnostic_state): Likewise.
15881         (diagnostic_kind_count): Likewise.
15882         (diagnostic_buffer): Now a macro.
15883
15884         * diagnostic.c (diagnostic_buffer): Remove definition.
15885         (output_is_line_wrapping): Adjust.
15886         (set_real_maximum_length): Likewise.
15887         (output_set_maximum_length): Likewise.
15888         (init_output_buffer): Likewise.
15889         (lhd_print_error_function): Likewise.
15890         (output_do_verbatim): Likewise.
15891
15892 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
15893
15894         * cpperror.c (print_location): Don't print include chain
15895         if line == 0.
15896         (cpp_begin_message): Update to use DL_ macros.
15897         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
15898         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
15899         cpp_notice, cpp_notice_from_errno): Remove.
15900         (cpp_error, cpp_error_with_line): Update to take a diagnostic
15901         level.
15902         (cpp_errno): New.
15903         * cppexp.c (CPP_ICE): Remove.
15904         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
15905         lex, integer_overflow, _cpp_parse_expr): Update.
15906         * cppfiles.c (read_include_file, find_include_file,
15907         handle_missing_header, _cpp_read_file, remap_filename): Update.
15908         * cpphash.h (enum error_type): Remove.
15909         (_cpp_begin_message): Update.
15910         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
15911         cpp_handle_option, cpp_post_options): Update.
15912         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
15913         skip_whitespace, parse_identifier, parse_slow, parse_string,
15914         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
15915         cpp_interpret_charconst): Update.
15916         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
15917         lex_macro_node, do_undef, glue_header_name, parse_include,
15918         do_include_common, read_flag, do_line, do_linemarker, do_ident,
15919         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
15920         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
15921         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
15922         _cpp_pop_buffer, do_diagnostic): Update.
15923         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
15924         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
15925         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
15926         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
15927         cpp_notice, cpp_notice_from_errno): Remove.
15928         (cpp_error, cpp_error_with_line): Update to take a diagnostic
15929         level.
15930         (cpp_errno): New.
15931         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
15932         collect_args, enter_macro_context, save_parameter, parse_params,
15933         _cpp_create_definition, check_trad_stringification,
15934         cpp_macro_definition): Update.
15935         * cppmain.c (cpp_preprocess_file): Update.
15936         * fix-header.c (read_scan_file): Update.
15937
15938 2002-04-14  Andreas Schwab  <schwab@suse.de>
15939
15940         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
15941
15942 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
15943
15944         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
15945
15946 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
15947
15948         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
15949         not gnu_hurd.
15950
15951 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
15952
15953         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
15954
15955 2002-04-13      Joel Sherrill <joel@OARcorp.com>
15956
15957         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
15958         sparc-elf and sparc-rtems targets.
15959
15960 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
15961
15962         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
15963         defined, and __gnu_hurd__ wherever __GNU__ is defined.
15964         * arm/linux-elf.h: Likewise.
15965         * cris/aout.h: Likewise.
15966         * cris/linux.h: Likewise.
15967         * i370/linux.h: Likewise.
15968         * i386/gnu.h: Likewise.
15969         * i386/linux-aout.h: Likewise.
15970         * i386/linux-oldld.h: Likewise.
15971         * i386/linux.h: Likewise.
15972         * i386/linux64.h: Likewise.
15973         * ia64/linux.h: Likewise.
15974         * m68k/linux-aout.h: Likewise.
15975         * m68k/linux.h: Likewise.
15976         * mips/linux.h: Likewise.
15977         * pa/pa-linux.h: Likewise.
15978         * pj/linux.h: Likewise.
15979         * rs6000/sysv4.h: Likewise.
15980         * s390/linux.h: Likewise.
15981         * sh/linux.h: Likewise.
15982         * sparc/linux-aout.h: Likewise.
15983         * sparc/linux.h: Likewise.
15984         * sparc/linux64.h: Likewise.
15985         * xtensa/linux.h: Likewise.
15986
15987 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
15988
15989         * stmt.c (check_unique_operand_names): Expect operand names to
15990         be strings rather than identifiers.  Use simple_cst_equal to
15991         compare them.
15992         (resolve_operand_name_1): Make same identifier to string change here.
15993         * c-parse.in (asm_operand): Convert a named operand into a string.
15994         * cp/parse.y (asm_operand): Likewise.
15995
15996 2002-04-13  Andreas Schwab  <schwab@suse.de>
15997
15998         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
15999
16000 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
16001
16002         Revert these changes:
16003
16004         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
16005
16006         PR c++/5571
16007         * stor-layout.c (layout_decl): Reset the RTL for the decl.
16008
16009 2002-04-12  Richard Henderson  <rth@redhat.com>
16010
16011         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
16012         (sparc*-*-solaris): Clean up header files.
16013         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
16014         and plan on generating 64-bit code.
16015         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
16016         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
16017         * config/sparc/sol2-sld-64.h: Rename ...
16018         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
16019         for AS_SPARC64_FLAG not defined.
16020         * config/sparc/sol2-gld-bi.h: New.
16021         * config/sparc/sol2-sld.h: Remove.
16022         * config/sparc/sol26-sld.h: New.
16023         * config/sparc/sol2.h: Tidy comments.
16024         * doc/install.texi: Document sparc-solaris configury changes.
16025
16026 2002-04-12  Richard Henderson  <rth@redhat.com>
16027
16028         * recog.c (offsettable_address_p): Match the logic in adjust_address.
16029
16030         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
16031         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
16032
16033 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16034
16035         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
16036
16037 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
16038
16039         * pa.c (pa_can_combine_p): Call extract_insn before calling
16040         constrain_operands.
16041
16042 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
16043
16044         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
16045         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
16046         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
16047         (CPP_PREDEFINES): Handle __declspec.
16048         * config/i386/t-interix (USER_H): Remove.
16049
16050 2002-04-12  DJ Delorie  <dj@redhat.com>
16051
16052         * integrate.c (compare_blocks): Make comparisons safe for when
16053         sizeof(int) < sizeof(char *).
16054         (find_block): Likewise.
16055
16056 2002-04-12  Jan Hubicka  <jh@suse.cz>
16057             David Edelsohn  <edelsohn@gnu.org>
16058
16059         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
16060         registers.
16061         (symbol_ref_operand): New.
16062         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
16063         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
16064
16065 2002-04-12  Andreas Schwab  <schwab@suse.de>
16066
16067         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
16068         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
16069         overrides the definition in config/svr4.h.
16070
16071 2002-04-12      Eric Norum <eric.norum@usask.ca>
16072
16073         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
16074         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
16075         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
16076         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
16077         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
16078         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
16079         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
16080         definitions to config/rtems.h and make the targets more similar.
16081
16082 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16083
16084         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
16085         POINTERS_EXTEND_UNSIGNED.
16086         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
16087         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
16088
16089         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
16090         not specified.
16091
16092 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
16093
16094         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
16095         depends on TARGET_SHMEDIA, not TARGET_SH5.
16096
16097 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
16098
16099         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
16100         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
16101
16102 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
16103
16104         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
16105         no r0 clobber.
16106
16107 2002-04-12  Andreas Schwab  <schwab@suse.de>
16108
16109         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
16110
16111 2002-04-12  Richard Henderson  <rth@redhat.com>
16112
16113         PR bootstrap/4191
16114         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
16115
16116         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
16117         modes spanning multiple hard regs.
16118
16119         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
16120
16121 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16122
16123         * pa.c (pa_output_function_prologue): Don't accumulate the total
16124         number of code bytes when using TARGET_64BIT, or gas, SOM and not
16125         the portable runtime.
16126         (output_deferred_plabels): Handle 64bit plabels.
16127         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
16128         generating pic code using the GAS assembler for object formats that
16129         are not SOM (ie., ELF32 and ELF64).
16130         (output_millicode_call): Check attribute type if attribute length is 28.
16131         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
16132         dbr_sequence_length once.
16133         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
16134         dbr_sequence_length once.
16135         * pa.h (TARGET_SOM): Define if not defined.
16136         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
16137         with GAS and not SOM.
16138         (jump, call_internal_reg, call_value_internal_reg): Likewise.
16139         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
16140
16141 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
16142
16143         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
16144         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
16145         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
16146         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
16147         elfos.h and dbxelf.h values are fine now.
16148         * config/i386/freebsd.h, config/alpha/freebsd.h
16149         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
16150
16151 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
16152
16153         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
16154         or set Acpu or Amachine.  Reformat.
16155         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
16156         define.
16157         (LINK_SPEC): Do not need to undef.
16158         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
16159         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
16160         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
16161         define.
16162         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
16163         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
16164         (LINK_SPEC): Do not need to undef.
16165         (DONT_USE_BUILTIN_SETJMP): Do not define.
16166         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
16167         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
16168         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
16169         Remove trailing spaces.
16170         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
16171         __ELF__, or set Acpu or Amachine.  Reformat.
16172         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
16173         define.
16174
16175 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
16176
16177         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
16178         all other *-*-freebsd* targets.
16179
16180 2002-04-11  Richard Henderson  <rth@redhat.com>
16181
16182         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
16183
16184 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
16185
16186         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
16187         Include {cpu}/{cpu}.h thru tm_file.
16188         (alpha*-*-linux*ecoff): Remove target.
16189         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
16190         (LINK_SPEC): Remove, is not OS independent.
16191         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
16192         (LINK_SPEC): Do not need to #undef any longer.
16193         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
16194         any longer.
16195         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
16196         __ELF__.
16197         (LINK_SPEC): Moved here from alpha/elf.h.
16198         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
16199         SUB_CPP_PREDEFINES.
16200         * config/alpha/linux-ecoff.h: Remove.
16201         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
16202         (CPP_SPEC): Define _POSIX_SOURCE as needed.
16203         (CPP_SUBTARGET_SPEC): Do not define.
16204         (LINK_SPEC): Do not need to #undef any longer.
16205         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
16206         * config/alpha/vms.h: Likewise.
16207
16208 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
16209
16210         * doc/extend.texi: Remove old claim that typedefs cannot have
16211         an alignment attribute.
16212
16213 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
16214
16215         PR optimization/6177
16216         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
16217         bitpos is 0 and bitsize CONCAT size.
16218
16219 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
16220
16221         PR c/6223
16222         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
16223
16224 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
16225
16226         * config/alpha/freebsd.h: Minor reformatting.
16227         (CPP_SPEC): Define ELF and add cpp_subtarget.
16228         (ASM_SPEC): No longer needed.
16229
16230 2002-04-11  Richard Henderson  <rth@redhat.com>
16231
16232         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
16233         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
16234         (dimode mem/zero splitter): New.
16235
16236 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
16237
16238         * config/cris/cris.c (cris_override_options): Tweak error message
16239         for PIC not implemented.
16240
16241         * config/cris/cris.h: Tweak comments related to parameter-passing.
16242
16243         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
16244
16245 2002-04-10  Richard Henderson  <rth@redhat.com>
16246
16247         * except.c (add_ehl_entry): Allow duplicates after landing pad
16248         creation.
16249
16250 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
16251
16252         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
16253
16254 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
16255
16256         * c-decl.c (c_init_decl_processing): Move generation of
16257         decls for g77_integer_type_node and friends from here ...
16258         * c-common.c (c_common_nodes_and_builtins): ... to here.
16259
16260 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
16261
16262         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
16263         is only used as frame pointer when frame_pointer_needed is true.
16264
16265 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
16266
16267         PR target/817
16268         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
16269         for the fact that the pool entry uses two words.
16270         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
16271         1k bytes.
16272         (movdf_soft_insn): Similarly.
16273         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
16274         for the fact that the pool entry uses three words.
16275
16276 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
16277
16278         * config/mips/mips.c (mips_va_arg): When using the struct version
16279         of the EABI va_list, allow arguments in the register save area to
16280         take up less room than a stack argument.
16281
16282 2002-04-10  Richard Henderson  <rth@redhat.com>
16283
16284         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
16285         if EXPAND_INITIALIZER.
16286
16287 2002-04-09  Richard Henderson  <rth@redhat.com>
16288
16289         * config/alpha/alpha.md (movdi_er_maybe_g): New.
16290         * config/alpha/alpha.c (alpha_expand_mov): Use it.
16291
16292 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
16293
16294         PR optimization/6233
16295         * rtlanal.c (pure_call_p): New function.
16296         * rtl.h (pure_call_p): Declare.
16297         * loop.c (prescan_loop): Use it to set has_nonconst_call.
16298         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
16299
16300 2002-04-09  Eric Christopher  <echristo@redhat.com>
16301
16302         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
16303         information to .comm directive.
16304
16305 2002-04-09  Richard Henderson  <rth@redhat.com>
16306
16307         PR c/5078
16308         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
16309
16310 2002-04-09  Richard Henderson  <rth@redhat.com>
16311
16312         * basic-block.h (flow_delete_block_noexpunge): Declare.
16313         (expunge_block_nocompact): Declare.
16314         * cfg.c (expunge_block_nocompact): Split out from ...
16315         (expunge_block): ... here.
16316         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
16317         (flow_delete_block_noexpunge): Split out from ...
16318         (flow_delete_block): ... here.
16319         * cfgcleanup.c (delete_unreachable_blocks): Compact while
16320         removing dead blocks.
16321         * except.c (exception_handler_labels): Remove.
16322         (exception_handler_label_map): New.
16323         (struct eh_region): Add aka member.
16324         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
16325         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
16326         (for_each_eh_label, for_each_eh_label_1): New.
16327         (init_eh): Register exception_handler_label_map.
16328         (free_eh_status): Use free_region.
16329         (find_exception_handler_labels): Use the map, not the list.
16330         (remove_exception_handler_label): Likewise.
16331         (maybe_remove_eh_handler): Likewise.
16332         (remove_eh_handler): Use the region aka bitmap.
16333         * except.h (exception_handler_labels): Remove.
16334         (for_each_eh_label): Declare.
16335         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
16336         * loop.c (invalidate_loops_containing_label): New.
16337         (find_and_verify_loops): Use it.  Use for_each_eh_label.
16338         * sched-rgn.c (is_cfg_nonregular): Use
16339         current_function_has_exception_handlers.
16340
16341 2002-04-09  Richard Henderson  <rth@redhat.com>
16342
16343         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
16344         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
16345         Do not return changed status.
16346         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
16347         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
16348         New functions that do return changed status.
16349         * sbitmap.h: Update decls.
16350         * gcse.c, lcm.c: Use _cg functions as needed.
16351
16352 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
16353
16354         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
16355         (sh64-*-elf*, sh-*-rtemself*): Likewise.
16356         * config/sh/embed_bb.c: New file.
16357         * config/sh/embed-elf.h: New file.
16358         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
16359         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
16360         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
16361         __PTRDIFF_TYPE__ .
16362         (SUBTARGET_CPP_PTR_SPEC): Don't define.
16363         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
16364         Add subtarget_asm_endian_spec.
16365         (ASM_SPEC): Use subtarget_asm_endian_spec.
16366         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
16367         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
16368         (WCHAR_UNSIGNED): Define.
16369         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
16370         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
16371         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
16372         Fix value.
16373         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
16374         (sh_adjust_cost): Likewise.
16375         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
16376         __PTRDIFF_TYPE__ .
16377         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
16378         (WCHAR_TYPE_SIZE): Likewise.
16379         (ASM_SPEC): Use subtarget_asm_endian_spec.
16380         (SH_ELF_WCHAR_TYPE): #undef/ #define.
16381         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
16382         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
16383         (MAX_WCHAR_TYPE_SIZE): Don't #define .
16384         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
16385         (USER_LABEL_PREFIX): Don't #undef /#define .
16386         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
16387         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
16388         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
16389         (ASM_SPEC): Likewise.
16390         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
16391         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
16392         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
16393         (LIB2FUNCS_EXTRA): Define.
16394         * t-sh64 (LIB2FUNCS_EXTRA): Define.
16395         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
16396         (LIB1ASMFUNCS_CACHE): Define.
16397         (LIB2FUNCS_EXTRA): Redefine empty.
16398
16399 2002-04-08  Richard Henderson  <rth@redhat.com>
16400
16401         * reorg.c (get_branch_condition): Use reversed_comparison_code.
16402
16403 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
16404
16405         * config/m68hc11/larith.asm (__map_data_section): Fix condition
16406         and optimize for size.
16407         (__do_global_ctors): Fix pointer comparison.
16408         (__do_global_dtors): Likewise.
16409
16410 2002-04-09  David S. Miller  <davem@redhat.com>
16411
16412         * config/sparc/sparc.c (sparc_extra_constraint_check): New
16413         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
16414         allow reloading pseudos.
16415         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
16416         * config/sparc/sparc-protos.h: Declare it.
16417
16418         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
16419         unsigned comparison warning.
16420         (output_restore_regs): Mark leaf_function as unused.
16421
16422 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16423
16424         * expr.c (is_aligning_offset): New function.
16425         (expand_expr, case COMPONENT_EXPR): Call it.
16426
16427 2002-04-08  David S. Miller  <davem@redhat.com>
16428
16429         PR target/6082
16430         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
16431
16432         Make init_priority work on Sparc when using GNU ld.
16433         * config/sparc/linux.h, config/sparc/linux64.h,
16434         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
16435         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
16436         * config/sparc/sol2-gld.h: New file to do the same.
16437         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
16438         sparc/sol2-gld.h to tm_file.
16439
16440         PR optimization/4328
16441         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
16442         * doc/md.texi: Document it.
16443         * config/sparc/sparc.md (movdi_insn_sp64_novis,
16444         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
16445         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
16446         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
16447         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
16448
16449 2002-04-08  Andreas Jaeger  <aj@suse.de>
16450
16451         * stmt.c (expand_asm_operands): Revert last patch from Richard
16452         Henderson.
16453
16454 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16455
16456         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
16457         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
16458
16459 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16460
16461         * doc/contrib.texi (Contributors): Add David O'Brien.
16462
16463 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
16464
16465         * configure.in (auto-build.h): Use target_alias and build_alias
16466         when running configure.
16467         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
16468         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
16469         * configure: Regenerate.
16470
16471 2002-04-07  David S. Miller  <davem@redhat.com>
16472
16473         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
16474
16475 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16476
16477         PR 5933
16478         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
16479         generating 32-bit pic code.
16480
16481 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
16482
16483         * cppinit.c (cpp_create_reader): Initialize
16484         discard_comments_in_macro_exp.
16485         (COMMAND_LINE_OPTIONS): Add "-CC" option.
16486         (cpp_handle_option): Handle "-CC" option.
16487         * cpplex.c (save_comment): If saving a C++ comment in
16488         a directive, convert it to a C comment.
16489         (_cpp_lex_direct): Pass second comment start character to
16490         save_comment to indicate comment type.
16491         * cpplib.c (_cpp_handle_directive): If processing
16492         a "#define" directive and discard_comments_in_macro_exp
16493         is false,  re-enable saving of comments.
16494         (lex_macro_node): If discard_comments_in_macro_exp is false,
16495         discard any comments before the macro identifier.
16496         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
16497         member.
16498         * cppmacro.c (cpp_get_token): If expanding a macro while
16499         processing a directive, discard any comments we might encounter.
16500         (parse_params): If discard_comments_in_macro_exp is false,
16501         ignore comments in the macro parameter list.
16502         * gcc.c (cpp_unique_options): Add "-CC" option.
16503         (option_map): Map "--comments-in-macros" to "-CC".
16504         * doc/cppopts.texi: Document "-CC" option.
16505         * f/lang-specs.h: Add "-CC" option.
16506         * testsuite/gcc.dg/cpp/maccom1.c: New test.
16507         * testsuite/gcc.dg/cpp/maccom2.c: New test.
16508         * testsuite/gcc.dg/cpp/maccom3.c: New test.
16509         * testsuite/gcc.dg/cpp/maccom4.c: New test.
16510         * testsuite/gcc.dg/cpp/maccom5.c: New test.
16511         * testsuite/gcc.dg/cpp/maccom6.c: New test.
16512
16513 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16514
16515         PR middle-end/6180
16516         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
16517
16518 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
16519
16520         PR c++/5571
16521         * stor-layout.c (layout_decl): Reset the RTL for the decl.
16522
16523         PR opt/5120
16524         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
16525         RTX_UNCHANGING_P for the functions arguments when a tail call
16526         is made.
16527
16528 2002-04-06  Jason Merrill  <jason@redhat.com>
16529
16530         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
16531         (parse_options_and_default_flags): Set them appropriately.
16532         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
16533
16534 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
16535
16536         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
16537         here.
16538
16539         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
16540         semicolon.
16541
16542         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
16543         types come in by-reference.  Fix typo in comment.
16544
16545 2002-04-05  David S. Miller  <davem@redhat.com>
16546
16547         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
16548         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
16549         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
16550         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
16551
16552 2002-04-05  David S. Miller  <davem@redhat.com>
16553
16554         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
16555         are not going to emit return instructions, emit at least a nop
16556         for the sake of sane backtraces.
16557
16558 2002-04-05  Richard Henderson  <rth@redhat.com>
16559
16560         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
16561
16562 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
16563
16564         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
16565
16566 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
16567
16568         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
16569         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
16570         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
16571
16572 2002-04-05  Andreas Schwab  <schwab@suse.de>
16573
16574         * c-convert.c: Include c-common.h.
16575         * Makefile.in (c-convert.o): Updated.
16576
16577 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
16578
16579         * mklibgcc.in: Use separate libgcc.map for each multilib.
16580         * Makefile.in (distclean): Don't remove libgcc.map here.
16581
16582 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
16583
16584         * Makefile.in (s-mlib): Handle --disable-multilib by separate
16585         genmultilib invocation.
16586
16587 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
16588
16589         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
16590         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
16591         to num_gprs for symmetry.
16592         * config/mips/mips.c: Adjust accordingly.
16593
16594 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
16595
16596         * c-common.c (truthvalue_conversion): Rename, update.
16597         * c-common.h (c_common_truthvalue_conversion): New.
16598         * c-convert.c (convert): Update.
16599         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
16600         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
16601         * c-typeck.c (build_binary_op, build_unary_op,
16602         build_conditional_expr): Update.
16603         * fold-const.c (constant_boolean_node, fold): Use langhook.
16604         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
16605         * langhooks.h (struct lang_hooks): New hook.
16606         * stmt.c (expand_decl_cleanup): Use langhook.
16607         * tree.h (truthvalue_conversion): Remove.
16608 objc:
16609         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
16610
16611 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
16612
16613         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
16614         Add rules to make null object file.
16615
16616 2002-04-04  Jim Blandy  <jimb@redhat.com>
16617
16618         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
16619         macro formal parameter names.
16620
16621 2002-04-04  David S. Miller  <davem@redhat.com>
16622
16623         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
16624
16625 2002-04-04  Richard Henderson  <rth@redhat.com>
16626
16627         PR middle-end/5099
16628         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
16629         Support copies into and out of memory.  Don't accept allows_reg
16630         and allows_mem as gospel.
16631
16632 2002-04-04  Richard Henderson  <rth@redhat.com>
16633
16634         PR opt/6165
16635         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
16636         (write_dependence_p): Likewise.
16637
16638 2002-04-04  Richard Henderson  <rth@redhat.com>
16639
16640         * predict.c (estimate_bb_frequencies): Do frequency calculation
16641         with a volatile temporary.
16642
16643 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
16644
16645         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
16646
16647 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
16648
16649         PR c++/6119
16650         * final.c (final_start_function): Don't bump profile_label_no here...
16651         (final_end_function): ...but here.
16652
16653 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
16654
16655         * config/sparc/sparc.md (pic): New attribute.
16656         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
16657         into stack slots.
16658         (split after do_builtin_setjmp_setup): New.
16659
16660 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
16661
16662         PR fortran/6106
16663         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
16664         change.
16665
16666 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
16667
16668         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
16669         UNITS_PER_WORD for zero sized aggregates.
16670
16671 2002-04-03  David S. Miller  <davem@redhat.com>
16672
16673         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
16674         one-character spec for this, just use %(link_gcc_c_sequence).
16675
16676 2002-04-03  David S. Miller  <davem@redhat.com>
16677
16678         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
16679         handling.
16680
16681 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16682
16683         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
16684         (DWARF_FRAME_RETURN_COLUMN): Move.
16685         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
16686         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
16687         * pa.c (except.h, predict.h): Include.
16688         (FRP): Delete.
16689         (store_reg_modify, set_reg_plus_d): Revise prototypes.
16690         (output_ascii): Add cast.
16691         (store_reg_modify): Revise to add frame notes.
16692         (set_reg_plus_d): Likewise.
16693         (compute_frame_size): Include space for eh data registers in frame if
16694         the current function calls eh_return.
16695         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
16696         function calls eh_return.  Save eh data registers if the current
16697         function calls eh_return.  Fix code to add frame notes.  Emit
16698         blockage to prevent insns with frame notes being scheduled in the
16699         delay slot of calls.
16700         (hppa_expand_epilogue): Restore eh data registers and do final stack
16701         adjustment if the current function calls eh_return.  Don't add frame
16702         notes.
16703         (output_call): Revise for change in length of call insn.  Don't do
16704         return pointer adjustment for an unconditional jump in the delay slot
16705         of a call when using frame notes.
16706         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
16707         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
16708         (ARG_POINTER_CFA_OFFSET): Define.
16709         * pa.md (return_external_pic): New pattern.
16710         (prologue): Correct formatting.  Use return_external_pic if current
16711         function calls eh_return.
16712         (call_internal_symref, call_value_internal_symref,
16713         sibcall_internal_symref, sibcall_value_internal_symref): Change default
16714         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
16715         respectively.
16716         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
16717
16718         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
16719         list of targets to check using "nop" insn.
16720         * configure: Rebuilt.
16721
16722 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
16723
16724         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
16725
16726 2002-04-03  David S. Miller  <davem@redhat.com>
16727
16728         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
16729         library sequence passed to the linker.
16730         (LINK_COMMAND_SPEC): Use it.
16731         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
16732         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
16733         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
16734
16735 2002-04-03  Jason Merrill  <jason@redhat.com>
16736
16737         * except.c (struct eh_status): Remove protect_list.
16738         (begin_protect_partials, end_protect_partials): Remove.
16739         (add_partial_entry): Remove.
16740         * except.h: Remove prototypes.
16741
16742         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
16743         expand_decl_cleanup_eh.
16744
16745         PR c++/5636
16746         * tree.h (CLEANUP_EH_ONLY): New macro.
16747         * stmt.c (expand_decl_cleanup_eh): New fn.
16748         (expand_cleanups): Check CLEANUP_EH_ONLY.
16749         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
16750         Use expand_decl_cleanup_eh.
16751         (expand_stmt): Adjust.
16752         * c-common.h: Adjust prototype.
16753
16754 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
16755
16756         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
16757         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
16758         (cris_target_asm_function_epilogue): Ditto.
16759         (cris_initial_frame_pointer_offset): Ditto.
16760         (cris_simple_epilogue): Ditto.
16761         (cris_expand_builtin_va_arg): Variable-size types come in
16762         by-reference.
16763
16764 2002-04-03  David S. Miller  <davem@redhat.com>
16765
16766         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
16767         little-endian.
16768         (set_fast_math): Correct 'fsr' type.
16769
16770 2002-04-03  Richard Henderson  <rth@redhat.com>
16771
16772         PR opt/3569
16773         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
16774         * toplev.c (check_global_declarations): Use it.
16775         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
16776         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
16777         (LANG_HOOKS_DECLS): Add it.
16778         * langhooks.c (lhd_warn_unused_global_decl): New.
16779         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
16780         * c-objc-common.c (c_warn_unused_global_decl): New.
16781         * c-tree.h (c_warn_unused_global_decl): Declare.
16782         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
16783
16784 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16785
16786         * langhooks-def.h (lhd_set_decl_assembler_name,
16787         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
16788         (LANG_HOOKS_INITIALIZER): Update.
16789         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
16790         * langhooks.h (struct lang_hooks): New hook.
16791         * tree.c (set_decl_assembler_name): Move to langhooks.c.
16792         (lang_set_decl_assembler_name): Remove.
16793         (init_obstacks): Don't set hook.
16794         (decl_assembler_name): New function.
16795         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
16796         (decl_assembler_name): New.
16797         (lang_set_decl_assembler_name): Remove.
16798
16799 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
16800
16801         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
16802         works properly with .hidden symbols.
16803         * configure: Rebuilt.
16804         * config.in: Rebuilt.
16805         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
16806         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
16807         properly with .hidden symbols.
16808
16809 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
16810
16811         PR middle-end/6102
16812         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
16813         USE argument.
16814
16815 2002-04-03  Richard Henderson  <rth@redhat.com>
16816
16817         PR opt/4120
16818         * sched-rgn.c (sets_likely_spilled): New.
16819         (sets_likely_spilled_1): New.
16820         (add_branch_dependences): Use it.
16821
16822 2002-04-02  Richard Henderson  <rth@redhat.com>
16823
16824         PR opt/4311
16825         * loop.h (LOOP_FIRST_PASS): New.
16826         * loop.c (strength_reduce): Mind it when deciding to unroll.
16827         * toplev.c (rest_of_compilation): Set it.
16828
16829 2002-04-02  David S. Miller  <davem@redhat.com>
16830
16831         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
16832         mems_ok_for_ldd_peep when the order of the loads being examined
16833         is reversed.
16834         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
16835         existing comment to increase comprehension of this situation.
16836
16837 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
16838
16839         * config/sh/sh.md: Don't use union real_extract.
16840
16841 2002-04-02  Richard Henderson  <rth@redhat.com>
16842
16843         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
16844
16845 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
16846
16847         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
16848         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
16849         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
16850         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
16851         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
16852         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
16853         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
16854         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
16855         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
16856         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
16857         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
16858         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
16859         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
16860         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
16861         Include as many configury headers via tm_file as possible.  This
16862         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
16863         * config/openbsd-oldgas.h: New file.
16864         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
16865         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
16866         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
16867         config/i386/i386-coff.h, config/i386/i386-interix.h,
16868         config/i386/iscdbx.h, config/i386/linux-aout.h,
16869         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
16870         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
16871         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
16872         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
16873         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
16874         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
16875         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
16876         config/i386/vxi386.h: Do not directly include configury headers.
16877         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
16878         Directly include configury headers that are no longer automatically
16879         included by the above headers.
16880         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
16881         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
16882         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
16883         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
16884         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
16885         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
16886         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
16887         (TARGET_VERSION): Define.
16888         * config/i386/beos-elf.h, config/i386/freebsd.h,
16889         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
16890         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
16891         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
16892         config/i386/sco5.h, config/i386/sysv4.h
16893         (TARGET_VERSION): Do not need to protect.
16894         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
16895         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
16896         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
16897         config/i386/i386-interix.h, config/i386/linux-aout.h,
16898         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
16899         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
16900         (YES_UNDERSCORES): Do not define - not needed.
16901         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
16902         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
16903         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
16904         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
16905         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
16906         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
16907         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
16908         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
16909
16910 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
16911             Richard Henderson  <rth@redhat.com>
16912
16913         PR c/5484
16914         * function.c (assign_temp): Accept either type or decl argument.
16915         Detect variables whose size is too large to fit into an integer.
16916         * stmt.c (expand_decl): Pass the decl, not the type.
16917
16918 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
16919
16920         * protoize.c: Match include directory usage with cppdefault.c.
16921
16922 2002-04-03  Jeffrey A Law  (law@redhat.com)
16923             Hans-Peter Nilsson  <hp@bitrange.com>
16924
16925         * combine.c (simplify_comparison): Avoid narrowing a comparison
16926         with a paradoxical subreg when doing so would drop signficant bits.
16927
16928 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
16929
16930         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
16931         if POINTERS_EXTEND_UNSIGNED is defined.
16932
16933 2002-04-02  Richard Henderson  <rth@redhat.com>
16934
16935         PR opt/3967
16936         * local-alloc.c (contains_replace_regs): LO_SUM may contain
16937         replace regs.
16938
16939 2002-04-02  Richard Henderson  <rth@redhat.com>
16940
16941         * doc/standards.texi: Document required freestanding libc entry points.
16942
16943 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
16944
16945         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
16946         associated splitter.  Remove MQ constraint.
16947         (ctrdi_internal4): Correct CCmode clobber.
16948
16949 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16950
16951         * milli64.S ($$dyncall): New function.
16952         * t-linux (LIB1ASMFUNCS): Revise module list.
16953         (LIB1ASMSRC): Use pa/milli64.S.
16954
16955 2002-04-02  Richard Henderson  <rth@redhat.com>
16956
16957         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
16958         rename solaris_sys_varargs_h.
16959
16960 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16961
16962         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
16963         the same mode as its component.
16964
16965 2002-04-02  Richard Henderson  <rth@redhat.com>
16966
16967         PR opt/190
16968         * final.c (this_is_asm_operands): Export.
16969         * output.h (this_is_asm_operands): Declare.
16970         * config/i386/i386.c (print_operand): Error odd asm operands.
16971
16972 2002-04-02  Richard Henderson  <rth@redhat.com>
16973
16974         PR opt/420
16975         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
16976
16977 2002-04-01  Richard Henderson  <rth@redhat.com>
16978
16979         PR target/1538
16980         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
16981         * fixinc/fixincl.x: Rebuild.
16982
16983 2002-04-01  Richard Henderson  <rth@redhat.com>
16984
16985         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
16986         (atomic_alloc, atomic_free): New.
16987         (SIZE, MASK_FOR, PTR_IN): New.
16988         (emergency_reg_state, emergency_reg_state_free): New.
16989         (emergency_labeled_state, emergency_labeled_state_free): New.
16990         (reg_state_alloced, labeled_state_alloced): New.
16991         (alloc_reg_state, free_reg_state): New.
16992         (alloc_label_state, free_label_state, free_label_states): New.
16993         (push, pop, dup_state_stack, free_state_stack): Use them.
16994         (desc_label_state): Likewise.
16995         (uw_frame_state_for): Free label states and state stack.
16996         (uw_update_reg_address): Eliminate warnings.
16997
16998 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
16999
17000         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
17001         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
17002
17003 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
17004
17005         * c-decl.c (grokdeclarator): Update.
17006         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
17007         * c-tree.h (c_mark_addressable): New.
17008         * c-typeck.c (default_function_array_conversion, build_unary_op,
17009         build_array_ref, convert_for_assignment): Update.
17010         (mark_addressable): Rename.
17011         * calls.c (try_to_integrate, expand_call): Use langhook.
17012         * expr.c (expand_expr): Use langhook.
17013         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
17014         * langhooks.h (struct lang_hooks): New hook.
17015         * stmt.c (expand_asm_operands): Use langhook.
17016         * tree.h (mark_addressable): Remove.
17017 objc:
17018         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
17019
17020 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
17021
17022         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
17023         in previous change.
17024
17025 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
17026
17027         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
17028         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
17029
17030 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
17031
17032         * c-common.c (unsigned_conversion_warning, convert_and_check,
17033         unsigned_type, signed_type, shorten_compare,
17034         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
17035         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
17036         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
17037         New.
17038         * c-decl.c (grokdeclarator): Update.
17039         * c-format.c (check_format_types): Update.
17040         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
17041         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
17042         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
17043         * convert.c (convert_to_integer): Use new hooks.
17044         * expmed.c (make_tree): Use new hooks.
17045         * expr.c (store_expr): Use new hooks.
17046         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
17047         all_ones_mask_p, unextend, fold): Use new hooks.
17048         * langhooks.h (struct lang_hooks_for_types): New hooks.
17049         * tree.h (signed_or_unsigned_type, signed_type,
17050         unsigned_type): Remove.
17051 objc:
17052         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
17053         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
17054
17055 2002-03-31  Richard Henderson  <rth@redhat.com>
17056
17057         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
17058         (desc_frgr_mem): Fix reference to f16-f31.
17059
17060 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17061
17062         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
17063         RTVEC_ELT): Const-ify.
17064         * varray.h (VARRAY_CHECK): Const-ify.
17065         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
17066         ggc_mark_rtvec, ggc_mark): Const-ify.
17067
17068 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
17069
17070         * diagnostic.c: Include langhooks-def.h.
17071         * Makefile.in (diagnostic.o): Update.
17072
17073 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
17074
17075         * c-common.c (c_unsafe_for_reeval): Rename.
17076         * c-common.h (c_unsafe_for_reeval): Rename.
17077         * c-decl.c (finish_incomplete_decl): Rename.
17078         (c_init_decl_processing): Don't set langhook.
17079         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
17080         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
17081         * c-objc-common.c (c_objc_common_init): Don't set langhook.
17082         * c-tree.h (finish_incomplete_decl): Rename.
17083         * langhooks-def.h (lhd_unsafe_for_reeval): New.
17084         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
17085         (LANG_HOOKS_INITIALIZER): Update.
17086         * langhooks.c (lhd_unsafe_For_reeval): New.
17087         * langhooks.h (struct langhooks): New hooks.
17088         * toplev.c (incomplete_decl_finalize_hook): Remove.
17089         (wrapup_global_declarations): Update.
17090         * tree.c (lang_unsafe_for_reeval): Remove.
17091         (unsafe_for_reeval): Update.
17092         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
17093         Remove.
17094 objc:
17095         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
17096         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
17097
17098 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
17099
17100         * diagnostic.c (print_error_function): Remove.
17101         (default_print_error_function): Rename.
17102         (report_error_function): Update.
17103         * diagnostic.h (print_error_function): Remove.
17104         (default_print_error_function): Remove.
17105         * langhooks-def.h (struct diagnostic_context): Predeclare.
17106         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
17107         (LANG_HOOKS_INITIALIZER): Update.
17108         * langhooks.h (struct diagnostic context): Predeclare.
17109         (struct lang_hooks): New hook.
17110
17111 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17112
17113         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
17114         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
17115         !flag_pic.
17116         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
17117         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
17118         of PIC_OFFSET_TABLE_REGNUM thruout.
17119         * config/rs6000/rs6000.md: Likewise.
17120         * config/rs6000/darwin.h: Likewise.
17121
17122 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17123
17124         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
17125         unsigned HOST_WIDE_INT, not unsigned int.
17126
17127 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
17128
17129         PR middle-end/6096, middle-end/6098, middle-end/6099
17130         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
17131         CODE_LABELs.
17132         (fill_slots_from_thread): Likewise.
17133
17134 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
17135
17136         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
17137         floating fields in float regs.
17138         (function_arg_record_value_2): Likewise.
17139
17140 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
17141
17142         * config/mmix/mmix.md (define_constants): Remove misleading
17143         FIXME.  Add MMIX_fp_rO_OFFSET.
17144         ("nonlocal_goto_receiver"): Don't have stack-frame address of
17145         saved rO as part of the pattern.  Remove FIXME.
17146         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
17147         here, at output-time.
17148
17149 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
17150
17151         PR middle-end/6100
17152         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
17153         REG_BR_PRED.
17154         (output_v9branch): Likewise.
17155
17156 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
17157
17158         * gcc.c: Revert previous patch for now.
17159         * config/i386/djgpp.h: Likewise.
17160
17161 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
17162
17163         * config/mmix/crti.asm (_init): Register _fini with atexit.
17164         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
17165
17166 2002-03-31  Richard Henderson  <rth@redhat.com>
17167
17168         PR target/3997
17169         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
17170         (ASM_OUTPUT_DEF_FROM_DECLS): New.
17171
17172 2002-03-31  Richard Henderson  <rth@redhat.com>
17173
17174         * libgcc2.c (__bb_exit_func): Make static.
17175
17176         * config/alpha/alpha.md (trap): New.
17177
17178 2002-03-31  Richard Henderson  <rth@redhat.com>
17179
17180         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
17181         promoted argument types; build trap.
17182         (expand_builtin_trap): New.
17183         (expand_builtin): Use it.
17184         * stmt.c (expand_nl_goto_receivers): Likewise.
17185         * expr.h (expand_builtin_trap): Declare.
17186         * libfuncs.h (LTI_abort, abort_libfunc): New.
17187         * optabs.c (init_optabs): Init abort_libfunc.
17188
17189 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
17190
17191         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
17192         (LINK_COMMAND_SPEC): ... from here.
17193         (init_gcc_specs): Duplicate it here too, omitting
17194         shared_name in the second copy.
17195         (init_spec): Test for duplicate
17196         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
17197
17198 2002-03-30  David S. Miller  <davem@redhat.com>
17199
17200         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
17201         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
17202
17203 2002-03-30  Roger Sayle <roger@eyesopen.com>
17204             Richard Henderson  <rth@redhat.com>
17205
17206         * regmove.c (combine_stack_adjustments_for_block): Avoid
17207         emitting a stack adjustment of zero bytes.  Let delete_insn
17208         update bb->head.
17209
17210 2002-03-30  Richard Henderson  <rth@redhat.com>
17211
17212         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
17213         (sparc_emitting_epilogue): New.
17214         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
17215         * config/sparc/sparc-protos.h: Update.
17216         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
17217         (TARGET_SWITCHES): Update.
17218         * config/sparc/sparc.md (return): Remove.
17219         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
17220         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
17221         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
17222         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
17223         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
17224         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
17225         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
17226         Remove MASK_EPILOGUE.
17227         * doc/invoke.texi: Update.
17228
17229 2002-03-30  Daniel Berlin  <dan@dberlin.org>
17230
17231         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
17232         CPP will start the file for us.
17233
17234 2002-03-30  Richard Henderson  <rth@redhat.com>
17235
17236         PR target/5446
17237         * config/ia64/ia64.c (group_barrier_needed_p): Special case
17238         prologue_allocate_stack.
17239         (ia64_single_set): Use insn codes for recognition of special
17240         cases, not rtl matching.
17241         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
17242
17243 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
17244
17245         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
17246
17247 2002-03-30  Richard Henderson  <rth@redhat.com>
17248
17249         PR target/6032
17250         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
17251         or -fomit-frame-pointer with profiling.
17252         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
17253         (FUNCTION_PROFILER): Do nothing.
17254         (PROFILE_HOOK): New.
17255         * config/sparc/sparc.c (sparc_override_options): Don't check
17256         code models for profiling.
17257         (sparc_function_profiler): Remove.
17258         (sparc_profile_hook): New.
17259         * config/sparc/sparc-protos.h: Update.
17260
17261 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
17262
17263         PR optimization/6086
17264         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
17265         of SUBREG of volatile MEM or because the MEM was mode dependent,
17266         return CLOBBER instead of unmodified SUBREG.
17267
17268 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
17269
17270         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
17271         when not optimizing.
17272
17273         * toplev.c (rest_of_compilation): Cann mark_constant_function
17274         only when optimizing.
17275
17276         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
17277         are NULL.
17278
17279         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
17280         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
17281         (try_optimize_cfg): clear all AUX fields.
17282
17283         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
17284         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
17285         (ix86_address_cost): Be prepared for SUBREGed registers.
17286         (legitimate_address_p): Accept SUBREGed registers.
17287
17288 2002-03-29  Richard Henderson  <rth@redhat.com>
17289
17290         PR target/5672
17291         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
17292
17293 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
17294
17295         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
17296         for aggregate and TFmode types.
17297
17298 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
17299
17300         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
17301
17302 2002-03-29  Richard Henderson  <rth@redhat.com>
17303
17304         PR target/5886
17305         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
17306         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
17307
17308 2002-03-29  Richard Henderson  <rth@redhat.com>
17309
17310         PR target/6041
17311         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
17312         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
17313         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
17314         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
17315         conditional.
17316         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
17317
17318 2002-03-29  Dale Johannesen <dalej@apple.com>
17319
17320         * loop.c (combine_movables): Do allow combination of pseudos.
17321
17322 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
17323
17324         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
17325         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
17326         No functional change except ...
17327         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
17328         * doc/install.texi (*-*-freebsd*): Document port configuration.
17329
17330 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17331
17332         * Makefile.in (convert.o, calls.o, expmed.o): Update.
17333         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
17334         Use new hooks.
17335         * builtin-types.def (BT_PTRMODE): Update.
17336         * c-common.c (type_for_size): Rename c_common_type_for_size.
17337         (type_for_mode): Similarly.
17338         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
17339         Use new hook.
17340         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
17341         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
17342         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
17343         Redefine.
17344         * c-typeck.c (common_type, comptypes, default_conversion):
17345         Use new hooks.
17346         * calls.c: Include langhooks.h.
17347         (emit_library_call_value_1): Use new hooks.  Avoid redundant
17348         calls.
17349         * convert.c: Include langhooks.h
17350         (convert_to_pointer, convert_to_integer): Use new hooks.
17351         * except.c (init_eh): Similarly.
17352         * expmed.c: Include langhooks.h.
17353         (expand_mult_add): Use new hooks.
17354         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
17355         try_casesi): Similarly.
17356         * fold-const.c (optimize_bit_field_compare, make_range,
17357         decode_field_reference, fold_truthop, fold): Similarly.
17358         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
17359         put_var_into_stack): Similarly.
17360         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
17361         LANG_HOOKS_TYPE_FOR_SIZE): New.
17362         (LANG_HOOKS_TYPES_INITIALIZER): Update.
17363         * langhooks.h (lang_hooks_for_types): New hooks.
17364         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
17365         * tree.c (get_unwidened, get_narrower): Similarly.
17366         * tree.h (type_for_mode, type_for_size): Remove.
17367         * varasm.c (force_const_mem): Use new hooks.
17368         * utils2.c (nonbinary_modular_operation): Update.
17369 objc:
17370         * objc-act.c (handle_impent): Update.
17371         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
17372         Redefine.
17373
17374 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
17375
17376         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
17377         * config/ia64/ia64.c (basereg_operand): New.
17378         * config/ia64/ia64-protos.h (basereg_operand): Declare.
17379         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
17380
17381 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
17382
17383         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
17384         unwind information when frame_pointer_needed.
17385         (mmix_assemble_integer): Tweak wording in comment.
17386
17387 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
17388
17389         * Makefile.in (except.o): Update.
17390         * except.c: Include langhooks.h.
17391         (init_eh): Use langhook.
17392         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
17393         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
17394         (LANG_HOOKS_INITIALIZER): Update.
17395         * langhooks.h (lang_hooks_for_types): New.
17396         (struct lang_hooks): Add it.
17397         * tree.c (make_lang_type_fn, make_lang_type): Remove.
17398         * tree.h (make_lang_type_fn, make_lang_type): Remove.
17399 config:
17400         * alpha/alpha.c: Include langhooks.h.
17401         (alpha_build_va_list): Use langhook.
17402         * d30v/d30v.c: Include langhooks.h.
17403         (d30v_build_va_list): Use langhook.
17404         * i386/i386.c: Include langhooks.h.
17405         (ix86_build_va_list): Use langhook.
17406         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
17407         * s390/s390.c: Include langhooks.h.
17408         (s390_build_va_list): Use langhook.
17409         * stormy16/stormy16.c: Include langhooks.h.
17410         (stormy16_build_va_list): Use langhook.
17411
17412 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
17413
17414         PR c++/5964
17415         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
17416         attributes.
17417         (length): Compute variable length for branches/calls/jumps here.
17418         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
17419         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
17420         define branch_type attribute.
17421         (divsi3_sp32): Maximum length is 6 not 7.
17422         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
17423         call_address_untyped_struct_value_sp32,
17424         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
17425         * config/sparc/sparc.c (empty_delay_slot): New function.
17426         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
17427         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
17428
17429 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
17430
17431         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
17432         nonzero_bits if not needed.
17433         (nonzero_bits) [XOR]: Likewise.
17434         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
17435         reg_last_set_mode and mode are both MODE_INT, but not equal.
17436         (record_value_for_reg): Compute reg_last_set_nonzero_bits
17437         in nonzero_bits_mode for MODE_INT modes.
17438
17439 2002-03-28  Richard Henderson  <rth@redhat.com>
17440
17441         PR target/5715
17442         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
17443         to GAS.  Correct drift between alternatives.
17444
17445 2002-03-28  Richard Henderson  <rth@redhat.com>
17446
17447         PR target/6087
17448         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
17449
17450 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
17451
17452         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
17453         emulation to the linker.
17454
17455 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
17456
17457         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
17458         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
17459
17460 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
17461
17462         * combine.c (simplify_and_const_int): Make sure to apply mask
17463         when force_to_mode returns a constant integer.  PR3311.
17464
17465 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
17466
17467         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
17468
17469 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
17470
17471         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
17472         and Objective-C Dialect Options.
17473
17474 2002-03-28  Richard Henderson  <rth@redhat.com>
17475
17476         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
17477         comparison should be done vs !=0 not >0 return code.  Tidy cases.
17478
17479 2002-03-28  Richard Henderson  <rth@redhat.com>
17480
17481         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
17482         on to c_expand_body.
17483         * c-tree.h (finish_function): Update decl.
17484         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
17485
17486 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
17487
17488         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
17489
17490 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
17491
17492         * rtlanal.c: Include flags.h
17493         (may_trap_p): Do not mark FP operations if trapping
17494         if !flag_trapping_math
17495         * Makefile.in (rtlanal.o): Add dependency on flag.h
17496         * ifcvt.c (noce_operand_ok): Avoid the lameness.
17497
17498 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
17499
17500         * mips.md: Use dconst1, not 1.0, as first argument of
17501         REAL_VALUE_LDEXP.  Don't use union real_extract.
17502
17503 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
17504
17505         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
17506         rather than $target.  Heed program_prefix and
17507         program_transform_name.  Search for gas in cross-compiler case too.
17508         "test -x" rather than "test -f".
17509         (gcc_cv_ld): Likewise.
17510         (gcc_cv_nm): Heed program_prefix and program_transform_name.
17511         (gcc_cv_objdump): Likewise.
17512         * configure: Regenerate.
17513
17514 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
17515
17516         * Makefile.in (attribs.o): Update.
17517         * attribs.c: Include langhooks.h.
17518         (decl_attributes): Use langhook.
17519         * c-decl.c (insert_default_attributes): Rename.
17520         * c-tree.h (c_insert_default_attributes): New.
17521         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
17522         (LANG_HOOKS_INITIALIZER): Update.
17523         * langhooks.h (struct lang_hooks): New hook.
17524         * tree.h (insert_default_attributes): Remove.
17525 objc:
17526         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
17527
17528 2002-03-27  Andreas Schwab  <schwab@suse.de>
17529
17530         * config/i386/i386.c (classify_argument): Also check for
17531         QUAL_UNION_TYPE.
17532
17533 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
17534
17535         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
17536         any more.
17537
17538 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
17539
17540         * i960.md (ret): Set PC.
17541         (nonlocal_goto): Fix expander.
17542         * builtins.c (epxand_builin_longjmp): Check that we've emitted
17543         some jump or call.
17544
17545 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
17546
17547         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
17548         of libcall regions.
17549
17550 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
17551
17552         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
17553         assigning to BLOCK_FOR_INSN directly.
17554
17555 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
17556
17557         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
17558
17559 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
17560
17561         * c-common.c (c_expand_expr): Fix prototype.
17562         * c-common.h (c_expand_expr): Always declare, update.
17563         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
17564         * c-objc-common.c (c_objc_common_init): No global hook.
17565         * expr.c (expand_expr): Use langhook.
17566         * expr.h (enum expand_modifier): Conditionally declare.
17567         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
17568         (LANG_HOOKS_INITIALIZER): Update.
17569         * langhooks.c (lhd_expand_expr): New.
17570         * langhooks.h (struct lang_hooks): New hook.
17571         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
17572         (lang_independent_init): Don't default hook.
17573 objc:
17574         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
17575
17576 2002-03-27  Richard Henderson  <rth@redhat.com>
17577
17578         PR target/6054
17579         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
17580         TARGET_CONST_GP.  Simplify conditions.
17581
17582 2002-03-27  Richard Henderson  <rth@redhat.com>
17583
17584         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
17585         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
17586         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
17587
17588 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
17589
17590         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
17591         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
17592         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
17593         Remove unnecessary masks.
17594         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
17595         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
17596         -mwindows, -mdll switches and their negations.
17597
17598 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
17599
17600         * gcc-common.c (lang_mark_false_label_stack): Remove.
17601         * ggc.h (lang_mark_false_label_stack): Similarly.
17602
17603 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
17604
17605         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
17606
17607         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
17608         or __rtems_ is defined.
17609
17610 2002-03-26  Richard Henderson  <rth@redhat.com>
17611
17612         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
17613         if a non-trivial load was emitted.
17614         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
17615         in high+extra+low case.
17616
17617 2002-03-26  Richard Henderson  <rth@redhat.com>
17618
17619         * config.gcc (sparc*-solaris): Use float_format=sparc.
17620
17621 2002-03-26  Richard Henderson  <rth@redhat.com>
17622
17623         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
17624         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
17625         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
17626         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
17627         (WINT_TYPE_SIZE): Fix at 32.
17628
17629 2002-03-26  Richard Henderson  <rth@redhat.com>
17630
17631         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
17632         until after eh landing pad generation.
17633         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
17634         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
17635
17636 2002-03-26  Richard Henderson  <rth@redhat.com>
17637
17638         * expr.h (ADD_PARM_SIZE): One more convert for INC.
17639
17640 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
17641
17642         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
17643         and warning switches.
17644         (cc1_options):  Likewise.
17645
17646 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
17647
17648         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
17649         Restore more of the signal context.  Set no_reg_stack_frame.
17650         * config/ia64/unwind-ia64.c (unw_state_record):
17651         Add no_reg_stack_frame, comments.
17652         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
17653         (uw_update_context): Adjust bsp when unwinding from leaf,
17654         but not signal frame.
17655
17656 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
17657
17658         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
17659
17660 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
17661
17662         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
17663
17664 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
17665
17666         PR target/5621
17667         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
17668         "Add a pool_range attribute", which was lost during the ARM/Thumb
17669         merge.
17670
17671 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
17672
17673         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
17674         a register into the MAC16 accumulator.
17675
17676 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
17677
17678         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
17679         (Warning Options): Document -Wswitch-enum.
17680         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
17681         -Wswitch.
17682         (warn_switch_enum): Define variables.
17683         * flags.h (warn_switch_enum): Declare variables.
17684         * stmt.c (expand_end_case_type): When warn_switch_enum /
17685         -Wswitch-enum, perform switch checks.
17686         Fix PR c/5044.
17687
17688 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
17689
17690         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
17691         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
17692         (reload_muladdsi_compare0_scratch): Delete.
17693
17694 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
17695
17696         * doc/install.texi (*-*-freebsd*): Update.
17697
17698 2002-03-26  Richard Henderson  <rth@redhat.com>
17699
17700         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
17701         (SUB_PARM_SIZE): Cast DEC to ssizetype.
17702
17703         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
17704         types from the normal argument frame.
17705
17706         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
17707         variable sized objects by reference.
17708         (sparc_va_arg): Receive them by reference too.
17709
17710 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
17711
17712         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
17713         code to not restoring global registers.
17714
17715 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
17716
17717         * Makefile.in (ggc-common.o): Update.
17718         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
17719         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
17720         * c-tree.h (c_mark_tree): New.
17721         * ggc-common.c: Include langhooks.h.
17722         (gcc_mark_trees): Use new langhook.
17723         * ggc-callbacks.c: Delete file.
17724         * ggc.h (lang_mark_tree): Remove.
17725         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
17726         (LANG_HOOKS_INITIALIZER): Update.
17727         * langhooks.h (struct lang_hooks): New hook.
17728 objc:
17729         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
17730
17731 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
17732
17733         * doc/cpp.texi: Exclude entire Top node from printed manual.
17734         Move option index after directive index.  Insert page breaks
17735         before GFDL and concept index.  Index environment variables
17736         with command line options.
17737         * doc/cppenv.texi: Use @vtable for environment variable list.
17738         Add paragraph explaining semantics of empty elements in path
17739         variables.  Exclude a cross-reference to Fishkill from the
17740         manpage.  Remove an unnecessary cross-reference of the entry
17741         right above the referer.  Don't use @anchor in text that goes
17742         into manpage.
17743         * doc/cppopts.texi: Cross-reference the environment variables
17744         section, not the specific environment variable, for consistency.
17745
17746 2002-03-25  Richard Henderson  <rth@redhat.com>
17747
17748         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
17749         anywhere in the block.  Don't refer to insns that have been
17750         removed from the chain.  Iterate backward through the new insns.
17751         Don't refer to edges that have been removed.
17752
17753 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
17754
17755         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
17756         test for overflow of constant.
17757
17758 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
17759
17760         PR target/2623
17761         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
17762         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
17763         these patterns on arm_archv4.
17764
17765 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
17766
17767         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
17768         int".
17769
17770 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
17771
17772         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
17773         float_handled, float_handler, float_signal, set_float_handler,
17774         and do_float_handler.  Set handler for SIGFPE to crash_signal.
17775         * toplev.h: Don't prototype do_float_handler.
17776
17777         * c-lex.c: Fold parse_float into lex_number.  Make warning
17778         about portability of hex float constants more informative, and
17779         don't issue it on top of a syntax error.
17780         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
17781         their callers.
17782         * real.h: Define REAL_VALUE_ABS here...
17783         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
17784         simplify_unary_real, simplify_binary_real, and
17785         simplify_binary_is2orm1 into their callers.
17786         * tree.c: Fold build_real_from_int_cst_1 into caller.
17787
17788         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
17789
17790         * tsystem.h: Include float.h here...
17791         * libgcc2.c: ... not here.
17792
17793 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
17794
17795         Fixes for: PR bootstrap/3591, target/5676
17796         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
17797         defined.  Do not disable exceptions or rtti.
17798         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
17799         mcore.h.  Disable exceptions and rtti, since they are not
17800         supported by EPOC.
17801
17802 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
17803
17804         * c-decl.c (maybe_build_cleanup): Remove.
17805         * expr.c (expand_expr): Use langhook.
17806         * langhooks-def.h (lhd_return_null_tree,
17807         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
17808         (LANGHOOKS_INITIALIZER): Update.
17809         * langhooks.c (lhd_return_null_tree): New.
17810         * langhooks.h (struct lang_hooks): New hook.
17811         * tree-inline.c (initialize_inlined_parameters): Use langhook.
17812         * tree.h (maybe_build_cleanup): Remove.
17813
17814 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
17815
17816         * regrename.c (build_def_use): Move recog_memoized
17817         before extract_insn.
17818
17819 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
17820
17821         PR target/6043
17822         * expr.c (emit_group_store): Handle storing into CONCAT.
17823
17824 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
17825
17826         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
17827         corresponding MATCH_DUP.
17828
17829 2002-03-24  Richard Henderson  <rth@redhat.com>
17830
17831         * unroll.c (unroll_loop): Zero label_map.
17832
17833         * gcse.c: Include except.h.
17834         * Makefile.in (gcse.o): Update.
17835
17836 2002-03-24  Richard Henderson  <rth@redhat.com>
17837
17838         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
17839         Do resolve_unique_section before shared data clause.
17840
17841 2002-03-24  Richard Henderson  <rth@redhat.com>
17842
17843         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
17844
17845 2002-03-24  Richard Henderson  <rth@redhat.com>
17846
17847         * recog.c (peephole2_optimize): Split blocks when EH insns are
17848         generated in the middle of a block.  Do global life update if
17849         zapped EH edges.
17850
17851 2002-03-24  Richard Henderson  <rth@redhat.com>
17852
17853         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
17854
17855 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
17856
17857         preprocessor/3951
17858         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
17859         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
17860         (init_dependency_output): Don't make no_output decision here.
17861
17862 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
17863
17864         * stmt.c (check_for_full_enumeration_handling): Remove tests of
17865         warn_switch.  Update description.
17866         (expand_end_case_type): Call check_for_full_enumeration_handling
17867         when warn_switch.
17868
17869 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17870
17871         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
17872         (m68hc11_split_move): Call it to see if the source and destination
17873         operands use the same direction auto inc/dec mode, otherwise make the
17874         source an offsetable memory operand and generate an add.
17875
17876 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
17877
17878         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
17879         register for operand 2.
17880         ("*subsi3_zero_extendqi"): Likewise.
17881         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
17882         bits so that it is compatible with a pop.
17883         ("*andhi3_gen"): Likewise.
17884         ("xorhi3"): Likewise.
17885
17886 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
17887
17888         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
17889         -pedantic here...
17890         (cpp_post_options): ... not here.
17891
17892 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
17893             Aldy Hernandez  <aldyh@redhat.com>
17894
17895         Removal of separate preprocessor cpp0.
17896
17897         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
17898         cpp0, install-common): Update.
17899         * c-common.c (flag_preprocess_only): New.
17900         (c_common_init): Preprocess for -E.
17901         * c-common.h (flag_preprocess_only): New.
17902         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
17903         * c-objc-common.c (c_init_decl_processing): Exit quickly
17904         for NULL return from c_common_init.
17905         * cpplib.h (cpp_preprocess_file): New.
17906         * cppmain.c (main, general_init, pfile, progname): Remove.
17907         (do_preprocessing): Rename cpp_preprocess_file, don't call
17908         cpp_finish.  Don't close stdout here.
17909         (setup_callbacks): Update prototype.
17910         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
17911         Update.
17912         * tradcpp.c (main): Ignore -quiet.
17913 objc:
17914         * lang-specs.h (default_compilers): Preprocess with cc1obj.
17915
17916 2002-03-24  Richard Henderson  <rth@redhat.com>
17917
17918         PR optimization/5742
17919         * machmode.def: Add inner mode field to complex modes.
17920         * config/mips/mips.c (mips_function_value): Always define.  Add
17921         new argument to handle libcalls.
17922         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
17923         (FUNCTION_VALUE): Likewise.
17924         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
17925         * config/mips/mips-protos.h: Update.
17926
17927 2002-03-23  Richard Henderson  <rth@redhat.com>
17928
17929         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
17930         * config/sparc/sparc-protos.h: Update.
17931         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
17932
17933 2002-03-23  Richard Henderson  <rth@redhat.com>
17934
17935         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
17936         _start or _init begins the text segment.
17937
17938 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
17939
17940         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
17941         not HOST_WIDEST_INT.
17942         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
17943
17944 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
17945
17946         PR java/5489
17947         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
17948         operand argument to output_return_instruction.
17949         * arm.c (arm_print_operand, case 'd'): If the operand is
17950         const_true_rtx then just return.
17951         (arm_print_operand, case 'D'): If the operand is const_true_rtx
17952         then abort.
17953
17954 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
17955
17956         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
17957         (Warning Options): Document -Wswitch-default.
17958         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
17959         -Wswitch.
17960         (warn_switch_default): Define variable.
17961         (warn_switch): Update comment.
17962         * flags.h (warn_switch_default): Declare variable.
17963         (warn_switch): Update comment.
17964         * stmt.c (expand_end_case): Check for and, when
17965         warn_switch_no_default, warn of a missing default case.
17966
17967 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
17968
17969         * real.h (N): Special case 128 bit doubles.
17970
17971         * combine.c (simplify_comparison): When widening modes, ignore
17972         sign extension on CONST_INTs.
17973
17974 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
17975
17976         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
17977         passed to adjust_address.  Fix comment formatting.
17978
17979
17980 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
17981
17982         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
17983         Always make REAL_VALUE_TYPE a struct containing an array of
17984         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
17985         big it is.  Don't declare or use union real_extract.
17986
17987         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
17988         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
17989         (print_operand), config/arm/arm.c (output_move_double),
17990         config/arm/arm.md (consttable_4, consttable_8),
17991         config/romp/romp.c (output_fpops), config/s390/s390.h
17992         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
17993         (xtensa_output_literal): Don't use union real_extract.
17994
17995         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
17996         (sfmode_constant_to_ulong), config/ns32k/merlin.h
17997         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
17998         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
17999         (PRINT_OPERAND): Don't use local version of union
18000         real_extract.
18001
18002         * config/convex/convex.c (check_float_value), config/vax/vax.c
18003         (vax_float_literal), config/m88k/m88k.md (divdf3),
18004         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
18005         config/pdp11/pdp11.c (output_move_quad): Don't do host
18006         arithmetic on target floating point quantities.
18007
18008         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
18009         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
18010
18011         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
18012         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
18013
18014         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
18015         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
18016         INFINITY.
18017         * print-rtl.c (print_rtx): Disable code which needs
18018         floating-point emulator.
18019         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
18020         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
18021         depending on HOST_FLOAT_FORMAT to be defined properly.
18022
18023         * config/1750a/1750a.c (get_double, float_label): Delete.
18024         (print_operand): Delete huge commented-out chunk.  Use
18025         REAL_VALUE_TO_DECIMAL.
18026         * config/1750a/1750a-protos.h: Delete prototypes of deleted
18027         functions.
18028         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
18029         IEEE_FLOAT_FORMAT.
18030         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
18031         Use REAL_VALUE_TO_DECIMAL as ELF version does.
18032         * config/m88k/m88k.c (real_power_of_2_operand,
18033         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
18034         real_extract out of the union; run the input through
18035         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
18036         from that into the union.
18037         * config/pdp11/pdp11.c (output_move_double): Rearrange
18038         parentheses to make automatic indenter happy.
18039
18040         * doc/tm.texi (Cross-compilation): Rename node to "Floating
18041         Point" and rewrite to describe current situation.  Also adjust
18042         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
18043         match code.
18044         * doc/rtl.texi: Adjust cross reference.
18045
18046 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
18047
18048         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
18049         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
18050         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
18051         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
18052         prevent use of sp as a reload register.
18053         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
18054         non_acc_reg_operand.
18055         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
18056         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
18057         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
18058         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
18059
18060 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
18061
18062         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
18063         * cpplex.c (unterminated): Delete.
18064         (parse_string): No string literal may extend over multiple
18065         lines.  Suppress the error when preprocessing assembly.
18066         * cppmain.c (scan_translation_unit): Strings are single-line.
18067
18068         * doc/cpp.texi: Update to match.
18069
18070 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
18071
18072         PR optimization/5854
18073         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
18074         Shut up warnings.
18075         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
18076         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
18077         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
18078         const0 if scratch register was not allocated.
18079         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
18080         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
18081         with GEN_INT (...).
18082         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
18083         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
18084         with GEN_INT (...) everywhere.  Remove constraints in define_split
18085         patterns.
18086         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
18087         require scratch register for setting 0 into regs/non-pushable memory.
18088
18089 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
18090
18091         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
18092         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
18093
18094 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
18095
18096         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
18097         * cppinit.c (cpp_create_reader):  On by default.
18098         (cpp_handle_option):  Handle -W[no-]endif-labels.
18099         (cpp_post_options):  Also enable if -pedantic.
18100         * cpplib.c (do_else):  Use it.
18101         (do_endif):  Likewise.
18102         * doc/cppopts.texi:  Document new option.
18103         * doc/invoke.texi:  Document new option.
18104
18105 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
18106
18107         * config/i386/i386.c, config/i386/i386.md: Change all occurences
18108         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
18109
18110 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
18111
18112         * flow.c (calculate_global_regs_live): Clear aux fields of
18113         ENTRY and EXIT.
18114
18115 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
18116
18117         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
18118         REG or MEM subregs, pass rtx * instead of rtx to it.
18119         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
18120         rtx * instead of rtx to alter_subreg.
18121         * config/m32r/m32r.c (gen_split_move_double): Likewise.
18122         * config/pj/pj.c (pj_output_rval): Likewise.
18123
18124 2002-03-22  Richard Henderson  <rth@redhat.com>
18125
18126         PR target/3177
18127         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
18128         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
18129         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
18130         (ia64_expand_prologue): Look at int_regs, not words, for number
18131         of incomming int regs.
18132
18133 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
18134
18135         * expr.c (expand_expr): A RESULT_DECL is part of a call.
18136
18137 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
18138
18139         * toplev.c (flag_loop_optimize, flag_crossjumping):
18140         New static variables.
18141         (rest_of_compilation): Conditionalize crossjumping and
18142         loop optimizer.
18143         (parse_options_and_default_flags): Default loop_optimize and
18144         crossjumping.
18145         (lang_independent_options): Add -fcrossjumping and -floop-optimize
18146         * invoke.texi (crossjumping, loop-optimize): Document.
18147
18148 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
18149
18150         * real.c (eiisneg): Move outside #ifdef NANS.
18151
18152 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
18153
18154         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
18155         frequencies match; avoid match on different loop depths.
18156         (try_crossjump_to_bb): Kill tests that no longer brings time
18157         savings.
18158         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
18159         updating code.
18160         (split_edge): Likewise.
18161
18162         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
18163         variable.
18164
18165         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
18166         * cfgrtl.c: Include insn-config.h
18167         (split_block) Dirtify block in presence of conditional execution
18168
18169 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
18170
18171         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
18172         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
18173         (function_arg): Constify CUMULATIVE_ARGS.
18174         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
18175         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
18176         (UNITS_PER_DOUBLE): New macro.
18177         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
18178         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
18179         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
18180         fp_regs and stack_words.
18181         (EABI_FLOAT_VARARGS_P): New macro.
18182         * config/mips/mips.c (struct mips_arg_info): New.
18183         (mips_arg_info): New function.
18184         (function_arg_advance): Use it.  Add adjustment instructions here
18185         rather than in function_arg.
18186         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
18187         for VOIDmode at the beginning of the function.
18188         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
18189         (function_arg_pass_by_reference): Likewise.
18190         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
18191         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
18192         (mips_va_start): Likewise.  Use the new stack_words field of
18193         CUMULATIVE_ARGS to set up overflow area.  Reformat.
18194         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
18195         doubles and other types, aligning the overflow pointer for non-doubles
18196         too.  Remove some code duplication.  Replace hard-coded constants.
18197
18198 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
18199
18200         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
18201         (CLASS_UNITS): Undefine.
18202         (CLASS_MAX_NREGS): Use FP_INC.
18203         * config/mips/mips.c (compute_frame_size): Likewise.
18204         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
18205
18206 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
18207
18208         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
18209         prototype, and handle lexing numbers and identifiers.
18210         (parse_identifier): Update to new form of parse_slow.
18211         (parse_number): Fast path only, use parse_slow otherwise.
18212         (_cpp_lex_direct): Update calls to parse_number.
18213
18214 2002-03-21  DJ Delorie  <dj@redhat.com>
18215
18216         * bb-reorder.c (make_reorder_chain_1): Protect against
18217         when redundant edges are omitted.
18218         * predict.c (dump_prediction): Likewise.
18219
18220 2002-03-21  Richard Henderson  <rth@redhat.com>
18221
18222         PR target/5996
18223         * fixinc/inclhack.def (solaris_stdio_tag): New.
18224         * fixinc/fixincl.x: Regenerate.
18225
18226 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
18227
18228         PR c/5597
18229         * c-typeck.c (process_init_element): Flag non-static
18230         initialization of a flexible array member as illegal.
18231
18232 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
18233
18234         * config/rs6000/t-linux64: New.
18235         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
18236         t-ppccomm.  Use t-rs6000 and t-linux64.
18237         (powerpc64-*-gnu* <tmake_file>): Likewise.
18238         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
18239         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
18240         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
18241
18242 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
18243
18244         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
18245         flag_really_no_inline instead of optimize == 0.
18246
18247         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
18248
18249         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
18250
18251         * flags.h (flag_really_no_inline): New.
18252
18253         * c-common.c (c_common_post_options): Initialize
18254         flag_really_no_inline.
18255
18256         * toplev.c (flag_really_no_inline): New.
18257
18258 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
18259
18260         * config/avr/avr.md (length): Fix length computation for
18261         conditional branches.
18262
18263 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
18264
18265         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
18266         sdbout.o, profile.o): Update.
18267         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
18268         langhook.
18269         * c-common.h (gettags): Move here from tree.h.
18270         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
18271         insert_block, getdecls, kept_level_p, global_bindings_p): New.
18272         * dbxout.c (dbxout_init): Use getdecls langhook.
18273         * expr.c (expand_expr): Use insert_block langhook.
18274         * fold-const.c: Include langhooks.h.
18275         (fold_range_test, fold_binary_op_with_conditional_arg,
18276         fold): Use global_bindings_p langhook.
18277         * integrate.c (expand_inline_function): Use insert_block langhook.
18278         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
18279         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
18280         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
18281         LANG_HOOKS_GETDECLS): New.
18282         (LANG_HOOKS_INITIALIZER): Update.
18283         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
18284         langhook.
18285         * langhooks.h (struct lang_hooks_for_decls): New.
18286         (struct lang_hooks): Update.
18287         * profile.c: Include langhooks.h.
18288         (output_func_start_profiler): Use new langhooks.
18289         * sdbout.c: Include langhooks.h.
18290         (sdbout_init, sdbout_finish): Use getdecls langhook.
18291         * stmt.c: Include langhooks.h.
18292         (expand_fixup, fixup_gotos): Use new langhooks.
18293         * stor-layout.c: Include langhooks.h.
18294         (variable_size): Use global_bindings_p langhook.
18295         * toplev.c (compile_file): Use getdecls langhook.
18296         * tree-inline.c (remap_block): Use insert_block langhook.
18297         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
18298         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
18299
18300 2002-03-21  Richard Henderson  <rth@redhat.com>
18301
18302         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
18303         constants in .data when -fpic.
18304
18305 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18306
18307         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
18308         where appropriate.
18309
18310 2002-03-21  Tom Tromey  <tromey@redhat.com>
18311
18312         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
18313
18314 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18315
18316         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
18317
18318         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
18319
18320 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
18321             Richard Henderson  <rth@redhat.com>
18322
18323         PR c/5354
18324         * c-common.c (c_expand_expr): Preserve result of a statement
18325         expression if needed.
18326
18327 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
18328
18329         PR bootstrap/4195
18330         * genrecog.c (maybe_both_true_mode): Remove.
18331         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
18332         * machmode.def (Pmode): Likewise.
18333
18334 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
18335
18336         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
18337         (nonlocal_mentioned_p_1): New function.
18338         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
18339         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
18340         (mark_constant_function): Recognize pure functions.
18341         * rtl.h (global_reg_mentioned_p): New prototype.
18342         * rtlanal.c (global_reg_mentioned_p,
18343         global_reg_mentioned_p_1): New function.
18344
18345 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
18346
18347         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
18348         UNIX assert.h.
18349         * fixinc/fixincl.x: Regenerate.
18350
18351 2002-03-20  Jason Merrill  <jason@redhat.com>
18352
18353         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
18354
18355 2002-03-20  Michael Meissner  <meissner@redhat.com>
18356
18357         * doc/invoke.texi (Optimize Options): Document that -O2 sets
18358         -fstrict-aliasing.
18359
18360 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
18361
18362         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
18363         ".literal_position" directive before the constant pool.
18364
18365 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
18366
18367         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
18368         Add Craig Rodrigues.
18369         Add Brad Lucier to testers.
18370
18371 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
18372
18373         PR target/4792
18374         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
18375         to if_then_else.
18376         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
18377         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
18378         instead of insn_extract.
18379
18380 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
18381
18382         PR bootstrap/4192
18383         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
18384
18385         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
18386         stmt if some case has been output.
18387
18388 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
18389
18390         PR c/5972
18391         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
18392         movsfcc_1, movdfcc_1): Add %O2.
18393         * config/i386/i386.c (print_operand): Handle %ON.
18394         Print . before float condition codes in Sun as cmov syntax.
18395         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
18396         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
18397         no longer true.
18398
18399 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
18400
18401         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
18402         return instruction if PC was popped.
18403
18404 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
18405
18406         * config/xtensa/xtensa.md: Remove unused type attributes.
18407         (adddi_carry, subddi_carry): Change type attribute to "multi".
18408
18409 2002-03-19  Dale Johannesen  <dalej@apple.com>
18410
18411         PR optimization/5999, middle-end/5731
18412         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
18413         multiplications by reciprocals.
18414
18415 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
18416
18417         * Makefile.in: Update.
18418         * c-common.c: Include langhooks.h.
18419         (inline_forbidden_p): Use new hook.
18420         * diagnostic.c: Include langhooks.h.
18421         (format_with_decl, announce_function,
18422         default_print_error_function): Use new hook.
18423         * dwarf2out.c (dwarf2_name): Use new hook.
18424         * function.c: Include langhooks.h.
18425         (init_function_start): Use new hook.
18426         * langhooks-def.h (lhd_decl_printable_name): New.
18427         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
18428         (LANGHOOKS_INITIALIZER): Update.
18429         * langhooks.c (lhd_decl_printable_name): New.
18430         * langhooks.h (struct lang_hooks): New hook.
18431         * toplev.c (decl_name, decl_printable_name): Remove.
18432         (open_dump_file): Use new hook.
18433         (process_options): Remove old hook.
18434         * tree.h (decl_printable_name): Remove.
18435 objc:
18436         * objc-act.c (objc_init): Remove old hook.
18437         (objc_printable_name): Export.
18438         * objc-act.h (objc_printable_name): New.
18439         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
18440
18441 2002-03-19  Jim Blandy  <jimb@redhat.com>
18442
18443         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
18444         the start_source_file debug hook, not the current line number.
18445
18446 2002-03-19  Richard Henderson  <rth@redhat.com>
18447
18448         * flow.c (EH_USES): Provide default.
18449         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
18450         * doc/tm.texi (EH_USES): New.
18451
18452         * config/ia64/ia64.c (ia64_eh_uses): New.
18453         * config/ia64/ia64-protos.h: Update.
18454         * config/ia64/ia64.h (EH_USES): New.
18455
18456 2002-03-19  Richard Henderson  <rth@redhat.com>
18457
18458         * varasm.c (output_constant_def): Fix stupid typo.
18459
18460 2002-03-19  Richard Henderson  <rth@redhat.com>
18461
18462         PR 5879
18463         * except.c (current_function_has_exception_handlers): New.
18464         * except.h: Declare it.
18465         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
18466         Combine tests that disable all sibcalls for the function.
18467
18468 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
18469
18470         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
18471         for INTEGER_CST.
18472
18473 2002-03-19  Richard Henderson  <rth@redhat.com>
18474
18475         PR 5977, 5991
18476         * config/ia64/ia64.c: Revert 2002-03-01 patch.
18477         * config/ia64/ia64.h (INIT_EXPANDERS): New.
18478
18479 2002-03-19  Jim Blandy  <jimb@redhat.com>
18480
18481         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
18482         name, even if the replacement list contains no tokens, as required
18483         by Dwarf.
18484
18485 2002-03-19  Jason Merrill  <jason@redhat.com>
18486
18487         * varasm.c (globalize_decl): Get the name from the RTL, not
18488         DECL_ASSEMBLER_NAME.
18489
18490         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
18491
18492 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
18493
18494         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
18495         subdi_carry): Define.
18496
18497 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
18498
18499         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
18500         about -fpic/-fPIC if extra_warnings set.
18501
18502 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
18503
18504         * expr.c (expand_expr): Sign-extend CONST_INT generated from
18505         TREE_STRING_POINTER.
18506         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
18507
18508 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
18509
18510         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
18511         in favor of SP if FRAME_POINTER_REQUIRED is false.
18512
18513 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
18514
18515         * emit-rtl.c (gen_int_mode): New function.
18516         * rtl.h: Prototype for it.
18517         * combine.c (make_extraction, simplify_comparison), expmed.c
18518         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
18519         (convert_modes, store_field), optabs.c (expand_fix),
18520         simplify-rtx.c (neg_const_int, simplify_unary_real),
18521
18522         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
18523         Use it instead of GEN_INT (trunc_int_for_mode (...)).
18524
18525 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
18526
18527         PR c/5656
18528         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
18529         convert_parm_for_inlining.
18530         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
18531         Define.
18532         * langhooks-def.h: Likewise.
18533         * objc/objc-lang.c: Likewise.
18534         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
18535         function.
18536         * tree-inline.c (initialize_inlined_parameters):
18537         Call convert_parm_for_inlining lang hook if needed.
18538         * c-typeck.c (c_convert_parm_for_inlining): New function.
18539         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
18540
18541 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
18542
18543         * calls.c (precompute_arguments): Do not assume that temporaries
18544         can be destroyed after expanding the argument.
18545         (expand_call): Likewise.
18546
18547 2002-03-15  Eric Christopher  <echristo@redhat.com>
18548
18549         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
18550         Fix register preference on last change.
18551         * config/mips/mips.c (mips_return_in_memory): New function.
18552         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
18553         * config/mips/mips-protos.h: Declare.
18554         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
18555         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
18556
18557 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
18558
18559         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
18560         a register too.
18561         (anddi3, iorsi3): Likewise.
18562
18563         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
18564         use %gprel for symbols that are going to be placed in linkonce
18565         sections.
18566
18567         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
18568         RETURN_ADDRESS_POINTER_REGNUM to $ra.
18569         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
18570         not needed.  Disregard leaf_function_p().
18571         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
18572         mips16 frame pointer.
18573         * config/mips/mips.md (store ra): Only to small SP offsets.
18574         2001-08-22  Graham Stott  <grahams@redhat.com>
18575         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
18576         return a REG rtx for the return address register.
18577
18578 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
18579
18580         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
18581         constant-pool addresses as "mode-dependent".
18582         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
18583
18584 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
18585
18586         PR target/5740
18587         * expr.c (emit_group_load): Use extract_bit_field if
18588         needed for CONCAT arguments.
18589
18590 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
18591
18592         PR target/4863
18593         * arm.md (tablejump): Make this a define_expand.  For PIC add the
18594         offset to the base of the table.
18595         (thumb_tablejump): Matcher for Thumb tablejump insn.
18596         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
18597         as the difference of two labels.
18598         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
18599         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
18600         tables in the code.
18601         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
18602         * arm.c (get_jump_table_size): If the table is not in the text
18603         section, return zero.
18604
18605 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
18606
18607         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
18608         of gen_rtx_SUBREG.
18609         (arm_reload_out_hi): Use gen_lowpart instead of
18610         gen_rtx_SUBREG to access QImode components.
18611         * config/arm/arm.md: Disable zero_extend split for QImode
18612         subregs in BIG_ENDIAN mode.
18613         (storehi_bigend): Match use of least significant byte.
18614         (storeinthi): Remove extraneous SUBREG.
18615         Add missing construction of operands[2].
18616         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
18617         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
18618         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
18619
18620 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
18621
18622         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
18623         any_operand.
18624
18625 2002-03-17  Richard Henderson  <rth@redhat.com>
18626
18627         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
18628         explicitly.
18629
18630 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
18631
18632         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
18633         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
18634
18635 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
18636
18637         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
18638
18639         * predict.c (estimate_bb_frequencies): Delete unused variables.
18640
18641 2002-03-17  Richard Henderson  <rth@redhat.com>
18642
18643         * config/ia64/ia64.c (ia64_attribute_table): Move before
18644         targetm definition.  Make static.
18645
18646 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
18647
18648         * c-common.h (yyparse, c_common_parse_file): New.
18649         * c-lang.c: Include c-common.h.
18650         (LANG_HOOKS_PARSE_FILE): Redefine.
18651         * c-lex.c: Include c-common.h.
18652         (yyparse): Rename c_common_parse_file.  Call yyparse.
18653         * c-parse.in (yyparse): Remove macro.
18654         * c-tree.h (yyparse_1): Remove.
18655         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
18656         (LANG_HOOKS_INITIALIZER): Update.
18657         * langhooks.h (struct lang_hoooks): New hook parse_file.
18658         * toplev.c (compile_file): Use parse_file hook.
18659         * tree.h (yyparse): Remove.
18660         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
18661
18662 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
18663
18664         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
18665         float_truncate, not fix.
18666         ("*truncdfsf2_real"): Ditto.
18667         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
18668
18669         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
18670
18671 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
18672
18673         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
18674         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
18675         where appropriate.  Make the second reference to
18676         leaf_function_p a function call, as intended.  Reindented.
18677
18678         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
18679         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
18680
18681         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
18682         add register to non-constant into sp.
18683
18684         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
18685         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
18686         (mips16_gp_pseudo_rtx): Lose.
18687         (INIT_EXPANDERS): Deleted.
18688         * config/mips/mips.c (mips_init_machine_status): New.
18689         (mips_free_machine_status): New.
18690         (mips_mark_machine_status): New.
18691         (override_options): Set them.
18692         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
18693         (struct machine_function): ... new.  Replaced all references.
18694         (mips_add_gc_roots): Don't mark them.
18695         (embedded_pic_fnaddr_reg): New, extracted from...
18696         (embedded_pic_offset): ... here.
18697         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
18698         (movsi): Likewise.
18699
18700 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
18701
18702         * cppinit.c: Revert -MD removal.
18703
18704 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18705
18706         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
18707         soft registers by default for 68HC12.
18708         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
18709         when compiling with -fomit-frame-pointer.
18710         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
18711         (expand_epilogue): Likewise.
18712         (m68hc11_gen_rotate): Use exg when rotating by 8.
18713
18714 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18715
18716         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
18717         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
18718         (splits): Remove unused add splits.
18719         ("*addhi3_68hc12"): Tune constraints.
18720         ("addhi_sp"): Try to use X instead of Y in all cases and if the
18721         constant fits in 8-bits and D is dead use abx/aby instructions.
18722         ("*addhi3"): Remove extern declaration of ix_reg.
18723         ("*subsi3"): Optimize and provide new split.
18724         ("subhi3"): Cleanup.
18725         ("*subhi3_sp"): Avoid saving X if we know it is dead.
18726         (arith splits): For 68hc12 save the address register on the stack
18727         and do the arithmetic operation with a pop.
18728
18729 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18730
18731         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
18732         allocating QImode in address registers.
18733         ("*movqi_m68hc11"): Likewise.
18734
18735 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
18736
18737         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
18738
18739 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
18740
18741         * cppinit.c (print_help): Display -MD and -MMD.
18742         Don't display usage string.  Update assertion syntax and
18743         typo.
18744         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
18745         (cpp_handle_option): Update.
18746
18747 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
18748
18749         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
18750         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
18751         and define it so that regardless of target CPU size,
18752         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
18753         of "int" rather than "long."
18754
18755 2002-03-15  Richard Henderson  <rth@redhat.com>
18756
18757         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
18758         size as a tree.
18759
18760 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18761
18762         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
18763         ("tstqi" split): Avoid using memory for tstqi on address register.
18764         (splits): Remove constraints.
18765         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
18766         ("cmpdf", "cmpsf"): Remove since not used.
18767         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
18768         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
18769
18770 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18771
18772         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
18773         ("neghi2"): Tighten constraints.
18774         ("one_cmplsi2"): Optimize and simplify split.
18775         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
18776
18777 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18778
18779         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
18780         and split of AND operation to clear the upper bits.
18781         ("*logicalsi3_zextqi"): Likewise.
18782         ("*logicallhi3_zexthi_ashift8"): Likewise.
18783         ("*logicalsi3_silshr16"): Likewise.
18784         ("logicalsi3_silshl16"): Likewise.
18785         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
18786
18787 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18788
18789         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
18790         (m68hc11_indirect_p): New function.
18791         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
18792         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
18793         TARGET_M6812.
18794         (asm_print_register): Likewise.
18795         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
18796         (m68hc11_indirect_p): Declare.
18797         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
18798         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
18799         (TARGET_SWITCHES): New option -mrelax.
18800         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
18801         destination.
18802         ("iorsi3", "xorsi3"): Likewise.
18803         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
18804         ("*andhi3_mem"): New to handle destination in memory with bclr
18805         and a scratch register.
18806         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
18807         ("*andhi3_const"): New when operand2 is constant.
18808         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
18809         ("*andhi3_gen"): Cleanup of the old "andhi3".
18810         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
18811         ("xorqi3"): Update constraints.
18812
18813 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18814
18815         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
18816         for reg_equiv_memory_loc when the operand is a register that does
18817         not get a hard register (stack location).
18818         (tst_operand): After reload, accept all memory operand.
18819         (symbolic_memory_operand): Fix detection of symbolic references.
18820         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
18821         accept symbols and any constant.
18822
18823 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18824
18825         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
18826         note on the insn that sets the soft frame register.
18827         (must_parenthesize): ix and iy are also reserved names.
18828         (print_operand_address): One more place where parenthesis are required
18829         to avoid confusion with register names.
18830         (m68hc11_gen_movhi): Allow push of stack pointer.
18831         (m68hc11_check_z_replacement): Fix handling of parallel with a
18832         clobber.
18833         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
18834         the replacement register is.
18835         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
18836         and D8_REGS classes.
18837         (MODES_TIEABLE_P): All modes are tieable except QImode.
18838
18839 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18840
18841         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
18842         (___subdi3): Likewise.
18843         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
18844         (__map_data_section): Optimize 68hc11 case.
18845
18846 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
18847
18848         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
18849         than a shift to avoid adding a register with itself.
18850         (m68hc11_memory_move_cost): Take into account NO_REGS.
18851         (m68hc11_register_move_cost): Update and use memory move cost
18852         for soft registers.
18853         (m68hc11_address_cost): Make cost of valid offset not 0 so that
18854         it gives more opportunities to cse to optimize.
18855         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
18856         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
18857
18858 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
18859
18860         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
18861         * c-common.def (CLEANUP_STMT): New tree node.
18862         * c-common.h (CLEANUP_DECL): New macro.
18863         (CLEANUP_EXPR): Likewise.
18864         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
18865         * expr.c (expand_expr): Tidy.
18866         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
18867         * tree-inline.c (initialize_inlined_parameters): Clean up
18868         new local variables.
18869
18870 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
18871
18872         PR bootstrap/4128
18873         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
18874         before movrXX only, use reg_overlap_mentioned_p.
18875         Only special case NE if just one insn can be generated.
18876
18877 2002-03-15  Jason Merrill  <jason@redhat.com>
18878
18879         * varasm.c (assemble_variable): Call resolve_unique_section before
18880         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
18881         of error_mark_node.
18882
18883 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
18884
18885         PR target/5170
18886         * arm.md (split pattern for thumb shiftable immediates): Add comment
18887         explaining non-obvious test.
18888
18889 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
18890
18891         PR target/5712
18892         * arm.md (movaddr, movaddr_insn): Delete.
18893
18894 2002-03-15  Jason Merrill  <jason@redhat.com>
18895
18896         * toplev.c (wrapup_global_declarations): Clarify variable handling.
18897         -fkeep-static-consts doesn't apply to comdats.
18898
18899 2002-03-14  Richard Henderson  <rth@redhat.com>
18900
18901         * c-decl.c: Include c-pragma.h.
18902         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
18903         (finish_function): Tidy.
18904         * c-pragma.c: Include c-common.h.
18905         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
18906         (handle_pragma_weak): Use them.
18907         (init_pragma): Register pending_weaks.
18908         * c-pragma.h (maybe_apply_pragma_weak): Declare.
18909         * print-tree.c (print_node): Print DECL_WEAK.
18910         * varasm.c (mark_weak_decls): Remove.
18911         (remove_from_pending_weak_list): Remove.
18912         (add_weak): Remove.
18913         (asm_emit_uninitialised): Call globalize_decl for weak commons.
18914         (weak_decls): Make a tree_list.
18915         (declare_weak): Cons weak_decls directly.
18916         (globalize_decl): Remove weak_decls elements directly.
18917         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
18918         symbols.  Don't pretend to handle aliases.
18919         (init_varasm_once): Update weak_decls registry.
18920         * Makefile.in: Update dependencies.
18921
18922 2002-03-14  Richard Henderson  <rth@redhat.com>
18923
18924         PR target/5312
18925         * config/ia64/ia64.c: Include tm_p.h last.
18926         (gen_nop_type): Remove duplicate definition.
18927         (cycle_end_fill_slots): Set sched_data for second L slot.
18928         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
18929         (nop_cycles_until): Fix typos.
18930
18931 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
18932
18933         PR optimization/5891
18934         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
18935
18936 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
18937
18938         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
18939           descriptors correctly.
18940
18941 2002-03-14  Michael Meissner  <meissner@redhat.com>
18942
18943         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
18944         100, allowing MAX_UNROLLED_INSNS to be overridden.
18945
18946         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
18947         --param.
18948
18949         * unroll.c (params.h): Include.
18950         (MAX_UNROLLED_INSNS): Delete, now in params.h.
18951
18952         * doc/invoke.texi (--param max-unroll-insns): Document.
18953
18954         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
18955
18956 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
18957
18958         * arm.md: Fix warnings about constraints in peepholes and splits.
18959
18960 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
18961
18962         * cpphash.h (struct lexer_state): Remove line_extension member.
18963         * cpplib.c (dequote_string, do_linemarker): New functions.
18964         (linemarker_dir): New data object.
18965         (DIRECTIVE_TABLE): No longer need to interpret #line in
18966         preprocessed source.  Delete obsolete comment about return
18967         values of handlers.
18968         (end_directive, directive_diagnostics, _cpp_handle_directive):
18969         Don't muck with line_extension.
18970         (directive_diagnostics): No need to issue warnings for
18971         linemarkers here.
18972         (_cpp_handle_directive): Issue warnings for linemarkers here,
18973         when appropriate.  Dispatch linemarkers to do_linemarker, not
18974         do_line.
18975         (do_line): Code to handle linemarkers split out to do_linemarker.
18976         Convert escape sequences in filename argument, both places.
18977
18978         * cppmacro.c (quote_string): Rename cpp_quote_string and
18979         export.  All callers changed.
18980         * cpplib.h (cpp_quote_string): Prototype.
18981         * cppmain.c (print_line): Call cpp_quote_string on to_file
18982         before printing it.
18983
18984         * doc/cpp.texi: Document that escapes are now interpreted in
18985         #line and in linemarkers, and that non-printing characters are
18986         converted to octal escapes when linemarkers are generated.
18987
18988 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
18989
18990         * emit-rtl.c (try_split): Use delete_insns.
18991         * recog.c (split_all_insns): Fix terminating condition.
18992
18993 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
18994             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
18995
18996         PR target/5828
18997         * arm.c (arm_output_epilogue): Fix floating-point register save
18998         adjustment when using a frame pointer.
18999
19000 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
19001
19002         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
19003         * config/mips/mips.c (compute_frame_size): Retrofit them here.
19004         (save_restore_insns, mips_expand_epilogue): And here.
19005         (build_mips16_call_stub): And here.
19006         (mips_function_value): Use the new macros to decide whether a single
19007         or complex float can be returned in floating-point registers.  Return
19008         a parallel rtx in the complex case.
19009
19010 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
19011
19012         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
19013         call after liveness analysis.
19014
19015         * recog.c (split_insn): Use delete_insn_and_edges.
19016
19017         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
19018         instructions to have branch prediction notes.
19019         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
19020
19021 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
19022
19023         * configure.in: Don't pass -Wno-long-long to a ADA compiler
19024         that doesn't support it.
19025         * configure: Regenerate.
19026
19027 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
19028
19029         PR target/5626
19030         * config/sparc/sparc.md (normal_branch, inverted_branch,
19031         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
19032         inverted_fp_branch): Adjust calls to output_cbranch.
19033         Set length attribute.
19034         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
19035         output_v9branch.  Set length attribute.
19036         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
19037         predicates.
19038         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
19039         (output_cbranch): Likewise.  Handle far branches.
19040         (output_v9branch): Handle far branches.
19041         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
19042         Adjust prototypes.
19043         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
19044         noov_compare64_op predicates.
19045
19046 2002-03-13  Jason Merrill  <jason@redhat.com>
19047
19048         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
19049         into the function and constify it.
19050         * gthr-dce.h, gthr-solaris.h: Likewise.
19051
19052 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
19053
19054         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
19055         * config/rs6000/rs6000.c (rs6000_va_arg): Use
19056         std_expand_builtin_va_arg if not ABI_V4.
19057
19058 2002-03-13  Jason Merrill  <jason@redhat.com>
19059
19060         * varasm.c (globalize_decl): New fn.
19061         (assemble_start_function): Use it.
19062         (asm_emit_uninitialized): Use it.
19063         (assemble_alias): Use it.
19064         (assemble_variable): Use it.
19065
19066 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
19067
19068         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
19069         2002-03-12 internal visibility change.
19070         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
19071         visibility into SYMBOL_REF_FLAG.
19072
19073 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
19074
19075         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
19076         VOIDmode operand.  Add compile-time optimization for constant results.
19077
19078 2002-03-12  Jason Merrill  <jason@redhat.com>
19079
19080         * c-typeck.c (convert_for_assignment): Don't allow conversions
19081         between pointers and references.  Only allow lvalues to convert to
19082         reference.
19083
19084 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
19085
19086         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
19087         before prologue, to avoid scheduling problems.
19088
19089 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
19090
19091         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
19092         (ELIMINABLE_REGS): Add sfp->sp.
19093         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
19094
19095 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
19096
19097         PR optimization/5892
19098         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
19099
19100 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
19101
19102         * loop.c (basic_induction_var): Don't call convert_modes if mode
19103         classes are different.
19104
19105 2002-03-12  Richard Henderson  <rth@redhat.com>
19106
19107         PR optimization/5901
19108         * function.c (reposition_prologue_and_epilogue_notes): Position
19109         the markers after/before the last/first insn not deleted.
19110
19111 2002-03-12  Richard Henderson  <rth@redhat.com>
19112
19113         PR optimization/5878
19114         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
19115         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
19116         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
19117
19118         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
19119         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
19120         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
19121
19122         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
19123         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
19124         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
19125         also.  Don't set it if not flag_pic.
19126         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
19127         to be INVALID_REGNUM when not used.
19128
19129 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
19130
19131         * expmed.c (store_bit_field): Reset alias set for memory.
19132         (extract_bit_field): Same.
19133
19134 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19135
19136         * c-common.c (c_tree_code_type, c_tree_code_length,
19137         c_tree_code_name, add_c_tree_codes): Delete.
19138         * c-common.h (add_c_tree_codes): Delete.
19139         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
19140         Define.
19141         * c-objc-common.c (c_objc_common_init): Don't call
19142         add_c_tree_codes, instead set lang_unsafe_for_reeval.
19143         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
19144         objc_tree_code_name, add_objc_tree_codes): Delete.
19145         (objc_init): Don't call add_objc_tree_codes.
19146         * objc/objc-lang.c (tree_code_type, tree_code_length,
19147         tree_code_name): Define.
19148         * toplev.c (lang_independent_init): Don't set
19149         tree_code_length[IDENTIFIER_NODE].
19150         * tree.c (tree_code_type, tree_code_length, tree_code_name):
19151         Delete definitions, moved to language front-ends.
19152         * tree.def (IDENTIFIER_NODE): Hardwire the length.
19153         * tree.h (tree_code_type, tree_code_length, tree_code_name):
19154         Const-ify.
19155         (tree_code_length): Change type to unsigned char.
19156
19157 2002-03-12  Richard Henderson  <rth@redhat.com>
19158
19159         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
19160         internal visibility change.
19161
19162 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
19163
19164         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
19165         validize_mem() instead of change_address to avoid clobbering
19166         memory attributes.
19167
19168 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
19169
19170         * c-lex.h (position_after_whitespace): Remove.
19171
19172 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
19173
19174         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
19175         (lex_string): Use unsigned char pointers.
19176
19177 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
19178
19179         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
19180         is not a valid memory_operand.
19181
19182 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
19183
19184         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
19185         * config/xtensa/lib1funcs.asm: Fix copyright to include
19186         special case for libgcc files.
19187         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
19188         (__divsi3): Likewise.
19189         (__umodsi3): Likewise.
19190         (__modsi3): Likewise.
19191         * config/xtensa/lib2funcs.S: Fix copyright to include
19192         special case for libgcc files.
19193
19194 2002-03-12  Tom Rix  <trix@redhat.com>
19195
19196         * collect2.c (resolve_lib_name): Move outside of
19197         OBJECT_FORMAT_COFF ifdef.
19198         (ignore_library): Same.
19199
19200 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
19201
19202         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
19203
19204 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
19205
19206         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
19207         to function_section before writing out the constant pool.
19208
19209 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
19210
19211         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
19212         zero_constant.
19213         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
19214
19215 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
19216
19217         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
19218         (adddi3): Likewise.
19219         (movdf): Likewise.
19220         (movdi): Likewise.
19221         (cmpsi splitter): Likewise.
19222         (modsi3): Fail if <= 0.
19223         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
19224         redundant test when HOST_BITS_PER_WIDE_INT != 32.
19225         (reg_or_sub_cint64_operand): Likewise.
19226         (num_insns_constant_wide): Optimize sign extension.
19227         (rs6000_legitimize_address): Likewise.
19228
19229 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
19230
19231         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
19232         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
19233
19234 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
19235
19236         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
19237         address calculation.
19238
19239 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
19240
19241         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
19242         scratch register to DImode / TImode.
19243         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
19244         register used does not overlap the target.
19245
19246 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19247
19248         * Makefile.in (debug.o): Depend on debug.h.
19249         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
19250         * debug.c (do_nothing_debug_hooks): Likewise.
19251         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
19252         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
19253         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
19254         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
19255         * dwarfout.c (dwarf_debug_hooks): Likewise.
19256         * integrate.c (output_inline_function): Likewise.
19257         * objc/objc-act.c (synth_module_prologue): Likewise.
19258         * sdbout.c (sdb_debug_hooks): Likewise.
19259         * toplev.c (debug_hooks): Likewise.
19260         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
19261
19262 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19263
19264         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
19265         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
19266         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
19267         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
19268         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
19269         * defaults.h (POINTER_SIZE): Define.
19270         * doc/tm.texi (POINTER_SIZE): Document default.
19271
19272 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19273
19274         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
19275
19276 2002-03-11  Richard Henderson  <rth@redhat.com>
19277
19278         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
19279         if rebuild_label_notes_after_reload.
19280
19281 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
19282
19283         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
19284         emit pic register load if "internal" visibility.
19285         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
19286         (cris_expand_builtin_va_arg): Do all computations on trees.
19287
19288 2002-03-11  Richard Henderson  <rth@redhat.com>
19289
19290         * rtlanal.c: Include recog.h.
19291         (keep_with_call_p): Fix thinko.
19292         * Makefile.in (rtlanal.o): Update dependencies.
19293
19294 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
19295
19296         * genflags.c (gen_insn): Use IS_VSPACE.
19297         * genoutput.c (output_insn_data): Likewise.
19298         (process_template): Likewise.
19299
19300 2002-03-11  Richard Henderson  <rth@redhat.com>
19301
19302         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
19303
19304 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
19305
19306         * Makefile.in: Update.
19307         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
19308         Update documentation.
19309         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
19310         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
19311
19312 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
19313
19314         * Makefile.in: Give texi2pod its input file as a command line
19315         argument, not on stdin.
19316
19317 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
19318             Daniel Berlin  <dan@dberlin.org>
19319
19320         C++ alias analysis improvement.
19321         * alias.c (record_component_aliases): Record aliases for base
19322         classes too.
19323
19324 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
19325
19326         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
19327
19328 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
19329
19330         * toplev.c (vms_fopen): Remove, not needed.
19331
19332         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
19333
19334         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
19335
19336         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
19337         for FP, already done later.
19338
19339         * toplev.c (debug_args): Add entry for VMS_DEBUG.
19340         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
19341
19342 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
19343
19344         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
19345         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
19346         LARGEST_EXPONENT_IS_NORMAL for the given mode.
19347         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
19348         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
19349         (ediv, emul, eldexp, esqrt): Likewise.
19350         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
19351         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
19352         (saturate): New function.
19353         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
19354         (make_nan): Use a saturation value instead of a NaN if
19355         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
19356         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
19357         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
19358         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
19359         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
19360         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
19361         !ROUND_TOWARDS_ZERO.
19362         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
19363         (ROUND_TOWARDS_ZERO): Document.
19364
19365 2002-03-11  Andreas Jaeger  <aj@suse.de>
19366
19367         * cfg.c (dump_flow_info): Remove unused variable.
19368
19369 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
19370
19371         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
19372         computations on trees.
19373
19374 2002-03-10  Richard Henderson  <rth@redhat.com>
19375
19376         PR 5693:
19377         * reload.c (copy_replacements_1): New.
19378         (copy_replacements): Use it to recurse through the rtx.
19379
19380 2002-03-10  Richard Henderson  <rth@redhat.com>
19381
19382         * loop.c (strength_reduce): Compute number of iterations as
19383         unsigned HOST_WIDE_INT.
19384
19385 2002-03-10  Richard Henderson  <rth@redhat.com>
19386
19387         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
19388         to move away from the end of the block.
19389
19390 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
19391
19392         PR preprocessor/5899
19393         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
19394
19395 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19396
19397         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
19398
19399         * attribs.c (decl_attributes): Fix signed/unsigned warning.
19400
19401 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
19402
19403         * config/mmix/mmix.c: Improve comments.
19404         (mmix_target_asm_function_prologue): Drop variable
19405         empty_stack_frame.  Don't allocate unused slot above fp.
19406         (mmix_target_asm_function_epilogue): Mirror prologue changes.
19407         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
19408         brace in first column.
19409         (enum reg_class): Ditto.
19410         (FIRST_PARM_OFFSET): Now 0.
19411         (USER_LABEL_PREFIX): Remove #if 0:d definition.
19412
19413 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19414
19415         * combine.c (make_extraction): Fix error in last change.
19416
19417 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19418
19419         * c4x.c (c4x_fp_reglist): Const-ify.
19420         * cris.c (cris_print_operand): Likewise.
19421         * i386.c (ix86_va_arg): Likewise.
19422         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
19423         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
19424         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
19425         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
19426         * mcore.h (regno_reg_class): Likewise.
19427         * mips.c (gen_int_relational): Likewise.
19428         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
19429         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
19430         * pdp11.c (move_costs): Likewise.
19431         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
19432         * s390.c (s390_branch_condition_mnemonic, regclass_map):
19433         Likewise.
19434         * s390.h (regclass_map): Likewise.
19435         * sh.c (shift_amounts): Likewise.
19436         * sh.md (rotlsi3): Likewise.
19437
19438 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
19439
19440         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
19441         (ne0+5): Use new clobber to generate proper shift pattern.
19442         Patch by Michael Matz <matz@kde.org>.
19443
19444 2002-03-09  Andreas Schwab  <schwab@suse.de>
19445
19446         * gcc.c (validate_all_switches): Also handle `%W{...}'.
19447
19448 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
19449
19450         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
19451
19452 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
19453
19454         PR middle-end/5877
19455         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
19456         even for non-representable constants.
19457
19458 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19459
19460         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
19461         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
19462         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
19463         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
19464         (pop_function_context): Compute MAY_SHARE parameter for
19465         fixup_var_refs.
19466         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
19467         (gen_mem_addressof): Call fixup_var_refs with new parm.
19468
19469         * combine.c (make_extraction): Don't make extension of CONST_INT.
19470
19471 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
19472
19473         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
19474         in o32 and o64 ABIs.
19475         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
19476         but getting fixed-size structs passed in registers regardless of
19477         padding in o32 and o64 ABIs.
19478
19479         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
19480         offset before loading address of argument passed by transparent
19481         reference.
19482
19483 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19484
19485         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
19486
19487 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
19488
19489         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
19490         marker such that registers after it are saved.
19491
19492 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19493
19494         * sparc.c (arith_4096_operand): Fix error in last change.
19495
19496 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
19497
19498         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
19499         defaults for MEABI.
19500
19501 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
19502
19503         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
19504         vectors.
19505
19506 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
19507
19508         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
19509
19510 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
19511
19512         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
19513         removed; fix return value.
19514         * combine.c (combine_instructions): Dirtify blocks where we failed to
19515         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
19516         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
19517
19518 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19519
19520         * gcse.c (insert_insn_end_bb): Fix typo in last change.
19521
19522 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
19523
19524         * recog.c (peephole2_optimize): Re-distribute EH edges.
19525
19526 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
19527
19528         * expr.c (expand_expr): Use unsave lang hook.
19529         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
19530         (LANG_HOOKS_INITIALIZER): Update.
19531         * langhooks.h (struct lang_hooks): New hook unsave.
19532         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
19533         (unsave_expr_1): Remove unused lang_unsave_expr_now.
19534         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
19535         (unsave_expr_now): Remove.
19536         * tree.h (unsave_expr_now, lang_unsave,
19537         lang_unsave_expr_now): Remove.
19538         (lhd_unsave): New.
19539
19540 2002-03-08  Andreas Jaeger  <aj@suse.de>
19541
19542         * flow.c (propagate_block_delete_insn): Remove unused variable.
19543
19544 2002-03-08  Kazu Hirata  <kazu@hxi.com>
19545
19546         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
19547         insn length for memory load/store.
19548
19549 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
19550
19551         * doc/install.texi (--with-libiconv-prefix): Document.
19552
19553 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
19554
19555         * doc/sourcebuild.texi: Fix typo.
19556
19557 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
19558
19559         PR c/3711
19560         * builtins.c (std_expand_builtin_va_arg): Do all computations on
19561         trees.
19562
19563 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
19564
19565         * rtl.c (copy_most_rtx): Move from here ...
19566         * emit-rtl.c (copy_most_rtx): ... to here.
19567
19568 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
19569
19570         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
19571         SUBTARGET_CPP_SIZE_SPEC.
19572         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
19573
19574         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
19575
19576 2002-03-07  Matt Hiller  <hiller@redhat.com>
19577
19578         * gensupport.c (first_dir_md_include): Renamed from include;
19579         change all references.
19580         (last_dir_md_include): Renamed from last_include; change all
19581         references.
19582         (init_md_reader): Unconditionally initialize base_dir whether or
19583         not filename is a relative path.
19584
19585 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
19586
19587         * config/fp-bit.c (_unord_f2): Compile it in even if
19588         US_SOFTWARE_GOFAST is enabled.
19589
19590         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
19591         NULL_RTX.  Set all HFmode operations as NULL_RTX.
19592         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
19593         NULL_RTX, try reversing the comparison and the operands.
19594
19595 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
19596
19597         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
19598         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
19599         and MATCH_OP_DUP.
19600
19601 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
19602
19603         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
19604
19605 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
19606
19607         * basic-block.h (fixup_abnormal_edges): Declare.
19608         * reload1.c (fixup_abnormal_edges): New function.
19609         * reg-stack.c (convert_regs): Use it.
19610
19611         * gcse.c (insert_insn_end_bb): Handle trapping insns.
19612
19613         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
19614
19615 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
19616
19617         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
19618         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
19619         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
19620         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
19621         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
19622         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
19623         unless x and y could be infinite.
19624         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
19625         Check that the common type of both arguments is a real, even for
19626         targets without unordered comparisons.  Allow an integer argument
19627         to be compared against a real.
19628         (expand_tree_builtin): Use expand_unordered_cmp.
19629         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
19630         * cse.c (fold_rtx): Likewise.  Fix indentation.
19631         * fold-const.c (fold_real_zero_addition_p): New.
19632         (fold): Use it, and the new HONOR_... macros.
19633         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
19634         * jump.c (reversed_comparison_code_parts): After searching for
19635         the true comparison mode, use HONOR_NANS to decide whether it
19636         can be safely reversed.
19637         (reverse_condition_maybe_unordered): Remove IEEE check.
19638         * simplify-rtx.c (simplify_binary_operation): Use the new macros
19639         to decide which simplifications are valid.  Allow the following
19640         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
19641         and (a - -b) to (a + b).
19642         (simplify_relational_operation): Use HONOR_NANS.
19643         * doc/tm.texi: Document the MODE_HAS_... macros.
19644
19645 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
19646
19647         * combine.c (simplify_comparison): If simplifying a logical shift
19648         right and compare with constant, force the comparison to unsigned.
19649
19650 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
19651
19652         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
19653
19654         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
19655         -mabi=no-altivec
19656         (alt_reg_names): Remove % for vrsave.
19657
19658 2002-03-06  Richard Henderson  <rth@redhat.com>
19659
19660         PR optimization/5844
19661         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
19662         if used indicates we've already emitted one copy of an operand.
19663         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
19664         (gen_split): Supply a non-null used.
19665
19666 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
19667
19668         * reload1.c (reload): Unshare all rtl after reload is done.
19669
19670         * simplify-rtx.c (simplify_plus_minus): Do not abort,
19671         but simply fail if the expression is too complex to simplify.
19672         (simplify_gen_binary): Handle simplify_plus_minus failures.
19673
19674 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
19675
19676         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
19677         consistently call delete_trivially_dead_insns after CSE and GCSE;
19678         fix DFI_life dumping; do jump threading after liveness; do crossjumping
19679         after liveness2; update comment in last crossjumping.
19680         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
19681
19682 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
19683
19684         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
19685         after completing fast dead code elimination.
19686
19687         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
19688         COMPARE operator.
19689
19690 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
19691
19692         * version.c:  Fix misplaced leading blanks on first line.
19693
19694 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
19695
19696         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
19697
19698 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
19699
19700         * cfgcleanup.c (mentions_nonequal_regs): New function.
19701         (thread_jump): Use it.
19702         * toplev.c (rest_of_compilation): Run jump threading after
19703         liveness.
19704
19705 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
19706
19707         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
19708         patch.
19709
19710 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
19711
19712         * predict.c (estimate_bb_frequencies): Do not reload the
19713         frequencies from notes.
19714
19715 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
19716
19717         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
19718         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
19719
19720         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
19721         delete_noop_moves): Return indeger.
19722         * flow.c (ndead): New variable.
19723         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
19724         BB argument; update callers.
19725         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
19726         (life_analysis): Do not call purge_all_dead_edges.
19727         (update_life_info): Return number of deleted insns; print statistics.
19728         (update_life_info_in_dirty_blocks): likewise.
19729         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
19730         return number of insns deleted.
19731
19732         * cse.c: Include timevar.h
19733         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
19734         iterate until stabilizes; print statistics; return number of killed
19735         insns.
19736         * Makefile.in: (cse.o): Add timevar.h dependency
19737         * rtl.h (delete_trivially_dead_insns): New.
19738         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
19739         * toplev.c (rest_of_compilation): Update callers.
19740
19741         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
19742         (try_optimize_cfg): Do not update liveness.
19743         (cleanup-cfg): Loop until try_optimize_cfg and dead code
19744         removal stabilizes; use delete_trivially_dead_insns.
19745
19746         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
19747
19748 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
19749
19750         * cppmain.c (setup_callbacks): Disable #pragma and #ident
19751         callbacks when processing assembly language.
19752
19753 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
19754
19755         * pa.h (ASM_FILE_END): Define.
19756         * som.h (ASM_FILE_END): Delete.
19757
19758         * pa.c (function_arg): Don't pass floats in general registers in
19759         indirect calls if TARGET_ELF32.
19760
19761 2002-03-05  Richard Henderson  <rth@redhat.com>
19762
19763         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
19764
19765 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
19766
19767         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
19768
19769 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
19770
19771         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
19772         -r command line.  Don't hide any symbols if not building
19773         shared libgcc.
19774
19775 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
19776
19777         * cfg.c (dump_flow_info): Warn about profile mismatches.
19778         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
19779         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
19780
19781 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
19782
19783         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
19784         wide volatile memory by parts.
19785
19786 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
19787
19788         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
19789         is NULL.
19790
19791 2002-03-05  Richard Henderson  <rth@redhat.com>
19792
19793         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
19794
19795 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
19796
19797         * toplev.c (documented_lang_options): Document more
19798         language-specific options.
19799         * doc/invoke.texi (Warning Options): Correct documentation for
19800         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
19801         * c-decl.c (c_decode_option): Use a table to handle warning options.
19802
19803 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
19804
19805         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
19806         parameter to mmix_encode_section_info.
19807         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
19808         relocatably.  Always produce ELF, not mmo if linking relocatably.
19809         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
19810         first is non-zero, don't add symbol prefix.
19811         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
19812         prototype accordingly.
19813
19814 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
19815
19816         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
19817
19818 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
19819
19820         * configure.in: Increase required makeinfo version to 4.1.
19821         * configure: Regenerate.
19822
19823 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
19824
19825         * .cvsignore: Remove *.info* and genrtl*; these files are generated
19826         elsewhere now.
19827
19828 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
19829
19830         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
19831         * doc/invoke.texi: Fix @math uses.
19832
19833 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
19834
19835         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
19836         removal
19837
19838 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
19839
19840         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
19841         (powerpc-*-eabisimaltivec*): Same.
19842
19843         * config/rs6000/t-ppcendian: New.
19844
19845 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
19846
19847         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
19848         nonimmediate_src_operand and nonimmediate_lsrc_operand to
19849         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
19850
19851 2002-03-03  Richard Henderson  <rth@redhat.com>
19852
19853         * toplev.c (rest_of_decl_compilation): Revert last two changes.
19854
19855 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
19856
19857         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
19858         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
19859         tree.c, config/m68k/m68k.c:
19860         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
19861         REAL_ARITHMETIC blocks unconditional.  Delete some further
19862         #ifdef blocks predicated on REAL_ARITHMETIC.
19863         * flags.h, toplev.c: Delete remaining references to
19864         flag_pretend_float.
19865
19866         * doc/invoke.texi: Remove documentation of -fpretend-float.
19867         * doc/tm.texi: Describe the various REAL_* macros as provided by
19868         real.h, not by the target configuration files.
19869
19870         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
19871         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
19872         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
19873         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
19874         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
19875         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
19876         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
19877         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
19878         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
19879         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
19880         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
19881         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
19882         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
19883         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
19884         config/xtensa/xtensa.h:
19885         Do not define, undefine, or mention in comments any of
19886         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
19887         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
19888         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
19889         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
19890         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
19891         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
19892         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
19893         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
19894         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
19895
19896 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19897
19898         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
19899         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
19900         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
19901         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
19902         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
19903         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
19904         Delete.
19905         * defaults.h (BITS_PER_WORD): Define.
19906         * doc/tm.texi (BITS_PER_WORD): Document default value.
19907
19908         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
19909         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
19910         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
19911
19912 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
19913
19914         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
19915         lieu of explicit sizeof/sizeof.
19916         * i386.c (override_options, ix86_init_mmx_sse_builtins,
19917         ix86_expand_builtin): Likewise.
19918         * mips.c (mips_add_gc_roots): Likewise.
19919         * mmix.c (mmix_output_condition): Likewise.
19920         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
19921         altivec_init_builtins): Likewise.
19922         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
19923         * cppexp.c (Nsuff, parse_number): Likewise.
19924         * cppinit.c (builtin_array_end): Likewise.
19925         * gcc.c (n_default_compilers, process_command): Likewise.
19926         * genpreds.c (output_predicate_decls): Likewise.
19927         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
19928         * lcm.c (N_ENTITIES): Likewise.
19929         * stor-layout.c (set_sizetype): Likewise.
19930
19931 2002-03-03  Richard Henderson  <rth@redhat.com>
19932
19933         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
19934         for types or labels.
19935
19936 2002-03-03  Richard Henderson  <rth@redhat.com>
19937
19938         * c-decl.c (start_decl): Initialized variables are not common.
19939
19940 2002-03-02  Per Bothner  <per@bothner.com>
19941
19942         * gcc.c (option_map):  Suport new --bootclasspath option.
19943         --CLASSPATH is now just an alias for --classpath.
19944
19945 2002-03-02  Richard Henderson  <rth@redhat.com>
19946
19947         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
19948         load if "internal" visibility.
19949         * doc/extend.texi: Document visibility meanings.
19950
19951 2002-03-02  Richard Henderson  <rth@redhat.com>
19952
19953         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
19954         to functions as well.
19955
19956 2002-03-02  Richard Henderson  <rth@redhat.com>
19957
19958         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
19959         (handle_visibility_attribute): Don't call assemble_visibility.
19960         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
19961         without asmspec.  Invoke assemble_alias when needed.
19962         * varasm.c (maybe_assemble_visibility): New.
19963         (assemble_start_function, assemble_variable, assemble_alias): Use it.
19964
19965 2002-03-02  Richard Henderson  <rth@redhat.com>
19966
19967         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
19968         invoke ENCODE_SECTION_INFO with first call flag.
19969
19970         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
19971         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
19972         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
19973         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
19974         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
19975         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
19976         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
19977         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
19978         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
19979         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
19980         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
19981         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
19982         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
19983         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
19984         config/mcore/mcore-protos.h, config/mcore/mcore.c,
19985         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
19986         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
19987         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
19988         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
19989         config/sh/sh.h, config/sparc/sparc.h,
19990         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
19991         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
19992         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
19993         FIRST argument.  As needed, examine it and do nothing.
19994
19995         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
19996         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
19997         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
19998
19999         * config/arm/t-pe (pe.o): Add dependencies.
20000
20001 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20002
20003         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
20004         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
20005         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
20006         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
20007         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
20008         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
20009         * defaults.h (BITS_PER_UNIT): Define.
20010         * doc/tm.texi (BITS_PER_UNIT): Document default value.
20011
20012 2002-03-02  Kazu Hirata  <kazu@hxi.com>
20013
20014         * config/h8300/h8300-protos.h: Add a prototype for
20015         compute_a_shift_length.
20016         * config/h8300/h8300.c (h8300_asm_insn_count): New.
20017         (compute_a_shift_length): Likewise.
20018         (h8300_adjust_insn_length): Do not adjust insn length of shift
20019         insns.
20020         * config/h8300/h8300.md (anonymous shift patterns): Use
20021         compute_a_shift_length.
20022
20023 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20024
20025         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
20026         trunc_int_for_mode.
20027
20028         * emit-rtl.c (offset_address): Call update_temp_slot_address.
20029
20030 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
20031
20032         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
20033         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
20034         * flags.h (flag_zero_initialized_in_bss): Declare.
20035         * toplev.c (flag_zero_initialized_in_bss): New flag.
20036         (lang_independent_options): Add flag_zero_initialized_in_bss.
20037         * tree.c (initializer_zerop): New function.
20038         * tree.h (initializer_zerop): Declare.
20039         * varasm.c (assemble_variable): If we can emit bss, put zero
20040         initializers in the bss section.
20041
20042 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
20043
20044         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
20045         like more than one symbol per .weak directive.
20046
20047 2002-03-01  Richard Henderson  <rth@redhat.com>
20048
20049         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
20050         adjust argument_pointer by pretend_args_size.
20051         (ia64_va_start): Adjust va_start address by -pretend_args_size.
20052
20053 2002-03-01  Kazu Hirata  <kazu@hxi.com>
20054
20055         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
20056
20057 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
20058
20059         * toplev.c (rest_of_compilation): Delete dead jumptables before
20060         loop.
20061         * flow.c (delete_dead_jumptables): Make global.
20062         * rtl.h (delete_dead_jumptables): Declare.
20063
20064 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
20065
20066         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
20067         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
20068         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
20069
20070 2002-03-01  Kazu Hirata  <kazu@hxi.com>
20071
20072         * config/h8300/h8300-protos.h: Fix formatting.
20073         * config/h8300/h8300.c: Likewise.
20074         * config/h8300/h8300.h: Likewise.
20075
20076 2002-03-01  Kazu Hirata  <kazu@hxi.com>
20077
20078         * config/h8300/h8300.c (print_operand): Support 16-bit
20079         constant addresses.
20080         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
20081
20082 2002-02-28  Richard Henderson  <rth@redhat.com>
20083
20084         * expmed.c (store_bit_field): Prevent generation of CONCATs;
20085         pun complex values as integers; use gen_lowpart instead of
20086         gen_rtx_SUBREG.
20087         (extract_bit_field): Likewise.
20088
20089 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
20090             David Edelsohn  <edelsohn@gnu.org>
20091
20092         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
20093         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
20094         (SUPPORTS_WEAK): Likewise.
20095         * output.h (add_weak): Add tree param.
20096         * varasm.c (add_weak): Likewise.  Save decl.
20097         (struct weak_syms): Add decl field.
20098         (mark_weak_decls): New function.
20099         (init_varasm_once): ggc_add_root mark_weak_decls.
20100         (assemble_start_function): Use ASM_WEAKEN_DECL.
20101         (assemble_variable): Likewise.
20102         (assemble_alias): Likewise.
20103         (declare_weak): Pass decl to add_weak.
20104         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
20105         (remove_from_pending_weak_list): Declare and define for
20106         ASM_WEAKEN_DECL.
20107         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
20108         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
20109         * defaults.h (SUPPORTS_WEAK): Likewise.
20110         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
20111         .weak for code sym.  Do emit .size for descriptor sym.
20112         (ASM_DECLARE_FUNCTION_SIZE): Define.
20113         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
20114         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
20115         .lglobl unless TARGET_XCOFF.  Formatting fixes.
20116         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
20117         .weak for code sym.
20118         (HANDLE_PRAGMA_WEAK): Remove.
20119         (ASM_WEAKEN_LABEL): Remove.
20120         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
20121
20122 2002-03-01  Jason Merrill  <jason@redhat.com>
20123
20124         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
20125         (TARGET_EXPR_CLEANUP): New macro.
20126
20127 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
20128
20129         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
20130         to take ptr_extend into account as third type of extension.
20131         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
20132         fields used by SUBREG_PROMOTED_UNSIGNED_P.
20133         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
20134         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
20135         * calls.c (precompute_arguments): Use new macro.
20136         (expand_call): Ditto.
20137         * combine.c (nonzero_bits): Ditto.
20138         (record_promoted_value): Ditto.
20139         * expr.c (store_expr): Ditto.
20140         (expand_expr): Ditto.
20141         * function.c (assign_parms): Ditto.
20142
20143 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
20144
20145         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
20146         override -shared and -shared-libgcc.
20147
20148 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
20149
20150         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
20151         of "ultrasparc".
20152         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
20153         to be broken.
20154
20155 2002-02-28  Richard Henderson  <rth@redhat.com>
20156
20157         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
20158         4 cycle latency from MM producers.
20159         (ia64_internal_sched_reorder): Likewise with pipeline flush.
20160
20161 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
20162
20163         * mklibgcc.in: Don't use GNU make extension.
20164
20165 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
20166
20167         * c-parse.in (STATIC): New terminal.
20168         (scspec): New non-terminal.  Update productions accordingly.
20169         (program): Remove bogus ifc / end ifc.
20170         (array_declarator): Simplify production using STATIC.
20171
20172 2002-02-28  Jim Meyering  <meyering@lucent.com>
20173
20174         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
20175         \a still means TARGET_BELL.
20176
20177 2002-02-28  Richard Henderson  <rth@redhat.com>
20178
20179         * haifa-sched.c (sched_emit_insn): New.
20180         (schedule_block): Use last_scheduled_insn to track last insn.
20181         * sched-int.h (sched_emit_insn): Prototype.
20182         * config/ia64/ia64.c (last_issued): Remove.
20183         (ia64_variable_issue): Don't set it.
20184         (nop_cycles_until): Use sched_emit_insn.
20185
20186 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
20187
20188         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
20189         extended constants.
20190
20191 2002-02-28  Kazu Hirata  <kazu@hxi.com>
20192
20193         * config/h8300/h8300.c: Fix formatting.
20194         * config/h8300/h8300.h: Likewise.
20195
20196 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
20197
20198         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
20199         which may overwrite the high byte of the frame pointer.
20200
20201 2002-02-28  Bo Thorsen  <bo@suse.de>
20202
20203         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
20204         (STARTFILE_SPEC): Add 64 bit files.
20205         (ENDFILE_SPEC): Likewise.
20206
20207 2002-02-28  Jason Merrill  <jason@redhat.com>
20208
20209         * c-decl.c (finish_function): Only warn about missing return
20210         statement with -Wreturn-type.
20211
20212 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
20213
20214         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
20215
20216         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
20217         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
20218
20219 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
20220
20221         * basic-block.h (BB_REACHABLE): Renumber.
20222         (BB_DIRTY, BB_NEW): New flags.
20223         (clear_bb_flags): Declare.
20224         (update_life_info_in_dirty_blocks): Declare.
20225         * cfg.c (clear_bb_flags): New function.
20226         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
20227         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
20228         reorder_insns, emit_insn_after): Mark block as dirty.
20229         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
20230         (update_life_info_in_dirty_blocks): New function.
20231         * recog.c (apply_change_group): Dirtify block.
20232
20233         * cse.c (cse_insn): Reorder emitting of jump insn to keep
20234         cfg consistent.
20235         * gcse.c (delete_null_pointer_checks): Likewise.
20236
20237         * toplev.c (dump_file_index): Move cse2 after bp,
20238         add DFI_null
20239         (dump_file_info): Similary.
20240         (rest_of_compilation): Avoid most of CFG rebuilds;
20241         do first if converision after null pointer checks, do cse2
20242         after branch prediction; avoid full liveness rebuild after
20243         initializing subregs.
20244         * invoke.texi (-d options): Document -du, renumber.
20245
20246         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
20247         (notice_new_block): Do not set BB_UPDATE_LIFE.
20248         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
20249          merge_blocks_move_successor_nojumps, merge_blocks,
20250          try_crossjump_to_edge): Likewise.
20251         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
20252         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
20253         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
20254         (merge_of_block): Do not use life_data_ok.
20255         (find_if_case_1): Do not use SET_UPDATE_LIFE.
20256         (if_convert): Use BB_DIRTY mechanizm to update life.
20257         * lcm.c (optimize_mode_switching): Update
20258         update_life_info_in_dirty_blocks
20259
20260 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
20261
20262         * Makefile.in (integrate.o): Update.
20263         * c-decl.c (copy_lang_decl): Rename.
20264         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
20265         * integrate.c: Include langhooks.h.
20266         (copy_decl_for_inlining): Update to use langhook.
20267         * langhooks-def.h (lhd_do_nothing_t,
20268         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
20269         (LANG_HOOKS_INITIALIZER): Update.
20270         * langhooks.c (lhd_do_nothing_t): New.
20271         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
20272         * tree.h (copy_lang_decl): Remove.
20273 objc:
20274         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
20275
20276 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
20277
20278         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
20279         POST_DEC, and POST_MODIFY.
20280
20281 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
20282
20283         * c-typeck.c (digest_init): Remove unused parameter; all
20284         callers changed.
20285
20286 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
20287
20288         * expmed.c (expand_shift): Correctly test for low part of a
20289         subreg.
20290
20291 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
20292
20293         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
20294         insn UIDs with insn addresses.
20295
20296 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
20297
20298         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
20299         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
20300         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
20301         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
20302         gcc.c, toplev.c: Delete code implementing -traditional mode.
20303
20304         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
20305         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
20306         Document removal of -traditional mode for compilation, and
20307         remove documentation only relevant to that mode.
20308
20309         * config/nextstep.h, config/ptx4.h, config/svr4.h,
20310         config/convex/convex.h, config/d30v/d30v.h,
20311         config/i386/dgux.h, config/i386/osf1elf.h,
20312         config/i386/osfelf.h, config/i386/osfrose.h,
20313         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
20314         config/m68k/hp310.h, config/m88k/dgux.h,
20315         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
20316         config/m88k/m88k.h, config/m88k/openbsd.h,
20317         config/mips/abi64.h, config/mips/osfrose.h,
20318         config/mips/svr4-5.h, config/mips/svr4-t.h,
20319         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
20320         config/stormy16/stormy16.h: Remove all references to
20321         -traditional from target specs.  Delete all mention of the
20322         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
20323         delete a couple of commented-out definitions of
20324         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
20325         to -traditional.
20326
20327         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
20328         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
20329
20330 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
20331
20332         * mklibgcc.in: Don't use \n in a line subject to
20333         interpretation by echo.
20334
20335 2002-02-27  Graham Stott  <grahams@redhat.com>
20336
20337         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
20338         Constify NAME.
20339
20340         * loop.c (prescan_loop): Handle PARALLEL.
20341
20342         * unroll.c (loop_iterations): Return 0 if the add_val for
20343         a BIV is REG.
20344
20345         * final.c (output_operand_lossage): Constify PFX_STR.
20346
20347         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
20348
20349 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
20350
20351         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
20352         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
20353
20354 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
20355
20356         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
20357
20358 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
20359
20360         * cpplex.c (_cpp_lex_token): Handle directives in macro
20361         arguments.
20362         * cpplib.c (_cpp_handle_directive): Save and restore state
20363         if parsing macro args when entering a directive.
20364         * cppmacro.c (collect_args): No need to handle directives
20365         in macro arguments.
20366         (enter_macro_context, replace_args): Use the original macro
20367         definition in case it was redefined whilst collecting arguments.
20368 doc:
20369         * cpp.texi: Update.
20370
20371 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
20372
20373         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
20374         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
20375         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
20376         method on AIX.
20377         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
20378         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
20379         (load_toc_v4_PIC_2): Same.
20380
20381 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
20382
20383         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
20384
20385 2002-02-26  Richard Henderson  <rth@redhat.com>
20386
20387         * config/alpha/alpha.md (ashldi_se): Re-enable.
20388
20389 2002-02-26  Richard Henderson  <rth@redhat.com>
20390
20391         * config/alpha/alpha.c (alpha_encode_section_info): Examine
20392         MODULE_LOCAL_P; improve commentary.
20393
20394 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
20395
20396         * doc/cpp.texi: Clarify documentation of relationship between
20397         #line and #include.
20398
20399 2002-02-26  Kazu Hirata  <kazu@hxi.com>
20400
20401         * config/h8300/h8300-protos.h: Update the prototype for
20402         compute_logical_op_length.  Add the prototype for
20403         compute_logical_op_cc.
20404         * config/h8300/h8300.c (compute_logical_op_length): Figure out
20405         code from operands.
20406         (compute_logical_op_cc): New.
20407         * config/h8300/h8300.md: Combine all the logical op patterns
20408         in HImode and SImode.  Use compute_logical_op_cc.
20409
20410 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
20411
20412         * config/i386/i386.c (print_operand): Don't append ATT-style
20413         length suffixs to x87 opcodes when in Intel mode.
20414
20415 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
20416
20417         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
20418         (init_emit_once): Update calls.
20419         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
20420         (init_syntax_once): Prototype.
20421
20422 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
20423
20424         * pa-linux.h (LIB_SPEC): Update definition.
20425         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
20426
20427 2002-02-26  Richard Henderson  <rth@redhat.com>
20428
20429         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
20430         if we emitted a stop bit.
20431
20432 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
20433
20434         * configure.in (libgcc_visibility): Substitute.
20435         * configure: Rebuilt.
20436         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
20437         defined symbols .hidden.
20438
20439 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
20440
20441         * attribs.c (c_common_attribute_table): Add visibility.
20442         (handle_visibility_attribute): New function.
20443         * varasm.c (assemble_visibility): New function.
20444         * output.h (assemble_visibility): Add prototype.
20445         * tree.h (MODULE_LOCAL_P): Define.
20446         * crtstuff.c (__dso_handle): Use visibility attribute.
20447         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
20448         for MODULE_LOCAL_P symbols too.
20449         * config/ia64/ia64.c (ia64_encode_section_info): Handle
20450         MODULE_LOCAL_P symbols the same way as local symbols.
20451         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
20452         into .sdata/.sbss by the user.
20453         * doc/extend.texi (Function Attributes): Document visibility
20454         attribute.
20455
20456 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
20457
20458         PR debug/5770
20459         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
20460         STRING_CST initializer spanning the whole variable without
20461         embedded zeros.
20462         If expand_expr returned MEM, don't use it.
20463
20464 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
20465
20466         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
20467         generate a die for the lexical block.
20468
20469 2002-02-26  Kazu Hirata  <kazu@hxi.com>
20470
20471         * config/h8300/h8300-protos.h: Add a prototype for
20472         compute_logical_op_length.
20473         * config/h8300/h8300.c (compute_logical_op_length): New.
20474         * config/h8300/h8300.md (anonymous logical patterns): Use
20475         compute_logical_op_length for length.
20476
20477 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
20478
20479         * dwarf2out.c (modified_type_die): Do not call type_main_variant
20480         for vectors.
20481         (gen_type_die): Same.
20482
20483         * attribs.c (handle_vector_size_attribute): Set debug information.
20484
20485 2002-02-26  Daniel Egger  <degger@fhm.edu>
20486
20487         * config/rs6000/rs6000.md: Swap define_insn attributes to
20488         fix incorrect generation of merge high instructions instead
20489         of merge low.
20490
20491 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
20492
20493         * c-typeck.c (really_start_incremental_init): Use
20494         bitsize_zero_node for vectors.
20495
20496 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
20497
20498         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
20499         ("*set_vrsave_internal"): Same.
20500
20501 2002-02-25  Richard Henderson  <rth@redhat.com>
20502
20503         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
20504         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
20505
20506 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
20507
20508         PR target/5755
20509         * config/i386/i386.c (ix86_return_pops_args): Only pop
20510         fake structure return argument if it was passed on the stack.
20511
20512 2002-02-25  Jason Merrill  <jason@redhat.com>
20513
20514         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
20515         RESULT_DECL.
20516
20517 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
20518
20519         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
20520         link with shared_name only.
20521         * doc/invoke.texi (Link Options): Document new behavior.
20522
20523 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
20524
20525         * c-typeck.c (push_init_level): Handle vectors.
20526
20527 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
20528
20529         * config/sparc/sparc.c (const64_high_operand): Zero-extend
20530         operands of SPARC_SETHI_P.
20531         (input_operand): Likewise.
20532         (sparc_emit_set_const32): Likewise.
20533         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
20534         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
20535         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
20536         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
20537         (movdi_insn_sp64_vis): Likewise.
20538         (movdi split, movdf split): Use SETHI32.
20539         * doc/md.texi: Document SPARC constraints L, M and N.
20540
20541 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
20542
20543         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
20544         ("*set_vrsave_internal"): use mfspr for Darwin.
20545
20546         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
20547         gen_get_vrsave_internal.
20548
20549 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20550
20551         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
20552
20553 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
20554
20555         * cpplex.c (cpp_interpret_charconst): Get signedness or
20556         otherwise of wide character constants correct.
20557         * cppexp.c (lex): Get signedness of wide charconsts correct.
20558
20559 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20560
20561         * optabs.c (widen_operand): Only call convert_modes for
20562         promoted SUBREG if signedness matches.
20563         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
20564
20565 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
20566
20567         * cpplib.c (glue_header_name): Use local buffer to build up
20568         header name.
20569
20570 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
20571
20572         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
20573
20574 2002-02-23  Kazu Hirata  <kazu@hxi.com>
20575
20576         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
20577         H8/300[HS] separately.
20578         * config/h8300/h8300.md: Remove the early clobber constraint
20579         from bit field patterns.
20580
20581 2002-02-23  Kazu Hirata  <kazu@hxi.com>
20582
20583         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
20584         register_operand.
20585         (mulhisi3): Likewise.
20586         (umulqisi3): Likewise.
20587         (umulhisi3): Likewise.
20588
20589 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
20590
20591         * cppinit.c (output_deps): Correct test for stdout output.
20592         (init_dependency_output): Cure warning.
20593
20594 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20595
20596         * expr.c (store_expr): When converting expression to promoted
20597         equivalent type, allow using SUBREG_REG of TARGET as the target
20598         of the expansion of EXP.
20599         * loop.c (basic_induction_var, case SUBREG): Always look inside.
20600         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
20601         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
20602         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
20603         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
20604
20605 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
20606
20607         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
20608         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
20609         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
20610
20611 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
20612
20613         PR optimization/5747
20614         * loop.c (scan_loop): Update reg info if move_movables created new
20615         pseudos.
20616
20617 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
20618
20619         * gcc.c (init_gcc_spec): Revert last change.
20620
20621 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
20622
20623         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
20624         gpc_reg_operand constraint.
20625
20626 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
20627
20628         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
20629         Simplify comparison of `low'.
20630         (add_operand): Fix formatting.
20631         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
20632         (mask_operand): Disallow mask to wrap in 64-bit mode.
20633         (rs6000_stack_info): Remove redundant test setting push_p.
20634         (output_toc): Fix formatting.
20635         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
20636         cc_reg_not_cr0_operand constraint.
20637         (booldi3, boolcdi3 splitters): Same.
20638
20639 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
20640
20641         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
20642
20643 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
20644
20645         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
20646         gcc invoked with -shared-libgcc.
20647
20648 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
20649
20650         PR c++/5748
20651         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
20652         decl if any of elements was TREE_USED.
20653
20654 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
20655
20656         * config/sparc/sol2.h: Don't include sys/mman.h.
20657         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
20658         (arith_4096_operand): Don't throw high bits away.
20659         (const64_operand): Take sign extension of CONST_INTs into account.
20660         (const64_high_operand, sparc_emit_set_const32): Likewise.
20661         (GEN_HIGHINT64): Likewise.
20662         (sparc_emit_set_const64_quick1): Likewise.
20663         (const64_is_2insns): Likewise.
20664         (print_operand): Use trunc_int_for_mode for sign extension.
20665         * config/sparc/sparc.h (SMALL_INT32): Likewise.
20666         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
20667         chars.  Assume CONST_INT is already properly sign-extended.
20668         (movdi split): Sign-extend each SImode part.
20669         (andsi3 split): Don't mask high bits off, so that result
20670         remains properly sign-extend.
20671         (iorsi3 split): Likewise.
20672         (xorsi3 split): Likewise.
20673
20674 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
20675
20676         * fold-const.c (fold): Fix typo in comments.
20677
20678 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
20679
20680         * Makefile.in (langhooks.o): Update dependencies.
20681
20682 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
20683
20684         * langhooks.c: Include flags.h.
20685
20686 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
20687
20688         * testsuite/gcc.dg/attr-alwaysinline.c: New.
20689
20690         * c-common.c (c_common_post_options): Set inline trees by
20691         default.
20692
20693         * doc/extend.texi (Function Attributes): Document always_inline
20694         attribute.
20695         Update documentation about inlining when not optimizing.
20696
20697         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
20698
20699         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
20700         unless DECL_ALWAYS_INLINE.
20701
20702         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
20703         unless DECL_ALWAYS_INLINE.
20704         (c_disregard_inline_limits): Disregard if always_inline set.
20705
20706         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
20707         Disregard if always_inline set.
20708         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
20709         unless DECL_ALWAYS_INLINE.
20710
20711         * attribs.c (handle_always_inline_attribute): New.
20712         (c_common_attribute_table): Add always_inline.
20713
20714         * config/rs6000/altivec.h: Add prototypes for builtins
20715         requiring the always_inline attribute.
20716
20717 2002-02-21  Eric Christopher  <echristo@redhat.com>
20718
20719         * expmed.c (store_bit_field): Try to simplify the subreg
20720         before generating a new one when when the mode size of
20721         value is less than maxmode.
20722
20723 2002-02-21  Richard Henderson  <rth@redhat.com>
20724
20725         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
20726         than gen_rtx_PLUS to form the sum.
20727         * explow.c (force_reg): Rearrange to not allocate new pseudo
20728         when force_operand returns a register.
20729         * expr.c (expand_assignment): Allow offset_rtx expansion to
20730         return a sum.  Do not force addresses into registers.
20731         (expand_expr): Likewise.
20732         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
20733         to canonicalize arithmetic that didn't simpify.
20734         (simplify_plus_minus): New argument force; update
20735         all callers.  Don't split CONST unless we can do something with it,
20736         and wouldn't lose the constness of the operands.
20737
20738         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
20739         that we generated earlier.
20740
20741 2002-02-21  Tom Tromey  <tromey@redhat.com>
20742
20743         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
20744         (output_line_info): Use constant `1', with a long explanatory
20745         comment.
20746         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
20747
20748 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
20749
20750         * jump.c (redirect_jump): If old label has no UID, don't try to
20751         delete it.
20752
20753 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
20754
20755         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
20756         If input is constant, do shifts at compile time.
20757
20758 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
20759
20760         * doc/extend.texi: Fix some more overfull hboxes.
20761
20762 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
20763
20764         PR optimization/4994
20765         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
20766         register moves.
20767
20768 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
20769
20770         PR c++/4574
20771         * expr.h (expand_and): Add mode argument.
20772         * expmed.c (expand_and): Add mode argument.
20773         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
20774         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
20775         * except.c (expand_builtin_extract_return_addr): Likewise.
20776         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
20777         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
20778         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
20779         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
20780         * config/c4x/c4x.md: Use GEN_INT (x) instead of
20781         gen_rtx (CONST_INT, VOIDmode, x).
20782
20783 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
20784
20785         PR c/4697:
20786         * stmt.c (warn_if_unused_value): Move side effects test once more.
20787
20788 2002-02-20  Torbjorn Granlund  <tege@swox.com>
20789
20790         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
20791         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
20792
20793 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
20794
20795         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
20796         SUBREG or ZERO_EXTEND.
20797
20798 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
20799
20800         * sh.h (current_function_anonymous_args): Remove.
20801         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
20802         of current_function_varargs and current_function_stdarg is set.
20803         * sh.c (sh_expand_prologue): Check current_function_varargs /
20804         current_function_stdarg / TARGET_SH5 instead of
20805         current_function_anonymous_args.
20806
20807         * sh64.h (TARGET_VERSION): Define.
20808
20809 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
20810
20811         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
20812         VRSAVE_REGNO on TARGET_ALTIVEC.
20813
20814 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
20815
20816         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
20817         bits of SImode const_int.
20818         (includes_rshift_p): Likewise.
20819         (print_operand): Call mask_operand and mask64_operand with correct
20820         mode.
20821         (rs6000_output_function_epilogue): Pad traceback table to word.
20822         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
20823         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
20824         mask64_operand with correct mode.
20825         (FUNCTION_ARG_REGNO_P): Correct parentheses.
20826
20827 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
20828
20829         PR debug/4461
20830         * varasm.c (get_pool_constant_mark): New.
20831         * rtl.h (get_pool_constant_mark): Add prototype.
20832         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
20833         be represented if it has not been output.
20834
20835 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
20836
20837         * combine.c (do_SUBST): Sanity check substitutions of
20838         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
20839         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
20840         CONST_INT into its operand.
20841         (known_cond): Likewise, for ZERO_EXTEND.
20842         * simplify-rtx.c (simplify_unary_operation): Fix condition to
20843         allow for simplification of wide modes.  Reject CONST_INTs in
20844         ZERO_EXTEND when their actual mode is not given.
20845
20846 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
20847
20848         * c-decl.c (pushdecl): If no global declaration is found for an
20849         extern declaration in block scope, try a limbo one.
20850
20851 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
20852
20853         PR c++/4401
20854         * c-common.c (pointer_int_sum): Moved from...
20855         * c-typeck.c (pointer_int_sum): ...here.
20856         * c-common.h (pointer_int_sum): Add prototype.
20857
20858 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
20859
20860         PR c++/5713
20861         * c-decl.c (duplicate_decls): Return 0 if issued error about
20862         redeclaration.
20863
20864 2002-02-20  Roger Sayle  <roger@eyesopen.com>
20865             Jakub Jelinek  <jakub@redhat.com>
20866
20867         PR c/4389
20868         * tree.c (host_integerp): Ensure that the constant integer is
20869         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
20870         when pos is zero or non-zero respectively.  Clarify comment.
20871         * c-format.c (check_format_info_recurse): Fix host_integerp
20872         usage; the pos argument should be zero when assigning to a
20873         signed HOST_WIDE_INT.
20874
20875 2002-02-20  Richard Henderson  <rth@redhat.com>
20876
20877         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
20878         of the operand, rather than assuming TImode.
20879         (ix86_expand_binop_builtin): Cope with commutative patterns
20880         using nonimmediate_operand for both operands.
20881         (ix86_expand_timode_binop_builtin): Likewise.
20882         (ix86_expand_store_builtin): Validate operand 1.
20883         (ix86_expand_unop1_builtin): Likewise.
20884
20885 2002-02-20  Philip Blundell  <philb@gnu.org>
20886
20887         PR 5705
20888         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
20889
20890 2002-02-20  Richard Henderson  <rth@redhat.com>
20891
20892         PR c/5615
20893         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
20894
20895 2002-02-20  Tom Tromey  <tromey@redhat.com>
20896
20897         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
20898         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
20899         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
20900         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
20901         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
20902         unconditionally.
20903
20904 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
20905
20906         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
20907           for (const_int 0) in X not just INTVAL.
20908
20909 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
20910
20911         * doc/extend.texi: Avoid or reduce overfull hboxes.
20912
20913 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
20914
20915         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
20916         operations if the field does not start at a mode boundary.
20917
20918 2001-02-20      Joel Sherrill <joel@OARcorp.com>
20919
20920         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
20921         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
20922         Also done for -Acpu and -Amachine.
20923
20924 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
20925
20926         * cppinit.c (init_dependency_output): Take deps output file
20927         from -o if none given with -MF.  Suppress normal output.
20928         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
20929         * doc/cpp.texi, doc/invoke.texi: Update.
20930
20931 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
20932
20933         * toplev.c (output_quoted_string): Write unprintable
20934         characters with octal escapes.
20935
20936 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
20937
20938         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
20939         really_call_used[VRSAVE_REGNO] if not Altivec.
20940
20941 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
20942
20943         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
20944         MODE_MASK.
20945         (constant_pool_expr_1): Fix formatting.
20946         (rs6000_legitimize_reload_address): Likewise.
20947
20948 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
20949
20950         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
20951         now that we have one.
20952
20953 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
20954
20955         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
20956         end of first block of bitfields (which was only seven bits);
20957         rename dummy to unused_1; remove comment which is no longer true.
20958
20959 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
20960
20961         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
20962
20963 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
20964
20965         PR 5399
20966         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
20967         if generating PIC.
20968
20969         PR 5054
20970         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
20971         arm_is_longcall_p rather than inspecting call-type cookie
20972         directly.
20973         (call_value_insn) [TARGET_THUMB]: Likewise.
20974
20975 2002-02-19  Graham Stott  <grahams@redhat.com>
20976
20977         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
20978
20979 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
20980
20981         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
20982         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
20983         (FP_SAVE_INLINE): Delete.
20984
20985         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
20986         * config/rs6000/eabi.asm: Remove ABI save restore routines.
20987         * config/rs6000/t-ppccomm: Build crtsavres.o.
20988         * config/rs6000/crtsavres.asm: New file.
20989
20990 2002-02-19  Philip Blundell  <philb@gnu.org>
20991
20992         * config/arm/arm.c (use_return_insn): Don't reject interrupt
20993         functions.
20994         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
20995         (output_return_instruction): Allow interrupt functions to return with
20996         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
20997         (arm_expand_prologue): Subtract 4 before stacking LR in an
20998         interrupt function.
20999
21000 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
21001
21002         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
21003         decl, not just FUNCTION_DECL.
21004         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
21005         (arm_assemble_integer): Likewise.
21006         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
21007         marked local.
21008
21009 2002-02-19  matthew green  <mrg@eterna.com.au>
21010
21011         * config.gcc (sparc-*-netbsdelf*): Enable target.
21012         (sparc64-*-netbsd*): New target.
21013         * config/sparc/netbsd-elf.h: New file.
21014         * config/sparc/t-netbsd64: New file.
21015
21016 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
21017
21018         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
21019
21020 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
21021
21022         * doc/invoke.texi: explicitly list the style guidelines that
21023         -Weffc++ checks for.
21024
21025 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
21026
21027         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
21028
21029 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
21030
21031         PR other/5718
21032         * gcc.c (cpp_unique_options): Treat -o as indicating object file
21033         only if not -E.  If -E, pass -o through to the preprocessor.
21034
21035 2002-02-19  Kazu Hirata  <kazu@hxi.com>
21036
21037         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
21038         register number with an appropriate macro.
21039
21040 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
21041
21042         * doc/rtl.texi (Constants): Close @code tag.
21043
21044 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
21045
21046         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
21047         ("mmx_uavgv4hi3"): Same.
21048         ("pmulhrwv4hi3"): Same.
21049
21050         * tree-inline.c (walk_tree): Handle vectors.
21051
21052         * c-common.c (constant_expression_warning): Handle vectors.
21053         (overflow_warning): Same.
21054
21055         * sched-deps.c (sched_analyze_2): Handle vectors.
21056
21057         * rtlanal.c (rtx_unstable_p): Handle vectors.
21058         (rtx_varies_p): Same.
21059         (count_occurrences): Same.
21060         (regs_set_between_p): Same.
21061         (modified_between_p): Same.
21062         (modified_in_p): Same.
21063         (volatile_insn_p): Same.
21064         (volatile_refs_p): Same.
21065         (side_effects_p): Same.
21066         (may_trap_p): Same.
21067         (inequality_comparisons_p): Same.
21068         (replace_regs): Same.
21069         (computed_jump_p_1): Same.
21070
21071         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
21072         argument.
21073         (inner_mode_array): New.
21074         (copy_rtx): Handle vectors.
21075         (copy_most_rtx): Same.
21076         (rtx_equal_p): Same.
21077         (get_mode_alignment): Adjust for vectors.
21078
21079         * resource.c (mark_referenced_resources): Handle vectors.
21080         (mark_set_resources): Same.
21081
21082         * reload1.c (eliminate_regs): Handle vectors.
21083         (elimination_effects): Same.
21084         (scan_paradoxical_subregs): Same.
21085
21086         * reload.c (subst_reg_equivs): Handle vectors.
21087
21088         * regrename.c (scan_rtx): Handle vectors.
21089
21090         * regclass.c (reg_scan_mark_refs): Handle vectors.
21091
21092         * recog.c (find_single_use_1): Handle vectors.
21093
21094         * local-alloc.c (equiv_init_varies_p): Handle vectors.
21095         (contains_replace_regs): Same.
21096         (memref_referenced_p): Same.
21097
21098         * integrate.c (copy_rtx_and_substitute): Handle vectors.
21099         (subst_constants): Same.
21100
21101         * genattrtab.c (attr_copy_rtx): Handle vectors.
21102         (encode_units_mask): Same.
21103         (clear_struct_flag): Same.
21104         (count_sub_rtxs): Same.
21105
21106         * gcse.c (want_to_gcse_p): Handle vectors.
21107         (oprs_unchanged_p): Same.
21108         (hash_expr_1): Same.
21109         (oprs_not_set_p): Same.
21110         (expr_killed_p): Same.
21111         (compute_transp): Same.
21112         (store_ops_ok): Same.
21113
21114         * function.c (purge_addressof_1): Do not allow paradoxical subregs
21115         of vectors.
21116         (fixup_var_refs_1): Same.
21117         (instantiate_virtual_regs_1): Same.
21118
21119         * fold-const.c (operand_equal_p): Handle vectors.
21120         (fold): Same.
21121         (rtl_expr_nonnegative_p): Same.
21122
21123         * flow.c (mark_used_regs): Handle vectors.
21124
21125         * df.c (df_uses_record): Handle vectors.
21126
21127         * cselib.c (cselib_subst_to_values): Handle vectors.
21128         (cselib_mem_conflict_p): Same.
21129         (hash_rtx): Same.
21130
21131         * cse.c (canon_reg): Handle vectors.
21132         (fold_rt): Same.
21133         (cse_process_notes): Same.
21134         (count_reg_usage): Same.
21135         (canon_hash): Same.
21136
21137         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
21138
21139         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
21140
21141         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
21142         (gen_rtx): Handle CONST_VECTOR.
21143         (gen_const_vector_0): New.
21144         (copy_rtx_if_shared): CONST_VECTORs can be shared.
21145         (reset_used_flags): Same.
21146         (copy_insn_1): Same.
21147         (initializer_constant_valid_p): Handle VECTOR_CST.
21148
21149         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
21150
21151         * doc/rtl.texi (Constants): Document const_vector.
21152         (CONST0_RTX): Update for vectors.
21153         (RTL sharing): Same.
21154
21155         * print-tree.c (print_node): Add case for VECTOR_CST.
21156
21157         * tree.h (TREE_VECTOR_CST_ELTS): New.
21158         (struct tree_vector): New.
21159         (union tree_node): Add vector node.
21160         (build_vector): Add prototype.
21161
21162         * tree.def (VECTOR_CST): New.
21163
21164         * tree.c (build_vector): New.
21165
21166         * expmed.c (make_tree): Handle CONST_VECTOR.
21167
21168         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
21169         (CONST_VECTOR_ELT): New.
21170         (CONST_VECTOR_NUNITS): New.
21171
21172         * machmode.h (GET_MODE_INNER): New.
21173         (DEF_MACHMODE): Accept 8th arg.
21174
21175         * machmode.def: Add 8th argument for vector inner mode.
21176         Add inner vector modes for vectors.
21177
21178         * rtl.def (VEC_CONST): Remove.
21179         (CONST_VECTOR): New.
21180
21181         * expr.c (clear_storage): Allow vectors.
21182         (is_zeros_p): Handle VECTOR_CST.
21183
21184         * varasm.c (output_constant_pool): Handle vectors.
21185         (rtx_const): Add veclo and vechi fields.
21186         (kind): Add RTX_VECTOR.
21187         (decode_rtx_const): Add case for vector.
21188
21189         * config/rs6000/rs6000-protos.h: Add zero_constant.
21190
21191         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
21192         constants.  Force easy vector constants into memory.
21193         (easy_vector_constant): New.
21194         (emit_easy_vector_constant): New.
21195         (rs6000_legitimize_reload_address): Do not generate bad reloads on
21196         darwin.
21197
21198         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
21199         instruction does.
21200         ("altivec_lvxl"): Same.
21201         (altivec_lvebx): Same.
21202         (altivec_lvehx): Same.
21203         (altivec_lvewx): Same.
21204         ("*movv4si_const0"): New.
21205         ("*movv4sf_const0"): New.
21206         ("*movv8hi_const0"): New.
21207         ("*movv16qi_const0"): New.
21208
21209 2002-02-18  Kazu Hirata  <kazu@hxi.com>
21210
21211         * config/h8300/h8300.c (notice_update_cc): Use
21212         cc_status.value2.
21213
21214 2002-02-18  Kazu Hirata  <kazu@hxi.com>
21215
21216         * config/h8300/h8300.md (divmod patterns): Change the
21217         constraints for operands[1] to register_operand.
21218
21219 2002-02-18  Kazu Hirata  <kazu@hxi.com>
21220
21221         * config/h8300/h8300-protos.h: Remove the prototype for
21222         p_operand.
21223         * config/h8300/h8300.c (p_operand): Remove.
21224         * config/h8300/h8300.md: Replace p_operand with
21225         const_int_operand.
21226
21227 2002-02-18 Philip Blundell <pb@nexus.co.uk>
21228
21229         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
21230         comment.
21231         (output_return_instruction): Allow use of LDR to unstack
21232         return addresss even for interrupt handlers or when
21233         interworking.  If compiling for ARMv5, use interworking-safe
21234         return instructions by default.  Remove duplicated code and
21235         lengthy "strcat" sequences.
21236
21237 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
21238
21239         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
21240         (LINK_EH_SPEC): Define.
21241         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
21242
21243 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
21244
21245         * config/s390/s390.c (s390_emit_prologue): Do not set the
21246         frame_related flag for call-clobbered registers.
21247
21248 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
21249
21250         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
21251         (construct_container): Fix handling of SSE operands.
21252         (ix86_expand_builtin): Fix handling of 64bit pointers.
21253         (mmx_maskmovq_rex): New pattern.
21254
21255 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
21256
21257         * regrename.c (kill_set_value): Handle subregs properly.
21258
21259 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
21260
21261         * objc/objc-act.c (handle_impent): Remove leading '*'
21262         from objc_class_name.
21263
21264 2002-02-17  Richard Henderson  <rth@redhat.com>
21265
21266         * config/alpha/alpha.c (some_small_symbolic_operand,
21267         some_small_symbolic_operand_1, split_small_symbolic_operand,
21268         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
21269         Handle small SYMBOL_REFs anywhere, not just inside memories.
21270         * config/alpha/alpha-protos.h: Update.
21271         * config/alpha/alpha.h (PREDICATE_CODES): Update.
21272         * config/alpha/alpha.md (small symbolic operand splitter): Update.
21273
21274 2002-02-17  Roland McGrath  <roland@frob.com>
21275
21276         * config.gcc (powerpc-*-gnu-gnualtivec*,
21277         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
21278         * config/rs6000/gnu.h: New file.
21279         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
21280         Grok "gnu" in rs6000_abi_name.
21281         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
21282         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
21283         Grok -mcall-gnu analogous to -mcall-linux et al.
21284         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
21285         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
21286         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
21287
21288 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
21289
21290         PR c/3444:
21291         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
21292         shortening.
21293
21294 2002-02-17  Philipp Thomas  <pthomas@suse.de>
21295
21296         * config/cris/cris.h: Undefine STARTFILE_SPEC and
21297         ENDFILE_SPEC before (re)defining them.
21298
21299 2002-02-17  Kazu Hirata  <kazu@hxi.com>
21300
21301         * config/h8300/h8300.c: Fix formatting.
21302         * config/h8300/h8300.h: Likewise.
21303
21304 2002-02-17  Philipp Thomas  <pthomas@suse.de>
21305
21306         * doc/tm.texi: Explain why empty strings should not be
21307         marked for translation.
21308
21309 2002-02-17  Philipp Thomas  <pthomas@suse.de>
21310
21311         * final.c (output_operand_lossage): Changed to accept
21312         printf style arguments. Change calls where necessary.
21313         * output.h (output_operand_lossage): Change declaration
21314         accordingly. Update copyright.
21315         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
21316         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
21317         Update copyright date where necessary.
21318
21319         * config/i386/i386.c (print_operand): Likewise. Remove use of
21320         sprintf.
21321
21322         * config/cris/cris.c (cris_operand_lossage): Likewise.
21323         Rename parameter so that exgettext recognizes it as
21324         translatable message.
21325         (LOSE_AND_RETURN): Rename parameter to msgid.
21326
21327 2002-02-17  Kazu Hirata  <kazu@hxi.com>
21328
21329         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
21330         hard coded register number with an appropriate macro.
21331         (HARD_REGNO_MODE_OK): Likewise.
21332         (ARG_POINTER_REGNUM): Likewise.
21333         (STATIC_CHAIN_REGNUM): Likewise.
21334         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
21335         * config/h8300/h8300.md (define_constants): Define more
21336         register numbers.
21337
21338 2002-02-17  Philipp Thomas  <pthomas@suse.de>
21339
21340         * config/i386/i386.h: Don't mark empty strings for translation.
21341
21342 2002-02-16  H.J. Lu <hjl@gnu.org>
21343
21344         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
21345
21346 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
21347
21348         * cppinit.c (merge_include_chains): Check for brack being
21349         NULL before attempting to merge it with qtail.
21350
21351 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
21352
21353         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
21354         DBX_DEBUG.
21355
21356 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21357
21358         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
21359
21360 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21361
21362         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
21363         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
21364         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
21365
21366 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21367
21368         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
21369         now only if !TARGET_FIX.
21370         (*movsi_nt_vms_fix): New pattern.
21371
21372 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
21373
21374         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
21375         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
21376         (alpha_sa_mask, alpha_sa_size): Reflect above change.
21377         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
21378         (alpha_start_function, alpha_expand_epilogue): Likewise.
21379         (unicosmk_gen_dsib): Likewise.
21380
21381 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21382
21383         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
21384
21385 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
21386
21387         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
21388         check_and_change_labels, s390_final_chunkify): Delete.
21389         (s390_split_branches, s390_chunkify_pool): New functions.
21390         (s390_function_prologue): Call them.
21391
21392         * config/s390/s390.h (S390_REL_MAX): Delete.
21393         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
21394
21395         * config/s390/s390.md (cjump, icjump, jump): Fix length
21396         attribute calculation.
21397
21398
21399 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
21400
21401         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
21402         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
21403
21404 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21405
21406         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
21407         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
21408         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
21409
21410 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
21411
21412         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
21413
21414 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
21415
21416         * reload.c (find_dummy_reload): Check that an output register
21417         is valid for its mode.
21418
21419 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
21420
21421         * combine.c (known_cond): After replacing the REG of a SUBREG, try
21422         to simplify it.
21423
21424         * function.c (assign_parms): Demote promoted argument passed by
21425         transparent reference.
21426
21427 2001-02-14      Joel Sherrill <joel@OARcorp.com>
21428
21429         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
21430         -Acpu() and -Amachine() to eliminate warnings.
21431
21432 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
21433
21434         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
21435
21436 2002-02-14  Kazu Hirata  <kazu@hxi.com>
21437
21438         * config/h8300/h8300-protos.h: Update the prototype for
21439         const_costs.
21440         * config/h8300/h8300.c (const_costs): Treat SET as a little
21441         more expensive operation.
21442         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
21443         reference to const_costs.
21444
21445 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
21446
21447         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
21448
21449 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
21450
21451         PR c/5503:
21452         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
21453         use arguments from newtype.
21454
21455 2002-02-13  Eric Christopher  <echristo@redhat.com>
21456
21457         * config/mips/mips.c (override_options): Add check for march/mipsX
21458         on the same command line. Fix error message in cpu processing.
21459         Remove architecture and ISA checks.
21460
21461 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
21462
21463         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
21464
21465         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
21466
21467 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
21468
21469         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
21470         alternatives.
21471         ("*movv8hi_internal1"): Same.
21472         ("*movv16qi_internal1"): Same.
21473         ("*movv4sf_internal1"): Same.
21474
21475         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
21476         not push_reload for altivec modes.
21477
21478 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
21479
21480         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
21481         all RTEMS targets including removal of #includes from config/*/rtems*.h
21482         file and adding them to tm_file setting. Added xm_defines=POSIX to
21483         many targets.
21484         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
21485         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
21486         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
21487         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
21488         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
21489         config/m68k/rtemself.h: Ditto.
21490         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
21491         config/mips/rtems64.h: Ditto.
21492         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
21493         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
21494         Ditto.
21495         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
21496         config/sparc/rtemself.h: Ditto.
21497         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
21498         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
21499         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
21500         more like arm-elf.
21501         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
21502         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
21503         target made more similar to i386-elf.
21504         * config/i386/t-rtems-i386: Added soft float support and multilibs.
21505         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
21506         be similar to config/m68k/t-m68kelf.
21507         * gthr-rtems.h: Encapsulate with extern "C" for C++.
21508
21509 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
21510
21511         * regmove.c (kill_value): Handle subregs.
21512
21513 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
21514
21515         * i386.md (mul patterns): Allow memory operand to be first;
21516         add expanders where needed; fix constraints.
21517         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
21518         Allow memory operand to be the first.
21519
21520         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
21521         operands.
21522
21523 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
21524
21525         PR c/5681:
21526         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
21527         GET_MODE (x).
21528
21529 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
21530
21531         PR optimization/5547:
21532         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
21533         all valid IA-32 address modes involving non-scaled %ebx and
21534         GOT/GOTOFF as displacement.
21535
21536 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
21537
21538         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
21539         after emitting ltorg insns.
21540
21541         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
21542         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
21543         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
21544         *abssf2): Fix "op_type" attribute.
21545
21546 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
21547
21548         * mkconfig.sh: Avoid using a subshell redirect.
21549         ($output.T): Change to $(output)T.
21550         (ENABLE_NLS): Remove unneeded undef.
21551
21552         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
21553         * config/alpha/x-vms (libsubdir): Define.
21554
21555         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
21556         register frame procedures. Optimize retrieving context.
21557
21558         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
21559         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
21560         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
21561
21562 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21563
21564         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
21565         Make same change as for find_base_value.
21566
21567 2002-02-13  Kazu Hirata  <kazu@hxi.com>
21568
21569         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
21570         of QImode and SImode.
21571
21572 2002-02-13  Kazu Hirata  <kazu@hxi.com>
21573
21574         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
21575         length computation of movsi.
21576         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
21577
21578 2002-02-13  Kazu Hirata  <kazu@hxi.com>
21579
21580         * config/h8300/h8300.md (subqi3): Tighten the predicate for
21581         operands[2] to register_operand.
21582
21583 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
21584
21585         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
21586
21587 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
21588
21589         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
21590         for altivec_lvx* and altivec_stvx*.
21591         ("*movv4si_internal"): Add constraint for loading from GPRs.
21592         ("*movv8hi_internal1"): Same.
21593         ("*movv16qi_internal1"): Same.
21594         ("*movv4sf_internal1"): Same.
21595
21596         * config/rs6000/rs6000.c (altivec_register_operand): New.
21597
21598         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
21599         altivec_register_operand.
21600
21601 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
21602
21603         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
21604         handle SYMBOL_REF.
21605
21606 2002-02-13  Stan Shebs  <shebs@apple.com>
21607
21608         * c-typeck.c (digest_init): Handle vectors.
21609         (really_start_incremental_init): Same.
21610         (pop_init_level): Same.
21611         (process_init_element): Same.
21612
21613         * varasm.c (output_constant): Same.
21614
21615         * expr.c (clear_storage): Same.
21616         (store_constructor): Same.
21617
21618 2002-02-12  Eric Christopher  <echristo@redhat.com>
21619
21620         * explow.c (hard_function_value): Add comment explaining
21621         signed/unsigned comparison.
21622
21623 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
21624
21625         * jump.c (never_reached_warning): Add finish argument.
21626         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
21627         real insn after end.
21628         * rtl.h (never_reached_warning): Adjust prototype.
21629         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
21630         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
21631         never_reached_warning.
21632
21633 2002-02-12  Graham Stott  <grahams@redhat.com>
21634
21635         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
21636
21637 2002-02-12  Kazu Hirata  <kazu@hxi.com>
21638
21639         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
21640         logical shifts on H8/300.
21641         (shift_alg_si): Improve several shifts on H8/300.
21642         (get_shift_alg): Likewise.
21643
21644 2002-02-12  Graham Stott  <grahams@redhat.com>
21645
21646         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
21647
21648 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
21649
21650         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
21651         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
21652
21653 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
21654
21655         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
21656         non-CONST_INT through default_assemble_integer.
21657         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
21658         <case 8>: Abort for CONST_DOUBLE.
21659
21660 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21661
21662         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
21663         is specified.
21664         * config/pa/pa-linux.h (LIB_SPEC): Delete.
21665         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
21666
21667 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
21668
21669         * config/stormy16/stormy16.md (zero_extendqihi2): New.
21670
21671 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
21672
21673         * regrename.c (regrename_optimize): Don't accept a
21674         part-clobbered register if the replaced register is not part
21675         clobbered.
21676
21677         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
21678         take padding into account when computing the argument value.
21679
21680         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
21681
21682         * combine.c (try_combine): Apply substitutions in
21683         CALL_INSN_FUNCTION_USAGE too.
21684
21685 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
21686
21687         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
21688         __builtin_altivec_abs*.
21689         (bdesc_abs): New.
21690
21691         * config/rs6000/rs6000.h (rs6000_builtins): Add
21692         ALTIVEC_BUILTIN_ABS*.
21693
21694         * config/rs6000/altivec.h: Use const char for builtins expecting
21695         literals.
21696         (vec_abs): New versions for C and C++.
21697         (vec_abss): Same.
21698
21699 2002-02-10  Kazu Hirata  <kazu@hxi.com>
21700
21701         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
21702         using Pmode.
21703
21704 2002-02-10  Kazu Hirata  <kazu@hxi.com>
21705
21706         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
21707         constant definition from h8300.md.
21708         (FRAME_POINTER_REGNUM): Likewise.
21709         * config/h8300/h8300.md (define_constants): Add FP_REG.
21710
21711 2002-02-10  Kazu Hirata  <kazu@hxi.com>
21712
21713         * config/h8300/h8300.c (print_operand): Remove redundant code.
21714
21715 2002-02-10  Kazu Hirata  <kazu@hxi.com>
21716
21717         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
21718         * config/h8300/h8300.c (byte_reg): Make it static.
21719
21720 2002-02-10  Richard Henderson  <rth@redhat.com>
21721
21722         PR c/5623
21723         * c-typeck.c (incomplete_type_error): Handle flexible array members.
21724
21725 2002-02-10  Richard Henderson  <rth@redhat.com>
21726
21727         PR c++/5624
21728         * tree.c (append_random_chars): Don't abort if main_input_filename
21729         does not exist.
21730
21731 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
21732
21733         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
21734
21735 2002-02-10  Kazu Hirata  <kazu@hxi.com>
21736
21737         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
21738         (pushhi1): Likewise.
21739
21740 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
21741
21742         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
21743         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
21744
21745 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
21746
21747         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
21748         remove MASK_VIS.
21749         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
21750
21751 2002-02-09  Kazu Hirata  <kazu@hxi.com>
21752
21753         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
21754         a half of an SImode register on H8/300.
21755
21756 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
21757
21758         * i386.md (movdi_2): Add missing '!'.
21759
21760 2002-02-09  Kazu Hirata  <kazu@hxi.com>
21761
21762         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
21763         definitions.
21764
21765 2002-02-09  Kazu Hirata  <kazu@hxi.com>
21766
21767         * config/h8300/h8300.md (length): Correct the distance valid
21768         for the short branch.
21769
21770 2002-02-09  Kazu Hirata  <kazu@hxi.com>
21771
21772         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
21773
21774 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
21775
21776         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
21777         registers in SImode.
21778         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
21779         part-clobbered.
21780
21781         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
21782         patch.
21783
21784         Contribute sh64-elf.
21785         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
21786         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
21787         (sh_cannot_modify_jumps_p): New function.
21788         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
21789         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
21790         (sh_ms_bitfield_layout_p): New function.
21791         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
21792                     Zack Weinberg  <zack@codesourcery.com>
21793         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
21794         expand_simple_binop instead of expand_binop.
21795         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
21796         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
21797         use of .quad and .uaquad.
21798         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
21799         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
21800         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
21801         * config/sh/sh.md (movdi_const, movdi_const_32bit,
21802         movdi_const_16bit): Make sure all CONSTs have modes.
21803         (sym2PIC): Ditto, but by adjusting all callers.
21804         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
21805         if the prologue calls the SHmedia argument decoder or register
21806         saver.
21807         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
21808         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
21809         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
21810         (sh_expand_epilogue): Don't emit USE of return target register.
21811         (prepare_move_operands): Legitimize DImode PIC addresses.
21812         (sh_media_register_for_return): Skip tr0, used to initialize the
21813         PIC register.
21814         (sh_expand_prologue): Remove explicit USE of return register.
21815         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
21816         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
21817         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
21818         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
21819         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
21820         EXTRA_CONSTRAINT_T.
21821         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
21822         (MOVI_SHORI_BASE_OPERAND_P): New.
21823         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
21824         (EXTRA_CONSTRAINT_T): Define in terms of them.
21825         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
21826         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
21827         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
21828         alternatives supporting TARGET_REGS.
21829         (UNSPEC_GOTPLT): New constant.
21830         (movdi split): Move incrementing of LABEL_NUSES...
21831         (movdi_const, movdi_const_32bit): Here.  Use
21832         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
21833         (movdi_const_16bit): New.
21834         (call, call_value) [flag_pic]: Use GOTPLT.
21835         (call_pop, call_value_pop): New expands.
21836         (call_pop_compact, call_pop_rettramp): New insns.
21837         (call_value_pop_compact, call_value_pop_rettramp): New insns.
21838         (sibcall) [flag_pic]: Use GOT.
21839         (builtint_setjmp_receiver): Remove bogus, unused expand.
21840         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
21841         (*pt, *ptb, ptrel): New insns.
21842         (sym2GOT): Handle DImode GOT.
21843         (sym2GOTPLT, symGOTPLT2reg): New expands.
21844         (sym2PIC): New expand.
21845         (shcompact_return_tramp): Use GOTPLT to return trampoline.
21846         (shcompact_return_tramp_i): Use return register explicitly.
21847         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
21848         disable flag_reorder_blocks.
21849         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
21850         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
21851         clobbers, for clarity.
21852         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
21853         restoring of r0 in macl as MAYBE_DEAD.
21854         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
21855         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
21856         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
21857         alter_subreg all over.
21858         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
21859         reload, instead of emitting instructions that would require
21860         reloading.
21861         (casesi_load_media): Add missing modes.
21862         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
21863         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
21864         as used if the argument decoder is called.
21865         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
21866         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
21867         Pmode, then extend it to DImode if necessary.
21868         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
21869         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
21870         constants in FPU-enabled SHmedia, let them be loaded from memory.
21871         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
21872         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
21873         Adjust whitespace in assembly output templates.
21874         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
21875         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
21876         mode of if_then_else.
21877         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
21878         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
21879         sh.h.
21880         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
21881                     Joern Rennecke <amylaar@redhat.com>
21882         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
21883         (SUBTARGET_CPP_PTR_SPEC): New.
21884         (SUBTARGET_CPP_SPEC): Remove.
21885         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
21886         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
21887         Fix typo in previous checkin.
21888         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
21889         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
21890         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
21891                     Alexandre Oliva  <aoliva@redhat.com>
21892         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
21893         what single FP register can hold for SHmedia target.
21894         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
21895                     Alexandre Oliva  <aoliva@redhat.com>
21896         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
21897         Do not split into SUBREG.
21898         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
21899         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
21900         and added new functions as specified in SH5 ABI r9.
21901         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
21902         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
21903         8-byte boundary.
21904         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
21905         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
21906         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
21907         and consttable_window_ends.
21908         2001-06-03  Graham Stott  <grahams@redhat,com>
21909         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
21910         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
21911         * config/sh/sh.c (print_operand): Handle floating-point pair,
21912         vector and matrix registers.
21913         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
21914         vector modes into account.
21915         * config/sh/sh.md (movv2sf): Split move between registers into
21916         movdf.
21917         (movv4sf, movv16sf): Introduce insns that get split only after
21918         reload.
21919         * config/sh/shmedia.h: Fix Copyright dates.
21920         * config/sh/ushmedia.h: Likewise.  Move loop counter
21921         declarations into conditionals that uses them.
21922         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
21923         loop boundary.
21924         * config/sh/sshmedia.h: Fix Copyright dates.
21925         (sh_media_PUTCFG): Fix constraints.
21926         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
21927         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
21928         ptrmemfunc_vbit_in_delta for SH5.
21929         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
21930         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
21931         * invoke.texi: Likewise.
21932         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
21933         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
21934         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
21935         GCC_pop_shmedia_regs_nofpu): New global symbols.
21936         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
21937         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
21938         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
21939         compact function with nonlocal labels.
21940         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
21941         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
21942         (initial_elimination_offset): Account for their stack space.
21943         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
21944         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
21945         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
21946         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
21947         least one of the operands to be a register.
21948         (movv2sf): Likewise.  Renamed to movv2sf_i.
21949         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
21950         prepare_move_operands() before emitting SHmedia insns.
21951         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
21952         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
21953         Don't save nor initialize r12.  Don't mis-align the stack.
21954         Pad the code with a nop.
21955         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
21956         stack.
21957         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
21958         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
21959         [__SHMEDIA__]: Implement.
21960         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
21961         * config/sh/sh.md: Set latency of `pt' closer to reality.
21962         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
21963         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
21964         Set move, load and store type attributes.
21965         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
21966         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
21967         profiling.
21968         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
21969         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
21970         * config/sh/sh.c (sh_media_register_for_return): New function.
21971         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
21972         branch-target register.
21973         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
21974         * config/sh/sh.md (return_media_i): Use any call-clobbered
21975         branch-target register.
21976         (return_media): If r18 wasn't copied in the prologue, copy it
21977         here.
21978         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
21979         Clear class FP0_REGS.
21980         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
21981         from elf.h.
21982         2001-03-08  DJ Delorie  <dj@redhat.com>
21983         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
21984         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
21985         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
21986         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
21987         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
21988         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
21989         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
21990         return value correctly for call_cookie.
21991         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
21992         * config/sh/crt1.asm (start): Modified so as to call
21993         ___setup_argv_and_call_main.
21994         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
21995         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
21996         SHmedia mode.
21997         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
21998         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
21999         (STRIP_NAME_ENCODING): Use it.
22000         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
22001         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
22002         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
22003         prepare_scc_operands().
22004         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
22005         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
22006         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
22007         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
22008         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
22009         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
22010         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
22011         used in shcompact_incoming_args.
22012         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
22013         change.
22014         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
22015         mode.
22016         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
22017         Adjust accordingly.
22018         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
22019         Simplify.  Adjust.  Add sanity check.
22020         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
22021         FPU_SINGLE_BIT.
22022         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
22023         TARGET_SHCOMPACT.
22024         (udivsi3, divsi3): Use them.
22025         (force_mode_for_call): New insn.
22026         (call, call_value, sibcall_value): Emit it before SHcompact
22027         calls.
22028         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
22029         * config/sh/sh.md (call, call_value, sibcall): Make sure the
22030         call cookie is non-NULL before taking its value.
22031         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
22032         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
22033         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
22034         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
22035         block.
22036         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
22037         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
22038         temporary for stack adjusts.  Use MACL and MACH to pass
22039         arguments to shcompact_incoming_args.
22040         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
22041         clobber r1.
22042         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
22043         (nested_trampoline): Load static chain address into r1.
22044         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
22045         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
22046         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
22047         fp_arith_reg_operand().
22048         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
22049         * config/sh/sh.md (casesi): Sign-extend the first two operands,
22050         and use signed compares for them.
22051         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
22052         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
22053         ones properly aligned.
22054         (find_barrier): Account for extra alignment needed for 8-byte wide
22055         constants.
22056         (machine_dependent_reorg): Require a label for the second 4-byte
22057         constant after an 8-byte one.
22058         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
22059         change.
22060         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
22061         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
22062         last_float when switching float modes.
22063         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
22064         auto-increment for general-purpose registers.
22065         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
22066         result.
22067         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
22068         for stack adjust.
22069         * config/sh/sh.c (sh_builtin_saveregs): Support using all
22070         registers for varargs.
22071         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
22072         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
22073         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
22074         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
22075         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
22076         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
22077         call_cookie accordingly.
22078         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
22079         (SHCOMPACT_BYREF): Likewise.
22080         (SHCOMPACT_FORCE_ON_STACK): New macro.
22081         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
22082         (sh_builtin_saveregs): Likewise.
22083         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
22084         shcompact_incoming_args): Use new shift values.  Support
22085         sequences of consecutive and non-consecutive pushes/pops.
22086         * config/sh/sh.md (return): Don't explicitly use PR_REG.
22087         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
22088         * config/sh/sh.h (TEXT_SECTION): Define.
22089         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
22090         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
22091         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
22092         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
22093         return values on FPU-enabled SHmedia.
22094         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
22095         FPU-enabled SHmedia.
22096         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
22097         value is returned in a non-FP reg and is not returned by
22098         reference.
22099         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
22100         jump_ind.
22101         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
22102         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
22103         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
22104         quad-aligned to be passed by callee-copy reference.
22105         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
22106         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
22107         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
22108         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
22109         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
22110         copying low-numbered FP regs to r7 and r8.
22111         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
22112         FP regs to general-purpose regs only if the copy was passed on the
22113         stack.
22114         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
22115         copying FP reg to r9.
22116         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
22117         copy FP regs to general-purpose regs only in outgoing calls.
22118         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
22119         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
22120         HOST_WIDE_INT.
22121         * config/sh/sh.h (struct sh_args): Document all fields.
22122         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
22123         passed partially on the stack should not consider making
22124         sibcalls.
22125         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
22126         stack_regs only for incoming calls.  When passing FP args,
22127         make sure there are FP regs available before modifying
22128         call_cookie.
22129         (SHCOMPACT_BYREF): Pass double args in general-purpose
22130         registers by reference.
22131         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
22132         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
22133         attempt to generate sibcalls if the caller got any arguments
22134         by reference.
22135         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
22136         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
22137         to 8-byte boundaries.
22138         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
22139         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
22140         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
22141         stored in the stack.
22142         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
22143         for the offsets to have the ISA bit set.
22144         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
22145         invocation.  Use beq instead of bgt to mark end of sequence of
22146         loads.
22147         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
22148         bgt to mark end of sequence of stores.
22149         * config/sh/sh.c (arith_operand): Don't check whether
22150         CONST_OK_FOR_J for now.
22151         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
22152         instead of long for conversion.
22153         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
22154         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
22155         before passing it to fprintf.
22156         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
22157         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
22158         Call set_fpscr before reading/writing SR.
22159         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
22160         Call set_fpscr.
22161         * config/sh/lib1funcs.asm: Add `.align 2' directives before
22162         SHmedia code.
22163         (FMOVD_WORKS): Define on SH5 with FPU.
22164         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
22165         setting.
22166         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
22167         _fpscr_values.
22168         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
22169         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
22170         address.
22171         (ia_main_table): Ditto.
22172         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
22173         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
22174         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
22175         the definitions from sh.h.
22176         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
22177         TARGET_SH5.
22178         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
22179         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
22180         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
22181         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
22182         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
22183         Increment LABEL_NUSES.
22184
22185         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
22186         TARGET_SH5.
22187         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
22188         defined.
22189         * config/sh/elf.h (SIZE_TYPE): Likewise.
22190         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
22191         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
22192         shcompact_incoming_args): Load switch table addresses using
22193         datalabel.
22194         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
22195         (NO_BUILTIN_SIZE_TYPE): Define.
22196         (SIZE_TYPE): Don't define.
22197         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
22198         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
22199         definition of __SH5__=32 for -m5-compact-nofpu.
22200         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
22201         ADDR_DIFF_VEC.
22202         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
22203         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
22204         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
22205         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
22206         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
22207         (INSN_LENGTH_ALIGNMENT): Likewise.
22208         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
22209         * config/sh/sh.md (call, call_value, sibcall): Simplify
22210         copying of non-branch-target register.
22211         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
22212         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
22213         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
22214         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
22215         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
22216         floating-point values as structs.
22217         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
22218         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
22219         general-purpose register.
22220         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
22221         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
22222         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
22223         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
22224         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
22225         (ENCODE_SECTION_INFO): Enclose variables and constants in
22226         DATALABEL unspecs.
22227         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
22228         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
22229         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
22230         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
22231         only for LABEL_REFs.  For SYMBOL_REFs, prepend
22232         SH_DATALABEL_ENCODING to the symbol name.
22233         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
22234         convert_mode().
22235         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
22236         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
22237         UNSPEC_DATALABEL.
22238         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
22239         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
22240         (DATALABEL_REF_P): Don't require CONST.
22241         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
22242         REL label.
22243         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
22244         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
22245         right.
22246         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
22247         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
22248         Use shallow_copy_rtx and PUT_MODE to change the mode of
22249         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
22250         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
22251         on SHmedia using GENERAL_REGs.
22252         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
22253         bltu_media_i): Fix reversion of conditions.
22254         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
22255         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
22256         * config/sh/sh.c (output_far_jump): Save r13 in macl.
22257         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
22258         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
22259         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
22260         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
22261         (GCC_nested_trampoline): Likewise.
22262         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
22263         * config/sh/sh.c (gen_datalabel_ref): Define.
22264         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
22265         (INITIALIZE_TRAMPOLINE): Likewise.
22266         (TRAMPOLINE_ADJUST_ADDRESS): Define.
22267         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
22268         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
22269         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
22270         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
22271         (ic_invalidate): Adjust for SH5.
22272         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
22273         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
22274         _nested_trampoline.
22275         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
22276         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
22277         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
22278         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
22279         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
22280         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
22281         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
22282         * config/sh/sh.c (target_reg_operand): Match only target-branch
22283         registers and pseudos that aren't virtual registers.
22284         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
22285         Copy operands that don't match target_reg_operand to pseudos.
22286         (call_media, call_value_media, sibcall_media): Use
22287         target_reg_operand instead of target_operand.
22288         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
22289         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
22290         * config/sh/sh.c (target_reg_operand): Match hardware registers
22291         other than branch-target registers.
22292         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
22293         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
22294         (fpscr_values) [SH5 == 32]: Define.
22295         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
22296         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
22297         Handle function addresses coming in SUBREGs.
22298         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
22299         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
22300         shcompact_return_trampoline): Use datalabel where appropriate.
22301         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
22302         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
22303         general-purpose register to copy one branch-target register to
22304         another.
22305         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
22306         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
22307         SYMBOL_REFs with VOIDmode.
22308         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
22309         bltu_media_i): New insns.
22310         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
22311         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
22312         (INIT_CUMULATIVE_ARGS): Likewise.
22313         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
22314         * machmode.def (V16SFmode): New mode.
22315         * c-common.c (type_for_mode): Support V2SF and V16SF.
22316         * tree.c (build_common_tree_nodes_2): Likewise.
22317         * tree.h (tree_index): Likewise.
22318         * calls.c (emit_call_1): Take args_so_far.  Adjust all
22319         callers.  Introduce CALL_POPS_ARGS.
22320         * tm.texi (CALL_POPS_ARGS): Document.
22321         * config/sh/crt1.asm: Implement in SHmedia mode.
22322         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
22323         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
22324         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
22325         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
22326         Implement divsi and udivsi in SHmedia mode.  Introduce
22327         SHcompact trampolines.
22328         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
22329         only in SHmedia64.
22330         (regno_reg_class): Rewrite.
22331         (fp_reg_names): Remove.
22332         (sh_register_names, sh_additional_register_names): New.
22333         (print_operand): Added `u'.  Support SUBREGs in addresses.
22334         Add parentheses around shifted CONSTs.
22335         (output_file_start): Output .mode and .abi directives.
22336         (shiftcosts, addsubcosts, multcosts): Adjust.
22337         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
22338         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
22339         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
22340         bytes, not registers.  Take into account the need for the
22341         SHcompact incoming args trampoline.  Adjust all callers.
22342         (sh_expand_prologue): Take stack_regs into account.  Call
22343         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
22344         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
22345         stack aligned as per SH5 ABI.
22346         (sh_builtin_saveregs): Support SH5 ABI.
22347         (sh_build_va_list, sh_va_start): Likewise.
22348         (initial_elimination_offset): Take alignment into account.
22349         Compute location of PR according to the SH5 stack frame.
22350         (arith_reg_operand): Reject branch-target registers.
22351         (shmedia_6bit_operand): New.
22352         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
22353         (target_reg_operand): Match DImode only.  Accept SUBREGs.
22354         (target_operand): New.
22355         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
22356         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
22357         SIBCALL_REGS for SHmedia.
22358         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
22359         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
22360         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
22361         (TARGET_SWITCHES): New SH5 flags.
22362         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
22363         VALID_REGISTER_P to disable unsupported registers.
22364         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
22365         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
22366         (FUNCTION_ARG_PADDING): Define.
22367         (FASTEST_ALIGNMENT): Adjust.
22368         (SH_REGISTER_NAMES_INITIALIZER): New.
22369         (sh_register_names): Declare.
22370         (DEBUG_REGISTER_NAMES): Define.
22371         (REGISTER_NAMES): Define based on sh_register_names.
22372         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
22373         (sh_additional_register_names): Declare.
22374         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
22375         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
22376         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
22377         (REGISTER_NATURAL_MODE): Define.
22378         (FIRST_PSEUDO_REGISTER): Adjust.
22379         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
22380         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
22381         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
22382         (VECTOR_MODE_SUPPORTED_P): Define.
22383         (REG_CLASS_CONTENTS): Adjust.
22384         (SMALL_REGISTER_CLASSES): Adjust.
22385         (REG_ALLOC_ORDER): Adjust.
22386         (INDEX_REG_CLASS): Adjust.
22387         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
22388         (CONST_OK_FOR_LETTER_P): Adjust.
22389         (PREFERRED_RELOAD_CLASS): Adjust.
22390         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
22391         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
22392         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
22393         (FIRST_FP_PARM_REG): Adjust.
22394         (CALL_POPS_ARGS): Define.
22395         (FUNCTION_ARG_REGNO_P): Adjust.
22396         (struct sh_args): New fields.
22397         (GET_SH_ARG_CLASS): Adjust.
22398         (INIT_CUMULATIVE_ARGS): Adjust.
22399         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
22400         (FUNCTION_ARG_ADVANCE): Adjust.
22401         (FUNCTION_ARG): Adjust.
22402         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
22403         (FUNCTION_ARG_CALLEE_COPIES): Define.
22404         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
22405         (STRICT_ARGUMENT_NAMING): Define.
22406         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
22407         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
22408         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
22409         (SETUP_INCOMING_VARARGS): Adjust.
22410         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
22411         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
22412         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
22413         (SUBREG_OK_FOR_INDEX_P): Adjust.
22414         (EXTRA_CONSTRAINT_S): Update.
22415         (EXTRA_CONSTRAINT_T): New.
22416         (EXTRA_CONSTRAINT): Adjust.
22417         (GO_IF_LEGITIMATE_INDEX): Adjust.
22418         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
22419         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
22420         (MOVE_MAX): Adjust.
22421         (MAX_MOVE_MAX): Define.
22422         (Pmode): Adjust.
22423         (CONST_COSTS): Adjust.
22424         (REGISTER_MOVE_COST): Adjust.
22425         (BRANCH_COST): Adjust.
22426         (TEXT_SECTION_ASM_OP): Adjust.
22427         (DBX_REGISTER_NUMBER): Adjust.
22428         (ASM_OUTPUT_DOUBLE_INT): New.
22429         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
22430         (PREDICATE_CODES): Adjust.
22431         (PROMOTE_MODE): Adjust.
22432         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
22433         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
22434         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
22435         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
22436         (DR0_REG, DR2_REG, DR4_REG): Renumber.
22437         (TR0_REG, TR1_REG, TR2_REG): New.
22438         (XD0_REG): Renumber.
22439         (UNSPEC_COMPACT_ARGS): New.
22440         (type): Added pt and ptabs.
22441         (length): Default to 4 on SHmedia.  Default pt length to 12
22442         and     20 on SHmedia32 and SHmedia64, respectively.
22443         (pt): New function unit.
22444         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
22445         Add whitespace between operands of SHmedia instructions.
22446         (movdicc): Fix.
22447         (adddi3_media, addsi3_media): Adjust constraints.
22448         (subsi3) [SHmedia]: Force operand 1 into a register.
22449         (udivsi3_i1_media, udivsi3_i4_media): New.
22450         (udivsi3): Support SHmedia.
22451         (divsi3_i1_media, divsi3_i4_media): New.
22452         (divsi3): Support SHmedia.
22453         (anddi3, iordi3, xordi3): Adjust constraints.
22454         (zero_extendhidi2, zero_extendqidi2): New.
22455         (extendsidi2, extendhidi2, extendqidi2): New.
22456         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
22457         (pop_e, pop_fpul, pop_4): Likewise.
22458         (movsi_media): Support FP and BT registers.
22459         (movsi_media_nofpu): New.  Adjust splits to DImode.
22460         (lduw, ldub): Renamed to zero_extend* above.
22461         (movqi_media): Fix typo.
22462         (movdi_media): Support FP and BT registers.
22463         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
22464         (movdi_const_32bit): New.
22465         (shori_media): Require immediate operand.  Use `u' for output.
22466         (movdf_media, movsf_media): Simplified.
22467         (movdf_media_nofpu, movsf_media_nofpu): New.
22468         (movdf, movsf): Adjust
22469         (movv2sf, movv2sf, movv16sf): New.
22470         (beq_media, beq_media_i): Adjust constraints.  Don't use
22471         scratch BT register.
22472         (bne_media, bne_media_i): Likewise.
22473         (bgt_media, bgt_media_i): Likewise.
22474         (bge_media, bge_media_i): Likewise.
22475         (bgtu_media, bgtu_media_i): Likewise.
22476         (bgeu_media, bgeu_media_i): Likewise.
22477         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
22478         bunordered): Emit jump insn.  Force operands to registers when
22479         needed.
22480         (jump_media, jump): Simplify.
22481         (call_compact, call_compact_rettramp): New.
22482         (call_value_compact, call_value_compact_rettramp): New.
22483         (call_media, call_value_media): Simplify.
22484         (sibcall_compact, sibcall_media): New.
22485         (call, call_value): Adjust for SHmedia and SHcompact.
22486         (sibcall, sibcall_value, untyped_call): Likewise.
22487         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
22488         (indirect_jump): Adjust for SHmedia.
22489         (casesi_jump_media): New.
22490         (nop): Re-enable for SHmedia.
22491         (call_site): Restrict to SH1.
22492         (casesi): Adjust for SHmedia.
22493         (casesi_shift_media, casesi_load_media): New.
22494         (return): Explicitly use PR register.  Call return trampoline
22495         on SHcompact.
22496         (return_i): Explicitly use PR register.
22497         (shcompact_return_tramp, shcompact_return_tramp_i): New.
22498         (return_media): Adjust.
22499         (shcompact_incoming_args): New.
22500         (epilogue): Adjust.
22501         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
22502         (movstrsi): Disable on SH5.
22503         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
22504         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
22505         (subsf3, subsf3_media): Likewise.
22506         (mulsf3, mulsf3_media, mac_media): Likewise.
22507         (divsf3, divsf3_media): Likewise.
22508         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
22509         (floatsisf2, fux_truncsfsi2): Likewise.
22510         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
22511         constraints.
22512         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
22513         (cmpunsf_media, cmpsf): Likewise.
22514         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
22515         (abssf2, abssf2_media): Likewise.
22516         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
22517         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
22518         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
22519         (floatsidf2, fix_truncdfsi2): Likewise.
22520         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
22521         constraints.
22522         (cmpeqdf_media, cmpgtdf_media): Likewise.
22523         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
22524         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
22525         (absdf2, absdf2_media): Likewise.
22526         (extendsfdf2, extendsfdf2_media): Likewise.
22527         (truncsfdf2, truncsfdf2_media): Likewise.
22528         * config/sh/sh64.h: New file.
22529         * config/sh/t-sh64: New file.
22530         * config/sh/shmedia.h: New file.
22531         * config/sh/ushmedia.h: New file.
22532         * config/sh/sshmedia.h: New file.
22533         * configure.in: Added sh64-*-elf.
22534         * configure: Rebuilt.
22535         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
22536         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
22537         (reg_class_from_letter): Use `b' for TARGET_REGS.
22538         (print_operand): Support `%M', `%m', `AND' and
22539         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
22540         (andcosts): Adjust for SHmedia.
22541         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
22542         Likewise.
22543         (target_reg_operand): New function.
22544         * config/sh/sh-protos.h (target_reg_operand): Declare.
22545         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
22546         FP registers on SH5.
22547         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
22548         on SH4.
22549         (TARGET_REGISTER_P): New macro.
22550         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
22551         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
22552         (EXTRA_CONSTRAINT_S): New macro.
22553         (EXTRA_CONSTRAINT): Adjust.
22554         (FLOAT_TYPE_SIZE): Define to 32.
22555         (Pmode): DImode on SHmedia.
22556         (CONST_COSTS): Adjust for SHmedia literals.
22557         (PREDICATE_CODES): Added target_reg_operand.
22558         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
22559         * config/sh/sh.md: Remove all attrs from SHmedia insns.
22560         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
22561         (cmpdi): Accept SHmedia.
22562         (movdicc_false, movdicc_true): New insns.
22563         (movdicc): New expand.
22564         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
22565         no_new_pseudos.
22566         (addsi3_media): Match `S' constraint.
22567         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
22568         (negdi2): Expand for SHmedia.
22569         (one_cmpldi2): New expand.
22570         (zero_extendsidi2): Change from expand to insn.
22571         (extendsidi2): Add constraints.
22572         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
22573         LD/ST address.  Fix SI immediate loading split.
22574         (movhi_media, movqi_media, lduw, ldub): New insns.
22575         (movhi, movqi): Accept SHmedia.
22576         (shori_media, movdi_media): Relax input constraints.  Split
22577         symbolic constants.
22578         (movdf_media, movsf_media): New insn.  New split to movdi.
22579         (movdf, movsf): Match on SHmedia.
22580         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
22581         bgeu_media): New insns and splits.  New insns with `_i' suffix.
22582         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
22583         (bunordered): New expand.
22584         (jump_compact): Renamed from `jump'.
22585         (jump_media): New insn.
22586         (jump): New expand.
22587         (call_media, call_value_media): New insns.
22588         (call, call_value): Adjust.
22589         (indirect_jump_compact): Renamed from `indirect_jump'.
22590         (indirect_jump_media): New insn.
22591         (indirect_jump): New expand.
22592         (untyped_call, return): Accept SHmedia.
22593         (return_media): New insn.
22594         (prologue, epilogue, blockage): Accept SHmedia.
22595         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
22596         (sunordered): New expand.
22597         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
22598         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
22599         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
22600         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
22601         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
22602         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
22603         abssf2_media): New insns.
22604         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
22605         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
22606         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
22607         floatdidf2, floatsidf2_media, fix_truncdfdi2,
22608         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
22609         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
22610         absdf2_media): New insns.
22611         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
22612         (extendsfdf2_media, truncdfsf2_media): New insns.
22613         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
22614         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
22615         * config/sh/sh.h (CONST_OK_FOR_J): Document.
22616         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
22617         * config/sh/sh.md (adddi3): New expand.
22618         (adddi3_media, adddi3z_media): New insns.
22619         (adddi3_compact): Renamed from adddi3.
22620         (addsi3_media): Use add.l r63 to add constant zero.
22621         (subdi3): New expand.
22622         (subdi3_media): New insn.
22623         (subdi3_compact): Renamed from subdi3.
22624         (mulsidi3): New expand.
22625         (mulsidi3_media): New insn.
22626         (mulsidi3_compact): Renamed from mulsidi3.
22627         (umulsidi3): New expand.
22628         (umulsidi3_media): New insn.
22629         (umulsidi3_compact): Renamed from umulsidi3.
22630         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
22631         (ashlsi3, ashrsi3, lshrsi3): Use them.
22632         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
22633         (ashldi3, ashrdi3, lshrdi3): Use them.
22634         (zero_extendsidi2): New expand.
22635         (extendsidi2): New insn.
22636         (movsi_media): New insn.  Split to movdi to load constants.
22637         (movsi): Enable for shmedia.
22638         (movdi_media): New insn.  Use shori_media to load wide constants.
22639         (short_media): New insn.
22640         (movdi): Enable for shmedia.
22641         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
22642         * config/sh/sh.h (CPP_SPEC): Added `m5'.
22643         (SUBTARGET_CPP_SPEC): Added `!m5'.
22644         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
22645         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
22646         to all other SH variants.
22647         (TARGET_DEFAULT): Set to SH1_BIT.
22648         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
22649         (BITS_PER_WORD): Raise to 64 on shmedia.
22650         (MAX_BITS_PER_WORD): Change to 64.
22651         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
22652         (INT_TYPE_SIZE): Keep as 32.
22653         (UNITS_PER_WORD): Raise to 8 on shmedia.
22654         (MIN_UNITS_PER_WORD): Keep as 4.
22655         (POINTER_SIZE): Raise to 64 on shmedia.
22656         (CONST_OK_FOR_J): New macro.
22657         (CONST_OK_FOR_LETTER_P): Use it.
22658         (processor_type): Add PROCESSOR_SH5.
22659         * config/sh/sh.md: Conditionalize all expands, insns and
22660         splits to TARGET_SH1.
22661         (cpu): Added sh5.
22662         (addsi3_compact): Renamed from...
22663         (addsi3): Now an expand.
22664         (addsi3_media, subsi3_media): New insns.
22665         (subsi3): Don't negate constants with SHmedia.
22666
22667         * hooks.c: New file.
22668         * hooks.h: New file.
22669         * Makefile.in (HOOKS_H): New.
22670         (TARGET_DEF_H): Added $(HOOKS_H).
22671         (OBJS): Added hooks.o.
22672         (cfgcleanup.o, bb-reorder.o): Added target.h.
22673         (hooks.o): Added dependencies.
22674         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
22675         (TARGET_INITIALIZER): this.
22676         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
22677         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
22678         * bb-reorder.c: Include target.h.
22679         (reorder_basic_blocks): Skip if cannot modify jumps.
22680         * cfgcleanup.c: Include target.h.
22681         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
22682
22683 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
22684
22685         * config/mips/mips.md (casesi_internal, casesi_internal_di):
22686         Protect jump delay slot instructions with .set noreorder and
22687         .set nomacro.
22688
22689 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
22690
22691         * config/mips/mips.md (casesi_internal_di): Calculate
22692         the index into the target offset table correctly.
22693
22694 2002-02-08  Richard Henderson  <rth@redhat.com>
22695
22696         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
22697         * final.c (output_addr_const): Accept and discard SUBREG.
22698         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
22699         mark them unknown instead.
22700         (simplify_subtraction): Handle RTX_UNKNOWN.
22701         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
22702
22703 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
22704
22705         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
22706
22707 2002-02-08  Richard Henderson  <rth@redhat.com>
22708
22709         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
22710
22711 2002-02-08  Andreas Jaeger  <aj@suse.de>
22712
22713         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
22714         * config/i386/t-linux64: New file.
22715
22716 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
22717
22718         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
22719         * c-parse.in (compstmt): Clear last_expr_type.
22720
22721 2002-02-07  Richard Henderson  <rth@redhat.com>
22722
22723         * loop.c (strength_reduce): Sink final_value when not
22724         eliminating a biv.
22725
22726 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
22727
22728         * config/sparc/freebsd.h: Fix mismatched spec {.
22729
22730 2002-02-07  Richard Henderson  <rth@redhat.com>
22731
22732         * cfgrtl.c: Include recog.h and insn-config.h.
22733         (keep_with_call_p): Fix general_operand invocation.
22734         * Makefile.in (cfgrtl.o): Update dependencies.
22735
22736 2002-02-07  Kazu Hirata  <kazu@hxi.com>
22737
22738         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
22739         comment.  Accept HImode only if TARGET_H8300.
22740
22741 2002-02-07  Eric Christopher  <echristo@redhat.com>
22742
22743         * config/mips/crtn.asm: Cleanup #ifdefs.
22744
22745 2002-02-07  Eric Christopher  <echristo@redhat.com>
22746
22747         * config/mips/crti.asm: Add changes for mips16. mips16 uses
22748         register 7 as RA instead of $31.
22749         * config/mips/crtn.asm: Ditto.
22750         * config/mips/mips.c (mips_move_2words): Add case for
22751         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
22752         (compute_frame_size): Fix typo.
22753         (save_restore_insns): Ditto.  Make documentation about using
22754         register $7 as return register more precise.
22755         (mips_expand_epilogue): Fix comment. Add code to work around not
22756         being able to add to the stack pointer directly.
22757         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
22758         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
22759         epilogue.
22760
22761 2002-02-07  Tom Rix  <trix@redhat.com>
22762
22763         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
22764         immediates in ldu and stdu DS opcode field.
22765         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
22766         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
22767         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
22768
22769 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
22770
22771         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
22772         offset for stack bias.
22773
22774 2002-02-07  H.J. Lu <hjl@gnu.org>
22775
22776         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
22777
22778 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
22779
22780         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
22781
22782 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
22783
22784         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
22785         * i386.c (x86_order_regs_for_local_alloc): New global function.
22786         * i386.h (REG_ALLOC_ORDER): CLeanup.
22787         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
22788
22789 2002-02-07  Richard Henderson  <rth@redhat.com>
22790
22791         PR optimization/2463
22792         * alias.c (find_base_value): Recall base values for fixed hard regs.
22793         * loop.c (loop_regs_update): Don't use single_set on non-insns.
22794
22795 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
22796
22797         * config/mips/mips.md (define_delay) [mips16]: Adjust required
22798         length.
22799
22800 2002-02-06  Richard Henderson  <rth@redhat.com>
22801
22802         PR c/5609
22803         * stmt.c (resolve_operand_name_1): Take more care with mixed
22804         named and unnamed operands.
22805
22806 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
22807             Jan Hubicka  <jh@suse.cz>
22808
22809         * loop.c (remove_constant_addition): Avoid clobbering a shared
22810         CONST expression.
22811
22812 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
22813
22814         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
22815         * config/s390/t-linux64: New file.
22816         * config/s390/libgcc-glibc.ver: New file.
22817
22818 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
22819
22820         * config/s390/linux64.h: Delete file.
22821         * config/s390/s390x.h: New file.
22822         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
22823         as target header file.
22824         * config/s390/linux.h (TARGET_VERSION): Define depending on
22825         DEFAULT_TARGET_64BIT.
22826         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
22827         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
22828         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
22829         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
22830         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
22831         (EXTRA_SPEC): New define.
22832         * config/s390/s390.h (TARGET_VERSION): Define depending on
22833         DEFAULT_TARGET_64BIT.
22834         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
22835
22836 2002-02-06  Jason Merrill  <jason@redhat.com>
22837
22838         * c-decl.c (finish_function): Warn about a non-void function with
22839         no return statement and no abnormal exit.
22840         (current_function_returns_abnormally): New variable.
22841         (start_function): Clear it.
22842         (struct c_language_function): Add returns_abnormally.
22843         (push_c_function_context): Save it.
22844         (pop_c_function_context): Restore it.
22845         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
22846         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
22847         an explicit return type.
22848         * c-tree.h: Declare current_function_returns_abnormally.
22849         (C_FUNCTION_IMPLICIT_INT): New macro.
22850         * c-typeck.c (build_function_call): Set it.
22851         (c_expand_return): Set current_function_returns_value even if the
22852         value is erroneous.
22853
22854 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
22855
22856         PR c/5420:
22857         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
22858         unsafe for reevaluation.
22859
22860 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
22861
22862         PR c/5482:
22863         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
22864         EXPR_STMT, but COMPOUND_STMT, recurse into it.
22865
22866 2002-02-06  Richard Henderson  <rth@redhat.com>
22867
22868         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
22869         be a general_operand.  Dest for function value must be a pseudo.
22870
22871 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
22872
22873         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
22874         as SYMBOL_REFs from the constant pool.
22875
22876 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
22877
22878         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
22879         passed by invisible reference.
22880
22881 2002-02-05  Richard Henderson  <rth@redhat.com>
22882
22883         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
22884
22885 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
22886
22887         Implement using "base addresses" in insn operands as default.
22888         * config/mmix/mmix.c (mmix_conditional_register_usage): if
22889         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
22890         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
22891         used to read the rtx value.
22892         (mmix_target_asm_function_epilogue): Fix spacing.
22893         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
22894         (mmix_legitimate_address): Ditto.
22895         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
22896         should be loaded with a GETA insn.  Don't allocate needless extra
22897         char for nul termination and fix misleading comment.
22898         (mmix_print_operand_address): Handle constants if
22899         TARGET_BASE_ADDRESSES.
22900         (mmix_output_register_setting): Use base addressing if
22901         TARGET_BASE_ADDRESSES and the number of insns is 3.
22902         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
22903         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
22904         to use R as constraint, add LDA to match s.
22905         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
22906         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
22907         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
22908         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
22909         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
22910         order with other fixed registers.
22911         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
22912         other parameter/call-clobbered registers.
22913         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
22914         -mbase-addresses, -mno-base-addresses.
22915         (MMIX Options): Ditto.
22916
22917 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
22918
22919         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
22920
22921 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
22922
22923         * config/rs6000/altivec.h: Change elem to _S_elem.
22924
22925 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
22926
22927         * config/netbsd.h (WCHAR_TYPE): Define.
22928         (WCHAR_TYPE_SIZE): Ditto.
22929         (WINT_TYPE): Ditto.
22930         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
22931         (WCHAR_UNSIGNED): Ditto.
22932         (WCHAR_TYPE_SIZE): Ditto.
22933         (WINT_TYPE): Ditto.
22934         * config/arm/netbsd.h: Likewise.
22935         * config/i386/netbsd-elf.h: Likewise.
22936         * config/i386/netbsd.h: Likewise.
22937         * config/m68k/netbsd-elf.h: Likewise.
22938         * config/m68k/netbsd.h: Likewise.
22939         * config/ns32k/netbsd.h: Likewise.
22940         * config/sparc/netbsd.h: Likewise.
22941         * config/vax/netbsd.: Likewise.
22942
22943 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
22944
22945         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
22946         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
22947         (TARGET_INITIALIZER): this.
22948         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
22949         (BITFIELD_NBYTES_LIMITED): Markup fix.
22950         * tree.h (default_ms_bitfield_layout_p): Declare.
22951         (record_layout_info): Added prev_field.
22952         * tree.c (default_ms_bitfield_layout_p): New fn.
22953         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
22954         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
22955         * stor-layout.c: Include target.h.
22956         (start_record_layout): Initialize prev_field.
22957         (place_field): Handle MS bit-field layout, and disregard
22958         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
22959         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
22960         * Makefile.in (stor-layout.o): Adjust dependencies.
22961
22962 2002-02-05  Jason Merrill  <jason@redhat.com>
22963
22964         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
22965
22966 2002-02-05  Andreas Jaeger  <aj@suse.de>
22967
22968         * crtstuff.c: Fix comments.
22969
22970 2002-02-05  Richard Henderson  <rth@redhat.com>
22971
22972         PR fortran/3393
22973         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
22974         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
22975
22976         PR fortran/3392
22977         * config/mips/mips.c (function_arg): Handle TImode.
22978         (function_arg_advance): Likewise.
22979
22980 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
22981
22982         * config/rs6000/altivec.h (vec_step_help): Rename to
22983         __vec_step_help.
22984
22985 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
22986
22987         * config/rs6000/altivec.h: Fix typos.
22988
22989 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
22990
22991         * config/arm/netbsd.h: Correct a comment.
22992
22993 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
22994
22995         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
22996         building void typed builtins.
22997
22998         * config/rs6000/altivec.h (vec_ld*): Fix typos.
22999         (vec_step): Implement for C++.
23000
23001 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23002
23003         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
23004
23005 2002-02-04  Richard Henderson  <rth@redhat.com>
23006
23007         * combine.c (nonzero_bits): Re-introduce special case for
23008         sp/fp/ap wrt REGNO_POINTER_ALIGN.
23009
23010 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
23011
23012         * doc/extend.texi: Warn about unsupported usage of altivec
23013         builtins.
23014
23015         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
23016         (altivec_predicate_*): New.
23017
23018         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
23019         Add C++ version of vec_*() functions.
23020
23021         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
23022         (bdesc_2arg): Remove altivec predicates.
23023         (altivec_expand_builtin): Handle predicates.
23024         (altivec_init_builtins): Handle predicates.
23025         (altivec_expand_predicate_builtin): New.
23026
23027 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23028
23029         * pa.c (DO_FRAME_NOTES): Move forward.
23030         (store_reg): Revise handling of frame notes.
23031         (load_reg): Likewise.
23032         (set_reg_plus_d): Likewise.
23033         (hppa_expand_prologue): Likewise.
23034         (hppa_expand_epilogue): Likewise.
23035
23036 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23037
23038         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
23039
23040 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
23041
23042         PR c/4475, c++/3780:
23043         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
23044         * c-common.h (SWITCH_TYPE): Define.
23045         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
23046         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
23047         Rename spareness variable to sparseness.
23048         (expand_end_case_type): Renamed from expand_end_case, use orig_type
23049         if non-NULL instead of TREE_TYPE (orig_index).
23050         * tree.h (expand_end_case_type): Renamed from expand_end_case.
23051         (expand_end_case): Define using expand_end_case_type.
23052         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
23053         to expand_end_case_type.
23054         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
23055
23056 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23057
23058         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
23059         (BIGGEST_ALIGNMENT): Change to 128.
23060
23061 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23062
23063         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
23064
23065 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23066
23067         * pa.md (call_internal_reg_64bit): Remove unused variable.
23068
23069 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
23070
23071         * config/arm/arm.h (machine_function): Add uses_anonymous_args
23072         field.
23073         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
23074         * config/arm/arm.c (current_function_anonymous_args): Delete,
23075         replace uses with cfun->machine->uses_anonymous_args.
23076         (arm_reorg): Do not reset uses_anonymous_args.
23077
23078         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
23079         any geenral register.
23080
23081 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
23082
23083         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
23084         the entry block.
23085
23086 2002-02-04  Richard Henderson  <rth@redhat.com>
23087
23088         * combine.c (force_to_mode): Remove STACK_BIAS code.
23089         (nonzero_bits): Likewise.  Replace sp/fp special case with
23090         REGNO_POINTER_ALIGN.
23091
23092         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
23093         (HARD_FRAME_POINTER_REGNUM): New.
23094         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
23095         (FIXED_REGS, CALL_USED_REGS): Update.
23096         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
23097         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
23098         (HARD_REGNO_NREGS): Update for SFP.
23099         (STACK_POINTER_OFFSET): Include bias here ...
23100         (FIRST_PARM_OFFSET): ... not here.
23101         (STACK_BIAS): Remove.
23102         (INIT_EXPANDERS): New.
23103         (STARTING_FRAME_OFFSET): Do not include bias.
23104         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
23105         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
23106         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
23107         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
23108         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
23109         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
23110         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
23111         (MUST_SAVE_REGISTER): Likewise.
23112         (sparc_flat_function_prologue): Likewise.
23113         (sparc_flat_function_epilogue): Likewise.
23114         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
23115         (sparc_init_modes): SFP is GENERAL_REGS.
23116         (sparc_builtin_saveregs): SFP does not have bias applied.
23117
23118 2002-02-04  Richard Henderson  <rth@redhat.com>
23119
23120         * config/alpha/alpha.c (current_function_is_thunk): Don't check
23121         current_function_is_thunk.
23122         (alpha_sa_mask): Distinguish between current_function_is_thunk
23123         called from ASM_OUTPUT_MI_THUNK and not.
23124         (alpha_does_function_need_gp): Thunks always need gp.
23125         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
23126         (alpha_output_mi_thunk_osf): New.
23127         * config/alpha/alpha-protos.h: Update.
23128         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
23129
23130 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
23131
23132         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
23133         function types, not when they're taken away.
23134
23135 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
23136
23137         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
23138         CODE_LABEL and jump table when replacing a table jump with a
23139         simple jump.
23140
23141 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
23142
23143         * config/s390/s390-protos.h (legitimize_la_operand,
23144         s390_secondary_input_reload_class, s390_plus_operand,
23145         s390_expand_plus_operand): Add prototypes.
23146
23147         config/s390/s390.c (s390_secondary_input_reload_class,
23148         s390_plus_operand, s390_expand_plus_operand): New functions.
23149
23150         (struct s390_address): New member 'pointer'.
23151         (s390_decompose_address): Compute it.
23152         (legitimate_la_operand_p): Use it.
23153         (legitimize_la_operand): New function.
23154         (movti, movdi, movdf splitters): Call it.
23155
23156         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
23157         (PREDICATE_CODES): Add s390_plus_operand.
23158
23159         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
23160         (la_ccclobber): Allow GENERAL_REGS as output operand.
23161
23162         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
23163         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
23164         (*la_64, *la_31, reload_indi, reload_insi): ... these.
23165
23166 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
23167
23168         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
23169         register names for regular asm () construct.
23170
23171 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
23172
23173         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
23174         registers.
23175
23176 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
23177
23178         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
23179         pat for recog.
23180
23181 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
23182
23183         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
23184         constant pool to be identical by string address and index.
23185
23186 2002-02-04  Anthony Green  <green@redhat.com>
23187
23188         * output.h (SECTION_OVERRIDE): Define.
23189         * varasm.c (named_section): Obey SECTION_OVERRIDE.
23190
23191 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
23192
23193         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
23194         by existing arm*-*-netbsd* (a.out) target.
23195         (ns32k-*-netbsdelf*): Likewise.
23196         (sparc-*-netbsdelf*): Likewise.
23197         (vax-*-netbsdelf*): Likewise.
23198
23199 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
23200
23201         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
23202         headers and libobjc headers.
23203
23204 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
23205
23206         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
23207         (_mingw.h): Remove duplicate include.
23208
23209 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
23210
23211         * config.gcc: Set cpu_type to m68k for 68010, as well.
23212         (m68010-*-netbsdelf*): New...
23213         (m68k*-*-netbsdelf*): ...targets.
23214         * config/m68k/netbsd-elf.h: New file.
23215
23216 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23217
23218         * config/h8300/h8300.c (hand_list): Move inside function_arg.
23219
23220 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23221
23222         * config/h8300/h8300.c (h8_push_ops): Move inside
23223         h8300_init_once.
23224         (h8_pop_ops): Likewise.
23225         (h8_move_ops): Likewise.
23226
23227 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23228
23229         * config/h8300/h8300.c (os_task): Make it static.
23230         (monitor): Likewise.
23231         (pragma_saveall): Likewise.
23232
23233 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
23234
23235         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
23236         constant is a valid sign-extension for Pmode.
23237
23238 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23239
23240         * config/h8300/h8300.c: Fix formatting.
23241
23242 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23243
23244         * config/h8300/h8300.md: Fix formatting.
23245
23246 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23247
23248         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
23249         predicates of operands[1].  Split the patterns for each
23250         processor variant.
23251
23252 2002-02-02  Kazu Hirata  <kazu@hxi.com>
23253
23254         * config/h8300/h8300.md (xor patterns): Tighten the predicates
23255         of operands[1] to register_operand.
23256
23257 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
23258
23259         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
23260         * cpphash.c (_cpp_init_hashtable): Similarly.
23261         * cppinit.c (cpp_create_reader): Default the signed_char flag.
23262         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
23263         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
23264         (cpp_handle_option): Handle the new options.
23265         * cpplex.c (cpp_interpret_charconst): Use new flag.
23266         * cpplib.h (struct cpp_options): New member signed_char.
23267         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
23268         (cpp_options): Handle -fsigned-char and -funsigned-char.
23269         (static_specs): Remove signed_char_spec.
23270         (do_spec1): Don't handle %c.
23271         * system.h: Poison SIGNED_CHAR_SPEC.
23272         * tradcif.y (yylex): Use flag_signed_char.
23273         * tradcpp.h (flag_signed_char): New.
23274         * tradcpp.c (flag_signed_char): New.
23275         (main): Handle new command-line options.
23276         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
23277 config:
23278         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
23279         * avr/avr.h: Remove old comments.
23280         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
23281         (CC1_SPEC): Pass -fsigned-char if -mic*.
23282         (SIGNED_CHAR_SPEC): Remove.
23283 doc:
23284         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
23285
23286 2002-02-01  Eric Christopher  <echristo@redhat.com>
23287
23288         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
23289         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
23290         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
23291         (ASM_OUTPUT_REG_POP): Ditto.
23292
23293 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
23294
23295         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
23296         patch.
23297
23298 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
23299
23300         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
23301
23302 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
23303
23304         PR c/5304:
23305         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
23306         unconditionally.
23307
23308 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
23309
23310         * cfganal.c: Include tm_p.h.
23311         (keep_with_call_p): Fix the test that determines if a register holds
23312         the return value of a call.
23313
23314 2002-02-01  DJ Delorie  <dj@redhat.com>
23315
23316         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
23317         we are given conflicting registers, switch to the other one we
23318         had allocated for us.
23319         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
23320         as TImode so we know when the "other" register is available.
23321
23322 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
23323
23324         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
23325         sparc/sparc_bi.h.
23326
23327 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
23328
23329         * cfganal.c (keep_with_call_p): New function.
23330         (flow_call_edges_add): Prevent splitting a block between a call and
23331         a single-set instruction that should be kept in the same block.
23332
23333 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
23334
23335         * doc/install.texi (avr): Update outdated URL.
23336
23337 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
23338
23339         * config/stormy16/stormy16.md (pushqi): New.
23340         (popqi): New.
23341         (pushhi): New.
23342         (pophi): New.
23343         (movhi): Remove stack operands.
23344         (movqi): Likewise.
23345         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
23346         nonimmediate_nonstack_operand.
23347         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
23348         New.
23349         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
23350         New.
23351
23352 2002-01-31  Jason Merrill  <jason@redhat.com>
23353
23354         * Makefile.in (c-parse.c): Handle .output file.
23355         * objc/Make-lang.in (objc-parse.c): Likewise.
23356
23357 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
23358
23359         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
23360         the -me[lb] option is given.  Don't output the default flag
23361         twice.
23362
23363 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
23364
23365         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
23366         the primary source file; this has not been done yet.
23367         * c-decl.c (c_expand_body): Reset input_filename from
23368         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
23369
23370 2002-01-31  Kazu Hirata  <kazu@hxi.com>
23371
23372         * rtlanal.c (subreg_regno_offset): Do not use
23373         SUBREG_REGNO_OFFSET.
23374         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
23375         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
23376
23377 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
23378
23379         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
23380         version rather than GNATS version in --version output.
23381
23382 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
23383
23384         * ifcvt.c (noce_process_if_block): Make a copy of the destination
23385         when copying back from a temporary.
23386
23387 2002-01-30  Richard Henderson  <rth@redhat.com>
23388
23389         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
23390         and new_dest are the same.
23391
23392 2002-01-30  Richard Henderson  <rth@redhat.com>
23393
23394         PR opt/5076
23395         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
23396         * rtl.c (note_insn_name): Update.
23397         * emit-rtl.c (remove_unnecessary_notes): Kill it.
23398         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
23399         to perform loop rotation.
23400         (expand_exit_loop_top_cond): New.
23401         * tree.h (expand_exit_loop_top_cond): Declare it.
23402         * c-semantics.c (genrtl_while_stmt): Use it.
23403         (genrtl_for_stmt): Likewise.
23404
23405 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
23406
23407         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
23408         arguments to 64-bit boundaries on 64-bit ABIs.
23409
23410 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
23411
23412         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
23413
23414 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
23415
23416         * c-decl.c (grokdeclarator): Handle type being a typedef for an
23417         invalid type.
23418
23419 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
23420
23421         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
23422         * config/sparc/sparc_bi.h: Remove file.
23423         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
23424
23425 2002-01-30  Richard Henderson  <rth@redhat.com>
23426
23427         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
23428
23429 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
23430
23431         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
23432
23433 2002-01-30  Jason Merrill  <jason@redhat.com>
23434
23435         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
23436         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
23437         (reg_save): Use DW_CFA_offset_extended_sf instead.
23438
23439         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
23440
23441 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
23442
23443         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
23444         in cselib_lookup.
23445
23446 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
23447
23448         * rs6000.md ("*call_value_local32"): Remove constraints.
23449         ("*call_value_local64"): Same.
23450         ("*call_value_indirect_nonlocal_aix32"): Same.
23451         ("*call_value_nonlocal_aix32"): Same.
23452         ("*call_value_indirect_nonlocal_aix64"): Same.
23453         ("*call_value_nonlocal_aix64"): Same.
23454         ("*call_value_nonlocal_sysv"): Same.
23455
23456 2002-01-29  Richard Henderson  <rth@redhat.com>
23457
23458         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
23459
23460 2002-01-29  Richard Henderson  <rth@redhat.com>
23461
23462         * expr.c (force_operand): Ignore flag_pic for detecting pic
23463         address loads.
23464         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
23465         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
23466         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
23467         instead of open-coded loop.
23468         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
23469         be fixed when in use.
23470
23471 2002-01-29  Richard Henderson  <rth@redhat.com>
23472
23473         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
23474         * sched-rgn.c (propagate_deps): Update them.
23475         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
23476         clobbers list when either gets too long.
23477
23478 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
23479
23480         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
23481         and INDEX_REGS the same as GENERAL_REGS.
23482         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
23483
23484 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
23485
23486         * tree.c (build_nonstandard_integer_type): Correct prototype.
23487
23488 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
23489
23490         * config/s390/s390.md (movstrsico, movstrdix_64,
23491         movstrsix_31): Remove, replace by ...
23492         (movstrdi_short, movstrsi_short, movstrdi_long,
23493         movstrsi_long): ... these.  New.
23494         (movstrdi, movstrsi): Adapt.
23495
23496         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
23497         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
23498         Remove unnecessary CC clobber.
23499         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
23500         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
23501
23502         (divmoddi4): Don't partially initialize TImode register.
23503
23504 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
23505
23506         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
23507
23508 2002-01-29  Richard Henderson  <rth@redhat.com>
23509
23510         * flow.c (print_rtl_and_abort): Remove.
23511         (print_rtl_and_abort_fcn): Remove.
23512         (verify_local_live_at_start): Use dump_bb instead.
23513         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
23514         (verify_wide_reg_1): Return 2 on mode test failure.
23515
23516 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
23517
23518         PR c/3325, c/3326, c/2511, c/3347
23519         * c-decl.c (enum_decl_context): Remove BITFIELD.
23520         (grokdeclarator): Take bitfield width as an input.
23521         Ensure bitfields are given the correct type.  Perform
23522         bitfield width validation with build_bitfield_integer_type
23523         rather than waiting for finish_struct.
23524         (grok_typename, grok_typename_in_parm_context, start_decl,
23525         push_parmdecl, grokfield, start_function): Update calls to
23526         grokdeclarator.
23527         (build_bitfield_integer_type): New function.
23528         (finish_struct): Move bitfield validation to grokdeclarator
23529         and build_bitfield_integer_type.
23530         * tree.c (build_nonstandard_integer_type): New function.
23531         * tree.h (build_nonstandard_integer_type): New prototype.
23532 objc:
23533         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
23534
23535 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
23536
23537         PR other/1502:
23538         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
23539         don't ignore unrecognized -W* options.
23540         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
23541         * cpplib.h (cpp_handle_option): Adjust prototype.
23542         * c-decl.c (c_decode_options): Pass 0 as last argument to
23543         cpp_handle_option.
23544
23545         PR c/2896:
23546         * gcc.c (cpp_unique_options): Split from cpp_options.
23547         (cpp_options): Source cpp_unique_options.
23548         (default_compilers): Use cpp_unique_options instead of cpp_options
23549         when used together with cc1_options.
23550         (static_specs): Add cpp_unique_options.
23551         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
23552         when used together with cc1_options.
23553
23554 2002-01-29  Kazu Hirata  <kazu@hxi.com>
23555
23556         * config/h8300/h8300-protos.h: Update the prototype of
23557         output_a_shift.
23558         * config/h8300/h8300.c (output_a_shift): Remove an unused
23559         argument 'insn'.  Remove redundant code.
23560         * config/h8300/h8300.md: Adust to the new prototype of
23561         output_a_shift.
23562
23563 2002-01-29  Kazu Hirata  <kazu@hxi.com>
23564
23565         * config/h8300/h8300-protos.h: Update the prototypes of
23566         emit_a_rotate and expand_a_rotate.
23567         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
23568         first argument to 'enum rtx_code'.
23569         (expand_a_rotate): Likewise.
23570
23571 2002-01-28  Kazu Hirata  <kazu@hxi.com>
23572
23573         * config/h8300/h8300-protos.h: Update the prototype of
23574         output_simode_bld.
23575         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
23576         'log2'.
23577         * config/h8300/h8300.md: Adjust to the new prototype.
23578
23579 2002-01-28  Kazu Hirata  <kazu@hxi.com>
23580
23581         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
23582         redundant code.
23583
23584 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
23585
23586         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
23587         is a fixed register before returning pic_offset_table_rtx.
23588         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
23589         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
23590
23591 2002-01-28  Jason Merrill  <jason@redhat.com>
23592
23593         * dwarf2.h: Sync with src version.
23594
23595 2002-01-28  Paul Koning  <pkoning@equallogic.com>
23596
23597         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
23598         BT_FN_VOID_PTR_VAR.
23599         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
23600         * doc/extend.texi (__builtin_prefetch): Update documentation:
23601         first argument is now const void ptr.
23602
23603 2002-01-28  Kazu Hirata  <kazu@hxi.com>
23604
23605         * config/h8300/h8300-protos.h: Remove an unused prototype.
23606
23607 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
23608
23609         * toplev.c (lang_independent_init): Round up identifier size.
23610
23611 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
23612
23613         * config.gcc: Revert previous change.
23614
23615 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
23616
23617         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
23618
23619 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
23620
23621         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
23622         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
23623         other non-elf netbsd config frags.
23624         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
23625         collect2 will does that.
23626         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
23627         shared-lib frobbing will work.
23628
23629 2002-01-28  Kazu Hirata  <kazu@hxi.com>
23630
23631         * config/h8300/h8300.h: Fix formatting.
23632         * config/h8300/h8300.md: Likewise.
23633
23634 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
23635
23636         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
23637         the old, removed AAA_standards fix.
23638         * fixinc/fixincl.x: Rebuilt.
23639
23640 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
23641
23642         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
23643         atexit call in crtbegin, hooked in after call to frame_dummy;
23644         register EH before registering __fini__start.
23645
23646 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
23647
23648         * config/rs6000/altivec.h: Remove spurious semicolons.
23649
23650 2002-01-27  Kazu Hirata  <kazu@hxi.com>
23651
23652         * config/h8300/h8300.md: Replace dead bit extraction patterns
23653         with ones that work.
23654
23655 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23656
23657         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
23658         if not STRICT_ALIGNMENT.
23659         * rtl.h (MEM_ALIGN): Likewise.
23660
23661 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
23662
23663         * doc/invoke.texi (-fdump-translation-unit): Revert this
23664         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
23665
23666 2002-01-27  Kazu Hirata  <kazu@hxi.com>
23667
23668         * config/h8300/h8300.md (define_constants): New.
23669         (anonymous patterns) Use defined constants appropriately.
23670
23671 2002-01-27  Kazu Hirata  <kazu@hxi.com>
23672
23673         * config/h8300/h8300.c (function_arg): Remove redundant code.
23674
23675 2002-01-26  Richard Henderson  <rth@redhat.com>
23676
23677         * sched-deps.c (reg_pending_uses_head): New.
23678         (reg_pending_barrier): Rename from reg_pending_sets_all.
23679         (find_insn_list): Don't mark inline.
23680         (find_insn_mem_list): Remove.
23681         (add_dependence_list, add_dependence_list_and_free): New.
23682         (flush_pending_lists): Replace only_write param with separate
23683         for_read and for_write parameters.  Update all callers.  Use
23684         add_dependence_list_and_free.
23685         (sched_analyze_1): Do not add reg dependencies here; just set
23686         the pending bits.  Use add_dependence_list.
23687         (sched_analyze_2): Likewise.
23688         (sched_analyze_insn): Replace schedule_barrier_found with
23689         reg_pending_barrier.  Add all dependencies for pending reg
23690         uses, sets, and clobbers.
23691         (sched_analyze): Don't add reg dependencies for calls, just
23692         set pending bits.  Use regs_invalidated_by_call.  Treat
23693         sched_before_next_call as a normal list, not a fake insn.
23694         (init_deps): No funny init for sched_before_next_call.
23695         (free_deps): Free pending mems lists.  Don't zero reg_last.
23696         (init_deps_global): Init reg_pending_uses.
23697         (finish_deps_global): Free it.
23698         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
23699         (find_insn_mem_list): Remove.
23700         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
23701         (propagate_deps): Use them.  Zero temp mem lists.
23702
23703 2002-01-26  Richard Henderson  <rth@redhat.com>
23704
23705         * Makefile.in (CRTSTUFF_CFLAGS): New.
23706         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
23707         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
23708         crtstuff.c instead of alpha assembly version.
23709         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
23710         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
23711         not FORCE_{INIT,FINI}_SECTION_ALIGN.
23712         (__do_global_dtors_aux): Mark used.
23713         (frame_dummy, __do_global_ctors_aux): Mark used.
23714         (fini_dummy, init_dummy): Remove.
23715
23716         * config/alpha/crtbegin.asm: Remove file.
23717         * config/alpha/crtend.asm: Remove file.
23718         * config/alpha/t-crtbe: Remove file.
23719         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
23720         (LINK_EH_SPEC): New.
23721
23722         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
23723         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
23724         calling constructors.
23725         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
23726
23727         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
23728         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
23729         CRT_END_INIT_DUMMY hack.
23730         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
23731         FORCE_{INIT,FINI}_SECTION_ALIGN.
23732
23733         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
23734         FORCE_{INIT,FINI}_SECTION_ALIGN.
23735
23736         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
23737         invocation sequence.
23738         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
23739
23740         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
23741         (FORCE_CODE_SECTION_ALIGN): New.
23742
23743 2002-01-26  Richard Henderson  <rth@redhat.com>
23744
23745         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
23746
23747 2002-01-26  Richard Henderson  <rth@redhat.com>
23748
23749         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
23750         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
23751
23752 2002-01-26  Kazu Hirata  <kazu@hxi.com>
23753
23754         * config/h8300/h8300.md: Remove bit extraction patterns that
23755         cannot be triggered.
23756         Restrict each bit extraction pattern to a variant on which the
23757         pattern is tested.
23758
23759 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
23760
23761         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
23762
23763 2002-01-26  Kazu Hirata  <kazu@hxi.com>
23764
23765         * config/h8300/h8300.md: Remove bit test patterns that cannot
23766         be triggered.
23767         Restrict each bit test pattern to a variant on which the
23768         pattern is tested.
23769
23770 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
23771
23772         * builtins.c (expand_builtin_strncat): Remove redundant check for
23773         INTEGER_CST.
23774
23775 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
23776
23777         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
23778         default setting.
23779         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
23780         existing setting.
23781
23782 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
23783
23784         * dbxout.c (dbxout_init): Use assemble_name rather than just
23785         stripping off the first character.
23786         (dbxout_source_file): Likewise.
23787
23788 2002-01-25  DJ Delorie  <dj@redhat.com>
23789
23790         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
23791         using rtx_equal_p, not by comparing pointers.
23792
23793 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
23794
23795         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
23796         for PIC_OFFSET_TABLE_REGNUM.
23797         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
23798
23799 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
23800
23801         * config.gcc (x86_64-*-freebsd*): New target.
23802         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
23803         value.
23804         (i[34567]86-*-freebsd*): Don't include svr4.h.
23805         * config/i386/freebsd64.h: New file.
23806
23807 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
23808
23809         * config/alpha/x-vms (version): Make static.
23810
23811         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
23812         in previous checkin.
23813
23814         * Makefile.in (install-headers-cp): New target.
23815         * config.gcc (alpha-dec-*vms*): Install headers with
23816         install-headers-cp
23817
23818 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
23819
23820         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
23821         avoid it's copies.
23822
23823 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
23824
23825         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
23826         of compare_tree_int.
23827         (expand_builtin_strncat): Likewise.
23828         * c-decl.c (finish_struct): Use tree_low_cst.
23829         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
23830         * tree.c (compare_tree_int): Likewise.
23831
23832 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
23833
23834         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
23835         adjustments even if they are implemented by more than two insns.
23836
23837 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
23838
23839         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
23840         * df.h (struct ref): Kill B.
23841         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
23842
23843         * basic-block.h (PROP_EQUAL_NOTES): New flag.
23844         * flow.c (propagate_one_insn): Use it.
23845         (mark_used_regs): Handle NIL.
23846
23847 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
23848
23849         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
23850         to help folding.
23851
23852 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
23853
23854         * rs6000.md (prefetch): Make address V4SI mode so that the address
23855         is restricted to legitimate form for instruction.
23856
23857 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
23858
23859         * doc/install.texi (xtensa-*-elf): New target.
23860         (xtensa-*-linux*): New target.
23861         * doc/contrib.texi: Add myself.
23862
23863 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
23864
23865         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
23866         purpose register to hold an SImode (or smaller) value.
23867
23868 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
23869
23870         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
23871         registry only.
23872         * crtstuff.c: Likewise.
23873
23874 2002-01-25  Kazu Hirata  <kazu@hxi.com>
23875
23876         * config/h8300/h8300.md (negation patterns): Tighten
23877         predicates to register_operand.
23878
23879 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
23880
23881         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
23882         mode, not Pmode.
23883
23884         * builtins.c (expand_builtin_prefetch): Same.
23885
23886 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
23887
23888         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
23889         modes.
23890
23891 2002-01-24  Kazu Hirata  <kazu@hxi.com>
23892
23893         * config/h8300/h8300.c (print_operand): Remove support for
23894         operand character 'A'.
23895         * config/h8300/h8300.md (three anonymous patterns): Replace
23896         operand character 'A' with either 'T' or 'S'.
23897
23898 2002-01-24  Kazu Hirata  <kazu@hxi.com>
23899
23900         * config/h8300/h8300.c (print_operand): Remove support for
23901         operand character 'U'.
23902
23903 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
23904
23905         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
23906
23907 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
23908
23909         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
23910         values to be assigned to the stack pointer.
23911
23912 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
23913
23914         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
23915         to const_double needs to be done right for big-endian systems.
23916
23917 2002-01-24  Jason Merrill  <jason@redhat.com>
23918
23919         PR c++/2432
23920         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
23921         to can_throw_internal.
23922
23923 2002-01-23  Richard Henderson  <rth@redhat.com>
23924
23925         * fold-const.c (fold): Change UINT_MAX test to check vs precision
23926         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
23927
23928 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
23929
23930         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
23931         (symGOT2reg): Use them, then set as GOT value as unchanging.
23932         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
23933         as a temporary, if possible.
23934         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
23935         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
23936
23937 2002-01-23  Kazu Hirata  <kazu@hxi.com>
23938
23939         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
23940         accept to accept 0x80 as operands[2].
23941
23942 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
23943
23944         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
23945
23946 2002-01-23  Richard Henderson  <rth@redhat.com>
23947
23948         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
23949
23950 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
23951
23952         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
23953         (parmlist_or_identifiers_1): Verify that only a parmlist follows
23954         an attribute.
23955
23956 2002-01-23  Richard Henderson  <rth@redhat.com>
23957
23958         * expr.c (move_by_pieces_1): Extend size before negation.
23959
23960         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
23961         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
23962         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
23963         * config/m68k/t-m68kelf: Likewise.
23964
23965 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
23966
23967         * config/xtensa/elf.h: New file.
23968         * config/xtensa/lib1funcs.asm: New file.
23969         * config/xtensa/lib2funcs.S: New file.
23970         * config/xtensa/linux.h: New file.
23971         * config/xtensa/t-xtensa: New file.
23972         * config/xtensa/xtensa-config.h: New file.
23973         * config/xtensa/xtensa-protos.h: New file.
23974         * config/xtensa/xtensa.c: New file.
23975         * config/xtensa/xtensa.h: New file.
23976         * config/xtensa/xtensa.md: New file.
23977         * config.gcc (xtensa-*-elf*): New target.
23978         (xtensa-*-linux*): New target.
23979         * cse.c (canon_hash): Compare rtx pointers instead of register
23980         numbers.  This is required for the Xtensa port.
23981         * integrate.c (copy_insn_list): Handle case where the static
23982         chain is in memory and the memory address has to be copied to
23983         a register.
23984         * doc/invoke.texi (Option Summary): Add Xtensa options.
23985         (Xtensa Options): New node.
23986         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
23987
23988 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
23989
23990         * diagnostic.c (internal_error): Do ICE suppression only
23991         when ENABLE_CHECKING is not defined.
23992
23993         * c-typeck.c (require_complete_type): Return error_mark_node
23994         if type is error_mark_node.
23995
23996 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
23997
23998         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
23999         -Os and issue a warning.
24000
24001 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
24002
24003         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
24004         current (lack of) need for host configuration by hand.
24005
24006         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
24007         references.  Documentation of some target macros moved from
24008         hostconfig.texi to tm.texi.
24009
24010 2002-01-23  Will Cohen  <wcohen@redhat.com>
24011
24012         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
24013         defined.
24014
24015 2002-01-23  Kazu Hirata  <kazu@hxi.com>
24016
24017         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
24018         operand[3].
24019
24020 2002-01-23  Jason Merrill  <jason@redhat.com>
24021
24022         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
24023
24024         * function.c (assign_parms): Don't put args of inline functions
24025         into registers when not optimizing.
24026
24027 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
24028
24029         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
24030         (prologue_use): New pattern.
24031         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
24032         preference to gen_rtx_USE.
24033         (thumb_expand_prologue): Use gen_prologue_use in preference to
24034         gen_rtx_USE.
24035         (thumb_expand_epilogue): Use gen_prologue_use in preference to
24036         gen_rtx_USE.
24037
24038 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
24039
24040         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
24041
24042 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
24043
24044         PR c/3504
24045         * doc/extend.texi: Correct documentation of __alignof__.
24046
24047 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
24048
24049         * params.h: Rename arguments of DEFPARAM so that it will be
24050         recognized as a translation keyword.
24051
24052 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
24053
24054         * extend.texi: Document altivec functions.
24055         Fix N-bit adjectives in X86 builtin documentation.
24056
24057 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
24058
24059         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
24060         auto_inc_dec values.
24061
24062 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
24063
24064         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
24065         after backslash.
24066         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
24067
24068 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
24069
24070         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
24071
24072 2002-01-22  Richard Henderson  <rth@redhat.com>
24073
24074         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
24075         copy_insn not copy_rtx.
24076
24077 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
24078
24079         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
24080         "nonzero" as that might add "1" bits.  Ensure "constop" is
24081         properly sign extened.
24082         (force_to_mode): Tweak for sign extended constop.
24083
24084 2002-01-22  Richard Henderson  <rth@redhat.com>
24085
24086         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
24087         for_each_rtx instead of assuming we're already looking at the MEM.
24088         (split_small_symbolic_mem_operand): Likewise.
24089         * config/alpha/alpha.h (PREDICATE_CODES): Update.
24090         * config/alpha/alpha.md (small symbolic memory splitters): Update.
24091
24092 2002-01-22  Richard Henderson  <rth@redhat.com>
24093
24094         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
24095         sequence number for the literal.
24096         (divmoddi_internal_er): Likewise.
24097
24098 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24099
24100         PR java/4972
24101         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
24102         in LIBICONV variable.
24103         * configure: Regenerated.
24104
24105 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
24106
24107         * dependence.c (build_def_use): Remove array_idx.
24108
24109         * dwarfout.c (last_filename): Remove.
24110         (output_compile_unit_die): Remove last_filename.
24111
24112 2002-01-22  Roger Sayle  <roger@eyesopen.com>
24113             Richard Henderson  <rth@redhat.com>
24114
24115         PR opt/3640
24116         * fold-const.c (fold): Optimize unsigned comparisons against
24117         UINT_MAX (and similar unsigned constants).
24118
24119 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
24120
24121         * Makefile.in (loop.o): Depend on OPTABS_H.
24122         * loop.c (emit_prefetch_instructions): Check the prefetch operand
24123         against the predicate.
24124
24125         PR target/5379
24126         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
24127         for the address operand.
24128
24129 2002-01-22  Richard Henderson  <rth@redhat.com>
24130
24131         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
24132
24133 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24134
24135         PR other/5450
24136         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
24137         preprocessor flags.
24138
24139 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
24140
24141         * config.gcc (x86_64-*-netbsd*): New target.
24142         * config/i386/netbsd64.h: New file.
24143
24144 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
24145
24146         * regrename.c (kill_value): Fix typo.
24147
24148 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
24149
24150         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
24151
24152         * config/rs6000/rs6000.h: Same.
24153
24154         * function.c (instantiate_virtual_regs): Remove
24155         STARTING_FRAME_PHASE.
24156         (assign_stack_local_1): Same.
24157         Calculate frame phase.
24158
24159 2002-01-22  Nick Clifton  <nickc@redhat.com>
24160
24161         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
24162         variable declaration to outer scope in order to simplify
24163         future extensions.
24164         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
24165         arm_hard_regno_mode_ok.
24166         * config/arm/arm-protos.h: Add a prototype for
24167         arm_hard_regno_mode_ok.
24168         * config/arm/arm.c (soft_df_operand): Remove now redundant
24169         check for DImode values using IP_REGNUM.
24170         (nonimmediate_soft_df_operand): Remove now redundant check for
24171         DImode values using IP_REGNUM.
24172         (arm_hard_regno_mode_ok): New function. New check: make sure
24173         that DImode values are not stored in IP_REGNUM.
24174
24175         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
24176         note with a USE.
24177         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
24178
24179 2002-01-22  Jason Merrill  <jason@redhat.com>
24180
24181         * c-semantics.c (genrtl_compound_stmt): Only check nesting
24182         consistency if this COMPOUND_STMT is scoped.
24183
24184 2002-01-22  Kazu Hirata  <kazu@hxi.com>
24185
24186         * predict.c: Fix formatting.
24187         * print-tree.c: Likewise.
24188         * protoize.c: Likewise.
24189         * real.h: Likewise.
24190         * rtl.h: Likewise.
24191         * sbitmap.h: Likewise.
24192         * scan.c: Likewise.
24193         * sched-deps.c: Likewise.
24194         * sched-vis.c: Likewise.
24195         * sdbout.c: Likewise.
24196         * sibcall.c: Likewise.
24197         * ssa.c: Likewise.
24198         * ssa-ccp.c: Likewise.
24199         * ssa-dce.c: Likewise.
24200         * stmt.c: Likewise.
24201         * stor-layout.c: Likewise.
24202         * system.h: Likewise.
24203
24204 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24205
24206         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
24207         if fits in bounds of base type.
24208
24209         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
24210         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
24211         (add_bound_info, default): If can't find a context, make a
24212         SAVE_EXPR.
24213         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
24214
24215 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
24216
24217         * c-typeck.c (parser_build_binary_op): If result from
24218         build_binary_op is ERROR_MARK just return error_mark_node without
24219         further processing.
24220
24221 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
24222
24223         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
24224         Split a.out-specific bits into...
24225         * config/netbsd-aout.h: ...this.
24226         * config/netbsd-elf.h: New file.
24227         * config/alpha/netbsd-elf.h: Remove.
24228         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
24229         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
24230         (STARTFILE_SPEC): Remove redundant definition.
24231         (ENDFILE_SPEC): Likewise.
24232         (LINK_SPEC): Likewise.
24233         (CPP_SPEC): Likewise.
24234         (ASM_SPEC): Likewise.
24235         (LIB_SPEC): Likewise.
24236         (SWITCH_TAKES_ARG): Likewise.
24237         (TARGET_MEM_FUNCTIONS): Likewise.
24238         (CPP_PREDEFINES): Redefine.
24239         (ASM_FINAL_SPEC): Remove redefinition.
24240         (ASM_COMMENT_START): Redefine.
24241         (FUNCTION_PROFILER): Define.
24242         (TARGET_VERSION): Redefine.
24243         Comment and formatting cleanup.
24244         * config/i386/netbsd.h: Include <netbsd-aout.h>.
24245         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
24246         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
24247         big- or little-endian.
24248         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
24249         * config.gcc (*-*-netbsd*): Add definitions common to all
24250         NetBSD configs.
24251         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
24252         gnu_ld definitions.  Add netbsd-elf.h to and remove
24253         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
24254         tmake_file, and don't lose previous tmake_file contents.
24255         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
24256         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
24257         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
24258         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
24259         (mipsel-*-netbsd*): Rename this to...
24260         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
24261         mips/little.h to tm_file for mips*el-*.
24262         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
24263         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
24264         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
24265
24266 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24267
24268         * pa-protos.h (reg_before_reload_operand): New function prototype.
24269         * pa.c (reg_before_reload_operand): New function implementation.
24270         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
24271         contraints to "*m".
24272
24273 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
24274
24275         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
24276
24277 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24278
24279         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
24280         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
24281         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
24282         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
24283         (ENDFILE_SPEC): Undefine.
24284         (STARTFILE_SPEC): Redefine for PA.
24285
24286 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
24287
24288         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
24289
24290 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
24291
24292         * config.gcc: Add entries to supported PowerPC --with-cpu
24293         types.
24294
24295 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
24296
24297         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
24298         true for 64-bit mode only SSE registers in 32-bit mode.
24299
24300 2002-01-21  Kazu Hirata  <kazu@hxi.com>
24301
24302         * unwind-dw2.c: Fix formatting.
24303         * unwind-dw2-fde.c: Likewise.
24304         * unwind-dw2-fde.h: Likewise.
24305         * unwind-pe.h: Likewise.
24306         * varasm.c: Likewise.
24307         * varray.h: Likewise.
24308
24309 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
24310
24311         Remove workaround for register stack overwrite bug in mmix.
24312         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
24313         support for TARGET_REG_STACK_FILL_BUG.
24314         * config/mmix/mmix.h: Remove member has_call_without_parameters.
24315         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
24316         Delete.
24317         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
24318         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
24319         -mno-reg-stack-fill-bug-workaround.
24320         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
24321         machine member has_call_without_parameters.
24322         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
24323         -mreg-stack-fill-bug-workaround and
24324         -mno-reg-stack-fill-bug-workaround.
24325         (MMIX Options): Ditto.
24326
24327 2002-01-21  Kazu Hirata  <kazu@hxi.com>
24328
24329         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
24330         as appropriate.
24331         Remove redundant code.
24332
24333 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
24334
24335         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
24336         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
24337         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
24338         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
24339         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
24340         out target macro definitions and non-target-specific comments
24341         mostly taken from old versions of the manual.
24342
24343 2002-01-20  Kazu Hirata  <kazu@hxi.com>
24344
24345         * config/h8300/h8300.h: Fix comment formatting.
24346         * config/ia64/aix.h: Likewise.
24347         * config/ia64/ia64-protos.h: Likewise.
24348         * config/ia64/ia64.c: Likewise.
24349         * config/ia64/ia64.h: Likewise.
24350         * config/ia64/ia64intrin.h: Likewise.
24351         * config/ia64/linux.h: Likewise.
24352         * config/ia64/unwind-aix.c: Likewise.
24353         * config/ia64/unwind-ia64.c: Likewise.
24354
24355 2002-01-20  Kazu Hirata  <kazu@hxi.com>
24356
24357         * config/h8300/h8300.c: Revise comments about shift code.
24358
24359 2002-01-20  Kazu Hirata  <kazu@hxi.com>
24360
24361         * config/h8300/h8300.c (function_arg): Update a comment.
24362
24363 2002-01-20  Kazu Hirata  <kazu@hxi.com>
24364
24365         * config/h8300/h8300.md: Update the comments at the beginning
24366         of the file.
24367
24368 2002-01-20  Kazu Hirata  <kazu@hxi.com>
24369
24370         * config/i370/i370.c: Fix comment formatting.
24371         * config/i370/i370.h: Likewise.
24372         * config/i370/i370.md: Likewise.
24373         * config/i370/linux.h: Likewise.
24374
24375 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24376
24377         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
24378
24379         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
24380         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
24381         in incomplete case.
24382
24383 2002-01-20  Graham Stott  <grahams@redhat.com>
24384
24385         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
24386
24387 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24388
24389         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
24390
24391 2002-01-19  Tom Rix  <trix@redhat.com>
24392
24393         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
24394
24395 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
24396
24397         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
24398
24399         * function.c (assign_stack_local_1): Adjust x_frame_offset with
24400         STARTING_FRAME_PHASE.
24401         (STARTING_FRAME_PHASE): New.
24402         (instantiate_virtual_regs): Check saneness of
24403         STARTING_FRAME_PHASE.
24404
24405         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
24406
24407 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
24408
24409         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
24410
24411 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24412
24413         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
24414         be used for bootstrapping GCC 3.0.
24415
24416 2002-01-18  Kazu Hirata  <kazu@hxi.com>
24417
24418         * config/h8300/h8300.md: Fix an insn length.
24419
24420 2002-01-18  Kazu Hirata  <kazu@hxi.com>
24421
24422         * bitmap.h: Fix comment formatting.
24423         * combine.c: Likewise.
24424         * cppfiles.c: Likewise.
24425         * c-pragma.h: Likewise.
24426         * c-typeck.c: Likewise.
24427         * df.c: Likewise.
24428         * dwarf2out.c: Likewise.
24429         * function.c: Likewise.
24430         * gcc.c: Likewise.
24431         * genattrtab.c: Likewise.
24432         * gthr-win32.h: Likewise.
24433         * haifa-sched.c: Likewise.
24434         * predict.c: Likewise.
24435         * rtlanal.c: Likewise.
24436         * rtl.h: Likewise.
24437         * unwind-dw2-fde.h: Likewise.
24438         * unwind-pe.h: Likewise.
24439         * vmsdbgout.c: Likewise.
24440
24441 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24442
24443         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
24444         if type_required and passed decl.
24445
24446 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
24447
24448         * config.gcc (cpu_type): Include altivec.h in powerpc
24449         extra_headers.
24450         Same for darwin.
24451
24452         * config/rs6000/altivec.h: New.
24453
24454 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
24455
24456         * doc/install.texi (*-ibm-aix*): Update assembler and exception
24457         handling information.
24458         * doc/trouble.texi (Interoperation): Add libstdc++ information
24459         for AIX.
24460         (Misunderstandings): Add template instantiation and static template
24461         member information for AIX.
24462
24463 2002-01-17  Jason Merrill  <jason@redhat.com>
24464
24465         * dbxout.c (dbxout_type): Support const and volatile.
24466
24467         * except.c (add_partial_entry): Remove backwards compatibility code.
24468         (end_protect_partials): Likewise.
24469
24470 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
24471
24472         * config/ia64/ia64.md (prologue_use): New.
24473         * config/ia64/ia64.c (ia64_expand_prologue): Use
24474         gen_prologue_use instead of gen_rtx_USE.
24475         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
24476         as CODE_FOR_pred_rel_mutex.
24477         (ia64_sched_reorder2): Likewise.
24478
24479 2002-01-16  Eric Christopher  <echristo@redhat.com>
24480
24481         * config/mips/r3900.h: Reformat.
24482         (SUBTARGET_CPP_SIZE_SPEC): Remove.
24483         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
24484         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
24485         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
24486         * config/mips/t-elf: Remove mips3 multilib.
24487
24488 2002-01-16  H.J. Lu <hjl@gnu.org>
24489
24490         * config/mips/linux.h: Include "mips/abi64.h".
24491
24492 2002-01-16  H.J. Lu <hjl@gnu.org>
24493
24494         * config/mips/t-linux: New.
24495
24496         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
24497
24498         * config/mips/linux.h: Don't include "gofast.h".
24499         (INIT_SUBTARGET_OPTABS): Removed.
24500
24501 2002-01-16  Kazu Hirata  <kazu@hxi.com>
24502
24503         * config/h8300/h8300-protos.h: Replace emit_a_shift with
24504         output_a_shift.
24505         * config/h8300/h8300.c: Likewise.
24506         * config/h8300/h8300.md: Likewise.
24507
24508 2002-01-16  Kazu Hirata  <kazu@hxi.com>
24509
24510         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
24511         spaces after an opcode name.
24512         (pushqi1_h8300hs): Likewise.
24513         (pushhi1_h8300hs): Likewise.
24514
24515 2002-01-16  Kazu Hirata  <kazu@hxi.com>
24516
24517         * doc/extend.texi: Replace "option" with "attribute"
24518         appropriately.
24519
24520 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
24521
24522         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
24523         (and:DI () (const_int -8)).
24524         (split_small_symbolic_mem_operand): Split
24525         (mem (and:DI () (const_int -8)).
24526
24527 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
24528
24529         PR target/5309:
24530         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
24531         same way as TYPE_IMUL.
24532         (ultrasparc_sched_reorder): Likewise.
24533         * config/sparc/sparc.md (type): Add comment to update
24534         ultrasparc_sched_reorder when making changes.
24535
24536 2002-01-16  Kazu Hirata  <kazu@hxi.com>
24537
24538         * doc/invoke.texi: Change the dump file name of block
24539         reordering pass from 28.bbro to 29.bbro.
24540         Mention -dk option.
24541
24542 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
24543
24544         * i386.md (minsf splitter): Fix pasto.
24545
24546 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
24547
24548         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
24549         to frame pointer initialisation instruction.
24550         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
24551         initialisation instruction.
24552         (soft_df_operand): Do not accept the IP register.
24553         (nonimmediate_soft_df_operand): Do not accept the IP register.
24554
24555 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
24556
24557         PR target/5357:
24558         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
24559         MASK_V8 being both set.
24560
24561 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
24562
24563         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
24564         insn for GOT register; add REG_MAYBE_DEAD notes instead.
24565         config/s390/s390.md (call, call_value): Add GOT register to
24566         CALL_INSN_FUNCTION_USAGE where needed.
24567         (call_exp, call_value_exp): New.
24568
24569 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
24570
24571         * config/arm/arm.c: General formatting tidy up.
24572
24573 2002-01-16  Graham Stott  <grahams@redhat.com>
24574
24575         * calls.c (try_to_integrate): Use "(size_t)" intermediate
24576         cast and when casting an integer literal to "rtx" pointer.
24577         (expand_call): Likewise.
24578         * flow.c (try_pre_increment): Likewise.
24579         (find_use_as_address): Likewise.
24580         * integrate.c (expand_iline_function): Likewise.
24581         * regmove.c (try_auto_increment): Likewise.
24582
24583 2002-01-16  Graham Stott  <grahams@redhat.com>
24584
24585         * sched-rgn.c (passed): Use sbitmap_free.
24586         (header): Likewise.
24587         (inner): Likewise.
24588         (in_queue): Likewise.
24589         (in_stack): Likewise.
24590
24591 2002-01-15  Eric Christopher  <echristo@redhat.com>
24592
24593         * flow.c (propagate_one_insn): Change to use fatal_insn.
24594
24595 2002-01-15  Kazu Hirata  <kazu@hxi.com>
24596
24597         * expmed.c (extract_fixed_bit_field): Remove unused code.
24598         * system.h: Poison SLOW_ZERO_EXTEND.
24599         * doc/tm.texi: Remove.
24600         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
24601         * config/arm/arm.h: Likewise.
24602         * config/avr/avr.h: Likewise.
24603         * config/clipper/clipper.h: Likewise.
24604         * config/convex/convex.h: Likewise.
24605         * config/d30v/d30v.h: Likewise.
24606         * config/dsp16xx/dsp16xx.h: Likewise.
24607         * config/elxsi/elxsi.h: Likewise.
24608         * config/fr30/fr30.h: Likewise.
24609         * config/h8300/h8300.h: Likewise.
24610         * config/i370/i370.h: Likewise.
24611         * config/i386/i386.h: Likewise.
24612         * config/m68k/m68k.h: Likewise.
24613         * config/mips/mips.h: Likewise.
24614         * config/ns32k/ns32k.h: Likewise.
24615         * config/pdp11/pdp11.h: Likewise.
24616         * config/pj/pj.h: Likewise.
24617         * config/s390/s390.h: Likewise.
24618         * config/sh/sh.h: Likewise.
24619         * config/stormy16/stormy16.h: Likewise.
24620         * config/v850/v850.h: Likewise.
24621         * config/vax/vax.h: Likewise.
24622         * config/we32k/we32k.h: Likewise.
24623
24624 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
24625
24626         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
24627         (altivec_lvsl): Change constraint to b.
24628         (altivec_lvsr): Same.
24629         (altivec_lvebx): Same.
24630         (altivec_lvehx): Same.
24631         (altivec_lvewx): Same.
24632         (altivec_lvxl): Same.
24633         (altivec_lvx): Same.
24634         (altivec_stvx): Add parallel.
24635         (altivec_stvxl): Same.
24636         (altivec_stvehx): Same.
24637         (altivec_stvebx): Same.
24638         (altivec_stvebx): Same.
24639
24640 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
24641
24642         * config.gcc: Change altivec.h to altivec-defs.h.
24643
24644         * config/rs6000/altivec.h: Delete.
24645
24646         * config/rs6000/altivec-defs.h: Add.
24647
24648 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
24649
24650         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
24651         and UMOD modes.
24652
24653         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
24654         less than or equal to eight bytes.
24655
24656         * vax.md (andsi3): Remove constraints and change SET destination
24657         operand type to nonimmediate_operand.
24658         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
24659         when it is a CONST_INT.
24660
24661 2002-01-15  Jason Merrill  <jason@redhat.com>
24662
24663         * c-common.def (FILE_STMT): New code.
24664         * c-common.c (statement_code_p): It's a statement.
24665         * c-common.h (stmt_tree_s): Add x_last_filename.
24666         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
24667         (last_expr_filename): New macro.
24668         * c-semantics.c (begin_stmt_tree): Initialize it.
24669         (add_stmt): If the filename changed, also insert a
24670         FILE_STMT.
24671         (expand_stmt): Handle seeing one.
24672
24673 2002-01-15  Eric Christopher  <echristo@redhat.com>
24674
24675         * flow.c (propagate_one_insn): Add error message and print out
24676         insn for debugging.
24677
24678 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
24679
24680         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
24681         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
24682         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
24683         TRAMPOLINE_ALIGNMENT.
24684         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
24685         to be in bits.
24686         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
24687         PCC_BITFIELD_TYPE_MATTERS.
24688         * config/interix.h (STDC_VALUE): Remove.  Use
24689         STDC_0_IN_SYSTEM_HEADERS.
24690         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
24691         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
24692         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
24693
24694 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24695
24696         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
24697         not work on this platform currently.
24698
24699 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
24700
24701         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
24702         readonly_warning in _().
24703
24704 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
24705
24706         * gcc.c (delete_if_ordinary): Backout previous change.
24707
24708 2002-01-15  Kazu Hirata  <kazu@hxi.com>
24709
24710         * config/h8300/h8300.c (print_operand): Remove support for
24711         unused operand characters.
24712
24713         * read-rtl.c: Fix formatting.
24714         * real.c: Likewise.
24715         * recog.c: Likewise.
24716         * regclass.c: Likewise.
24717         * regmove.c: Likewise.
24718         * reg-stack.c: Likewise.
24719         * reload1.c: Likewise.
24720         * rtlanal.c: Likewise.
24721
24722 2002-01-15  Kazu Hirata  <kazu@hxi.com>
24723
24724         * config/i386/i386.c: Fix formatting.
24725
24726 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
24727
24728         * c-typeck.c (process_init_element): Don't save_expr
24729         COMPOUND_LITERAL_EXPR if just its initializer will be used.
24730
24731 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
24732
24733         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
24734         emit optional traceback table if optimize_size or TARGET_ELF.
24735         * config/rs6000/rs6000.md (prefetch): New.
24736
24737 2002-01-15  Andreas Jaeger  <aj@suse.de>
24738
24739         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
24740
24741 2002-01-15  Kazu Hirata  <kazu@hxi.com>
24742
24743         * mips-tfile.c: Fix formatting.
24744
24745 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
24746
24747         * unroll.c (final_reg_note_copy): Fix previous commit.
24748
24749 2002-01-14  Kazu Hirata  <kazu@hxi.com>
24750
24751         * config/h8300/h8300-protos.h: Remove the prototype for
24752         eq_operator.
24753         * config/h8300/h8300.c (eq_operator): Remove.
24754
24755 2002-01-14  Richard Henderson  <rth@redhat.com>
24756
24757         * config/i386/i386.md (prefetch): Tidy.
24758         (prefetch_3dnow): Fix locality operand.
24759
24760 2002-01-14  Richard Henderson  <rth@redhat.com>
24761
24762         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
24763         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
24764
24765 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
24766
24767         * reload1.c (reload_combine): Pass reg_sum replacement through
24768         copy_rtx in loop performing multiple changes.
24769
24770 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
24771
24772         * except.c (remove_unreachable_regions): New.
24773         (free_eh_status): Clear exception_handler_labels.
24774         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
24775         (find_exception_handler_labels): Don't add the same label more than
24776         once.
24777         (remove_exception_handler_label): Don't die if
24778         find_exception_handler_labels hasn't been called for the current
24779         function yet.
24780
24781 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
24782
24783         * toplev.c (rest_of_compilation): Rebuild jump labels after
24784         gcse.
24785
24786 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
24787
24788         * doc/extend.texi: Move documentation of X86 built-in functions
24789         here.
24790         * doc/invoke.texi: From here.
24791         * doc/sourcebuild.texi: Document location of documentation for
24792         machine built-in functions.
24793
24794 2002-01-13  Christopher Faylor  <cgf@redhat.com>
24795
24796         * cppfiles.c (TEST_THRESHOLD): New macro.
24797         (SHOULD_MMAP): Ditto.
24798         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
24799         be used.
24800
24801 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
24802
24803         * unroll.c (final_reg_note_copy): Properly handle
24804         REG_LABEL
24805         (unroll_loops): Fix LOOP_CONDITION heuristics.
24806
24807 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
24808
24809         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
24810         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
24811
24812 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
24813
24814         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
24815         threaded loop.
24816
24817 2002-01-14  Tom Rix  <trix@redhat.com>
24818
24819         * config/rs6000/rs6000.md: Fix typo with sradi.
24820
24821 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
24822
24823         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
24824         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
24825         (clrstrdi, clrstrsi): Adapt callers.
24826
24827         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
24828
24829         (movti splitter): Never use register 0 as base register.
24830
24831 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
24832
24833         * combine.c (simplify_shift_const): Always generate new rtx
24834         for shift expression instead of reusing given expression.
24835
24836 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24837
24838         * config/alpha/alpha.c (alpha_expand_mov): Don't call
24839         alpha_legitimize_address unless mode is Pmode.
24840
24841 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
24842
24843         * doc/md.texi (Modifiers): Document the '*' constraint for the
24844         user.
24845
24846         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
24847         * doc/extend.texi (Function Attributes): 'interrupt' is valid
24848         for xstormy16 too.
24849
24850 2002-01-13  Richard Henderson  <rth@redhat.com>
24851
24852         * reload.c (find_reloads): Use a hard reg destination as reload reg
24853         for an input reload of the source.
24854
24855 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
24856
24857         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
24858         more generic.
24859
24860 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
24861
24862         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
24863         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
24864
24865         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
24866
24867 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24868
24869         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
24870
24871 2002-01-12  Tom Rix  <trix@redhat.com>
24872
24873         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
24874         TARGET_POWERPC64.
24875
24876 2002-01-12  Richard Henderson  <rth@redhat.com>
24877
24878         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
24879
24880         * doc/invoke.texi: Update Alpha options.
24881
24882         * doc/invoke.texi: Update i386 built-in function lists.
24883
24884 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
24885
24886         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
24887         referencing outside.
24888
24889 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
24890
24891         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
24892         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
24893         offsets, and change line folding.
24894         * optabs.c (expand_binop): Remove warnings.
24895         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
24896
24897 2002-01-12  Graham Stott <grahams@redhat.com>
24898
24899         * attribs.c (handle_deprecated_attribute): constify WHAT.
24900         * diagnostic.c (warn_deprecated_use): Add braces, fixes
24901         dangling else warning and constify WHAT.
24902         * except.h (struct function, struct inline_remap): Move
24903         struct tag forward defs before all prototypes.
24904         (duplicate_eh_regions): Whitespace.
24905
24906 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
24907
24908         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
24909         MODE_BASE_REG_CLASS.
24910         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
24911
24912 2002-01-12  Richard Henderson  <rth@redhat.com>
24913
24914         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
24915         (ix86_expand_vector_move): New.
24916         (bdesc_2arg): Remove andps, andnps, orps, xorps.
24917         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
24918         Remove old prefetch builtins.  Special case the logicals removed above.
24919         (ix86_expand_builtin): Likewise.
24920         (safe_vector_operand): Use V4SFmode, not TImode.
24921         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
24922         (ix86_expand_timode_binop_builtin): New.
24923         * config/i386/i386-protos.h: Update.
24924         * config/i386/i386.h (enum ix86_builtins): Update.
24925         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
24926         Use ix86_expand_vector_move in vector move expanders.
24927         (movti_internal, movti_rex64): Add xorps alternative.
24928         (sse_clrv4sf): Rename and adjust from sse_clrti.
24929         (prefetch): Don't work so hard.
24930         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
24931         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
24932         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
24933
24934 2002-01-11  Richard Henderson  <rth@redhat.com>
24935
24936         * config/i386/mmintrin.h: New file.
24937         * config/i386/xmmintrin.h: New file.
24938         * config.gcc (i?86-*-*): Add extra_headers.
24939         * simplify-rtx.c (simplify_unary_operation): Handle saturating
24940         truncation codes.
24941         (simplify_binary_operation): Handle saturating arithmetic codes.
24942         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
24943         not the lowpart subreg.
24944         (ix86_expand_builtin): Return a TImode dummy register instead of 0
24945         on error.
24946         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
24947
24948 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
24949
24950         * conflict.c (conflict_graph_compute): Free regsets when finished.
24951         * ssa.c (compute_coalesced_reg_partition): Likewise.
24952
24953 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
24954
24955         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
24956         every where we allocate a register.
24957
24958 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
24959
24960         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
24961         * lcm.c (compute_earliest, compute_farthest): Likewise.
24962
24963 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
24964
24965         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
24966
24967 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
24968
24969         * doc/rtl.texi (Insns): Fix 2 typos.
24970
24971 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
24972
24973         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
24974         options.  Use @table @gcctabopt for MMIX options.  Add index
24975         entries for MMIX options.  Start new paragraph with first
24976         heading of the machine-dependent options.
24977
24978 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
24979
24980         PR other/5299
24981         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
24982         * combine.c (force_to_mode): Same.
24983         * reload1.c (clear_reload_reg_in_use): Same.
24984
24985 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
24986
24987         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
24988         and 'subtargets'.
24989
24990 2002-01-11  Andreas Jaeger  <aj@suse.de>,
24991             Brad Lucier <lucier@math.purdue.edu>
24992
24993         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
24994         mcpu.
24995
24996 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
24997
24998         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
24999         Protect with IN_LIBGCC.
25000         (LINK_EH_SPEC): Add required trailing space.
25001
25002 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
25003
25004         * c-tree.h: Move function declarations so that they are listed
25005         under the filename which contains them.
25006         (check_identifier, finish_decl_top_level,
25007         lookup_name_current_level_global, shadow_record_fields): Remove.
25008
25009 2002-01-11  Andreas Jaeger  <aj@suse.de>
25010
25011         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
25012         march.
25013
25014 2002-01-10  Richard Henderson  <rth@redhat.com>
25015
25016         * config/alpha/alpha.c (print_operand): Add 'J'.
25017         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
25018         new operand with the sequence number for the lituse.  When splitting
25019         the insns, use gen_movdi_er_high_g and generate a sequence number.
25020         (gen_movdi_er_high_g): Print the sequence number if non-zero.
25021
25022 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
25023
25024         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
25025         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
25026         stvxl.
25027         (altivec_expand_builtin): Same.
25028         (altivec_expand_stv_builtin): New.
25029
25030         * config/rs6000/rs6000.h (rs6000_builtins): Same.
25031
25032         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
25033         ("altivec_lvehx"): New.
25034         ("altivec_lvewx"): New.
25035         ("altivec_lvxl"): New.
25036         ("altivec_lvx"): New.
25037         ("altivec_stvx"): New.
25038         ("altivec_stvebx"): New.
25039         ("altivec_stvehx"): New.
25040         ("altivec_stvewx"): New.
25041         ("altivec_stvxl"): New.
25042
25043 2002-01-10  Richard Henderson  <rth@redhat.com>
25044
25045         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
25046         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
25047         care not to delete instructions twice.
25048
25049 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
25050
25051         * toplev.c: Don't declare environ (it's not used anywhere).
25052         * configure.in: Don't check for declaration of environ.
25053         * config/i386/xm-mingw32.h: Don't #define environ.
25054         * config.in, configure: Regenerate.
25055
25056 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
25057
25058         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
25059         * configure: Regenerate.
25060
25061         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
25062         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
25063         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
25064         alpha/xm-vms.h.
25065         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
25066         LIMITS_H_TEST here, not in m68k/x-next.
25067         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
25068         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
25069
25070         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
25071         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
25072         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
25073
25074         * config/i386/x-djgpp: Renamed i386/t-djgpp.
25075         * config/m88k/x-dolph: Renamed m88k/t-dolph.
25076         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
25077         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
25078         replacement of quadlib.asm with quadlib.c.
25079
25080         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
25081         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
25082         config/rs6000/xm-beos.h: Delete file.
25083
25084         * config.gcc: Update to match above changes.
25085
25086 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25087
25088         * config/h8300/h8300.h: Fix comment typos.
25089         * config/h8300/h8300.md: Likewise.
25090         * config/h8300/lib1funcs.asm: Likewise.
25091
25092 2002-01-10  Dale Johannesen  <dalej@apple.com>
25093
25094         PR optimization/5269
25095         * unroll.c (precondition_loop_p): Make *increment be the correct
25096         sign when n_iterations known, to avoid confusing caller.
25097
25098 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25099
25100         * doc/extend.texi (deprecated): Fix a typo.
25101
25102 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
25103
25104         * basic-block.h (update_br_prob_note): Declare.
25105         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
25106         (try_forward_edges): Care negative frequencies and update note.
25107         (outgoing_edges_match): Tweek conditional merging heuristics.
25108         (try_crossjump_to_edge): use update_br_prob_note.
25109         * cfglayout.c (fixup_reorder_chain): Likewise.
25110         * cfrtl.c (update_br_prob_note): New.
25111         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
25112
25113         * i386.c (ix86_decompose_address): Return -1 if address contains
25114         shift.
25115         (legitimate_address_p): Require ix86_decompose_address to return 1.
25116
25117         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
25118         (cprop_insn): Likewise.
25119
25120 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25121
25122         * toplev.c: Fix formatting.
25123         * tree.c: Likewise.
25124         * tree-dump.c: Likewise.
25125         * unroll.c: Likewise.
25126         * unwind-dw2.c: Likewise.
25127         * unwind-dw2-fde.c: Likewise.
25128         * unwind-dw2-fde-glibc.c: Likewise.
25129         * unwind-sjlj.c: Likewise.
25130
25131 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
25132
25133         * doc/invoke.texi: Document PDP-11 options.
25134
25135 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25136
25137         * config/h8300/h8300.h: Fix formatting.
25138
25139 2002-01-10  Ira Ruben   <ira@apple.com>
25140
25141         Add __attribute__ ((deprecated)).
25142         * extend.texi: Document __attribute__ ((deprecated)).
25143         * invoke.texi: Document -Wno-deprecated-declarations.
25144         * testsuite/g++.dg/other/deprecated.C: New C++ test.
25145         * testsuite/gcc.dg/deprecated.c: New C test.
25146         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
25147         (c_common_attribute_table): Add "deprecated" entry.
25148         (handle_deprecated_attribute): New function.
25149         * c-decl.c (deprecated_states): New enum.
25150         deprecated_state: State of "deprecated" handling.
25151         (start_decl): Set deprecated_state based on attributes.
25152         (grokdeclarator): Test for deprecated uses, propagate attribute.
25153         * c-typeck.c (build_component_ref): Test for deprecated fields.
25154         (build_external_ref): Test for deprecated primaries.
25155         * diagnostic.c (warn_deprecated_use) New function to issue
25156         warnings about __attribute__ ((depricated)) references.
25157         * flags.h (warn_deprecated_decl): Extern declared for
25158         -W[no-]deprecated-declarations option.
25159         * print-tree.c (print_node): Show deprecated flag status.
25160         * toplev.c (warn_deprecated_decl): Defined.
25161         (W_options): Added "deprecated-declaration".
25162         * toplev.h (warn_deprecated_use): Extern declared.
25163         * tree.h (struct tree_common): Define deprecated_flag.
25164         (TREE_DEPRECATED): New macro to access flag.
25165         * cp/call.c (build_call): Test for deprecated calls.
25166         * cp/class.c (add_implicitly_declared_members): Set global
25167         flag to tell grokdeclarator to not issue deprecated warnings.
25168         * cp/cp-tree.h: Add extern for adding_implicit_members.
25169         * cp/decl.c (deprecated_states): New enum.
25170         (start_decl): Set deprecated_state based on attributes.
25171         (grokdeclarator): Test for deprecated uses, propagate attribute.
25172         * cp/lex.c (do_identifier): Test for deprecated primaries.
25173         * cp/typeck.c (build_component_ref): Test for deprecated fields.
25174
25175 2002-01-10  Ira Ruben   <ira@apple.com>
25176
25177         Fix to assign attributes to inline member functions.
25178         * cp/decl.c (start_method): Handle attrlist.
25179
25180 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25181
25182         * combine.c (expand_field_assignment): Use subreg_lsb().
25183
25184 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
25185
25186         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
25187         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
25188         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
25189         Recurse for any operand of AND as long as constant is non-zero.
25190
25191 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25192
25193         * config/h8300/h8300.md: Remove constraints from expanders.
25194
25195 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25196
25197         * varasm.c: Fix formatting.
25198         * varray.c: Likewise.
25199         * vmsdbgout.c: Likewise.
25200         * xcoffout.c: Likewise.
25201
25202 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
25203
25204         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
25205         update edge probabilities to match.
25206
25207 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
25208
25209         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
25210         dependencies.
25211         * doc/languages.texi, doc/sourcebuild.texi: New files.
25212         * doc/configfiles.texi: Make a subsubsection.  Update.
25213         * doc/configterms.texi: Add @node.  Remove warning that this isn't
25214         instructions for building GCC.
25215         * doc/makefile.texi: Make a subsection.
25216         * doc/gccint.texi: Update.
25217
25218 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
25219
25220         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
25221
25222 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
25223
25224         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
25225
25226 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
25227
25228         * optabs.c (expand_fix): Look for wider integer modes first.
25229
25230         * i386.md (mov?f): Avoid the fake const double trick for medium
25231         memory model.
25232         (min?f*/max?f*): Prohibit memory operands for i387 variant.
25233         (fop_df_4): Disable for SSE compilation.
25234
25235 2002-01-10  Graham Stott  <grahams@redhat.com>
25236
25237         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
25238         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
25239
25240 2002-01-10  Richard Henderson  <rth@redhat.com>
25241
25242         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
25243
25244 2002-01-10  Richard Henderson  <rth@redhat.com>
25245
25246         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
25247         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
25248
25249 2002-01-10  Kazu Hirata  <kazu@hxi.com>
25250
25251         * combine.c (can_combine_p): Fix a comment typo.
25252
25253 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
25254
25255         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
25256         empty list correctly.  Change loop index $t to $f for
25257         consistency with rest of Makefile.
25258
25259 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
25260
25261         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
25262         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
25263
25264         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
25265         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
25266         (altivec_init_builtins): Same.
25267         (altivec_expand_unop_builtin): Return NULL_RTX on error.
25268         (altivec_expand_binop_builtin): Same.
25269         (altivec_expand_ternop_builtin): Same.
25270         (bdesc_dst): New.
25271
25272         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
25273         ("altivec_vctuxs"): Fix typo.
25274         ("altivec_vnmsubfp"): Same.
25275         ("altivec_dssall"): New.
25276         ("altivec_mfvscr"): New.
25277         ("altivec_dss"): New.
25278         ("altivec_lvsl"): New.
25279         ("altivec_lvsr"): New.
25280         ("altivec_dstt"): New.
25281         ("altivec_dstst"): New.
25282         ("altivec_dststt"): New.
25283         ("altivec_dst"): New.
25284
25285         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
25286         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
25287
25288 2002-01-09  Richard Henderson  <rth@redhat.com>
25289
25290         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
25291
25292 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
25293
25294         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
25295         function.
25296         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
25297         prototype.
25298         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
25299
25300 2002-01-09  Kazu Hirata  <kazu@hxi.com>
25301
25302         * read-rtl.c: Fix formatting.
25303         * real.c: Likewise.
25304         * regclass.c: Likewise.
25305         * regrename.c: Likewise.
25306         * reg-stack.c: Likewise.
25307         * reload1.c: Likewise.
25308         * reload.c: Likewise.
25309         * rtl.c: Likewise.
25310
25311 2002-01-09  Kazu Hirata  <kazu@hxi.com>
25312
25313         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
25314         to extract items in the expr_list chain.
25315
25316 2002-01-09  Richard Henderson  <rth@redhat.com>
25317
25318         * config/vax/vax.c (vax_rtx_cost): Never abort.
25319
25320         * config/vax/vax.h (REAL_ARITHMETIC): Define.
25321
25322 2002-01-09  Jan Hubicka  <jh@suse.cz>
25323
25324         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
25325
25326 2002-01-09  Richard Henderson  <rth@redhat.com>
25327
25328         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
25329         Unify code from various alternatives.
25330
25331 2002-01-09  Richard Henderson  <rth@redhat.com>
25332
25333         * regrename.c (copy_value): Ignore the copy if the source register
25334         is present in the value chain with a narrower mode.
25335
25336 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
25337
25338         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
25339         for the c4x target. Also improve layout.
25340
25341 2002-01-09  Richard Henderson  <rth@redhat.com>
25342
25343         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
25344         * config/m32r/m32r.md (and ior xor splitters): Swap operands
25345         to match insn patterns.
25346
25347 2002-01-09  Richard Henderson  <rth@redhat.com>
25348
25349         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
25350         (copyprop_hardreg_forward_1): Likewise.
25351
25352 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25353
25354         * pa.md (decrement_and_branch_until_zero): Change predicate for
25355         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
25356
25357 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
25358
25359         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
25360         gets undefined. For Darwin.
25361
25362 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
25363
25364         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
25365
25366 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
25367
25368         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
25369
25370 2002-01-08  Richard Henderson  <rth@redhat.com>
25371
25372         * regrename.c (copy_value): Ignore overlapping copies.
25373
25374 2002-01-08  Richard Henderson  <rth@redhat.com>
25375
25376         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
25377         as needed to avoid shared structure.
25378
25379 2002-01-08  Kazu Hirata  <kazu@hxi.com>
25380
25381         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
25382         H8/300H and H8/S.
25383
25384 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
25385
25386         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
25387         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
25388         documentation of obsolete macros.
25389         * system.h: Poison these macros.
25390         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
25391         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
25392         config/c4x/c4x.h, config/clipper/clipper.h,
25393         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
25394         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
25395         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
25396         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
25397         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
25398         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
25399         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
25400         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
25401         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
25402         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
25403         config/sparc/sparc.h, config/stormy16/stormy16.h,
25404         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
25405         definitions and commented out definitions of obsolete macros.
25406         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
25407         of MAX_INT_TYPE_SIZE.
25408
25409 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
25410
25411         * config/s390/s390.c (s390_preferred_reload_class): Never
25412         return ADDR_REGS if it isn't a subset of the given class.
25413         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
25414         FP_REGS, but all superclasses as well.
25415
25416         * config/s390/s390.c (s390_function_profiler): Fix thinko.
25417
25418         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
25419         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
25420         must not be a const_int.
25421
25422 2002-01-08  Richard Henderson  <rth@redhat.com>
25423
25424         * Makefile.in (toplev.o): Depend on options.h.
25425         (gcc.o): Depend on specs.h.
25426
25427 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
25428
25429         * expr.c (store_expr): Convert VOIDmode constants back to target's
25430         mode.
25431
25432 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
25433
25434         * doc/invoke.texi: Markup gcc as @command.  Refer to
25435         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
25436         of http://gcc.gnu.org/thanks.html.
25437
25438 2002-01-08  Dale Johannesen  <dalej@apple.com>
25439
25440         * config/rs6000/rs6000.md: Add missing int register
25441         target case to movdf_low.
25442
25443 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
25444
25445         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
25446         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
25447         (cppinit.o): Depend on except.h.
25448         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
25449         s-specs): New rules.
25450
25451         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
25452         Don't create specs.h/options.h/gencheck.h here.  Remove
25453         unnecessary variable settings from last argument of AC_OUTPUT.
25454         * config.in, configure: Regenerate.
25455         * intl.c: Hardcode package name as "gcc".
25456
25457         * cppinit.c: Include except.h.
25458         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
25459         appropriate.
25460         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
25461         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
25462         (!)USING_SJLJ_EXCEPTIONS.
25463         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
25464
25465 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
25466
25467         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
25468         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
25469         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
25470         documentation of obsolete macros.
25471         * system.h: Poison these macros.
25472         * config/d30v/d30v.h, config/ns32k/encore.h,
25473         config/stormy16/stormy16.h: Remove definitions and commented out
25474         definitions of obsolete macros.
25475
25476 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
25477
25478         * objc/objc-act.c (handle_class_ref): Mark the declaration of
25479         %sobjc_class_ref_%s as used - to prevent unwanted compiler
25480         warnings.
25481
25482 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
25483
25484         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
25485         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
25486         to insn adjusting stack/frame pointer.
25487         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
25488         accept operands that cause the insn to be non-splittable.
25489
25490 2002-01-08  Graham Stott  <grahams@redhat.com>
25491
25492         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
25493         (C_TYPE_FIELDS_VOLATILE): Likewise.
25494         (C_TYPE_BEING_DEFINED): Likewise.
25495         (C_IS_RESERVED_WORD): Likewise.
25496         (C_TYPE_VARIABLE_SIZE): Likewise.
25497         (C_DECL_VARIABLE_SIZE): Likewise.
25498         (C_MISSING_PROTOTYPE_WARNED): Likewise.
25499         (C_SET_EXP_ORIGINAL_CODE): Likewise.
25500         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
25501         parenthesis.
25502         (C_DECL_ANTICIPATED): Likewise.
25503         (c_build_type_variant): Add parenthesis.
25504
25505 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
25506
25507         * gcc.c (option_map): Remove --version.
25508         (process_command): Handle -fversion following the GNU Coding
25509         Standards.  Partially addresses PR other/704.
25510
25511 2002-01-08  Graham Stott  <grahams@redhat.com>
25512
25513         * combine.c (combine_instructions): Fix typo.
25514
25515 2002-01-08  Graham Stott  <grahams@redhat.com>
25516
25517         * debug.h: Use "tree" and "rtx" throughout.
25518
25519         * debug.c: Likewise.
25520
25521 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
25522
25523         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
25524         constant pool, use the pool's version of the symbol instead.
25525
25526 2002-01-07  Richard Henderson  <rth@redhat.com>
25527
25528         * regrename.c (find_oldest_value_reg): Ignore the value chain if
25529         the original register was copied in a mode with a fewer number of
25530         hard registers than the desired mode.
25531         (copyprop_hardreg_forward_1): Likewise.
25532         (debug_value_data): Fix loop test.
25533         * toplev.c (parse_options_and_default_flags): Reenable
25534         -fcprop-registers at -O1.
25535
25536 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
25537
25538         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
25539         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
25540
25541         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
25542         predicates.
25543
25544         * config/rs6000/rs6000.md: Add altivec predicate patterns.
25545
25546 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25547
25548         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
25549         (pa_output_function_prologue): Output local label at the beginning of
25550         the prologue when profiling.
25551         (hppa_profile_hook): Use the local label rather than the function label.
25552         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
25553
25554 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
25555
25556         * config/rs6000/rs6000.c (print_operand): Remove extra space.
25557         (altivec_expand_unop_builtin): Fix thinko.
25558         (altivec_expand_binop_builtin): Same.
25559         (altivec_expand_ternop_builtin): Same.
25560         (altivec_expand_builtin): Same.
25561
25562 2002-01-07  Richard Henderson  <rth@redhat.com>
25563
25564         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
25565
25566 2002-01-07  Jason Merrill  <jason@redhat.com>
25567
25568         * unwind-dw2.c (execute_cfa_program): Use < again.
25569
25570 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
25571
25572         * predict.c (combine_predictions_for_insn): Avoid division by zero.
25573
25574 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
25575
25576         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
25577         Don't allow -1 - x -> ~x simplifications in the first pass.
25578
25579 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
25580
25581         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
25582         arguments.
25583         (altivec_expand_binop_builtin): Same.
25584         (altivec_expand_unop_builtin): Same.
25585         (print_operand): Fix typo.
25586         (bdesc_1arg): Add vupk* variants.
25587
25588         * rs6000.h (rs6000_builtins): Add vupk* enums.
25589
25590         * rs6000.md: Add altivec_vupk* variants.
25591
25592 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
25593
25594         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
25595         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
25596         and last update dates.
25597
25598 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
25599
25600         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
25601
25602 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
25603
25604         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
25605         * config/avr/avr.h (CPP_SPEC): Likewise.
25606         (LINK_SPEC): Likewise.
25607         (CRT_BINUTILS_SPECS): Likewise.
25608         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
25609         * doc/invoke.texi (AVR Options): Document them.
25610
25611 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
25612
25613         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
25614         LABEL_NUSES.
25615
25616 2002-01-07  Graham Stott  <grahams@redhat.com>
25617
25618         * config/i386/i386.h: Update copyright date.
25619         (HALF_PIC_PTR): Add parenthesis.
25620         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
25621         (CONSTANT_ALIGNMENT): Add parenthesis.
25622         (DATA_ALIGNMENT): Likewise.
25623         (LOCAL_ALIGNMENT): Likewise.
25624         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
25625         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
25626         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
25627         (HARD_REGNO_NREGS): Add paranethesis.
25628         (VALID_SSE_REG_MODE): Whitespace.
25629         (VALID_MMX_REG_MODE): Whitespace.
25630         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
25631         (ix86_hard_regno_mode_ok): Add parenthesis.
25632         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
25633         (RETURN_IN_MEMORY): Whitespace.
25634         (N_REG_CLASSES): Add parenthesis.
25635         (INTEGER_CLASS_P): Add parenthesis and wrap.
25636         (FLOAT_CLASS_P): Likewise.
25637         (SSE_CLASS_P): Likewise.
25638         (MMX_CLASS_P): Likewise.
25639         (MAYBE_INTEGER_CLASS_P): Likewise.
25640         (MAYBE_FLOAT_CLASS_P): Likewise.
25641         (MAYBE_SSE_CLASS_P): Likewise.
25642         (MAYBE_MMX_CLASS_P): Likewise.
25643         (Q_CLASS_P): Likewise.
25644         (GENERAL_REGNO_P): Uppercase macro parameter.
25645         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
25646         (FP_REGNO_P): Likewise.
25647         (ANY_FP_REGNO_P): Uppercase macro parameter.
25648         (SSE_REGNO_P): Likewise.
25649         (SSE_REGNO): Likewise.
25650         (SSE_REG_P): Likewise.
25651         (SSE_FLOAT_MODE_P): Likewise.
25652         (MMX_REGNO_P): Likewise.
25653         (MMX_REG_P):Likewise.
25654         (STACK_REG_P): Likewise.
25655         (NON_STACK_REG_P): Likewise.
25656         (STACK_TOP_P): Likewise.
25657         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
25658         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
25659         (SECONDARY_MEMORY_NEEDED): Likewise.
25660         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
25661         (MD_ASM_CLOBBERS): Whitespace and wrap.
25662         (MUST_PASS_IN_STACK): Whitespace and wrap.
25663         (RETURN_POPS_ARGS): Add parenthesis.
25664         (INIT_CUMULATIVE_ARGS): Likewise.
25665         (FUNCTION_ARG): Likewise.
25666         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
25667         (SETUP_INCOMING_VARARGS): Likewise.
25668         (BUILD_VA_LIST_TYPE):  Add parenthesis.
25669         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
25670         parenthsis.
25671         (EXPAND_BUILTIN_VA_ARG): Likewise.
25672         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
25673         (INITIALIZE_TRAMPOLINE): Add parenthesis.
25674         (INITIAL_ELIMINATION_OFFSET): Likewise.
25675         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
25676         (REGNO_OK_FOR_BASE_P): Likewise.
25677         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
25678         (REGNO_OK_FOR_DIREG_P): Likewise.
25679         (REG_OK_FOR_INDEX_P): Whitespace.
25680         (REG_OK_FOR_BASE_P): Whitespace.
25681         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
25682         parenthesis.
25683         (FIND_BASE_TERM): Fix typo.
25684         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
25685         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
25686         (SYMBOLIC_CONST; Whitespace.
25687         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
25688         (ENCODE_SECTION_INFO): Whitespace.
25689         (FINALIZE_PIC): Remove do { ... } while (0).
25690         (PROMOTE_MODE): Wrap in do { ... } while (0).
25691         (CONST_COSTS): Whitespace.
25692         (RTX_COSTS): Add paramethesis, whitespace and wrap.
25693         (REGISTER_MOVE_COST): Add parenthesis.
25694         (MEMORY_MOVE_COST): Likewise.
25695         (EXTRA_CC_MODES): Whitespace.
25696         (SELECT_CC_MODE): Add parenthesis and whitespace.
25697         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
25698         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
25699         (ASM_OUTPUT_LABEL): Add paramethesis.
25700         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
25701         (ASM_OUTPUT_REG_POP): Likewise.
25702         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
25703         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
25704
25705         * config/i386/i386.c: Update copyright.
25706         (CHECK_STACK_LIMIT): Add parenthesis.
25707         (AT_BP): Uppercase macro parameter.
25708         (x86_64_int_parameter_registers): Constify.
25709         (x86_64_int_return_registers): Likewise.
25710         (ix86_compare_op0): Use rtx.
25711         (construct_container): Constify INTREG parameter.
25712         (function_arg): Use rtx.
25713
25714         * diagnostic.h: Update copyright date.
25715         (output_buffer_state): Add parenthesis.
25716         (output_buffer_format_args): Likewise.
25717
25718         * combine.c (combine_instructions): Replace XEXP (links, 0)
25719         with link.
25720
25721 2002-01-06  H.J. Lu <hjl@gnu.org>
25722
25723         * cfgcleanup.c (thread_jump): Fix 2 typos.
25724
25725 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
25726
25727         * config.gcc: Add support for --enable-altivec.
25728
25729 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25730
25731         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
25732
25733 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
25734
25735         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
25736         __objc_class_name_*.
25737
25738 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
25739
25740         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
25741
25742 2002-01-06  Richard Henderson  <rth@redhat.com>
25743
25744         * reorg.c (emit_delay_sequence): Remove death notes, not merely
25745         nop them out.  Increment label reference count for REG_LABEL.
25746         (fill_slots_from_thread): Frob label reference count around
25747         delete_related_insns.
25748
25749 2002-01-05  Richard Henderson  <rth@redhat.com>
25750
25751         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
25752         jump threading.
25753
25754 2002-01-05  Richard Henderson  <rth@redhat.com>
25755
25756         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
25757         * integrate.c (output_inline_function): Likewise.
25758         * toplev.c (rest_of_compilation): Do it here instead.  Move call
25759         to remove_unnecessary_notes after emitting abstract instance.
25760         Force an emitted nested function to have its parent emited as well.
25761         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
25762         for null.
25763         (rtl_for_decl_location): Do not look at reload data structures
25764         before reload has run.
25765
25766 2002-01-05  Kazu Hirata  <kazu@hxi.com>
25767
25768         * cse.c: Fix formatting.
25769         * dwarf2asm.c: Likewise.
25770         * dwarf2out.c: Likewise.
25771         * explow.c: Likewise.
25772         * expmed.c: Likewise.
25773         * function.c: Likewise.
25774         * gcov.c: Likewise.
25775         * gencheck.c: Likewise.
25776         * genrecog.c: Likewise.
25777         * ggc-common.c: Likewise.
25778         * ggc-page.c: Likewise.
25779         * global.c: Likewise.
25780
25781 2002-01-05  Kazu Hirata  <kazu@hxi.com>
25782
25783         * combine.c: Fix formatting.
25784
25785 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
25786
25787         PR middle-end/1557
25788         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
25789
25790 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
25791
25792         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
25793         as 1 for __powerpc64__ as well.
25794
25795         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
25796
25797         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
25798         return it.
25799
25800 2002-01-05  Daniel Berlin  <dan@dberlin.org>
25801
25802         * lcm.c: Revert change, due to performance regression it causes on
25803         SPEC because it's slightly more conservative (sigh, I hate
25804         edge-based LCM).
25805
25806 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
25807
25808         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
25809
25810 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
25811
25812         * doc/cppinternals.texi: Update.
25813
25814 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
25815
25816         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
25817         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
25818         negatives.
25819         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
25820         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
25821         kludge for pre-october-14th mmix versions to handle new-found bug
25822         with PUSHJ/PUSHGO and the register stack.
25823         * config/mmix/mmix.h (struct machine_function): Rename member
25824         has_call_value_without_parameters to has_call_without_parameters.
25825         All referers changed.
25826         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
25827         TARGET_MASK_BRANCH_PREDICT): New macros.
25828         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
25829         -mno-reg-stack-fill-bug-workaround.
25830         * config/mmix/mmix.md ("call"): Set struct machine member
25831         has_call_without_parameters.
25832
25833 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
25834
25835         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
25836
25837 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
25838
25839         * cfgcleanup.c: Include tm_p.h
25840         (mark_effect): Fix handling of hard register; fix handling of SET
25841
25842 2002-01-04  Kazu Hirata  <kazu@hxi.com>
25843
25844         * config/h8300/h8300.md (anonymous patterns): Check that
25845         operands are registers before using REGNO on them.
25846
25847 2002-01-03  Roland McGrath  <roland@frob.com>
25848
25849         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
25850
25851 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
25852
25853         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
25854         * c-common.h (genrtl_expr_stmt_value): Likewise.
25855         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
25856         (expand_expr_stmt_value): Add maybe_last argument.
25857         Don't warn about statement with no effect if it is the last statement
25858         in expression statement.
25859         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
25860         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
25861         expand_expr_stmt_value.
25862         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
25863         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
25864         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
25865         as maybe_last to expand_expr_stmt_value.
25866
25867 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
25868
25869         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
25870         be passed in, do not build it.
25871         (c_begin_if_stmt): New function.
25872         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
25873         * c-common.h (c_expand_start_cond): Update prototype.
25874         (c_begin_if_stmt): Prototype new function.
25875         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
25876         * c-parse.in (if_prefix): Use c_begin_if_stmt,
25877         c_begin_while_stmt and c_finish_while_stmt_cond.
25878
25879 2002-01-04  William Cohen  <wcohen@redhat.com>
25880
25881         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
25882         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
25883         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
25884         * config/pa/som.h (ASM_FILE_START): Likewise.
25885
25886 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
25887
25888         * lcm.c: Include df.h.
25889         Add available_transfer_function prototype.
25890         (compute_available): Rework to use iterative dataflow framework.
25891         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
25892         with bb_info in df.h
25893         (available_transfer_function): New function.
25894
25895         * Makefile.in (lcm.o): add df.h to dependencies.
25896
25897 2002-01-04  Richard Henderson  <rth@redhat.com>
25898
25899         * config/alpha/alpha.c (some_operand): Accept HIGH.
25900         (input_operand): Likewise; accept simple references to globals.
25901         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
25902         (alpha_const_double_ok_for_letter_p): Likewise.
25903         (alpha_extra_constraint): Likewise.
25904         (alpha_preferred_reload_class): Likewise.  Do not force
25905         symbolic constants to memory.
25906         (alpha_legitimate_address_p): Accept simple references
25907         to small_symbolic_operand.
25908         (alpha_legitimize_address): New arg scratch.  Be prepared to be
25909         called when no_new_pseudos.  Emit simple symbolic references.
25910         Split integers into low, high, and rest.
25911         (alpha_expand_mov): Use alpha_legitimize_address.
25912         (some_small_symbolic_mem_operand): New.
25913         (split_small_symbolic_mem_operand): New.
25914         * config/alpha/alpha-protos.h: Update.
25915         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
25916         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
25917         (EXTRA_CONSTRAINT): Likewise.
25918         (PREFERRED_RELOAD_CLASS): Likewise.
25919         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
25920         (PREDICATE_CODES): Update.
25921         * config/alpha/alpha.md: New post-reload splitters to convert
25922         simplfied symbolic operands to the form that references $29.
25923         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
25924         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
25925
25926 2002-01-03  Richard Henderson  <rth@redhat.com>
25927
25928         * local-alloc.c (function_invariant_p): Update commentary.
25929
25930 2002-01-04  H.J. Lu <hjl@gnu.org>
25931
25932         * toplev.c (rest_of_compilation): Fix a typo when calling
25933         cleanup_cfg.
25934
25935 2002-01-03  Kazu Hirata  <kazu@hxi.com>
25936
25937         * c-common.c: Fix formatting.
25938         * diagnostic.c: Likewise.
25939         * doloop.c: Likewise.
25940         * dwarf2out.c: Likewise.
25941
25942 2002-01-03  Kazu Hirata  <kazu@hxi.com>
25943
25944         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
25945         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
25946
25947 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
25948
25949         * cpperror.c: Update comments and copyright.
25950         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
25951         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
25952
25953 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
25954
25955         * collect2.c (main): Use strcmp when testing for "-shared".
25956
25957 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
25958
25959         * cppmacro.c: Don't include intl.h.  Update comments.
25960         (new_number_token): Allocate enough buffer for 64-bit unsigned
25961         integers; update prototype.
25962         * cppmain.c: Update comments.
25963
25964 2002-01-03  William Cohen  <wcohen@redhat.com>
25965
25966         * function.h (struct function): Add profile.
25967         (current_function_profile): New.
25968         doc/extend.texi: Update documentation.
25969         * final.c (final_start_function): Use current_function_profile
25970         instead of profile_flag.
25971         (profile_after_prologue): Likewise.
25972         * function.c (expand_function_start): Likewise.
25973         (expand_function_start): Likewise.
25974         * config/alpha/alpha.c (direct_call_operand):
25975         (alpha_does_function_need_gp): Likewise.
25976         (alpha_expand_prologue): Likewise.
25977         * config/arm/arm.c (arm_expand_prologue): Likewise.
25978         thumb_expand_prologue: Likewise.
25979         * config/d30v/d30v.c (d30v_stack_info): Likewise.
25980         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
25981         (fr30_expand_prologue): Likewise.
25982         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
25983         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
25984         * config/i386/i386.h (FINALIZE_PIC): Likewise.
25985         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
25986         * config/i960/i960.c (i960_output_function_prologue): Likewise.
25987         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
25988         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
25989         (m32r_expand_prologue): Likewise.
25990         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
25991         (m88k_expand_prologue): Likewise.
25992         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
25993         * config/mips/mips.c (compute_frame_size): Likewise.
25994         (mips_expand_prologue): Likewise.
25995         (mips_can_use_return_insn): Likewise.
25996         * config/pa/elf.h (ASM_FILE_START): Likewise.
25997         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
25998         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
25999         * config/pa/som.h (ASM_FILE_START): Likewise.
26000         * config/romp/romp.c (romp_using_r14): Likewise.
26001         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
26002         (rs6000_stack_info): Likewise.
26003         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
26004         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
26005         * config/v850/v850.c (compute_register_save_size): Likewise.
26006
26007 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
26008
26009         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
26010         gen_lowpart_common fails, use gen_lowpart_SUBREG.
26011
26012 2002-01-03  Turly O'Connor  <turly@apple.com>
26013
26014         * darwin.c (machopic_output_possible_stub_label): Don't generate
26015         stub routines for pseudo-stubs which we've just defined.
26016
26017 2002-01-03  Kazu Hirata  <kazu@hxi.com>
26018
26019         * builtins.c: Fix formatting.
26020         * c-typeck.c: Likewise.
26021         * combine.c: Likewise.
26022         * expr.c: Likewise.
26023         * loop.c: Likewise.
26024
26025 2002-01-03  Andreas Schwab  <schwab@suse.de>
26026
26027         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
26028         and return true if _cpp_push_next_buffer pushed a new include
26029         file.
26030         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
26031         _cpp_pop_file_buffer did not push a new file.
26032         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
26033
26034 2002-01-02  Eric Christopher  <echristo@redhat.com>
26035
26036         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
26037         FIND_REG_INC_NOTE call. Update copyright.
26038         * loop.c (canonicalize_condition): Ditto.
26039         * reorg.c (delete_scheduled_jump): Ditto.
26040
26041 2002-01-03  Kazu Hirata  <kazu@hxi.com>
26042
26043         * gcse.c: Fix formatting.
26044
26045 2002-01-03  Graham Stott  <grahams@redhat.com>
26046
26047         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
26048         forward defs for struct tags rtx_def, union_tree, rtvec_def
26049         also output corresponding typedefs for rtx, tree, and rtvec.
26050
26051         * system.h: Move forward defs for struct tags rtx_def, union_tree,
26052         rtvec_def along with corresponding typedefs for rtx, tree, and
26053         rtvec to config.h, hconfig.h, tconfig.h.
26054
26055 2002-01-03  Graham Stott  <grahams@redhat.com>
26056
26057         * tree.h: Update copyright date.
26058         (IS_EXPR_CODE_CLASS): Add parenthesis.
26059         (TREE_SET_CODE): Add whitespace.
26060         (TREE_CHECK): Add parenthesis.
26061         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
26062         (CST_OR_CONSTRUCTOR_CHECK):
26063         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
26064         (TREE_SYMBOL_REFERENCED): Whitespace.
26065         (INT_CST_LT): Likewise.
26066         (INT_CST_LT_UNSIGNED): Likewise.
26067         (tree_real_cst): Unwrap comment.
26068         (tree_string): Likewise.
26069         (tree_complex): Likewise.
26070         (IDENTIFIER_POINTER): correct cast.
26071         (SAVE_EXPR_CONTEXT): Whitespace.
26072         (EXPR_WFL_FILENAME_NODE): Likewise.
26073         (EXPR_WFL_FILENAME): Remove parenthesis.
26074         (DECL_ORIGIN): Add parenthesis.
26075         (DECL_FROM_INLINE): Use NULL_TREE.
26076         (build_int_2): Whitespace.
26077         (build_type_variant): Add parenthesis.
26078
26079         * gcc/jcf-parse.c: Update copyright date.
26080         (yyparse): Constify resource_filename.
26081
26082 2002-01-03  Graham Stott  <grahams@redhat.com>
26083
26084         * rtl.h: Update copyright date.
26085         (RTL_CHECK1): Wrap long line.
26086         (RTL_CHECK2): Likewise.
26087         (RTL_CHECKC1): Wrap long line and whitespace.
26088         (RTL_CHECKC2): Likewise.
26089         (XWINT): Whitespace.
26090         (XINT): Likewise.
26091         (XSTR): Likewise.
26092         (XEXP): Likewise.
26093         (XVEC): Likewise.
26094         (XMODE): Likewise.
26095         (XBITMAP): Likewise.
26096         (XTREE): Likewise.
26097         (XBBDEF): Likewise.
26098         (XTMPL): Likewise.
26099         (X0WINT): Likewise.
26100         (X0INT):Likewise.
26101         (X0UINT): Likewise.
26102         (X0STR): Likewise.
26103         (X0EXP): Likewise.
26104         (X0VEC): Likewise.
26105         (X0MODE): Likewise.
26106         (X0BITMAP): Likewise.
26107         (X0TREE): Likewise.
26108         (X0BBDEF): Likewise.
26109         (X0ADVFLAGS): Likewise.
26110         (X0CSELIB): Likewise.
26111         (X0MEMATTR): Likewise.
26112         (XCWINT): Likewise.
26113         (XCINT): Likewise.
26114         (XCUINT): Likewise.
26115         (XCSTR): Likewise.
26116         (XCEXP): Likewise.
26117         (XCVEC): Likewise.
26118         (XCMODE): Likewise.
26119         (XCBITMAP): Likewise.
26120         (XCTREE): Likewise.
26121         (XCBBDEF): Likewise.
26122         (XCADVFLAGS): Likewise.
26123         (XCCSELIB): Likewise.
26124         (XC2EXP): Likewise.
26125         (INSN_UID): Likewise.
26126         (PREV_INSN): Likewise.
26127         (PATTERN): Likewise.
26128         (INSN_CODE): Likewise.
26129         (PUT_REG_NOTE_KIND): Likewise.
26130         (CODE_LABEL_NUMBER): Likewise.
26131         (NOTE_SOURCE_FILE): Likewise.
26132         (NOTE_BLOCK): Likewise.
26133         (NOTE_EH_HANDLER): Likewise.
26134         (NOTE_RANGE_INFO): Likewise.
26135         (NOTE_LIVE_INFO): Likewise.
26136         (NOTE_BASIC_BLOCK): Likewise.
26137         (NOTE_EXPECTED_VALUE): Likewise.
26138         (NOTE_LINE_NUMBER): Likewise.
26139         (LABEL_NAME): Likewise.
26140         (LABEL_NUSES): Likewise.
26141         (LABEL_ALTERNATE_NAME): Likewise.
26142         (ADDRESSOF_DECL): Likewise.
26143         (JUMP_LABEL): Likewise.
26144         (LABEL_NEXTREF): Likewise.
26145         (REGNO): Likewise.
26146         (ORIGINAL_REGNO: Likewise.
26147         (HARD_REGISTER_NUM_P): Add parenthesis.
26148         (SUBREG_REG): Whitespace.
26149         (SUBREG_BYTE): Likewise.
26150         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
26151         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
26152         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
26153         (ASM_OPERANDS_INPUT_VEC): Likewise.
26154         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
26155         (ASM_OPERANDS_INPUT): Likewise.
26156         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
26157         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
26158         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
26159         (ASM_OPERANDS_INPUT_MODE): Likewise.
26160         (ASM_OPERANDS_SOURCE_FILE): Likewise.
26161         (ASM_OPERANDS_SOURCE_LINE): Likewise.
26162         (MEM_SET_IN_STRUCT_P): Minor reformat.
26163         (TRAP_CONDITION): Whitespace.
26164         (TRAP_CODE): Likewise.
26165         (COND_EXEC_TEST): Likewise.
26166         (COND_EXEC_CODE): Likewise.
26167         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
26168         (PHI_NODE_P): Add parenthesis.
26169         (plus_constant): Whitespace and add parenthesis.
26170
26171 2002-01-03  Kazu Hirata  <kazu@hxi.com>
26172
26173         * config/avr/avr.c: Fix comment typos.
26174         * config/c4x/c4x.md: Likewise.
26175         * config/dsp16xx/dsp16xx.h: Likewise.
26176         * config/dsp16xx/dsp16xx.md: Likewise.
26177         * config/i386/i386.md: Likewise.
26178         * config/ia64/ia64.c: Likewise.
26179         * config/m32r/m32r.h: Likewise.
26180         * config/m68hc11/m68hc11.md: Likewise.
26181         * config/mmix/mmix.c: Likewise.
26182         * config/mn10200/mn10200.c: Likewise.
26183         * config/romp/romp.c: Likewise.
26184         * config/sh/sh.c: Likewise.
26185         * config/stormy16/stormy16.c: Likewise.
26186         * config/stormy16/stormy16.h: Likewise.
26187         * config/stormy16/stormy16.md: Likewise.
26188
26189 2002-01-03  Graham Stott  <grahams@redhat.com>
26190
26191         * loop.h: Update copyright date.
26192         (LOOP_MOVABLES): Fix typo.
26193         (LOOP_REGS): Likewise.
26194         (LOOP_IVS): Likewise.
26195
26196 2002-01-03  Graham Stott  <grahams@redhat.com>
26197
26198         * cppinit.c: Update copyright date.
26199         Don't include output.h
26200         * Makefile.in: Update copyright date.
26201         Update dependency.
26202
26203 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
26204
26205         PR c/5226
26206         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
26207         (-pthread) Add to RS/6000 options.
26208
26209 2002-01-02  Kazu Hirata  <kazu@hxi.com>
26210
26211         * except.c: Fix comment typos.
26212         * loop.c: Likewise.
26213         * varasm.c: Likewise.
26214         * doc/tm.texi: Fix a typo.
26215
26216 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
26217
26218         * c-typeck.c (output_init_element): Allow initializing static storage
26219         duration objects with compound literals.
26220
26221 2002-01-02  Richard Henderson  <rth@redhat.com>
26222
26223         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
26224         after abusing it.
26225
26226 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
26227
26228         * gcc.c (default_compilers): Const-ify.
26229         * mips-tdump.c (stab_names): Likewise.
26230         * mips-tfile.c (map_coff_types, map_coff_storage,
26231         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
26232         pseudo_ops_t, pseudo_ops): Likewise.
26233         * protoize.c (default_include): Likewise
26234
26235         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
26236         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
26237         Add array size in declaration.
26238         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
26239         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
26240         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
26241         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
26242         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
26243         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
26244         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
26245         emtens, make_nan): Const-ify.
26246         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
26247         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
26248
26249 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
26250
26251         * config.gcc (ia64-*-*): Set extra_headers.
26252         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
26253         * config/alpha/t-osf: Remove.
26254         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
26255
26256 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
26257
26258         * config/rs6000/t-aix43: Revert previous change.
26259
26260 2002-01-02  Jason Merrill  <jason@redhat.com>
26261
26262         * c-decl.c (c_expand_body): Call outlining_inline_function when
26263         emitting an inline function out of line.
26264
26265 2002-01-02  Richard Henderson  <rth@redhat.com>
26266
26267         * dwarf2out.c (limbo_die_node): Add created_for member.
26268         (new_die): New argument created_for.  Update all callers.
26269         (mark_limbo_die_list): New.
26270         (dwarf2out_init): Register limbo_die_list as a root.
26271         (dwarf2out_finish): Force insert limbo dies into their function
26272         context.
26273
26274 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
26275
26276         PR c++/5089
26277         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
26278
26279 2002-01-02  Kazu Hirata  <kazu@hxi.com>
26280
26281         * config/h8300/fixunssfsi.c: Update copyright.
26282         Fix comment typos.
26283         Fix formatting.
26284         * config/h8300/h8300.c: Update copyright.
26285         Eliminate warnings.
26286
26287 2002-01-02  Kazu Hirata  <kazu@hxi.com>
26288
26289         * config/romp/romp.c: Fix comment formatting.
26290         * config/romp/romp.h: Likewise.
26291         * config/romp/romp.md: Likewise.
26292         * config/s390/s390.c: Likewise.
26293         * config/stormy16/stormy16.c: Likewise.
26294         * config/stormy16/stormy16.h: Likewise.
26295
26296 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
26297
26298         * c-common.h (genrtl_expr_stmt_value): Declare.
26299         * c-semantics.c (genrtl_goto_stmt): Redirect to...
26300         (genrtl_goto_stmt_value): ... this new function.  Pass new
26301         argument down to expand_expr_stmt_value, taking
26302         TREE_ADDRESSABLE into account.
26303         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
26304         STMT_EXPR as addressable, i.e., one whose result we want.
26305         * expr.c (expand_expr): Don't save expression statement value
26306         of labeled_blocks or loop_exprs.
26307         * stmt.c (expand_expr_stmt): Redirect to...
26308         (expand_expr_stmt_value): ... this new function.  Use new
26309         argument to tell whether to save expression value.
26310         (expand_end_stmt_expr): Reset last_expr_type and
26311         last_expr_value if we don't have either.
26312         * tree-inline.c (declare_return_variable): Mark its use
26313         statement as addressable.
26314         * tree.h: Document new use of TREE_ADDRESSABLE.
26315         (expand_expr_stmt_value): Declare.
26316
26317 2002-01-01  Tom Rix  <trix@redhat.com>
26318
26319         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
26320         rs6000_emit_allocate_stack.
26321
26322 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
26323
26324         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
26325         ${srcdir}/ginclude/ to every entry in extra_headers.
26326         * configure: Regenerate.
26327         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
26328         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
26329         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
26330         * ginclude/proto.h: Rename to config/convex/proto.h.
26331
26332 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
26333
26334         * attribs.c (handle_vector_size_attribute): Use host_integerp
26335         and tree_int_cst; remove warnings.
26336         * caller-save.c (insert_restore): Add cast to get rid of warning.
26337         (insert_save): Likewise.
26338         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
26339         * regmove.c (find_matches): Add temporary var to kill a warning.
26340
26341 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
26342
26343         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
26344         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
26345         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
26346         (vms-dwarf2eh.o): Add Makefile rule.
26347         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
26348         * config/alpha/vms-dwarf2eh.asm: New file.
26349
26350         * gcc.c (delete_if_ordinary): Delete all versions.
26351
26352 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
26353
26354         * config/mmix/mmix.md: Update FIXME to not mention
26355         define_constants.
26356         (MMIX_rJ_REGNUM): New define_constants constant.
26357         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
26358         "*movdicc_real"): Adjust contraints formatting.
26359         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
26360         for branch prediction.
26361         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
26362         output template.
26363         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
26364         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
26365         number.  Delete related FIXMEs.
26366         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
26367         from number to MMIX_rJ_REGNUM.
26368         (TARGET_MASK_BRANCH_PREDICT): New.
26369         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
26370         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
26371         value.  Add -mbranch-predict and -mno-branch-predict.
26372         (TARGET_VERSION): Drop date.
26373         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
26374         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
26375         for finding out global symbols.
26376         (mmix_asm_output_labelref): Revert condition for global symbol.
26377         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
26378         (mmix_print_operand_punct_valid_p): A '+' is valid.
26379
26380 See ChangeLog.6 for earlier changes.