OSDN Git Service

* c-common.c (c_common_init): Override cpplib's default
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
2
3         * c-common.c (c_common_init): Override cpplib's default
4         warn_long_long setting.
5         * c-lex.c (lex_number): Replace with interpret_integer,
6         interpret_float, narrowest_unsigned_type and
7         narrowest_signed_type, taking advantage of the new
8         cpplib functionality.
9         * cpperror.c (_cpp_begin_message): If a warning is turned
10         into an error, avoid printing "warning:".
11         * cppexp.c (cpp_num_sign_extend): New.
12         * cppinit.c: Update comment.
13         * cpplib.h (cpp_num_sign_extend): New.
14         * tree.h: Update comment.
15
16 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
17
18         * diagnostic.h (struct diagnostic_context):  Add new member
19         internal_error. 
20         (internal_error_function): Remove declaration.
21         * diagnostic.c (internal_error_function): Remove definition..
22         (internal_error): Adjust use.
23
24 2002-06-02  Richard Henderson  <rth@redhat.com>
25
26         * rtl.h (CC0_P): New.
27         * gcse.c (cprop_jump): Use it with single_set.  Tweak dump text.
28         (cprop_insn): Allow any mode register; use CC0_P.  CSE out single_set.
29         (bypass_block): Save old dest block for dump text.
30         (bypass_conditional_jumps): Allow any mode register; use CC0_P.
31         Allow only true SET insns, not single_set.
32
33 2002-06-02  Gabriel Dos Reis  <gdr@codesourcery.com>
34
35         * diagnostic.c (diagnostic_finish): Rename to output_flush.
36         (clear_disgnostic_info): Rename to output_clear_data.  Use false
37         instead of 0 for boolean value.
38         Adjust function call throughout.
39
40 Sun Jun  2 19:15:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
41
42         * cfgrtl.c (commit_one_edge_insertion): Fix warning.
43         * gcse.c (bypass_conditional_jumps): CSE out single_set call.
44
45 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
46
47         * d30v.h (CPP_PREDEFINES): Replace with
48         (TARGET_CPU_CPP_BUILTINS): New.
49
50 2002-06-02  Roger Sayle  <roger@eyesopen.com>
51
52         * config/alpha/alpha.h [ASM_OUTPUT_LABELREF]: Fix typo.
53
54 Sun Jun  2 12:11:52 CEST 2002  Jan Hubicka  <jh@suse.cz>
55
56         * gcse.c (bypass_conditional_jumps): Use single set to obtain set.
57
58 2002-06-02  Richard Henderson  <rth@redhat.com>
59
60         * rtlanal.c (volatile_refs_p): Not automatically true for CALL.
61
62 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
63
64         Support for C++ constructors/destructors.
65         * config/avr/avr.c (avr_output_function_epilogue): Jump to exit()
66         instead of looping if main() returns.
67         (asm_file_start): Output global symbols that cause .data and .bss
68         initialization code to be linked in, unconditionally for now.
69         (avr_asm_out_ctor, avr_asm_out_dtor): New functions.
70         * config/avr/avr.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): New.
71         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
72         (LIBSTDCXX): New.
73         * config/avr/libgcc.S (_exit): Split in .fini9 and .fini0 sections.
74         (__tablejump__): New.
75         (__do_copy_data, __do_clear_bss): New.
76         (__do_global_ctors, __do_global_dtors): New.
77         * config/avr/t-avr (LIB1ASMFUNCS): Add _copy_data, _clear_bss,
78         _ctors, _dtors.
79
80 2002-06-02  Neil Booth  <neil@daikokuya.demon.co.uk>
81
82         * c4x/c4x.h (TARGET_CPU_CPP_BUILTINS): New.
83         (CPP_SPEC, CPP_PREDEFINES): Kill.
84         * c4x/rtems.h (CPP_PREDEFINES): Kill.
85         (TARGET_OS_CPP_BUILTINS): New.
86
87 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
88
89         * Makefile.in (tracer.o): New.
90         * params.def (TRACER_*): New options.
91         * rtl.h (tracer): Declare.
92         * timevar.def (TV_TRACER): New.
93         * toplev.c (dump_file_index): Add DFI_tracer.
94         (dump_file_info): Add tracer.
95         (flag_tracer): New.
96         (lang_indepdenent_options): Add tracer.
97         (rest_of_compilation): Call tracer.
98         * tracer.c: New file.
99         * invoke.texi (-ftracer): Document.
100         (--param tracer-*): Document.
101
102 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
103
104         * tree-inline.c (expand_call_inline): Make the statement
105         expression we generate have a COMPOUND_STMT.    
106
107 2002-06-01  Roger Sayle  <roger@eyesopen.com>
108
109         * gcse.c (cprop_cc0_jump): Function deleted.
110         (cprop_jump): Take an additional argument which is the possibly
111         NULL cc setting insn immediately before the conditional jump.
112         When a MODE_CC set is present, substitute it into the JUMP_INSN
113         before attempting the constant propagation.
114         (cprop_insn):  Recognize cc setters followed by conditional jumps
115         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
116         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
117         (find_bypass_set): New function based upon find_avail_set used by
118         cprop, but finds constant expressions available at the end of
119         basic blocks.
120         (bypass_block): New function.  Given a basic block that begins
121         with a conditional jump and multiple incoming edges, perform
122         the jump bypass optimization.
123         (bypass_conditional_jumps): New function.  Call bypass_block with
124         each suitable basic block in the CFG using a simple single pass.
125
126 2002-06-01  Roger Sayle  <roger@eyesopen.com>
127
128         * tree.c (real_minus_onep): New function to test for -1.0.
129         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
130
131 2002-06-01  Roger Sayle  <roger@eyesopen.com>
132
133         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
134         and "!p && !q" into "(p|q) == 0" under suitable conditions.
135
136 2002-06-01  Andreas Jaeger  <aj@suse.de>
137
138         * cppexp.c (cpp_classify_number): Cast precission to int for
139         correct printf format.
140
141 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
142
143         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
144         expected, but don't really exist: atmega83, atmega85, attiny10.
145         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
146         emulations for all devices.
147         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
148         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
149
150 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
151
152         * config/h8300/h8300-protos.h: Add a prototype for
153         h8300_shift_needs_scratch_p.
154         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
155         * config/h8300/h8300.h (OK_FOR_R): New.
156         (OK_FOR_S): Likewise.
157         (OK_FOR_T): Likewise.
158         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
159         * config/h8300/h8300.md (anonymous shift patterns): Use
160         constraints R, S, and T.
161
162 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
163
164         * basic-block.h (struct basic_block_def): New field loop_father.
165         (BB_VISITED): New flag.
166         (struct loop): New field pred, removed field shared.
167         (struct loops): New field parray.
168         (LOOP_EXITS_DOMS): Removed.
169         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
170         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
171         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
172         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
173         verify_loop_structure): Declare.
174         * cfg.c (entry_exit_blocks): Initialize loop_father field.
175         * cfganal.c (dfs_enumerate_from): New function.
176         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
177         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
178         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
179         flow_loop_dump, flow_loops_dump, flow_loops_free,
180         flow_loop_tree_node_add, flow_loop_level_compute,
181         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
182         flow_loop_outside_edge_p): Modified for new infrastructure.
183         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
184         redirect_edge_with_latch_update, flow_loop_free): New static functions.
185         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
186         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
187         find_common_loop, verify_loop_structure, loop_latch_edge,
188         loop_preheader_edge): New functions.
189         (flow_loops_cfg_dump): Do not show dominators, as this information
190         does not remain up to date long.
191         (flow_loops_find): Store results in new format.
192         * predict.c (propagate_freq, estimate_probability,
193         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
194         infrastructure.
195
196 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
197
198         * except.c (nothrow_function_p): Walk epilogue delay list
199         checking the insn, not the chain for potential throws.
200
201 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
202
203         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
204         (install): Refer to install-cpp directly.
205         (uninstall-cpp): Folded into uninstall rule.
206         * configure.in: Delete all code relating to --disable-cpp.
207         * configure: Regenerate.
208         * config/t-install-cpp: Delete.
209
210 2002-05-31  Richard Henderson  <rth@redhat.com>
211
212         * configure.in (HAVE_AS_TLS): Add alpha tests.
213         * configure: Rebuild.
214         * config/alpha/alpha.c (TARGET_AS_TLS): New.
215         (alpha_tls_size, alpha_tls_size_string): New.
216         (overide_options): Set it.  Always install machine_status hooks.
217         (input_operand): Accept got tls predicates.
218         (local_symbol_p): Merge into ...
219         (local_symbolic_operand): ... here.  Reject tls symbols.
220         (global_symbolic_operand): Likewise.
221         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
222         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
223         (tp16_symbolic_operand, tp32_symbolic_operand): New.
224         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
225         (alpha_encode_section_info): Handle TLS symbols.
226         (alpha_strip_name_encoding): Likewise.
227         (alpha_legitimate_address_p): Likewise.
228         (alpha_legitimize_address): Likewise.
229         (alpha_expand_mov): Early exit to avoid nop moves.
230         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
231         (alpha_init_machine_status, alpha_mark_machine_status,
232         alpha_free_machine_status): Always define.
233         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
234         (print_operand, print_operand_address): Add TLS relocs.
235         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
236         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
237         (TARGET_SWITCHES): Add -mtls-kernel.
238         (alpha_tls_size, alpha_tls_size_string): New.
239         (TARGET_OPTIONS): Add -mtls-size=.
240         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
241         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
242         (ASM_OUTPUT_LABELREF): Skip %.
243         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
244         (PREDICATE_CODES): Update.
245         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
246         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
247         UNSPEC_TP, UNSPECV_SET_TP): New.
248         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
249         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
250         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
251         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
252         (call_value_osf_2_er): Accept anything as op4.
253         * config/alpha/alpha-protos.h: Update.
254         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
255
256 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
257
258         * cppinit.c (append_include_chain): Always pay attention to
259         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
260         marker on argument.
261
262 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
263
264         * target.h: Fix formatting.
265         * timevar.h: Likewise.
266         * tlink.c: Likewise.
267         * toplev.c: Likewise.
268         * toplev.h: Likewise.
269         * tree.c: Likewise.
270         * tree-dump.h: Likewise.
271         * tree.h: Likewise.
272         * tree-inline.h: Likewise.
273         * unroll.c: Likewise.
274         * unwind-dw2.c: Likewise.
275         * unwind-dw2-fde.c: Likewise.
276         * unwind-dw2-fde-glibc.c: Likewise.
277         * unwind-dw2-fde.h: Likewise.
278         * unwind.h: Likewise.
279         * unwind-sjlj.c: Likewise.
280         * varasm.c: Likewise.
281         * varray.h: Likewise.
282         * vmsdbg.h: Likewise.
283         * vmsdbgout.c: Likewise.
284         * xcoffout.h: Likewise.
285
286 2002-05-31  Igor Shevlyakov <igor@microunity.com>
287
288         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
289         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
290
291 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
292
293         * gcc.c (cpp_unique_options): Remove "-d" options.
294         (cpp_debug_options): New spec string.
295         (default_compilers): Use it.
296         * objc/lang-specs.h: Likewise.
297
298 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
299
300         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
301         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
302         * gcc/mklibgcc.in: Likewise.
303         * gcc/config/arc/t-arc: Likewise.
304         * gcc/configure.in: Likewise.
305         * gcc/configure: Regenerate.
306
307 2002-05-31  Stan Shebs  <shebs@apple.com>
308             Turly O'Connor  <turly@apple.com>
309
310         * c-decl.c (struct binding_level): Change int field n_incomplete
311         to tree list incomplete_list.
312         (clear_binding_level): Init field with NULL.
313         (pushdecl): Add incomplete type to list.
314         (mark_binding_level): Mark the incomplete list.
315         (finish_struct): Scan the incomplete list for types instead
316         of all decls in the current binding level.
317
318 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
319
320         * pa.c (output_millicode_call): Add missing '%' characters.
321         (output_call): Likewise.
322
323 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
324
325         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
326         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
327
328 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
329
330         * varasm.c (mark_constant_pool): Walk epilogue delay list
331         checking the insn, not the chain for potential constants.
332
333 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
334
335         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
336
337 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
338
339         * i386.c (classify_argument): Properly handle base types.
340
341         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
342         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
343         registers.
344
345 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
346
347         * gcse.c (gcse_emit_move_after): New.
348         (pre_delete, hoist_store): Use it.
349
350         * reload1.c (emit_input_reload_insns): Use constrain_operands
351         instead of constraint_accepts_reg_p to verify optimization.
352         (constraint_accepts_reg_p): Kill
353
354         * reload1.c (reload_cse_delete_noop_set): Kill.
355         (reload_cse_simplify): use delte_insn_and_edges.
356
357 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
358
359         * cfgloop.c (flow_loops_find): Initialize first and last fields
360         correctly.
361
362 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
363
364         * c-common.c (builtin_define_std): Correct logic.
365
366 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
367
368         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
369         (output_call): Likewise.
370
371 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
372
373         * pa.c: Move output.h include after tree.h include.
374         (pa_asm_output_mi_thunk): Constify identifier lab.
375
376 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
377
378         * config/ns32k/ns32k.h: Define named constants for the
379         bits in target_flags and use them.
380         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
381
382 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
383
384         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
385         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
386         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
387         default scheduling model.
388         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
389         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
390         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
391         * doc/install.texi (hppa*-*-*): Document default scheduling.
392
393 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
394
395         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
396
397 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
398
399         * config.gcc (ns32k-*-netbsd*): Set tm_file to
400         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
401         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
402         netbsd.h, or netbsd-aout.h.
403
404 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
405
406         * longlong.h (count_trailing_zeros): Add missing \, and clean up
407         whitespace in __ns32000__ case.
408
409 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
410
411         * expr.c (expand_expr): Output partially zeroed out vectors with
412         output_constant_def.
413
414 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
415
416         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
417         (sh-*-netbsdelf*)
418         (shl*-*-netbsdelf*): New targets.
419         * config/sh/netbsd-elf.h: New file.
420
421 2002-05-30  Richard Henderson  <rth@redhat.com>
422             Eric Botcazou  <ebotcazou@multimania.com>
423
424         PR optimization/6822
425         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
426         to unsigned int for op1 comparisons.  Use gen_int_mode.
427
428 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
429
430         * expmed.c (const_mult_add_overflow_p): New.
431         * expr.h: Declare it.
432         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
433         Don't eliminate the biv if the giv has a constant multiplier and
434         the rhs argument of the comparison does satisfy the predicate.
435         Use expand_mult_add to compute the replacement constant.
436
437 2002-05-30  Osku Salerma  <osku@iki.fi>
438
439         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
440         (c_common_get_alias_set): Handle it.
441         * doc/extend.texi: Document it.
442
443 2002-05-30  Richard Henderson  <rth@redhat.com>
444
445         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
446         * toplev.c (process_options): Don't check it.
447         * doc/tm.texi: Don't document it.
448         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
449         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
450         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
451         frame pointer optimization if current_function_profile.
452
453 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
454
455         * langhooks.c: Fix formatting.
456         * langhooks.h: Likewise.
457         * lcm.c: Likewise.
458         * libgcc2.c: Likewise.
459         * lists.c: Likewise.
460         * local-alloc.c: Likewise.
461         * loop.c: Likewise.
462         * loop.h: Likewise.
463
464 2002-05-30  Marc Espie <espie@openbsd.org>
465
466         * config.gcc (sparc64-*-openbsd*): New.
467         * config/sparc/openbsd1-64.h: New.
468         * config/sparc/openbsd64.h: New.
469
470 2002-05-30  Jeff Law <law@redhat.com>
471
472         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
473         a dead insn with a REG_RETVAL note when the entire libcall is not
474         dead and remove the associated REG_LIBCALL note at the same time.
475
476 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
477
478         * lcm.c (output.h): #include.
479         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
480         as an ordinary block.
481         (optimize_mode_switching): Don't pretend that the exit block is
482         an ordinary block, or handle sucessors of entry block specially.
483         Instead, split edges from entry block and to exit block, and
484         put a computing definition on the thus gained post-entry-block,
485         and a need on the pre-exit-block.
486
487 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
488
489         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
490         * rtl.texi: Document 'B'
491
492 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
493
494         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
495         at run-time.
496         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
497
498 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
499
500         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
501         const0_rtx instead of NULL_RTX when in error.
502         (altivec_expand_abs_builtin): Same.
503         (rs6000_expand_binop_builtin): Same.
504         (altivec_expand_predicate_builtin): Same.
505         (altivec_expand_stv_builtin): Same.
506         (rs6000_expand_ternop_builtin): Same.
507         (altivec_expand_builtin): Same.
508
509 2002-05-29  David S. Miller  <davem@redhat.com>
510
511         * rtl.h (clear_emit_caches): Delete.
512         * integrate.c (output_inline_function): Don't call it.
513         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
514         (clear_emit_caches): Delete definition.
515         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
516
517 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
518
519         * config/mmix/mmix.c: Include real.h.
520         (mmix_constant_address_p): Remove redundant test before switch.
521
522 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
523
524         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
525         only if not already defined.
526
527 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
528
529         * config/h8300/h8300-protos.h: Remove prototypes for
530         ok_for_bclr and small_power_of_two.
531         * config/h8300/h8300.c (small_power_of_two): Remove.
532         (ok_for_blcr): Likewise.
533         (fix_bit_operand): Make WHAT deal with an integer instead of a
534         constraint character.
535         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
536         (CONST_OK_FOR_P): Likewise.
537         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
538         CONST_OK_FOR_P any more.
539         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
540         of fix_bit_operand.
541         (iorqi3): Likewise.
542         (xorqi3): Likewise.
543
544 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
545
546         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
547         (CPP_PREDEFINES): Make sure this is undefined.
548         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
549         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
550         or -U__MIPSEB__ before defining one or the other.  Instead,
551         use %(subtarget_endian_default) if neither -EB nor -EL are
552         specified.
553         (SUBTARGET_EXTRA_SPECS): Define.
554         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
555         %(netbsd_cpp_spec).
556
557 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
558
559         * doc/md.texi (Patterns): Note pattern condition pitfall
560         for unnamed insn.
561
562 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
563
564         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
565         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
566         ternary operations from here...
567         (rs6000_expand_builtin): ...to here.
568         New argument expandedp.
569         Change all instances of altivec_expand_binop_builtin to
570         rs6000_expand_binop_builtin.
571         (altivec_expand_unop_builtin): Rename to
572         rs6000_expand_unop_builtin.
573         (altivec_expand_binop_builtin): Rename to
574         rs6000_expand_binop_builtin.
575         (altivec_expand_ternop_builtin): Rename to
576         rs6000_expand_ternop_builtin.
577
578 2002-05-29  Richard Henderson  <rth@redhat.com>
579
580         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
581         (TARGET_BI_ARCH): Likewise.
582         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
583         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
584         (TARGET_64BIT_DEFAULT): Default to 0.
585         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
586
587 2002-05-29  Richard Henderson  <rth@redhat.com>
588
589         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
590         (get_pc_thunk_name): New.
591         (output_set_got): Use it.
592         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
593         into linkonce sections.
594
595 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
596
597         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
598         (CPP_PREDEFINES): Make sure this is undefined.
599         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
600         (CPP_SUBTARGET_SPEC): Don't provide different versions for
601         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
602         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
603         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
604         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
605         (CPP_PREDEFINES): Make sure this is undefined.
606         (SUBTARGET_EXTRA_SPECS): Define.
607         (CPP_SPEC): Use %(netbsd_cpp_spec).
608
609 2002-05-29  Jeff Law <law@redhat.com>
610
611         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
612
613         * flow.c (propagate_one_insn): Do not remove a dead insn if it
614         contains a REG_RETVAL note.
615
616         * haifa-sched (sched_analyze): Remove another useless clearing
617         of SCHED_GROUP_P I missed yesterday.
618
619         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
620         * pa.c (pa_asm_output_mi_thunk): New function.
621         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
622
623 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
624             Marek Michalkiewicz  <marekm@amelek.gda.pl>
625
626         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
627         (avr_asm_only_p): Make non-static.
628         (enum avr_arch): Remove.
629         (avr_arch_types): New.
630         (avr_mcu_types): Update.
631         (avr_override_options): Use avr_arch_types table instead of switch.
632         * avr.h (CPP_PREDEFINES): Die.
633         (avr_base_arch_macro, avr_extra_arch_macro): New.
634         (TARGET_CPU_CPP_BUILTINS): New.
635         (CPP_SPEC, EXTRA_SPECS): Simplify.
636         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
637         CPP_AVR5_SPEC): Die.
638
639 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
640
641         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
642         NETBSD_OS_CPP_BUILTINS_AOUT.
643         (SUBTARGET_EXTRA_SPECS): Define.
644         (CPP_SPEC): Use %(netbsd_cpp_spec).
645
646 2002-05-29  Richard Henderson  <rth@redhat.com>
647
648         * config/i386/i386.c (ix86_output_function_epilogue): New.
649         (TARGET_ASM_FUNCTION_EPILOGUE): New.
650         (pic_label_name): Remove.
651         (pic_labels_used): New.
652         (ix86_asm_file_end): Emit one pc load stub for each register used.
653         (output_set_got): Generate deep pc load to any register.
654         (ix86_select_alt_pic_regnum): New.
655         (ix86_save_reg): Don't save pic register if we can find a valid
656         call-clobbered replacement.
657         (ix86_expand_prologue): If we found a valid replacement, renumber
658         pic_offset_table_rtx.
659         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
660         pic_offset_table_rtx after reload.
661         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
662         * config/i386/i386.md (set_got): Make insn, not expander.
663         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
664
665 2002-05-29  Richard Henderson  <rth@redhat.com>
666
667         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
668         alignment for alloca.
669
670 2002-05-29  Richard Henderson  <rth@redhat.com>
671
672         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
673         (print_operand_address): Only add rip for symbolic addresses
674         for which we do not have another relocation type.
675
676 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
677
678         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
679         (EXTRA_SPECS): Add netbsd_cpp_spec.
680         (CPP_SPEC): Use %(netbsd_cpp_spec).
681         (CPP_PREDEFINES): Remove.
682         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
683         (EXTRA_SPECS): Define.
684         (CPP_SPEC): Use %(netbsd_cpp_spec).
685         (CPP_PREDEFINES): Remove.
686
687 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
688
689         PR preprocessor/6844
690         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
691         NUL.
692
693 2002-05-29  Eric Christopher  <echristo@redhat.com>
694
695         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
696         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
697
698 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
699
700         * config/fr30/fr30.md: Remove previous restriction on splits.
701         Enforce conformance through gen_lowpart and cont_int_operand.
702         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
703         as the assembler does not support ".bss".
704
705 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
706
707         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
708         (CPP_PREDEFINES): Remove.
709         (SUBTARGET_EXTRA_SPECS): Define.
710         (CPP_SPEC): Use %(netbsd_cpp_spec).
711         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
712         (CPP_PREDEFINES): Remove.
713         (SUBTARGET_EXTRA_SPECS): Define.
714         (CPP_SPEC): Use %(netbsd_cpp_spec).
715         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
716         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
717         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
718         Add netbsd_cpp_spec.
719         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
720
721 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
722             Zack Weinberg <zack@codesourcery.com>
723
724         * cppexp.c (cpp_num): Move to cpplib.h.
725         (CPP_ERROR): Remove.
726         (interpret_float_suffix, interpret_int_suffix): New.
727         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
728         (cpp_classify_number, cpp_interpret_integer): New.
729         (interpret_number): Remove.
730         (eval_token): Update to use new routines.
731         * cpphash.h (cpp_num_part): Move to cpplib.h.
732         * cppinit.c (cpp_post_options): Set warn_long_long.
733         * cpplib.h (struct cpp_options): Add warn_long_long.
734         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
735         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
736         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
737         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
738         cpp_interpret_integer): New.
739
740 2002-05-29  Joel Sherrill <joel@OARcorp.com>
741
742         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
743
744 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
745
746         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
747         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
748         (CPP_SUBTARGET_SPEC): Define.
749         (SUBTARGET_EXTRA_SPECS): Define.
750         (CPP_SPEC): Remove.
751
752 2002-05-29  Chris Lattner  <sabre@nondot.org>
753
754         * ssa.c (rename_insn_1): Rename uses of undefined registers to
755         prevent confusion if/when the register is defined.
756
757 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
758
759         PR target/6838
760         * config/cris/cris.md: Fix typos and thinkos in comments.
761         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
762         second alternative.
763         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
764         ("*mov_sideqi_mem"): Similar, but for operand 3.
765         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
766         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
767         Remove spurious mode specifier on operand 2.
768
769 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
770
771         * config/h8300/h8300-protos.h: Remove the prototype for
772         o_operand.
773         Add prototypes for single_one_operand and single_zero_operand.
774         * config/h8300/h8300.c (o_operand): Remove.
775         (single_one_operand): New.
776         (single_zero_operand): Likewise.
777         (print_operand): For 'V' operand, and the operand with 0xff.
778         For 'V' and 'W' operands, do not and the bit position with 7.
779         * config/h8300/h8300.md (various anonymous patterns): Replace
780         use of exact_log2 with single_one_operand/single_zero_operand.
781
782 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
783
784         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
785
786 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
787
788         * config/s390/s390.c (legitimate_pic_operand_p): Do not
789         accept symbolic LARL operands.
790         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
791         epilogue insns.
792
793 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
794
795         * config/s390/s390.md (cmpstr_64/31): Mark whole
796         input registers as used.
797
798 2002-05-28  Richard Henderson  <rth@redhat.com>
799
800         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
801         not current_function_uses_pic_offset_table and
802         current_function_uses_const_pool; examine current_function_profile.
803         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
804         input to blockage if needed.
805         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
806         (legitimize_pic_address): Likewise.  Set regs_ever_live for
807         pic_offset_table_rtx when invoked during reload.
808         * config/i386/i386.h (FINALIZE_PIC): Remove.
809         * config/i386/i386.md (tablejump): Reformat.  Do not set
810         current_function_uses_pic_offset_table.
811         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
812         (blockage): Accept anything as operand 0.
813
814 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
815
816         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
817         common CPP built-ins for all NetBSD a.out targets.
818         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
819         common CPP built-ins for all NetBSD ELF targets.
820         * config/netbsd.h: Add missing notice.
821         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
822         for all NetBSD targets.
823         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
824         for all NetBSD targets using an LP64 code model.
825         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
826         NetBSD targets.
827
828 2002-05-28  Richard Henderson  <rth@redhat.com>
829
830         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
831         update if UPDATE_LIFE_LOCAL.
832
833 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
834
835         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
836
837 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
838                           Jason R. Thorpe <thorpej@wasabisystems.com>
839
840         config/sh reorganization to factor out endianness and coff:
841
842         * config/sh/little.h: New file.
843         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
844         defined, define to 0 to select big-endian.
845         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
846         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
847         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
848         * config/sh/t-be: New file.
849         * config/sh/t-le: New file.
850
851         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
852         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
853         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
854         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
855         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
856         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
857         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
858         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
859         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
860         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
861         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
862         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
863         (LINK_SPEC): Define to SH_LINK_SPEC.
864         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
865         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
866         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
867         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
868         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
869         * config/sh/coff.h: New file.
870         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
871         (TARGET_OBJFMT_CPP_BUILTINS): Define.
872         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
873         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
874         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
875         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
876         (PTRDIFF_TYPE): Likewise.
877         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
878         (CPP_PREDEFINES): Don't define.
879         (TARGET_OBJFMT_CPP_BUILTINS): Define.
880         (LINK_SPEC): Define to SH_LINK_SPEC.
881         (LINK_EMUL_PREFIX): Redefine.
882         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
883         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
884         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
885         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
886         (TARGET_OS_CPP_BUILTINS): Define.
887         (TARGET_DEFAULT): Redefine.
888         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
889         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
890         (LINK_SPEC): Don't redefine.
891         (LINK_DEFAULT_CPU_EMUL): Redefine.
892         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
893         * sh.c (sh_asm_named_section): Don't declare / define.
894         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
895         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
896         (sh64-*-elf* tm_file): Likewise.
897         (sh-*-rtemself* tm_file): Likewise.
898         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
899         (sh-*-linux* tmake_file): Add sh/t-le.
900         (sh-*-rtems* tm_file): Add sh/coff.h
901         (sh-*-* tm_file): Likewise.
902
903 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
904
905         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
906         CONSTANT_POOL_ADDRESS_P.
907
908         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
909
910 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
911             Jeff Law <law@redhat.com>
912
913         * optabs.c (expand_binop): Fix nwords sign warnings.
914         generate pseudo for add_optab.
915
916         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
917         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
918
919 2002-05-28      Marc Espie <espie@openbsd.org>
920
921         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
922         inherited from gas.h.
923         (ASM_QUAD):  Undef.  OpenBSD does not support it.
924
925 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
926
927         * doc/install.texi (binaries): Change mingw binaries
928         link to www.mingw.org.
929
930 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
931
932         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
933
934 2002-05-28  Richard Henderson  <rth@redhat.com>
935
936         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
937         bottom alignment for leaf functions.
938
939 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
940
941         * config/pa/milli32.S, config/pa/lib1funcs.asm,
942         config/sparc/sol2-g1.asm: Delete unused files.
943
944 2002-05-28  Richard Henderson  <rth@redhat.com>
945
946         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
947
948         * flow.c (calculate_global_regs_live): Rename call_used to
949         invalidated_by_call.  Initialize from regs_invalidated_by_call
950         instead of call_used_regs.
951
952         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
953         DECL_EXTERNAL.
954
955 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
956
957         * tree.h: Don't include real.h.
958         Forward-declare struct realvaluetype.
959         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
960         contain it.
961         (TREE_REAL_CST_PTR): New accessor.
962         (TREE_REAL_CST): Update.
963         * real.h: Include machmode.h.
964         (realvaluetype): Make it struct realvaluetype, not a typedef.
965         (build_real): Prototype here.
966
967         * tree.c: Include real.h.
968         (build_real): Allocate the REAL_VALUE_TYPE as a separate
969         object in GC memory, set TREE_REAL_CST_PTR to point to it.
970         (build_real_from_int_cst): Use build_real.
971         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
972         REAL_CST.
973
974         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
975         fold-const.c, print-tree.c, real.c: Include real.h.
976         * Makefile.in: Update dependency lists.
977
978 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
979
980         * basic-block.h (last_basic_block): Declare.
981         (expunge_block_nocompact): Declaration removed.
982         (compact_blocks): Declare.
983         * cfg.c (last_basic_block): New variable.
984         (expunge_block_nocompact): Removed.
985         (expunge_block): Do not compact basic blocks.
986         (compact_blocks): New.
987         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
988         longer change.
989         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
990         last_basic_block.
991         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
992         real positions of blocks.
993         (delete_unreachable_blocks): Simplified -- quadratic behavior now
994         cannot occur.
995         (cleanup_cfg): Compact blocks.
996         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
997         basic_block_info varray.
998         (flow_delete_block): Comment update.
999         (back_edge_of_syntactic_loop_p): Modify position check code.
1000         (verify_flow_info): Update checking.
1001         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
1002         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
1003         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
1004         indices no longer change.
1005         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
1006         last_basic_block.
1007         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
1008         * profile.c (branch_prob): Compact blocks.
1009         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
1010         last_basic_block.
1011
1012 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
1013
1014         * config/h8300/h8300.md (two anonymous patterns): New.
1015
1016 2002-05-28  David S. Miller  <davem@redhat.com>
1017
1018         * config/sparc/sparc.md (cpu): Tidy.
1019         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
1020         'trap'.
1021         (in_call_delay): Delete reference to 'return' type.
1022         (eligible_for_return_delay, in_return_delay, define_delay
1023         referencing those): Delete.
1024         (rest of file): Use new type attributes as appropriate.
1025         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
1026         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
1027         * config/sparc/ultra1_2.md (us1_single): New reservation.
1028         (us1_ialuX): Likewise.
1029         * config/sparc/ultra3.md (us3_single): Likewise.
1030         (us3_ialuX): Likewise.
1031         (us3_imul, us3_idiv): Tweak.
1032
1033 2002-05-28  Richard Henderson  <rth@redhat.com>
1034
1035         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
1036         STRING_CST.
1037
1038 2002-05-28  Richard Henderson  <rth@redhat.com>
1039
1040         * config.gcc: Obsolete mn10200.
1041
1042 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
1043
1044         * cppexp.c (interpret_number): Optimize for single-digit
1045         and less-than-half-precision cases.
1046         (num_trim, num_positive, num_div_op): Cast constants.
1047
1048 2002-05-27  Bo Thorsen  <bo@suse.de>
1049
1050         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
1051         3.1 branch. The file was made by Jakub Jelinek.
1052         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
1053         support so multilib doesn't break. And don't define this at all
1054         when -Dinhibit_libc is used.
1055         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
1056         * config/i386/t-linux64: Implement full multilib support. Patch
1057         originally done by Andreas Jaeger and Jakub Jelinek.
1058
1059 2002-05-27  Roger Sayle  <roger@eyesopen.com>
1060
1061         * c-common.c: Add support for __attribute__((nothrow)) to specify
1062         that a function cannot throw an exception (using TREE_NOTHROW).
1063         (handle_nothrow_attribute): New function to process this attribute.
1064
1065         * doc/extend.texi: Document the new nothrow function attribute.
1066
1067 2002-05-27  H.J. Lu  (hjl@gnu.org)
1068
1069         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
1070         (num_positive): Likewise.
1071         (num_div_op): Likewise.
1072
1073 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1074
1075         * c-common.c (c_common_init): Always use intmax_t.
1076
1077 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1078
1079         * c-common.c (c_common_init): Use intmax_t for now.
1080
1081 2002-05-24  Andrew Haley  <aph@redhat.com>
1082
1083         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
1084         if T is a boolean type.
1085
1086 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1087
1088         * basic-block.h (last_basic_block): Defined as synonym for
1089         n_basic_blocks.
1090         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1091         flow_depth_first_order_compute, flow_preorder_transversal_compute,
1092         flow_dfs_compute_reverse_init): Replaced relevant occurences of
1093         n_basic_blocks with last_basic_block.
1094         * cfgbuild.c (make_edges): Likewise.
1095         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1096         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1097         * combine.c (combine_instructions): Likewise.
1098         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1099         iterative_dataflow_bitmap): Likewise.
1100         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1101         calc_idoms, idoms_to_doms): Likewise.
1102         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1103         Likewise.
1104         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1105         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1106         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1107         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1108         delete_null_pointer_checks, compute_code_hoist_vbeinout,
1109         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1110         compute_store_table, build_store_vectors): Likewise.
1111         * haifa-sched.c (sched_init): Likewise.
1112         * ifcvt.c (if_convert): Likewise.
1113         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1114         pre_edge_lcm, compute_available, compute_nearerout,
1115         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1116         Likewise.
1117         * predict.c (estimate_probability, process_note_prediction,
1118         note_prediction_to_br_prob): Likewise.
1119         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1120         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1121         * regrename.c (copyprop_hardreg_forward): Likewise.
1122         * resource.c (init_resource_info): Likewise.
1123         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1124         init_regions, schedule_insns): Likewise.
1125         * ssa-ccp.c (ssa_const_prop): Likewise.
1126         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1127         * ssa.c (compute_dominance_frontiers,
1128         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1129
1130         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1131         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1132         sizes consistently.
1133
1134 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1135
1136         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1137         new.
1138         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1139         hoist_insn_after, hoist_insn_to_edge): New.
1140
1141 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
1142
1143         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1144         (PROP_FINAL): Include.
1145         * flow.c (life_analysis, update_life_info,
1146         init_propagate_block_info, mark_set_1, mark_used_rgs):
1147         Support SCAN_DEAD_STORE.
1148
1149 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1150
1151         * c-common.c (c_common_init): Set CPP arithmetic precision.
1152         * cppexp.c (cpp_num_part): Move typedef ...
1153         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1154         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1155         (sanity_checks): Update.
1156
1157 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
1158
1159         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1160         (mkheaders): New rule.
1161         (install-mkheaders): New rule.
1162         * configure.in (all_outputs): Add mkheaders.
1163         * configure: Regenerate.
1164         * mkheaders.in: New file.
1165
1166 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
1167
1168         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1169
1170 2002-05-26  Andreas Jaeger  <aj@suse.de>
1171
1172         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1173
1174 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1175
1176         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1177         right_shift): Remove.
1178         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1179         HIGH_PART): New.
1180         (struct op): Use cpp_num.
1181         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1182         num_part_mul, num_unary_op, num_binary_op, num_negate,
1183         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1184         num_div_op, num_lshift, num_rshift, append_digit): New.
1185         (interpret_number, parse_defined, eval_token, reduce): Update
1186         for two-integer arithmetic.
1187         (binary_handler): New typedef.
1188         (optab): Update.
1189         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1190         (_cpp_parse_expr, reduce): Update to handle two-integers.
1191         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1192
1193 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1194
1195         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1196         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1197         branch insn into account, do not assume 1.
1198         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
1199         over single word insn.  Handle upper half of I/O space too.
1200         * config/avr/avr.md (*sbrx_branch): Use it.
1201         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1202         (*sbix_branch, *sbix_branch_bit7): Likewise.
1203         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1204         Use RTL peepholes to optimize register operand sign tests.
1205
1206 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1207
1208         * config/avr/avr.c (avr_asm_only_p): New variable.
1209         (avr_override_options): Set it here if AVR1.
1210         (asm_file_start): Test it here, report an error if set.
1211
1212 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1213
1214         * alias.c: Fix formatting.
1215         * attribs.c: Likewise.
1216         * bb-reorder.c: Likewise.
1217         * bitmap.c: Likewise.
1218         * bitmap.h: Likewise.
1219         * builtins.c: Likewise.
1220
1221 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
1222
1223         * reload.c (find_valid_class): Accept new argument DEST,
1224         choose class accordingly.
1225         (push_reload): Update callers.
1226
1227 2002-05-26  Andreas Jaeger  <aj@suse.de>
1228
1229         * combine.c (combine_instructions): Do not indent #if for
1230         traditional C.
1231
1232 2002-05-25  Richard Henderson  <rth@redhat.com>
1233
1234         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1235         string for decl_attributes.
1236         (handle_pragma_weak): Call assemble_alias if we're modifying
1237         an existing decl.
1238
1239 2002-05-25  Richard Henderson  <rth@redhat.com>
1240
1241         PR target/6788
1242         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1243         using rtl instead of fprintf.
1244         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1245         * config/sparc/sparc-protos.h: Update.
1246
1247 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1248
1249         * Makefile.in (C_COMMON_H): Fix.
1250         Update other targets.
1251         * c-common.c: Don't include c-lex.h.
1252         (builtin_define_with_value): Make static and prototype.
1253         (builtin_define_std): Move from c-lex.h.
1254         * c-common.h (init_c_lex): Move from c-lex.h.
1255         * c-decl.c: Don't include c-lex.h.
1256         (make_pointer_declarator): Move from c-parse.in.
1257         * c-lex.c: Don't include c-lex.h.
1258         * c-lex.h: Remove.
1259         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1260         (make_pointer_declarator): Move to c-decl.c.
1261         * c-pragma.c: Don't include c-lex.h.
1262         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1263         * c-tree.h (make_pointer_declarator): New.
1264 doc:
1265         * passes.texi, tm.texi: Update.
1266 objc:
1267         * Make-lang.in: Update and correct.
1268         * objc-act.c: Don't include c-lex.h or cpplib.h.
1269 treelang:
1270         * treetree.c: Don't include c-lex.h.
1271 config:
1272         * darwin-c.c: Don't include c-lex.h.
1273         * c4x/c4x-c.c: Don't include c-lex.h.
1274         * c4x/t-c4x: Update.
1275         * i370/i370-c.c: Don't include c-lex.h.
1276         * i370/t-i370: Update.
1277         * i960/i960-c.c: Don't include c-lex.h.
1278         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1279         * i960/t-960bare: Update.
1280         * i960/t-vxworks: Update.
1281         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1282         * rs6000/t-darwin: Update.
1283         * rs6000/t-rs6000-c-rule: Update.
1284         * v850/v850-c.c: Don't include c-lex.h.
1285         * v850/v850.c: Don't include c-lex.h or cpplib.h.
1286
1287
1288 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1289
1290         * tree.def: Fix typos.
1291         * doc/install.texi: Likewise.
1292
1293 2002-05-25  Richard Henderson  <rth@redhat.com>
1294
1295         * configure.in (HAVE_AS_TLS): Add ia64 test.
1296         * configure: Rebuild.
1297         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1298         (override_options): Set it.
1299         (TARGET_HAVE_TLS): New.
1300         (sdata_symbolic_operand): Look for 's'.
1301         (tls_symbolic_operand): New.
1302         (ia64_expand_load_address): Abort for tls symbols.
1303         (gen_tls_get_addr): New.
1304         (gen_thread_pointer): New.
1305         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1306         (rtx_needs_barrier): Add new unspecs.
1307         (ia64_encode_section_info): Handle tls symbols.
1308         (ia64_strip_name_encoding): Strip two encoding chars.
1309         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1310         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1311         (TARGET_OPTIONS): Add tls-size.
1312         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1313         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1314         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1315         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1316         (movsf, movdf): Likewise.
1317         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1318         have a scratch availiable.
1319         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1320         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1321         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1322         * config/ia64/ia64-protos.h: Update.
1323         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1324         sdata_symbolic_operand.
1325         (ASM_OUTPUT_LABELREF): Strip two characters.
1326
1327 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1328
1329         * combine.c (simplify_set): Remove an unnecessary subreg.
1330
1331 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1332
1333         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1334
1335         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1336
1337 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1338
1339         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1340
1341 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1342
1343         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1344         (cond (compare x y) 0) into the equivalent (cond x y).
1345
1346 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1347
1348         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1349
1350 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1351
1352         * config.gcc: Remove all stanzas for previously obsoleted
1353         systems.  Where necessary, add explicit error stanzas to
1354         prevent removed systems from being misidentified as something
1355         else.  Begin a fresh obsoletions list, with the systems that
1356         were reprieved last round.
1357         * doc/install.texi: Remove all mention of dead targets.
1358         * fixinc/mkfixinc.sh: Likewise.
1359
1360         * config/arm/arm.h: Bit 31 of target_flags is no longer
1361         reserved.
1362
1363         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1364         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1365         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1366         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1367         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1368         config/alpha/osf12.h, config/alpha/osf2or3.h,
1369         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1370         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1371         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1372         config/clipper/clipper.h, config/clipper/clipper.md,
1373         config/clipper/clix.h, config/convex/convex-protos.h,
1374         config/convex/convex.c, config/convex/convex.h,
1375         config/convex/convex.md, config/convex/fixinc.convex,
1376         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1377         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1378         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1379         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1380         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1381         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1382         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1383         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1384         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1385         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1386         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1387         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1388         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1389         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1390         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1391         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1392         config/m68k/altos3068.h, config/m68k/apollo68.h,
1393         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1394         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1395         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1396         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1397         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1398         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1399         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1400         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1401         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1402         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1403         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1404         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1405         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1406         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1407         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1408         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1409         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1410         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1411         config/mips/dec-osf1.h, config/mips/elflorion.h,
1412         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1413         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1414         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1415         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1416         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1417         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1418         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1419         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1420         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1421         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1422         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1423         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1424         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1425         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1426         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1427         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1428         Delete file.
1429
1430 2002-05-24  Richard Henderson  <rth@redhat.com>
1431
1432         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1433         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1434         * config/i386/i386.c (tls_model_chars): Add leading space.
1435         (tls_symbolic_operand): Don't bias by 1.
1436         (legitimize_address): Don't unbias by 1.
1437
1438 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1439
1440         * lcm.c (optimize_mode_switching): Change bb used as indices
1441         to bb->index.
1442
1443 2002-05-24  Richard Henderson  <rth@redhat.com>
1444
1445         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1446         of update_life_info_in_dirty_blocks.
1447
1448 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1449
1450         PR other/6782
1451         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1452
1453 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1454
1455         PR preprocessor/6780
1456         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1457
1458 2002-05-24  Jim Blandy  <jimb@redhat.com>
1459
1460         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1461         entry with a type code of zero, marking the end of the compilation
1462         unit's macro info.
1463
1464 2002-05-24  Richard Henderson  <rth@redhat.com>
1465
1466         * varasm.c (asm_output_bss): Always output one byte.
1467         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1468
1469 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1470
1471         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1472         namespace.
1473
1474 2002-05-24  Andreas Jaeger  <aj@suse.de>
1475
1476         * ggc-page.c (alloc_page): Cast variables of type size_t to
1477         unsigned long, adjust printf format string.
1478         (ggc_alloc): Likewise.
1479         (ggc_print_statistics): Likewise.
1480         (ggc_print_statistics): Correct printf format string for SCALE to
1481         use unsigned long.
1482
1483 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1484
1485         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1486
1487 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1488             Zack Weinberg     <zack@codesourcery.com>
1489
1490         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1491         quoted strings.
1492         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1493         directive in assembly file.
1494         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1495         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1496         * config/pj/pj.h (ASM_FILE_START): Likewise.
1497         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1498         * config/avr/avr.c (asm_file_end): Likewise.
1499         * toplev.c (output_quoted_string): Handle possibly signed plain
1500         char.
1501         * toplev.h (output_clean_symbol_name): Declare
1502         * toplev.c (output_clean_symbol_name): Define.
1503         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1504         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1505
1506 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1507
1508         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1509
1510 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1511
1512         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1513         of size of unsigned.
1514
1515 2002-05-23  Richard Henderson  <rth@redhat.com>
1516
1517         * configure.in (HAVE_AS_TLS): New test.
1518         * config.in, configure: Rebuild.
1519         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1520         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1521         (override_options): Set it.
1522         (tls_model_chars, tls_symbolic_operand): New.
1523         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1524         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1525         (local_exec_symbolic_operand): New.
1526         (get_pic_label_name): Merge into output_set_got.
1527         (ix86_asm_file_end): Emit pic_label_name if defined.
1528         (legitimate_constant_p, constant_address_p): New.
1529         (legitimate_pic_operand_p): New.
1530         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1531         (legitimate_address_p): Likewise.
1532         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1533         (ix86_strip_name_encoding): New.
1534         (get_thread_pointer): New.
1535         (legitimize_address): Handle tls symbols.
1536         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1537         Remove UNSPEC_PLT.
1538         (struct machine_function): Add some_ld_name.
1539         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1540         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1541         (output_addr_const_extra): New.
1542         (maybe_get_pool_constant): New.
1543         (ix86_split_to_parts): Use it.
1544         (ix86_expand_move): Handle tls symbols.
1545         (ix86_tls_get_addr): New.
1546         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1547         (TARGET_OPTIONS): Add tls-dialect.
1548         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1549         (LEGITIMATE_CONSTANT_P): Likewise.
1550         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1551         (TARGET_STRIP_NAME_ENCODING): New.
1552         (ASM_OUTPUT_LABELREF): New.
1553         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1554         (OUTPUT_ADDR_CONST_EXTRA): New.
1555         (PREDICATE_CODES): Update.
1556         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1557         * config/i386/i386.md: Regroup and renumber unspec constants.
1558         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1559         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1560         (tls_global_dynamic, tls_local_dynamic_base): New.
1561         (tls_local_dynamic_once): New.
1562         * config/i386/i386-protos.h: Update.
1563
1564 2002-05-23  Richard Henderson  <rth@redhat.com>
1565
1566         * genemit.c (gen_insn): Print file:lineno comment before function.
1567         (main): likewise.
1568         * gensupport.c (struct queue_elem): Add filename member.
1569         (queue_pattern): Initialize it; update all callers.
1570         (process_include): Don't free filename.
1571         (read_md_rtx): Set read_rtx_filename.
1572
1573 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1574
1575         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1576
1577 2002-05-23  Richard Henderson  <rth@redhat.com>
1578
1579         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1580
1581 2002-05-23  Richard Henderson  <rth@redhat.com>
1582
1583         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1584         commentary from Mark.
1585
1586 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1587
1588         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1589         Use FOR_EACH_BB macros to iterate over basic block chain.
1590         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1591         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1592         Likewise.
1593         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1594         find_unreachable_blocks, create_edge_list, verify_edge_list,
1595         remove_fake_edges, add_noreturn_fake_exit_edges,
1596         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1597         Likewise.
1598         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1599         find_sub_basic_blocks): Likewise.
1600         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1601         Likewise.
1602         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1603         Likewise.
1604         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1605         Likewise.
1606         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1607         commit_edge_insertions, commit_edge_insertions_watch_calls,
1608         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1609         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1610         * conflict.c (conflict_graph_compute): Likewise.
1611         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1612         df_modified_p, df_refs_unlink, df_dump): Likewise.
1613         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1614         * final.c (compute_alignments): Likewise.
1615         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1616         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1617         count_or_remove_death_notes): Likewise.
1618         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1619         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1620         classic_gcse, compute_transp, cprop, compute_pre_data,
1621         compute_transpout, invalidate_nonnull_info,
1622         delete_null_pointer_checks_1, delete_null_pointer_checks,
1623         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1624         compute_store_table, build_store_vectors, store_motion): Likewise.
1625         * global.c (global_conflicts, mark_elimination): Likewise.
1626         * graph.c (print_rtl_graph_with_bb): Likewise.
1627         * haifa-sched.c (sched_init): Likewise.
1628         * ifcvt.c (if_convert): Likewise.
1629         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1630         compute_available, compute_nearerout, compute_rev_insert_delete,
1631         optimize_mode_switching): Likewise.
1632         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1633         * predict.c (estimate_probability, note_prediction_to_br_prob,
1634         propagate_freq, counts_to_freqs, expensive_function_p,
1635         estimate_bb_frequencies): Likewise.
1636         * profile.c (instrument_edges, get_exec_counts,
1637         compute_branch_probabilities, compute_checksum, branch_prob,
1638         find_spanning_tree): Likewise.
1639         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1640         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1641         Likewise.
1642         * regclass.c (scan_one_insn, regclass): Likewise.
1643         * regmove.c (mark_flags_life_zones, regmove_optimize,
1644         record_stack_memrefs): Likewise.
1645         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1646         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1647         * resource.c (find_basic_block): Likewise.
1648         * sched-ebb.c (schedule_ebbs): Likewise.
1649         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1650         find_single_block_region, find_rgns, schedule_insns)
1651         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1652         * ssa-ccp.c (optimize_unexecutable_edges,
1653         ssa_ccp_df_delete_unreachable_insns): Likewise.
1654         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1655         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1656         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1657         compute_coalesced_reg_partition, rename_equivalent_regs,
1658         convert_from_ssa): Likewise.
1659         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1660         process_for_unwind_directive): Likewise.
1661
1662         * df.c (FOR_ALL_BBS): Removed.
1663         * gcse.c (struct null_pointer_info): Type of current_block field
1664         changed.
1665         (struct reg_avail_info): Type of last_bb field changed.
1666         * config/ia64/ia64.c (block_num): Removed.
1667         (need_copy_state): Type changed.
1668         (last_block): New.
1669
1670 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1671
1672         * cppinit.c (mark_named_operators): Split out from init_builtins.
1673         (cpp_finish_options): Call it from here instead.
1674
1675 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1676
1677         * builtin-attrs.def: Update copyright years.
1678         (ATTR_NONNULL): New attribute identifier.
1679         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1680         attribute tree lists.
1681         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1682         format operand.
1683         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1684         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1685         attribute lists.  Chain the appropriate nonnull attribute.
1686         * c-format.c (check_format_arg): Remove null format string
1687         warning.
1688         * testsuite/gcc.dg/format/null-1.c: New test.
1689
1690 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1691
1692         * Makefile.in (ADAC): Define.
1693         (SYSLIBS): Define.
1694         (.SUFFIXES): Move before language makefile fragments.
1695         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1696
1697 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1698
1699         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1700         placed in common.
1701
1702 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1703
1704         * cfg.c (dump_flow_info): Print results of
1705         maybe_hot/probably_never_executed predicates.
1706         * toplev.c (open_dump_file): Print function frequency.
1707
1708 2002-05-23  David S. Miller  <davem@redhat.com>
1709
1710         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1711         regsets.
1712
1713 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1714
1715         * c-common.c (warn_nonnull): Declare.
1716         (c_common_attribute_table): Add "nonnull" attribute.
1717         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1718         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1719         check_function_arguments_recurse): New functions.
1720         * c-common.h (warn_nonnull): Declare extern.
1721         (check_function_arguments, check_function_arguments_recurse): New
1722         prototypes.
1723         * c-decl.c (c_decode_option): Add -Wnonnull option.
1724         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1725         format checking.
1726         (format_check_context): New structure.
1727         (check_format_info_recurse): Remove recursion and rename to...
1728         (check_format_arg): ...this.  Update comment.
1729         (check_format_info): Use check_function_arguments_recurse.
1730         * c-typeck.c (build_function_call): Call check_function_arguments
1731         instead of check_function_format.
1732         * doc/extend.texi: Document "nonnull" attribute.
1733         * doc/invoke.texi: Docuemnt -Wnonnull option.
1734         * testsuite/gcc.dg/nonnull-1.c: New test.
1735         * testsuite/gcc.dg/nonnull-2.c: New test.
1736
1737 2002-05-23  David S. Miller  <davem@redhat.com>
1738
1739         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1740         * cfgcleanup.c (cleanup_cfg): If it is set do not
1741         attempt to delete trivially dead insns.
1742         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1743         * toplev.c (rest_of_compilation): Document non-trivial aspect
1744         the RTL before optimize_save_area_alloca is run.
1745
1746 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1747
1748         * c-lex.c (indent_level): Remove.
1749         (cb_file_change, c_lex): Remove indent level handling.
1750         * c-lex.h (indent_level): Remove.
1751         * input.h (struct file_stack): Remove indent_level.
1752         * toplev.c (push_srcloc): Remove indent_level handling.
1753
1754 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1755
1756         PR target/6753
1757         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1758         of x in constraints for clarity.
1759         (sse_mov?fcc split): abort if op2 == op3.
1760         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1761         sse_movsfcc_const0_4): Add earlyclobber.
1762         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1763         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1764         Use Y instead of x in constraints.
1765
1766 2002-05-23  Richard Henderson  <rth@redhat.com>
1767
1768         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1769         (C++98 Thread-Local Edits): New subsection.
1770
1771         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1772         (ix86_arch): Set type to enum processor_type.
1773
1774         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1775         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1776
1777 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1778
1779         * configure.in: Fix as version test for binutils 2.12.1 releases
1780         (without dates).
1781         * configure: Rebuilt.
1782
1783 2002-05-23  Richard Henderson  <rth@redhat.com>
1784
1785         * config/i386/i386.c (get_pic_label_name): New.
1786         (load_pic_register): Remove.
1787         (output_set_got): New.
1788         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1789         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1790         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1791         (prologue_set_got, prologue_get_pc): Remove.
1792         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1793         (builtin_setjmp_receiver): Use gen_set_got.
1794         * config/i386/i386-protos.h: Update.
1795
1796 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1797
1798         * gcse.c (hash_expr): Do not use alias set for hashing.
1799
1800 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1801
1802         * dbxout.c (dbxout_class_name_qualifiers): New function.
1803         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1804
1805 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1806
1807         * cpperror.c (_cpp_begin_message): No special casing
1808         of CPP_FATAL_LIMIT.
1809         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1810         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1811         * cpplib.c (do_include_common): Use DL_ERROR.
1812         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1813         (DL_ICE): Renumber.
1814         * fix-header.c (read_scan_file): Update.
1815
1816 2002-05-22  Richard Henderson  <rth@redhat.com>
1817
1818         * config/i386/i386.c (ix86_expand_call): New function, extracted
1819         from md call patterns.  Add pic_offset_table_rtx to
1820         CALL_INSN_FUNCTION_USAGE when needed.
1821         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1822         (call_value_pop, call_value, untyped_call): Likewise.
1823         (call_exp, call_value_exp): Remove.
1824         * config/i386/i386-protos.h: Update.
1825
1826 2002-05-22  Richard Henderson  <rth@redhat.com>
1827
1828         * varasm.c (default_section_type_flags): Check for VAR_DECL
1829         before using DECL_THREAD_LOCAL.
1830
1831 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1832
1833         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1834         (STARTFILE_SPEC): Delete PE crt0.o.
1835         * config/rs6000/aix51.h: Same.
1836         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1837         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1838         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1839         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1840         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1841
1842 2002-05-22  Richard Henderson  <rth@redhat.com>
1843
1844         * varasm.c (default_section_type_flags): Handle tls data and
1845         default sections.
1846         (default_unique_section): Handle tls sections.
1847
1848 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1849
1850         * configure.in (CROSS): Define NATIVE_CROSS.
1851         * configure: Regenerate.
1852         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1853         (startfile_prefix_spec): New var.
1854         (static_specs): Add startfile_prefix_spec.
1855         (do_spec_2): Split out from..
1856         (do_spec): ..here.
1857         (main): Process startfile_prefix_spec.
1858         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1859         dynamic linker.
1860         (STARTFILE_PREFIX_SPEC): Define.
1861         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1862         absolute paths.
1863
1864 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1865
1866         * cpperror.c: Fix formatting.
1867         * cppexp.c: Likewise.
1868         * cppfiles.c: Likewise.
1869         * cpphash.c: Likewise.
1870         * cpphash.h: Likewise.
1871         * cppinit.c: Likewise.
1872         * cpplex.c: Likewise.
1873         * cpplib.c: Likewise.
1874         * cppmacro.c: Likewise.
1875         * cppmain.c: Likewise.
1876         * cppspec.c: Likewise.
1877
1878 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1879
1880         * combine.c (force_to_mode): Use gen_int_mode.
1881         Don't clear CONST_INT bits outside of mode.
1882
1883 2002-05-22  Richard Henderson  <rth@redhat.com>
1884
1885         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1886         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1887
1888 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1889
1890         PR c/6643
1891         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1892         if DECL_SIZE_UNIT is INTEGER_CST.
1893
1894 2002-05-22  Richard Henderson  <rth@redhat.com>
1895
1896         * flow.c (life_analysis): Delete broken reg_label check.
1897
1898 2002-05-22  Richard Henderson  <rth@redhat.com>
1899
1900         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1901         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1902
1903 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1904
1905         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1906         (embed-bb.c): New rule.
1907         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1908         * config/sh/embed_bb.c: Delete.
1909
1910 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1911
1912         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1913
1914 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1915
1916         * config/h8300/h8300.md (*andorqi3): New.
1917
1918 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1919
1920         PR preprocessor/6517
1921         * Makefile.in: Update.
1922         * c-common.c (c_common_post_options): Add preprocessor
1923         errors to the error count.
1924         * c-lang.c (c_post_options): Kill.
1925         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1926         * hooks.h: Add header guards.
1927         * langhooks-def.h: Include hooks.h.
1928         (LANG_HOOKS_POST_OPTIONS): Update.
1929         * langhooks.h (struct lang_hooks): Update post_options.
1930         * toplev.c (parse_options_and_default_flags): Update.
1931 objc:
1932         * objc-lang.c (objc_post_options): Kill.
1933         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1934
1935 2002-05-21  Bruce Korb  <bkorb@gnu.org>
1936
1937         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1938         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1939         * fixinc/fixincl.x: regen.
1940
1941 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
1942
1943         * cfgbuild.c: Fix formatting.
1944         * cfg.c: Likewise.
1945         * cfgcleanup.c: Likewise.
1946         * cfglayout.c: Likewise.
1947         * cfgloop.c: Likewise.
1948         * cfgrtl.c: Likewise.
1949
1950 2002-05-21  Richard Henderson  <rth@redhat.com>
1951
1952         * c-common.h (enum rid): Add RID_THREAD.
1953         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1954         (grokdeclarator): Grok __thread.
1955         * c-parse.in (reswords): Add __thread.
1956         (rid_to_yy): Add RID_THREAD.
1957
1958         * tree.h (DECL_THREAD_LOCAL): New.
1959         (struct tree_decl): Add thread_local_flag.
1960         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1961         * tree.c (staticp): TLS variables are not static.
1962
1963         * target-def.h (TARGET_HAVE_TLS): New.
1964         * target.h (have_tls): New.
1965         * output.h (SECTION_TLS): New.
1966         * varasm.c (assemble_variable): TLS variables can't be common for now.
1967         (default_section_type_flags): Handle .tdata and .tbss.
1968         (default_elf_asm_named_section): Handle SECTION_TLS.
1969         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1970
1971         * flags.h (flag_tls_default): Declare.
1972         * toplev.c (flag_tls_default): Define.
1973         (display_help): Display help for it.
1974         (decode_f_option): Set it.
1975
1976         * doc/extend.texi (Thread-Local): New node describing language-level
1977         thread-local storage.
1978         * doc/invoke.texi (-ftls-model): Document.
1979
1980         * fixinc/inclhack.def (thread_keyword): New.
1981         * fixinc/fixincl.x: Rebuild.
1982
1983 2002-05-21  Jeffrey A Law  <law@redhat.com>
1984
1985         * optabs.c (expand_binop): For double-word integer multiplies,
1986         do not compute intermediate results into something that is
1987         not a register (such as a SUBREG or MEM).
1988
1989         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1990         (ix86_sched_reorder): Make sure to initialize scheduling
1991         data even when there's only one insn in the ready queue.
1992
1993 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1994
1995         * genautomata.c (reserv_sets_hash_value): Fix a typo.
1996
1997 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1998
1999         * genautomata.c (reserv_sets_hash_value): Define hash_value as
2000         set_el_t.  Transform the hash value into unsigned.
2001         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
2002         (transform_3): Add code to process `(A,B)+(D,E)'.
2003
2004 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
2005
2006         * reload1.c (do_output_reload): Run delete_output_reload
2007         only if optimizing.
2008
2009 2002-05-21  Roger Sayle  <roger@eyesopen.com>
2010
2011         PR middle-end/6600
2012         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
2013         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
2014         (can_store_by_pieces): ... and here to limit the largest mode used.
2015         Add a comment to document this function.
2016
2017 2002-05-21  Richard Henderson  <rth@redhat.com>
2018
2019         * flow.c (life_analysis): Fix test for deleted label.
2020
2021 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
2022
2023         * doc/tm.texi: Fix typo.
2024
2025 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
2026
2027         * c-common.c (c_common_init): Set options->unsigned_char from
2028         flag_signed_char.
2029         (cb_register_builtins): Define __STRICT_ANSI__ and
2030         __CHAR_UNSIGNED__ here...
2031         * cppinit.c (init_builtins): Not here.
2032         (cpp_create_reader): unsigned_char option defaults to 0, not
2033         !DEFAULT_SIGNED_CHAR.
2034         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
2035         and -funsigned-char.
2036
2037         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
2038         * cpphash.c (_cpp_init_hashtable): Don't set it.
2039         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
2040         directly.  Clarify comment.
2041
2042 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2043
2044         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
2045         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
2046         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
2047         BASIC_BLOCK (n_basic_blocks - 1).
2048         * cfganal.c (can_fallthru, flow_call_edges_add,
2049         flow_preorder_transversal_compute): Too.
2050         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
2051         find_sub_basic_blocks): Too.
2052         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
2053         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
2054         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
2055         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
2056         * combine.c (this_basic_block): Type changed to basic_block.
2057         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
2058         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2059         get_last_value, distribute_notes, distribute_links): Too.
2060         * final.c (compute_alignments): Too.
2061         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
2062         * function.c (thread_prologue_and_epilogue_insns): Too.
2063         * gcse.c (compute_code_hoist_vbeinout): Too.
2064         * global.c (build_insn_chain): Too.
2065         * ifcvt.c (find_if_block, find_cond_trap): Too.
2066         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
2067         * regmove.c (regmove_optimize): Too.
2068         * resource.c (find_basic_block): Too.
2069         * sched-ebb.c (schedule_ebbs): Too.
2070         * ssa-dce.c (find_control_dependence, find_pdom): Too.
2071
2072 2002-05-21  Andreas Jaeger  <aj@suse.de>
2073
2074         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
2075
2076 2002-05-21  Richard Henderson  <rth@redhat.com>
2077
2078         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
2079         unspec names, not numbers.
2080
2081 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
2082
2083         * doc/sourcebuild.texi: Mention snapshot-README and
2084         snapshot-index.html as needing updating for new front ends.
2085
2086 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2087
2088         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2089         disabling checking, and avoid multiple evaluation of RTX.
2090
2091 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
2092
2093         * bitmap.c (bitmap_find_bit): Return early if we have the correct
2094         element cached.
2095
2096 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2097
2098         * profile.c (gen_edge_profiler):  Set alias set before the memory is
2099         used.
2100
2101 2002-05-20  David S. Miller  <davem@redhat.com>
2102
2103         * cselib.c (max_value_regs): New.
2104         (cselib_lookup, cselib_invalidate_regno): Initialize it when
2105         adding new entries to the REG_VALUES table and we are dealing with
2106         a hard register.
2107         (clear_table): Initialize it.
2108         (cselib_invalidate_regno): Use it to determine which hard
2109         registers to scan when mode is not VOIDmode.
2110
2111 2002-05-20  Duraid Madina   <duraid@fl.net.au>
2112
2113         * tradcpp.c (fixup_newlines): Use old-style function header.
2114
2115 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
2116
2117         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2118
2119 2002-05-20  H.J. Lu  (hjl@gnu.org)
2120
2121         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2122
2123         * config/mips/mips.h (DFMODE_NAN): Defined.
2124         (SFMODE_NAN): Likewise.
2125
2126 2002-05-20  Dale Johannesen  <dalej@apple.com>
2127
2128         * combine.c (cant_combine_insn_p):  Back out my
2129         previous patch.
2130
2131 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
2132
2133         * params.c: Fix formatting.
2134         * params.h: Likewise.
2135         * predict.c: Likewise.
2136         * prefix.c: Likewise.
2137         * print-rtl.c: Likewise.
2138         * print-tree.c: Likewise.
2139         * profile.c: Likewise.
2140
2141 2002-05-20  H.J. Lu  (hjl@gnu.org)
2142
2143         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2144
2145 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
2146
2147         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2148         switches straight on to the assembler, do not abbreviate them.
2149         * config/arm/elf.h (ASM_SPEC): As above.
2150         * config/arm/semi.h (ASM_SPEC): As above.
2151         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2152         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2153         -mcpu=xscale on to the assembler by default.
2154         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2155
2156 2002-05-20  Richard Henderson  <rth@redhat.com>
2157
2158         * cse.c (canon_hash): Reorder do_not_record test.  Always
2159         allow pic_offset_table_rtx.
2160
2161 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2162
2163         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2164         (expand_binop): Ditto (3 times).
2165
2166 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
2167
2168         * Makefile.in (distclean): Remove QMTest stuff.
2169         (QMTEST_PATH): New variable.
2170         (QMTESTFLAGS): Likewise.
2171         (QMTESTRUNFLAGS): Likewise.
2172         (QMTEST): Likewise.
2173         (QMTEST_GPP_TESTS): Likewise.
2174         (QMTEST_DIR): Likewise.
2175         (QMTEST_DIR/context): New target.
2176         (qmtest-g++): Likeise.
2177         (qmtest-gui): Likewise.
2178         (QMTEST_DIR/gpp-expected.qmr): Likewise.
2179
2180 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
2181
2182         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2183         an altivec register if TARGET_ALTIVEC.
2184
2185         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2186         to ALTIVEC_VECTOR_MODE.
2187         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2188         (rs6000_va_arg): Vectors may go in registers if they are not
2189         altivec vectors.
2190
2191 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2192
2193         * protoize.c: Fix formatting.
2194
2195 2002-05-19  Richard Henderson  <rth@redhat.com>
2196
2197         * gensupport.c (init_include_reader): Merge into ...
2198         (process_include): ... here.  Simplify composite path creation.
2199         Plug memory leaks.  Fix file/line number tracking.  Do not
2200         process_define_cond_exec.  Return void.
2201         (process_rtx): Don't check process_include return value.
2202
2203 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2204
2205         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2206         fields.
2207         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2208         traversing basic block chain.
2209         (create_basic_block_structure, create_basic_block): Declaration changed.
2210         (link_block, unlink_block): Declare.
2211         * cfg.c (entry_exit_blocks): Initialize new fields.
2212         (link_block, unlink_block): New.
2213         (expunge_block_nocompact): Unlink basic block.
2214         (dump_flow_info): Print prev_bb/next_bb fields.
2215         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2216         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2217         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2218         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2219         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2220         (verify_flow_info): Check that list agrees with numbering.
2221
2222 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2223
2224         * c-common.c (preprocessing_asm): New macro.
2225         * c-lex.h (builtin_define, builtin_assert): Use pfile.
2226 doc:
2227         * tm.texi: Update.
2228 config/alpha:
2229         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2230         (CPP_SPEC): Simplify.
2231         (TARGET_CPU_CPP_BUILTINS): Update.
2232         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2233         (CPP_SPEC): Simplify.
2234         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2235         (TARGET_OS_CPP_BUILTINS): Update.
2236         * osf.h (CPP_XFLOAT_SPEC): Kill.
2237         (TARGET_OS_CPP_BUILTINS): Update.
2238         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2239         * osf5.h (CPP_XFLOAT_SPEC): Kill.
2240         * vms.h (CPP_SUBTARGET_SPEC): Kill.
2241         (TARGET_OS_CPP_BUILTINS): Update.
2242
2243 2002-05-19  Richard Henderson  <rth@redhat.com>
2244
2245         * varasm.c (default_binds_local_p): Fix typo.
2246
2247 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2248
2249         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2250         CONST_INT operand to the correct mode after adding 1 to it.
2251
2252 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
2253
2254         * config.gcc (powerpc-wrs-windiss*): New target.
2255
2256 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2257
2258         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2259         (ashrdi3): Use it.
2260
2261 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
2262
2263         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2264         alphasort.
2265         * config.in: Regenerated.
2266         * configure: Regenerated.
2267
2268 2002-05-19  Richard Henderson  <rth@redhat.com>
2269
2270         * target-def.h (TARGET_BINDS_LOCAL_P): New.
2271         * target.h (struct gcc_target): Move boolean fields to the end.
2272         Add binds_local_p.
2273         * varasm.c (default_binds_local_p): New.
2274         * output.h: Declare it.
2275
2276         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2277         * config/cris/cris.c (cris_encode_section_info): Likewise.
2278         * config/i386/i386.c (i386_encode_section_info): Likewise.
2279         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2280         * config/sh/sh.c (sh_encode_section_info): Likewise.
2281
2282         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2283         (TARGET_BINDS_LOCAL_P): New.
2284
2285 2002-05-19  Richard Henderson  <rth@redhat.com>
2286
2287         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2288         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2289         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2290
2291         * toplev.c (display_help): Kill -a -ax help.
2292
2293         * config/1750a/1750a.h, config/alpha/alpha.h,
2294         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2295         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2296         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2297         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2298
2299         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2300         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2301
2302         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2303         (ix86_output_function_block_profiler): Kill.
2304         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2305         (m68hc11_function_block_profiler): Kill.
2306         * config/m68hc11/m68hc11-protos.h: Update.
2307         * config/m88k/m88k.c (output_block_profiler): Kill.
2308         (output_function_block_profiler): Kill.
2309         * config/m88k/m88k-protos.h: Update.
2310
2311 2002-05-19  Richard Henderson  <rth@redhat.com>
2312
2313         * system.h (STRIP_NAME_ENCODING): Poison it.
2314         * output.h (STRIP_NAME_ENCODING): Remove.
2315         (default_strip_name_encoding): Declare.
2316         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2317         * target.h (strip_name_encoding): New.
2318         * varasm.c (default_strip_name_encoding): New.
2319
2320         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2321         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2322         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2323         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2324         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2325         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2326         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2327         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2328         config/v850/v850.h: Use the hook, not the macro.
2329
2330         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2331         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2332         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2333         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2334         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2335         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2336         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2337         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2338         config/v850/v850.c, config/v850/v850.h:
2339         Move STRIP_NAME_ENCODING to out-of-line function and add
2340         TARGET_STRIP_NAME_ENCODING.
2341
2342         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2343         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2344         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2345         make function static.
2346
2347         * xcoffout.c: Include target.h
2348         * Makefile.in (xcoffout.o): Update.
2349
2350         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2351         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2352         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2353         reloc argument unused.
2354         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2355
2356         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2357         STRIP_NAME_ENCODING docs.
2358
2359 2002-05-19  Andreas Jaeger  <aj@suse.de>
2360
2361         * gengenrtl.c: Add prototype for excluded_rtx.
2362
2363         * real.h: Add prototype for exact_real_truncate.
2364
2365 2002-05-18  Richard Henderson  <rth@redhat.com>
2366
2367         * system.h (ENCODE_SECTION_INFO): Poison it.
2368         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2369         * target.h (encode_section_info): New.
2370         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2371         * hooks.c (hook_tree_int_void): New.
2372         * hooks.h: Declare it.
2373
2374         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2375         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2376         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2377         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2378         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2379         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2380         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2381         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2382         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2383         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2384         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2385         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2386         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2387         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2388         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2389         referencing existing function.  Make function static.
2390
2391         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2392         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2393         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2394         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2395         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2396         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2397         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2398         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2399         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2400         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2401         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2402         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2403         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2404         Move ENCODE_SECTION_INFO to out-of-line function and add
2405         TARGET_ENCODE_SECTION_INFO.
2406
2407         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2408         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2409
2410         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2411         from SUBTARGET_*
2412         (switch_to_section): Replace in_rdata case with in_readonly_data.
2413
2414         * config/h8300/h8300.c (h8300_encode_label): Make static.
2415         * config/h8300/h8300-protos.h: Update.
2416
2417         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2418         from rs6000_encode_section_info; make static.
2419         (rs6000_xcoff_encode_section_info): New.
2420
2421         * config/v850/v850.c (v850_encode_data_area): Make static.
2422         * config/v850/v850-protos.h: Update.
2423
2424         * config/vax/vax.c: Include flags.h.
2425         (vms_select_section): Fix typo.
2426
2427         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2428         ENCODE_SECTION_INFO docs.
2429
2430 2002-05-18  Richard Henderson  <rth@redhat.com>
2431
2432         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2433         REGISTER_TARGET_PRAGMAS.
2434         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2435
2436         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2437
2438 2002-05-18  Richard Henderson  <rth@redhat.com>
2439
2440         * system.h (SELECT_RTX_SECTION): Poison.
2441         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2442         * target.h (select_rtx_section): New.
2443         * varasm.c (output_constant_pool): Use it.
2444         (default_select_rtx_section, default_elf_select_rtx_section): New.
2445         * output.h: Declare them.
2446
2447         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2448         * config/darwin.c (machopic_select_rtx_section): ... here.
2449         * config/darwin-protos.h: Update.
2450
2451         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2452         * config/nextstep.c (machopic_select_rtx_section): ... here.
2453         (nextstep_select_section): Rename variable to avoid macro clash.
2454         * config/nextstep-protos.h: Update.
2455
2456         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2457         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2458         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2459         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2460         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2461         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2462         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2463         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2464         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2465         (SELECT_RTX_SECTION): Remove.
2466
2467         * config/darwin.h, config/elfos.h, config/nextstep.h,
2468         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2469         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2470         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2471         config/sparc/lynx.h, config/xtensa/xtensa.c
2472         (TARGET_ASM_SELECT_RTX_SECTION): New.
2473
2474         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2475         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2476         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2477         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2478         (ia64_aix_select_rtx_section): New.
2479         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2480         redefining.
2481         * config/mips/mips.c (mips_select_rtx_section): Make static.
2482         Support ELF SHF_MERGE features.
2483         * config/mips/mips-protos.h: Update.
2484         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2485         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2486         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2487         make static, fall back to default_elf_select_rtx_section.
2488         * config/rs6000/rs6000-protos.h: Update.
2489         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2490         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2491         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2492         * config/romp/romp.c (romp_select_rtx_section): New.
2493         * config/s390/s390.c (s390_select_rtx_section): New.
2494         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2495         declarations before target macro definition.
2496         (xtensa_emit_call): Use static buffer.
2497         (xtensa_select_rtx_section): New.
2498         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2499         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2500         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2501
2502         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2503         SELECT_RTX_SECTION docs.
2504
2505 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2506
2507         * i386.md (movsi/movdi): Fix template.
2508         (sse2 patterns): Set attributes consistently.
2509
2510         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2511
2512 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2513
2514         * optabs.c (complex_part_zero_p): New.
2515         * (expand_cmplxdiv_straight): Use it.
2516         * (expand_cmplxdiv_wide): Ditto.
2517         * (expand_binop): Ditto.
2518
2519 2002-05-18  Richard Henderson  <rth@redhat.com>
2520
2521         * final.c (HAVE_READONLY_DATA_SECTION): New.
2522         (shorten_branches): Use it instead of ifdefs.
2523         * varasm.c (enum in_section): Add in_readonly_data.
2524         (text_section, data_section): Tidy.
2525         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2526
2527         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2528         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2529         (READONLY_DATA_SECTION): Don't undef.
2530
2531         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2532         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2533         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2534
2535         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2536         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2537         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2538         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2539
2540         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2541         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2542         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2543         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2544         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2545         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2546         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2547         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2548         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2549
2550         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2551         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2552         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2553         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2554         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2555         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2556
2557         * config/elfos.h, config/netware.h, config/svr3.h,
2558         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2559         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2560         config/h8300/h8300.h, config/i386/i386-interix.h,
2561         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2562         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2563
2564         * config/elfos.h, config/netware.h, config/svr3.h,
2565         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2566         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2567         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2568         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2569
2570         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2571         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2572         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2573         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2574         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2575         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2576         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2577         config/rs6000/sysv4.h, config/v850/v850.h
2578         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2579         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2580
2581         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2582         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2583         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2584         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2585         * config/alpha/alpha.c (alpha_start_function): Likewise.
2586         (alpha_write_linkage): Likewise.
2587         * config/m32r/m32r.c (m32r_select_section): Likewise.
2588         * config/m88k/m88k.c (m88k_select_section): Likewise.
2589         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2590         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2591         (rs6000_elf_select_section): Likewise.
2592         * config/v850/v850.c (v850_select_section): Likewise.
2593
2594         * config/1750a/1750a.h, config/i860/sysv3.h
2595         (READONLY_DATA_SECTION_ASM_OP): New.
2596         READONLY_DATA_SECTION_ASM_OP.
2597         * config/i386/interix.c, config/i386/winnt.c
2598         (i386_pe_unique_section): Always use .rdata prefix.
2599         * config/pa/som.h (readonly_data): Always switch to read-only section.
2600         (READONLY_DATA_SECTION): Predicate on flag_pic.
2601         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2602         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2603         (READONLY_DATA_SECTION): Update.
2604
2605 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2606
2607         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2608         is used without -Wformat.
2609         * c-common.h (warn_format_zero_length): Declare extern.
2610         * c-decl.c (warn_options): Add "format-zero-length".
2611         * c-format.c (warn_format_zero_length): Declare.
2612         (set_Wformat): Set warn_format_zero_length for -Wformat.
2613         (check_format_info): Only warn about zero-length formats if
2614         warn_format_zero_length is true.  Include the format type
2615         name in the warning message.
2616         * doc/invoke.texi: Document -Wformat-zero-length.
2617         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2618
2619 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2620
2621         * timevar.c: Fix formatting.
2622         * tlink.c: Likewise.
2623         * toplev.c: Likewise.
2624         * tree-dump.c: Likewise.
2625         * tree-inline.c: Likewise.
2626
2627 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2628
2629         * cppinit.c (cpp_post_options): If preprocessed, turn off
2630         traditional.  If traditional, turn off column numbers.
2631         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2632         * cpptrad.c (handle_newline): Update line_base.
2633         (skip_comment): Handle -Wcomment.
2634
2635 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2636
2637         * cppinit.c (struct builtin): Remove unused fields.
2638         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2639         (operator_array): New - was second half of builtin_array.
2640         (init_builtins): Simplify loop over builtin_array/operator_array.
2641
2642 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2643
2644         * defaults.h (UNIQUE_SECTION): Remove.
2645         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2646
2647 2002-05-17  Richard Henderson  <rth@redhat.com>
2648
2649         * expr.c (init_expr_once): Don't use start/end_sequence.
2650         Use rtx_alloc instead of emit_insn.
2651         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2652         (lang_independent_init): ... not here.
2653
2654 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2655
2656         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2657
2658 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2659
2660         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2661         for fixed registers, possibly used for global register variables.
2662         (initial_elimination_offset, avr_output_function_prologue,
2663         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2664
2665 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2666
2667         * Makefile.in: Update for cpptrad.c.
2668         * cpphash.h (struct cpp_buffer): New members for buffer
2669         overlays.
2670         (struct cpp_reader): New members for traditional output.
2671         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2672         * cppinit.c (cpp_create_reader): Set trad_line.
2673         (cpp_destroy): Free trad_out_base if used.
2674         (cpp_read_main_file): Overlay an empty buffer if traditional.
2675         (cpp_finish_options): Don't do builtins.
2676         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2677         (cpp_handle_option): Handle it.
2678         * cpplex.c (continue_after_nul): New.
2679         (_cpp_lex_direct): Use handle_nul.
2680         * cpplib.h (struct cpp_options): New traditional option.
2681         * cpptrad.c: New file.
2682
2683 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2684
2685         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2686         and set the options flag.
2687         * cppinit.c (lang_flags): Remove objc.
2688         (lang_defaults): Remove OBJC and OBJCXX.
2689         (set_lang): Update.
2690         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2691         (cpp_handle_option): Remove -+ and -lang-objc++.
2692         For ObjC, just set a flag.
2693         (print_help): Update.
2694         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2695
2696 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2697
2698         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2699         bootstrap with -mips3.
2700
2701 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2702
2703         * final.c: Fix formatting.
2704         * fix-header.c: Likewise.
2705         * flow.c: Likewise.
2706         * fold-const.c: Likewise.
2707         * function.c: Likewise.
2708
2709 2002-05-17  David S. Miller  <davem@redhat.com>
2710
2711         PR c/6689, PR optimization/6615
2712         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2713         and make it a pointer to rtx.  Update comments.
2714         (update_equiv_regs): When scanning for equivalences, record
2715         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2716         it while making the equiv replacements.
2717
2718 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2719
2720         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2721
2722 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2723
2724         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2725         when encoding visibility into SYMBOL_REF_FLAG.
2726
2727 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2728
2729         * expr.c (force_operand): Fix reversed move.
2730
2731 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2732
2733         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2734         that can be ignored.
2735
2736 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2737
2738         * doc/install.texi (Final install): Recommend to install into a
2739         "clean" target directory.
2740
2741 2002-05-17  Richard Henderson  <rth@redhat.com>
2742
2743         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2744         for code blocks.  Tidy whitespace.
2745
2746 2002-05-17  Richard Henderson  <rth@redhat.com>
2747
2748         * hooks.c (hook_tree_bool_false): New.
2749         * hooks.h: Declare it.
2750         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2751         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2752         * target.h (select_section, unique_section): New.
2753         (in_small_data_p): New.
2754         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2755         (variable_section, output_constant_def_contents): Likewise.
2756         (default_select_section, default_unique_section): New.
2757         (categorize_decl_for_section, default_elf_select_section): New.
2758         * output.h: Declare them.
2759
2760         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2761         (TARGET_ASM_SELECT_SECTION): New.
2762         (SELECT_SECTION): Move ...
2763         * config/darwin.c (machopic_select_section): ... here.
2764         * config/darwin-protos.h: Update.
2765
2766         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2767         (SELECT_SECTION): Move ...
2768         * config/nextstep.c (nextstep_select_section): ... here.
2769         * config/nextstep-protos.h: Update.
2770
2771         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2772         (TARGET_ASM_SELECT_SECTION): New.
2773         * config/svr3.h (SELECT_SECTION): Remove.
2774
2775         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2776         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2777         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2778         (alpha_encode_section_info): Use it.
2779         * config/alpha/alpha-protos.h: Update.
2780         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2781         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2782         (TARGET_ASM_SELECT_SECTION): New.
2783         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2784
2785         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2786         (TARGET_ASM_UNIQUE_SECTION): New.
2787
2788         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2789         (avr_unique_section): Rename from unique_section; make static.
2790         * config/avr/avr-protos.h: Update.
2791         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2792
2793         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2794
2795         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2796         (TARGET_ASM_UNIQUE_SECTION): New.
2797         * config/i386/i386-interix.h: Likewise.
2798         * config/i386/win32.h: Likewise.
2799         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2800         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2801         * config/i386/sco5.h (SELECT_SECTION): Remove.
2802         (TARGET_ASM_SELECT_SECTION): New.
2803         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2804
2805         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2806         instead of SELECT_SECTION.
2807         * config/m68k/dpx2.h: Likewise.
2808         * config/rs6000/lynx.h: Likewise.
2809
2810         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2811         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2812         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2813         (ia64_in_small_data_p): New.
2814         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2815         (ia64_aix_select_section, ia64_aix_unique_section): New.
2816         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2817         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2818
2819         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2820         (TARGET_ASM_SELECT_SECTION): New.
2821         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2822         * config/m32r/m32r-protos.h: Update.
2823
2824         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2825         (SELECT_SECTION): Move ...
2826         * config/m88k/m88k.c (m88k_select_section): ... here.
2827
2828         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2829         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2830         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2831         (mcore_unique_section): Make static.
2832         * config/mcore/mcore-protos.h: Update.
2833
2834         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2835         (TARGET_ASM_UNIQUE_SECTION): New.
2836         * config/mips/elf64.h: Likewise.
2837         * config/mips/iris6gld.h: Likewise.
2838         * config/mips/linux.h: Likewise.
2839         * config/mips/mips-protos.h: Update.
2840         * config/mips/mips.c (mips_select_section): Add align argument.
2841         * config/mips/mips.h (SELECT_SECTION): Remove.
2842         (TARGET_ASM_SELECT_SECTION): New.
2843
2844         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2845         * config/mmix/mmix.c (mmix_select_section): Remove.
2846         (mmix_unique_section): Remove.
2847         * config/mmix/mmix-protos.h: Update.
2848
2849         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2850         (SELECT_SECTION): Move ...
2851         * config/pa/pa.c (pa_select_section): ... here.
2852         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2853
2854         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2855         from rs6000_select_section and make static.
2856         (rs6000_elf_unique_section): Similarly.
2857         (rs6000_xcoff_select_section): From xcoff.h.
2858         (rs6000_xcoff_unique_section): Likewise.
2859         * config/rs6000/rs6000-protos.h: Update.
2860         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2861         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2862         * config/rs6000/xcoff.h: Likewise.
2863
2864         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2865         (SELECT_SECTION): Move ...
2866         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2867
2868         * config/v850/v850.h (SELECT_SECTION): Move ...
2869         * config/v850/v850.c (v850_select_section): ... here.
2870         (TARGET_ASM_SELECT_SECTION): New.
2871
2872         * config/vax/vms.h (SELECT_SECTION): Move ...
2873         * config/vax/vax.c (vms_select_section): ... here.
2874         (TARGET_ASM_SELECT_SECTION): New.
2875
2876         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2877         for the target hooks.
2878
2879 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2880
2881         * config/arm/arm.c (emit_multi_reg_push): Do not set
2882         RTX_FRAME_RELATED_P on the SEQUENCE.
2883
2884 2002-05-16  Richard Henderson  <rth@redhat.com>
2885
2886         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2887         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2888
2889 2002-05-16  Richard Henderson  <rth@redhat.com>
2890
2891         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2892
2893         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2894
2895 2002-05-16  Richard Henderson  <rth@redhat.com>
2896
2897         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2898         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2899         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2900         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2901         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2902         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2903         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2904         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2905         Revert "Basic block renumbering removal", and two followup patches.
2906
2907 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2908
2909         * lcm.c (optimize_mode_switching): Revert previous change.
2910
2911 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2912
2913         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2914         with only extant block numbers.
2915
2916 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2917
2918         * lcm.c (optimize_mode_switching): Fix typo.
2919
2920 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2921
2922         * flow.c (calculate_global_regs_live): Queue blocks in program order.
2923
2924 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2925
2926         * doc/install.texi (Configuration): Document PWDCMD.
2927
2928 2002-05-16  Dale Johannesen  <dalej@apple.com>
2929
2930         * combine.c (cant_combine_insn_p):  Reenable combinations
2931         involving hard regs unless CLASS_LIKELY_SPILLED_P.
2932
2933 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2934
2935         * c-common.c (cb_register_builtins): Handle more built-ins
2936         here rather than in gcc.c specs.
2937         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2938         (cpp_options): Pass -O flags even when only preprocessing.
2939         * toplev.c (set_fast_math_flags): New prototype.
2940         (fast_math_flags_set_p): New.
2941         (set_no_fast_math_flags): Remove.
2942         (decode_f_option): Update.
2943         * toplev.h (set_fast_math_flags): Update.
2944         (fast_math_flags_set_p): New.
2945         (set_no_fast_math_flags): Remove.
2946 config:
2947         * c4x/c4x.c (c4x_override_options): Update.
2948
2949 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
2950
2951         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2952         Default-define here.
2953         (builtin_define_with_value): Can now wrap the expansion in
2954         quotation marks if such is wanted.
2955         (cb_register_builtins): Update calls to builtin_define_with_value.
2956         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2957         here.
2958         (c_common_init): Set options->stdc_0_in_system_headers.
2959         * c-lex.h: Update prototype of builtin_define_with_value.
2960         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2961         and REGISTER_PREFIX.
2962
2963         * cppinit.c (VERS, ULP, C, X): Kill.
2964         (builtin_array): Remove entries for __VERSION__,
2965         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2966         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
2967         a constant.
2968         (init_builtins): Kill off a bunch of now-dead code.
2969         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2970         -fno-leading-underscore.
2971         (cpp_handle_option): Remove code to set user_label_prefix.
2972         (cpp_post_options): Likewise.
2973
2974         * cpplib.h (struct cpp_options): Remove user_label_prefix.
2975         (stdc_0_in_system_headers): New.
2976         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2977         stdc_0_in_system_headers) too to decide the value of __STDC__.
2978
2979         * tradcpp.c (user_label_prefix): Kill.
2980         (main): Remove code handling -f(no-)leading-underscore.
2981         (initialize_builtins): Don't define __REGISTER_PREFIX__
2982         or __USER_LABEL_PREFIX__.
2983         (install_value): Wrap compound statement in dummy loop so the
2984         macro works properly in an if statement.
2985
2986
2987 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
2988
2989         * loop.h (struct loop_info): Add member has_prefetch.
2990         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2991         (prescan_loop): Initialize has_prefetch.
2992         (struct prefetch_info): Change prefetch_in_loop and
2993         prefetch_before_loop from bit fields to ints.
2994         (emit_prefetch_instructions): Several small fixes.
2995         (check_dbra_loop): Don't reverse loop that uses prefetch.
2996
2997 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2998
2999         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
3000         * configure.in: Likewise.
3001         * fixinc/check.tpl: Likewise.
3002         * fixinc/fixinc.dgux: Likewise.
3003         * fixinc/fixinc.svr4: Likewise.
3004         * fixinc/fixinc.winnt: Likewise.
3005         * fixinc/fixincl.sh: Likewise.
3006         * fixproto: Likewise.
3007         * configure: Regenerate.
3008
3009 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3010
3011         Basic block renumbering removal:
3012         * basic_block.h (struct basic_block_def): Renamed index to sindex,
3013         added prev_bb and next_bb fields.
3014         (n_basic_blocks): Renamed to num_basic_blocks.
3015         (last_basic_block): New, index of last basic block.
3016         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
3017         traversing basic block chain.
3018         (BLOCK_NUM): index -> sindex.
3019         (create_basic_block_structure, create_basic_block): Declaration changed.
3020         (debug_num2bb): Declare.
3021         (expunge_block_nocompact): Declaration removed.
3022         (link_block, unlink_block, compact_blocks): Declare.
3023         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
3024         * cfg.c (entry_exit_blocks): Initialize new fields.
3025         (clear_edges, alloc_block, expunge_block, cached_make_edge,
3026         redirect_edge_pred, dump_flow_info, dump_edge_info,
3027         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
3028         free_aux_for_edges): Modified.
3029         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
3030         (expunge_block_nocompact): Removed.
3031         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
3032         find_unreachable_blocks, create_edge_list, print_edge_list,
3033         verify_edge_list, flow_edge_list_print, remove_fake_successors,
3034         remove_fake_edges, flow_reverse_top_sort_order_compute,
3035         flow_depth_first_order_compute, flow_preorder_transversal_compute,
3036         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
3037         flow_dfs_compute_reverse_execute): Modified.
3038         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
3039         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
3040         Modified.
3041         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
3042         merge_blocks_move_predecessor_nojumps,
3043         merge_blocks_move_successor_nojumps, merge_blocks,
3044         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
3045         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
3046         * cfglayout.c (skip_insns_after_block, label_for_bb,
3047         record_effective_endpoints, scope_to_insns_finalize,
3048         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
3049         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
3050         cfg_layout_duplicate_bb): Modified.
3051         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
3052         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
3053         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
3054         flow_loops_find, flow_loop_outside_edge_p): Modified.
3055         * cfgrtl.c (create_basic_block_structure, create_basic_block,
3056         flow_delete_block, compute_bb_for_insn, split_block,
3057         try_redirect_by_replacing_jump, redirect_edge_and_branch,
3058         force_nonfallthru_and_redirect, tidy_fallthru_edge,
3059         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
3060         commit_edge_insertions, commit_edge_insertions_watch_calls,
3061         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
3062         purge_all_dead_edges): Modified.
3063         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
3064         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
3065         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
3066         Modified.
3067         * conflict.c (conflict_graph_compute): Modified.
3068         * df.c (FOR_ALL_BBS): Removed.
3069         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
3070         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
3071         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
3072         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
3073         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
3074         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
3075         * final.c (compute_alignments, final_scan_insn): Modified.
3076         * flow.c (verify_local_live_at_start, update_life_info,
3077         update_life_info_in_dirty_blocks, free_basic_block_vars,
3078         delete_noop_moves, calculate_global_regs_live,
3079         initialize_uninitialized_subregs, allocate_bb_life_data,
3080         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
3081         mark_used_reg, count_or_remove_death_notes): Modified.
3082         * function.c (thread_prologue_and_epilogue_insns): Modified.
3083         * gcse.c (struct null_pointer_info): Change typo of current_block
3084         to basic_block.
3085         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3086         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3087         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3088         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3089         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3090         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3091         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3092         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3093         pre_delete, one_pre_gcse_pass, compute_transpout,
3094         invalidate_nonnull_info, delete_null_pointer_checks_1,
3095         free_code_hoist_mem, compute_code_hoist_vbeinout,
3096         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3097         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3098         compute_store_table, build_store_vectors, insert_insn_start_bb,
3099         insert_store, replace_store_insn, free_store_memory, store_motion):
3100         Modified.
3101         * global.c (global_alloc, global_conflicts, mark_elimination,
3102         build_insn_chain): Modified.
3103         * graph.c (print_rtl_graph_with_bb): Modified.
3104         * haifa-sched.c (sched_init): Modified.
3105         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3106         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3107         if_convert): Modified.
3108         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3109         compute_insert_delete, pre_edge_lcm, compute_available,
3110         compute_farthest, compute_nearerout, compute_rev_insert_delete,
3111         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3112         Modified.
3113         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3114         * loop.c (loop_dump_aux): Modified.
3115         * predict.c (combine_predictions_for_insn, estimate_probability,
3116         last_basic_block_p, process_note_prediction, process_note_predictions,
3117         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3118         expensive_function_p, estimate_bb_frequencies,
3119         compute_function_frequency): Modified.
3120         * print-rtl.c (print_rtx): Modified.
3121         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3122         get_exec_counts, compute_branch_probabilities, compute_checksum,
3123         branch_prob, find_spanning_tree): Modified.
3124         * recog.c (split_all_insns, peephole2_optimize): Modified.
3125         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3126         convert_regs_1, convert_regs_2, convert_regs): Modified.
3127         * regclass.c (scan_one_insn, regclass): Modified.
3128         * regmove.c (mark_flags_life_zones, regmove_optimize,
3129         combine_stack_adjustments): Modified.
3130         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3131         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3132         * reorg.c (dbr_schedule): Modified.
3133         * resource.c (find_basic_block, init_resource_info): Modified.
3134         * sbitmap.c (sbitmap_intersection_of_succs,
3135         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3136         sbitmap_union_of_preds): Modified.
3137         * sched-deps.c (init_dependency_caches): Modified.
3138         * sched-ebb.c (schedule_ebbs): Modified.
3139         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3140         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3141         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3142         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3143         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3144         ssa_const_prop): Modified.
3145         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3146         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3147         * ssa.c (remove_phi_alternative, find_evaluations,
3148         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3149         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3150         make_regs_equivalent_over_bad_edges,
3151         make_equivalent_phi_alternatives_equival,
3152         compute_conservative_reg_partition,
3153         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3154         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3155         Modified.
3156
3157 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
3158
3159         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3160
3161 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
3162
3163         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3164         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3165         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3166         calling CONSTANT_POOL_ADDRESS_P.
3167         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3168         to decide whether to define __arm__ or __thumb.
3169         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3170         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3171
3172 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3173
3174         * config/arc/arc.h (CPP_PREDEFINES): Remove.
3175         (CPP_SPEC): Update.
3176         (TARGET_CPU_CPP_BUILTINS): New.
3177
3178 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3179
3180         * cpphash.h (cpp_macro): Move here, and make expansion a union.
3181         * cppmacro.c (cpp_macro): Remove.
3182         (enter_macro_context, replace_args, warn_of_redefinition,
3183         _cpp_create_definition, cpp_macro_definition): Update.
3184
3185 2002-05-16  Jason Merrill  <jason@redhat.com>
3186
3187         * config/mips/mips.c (mips_output_external): Don't do sdata
3188         optimization for a variable with DECL_COMDAT set.
3189
3190 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3191
3192         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3193         Cleanups for accepting modifiers on pointers.
3194         Fix predicate typos.
3195         Allow long pointers as well as int pointers.
3196
3197 2002-05-15  Richard Henderson  <rth@redhat.com>
3198
3199         * varasm.c (merge_weak): Remove special case for extern and common.
3200
3201 2002-05-15  Matt Hiller  <hiller@redhat.com>
3202
3203         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3204         XFAILing.
3205         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3206         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3207         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3208         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3209         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3210         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3211
3212 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3213
3214         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3215
3216 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3217
3218         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3219         ("altivec_mfvscr"): Read from VSCR.
3220
3221         Add vscr sets for the following insns: altivec_vctuxs,
3222         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3223         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3224         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3225         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3226         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3227         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3228         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3229         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3230         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3231         altivec_vsum2sws, altivec_vsumsws.
3232
3233         * config/rs6000/rs6000.h: Add VSCR fixed register.
3234         (CALL_REALLY_USED_REGISTERS): Add vscr.
3235         (CALL_USED_REGISTERS): Same.
3236         (FIXED_REGISTERS): Same.
3237         (REG_ALLOC_ORDER): Same.
3238         (reg_class): Add VSCR_REGS.
3239         (REG_CLASS_NAMES): Same.
3240         (REG_CLASS_CONTENTS): Same.
3241         (VSCR_REGNO): New.
3242         (REGISTER_NAMES): Add vscr.
3243         (DEBUG_REGISTER_NAMES): Same.
3244         (ADDITIONAL_REGISTER_NAMES): Same.
3245         (FIRST_PSEUDO_REGISTER): Increment.
3246         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3247
3248 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
3249
3250         * fold-const.c (fold): Fix a typo.
3251
3252 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
3253
3254         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3255         comparison against the highest or lowest integer value before
3256         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3257         transformation and that of an unsigned comparison against 0
3258         right after.
3259
3260 2002-05-15  Richard Henderson  <rth@redhat.com>
3261
3262         * varasm.c (merge_weak): Error for any weakening after definition.
3263         Adjust weakening after use warning to catch more cases.
3264         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3265         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3266
3267 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3268
3269         * invoke.texi (-malign-double): Re-add lost warning.
3270
3271         * i386-protos.h (x86_output_mi_thunk): Declare.
3272         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3273         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3274
3275         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3276         when flag_asynchronous_unwind_tables is set.
3277
3278         * flags.h (flag_reorder_functions): Declare.
3279         * function.c (prepare_function_start): Initialize frequnecy.
3280         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3281         * Makefile.in (predict.o): Add dependency on target.h and params.h
3282         * defaults.h (HOT_TEXT_SECTION_NAME,
3283         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3284         * predict.c (choose_function_section): New function.
3285         (estimate_bb_frequencies): Use it.
3286         * toplev.c (flag_reorder_functions): New global variable.
3287         (lang_independent_options): New.
3288         (parse_options_and_default_flags): Set.
3289         * varasm.c (assemble_start_function): Bypass functdion alignment
3290         for never executed functions.
3291         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3292         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3293         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3294         Document.
3295
3296         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3297
3298         * predict.c: Inlude profile.h
3299         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3300         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3301         Use the information about maximal counter in the program.
3302
3303         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3304
3305         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3306         probably_never_executed_bb_p): New functions.
3307         * cfgcleanup.c (outgoing_edges_match): Use them.
3308         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3309         (maybe_hot_bb_p, probably_cold_bb_p,
3310         probably_never_executed_bb_p): New functions.
3311
3312         * function.h (function): Add new field function_frequency.
3313         * predict.c (compute_function_frequency): New function.
3314         (estimate_probability): Call it.
3315
3316 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3317
3318         PR optimization/5172, optimization/5200
3319         * gcse.c (gcse_main): Disable store_motion.
3320
3321 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3322
3323         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3324         (c_common_nodes_and_builtins): Use it.
3325         (builtin_define_with_value): New function.
3326         (cb_register_builtins): Define __SIZE_TYPE__,
3327         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3328         using builtin_define_with_value.  Use consistent notation when
3329         defining __GXX_WEAK__.
3330         (WCHAR_TYPE_SIZE): Don't redefine.
3331         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3332
3333         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3334         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3335         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3336         * tradcpp.c (initialize_builtins): Likewise.
3337         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3338
3339         * c-lex.h (builtin_define_with_value): Prototype.
3340         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3341         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3342         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3343
3344         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3345         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3346         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3347         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3348         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3349         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3350         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3351         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3352         to __SIZE_TYPE__ etc from all spec strings. When this makes
3353         extra specs empty, delete them.
3354
3355 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3356
3357         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3358         for PA8000 or generating dwarf2 call frame information.
3359         (output_call): Remove DO_FRAME_NOTES check from return pointer
3360         optimization.
3361         (following_call): Return 0 when scheduling for PA8000 or generating
3362         dwarf2 call frame information.  Revise comment.
3363
3364 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3365
3366 config/alpha:
3367         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3368         and __IEEE_FP_INEXACT as appropriate.
3369         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3370         (CPP_SPEC): Remove ieee defines.
3371         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3372
3373 2002-05-14  Richard Henderson  <rth@redhat.com>
3374
3375         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3376         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3377
3378 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3379
3380         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3381         (CPP_SPEC): Update.
3382         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3383         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3384         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3385         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3386         (EXTRA_SPECS): Update.
3387         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3388         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3389         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3390         define TARGET_OS_CPP_BUILTINS if necessary.
3391
3392 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3393
3394         * gcc.c (cpp_options): Must pass -m* and -f* options
3395         to the front end even when only preprocessing.
3396         (cc1_options): Remove redundant -lang-c.
3397         * tradcpp.c (main): Ignore -m options.
3398 objc:
3399         * lang-specs.h: Similarly.
3400
3401 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3402
3403         * genautomata.c (transform_3): Add code for transformation
3404         `(A,B,...)+C -> A+C,B,...'.
3405
3406 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3407
3408         * final.c (end_final): Do not output profile_arcs constructor, when
3409         no functions are instrumented.
3410
3411 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3412
3413         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3414
3415 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3416
3417         * doc/install.texi: Remove special markup originally required for
3418         HTML generation with texi2html.
3419
3420 2002-05-14  Andreas Schwab  <schwab@suse.de>
3421
3422         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3423         SELECT_SECTION.
3424         (UNIQUE_SECTION): Define to get small data correctly.
3425
3426         * varasm.c (resolve_unique_section): Add third parameter
3427         flag_function_or_data_sections and use it instead of
3428         flag_function_sections.
3429         (assemble_start_function): Pass flag_function_sections.
3430         (asm_emit_uninitialised): Pass flag_data_sections.
3431         (assemble_variable): Likewise.
3432
3433 2002-05-14  Richard Henderson  <rth@redhat.com>
3434
3435         * config/i386/i386.md: Use define_constants for unspec numbers.
3436         * config/i386/i386.c: Likewise.
3437
3438 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3439
3440         * doc/contrib.texi: Update my entry.
3441
3442 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3443
3444         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3445         * fixinc/fixincl.x: Regenerated.
3446         * fixinc/tests/base/math.h: Update.
3447         * fixinc/tests/base/testing.h: Likewise.
3448
3449 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3450
3451         * genattr.c (gen_attr): Don't emit a comma after the last
3452         enumerator.
3453
3454 2002-05-13  Richard Henderson  <rth@redhat.com>
3455
3456         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3457         by non-local gotos.
3458         * recog.c (peephole2_optimize): Likewise.
3459
3460 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3461
3462         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3463         input to O_BINARY.
3464
3465 2002-05-13  Jeffrey A Law  (law@redhat.com)
3466
3467         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3468         Update prototype and callers.
3469         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3470         the mem_set_list which reference the stack pointer, as do
3471         calls to constant functions as they may clobber outgoing
3472         argument space.
3473
3474         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3475
3476         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3477         (ia32_multipass_dfa_lookahead): New function.
3478
3479 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3480
3481         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3482         (translate_options): Remove 'V'.
3483         (process_command): Similarly.
3484 doc:
3485         * invoke.texi: Remove documentation of 'V'.
3486
3487 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3488
3489         * config/s390/linux.h: Revert 2002-04-22 changes.
3490
3491 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3492
3493         * config/fr30/fr30.md: Only allow splits of immediate loads
3494         if the destination is a register.
3495
3496 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3497
3498         * Makefile.in (c-common.o, cppinit.o): Update.
3499         * c-common.c: Include except.h.
3500         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3501         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3502         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3503         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3504         CPP_PREDEFINES): Handle here.
3505 config:
3506         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3507         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3508         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3509         TARGET_OS_CPP_BUILTINS.
3510         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3511         (CPP_SPEC, EXTRA_SPECS): Update.
3512         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3513         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3514         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3515         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3516         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3517 doc:
3518         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3519         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3520
3521 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3522
3523         * emit-rtl.c (global_rtl): Update comment.
3524         (const_double_htab, const_double_htab_hash,
3525         const_double_htab_hash, lookup_const_double): New.
3526         (const_int_htab_hash, const_int_htab_eq): Remove const
3527         qualifiers, which cause tons of warnings with RTL checking on.
3528         (gen_rtx_CONST_DOUBLE): Deleted.
3529         (const_double_from_real_value): New function - bears some
3530         resemblance to the former immed_real_const_1.
3531         (immed_double_const): Moved here from varasm.c and
3532         simplified.
3533         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3534         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3535         (gen_rtx): Use immed_double_const.
3536         (init_emit_once): Initialize the const_double_htab.  Use
3537         REAL_VALUE_FROM_INT where possible.  Can now use
3538         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3539         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3540         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3541         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3542         (init_varasm_status, mark_varasm_status): Don't touch
3543         x_const_double_chain.
3544
3545         * output.h: Delete prototype for clear_const_double_mem.
3546         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3547         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3548         const_double_from_real_value, not immed_real_const_1, and use
3549         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3550         CONST_DOUBLE_ATOF.
3551         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3552         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3553         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3554         (gen_rtx_REG): Second arg is unsigned.
3555
3556         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3557         (excluded_rtx): New, return true for CONST_DOUBLE.
3558         (genmacro): Write nothing for excluded codes.
3559         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3560         * expr.c (expand_expr): Likewise.
3561         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3562         CONST_DOUBLE_CHAIN.
3563         * toplev.c (rest_of_compilation): Don't call
3564         clear_const_double_mem.
3565
3566         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3567         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3568         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3569         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3570         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3571         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3572         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3573         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3574
3575 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3576
3577         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3578
3579 2002-05-12  Tom Tromey  <tromey@redhat.com>
3580
3581         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3582
3583 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3584
3585         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3586         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3587         * gensupport.h: Prototype new routines.
3588         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3589         use of printf.
3590         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3591         (next_comma_elt): Use scan_comma_elt.
3592
3593         * config/i386/i386.md: Use new attribute notation to break up
3594         long lines in define_attr forms.
3595
3596 2002-05-12  Richard Henderson  <rth@redhat.com>
3597
3598         * expr.c (compress_float_constant): New.
3599         (emit_move_insn): Use it.
3600         (float_extend_from_mem): New.
3601         (init_expr_once): Initialize it.
3602         * real.c (exact_real_truncate): New.
3603
3604         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3605         dropped into memory; penalize for size.
3606         (RTX_COSTS): FLOAT_EXTEND is free.
3607         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3608         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3609
3610 2002-05-12  Richard Henderson  <rth@redhat.com>
3611
3612         * profile.h (profile_info): Add missing extern to declaration.
3613         * profile.c (profile_info): Define it.
3614
3615 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3616
3617         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3618         used for DImode and TImode.
3619
3620 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3621
3622         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3623         fake a newline.
3624
3625 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3626
3627         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3628         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3629         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3630         (rs6000_override_options): Handle -m(no-)longcall.
3631         (init_cumulative_args, output_mi_thunk): Check for both
3632         longcall and shortcall attributes on the function.
3633         (rs6000_attribute_table): Add "shortcall".
3634         (rs6000_handle_longcall_attribute): Update comment.
3635         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3636         altivec_expand_ternop_builtin): Add default clauses to switches
3637         to silence warnings.
3638
3639         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3640         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3641         (TARGET_OPTIONS): Add longcall and no-longcall.
3642
3643         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3644         call_value_nonlocal_sysv): Split by alternatives.  One pair
3645         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3646         the call cookie.  The other pair accepts only LR/CTR and has
3647         no restriction.
3648
3649         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3650         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3651         tmake_file.
3652         * config/rs6000/rs6000-c.c: New file.
3653         * config/rs6000/t-rs6000-c-rule: New file.
3654         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3655         Prototype rs6000_pragma_longcall.
3656
3657         * doc/extend.texi: Document shortcall attribute.
3658         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3659
3660 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3661
3662         * reorg.c (dbr_schedule): Remove unnecessary test.
3663
3664 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3665
3666         * i386.md (testsi to testqi spliters): New.
3667
3668         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3669
3670         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3671
3672         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3673
3674         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3675         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3676         that can be made fallthru.
3677
3678         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3679
3680         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3681         (cfg_layout_initialize): Use it.
3682
3683 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3684
3685         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3686         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3687         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3688
3689 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3690
3691         * dbxout.c: Fix formatting.
3692         * dependence.c: Likewise.
3693         * df.c: Likewise.
3694         * diagnostic.c: Likewise.
3695         * doloop.c: Likewise.
3696         * dominance.c: Likewise.
3697         * doschk.c: Likewise.
3698         * dwarf2asm.c: Likewise.
3699         * dwarf2out.c: Likewise.
3700         * dwarfout.c: Likewise.
3701
3702 2002-05-10  Richard Henderson  <rth@redhat.com>
3703
3704         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3705         Convert integers constants as needed.  Replace "nwords" field with
3706         "sizeof_bb".
3707         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3708         * function.h: Fix typo in comment.
3709         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3710
3711 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3712
3713         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3714         into the equivalent (signed char)c > 0.
3715
3716 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3717
3718         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3719         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3720         (struct prefetch_info): Fix spelling of member bytes_accessed.
3721         (emit_prefetch_instructions): Make dump messages more regular;
3722         restructure code to add more dump messages; use new macros for
3723         heuristics. (There are no code generation changes in any of this).
3724
3725 2002-05-10  David S. Miller  <davem@redhat.com>
3726
3727         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3728         (struct rtx_def): Update unchanging flag comment.
3729         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3730         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3731         to be handled to INSN too.
3732         (dbr_schedule): Likewise.
3733         * resource.c (next_insn_no_annul): Likewise.
3734
3735         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3736         casing.
3737
3738 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3739
3740         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3741         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3742         (possibly) work around broken /bin/sh.
3743
3744 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3745
3746         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3747         . as N64/N32 libgcc_s.so subdirs.
3748
3749 2002-05-10  David S. Miller  <davem@redhat.com>
3750
3751         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3752
3753         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3754         more accurately.
3755         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3756         comment.
3757         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3758         * doc/rtl.texi: Document these macros more accurately.
3759         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3760         JUMP_INSNs and CALL_INSNs.
3761         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3762         or INSN_FROM_TARGET_P if the code is appropriate.
3763
3764 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3765
3766         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3767         before using SYMBOL_REF_FLAG (addr).
3768
3769         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3770         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3771         Make non-static.  Update all callers.
3772         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3773         New insns to clear/set/test a single bit in I/O address space.
3774
3775 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3776
3777         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3778
3779 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3780
3781         * Makefile.in: Update.
3782         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3783         builtin_define_std): New.
3784         (c_common_init): Register CPP builtins callback.
3785         * c-common.h (flag_iso, flag_undef): New.
3786         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3787         * c-lex.c: Don't include target.h.
3788         (cb_register_builtins): Move to c-common.c.
3789         (init_c_lex): Don't register hook here.
3790         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3791         (cpp_define, cpp_assert): Remove.
3792         * gcc.c (cc1_options): Pass -undef to front end.
3793         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3794         (TARGET_INITIALIZER): Update.
3795         * target.h (struct cpp_reader): Don't predeclare.
3796         (struct gcc_target): Remove cpp builtin hook.
3797         * tree.c (default_register_cpp_builtins): Remove.
3798 doc:
3799         * tm.texi: Update.
3800
3801 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3802
3803         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3804
3805 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3806
3807         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3808         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3809
3810 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3811
3812         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3813         * config/sparc/libgcc-sparc-glibc.ver: New file.
3814         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3815         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3816
3817 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3818
3819         PR target/6429
3820         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3821         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3822         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3823         base multilibs.
3824         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3825         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3826         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3827         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3828
3829 2002-05-09  Richard Henderson  <rth@redhat.com>
3830
3831         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3832         * config/ia64/ia64.c: Likewise.
3833
3834 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3835
3836         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3837         (save_restore_insns): Likewise.
3838         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3839         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3840
3841 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3842
3843         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3844         * i386.md: Move scheduling information into new files.
3845
3846         * i386.md (type attribute): Add "rotate" for rotate insns.
3847         (rotate insns): Set type to "rotate".
3848         (various attributes and function units): Treat rotate like shift.
3849         (pent_pair attribute): Only rotates by one bit position are
3850         pairable.
3851         (sbb insns): Explicitly set pent_pair attribute on a couple
3852         that were missing it.
3853
3854 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3855
3856         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3857         make sure that buffer starts on odd word address.
3858         (sh_va_arg): Skip odd fp registers when reading a double precision
3859         value.
3860
3861 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3862
3863         * tree.h (preserve_data, object_permanent_p, type_precision):
3864         Remove.
3865
3866 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3867
3868         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3869         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3870 doc:
3871         * cpp.texi: Update for removal of obsolete features.
3872
3873 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3874                           Jeffrey A Law  (law@redhat.com)
3875
3876         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3877         the DFA interface for Pentium processors.
3878         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3879         (attr_pent_pair, ix86_pent_find_pair): Remove.
3880         (ix86_sched_reorder_pentium): Remove.
3881         (ix86_sched_reorder): Remove reordering for Pentium.
3882         * i386.md (Pentium scheduling): Rewrite using DFA description.
3883
3884 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3885
3886         * cfganal.c (can_fallthru): Fix fast path.
3887         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3888         with edges to the next block.
3889
3890 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3891                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3892
3893         * final.c (end_final): Use C trees to output data structures for profiling.
3894
3895         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3896         (profile.o): New dependency profile.h
3897         (final.o): New dependency profile.h
3898         * profile.h: New file. New global structure profile_info.
3899         * final.h (count_edges_instrumented_now): Declare.
3900         (current_function_cfg_checksum): Declare.
3901         (function_list): New structure.
3902         (functions_head, functions_tail): New static variables.
3903         (end_final): Emits more data, removed some -ax stuff.
3904         (final): Stores function names and chcksums.
3905         * gcov-io.h (__write_gcov_string): New function.
3906         (__read_gcov_string): New function.
3907         * gcov.c (read_profile): New function.
3908         (create_program_flow_graph): Uses read_profile instead of reading
3909         da_file.
3910         (read_files): Removed da_file checking, it's done by read_profile now.
3911         * libgcc2.c (bb_function_info): New structure.
3912         (bb): New field in structure, removed some -ax stuff.
3913         (__bb_exit_func): Changed structure of da_file.
3914         * profile.c (count_edges_instrumented_now): New global variable.
3915         (current_function_cfg_checksum): New global variable.
3916         (max_counter_in_program): New global variable.
3917         (get_exec_counts): New function.
3918         (compute_checksum): New function.
3919         (instrument_edges): Sets count_edges_instrumented_now.
3920         (compute_branch_probabilities): Uses get_exec_counts instead of
3921         reading da_file.
3922         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3923         (init_branch_prob): Removed da_file checking, done in get_exec_counts
3924         now.
3925         (end_branch_prob): Removed da_file checking, done in get_exec_counts
3926         now.
3927         * gcov.texi: Updated information about gcov file format.
3928
3929 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3930
3931         * sbitmap.c: Fix formatting.
3932         * scan.c: Likewise.
3933         * scan-decls.c: Likewise.
3934         * sched-deps.c: Likewise.
3935         * sched-ebb.c: Likewise.
3936         * sched-rgn.c: Likewise.
3937         * sched-vis.c: Likewise.
3938         * sdbout.c: Likewise.
3939         * sibcall.c: Likewise.
3940         * simplify-rtx.c: Likewise.
3941         * ssa.c: Likewise.
3942         * ssa-ccp.c: Likewise.
3943         * ssa-dce.c: Likewise.
3944         * stmt.c: Likewise.
3945         * stor-layout.c: Likewise.
3946         * stringpool.c: Likewise.
3947
3948 2002-05-09  David S. Miller  <davem@redhat.com>
3949
3950         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3951
3952 2002-05-07  David S. Miller  <davem@redhat.com>
3953
3954         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3955         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3956         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3957         library implementation clobbers the output before the inputs
3958         are fully consumed, use stack temporary for the output.
3959
3960 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
3961
3962         * config/netbsd.h (CPP_SPEC): Remove.
3963         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3964         * config/i386/netbsd.h (CPP_SPEC): Define.
3965         * config/ns32k/netbsd.h (CPP_SPEC): Define.
3966         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3967         * config/sparc/netbsd.h (CPP_SPEC): Define.
3968         * config/vax/netbsd.h (CPP_SPEC): Define.
3969
3970 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3971
3972         * read-rtl.c: Fix formatting.
3973         * real.c: Likewise.
3974         * recog.c: Likewise.
3975         * regclass.c: Likewise.
3976         * regmove.c: Likewise.
3977         * reg-stack.c: Likewise.
3978         * reload1.c: Likewise.
3979         * reload.c: Likewise.
3980         * resource.c: Likewise.
3981         * rtlanal.c: Likewise.
3982         * rtl.c: Likewise.
3983         * rtl-error.c: Likewise.
3984
3985 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3986
3987         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3988         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3989
3990 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
3991
3992         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3993         use __SSE2__ macro instead.
3994         * config/i386/xmmintrin.h: Likewise.
3995
3996 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
3997
3998         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3999         and use it in all invocations of these macros.  Clean up comments.
4000         * rtl.c (rtl_check_failed_flag): Add an argument for the name
4001         of the flag access macro whose check failed.
4002         * doc/rtl.texi (Flags): Document additional flag uses.
4003
4004 2002-05-08  Robert Spier <rspier@pobox.com>
4005             Neil Booth  <neil@daikokuya.demon.co.uk>
4006
4007         PR preprocessor/6521
4008         * cppfiles.c (handle_missing_header): Don't do anything
4009         different for <> includes.
4010 doc:
4011         * cppopts.texi: Update documentation for -MG.
4012
4013 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
4014
4015         * cpplex.c (cpp_interpret_charconst): Truncate as well as
4016         sign-extend.
4017 doc:
4018         * cpp.texi: Clarify multichar charconst valuation.
4019
4020 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4021
4022         * doc/invoke.texi: Document -mwindiss option.
4023
4024 2002-05-08  Jason Merrill  <jason@redhat.com>
4025
4026         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
4027
4028         * dwarf2out.c (gen_type_die): Abort on broken recursion.
4029
4030         PR c++/6381
4031         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
4032         REAL_CST.
4033
4034 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
4035
4036         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
4037         little-endian multilibs to override arm/thumb multilibs.
4038         Do not build hardware floating point multilibs, nor apcs-26
4039         multilibs for the Thumb.
4040
4041 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
4042
4043         PR c/6569.
4044         * varasm.c (mark_weak): New function.
4045         (merge_weak): Use it.  Do not call declare_weak.
4046         (declare_weak): Use merge_weak.
4047
4048 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4049
4050         * cse.c (dead_libcall_p): Update counts.
4051         (delete_trivially_dead_insns): Update call of dead_libcall_p.
4052
4053 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
4054
4055         * cfglayout.c (function_tail_eff_head): Rename to ...
4056         (function_footer): ... this one.
4057         (unlink_insn_chain): New functions.
4058         (label_for_bb): Only call block_label and emit debug message.
4059         (record_effective_endpoints): Actually unlink the headers and footers.
4060         (fixup_reorder_cahin): Re-insert the unlinked sequences.
4061         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
4062         * cfglayout.h (struct reorder_block_def): New fields footer/header;
4063         remove eff_head/eff_end.
4064         * rtl.h (set_first_insn): Declare.
4065         * emit-rtl.c (set_first_insn): New function.
4066
4067         * cfglayout.c (fixup_reorder_chain): Dump duplicated
4068         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4069         cfg_layout_duplicate_bb): New global function.
4070         (duplicate_insn_chain): New static function.
4071         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
4072         cfg_layout_duplicate_bb): Declare.
4073         (struct reorder_block_def): Add "original" field.
4074         * emit-rtl.c (emit_copy_of_insn_after): New function.
4075         * rtl.h (emit_copy_of_insn_after): Declare.
4076
4077         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
4078         (fixup_reorder_chain): properly handle edges to exit block.
4079
4080 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
4081                                Jan Hubicka  <jh@suse.cz>
4082
4083         * basic-block.h (note_prediction_to_br_prob): declare.
4084         * c-semantics.c: Inlucde predit.h
4085         (expand_stmt): predict GOTO_STMT as not taken.
4086         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4087         (cleanup_cfg): Do not free tail_recursion_list.
4088         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4089         (flow_delete_block): Kill predictions past end of basic block.
4090         * output.h (delete_unreachable_blocks): Declare.
4091         * predict.c (predicted_by_p, process_note_predictions,
4092         process_note_prediction, last_block_p): New function.
4093         (estimate_probability): Bypass loop on PRED_CONTINUE;
4094         do not handle noreturn heuristics; kill PRED_RETURN; add
4095         PRED_EARLY_RETURN.
4096         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4097         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4098         * predict.h (IS_TAKEN): New constant.
4099         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4100         * rtl.c (NOTE_INSN_PREDICTION): New.
4101         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4102         New macro.
4103         (insn_note): add NOTE_INSN_PREDICTION.
4104         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4105         CFG; free tail_recursion_label_list.
4106         * stmt.c: Include predict.h;
4107         (return_prediction): New.
4108         (expand_value_return): Use it.
4109         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4110
4111 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
4112
4113         * config/mips/mips.md: Name the unspecs with define_constant.
4114         (*HILO_delay): Rename to 'hilo_delay' (no star).
4115         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4116         (reload_outdi, reload_outsi): Likewise.
4117
4118 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
4119
4120         * toplev.c: Fix formatting.
4121
4122 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
4123
4124         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4125         * configure.in (ac_rtlflag_checking): New.
4126         * doc/install.texi (--enable-checking): Document RTL flag checking.
4127
4128 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4129
4130         * c-common.c (c_common_init): Set options->unsigned_wchar.
4131         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4132         group target dependencies.
4133         (init_builtins, cpp_handle_option): Update.
4134         * cpplex.c (cpp_interpret_charconst): Update.
4135         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4136         signed_char to unsigned_char, group target dependencies.
4137         * defaults.h (WCHAR_UNSIGNED): Remove.
4138         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4139 config:
4140         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4141         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4142         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4143         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4144         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4145 doc:
4146         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4147
4148 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4149
4150         * fixinc/inclhack.def (windiss_math1): New fix.
4151         (windiss_math2): Likewise.
4152         (windiss_valist): Likewise.
4153         * fixinc/fixincl.x: Regenerated.
4154
4155 2002-05-07  Andreas Jaeger  <aj@suse.de>
4156
4157         * genautomata.c (output_internal_min_issue_delay_func): Add
4158         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4159         (output_internal_trans_func): Likewise.
4160
4161 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
4162
4163         * pa.c (hppa_profile_hook): Use force_reg to get the address
4164         of the profile hook into an appropriate pseudo register.
4165
4166 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4167
4168         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4169         (LINK_START_SPEC): Handle it.
4170         (LINK_OS_SPEC): Likewise.
4171         (CPP_SPEC): Likewise.
4172         (STARTFILE_SPEC): Likewise.
4173         (LIB_SPEC): Likewise.
4174         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
4175         all platforms.
4176         (CRTSAVRES_DEFAULT_SPEC): New macro.
4177         (LIB_WINDISS_SPEC): New macro.
4178         (CPP_OS_WINDISS_SPEC): Likewise.
4179         (STARTFILE_WINDISS_SPEC): Likewise.
4180         (ENDFILE_WINDISS_SPEC): Likewise.
4181         (LINK_START_WINDISS_SPEC): Likewise.
4182         (LINK_OS_WINDISS_SPEC): Likewise.
4183         * config/rs6000/windiss.h: New file.
4184
4185 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
4186
4187         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4188
4189 2002-05-06  David S. Miller  <davem@redhat.com>
4190
4191         * config/sparc/sparc.md (shift insns): Do not mask off
4192         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4193         take care of it.
4194
4195 2002-05-06  Richard Henderson  <rth@redhat.com>
4196
4197         PR c++/6212
4198         * expr.c (highest_pow2_factor_for_type): New.
4199         (expand_assignment): Use it.
4200
4201 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
4202
4203         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4204         unspec_volatile.
4205         ("altivec_mfvscr"): Same.
4206
4207 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4208
4209         * rtl.h (struct rtx_def): Update comments.
4210         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
4211         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
4212         RTL_FLAG_CHECK macros with list of expected RTL codes.
4213         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4214         (rtl_check_failed_flag): New.
4215         * reload1.c (reload): Use REG macro before changing rtx to MEM.
4216         (reload_cse_noop_set_p): Check rtx code before using access macro.
4217         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4218         before using access macro.
4219
4220 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4221
4222         * doc/rtl.texi (Flags): Update to reflect current usage.
4223
4224 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4225
4226         PR opt/3995
4227         * fold-const.c (sign_bit_p): New function.
4228         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4229         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4230         Reapply fold when converting (A & C) == C into (A & C) != 0.
4231         (fold_binary_op_with_conditional_arg): Fix typo in comment.
4232
4233 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4234
4235         * c-common.c (warn_multichar): New.
4236         (c_common_init): Set CPP's warn_multichar.
4237         * c-common.h (warn_multichar): New.
4238         * c-decl.c (warn_multichar): Remove.
4239         * c-lex.c (lex_charconst): Update.
4240         * c-tree.h (warn_multichar): Remove.
4241         * cppexp.c (eval_token): Sign-extend charconst value.
4242         * cppinit.c (cpp_create_reader): Set warn_multichar.
4243         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4244         each character.  Update prototype.  Sign-extend the result.
4245         * cpplib.h: Fix conditions.
4246         (struct cpp_options): Add new warning flag.
4247         (cpp_interpret_charconst): Update prototype.
4248 doc:
4249         * cpp.texi: Update documentation.
4250
4251 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
4252
4253         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4254         Fix typo in usage of allof instead of unit.
4255
4256 2002-05-06  Richard Henderson  <rth@redhat.com>
4257
4258         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4259         and any jump or call for IN.
4260
4261 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
4262
4263         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4264         -msse2.
4265         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4266
4267 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4268
4269         * fold-const.c (lshift-double): Cast the high word to an unsigned
4270         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4271         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4272         avoid compiler warning.  (fold): Remove redundant code from
4273         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4274
4275 2002-05-06  Jeff Law  <law@redhat.com>
4276
4277         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4278         * pa.c (pa_adjust_cost): Remove all true dependency cost
4279         adjustments.  Also remove support for non-DFA scheduling.
4280         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4281         to adjust true dependency costs.  Update various comments.
4282         (7100lc, 7200, 7300 scheduling): Simplify by combining the
4283         FP ALU & MPY units into a single unit.
4284
4285 2002-05-06  Catherine Moore  <clm@redhat.com>
4286
4287         * config/v850/v850.c (compute_register_save_size): Make sure
4288         to count all of the registers that will be saved.
4289
4290 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4291
4292         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4293
4294 2002-05-06  David S. Miller  <davem@redhat.com>
4295
4296         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4297         allow result to overlap input operands in memory.
4298
4299 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4300
4301 doc:
4302         * cpp.texi: Update multichar charconst docs.
4303
4304 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4305
4306         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4307         character.  Don't ignore excess characters.  Treat
4308         multicharacter character constants as signed.
4309         (cpp_parse_escape): Clarify diagnostic.
4310
4311 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4312
4313         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4314         use add instead of shift.
4315         (ashldi3_sp64): Likewise.
4316         (ashlsi3_const1, ashldi3_const1): Remove.
4317         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4318         * config/sparc/sparc.c (const1_operand): New.
4319
4320 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4321
4322         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4323
4324 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4325
4326         PR target/6561
4327         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4328
4329 2002-05-05  Richard Henderson  <rth@redhat.com>
4330
4331         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4332         memory latency adjustments.
4333         (alpha_variable_issue): Remove.
4334         (alpha_use_dfa_pipeline_interface): New.
4335         (alpha_multipass_dfa_lookahead): New.
4336         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4337         include new dfa scheduling.
4338         (attr type): Add none.
4339         (blockage): Use it.
4340         * config/alpha/ev4.md: New.
4341         * config/alpha/ev5.md: New.
4342         * config/alpha/ev6.md: New.
4343
4344 2002-05-05  David S. Miller  <davem@redhat.com>
4345
4346         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4347
4348 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4349
4350         * cse.c: Fix formatting.
4351         * emit-rtl.c: Likewise.
4352
4353 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4354
4355         * genautomata.c (initiate_states): Add additional guard to
4356         initialize `units_array'.
4357
4358 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4359
4360         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4361         process_unit_to_form_the_same_automaton_unit_lists,
4362         form_the_same_automaton_unit_lists
4363         check_unit_distributions_to_automata): New prototypes and
4364         functions.
4365         (check_automata): Rename it into `check_automata_insn_issues'.
4366         (unit_decl): New fields `the_same_automaton_unit' and
4367         `the_same_automaton_message_reported_p'.
4368         (unit_decl_t): New typedef.
4369         (the_same_automaton_lists): New gloval variable.
4370         (unit_regexp, unit_set_el, units_array, units_cmp,
4371         output_get_cpu_unit_code_func): Use the typedef.
4372         (evaluate_max_reserv_cycles): Increment
4373         `description->max_insn_reserv_cycles'.
4374         (initiate_states): Don't increment `max_cycles_num'.
4375         (transform_insn_regexps): Move code around transformation of
4376         regexps from `generate'.
4377         (generate): Remove call of `transform_insn_regexps'.
4378         (expand_automata): Call `transform_insn_regexps' and
4379         `check_unit_distributions_to_automata'.  Check errors before
4380         `generate'.
4381
4382         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4383         automaton `ultrasparc3_1'.
4384
4385 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4386
4387         * c-common.c (c_common_init): Set up CPP arithmetic.
4388         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4389         something reasonable for the host.
4390         (sanity_checks): Add checks.
4391         (cpp_read_main_file): Call sanity_checks() from here...
4392         (cpp_post_options): ... not here.
4393         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4394         * cpplib.h (struct cpp_options): New member int_precision.
4395
4396 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4397
4398         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4399
4400 2002-05-04  David S. Miller  <davem@redhat.com>
4401
4402         * config/sparc/linux.h, config/sparc/linux64.h
4403         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4404
4405         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4406         more RTX codes.
4407         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4408
4409         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4410         of SETs.
4411
4412 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4413
4414         * treelang; New directory for new sample language treelang.
4415
4416 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4417
4418         * Makefile.in (c-lex.o): Update.
4419         * c-lex.c: Include target.h.
4420         (cb_register_builtins): New.
4421         (init_c_lex): Set builtins callback.
4422         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4423         * cppinit.c (init_builtins): Use callback, including for
4424         GXX_WEAK.
4425         * cpplib.h (struct cpp_callbacks): New member.
4426         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4427         (TARGET_INITIALIZER): Update.
4428         * target.h (struct gcc_target): New hook.
4429         * tree.c (default_register_cpp_builtins): New.
4430         * tree.h (default_register_cpp_builtins): New.
4431 doc:
4432         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4433
4434 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4435
4436         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4437         (cpp_post_options): Move sanity checks to...
4438         (sanity_checks): New.
4439         * cpplex.c (maybe_read_ucs): Fix prototype.
4440         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4441         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4442         if necessary.
4443
4444 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4445
4446         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4447         builtins.  Use V2DI patterns instead of TI for logical operations.
4448         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4449         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4450         (ix86_expand_builtins): Change the pattern used for movntdq.
4451         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4452         sse2_nandv2di3): New patterns.
4453         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4454         on operands.
4455         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4456         (cvtdq2pd): Correct mode on operand 1.
4457         (sse2_umulsidi3): Describe without unspec.
4458         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4459         machine modes.
4460         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4461         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4462         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4463         ashlv4si3, ashlv2di3): Use SImode for shift count.
4464         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4465         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4466         New patterns.
4467         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4468         New typedefs.
4469         (__m128i, __m128d): New macros.
4470         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4471         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4472         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4473         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4474         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4475         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4476         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4477         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4478         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4479         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4480         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4481         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4482         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4483         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4484         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4485         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4486         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4487         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4488         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4489         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4490         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4491         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4492         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4493         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4494         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4495         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4496         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4497         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4498         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4499         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4500         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4501         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4502         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4503         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4504         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4505         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4506         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4507         functions.
4508         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4509         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4510
4511 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4512
4513         * dwarf2out.c: Fix formatting.
4514         * varasm.c: Likewise.
4515
4516 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4517
4518         PR c/6543
4519         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4520         clobber and use result as temporary value.
4521
4522 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4523
4524         * expr.c (force_operand): Use expand_simple_* to handle more
4525         cases.
4526
4527 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4528
4529         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4530         and sign-extension.
4531         (lex_charconst): Update for change in prototype of
4532         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4533         appropriately.
4534         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4535         * cppinit.c (cpp_create_reader): Initialize them for no
4536         change in semantics.
4537         (cpp_post_options): Add sanity checks.
4538         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4539         and truncation issues.  Calculate in type cppchar_t.
4540         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4541         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4542         run-time dependent precision correctly.  Return whether the
4543         result is signed or not.
4544         * cpplib.c (dequote_string): Use cppchar_t; update.
4545         * cpplib.h (cppchar_signed_t): New.
4546         struct cpp_options): New precision members.
4547         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4548         * cppexp.c (eval_token): Update.
4549
4550 2002-05-03  David S. Miller  <davem@redhat.com>
4551
4552         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4553         * config/sparc/sparc.c (sparc_rtx_costs): New function
4554         implementing RTX_COSTS and CONST_COSTS.
4555         * config/sparc/sparc.h (CONST_COSTS): Delete.
4556         (RTX_COSTS_CASES): Define.
4557         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4558         the work.
4559
4560         * config/sparc/sparc.md (DFA schedulers): Split out...
4561         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4562         config/sparc/sparclet.md, config/sparc/supersparc.md,
4563         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4564
4565         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4566         checks on it, always defined for Sparc.
4567
4568         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4569         Tweak, and add more detailed comments.
4570
4571 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4572
4573         * Re-apply patch accidentally reverted with
4574         DFA scheduler merge: remove all rules and variables to slurp
4575         source files out of libiberty and rebuild them with HOST_CC.
4576         ($(HOST_PREFIX_1)varray.o): New rule.
4577         (genattrtab rule): Word wrap.
4578
4579 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4580
4581         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4582         (CPP_SUBTARGET_SPEC): Define.
4583         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4584         cpp_subtarget specs.
4585         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4586
4587 2002-05-03  David S. Miller  <davem@redhat.com>
4588
4589         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4590         * target.h (struct gcc_target): Delete cycle_display member.
4591
4592         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4593         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4594         (ia64_sched_reorder2): Mention need for cycle display handling
4595         once such notes exist.
4596
4597 2002-05-03  Richard Henderson  <rth@redhat.com>
4598
4599         * real.c (etoasc): Strip most trailing zeros for clarity.
4600         * sched-vis.c: Include real.h.
4601         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4602         * Makefile.in (sched-vis.o): Add real.h.
4603
4604 2002-05-03  David S. Miller  <davem@redhat.com>
4605
4606         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4607         no longer needed.
4608
4609 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4610
4611         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4612         when we get an out of range literal.
4613         (altivec_expand_ternop_builtin): Same.
4614         (altivec_expand_unop_builtin): Same.
4615         (altivec_expand_builtin): Same, for dss.
4616         (altivec_expand_builtin): Use trees instead of rtl when
4617         determining literal argument validity.
4618
4619 2002-05-03  David S. Miller  <davem@redhat.com>
4620
4621         Delete cycle display scheduling hook.
4622         * config/ia64/ia64.c (ia64_cycle_display,
4623         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4624         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4625         and use emit_insn_before instead of ia64_emit_insn_before.
4626         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4627         (cycle_display): Delete insn pattern.
4628         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4629         (cycle_display): Delete insn pattern.
4630         * config/sparc/sparc.c (sparc_cycle_display,
4631         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4632         * doc/md.texi (cycle_display): Don't mention.
4633         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4634
4635 2002-05-03  Richard Henderson  <rth@redhat.com>
4636
4637         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4638         * recog.h: Declare them.
4639
4640         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4641         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4642         * config/sparc/sparc-protos.h: Update.
4643
4644 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4645
4646         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4647         -D__arch64__.  Add -D_LP64.
4648         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4649         from sparc.h.
4650         (CPP_ARCH64_SPEC): Likewise.
4651         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4652         (NO_BUILTIN_SIZE_TYPE): Undef.
4653
4654 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4655
4656         * genautomata.c (min_issue_delay_pass_states): Change return type
4657         in the prototype.
4658         (min_issue_delay_pass_states): Change the algorithm.
4659         (min_issue_delay): Set up min_insn_issue_delay for the state.
4660         (output_min_issue_delay_table): Interchange the nested loops and
4661         and initiate min_insn_issue_delay for states.
4662
4663 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4664
4665         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4666         jump is simplejump.
4667
4668 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4669
4670         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4671         sequence.
4672
4673 2002-05-03  Richard Henderson  <rth@redhat.com>
4674
4675         PR opt/6534
4676         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4677         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4678         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4679         code before JUMP, not EARLIEST.
4680
4681 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4682
4683         * c-format.c (check_format_info_main): Don't check for presence of
4684         parameter for * width until after operand number has been read,
4685         and only check for it if format parameters are available.
4686         Fixes PR c/6547.
4687
4688 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4689
4690         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4691         (LINK_SPEC): Undef before defining.
4692
4693 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4694
4695         PR preprocessor/6489
4696         * tradcpp.c (fixup_newlines): New.
4697         (main, finclude): Use it.
4698
4699 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4700
4701         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4702         * config/mips/mips.c (mips_unique_section): Strip encoding from
4703         decl name.
4704
4705 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4706
4707         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4708         mode.
4709
4710 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4711
4712         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4713         (Specific): Removed buildstats references.
4714         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4715         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4716         Accomodate Solaris versions beyond 8.
4717         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4718         (Specific, *-*-solaris2.8): Removed, obsolete.
4719
4720 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4721
4722         PR target/6542
4723         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4724         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4725         fill leaf_reg_remap with identity.
4726         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4727
4728 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4729
4730         * config/h8300/crti.asm: Remove trailing spaces.
4731         * config/h8300/h8300.c: Likewise.
4732         * config/h8300/lib1funcs.asm: Likewise.
4733
4734 2002-05-02  Jason Merrill  <jason@redhat.com>
4735
4736         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4737         * c-decl.c (c_init_decl_processing): Use it.
4738         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4739         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4740         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4741
4742 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4743
4744         * regrename.c: Fix formatting.
4745         * tree.c: Likewise.
4746
4747 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4748
4749         * i386.md (attribute memory): Handle compares properly.
4750
4751 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4752
4753         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4754         to none.
4755
4756 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4757
4758         * function.c: Fix formatting.
4759
4760 2002-05-02  Jan Hubicka  <jh@suse.cz>
4761
4762         * haifa-sched.c (schedule_insn): Print table of instructions and
4763         reservations.
4764         (sched_block): Do not print ready list at verbosity level 1.
4765         * sched-vis.c (print_insn): Make global.
4766         * sched-ebb.c (ebb_print_insn): Rename from...
4767         (print_insn): ... this one.
4768         * sched-int.h (print_insn): Declare
4769
4770 2002-05-02  Richard Henderson  <rth@redhat.com>
4771
4772         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4773         emitted by cycle_display.
4774
4775 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4776
4777         * doc/install.texi (*-*-freebsd*): Update to latest status.
4778
4779 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4780
4781         PR target/6540
4782         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4783         * config/float-sparc.h: Assume 128-bit long double if
4784         __LONG_DOUBLE_128__ is defined.
4785
4786 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4787
4788         * genattrtab.c (write_function_unit_info): Add a dummy element
4789         when num_units == 0.
4790
4791 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4792
4793         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4794         TYPE_MODE (double_type_node) instead of DFmode.
4795
4796 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4797
4798         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4799         jumps post reload.
4800         * toplev.c (rest_of_compilation): Revert Richard's patch.
4801
4802 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4803
4804         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4805
4806 2002-05-02  Catherine Moore  <clm@redhat.com>
4807
4808         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4809
4810 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4811
4812         * combine.c: Fix comment typos.
4813         * expr.c: Likewise.
4814         * genautomata.c: Likewise.
4815         * stmt.c: Likewise.
4816         * tree.h: Likewise.
4817
4818 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4819
4820         * doc/install.texi: State GNAT version requirements.
4821
4822 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4823
4824         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4825         of the frame pointer or arg pointer register which strict register
4826         checking is not enabled.
4827
4828 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4829
4830         * gcc.dg/altivec-8.c: New.
4831
4832         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4833         PRE_INC and PRE_DEC for altivec modes.
4834
4835 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4836
4837         * fixinc/check.tpl(set-writable): make sure the function exists first
4838         * fixinc/inclhack.def(alpha_assert): fix test_text
4839         * fixinc/tests/base/assert.h: add in missing result
4840
4841 2002-05-01  Jeff Law  <law@redhat.com>
4842
4843         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4844         'T' constraint.
4845
4846 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4847
4848         * dbxout.c (dbxout_type): Emit size information for range types,
4849         as well, but only when using GDB extensions.
4850
4851 2002-05-01  Richard Henderson  <rth@redhat.com>
4852
4853         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4854         target-independent gnu binutils date test.
4855
4856 2002-05-01  Richard Henderson  <rth@redhat.com>
4857
4858         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4859         info before expunging the block.
4860
4861 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4862
4863         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4864         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4865         -M -or -MM is in effect.
4866
4867 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4868
4869         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4870         A29k configurations.
4871         * doc/install.texi: Update to match.
4872
4873 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4874
4875         PR bootstrap/6514
4876         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4877         for duplicates. Always loop over whole list.
4878
4879 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4880
4881         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4882
4883 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4884
4885         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4886         support routines.
4887
4888 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4889
4890         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4891
4892 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4893
4894         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4895         (nabs_nopower): Same.
4896         (floatdisf2): New pattern.
4897         (absdi2): Convert to define_insn_and_split.
4898         (nabsdi2): Same.
4899         (trunctfsf2): Same.
4900         (floatditf2): Same.
4901         (floatsitf2): Same.
4902         (fix_trunctfdi2): Same.
4903         (fix_trunctfsi2): Same.
4904
4905 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4906
4907         * doc/install.texi: Update Texinfo version requirement
4908         documentation.
4909
4910 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4911
4912         PR target/6512, PR target/5628
4913         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4914         when memory is not aligned.
4915         (movdf_insn_v9only_vis): Likewise.
4916         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4917         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4918         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4919
4920 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
4921
4922         * gcc.dg/altivec-7.c: New.
4923
4924         * config/rs6000/altivec.h: Cleanup.
4925
4926 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
4927
4928         * doc/invoke.texi (Option Summary): Add -mvrsave=.
4929         (RS/6000 and PowerPC Options): Document -mvrsave=.
4930
4931         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4932         (rs6000_altivec_vrsave_string): Same.
4933         (rs6000_override_options): Call rs6000_parse_vrsave_option.
4934         (rs6000_parse_vrsave_option): New.
4935         (rs6000_stack_info): Only generate vrsave instructions when
4936         TARGET_ALTIVEC_VRSAVE.
4937
4938         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4939         (rs6000_altivec_vrsave_string): Define extern.
4940         (rs6000_altivec_vrsave): Same.
4941         (TARGET_ALTIVEC_VRSAVE): New.
4942
4943 2002-04-30  Richard Henderson  <rth@redhat.com>
4944
4945         PR opt/6516
4946         * toplev.c (rest_of_compilation): Don't run cross-jump before
4947         bb-reorder.
4948
4949 2002-04-30  Tom Rix  <trix@redhat.com>
4950
4951         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4952         check which_alternative.
4953
4954 2002-04-30  Kazu Hirata  <kazu@hxi.com>
4955
4956         * cpplex.c: Fix comment formatting.
4957         * function.c: Likewise.
4958         * integrate.c: Likewise.
4959         * regrename.c: Likewise.
4960         * sibcall.c: Likewise.
4961         * simplify-rtx.c: Likewise.
4962         * tree-inline.c: Likewise.
4963
4964 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4965
4966         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4967         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4968         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4969         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4970         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4971         * pa/x-ada: New file.  Define ADA_CFLAGS.
4972
4973 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
4974
4975         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4976         from MMIX_LAST_REGISTER_FILE_REGNUM.
4977         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4978         (struct machine_function): New member highest_saved_stack_register
4979         previously static variable in mmix.c.
4980         (MACHINE_DEPENDENT_REORG): Define.
4981         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4982         (MMIX_OUTPUT_REGNO): New.
4983         (mmix_target_asm_function_prologue): Move calculation of last used
4984         saved-stack-register into...
4985         (mmix_machine_dependent_reorg): New function.  Update to also handle
4986         !TARGET_ABI_GNU.
4987         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4988         register names, simplify somewhat by new variable regno.
4989         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
4990         register.
4991         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4992         emitting register names.
4993         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4994         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4995         Remove fixed FIXME.
4996         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4997         Declare.
4998
4999         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
5000
5001 2002-04-30  Richard Henderson  <rth@redhat.com>
5002
5003         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
5004         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
5005         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
5006         emit_tfmode_cvt): New.
5007         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
5008         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
5009         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
5010         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
5011         * config/sparc/sparc-protos.h: Update.
5012
5013 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
5014
5015         * install.texi (Final install): Add to the list of info to include
5016         in a report of a successful bootstrap, and add link to 3.1 list.
5017
5018 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
5019
5020         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
5021         (mode): Add vector modes
5022         (i387): Kill attribute.
5023         (unit): New attribute.
5024         (length_immediate): Grok new types.
5025         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
5026         (modrm): Use "unit".
5027         (memory): Handle MMX/SSE properly.
5028         (scheduling descriptions): Kill uses of fop1.
5029         (sse, mmx, fp patterns): Set type and mode properly.
5030
5031 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
5032
5033         * pa.c (override_options): Default to PA8000 scheduling.
5034         * doc/invoke.texi (HP-PA options): Mention newly added 7300
5035         scheduling parameter.
5036
5037         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
5038         handling of double precision multiplies.
5039
5040         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
5041         fpdiv and fpsqrt instructions.
5042         (7200 & 7300 scheduling): Fix typo in handling of
5043         store-load and store-store penalties.
5044
5045 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5046
5047         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
5048         mips.  Add two missing commas.
5049
5050 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
5051
5052         * doc/contrib.texi (Contributors): Update Paolo Carlini's
5053         and Benjamin Kosnik's entries.
5054
5055 2002-04-29  David S. Miller  <davem@redhat.com>
5056
5057         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
5058         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
5059         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
5060         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
5061
5062 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5063
5064         * combine.c (find_split_point): Use gen_int_mode.
5065
5066 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
5067
5068         Merging code from dfa-branch:
5069
5070         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
5071
5072         * genautomata.c (output_reserv_sets): Fix typo.
5073
5074         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
5075
5076         * genautomata.c (output_reserv_sets): Remove
5077         next_cycle_output_flag.
5078
5079         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
5080
5081         * sched-rgn.c (init_ready_list): Make the DFA code handle
5082         USE/CLOBBER insns in the same way as the traditional
5083         scheduler.
5084         (new_ready): Similarly..
5085
5086         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
5087
5088         * haifa-sched.c (schedule_block): Change the DFA state only after
5089         issuing insn.
5090
5091         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
5092
5093         * pa.c (hppa_use_dfa_pipeline_interface): New function.
5094         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5095         (override_options): Add PA7300 scheduling support.
5096         (pa_adjust_cost): Update various comments.  Properly
5097         handle anti and output dependencies when using the
5098         DFA scheduler.
5099         (pa_issue_rate): Add PA7300 scheduling support.
5100         (pa_can_combine_p): Call extract_insn before calling
5101         constrain_operands (taken from mainline tree).
5102         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5103         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
5104         descriptions using DFA descriptions.  Add PA7300
5105         scheduling support.
5106
5107         2002-03-30  David S. Miller  <davem@redhat.com>
5108
5109         Add UltraSPARC-III DFA scheduling support.
5110         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5111         Update FP conditional move on register insn patterns to use it, as
5112         appropriate.
5113         (define_attr cpu): Add ultrasparc3.
5114         (define_attr us3load_type): New, update integer load patterns to
5115         set it, as appropriate.
5116         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5117         (rest): Add UltraSPARC3 scheduling description.
5118         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5119         (PROCESSOR_ULTRASPARC3): New.
5120         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5121         ({ASM,CPP}_CPU_SPEC): Likewise.
5122         (REGISTER_MOVE_COST): Likewise.
5123         (RTX_COSTS): Likewise.
5124         * config/sparc/sparc.c (sparc_override_options,
5125         sparc_initialize_trampoline, sparc64_initialize_trampoline,
5126         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5127         sparc_issue_rate): Likewise.
5128         * config/sparc/sol2.h: Likewise.
5129         * config/sparc/sol2-sld-64.h: Likewise.
5130         * config/sparc/linux64.h: Likewise.
5131
5132         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
5133
5134         * doc/md.texi: Add comments about usage the latency time for the
5135         different dependencies and about case when two or more conditions
5136         in different define_insn_reservations returns TRUE for an insn.
5137
5138         * doc/md.texi: Add reference for automaton based pipeline
5139         description.
5140
5141         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
5142
5143         * doc/passes.texi: Add missed information about genattrtab.
5144
5145         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
5146
5147         * genautomata.c (output_automata_list_transition_code): Check
5148         automata_list on NULL.
5149
5150         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
5151
5152         * genautomata.c (output_insn_code_cases,
5153         output_automata_list_min_issue_delay_code,
5154         output_automata_list_transition_code,
5155         output_automata_list_state_alts_code): Comment the functions.
5156
5157         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5158
5159         * genautomata.c (automata_list_el_t): New typedef.
5160         (get_free_automata_list_el,free_automata_list_el,
5161         free_automata_list, automata_list_hash, automata_list_eq_p,
5162         initiate_automata_lists, automata_list_start, automata_list_add,
5163         automata_list_finish, finish_automata_lists,
5164         output_insn_code_cases, output_automata_list_min_issue_delay_code,
5165         output_automata_list_transition_code,
5166         output_automata_list_state_alts_code, add_automaton_state,
5167         form_important_insn_automata_lists): New functions and prototypes.
5168         (insn_reserv_decl): Add members important_automata_list and
5169         processed_p.
5170         (ainsn): Add members important_p.
5171         (automata_list_el): New structure.
5172         (first_free_automata_list_el, current_automata_list,
5173         automata_list_table): New global variables.
5174         (create_ainsns): Initiate member important_p.
5175         (output_internal_min_issue_delay_func): Generate the switch and
5176         call output_insn_code_cases.
5177         (output_internal_trans_func, output_internal_state_alts_func):
5178         Ditto.
5179         (generate): Call initiate_automata_lists.
5180         (automaton_states): New global variable.
5181         (expand_automata): Call form_important_insn_automata_lists.
5182         (write_automata): Call finish_automata_lists.
5183
5184         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
5185
5186         * genautomata.c (add_excls, add_presence_absence): Check that
5187         cpu units in the sets belong the same automaton.
5188
5189         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5190         about that cpu units in the sets belong the same automaton.
5191
5192         * doc/md.texi: Ditto.
5193
5194         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
5195                     Nitin Gupta  <niting@noida.hcltech.com>
5196
5197         * config/sh/sh.c (sh_use_dfa_interface): New function.
5198
5199         (sh_issue_rate): New Function.
5200         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5201         TARGET_SCHED_ISSUE_RATE: define.
5202
5203         * config/sh/sh.md: Add DFA based pipeline description for SH4.
5204
5205         (define_attr insn_class): New attribute used for DFA
5206          scheduling.
5207         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5208         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5209          cmpeqdi_t): Likewise.
5210
5211         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5212          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5213          ex_group.
5214         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5215
5216         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5217
5218         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5219         break.
5220
5221         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5222
5223         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5224         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5225         necessary.
5226         (output_dfa_start_func): Initiate new variable insn_codes_length,
5227         (write_automata): Output definition of the new variable.
5228
5229         2001-10-02  David S. Miller  <davem@redhat.com>
5230
5231         * haifa-sched.c (advance_one_cycle): New function.
5232         (schedule_block): Use it.
5233         (queue_to_ready): Use it, and also make sure to advance the DFA
5234         state on all stall cycles, not just those where insn_queue links
5235         are found.
5236
5237         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
5238
5239         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
5240         non-zero if the highest-priority instruction could be scheduled.
5241         (choose_ready): Remove last argument from max_issue call.
5242
5243         2001-09-28  David S. Miller  <davem@redhat.com>
5244
5245         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5246         ultrasparc and 3 for other multi-issue sparcs.
5247
5248         2001-09-27  David S. Miller  <davem@redhat.com>
5249
5250         * config/sparc/sparc.md (cycle_display): New pattern.
5251         * config/sparc/sparc.c (sparc_cycle_display): New.
5252         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5253
5254         2001-09-25  David S. Miller  <davem@redhat.com>
5255
5256         Convert all of Sparc scheduling to DFA
5257         * config/sparc/sparc.md: Kill all define_function_unit
5258         directives and replace with DFA equivalent.
5259         * config/sparc/sparc.c (ultrasparc_adjust_cost,
5260         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5261         ultra_fpmode_conflict_exists, ultra_find_type,
5262         ultra_build_types_avail, ultra_flush_pipeline,
5263         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5264         ultrasparc_variable_issue, ultrasparc_sched_init,
5265         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5266         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5267         ultra_cur_hist, ultra_cycles_elapsed): Kill.
5268         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5269         ultrasparc_store_bypass_p): New.
5270         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5271         Declare.
5272
5273         2001-09-24  David S. Miller  <davem@redhat.com>
5274
5275         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5276         ready->vec[foo] not ready[foo].
5277
5278         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5279
5280         * doc/md.texi: Correct examples for define_insn_reservations
5281         `mult' and `div'.
5282
5283         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5284
5285         * genautomata.c (create_automata): Print message about creation of
5286         each automaton.
5287         (generate): Remove printing meease about creation of
5288         automata.
5289
5290         2001-09-05  David S. Miller  <davem@redhat.com>
5291
5292         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5293         * config/sparc/linux64.h: Likewise.
5294
5295         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5296
5297         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5298         schedule_block, sched_init, sched_finish): Add missed calls of
5299         use_dfa_pipeline_interface.
5300
5301         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5302         Ditto.
5303
5304         * sched-vis.c (get_visual_tbl_length): Ditto.
5305
5306         2001-08-27  Richard Henderson  <rth@redhat.com>
5307
5308         * genattr.c (main): Emit state_t even when not doing scheduling.
5309
5310         2001-08-27  Richard Henderson  <rth@redhat.com>
5311
5312         * genautomata.c (expand_automata): Always create a description.
5313
5314         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5315
5316         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5317         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5318         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5319         RTL constructions.
5320
5321         * genattr.c (main): New variable num_insn_reservations.  Increase
5322         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5323         pipeline hazard recognizer interface.
5324
5325         * genattrtab.h: New file.
5326
5327         * genattrtab.c: Include genattrtab.h.
5328         (attr_printf, check_attr_test, make_internal_attr,
5329         make_numeric_value): Move protypes into genattrtab.h.  Define them
5330         as external.
5331         (num_dfa_decls): New global variable.
5332         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5333         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5334         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5335         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5336
5337         * genautomata.c: New file.
5338
5339         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5340
5341         * sched-int.h: (curr_state): Add the external definition for
5342         automaton pipeline interface.
5343         (haifa_insn_data): Add comments for members blockage and units.
5344
5345         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5346         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5347         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5348         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5349         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5350         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5351         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5352         macros.
5353         (TARGET_SCHED): Use the new macros.
5354
5355         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5356         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5357         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5358         dfa_bubble): New members in gcc_target.sched.
5359
5360         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5361         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5362         (insn_queue): Redefine it as pointer to array.
5363         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5364         INSN_QUEUE_SIZE.
5365         (max_insn_queue_index_macro_value): New variable.
5366         (curr_state, dfa_state_size, ready_try): New varaibles for
5367         automaton interface.
5368         (ready_element, ready_remove, max_issue): New function prototypes
5369         for automaton interface.
5370         (choose_ready): New function prototype.
5371         (insn_unit, blockage_range): Add comments.
5372         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5373         FUNCTION_UNITS_SIZE == 0.
5374         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5375         actual_hazard, potential_hazard): Add comments.
5376         (insn_cost): Use cost -1 as undefined value.  Remove
5377         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5378         pipeline interface.
5379         (ready_element, ready_remove): New functions for automaton
5380         interface.
5381         (schedule_insn): Add new code for automaton pipeline interface.
5382         (queue_to_ready): Add new code for automaton pipeline interface.
5383         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5384         (debug_ready_list): Print newline when the queue is empty.
5385         (max_issue): New function for automaton pipeline interface.
5386         (choose_ready): New function.
5387         (schedule_block): Add new code for automaton pipeline interface.
5388         Print ready list before scheduling each insn.
5389         (sched_init): Add new code for automaton pipeline interface.
5390         Initiate insn cost by -1.
5391         (sched_finish): Free the current automaton state and finalize
5392         automaton pipeline interface.
5393
5394         * sched-rgn.c: Include target.h.
5395         (init_ready_list, new_ready, debug_dependencies): Add new code for
5396         automaton pipeline interface.
5397
5398         * sched-vis.c: Include target.h.
5399         (get_visual_tbl_length): Add code for automaton interface.
5400         (target_units, print_block_visualization):  Add comments.
5401
5402         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5403         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5404         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5405         (getruntime.o, genautomata.o): New entries.
5406         (genattrtab.o): Add new dependency file genattrtab.h.
5407         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5408         (getruntime.o, hashtab.o): New entries for canadian cross.
5409
5410         * doc/md.texi: Description of automaton based model.
5411
5412         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5413         Add comments.
5414         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5415         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5416         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5417         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5418         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5419         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5420         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5421         hook descriptions.
5422         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5423         MAX_DFA_ISSUE_RATE): New macro descriptions.
5424
5425         * doc/contrib.texi: Add dfa based scheduler contribution.
5426
5427         * doc/gcc.texi: Add more information about genattrtab.
5428
5429 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5430
5431         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5432         adjust_address_nv call.
5433
5434 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5435
5436         * doc/install.texi (Testing): Provide additional information, and
5437         a stronger encouragement, for running the testsuites.
5438
5439 2002-04-29  DJ Delorie  <dj@redhat.com>
5440
5441         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5442         given in upper case.
5443
5444 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5445
5446         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5447         Solaris 2 <widec.h> if missing.
5448         * fixinc/fixincl.x: Regenerate.
5449         * fixinc/tests/base/widec.h: New file.
5450
5451 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5452
5453         * toplev.c (f_options): Add "profile" switch so that
5454         -fno-profile can be used to disable -p.
5455
5456 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5457
5458         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5459         UV2DImode.
5460         * tree.c (build_common_tree_nodes_2): Likewise.
5461         * tree.h (enum tree_index): Likewise.
5462         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5463
5464         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5465         entries.
5466         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5467         (ix86_expand_builtin): Add support for SSE2 builtins.
5468         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5469         (VALID_SSE_REG_MODE): Use it.
5470         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5471         (enum ix86_builtins): Add SSE2 builtins.
5472         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5473         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5474         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5475         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5476         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5477         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5478         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5479         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5480         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5481         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5482         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5483         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5484         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5485         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5486         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5487         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5488         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5489         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5490         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5491         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5492         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5493         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5494         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5495         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5496         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5497         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5498         lfence_insn): New patterns.
5499         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5500         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5501
5502 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5503
5504         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5505
5506 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5507
5508         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5509         Janis Johnson.
5510         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5511         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5512         and CPU instead of cpu.
5513
5514 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5515
5516         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5517         variables.
5518         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5519         (rest_of_compilation): Do if conversion only when asked for.
5520         (parse_options_and_default_flags): Set new variables to 1 for -O1
5521         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5522
5523 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5524
5525         * i386.c (dbx64_register_map): Fix typo.
5526
5527 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5528
5529         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5530         real_one_half, real_bb_freq_max): New static variables.
5531         (debug_profile_bbauxs): Kill.
5532         (process_note_predictions): Kill unused variable.
5533         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5534         volatile double.
5535         (propagate_freq): Use REAL_ARITHMETICS.
5536         (estimate_bb_frequencies): Likevise; init new static variables.
5537         * Makefile.in (predict.o): Add dependency on real.h
5538
5539 2002-04-28  David S. Miller  <davem@redhat.com>
5540
5541         PR target/6500
5542         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5543         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5544         several {reads,writes} instead.
5545         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5546         Define.
5547
5548 2002-04-27  David S. Miller  <davem@redhat.com>
5549
5550         PR target/6494
5551         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5552         of the stack bias.
5553
5554         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5555         including signal.h and sys/ucontext.h, not needed.
5556
5557 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5558
5559         * varasm.c (output_constant_def): Correct test for not calling
5560         ENCODE_SECTION_INFO for INTEGER_CST.
5561
5562 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5563
5564         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5565         keep most cases as function eval_token.
5566         (eval_token): New function.
5567         (_cpp_parse_expr): Read token here for improved diagnostics.
5568         Don't use op_as_text.  Detect bad ':' here.
5569         (reduce): Don't detect bad ':' here.
5570         (op_as_text): Remove.
5571         * cpphash.h (_cpp_test_assertion): Change prototype.
5572         * cpplib.c (_cpp_test_assertion): Change prototype.
5573
5574 2002-04-28  Richard Henderson  <rth@redhat.com>
5575
5576         PR c/5154
5577         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5578         (ggc_mark_rtx_children): New.
5579
5580 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5581
5582         PR target/6496
5583         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5584         after call peepholes for UltraSPARC.
5585         (call + jump 64-bit peepholes): Remove.
5586
5587 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5588
5589         PR c/6497
5590         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5591         result as temporary value.
5592
5593 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5594
5595         PR c++/6396
5596         * toplev.c (rest_of_compilation): Only run regrename and copy
5597         propagation if optimizing.
5598
5599 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5600
5601         PR optimization/6475
5602         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5603         register of REGNO_DECL (i).
5604         * Makefile.in (reload1.o): Add $(TREE_H).
5605
5606 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5607
5608         * cppexp.c (lex): Update to use state.skip_eval.
5609         (struct op): Remove prio and flags members.
5610         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5611         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5612         (LEFT_ASSOC): New macro.
5613         (optab): New table of operator priorities and flags.
5614         (SHIFT): Update.
5615         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5616         malloc-ed parser stack.
5617         (reduce): New; reduce the operator stack.
5618         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5619         * cpphash.h (struct op): Predeclare.
5620         (struct cpp_reader): New members op_stack, op_limit.
5621         (struct lexer_state): New member skip_eval.
5622         (_cpp_parse_expr): Update.
5623         (_cpp_expand_op_stack): New.
5624         * cpplib.c (do_if): Update.
5625         * cppinit.c (cpp_create_reader): Create op stack.
5626         (cpp_destroy): And destroy it.
5627         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5628         (TTYPE_TABLE): Correct.
5629
5630 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5631
5632         PR c/6343
5633         * c-decl.c (duplicate_decls): Call merge_weak.
5634         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5635         * output.h (merge_weak): Prototype merge_weak.
5636         * varasm.c (merge_weak): New function.
5637         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5638         Mark RTL with SYMBOL_REF_WEAK.
5639
5640 2002-04-27  Kurt Garloff <garloff@suse.de>
5641
5642         * tree-inline.c (inlinable_function_p): Improve heuristics
5643         by using a smoother function to cut down allowable inlinable size.
5644         * param.def: Add parameters max-inline-insns-single,
5645         max-inline-slope, min-inline-insns that determine the exact
5646         shape of the above function.
5647         * param.h: Likewise.
5648
5649 2002-04-26  Richard Henderson  <rth@redhat.com>
5650
5651         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5652         (yyoverflow): Re-add.  Set them.
5653         (free_parser_stacks): New.
5654         * c-common.h: Declare it.
5655         * c-lex.c (c_common_parse_file): Call it.
5656
5657 2002-04-26  Richard Henderson  <rth@redhat.com>
5658
5659         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5660         for fallthru search.
5661
5662 2002-04-26  Eric Christopher  <echristo@redhat.com>
5663
5664         PR optimization/3700
5665         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5666         (TARGET_SCHED_ISSUE_RATE): Use.
5667
5668 2002-04-25  David S. Miller  <davem@redhat.com>
5669
5670         PR target/6422
5671         * reorg.c (optimize_skip): Do not allow exception causing
5672         instructions to be considered for delay slots.
5673         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5674         (relax_delay_slots): Do not try to consider exception causing
5675         instructions as redundant.
5676
5677 2002-04-26  Richard Henderson  <rth@redhat.com>
5678
5679         PR c/5225
5680         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5681
5682 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5683
5684         PR bootstrap/6445
5685         * config/i386/i386.md (untyped_call): Return the value in a float
5686         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5687         TARGET_80387.
5688
5689 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5690
5691         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5692         in unsigned-ness correctly.
5693
5694 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5695
5696         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5697         portable runtime model.
5698
5699 2002-04-26  Richard Henderson  <rth@redhat.com>
5700
5701         * c-parse.in (yyoverflow): Revert.
5702
5703 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5704             Richard Henderson  <rth@redhat.com>
5705
5706         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5707         result as temporary value.
5708
5709 2002-04-26  Richard Henderson  <rth@redhat.com>
5710
5711         PR c/3581
5712         * c-common.c (fix_string_type): Split out of ...
5713         (combine_strings): ... here.  Take a varray, not a tree list.
5714         (c_expand_builtin_printf): Use fix_string_type.
5715         * c-common.h: Update decls.
5716         * c-parse.in (string): Remove.  Update all uses to use STRING
5717         instead, and not call combine_strings.
5718         (yylexstring): New.
5719         (_yylex): Use it.
5720         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5721         (build_asm_stmt): Likewise.
5722         * objc/objc-act.c (my_build_string): Use fix_string_type.
5723         (build_objc_string_object): Build varray for combine_strings.
5724
5725 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5726
5727         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5728         x86-64.
5729
5730 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5731
5732         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5733         (HAVE_NO_R_OPERAND): Remove.
5734         (HAVE_VALUE): Remove.
5735         (op_to_prio): Update.
5736         (UNARY): Don't alter flags.
5737         (_cpp_parse_expr): want_value used to indicate whether
5738         a number or unary operator is expected next.  Distinguish
5739         unary and binary +/-.
5740         (op_as_text): Update for unary operators.
5741
5742 2002-04-25  Richard Henderson  <rth@redhat.com>
5743
5744         PR c/2161
5745         * c-parse.in (yyoverflow): New.
5746
5747 2002-04-25  Richard Henderson  <rth@redhat.com>
5748
5749         PR c/2098
5750         * c-common.c (shorten_compare): Simplfy conditions leading to
5751         the generation of a warning.
5752
5753 2002-04-25  Richard Henderson  <rth@redhat.com>
5754
5755         PR c/2035
5756         * expmed.c (extract_bit_field): Fall through to generic code rather
5757         than aborting on subreg special case.
5758
5759 2002-04-25  David S. Miller  <davem@redhat.com>
5760
5761         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5762         for DECL being NULL.
5763
5764 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5765
5766         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5767
5768 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5769
5770         * c-decl.c (grokdeclarator): Remove outdated ??? note
5771         on invalid declaration of flexible array members.
5772
5773 2002-04-25  Richard Henderson  <rth@redhat.com>
5774
5775         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5776
5777 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5778
5779         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5780         needed by the compiler, even if they are used as global regs.
5781
5782 2002-04-25  Matt Hiller  <hiller@redhat.com>
5783
5784         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5785         functions.
5786         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5787         of the corresponding functions.
5788         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5789         New prototypes.
5790
5791 2002-04-25  Matt Hiller  <hiller@redhat.com>
5792
5793         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5794
5795         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5796         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5797         registers, adjust comment accordingly.
5798         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5799         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5800         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5801         for coprocessor registers.
5802         (ADDITIONAL_REGISTER_NAMES): Include
5803         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5804
5805         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5806         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5807         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5808         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5809         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5810
5811         (mips_char_to_class): Adjust comment to include coprocessor
5812         constraint letters.
5813
5814         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5815         New functions.
5816         (mips_reg_names, mips_regno_to_class): Include coprocessor
5817         information.
5818         (mips_sw_reg_names): Ditto, make non-static.
5819         (mips_move_1word): Handle moves to and from coprocessor registers.
5820         (mips_move_2words): Handle moves to and from coprocessor
5821         registers.
5822         (mips_class_max_nregs, mips_register_move_cost): Handle
5823         coprocessor register classes.
5824         (override_options): Initialize mips_char_to_class and
5825         mips_hard_regno_mode_ok properly for coprocessor registers.
5826
5827         * config/mips/mips.md (movdi_internal, movdi_internal2,
5828         movsi_internal1, movsi_internal2): Add constraint-sets for
5829         coprocessor registers.
5830         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5831         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5832         isn't mips.
5833         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5834         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5835         isn't mips.
5836         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5837         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5838         isn't mips.
5839         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5840         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5841         isn't mips.
5842
5843         * doc/tm.texi: Document feature.
5844
5845 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5846
5847         * integrate.c (function_attribute_inlinable_p): Simplify.
5848         Check the table pointer is not NULL.
5849
5850 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5851
5852         * doc/c-tree.texi: Fix typo in introduction.
5853
5854 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5855
5856         * c-common.h (c_common_parse_file): Update.
5857         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5858         * c-lex.c (YYDEBUG): Get from c-lex.h.
5859         (c_common_parse_file): Update.
5860         * c-lex.h (YYDEBUG, yydebug): New.
5861         * c-parse.in (YYDEBUG): Get from c-lex.h.
5862         (c_set_yydebug): Remove.
5863         * c-tree.h (c_set_yydebug): Remove.
5864         * langhooks-def.h (lhd_do_nothing_i): New.
5865         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5866         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5867         * langhooks.c  (lhd_do_nothing_i): New.
5868         (lhd_set_yydebug): Remove.
5869         * langhooks.h (struct lang_hooks): Update.
5870         * toplev.c (set_yydebug): New.
5871         (compile_file): Update call to parse_file hook.
5872         (decode_d_option): Update.
5873 objc:
5874         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5875
5876 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5877
5878         * loop.c (load_mems): Don't change the interface of called functions.
5879
5880         * calls.c (expand_call): Take current_function_pretend_args_size
5881         into account when setting argblock for sibcalls.
5882
5883 2002-04-24  Matt Hiller  <hiller@redhat.com>
5884
5885         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5886         * c-lex.c: Ditto.
5887
5888         * cpplex.c (skip_line_comment): Process comment one multibyte
5889         character at a time rather than one char at a time, if
5890         appropriate.
5891         (parse_string): Process string one multibyte character at a time
5892         rather than one char at a time, if appropriate.
5893         * c-lex.c (lex_string): Lex and copy multibyte strings
5894         appropriately.
5895         * cpplib.h (cppchar_t): Change to unsigned.
5896
5897 2002-04-24  Richard Henderson  <rth@redhat.com>
5898
5899         PR c/3467
5900         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5901         for c99.
5902
5903 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
5904
5905         * sh.c (sh_va_arg): If argument was passed by reference,
5906         dereference the pointer.
5907
5908         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5909
5910         * sh.md (divsi3_i4_media): Use match_operand for input values
5911         rather than hard registers.
5912         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5913         unnecessarily through hard registers.  Keep copies of pseudo
5914         registers outside of the libcall sequence.
5915
5916         * sh.md (casesi_shift_media): Add modes.
5917
5918         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5919         values in memory.
5920
5921 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5922
5923         * attribs.c (c_common_attribute_table): Move table and handlers
5924         to c-common.c.
5925         (format_attribute_table, lang_attribute_table,
5926         lang_attribute_common): Remove.
5927         (init_attributes): Replace NULL pointers with pointers to the
5928         empty table.
5929         (handle_packed_attribute, handle_nocommon_attribute,
5930         handle_common_attribute, handle_noreturn_attribute,
5931         handle_noinline_attribute, handle_always_inline_attribute,
5932         handle_used_attribute, handle_unused_attribute,
5933         handle_const_attribute, handle_transparent_union_attribute,
5934         handle_constructor_attribute, handle_destructor_attribute,
5935         handle_mode_attribute, handle_section_attribute,
5936         handle_aligned_attribute, handle_weak_attribute,
5937         handle_alias_attribute, handle_visibility_attribute,
5938         handle_no_instrument_function_attribute, handle_malloc_attribute,
5939         handle_no_limit_stack_attribute, handle_pure_attribute,
5940         handle_deprecated_attribute, handle_vector_size_attribute,
5941         vector_size_helper): Move to c-common.c.
5942         * c-common.c (c_common_attribute_table,
5943         handle_packed_attribute, handle_nocommon_attribute,
5944         handle_common_attribute, handle_noreturn_attribute,
5945         handle_noinline_attribute, handle_always_inline_attribute,
5946         handle_used_attribute, handle_unused_attribute,
5947         handle_const_attribute, handle_transparent_union_attribute,
5948         handle_constructor_attribute, handle_destructor_attribute,
5949         handle_mode_attribute, handle_section_attribute,
5950         handle_aligned_attribute, handle_weak_attribute,
5951         handle_alias_attribute, handle_visibility_attribute,
5952         handle_no_instrument_function_attribute, handle_malloc_attribute,
5953         handle_no_limit_stack_attribute, handle_pure_attribute,
5954         handle_deprecated_attribute, handle_vector_size_attribute,
5955         vector_size_helper): Move from attribs.c.
5956         * c-common.h (c_common_attribute_table,
5957         c_common_format_attribute_table): New.
5958         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5959         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5960         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5961         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5962         (LANG_HOOKS_INITIALIZER): Update.
5963         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5964         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5965         * target.h: Update comment.
5966         * tree.c (default_target_attribute_table): Remove.
5967         * tree.h (default_target_attribute_table, format_attribute_table,
5968         lang_attribute_table, lang_attribute_common): Remove.
5969 objc:
5970         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5971         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5972
5973 2002-04-24  Jason Merrill  <jason@redhat.com>
5974
5975         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5976         * dwarf2out.c (dwarf_attr_name): Support it.
5977         (gen_array_type_die): Emit it.
5978         (lookup_type_die): No special handling for VECTOR_TYPE.
5979         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5980
5981 2002-04-24  Richard Henderson  <rth@redhat.com>
5982
5983         * config/mips/mips.md (movdi_usd): Renumber.
5984
5985 2002-04-24  David S. Miller  <davem@redhat.com>
5986
5987         PR target/6420
5988         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5989         32-bit Sparc and current_function_returns_struct is true.
5990
5991 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5992
5993         * loop.c (canonicalize_condition): Use gen_int_mode.
5994
5995 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
5996
5997         * config/rs6000/altivec.h: Cleanup file.  Add non individual
5998         variants.
5999         (vec_vaddubm): New.
6000         (vec_vadduhm): New.
6001         (vec_vadduwm): New.
6002         (vec_vaddfp): New.
6003         (vec_vaddcuw): New.
6004         (vec_vaddubs): New.
6005         (vec_vaddsbs): New.
6006         (vec_vadduhs): New.
6007         (vec_vadduws): New.
6008         (vec_vaddsws): New.
6009         (vec_vand): New.
6010         (vec_vandc): New.
6011         (vec_vavgub): New.
6012         (vec_vavgsb): New.
6013         (vec_vavguh): New.
6014         (vec_vavgsh): New.
6015         (vec_vavguw): New.
6016         (vec_vavgsw): New.
6017         (vec_vrfip): New.
6018         (vec_vcmpbfp): New.
6019         (vec_vcmpequb): New.
6020         (vec_vcmpequh): New.
6021         (vec_vcmpequw): New.
6022         (vec_vcmpeqfp): New.
6023         (vec_vcmpgefp): New.
6024         (vec_vcmpgtub): New.
6025         (vec_vcmpgtsb): New.
6026         (vec_vcmpgtuh): New.
6027         (vec_vcmpgtsh): New.
6028         (vec_vcmpgtuw): New.
6029         (vec_vcmpgtsw): New.
6030         (vec_vcmpgtfp): New.
6031         (vec_vcmpgefp): New.
6032         (vec_vcfux): New.
6033         (vec_vcfsx): New.
6034         (vec_vctsxs): New.
6035         (vec_vctuxs): New.
6036         (vec_vexptefp): New.
6037         (vec_vrfim): New.
6038         (vec_lvx): New.
6039         (vec_lvebx): New.
6040         (vec_lvehx): New.
6041         (vec_lde): Add vector float variant.
6042         (vec_lvewx): New.
6043         (vec_lvxl): New.
6044         (vec_vlogefp): New.
6045         (vec_vmaddfp): New.
6046         (vec_vmhaddshs): New.
6047         (vec_vmaxub): New.
6048         (vec_vmaxsb): New.
6049         (vec_vmaxuh): New.
6050         (vec_vmaxsh): New.
6051         (vec_vmaxuw): New.
6052         (vec_vmaxsw): New.
6053         (vec_vmaxsw): New.
6054         (vec_vmaxfp): New.
6055         (vec_vmrghb): New.
6056         (vec_vmrghh): New.
6057         (vec_vmrghw): New.
6058         (vec_vmrglb): New.
6059         (vec_vmrglh): New.
6060         (vec_vmrglw): New.
6061         (vec_vminub): New.
6062         (vec_vminsb): New.
6063         (vec_vminuh): New.
6064         (vec_vminsh): New.
6065         (vec_vminuw): New.
6066         (vec_vminsw): New.
6067         (vec_vminfp): New.
6068         (vec_vmladduhm): New.
6069         (vec_vmhraddshs): New.
6070         (vec_msumubm): New.
6071         (vec_vmsummbm): New.
6072         (vec_vmsumuhm): New.
6073         (vec_vmsumshm): New.
6074         (vec_vmsumuhs): New.
6075         (vec_vmsumshs): New.
6076         (vec_vmuleub): New.
6077         (vec_vmulesb): New.
6078         (vec_vmuleuh): New.
6079         (vec_vmulesh): New.
6080         (vec_vmuloub): New.
6081         (vec_mulosb): New.
6082         (vec_vmulouh): New.
6083         (vec_vmulosh): New.
6084         (vec_vnmsubfp): New.
6085         (vec_vnor): New.
6086         (vec_vor): New.
6087         (vec_vpkuhum): New.
6088         (vec_vpkuwum): New.
6089         (vec_vpkpx): New.
6090         (vec_vpkuhus): New.
6091         (vec_vpkshss): New.
6092         (vec_vpkuwus): New.
6093         (vec_vpkswss): New.
6094         (vec_vpkshus): New.
6095         (vec_vpkswus): New.
6096         (vec_vperm): New.
6097         (vec_vrefp): New.
6098         (vec_vrlb): New.
6099         (vec_vrlh): New.
6100         (vec_vrlw): New.
6101         (vec_vrfin): New.
6102         (vec_vrsqrtefp): New.
6103         (vec_vsel): New.
6104         (vec_vslb): New.
6105         (vec_vslh): New.
6106         (vec_vslw): New.
6107         (vec_vsldoi): New.
6108         (vec_vsl): New.
6109         (vec_vslo): New.
6110         (vec_vspltb): New.
6111         (vec_vsplth): New.
6112         (vec_vspltw): New.
6113         (vec_vspltisb): New.
6114         (vec_vspltish): New.
6115         (vec_vspltisw): New.
6116         (vec_vsrb): New.
6117         (vec_vsrh): New.
6118         (vec_vsrw): New.
6119         (vec_vsrab): New.
6120         (vec_vsrah): New.
6121         (vec_vsraw): New.
6122         (vec_vsr): New.
6123         (vec_vsro): New.
6124         (vec_stvx): New.
6125         (vec_stvebx): New.
6126         (vec_stvehx): New.
6127         (vec_stvewx): New.
6128         (vec_stvxl): New.
6129         (vec_vsububm): New.
6130         (vec_vsubuhm): New.
6131         (vec_vsubuwm): New.
6132         (vec_vsubfp): New.
6133         (vec_vsubcuw): New.
6134         (vec_vsububs): New.
6135         (vec_vsubsbs): New.
6136         (vec_vsubuhs): New.
6137         (vec_vsubshs): New.
6138         (vec_vsubuws): New.
6139         (vec_vsubsws): New.
6140         (vec_vsum4ubs): New.
6141         (vec_vsum4sbs): New.
6142         (vec_vsum4shs): New.
6143         (vec_vsum2sws): New.
6144         (vec_vsumsws): New.
6145         (vec_vrfiz): New.
6146         (vec_vupkhsb): New.
6147         (vec_vupkhpx): New.
6148         (vec_vupkhsh): New.
6149         (vec_vupklsb): New.
6150         (vec_vupklpx): New.
6151         (vec_vupklsh): New.
6152         (vec_vxor): New.
6153
6154 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
6155
6156         PR c/5430
6157         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6158         added literals from substracted literals.
6159         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6160         (fold) [associate]: Preserve MINUS_EXPR if needed.
6161
6162 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
6163
6164         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6165         are obsoleted.
6166
6167 2002-04-23  Tom Tromey  <tromey@redhat.com>
6168
6169         * gcc.c: Added --resource.  For PR java/6314.
6170
6171 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6172
6173         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6174         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6175         these libraries.
6176
6177 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6178
6179         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6180
6181 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6182
6183         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6184         workaround.
6185         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6186         (ix86_expand_clrstr): Fix typo.
6187         * loop.c (gen_load_of_final_value): New.
6188         (loop_givs_rescan, strength_reduce, check_dbra_loop):
6189         Use it.
6190
6191 2002-04-23  Roger Sayle  <roger@eyesopen.com>
6192
6193         * builtins.c (builtin_memset_gen_str): New function.
6194         (expand_builtin_memset): Optimize the case of constant length, but
6195         unknown value.
6196
6197 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
6198
6199         * config/rs6000/altivec.h (vec_step): Remove extraneous
6200         parentheses.
6201         (vec_ctu): Cast return.
6202
6203 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
6204
6205         PR target/6413
6206         * function.h: (struct function): Add profile_label_no field.
6207         (current_function_profile_label_no): Define.
6208         * function.c: (profile_label_no): New static var.
6209         (expand_function_start): Increment it, and copy to
6210         current_function_profile_label_no.
6211         * output.h (profile_label_no): Delete.
6212         * final.c (profile_label_no): Delete.
6213         (profile_function): Use current_function_profile_label_no.
6214         (final_end_function): Don't increment profile_label_no here.
6215         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6216         profile_label_no with current_function_profile_label_no.
6217         * config/pa/pa.c (current_function_number): Delete.
6218         (pa_output_function_prologue): Don't output profile label here.
6219         (hppa_profile_hook): Use label_no param rather than
6220         current_function_number.
6221         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6222         * config/pa/pa.h: .. here.
6223         (FUNCTION_PROFILER): Output profile label here.
6224
6225 2002-04-22  Eric Christopher  <echristo@redhat.com>
6226
6227         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6228         patch of 2002-04-09 due to binutils issues.
6229         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6230
6231 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6232
6233         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6234         constraint to 'o' for m=r and r=m alternatives.
6235         ("*movv8hi_internal1"): Same.
6236         ("*movv16qi_internal1"): Same.
6237         ("*movv4sf_internal1"): Same.
6238
6239 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
6240
6241         * rtl.h (RTX_FLAG): New macro.
6242         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6243         * final.c (alter_subreg): Use macro to access rtx flag.
6244         * integrate.c (copy_rtx_and_substitute): Use new access macro.
6245         * print-rtl.c (print_rtx): Use new access macro.
6246
6247         * cse.c (insert): Check rtx code before accessing flag.
6248
6249         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6250         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6251         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6252         convert_const_symbol_ref, make_canonical, make_alternative_compare,
6253         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6254         simplify_test_exp, optimize_attrs, simplify_by_exploding,
6255         find_and_mark_used_attributes, unmark_used_attributes,
6256         add_values_to_cover, simplify_with_current_value,
6257         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6258         copy_rtx_unchanging, main): Use new access macros.
6259
6260 2002-04-22  Tom Rix  <trix@redhat.com>
6261
6262         * expmed.c (init_expmed): Generate shifted constant once.
6263
6264 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
6265
6266         * c-lex.c (lex_charconst): Call convert to get constant in
6267         proper type; don't just smash the type field.
6268         Fixes PR c/6300.
6269
6270         * config.gcc: Add list of obsolete configurations.  Disallow
6271         building these without --enable-obsolete.
6272         * doc/install.texi: Document --enable-obsolete and obsoletion
6273         policy.  Mention obsoletion of individual targets in
6274         appropriate places.
6275
6276 2002-04-22  Richard Henderson  <rth@redhat.com>
6277
6278         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6279
6280 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
6281
6282         PR f/6138.
6283         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6284         (walk_fixup_memory_subreg): Likewise.
6285         (fixup_var_refs_insn): Adjust accordingly.
6286         (fixup_var_refs_1): Likewise.
6287
6288 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
6289
6290         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6291         LIBPATH_ARCH64_SPEC): Define.
6292         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6293         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6294         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6295         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6296
6297 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6298
6299         * gthr-rtems.h: Correct prototypes to remove warnings.
6300
6301 2002-04-22  Richard Henderson  <rth@redhat.com>
6302
6303         PR c/6344
6304         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6305
6306         * gcse.c (free_insn_expr_list_list): New.
6307         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6308         (canon_list_insert): Use EXPR_LISTs for expressions.
6309         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6310
6311 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6312
6313         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6314         file change and include code to _cpp_pop_buffer.
6315         * cpphash.h (struct pending_option): Predeclare.
6316         (struct cpp_reader): New member next_include_file.
6317         (_cpp_pop_file_buffer): Update.
6318         (_cpp_push_next_buffer): Update, rename.
6319         * cppinit.c (cpp_destroy): Free include chain and pending here.
6320         (cpp_finish_options): Simplify.
6321         (_cpp_push_next_buffer): Rename and clean up.
6322         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6323         Clarify.
6324         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6325
6326 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6327
6328         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6329         being vector signed int.
6330         (vec_andc): Same.
6331         (vec_xor): Add variant for both args being vector signed char.
6332         Remove redundant variant.
6333         (vec_andc): Same.
6334
6335 2002-04-21  David S. Miller  <davem@redhat.com>
6336
6337         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6338         compare mode in output RTL.
6339
6340 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6341
6342         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6343         style and formatting of previous patch.
6344
6345 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6346
6347         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6348         flag_pic for ABI_AIX.
6349
6350 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6351
6352         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6353         * cppfiles.c (read_include_file): Similarly.
6354         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6355         uxstrdup ustrchr, ufputs): Similarly.
6356         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6357         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6358         cpp_ideq, parse_identifier, parse_number): Similarly.
6359         * cpplib.c (struct directive, dequote_string, D, run_directive,
6360         cpp_push_buffer): Similarly.
6361         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6362         _cpp_create_definition, check_trad_stringification,
6363         cpp_macro_definition): Similarly.
6364
6365 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6366
6367         * cppmacro.c (funlike_invocation_p): Don't step back
6368         over CPP_EOF.
6369
6370 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6371
6372         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6373         labelno.
6374
6375 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6376
6377         * doc/invoke.texi: Remove Chill references.
6378         * doc/gcc.texi: Update last modified date.
6379
6380 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6381
6382         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6383         push and pop.  Replace add.l with add.w.
6384
6385 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6386
6387         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6388         multiply instructions for H8/300H case.
6389
6390 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6391
6392         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6393         Bum three instructions from each routine.
6394
6395 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6396
6397         * Makefile.in: Update.
6398         * decl.c (push_c_function_context, pop_c_function_context,
6399         mark_c_function_context): Rename for consistency.
6400         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6401         * c-tree.h (push_c_function_context, pop_c_function_context,
6402         mark_c_function_context): Rename for consistency.
6403         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6404         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6405         * function.c (init_lang_status, save_lang_status,
6406         restore_lang_status, mark_lang_status, free_lang_status):
6407         Move to langhooks.h.
6408         (push_function_context_to, pop_function_context_from,
6409         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6410         Update.
6411         * function.h (init_lang_status, save_lang_status,
6412         restore_lang_status, mark_lang_status, free_lang_status):
6413         Move to langhooks.h.
6414         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6415         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6416         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6417         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6418         (LANG_HOOKS_INITIALIZER): Update.
6419         (lhd_do_nothing_f): New.
6420         * langhooks.h (struct lang_hooks_for_functions): New.
6421         (struct lang_hooks): New hooks.
6422         * langhooks.c (lhd_do_nothing_f): New.
6423 objc:
6424         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6425         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6426
6427 2002-04-19  David S. Miller  <davem@redhat.com>
6428
6429         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6430         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6431
6432 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6433
6434         PR optimization/3756
6435         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6436         x = ((int) y < 0) ? cst1 : cst2.
6437
6438 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6439
6440         PR c/6358
6441         * function.c: Reapply patch for c/6358.
6442         (expand_function_end): Copy decl_rtl's mode, not
6443         current_function_return_rtx mode.
6444
6445 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6446
6447         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6448         targets.
6449
6450 2002-04-19  Tom Tromey  <tromey@redhat.com>
6451
6452         * doc/install.texi (Specific): Update status of Solaris 2.8.
6453         For PR libgcj/6158.
6454
6455 2002-04-19  Andreas Schwab  <schwab@suse.de>
6456
6457         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6458         (PUT_REAL): Restore old definition.
6459
6460 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6461             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6462
6463         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6464         binutils 2.11.2 and higher generate smaller binaries than Sun's
6465         native tools.
6466
6467 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6468
6469         PR c++/6352
6470         * toplev.c (rest_of_compilation): Do not defer functions for which
6471         TREE_SYMBOL_REFERENCED has already been set.
6472
6473 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6474
6475         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6476         alternative.
6477
6478 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6479
6480         * builtins.c: Include langhooks.h.
6481         (lang_type_promotes_to): Remove.
6482         (expand_builtin_va_arg): Use new hook.
6483         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6484         (simple_type_promotes_to): Move to c-typeck.c.
6485         * c-common.h (simple_type_promotes_to): Remove.
6486         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6487         * c-format.c: Include langhooks.h.
6488         (check_format_types): Update.
6489         * c-tree.h (c_type_promotes_to): New.
6490         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6491         (type_lists_compatible_p): Update.
6492         * langhooks-def.h (lhd_type_promotes_to): New.
6493         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6494         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6495         * langhooks.c (lhd_type_promotes_to): New.
6496         * langhooks.h (struct lang_hooks_for_types): New hook.
6497         * tree.h (lang_type_promotes_to): Remove.
6498 objc:
6499         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6500
6501 2002-04-18  Richard Henderson  <rth@redhat.com>
6502
6503         * function.c: Revert patch for c/6358.
6504
6505 2002-04-18  Richard Henderson  <rth@redhat.com>
6506
6507         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6508         blocks.  Handle multiple references to the TRAP block.  Handle
6509         non-adjacent THEN and OTHER blocks.
6510
6511 2002-04-18  Richard Henderson  <rth@redhat.com>
6512
6513         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6514         crash with no type for by-mode libcalls.
6515
6516         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6517
6518 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6519
6520         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6521         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6522         the register windows.
6523
6524 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6525
6526         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6527         appropriate.  Document need for extended precision even when
6528         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6529         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6530         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6531         instead of relying on later syntax error when REAL_WIDTH > 5.
6532         * real.c: Define NE based only on whether or not we have a
6533         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6534         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6535         define GET_REAL and PUT_REAL as simple memcpy operations; no
6536         need to byteswap or round.
6537         Use #error instead of #ifdef-ing out the entire file, for
6538         prompt error detection.
6539
6540         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6541
6542 2002-04-18  David S. Miller  <davem@redhat.com>
6543
6544         * config/sparc/sparc.h (BRANCH_COST): Define.
6545
6546         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6547         does it.
6548
6549 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6550
6551         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6552         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6553         propagate_block calls after relaxation loop using new variable
6554         stabilized_prop_flags.
6555
6556 2002-04-18  Richard Henderson  <rth@redhat.com>
6557
6558         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6559         (ia64_va_arg): Expect variable sized types by reference.
6560         * config/ia64/ia64-protos.h: Update.
6561         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6562         ia64_function_arg_pass_by_reference.
6563
6564 2002-04-18  Richard Henderson  <rth@redhat.com>
6565
6566         * ifcvt.c: Include except.h.
6567         (block_has_only_trap): Break out from find_cond_trap.
6568         (find_cond_trap): Use it.  Always delete the trap block.
6569         (merge_if_block): Allow then block null.  Be less simplistic about
6570         what insns can end a block.
6571         * Makefile.in (ifcvt.o): Depend on except.h.
6572
6573         * config/ia64/ia64.md (trap, conditional_trap): New.
6574
6575 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6576
6577         PR c/6358
6578         * function.c (assign_parms): Assign hard current_function_return_rtx
6579         register here...
6580         (expand_function_end): ...not here.
6581
6582 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6583
6584         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6585         * c-tree.h (c_incomplete_type_error): New.
6586         * c-typeck.c (require_complete_type, build_component_ref): Update.
6587         (incomplete_type_error): Rename.
6588         * langhooks-def.h (lhd_incomplete_type_error): New.
6589         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6590         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6591         * langhooks.c (lhd_incomplete_type_error): New.
6592         * langhooks.h (struct lang_hooks_for_types): New hook.
6593         * tree.c (size_in_bytes): Use new hook.
6594         * tree.h (incomplete_type_error): Remove.
6595 objc:
6596         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6597
6598 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6599
6600         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6601         TARGET_FLOAT_FORMAT blocks.
6602
6603 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6604
6605         * doc/install.texi (Downloading the source): Do not mention Chill
6606         any longer, but mention Ada.
6607         (Configuration): Do not mention Chill any longer.
6608
6609 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6610
6611         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6612
6613 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6614
6615         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6616         in last patch.
6617
6618 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6619
6620         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6621         instead of unsigned_type.
6622
6623 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6624
6625         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6626         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6627         later.
6628
6629 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6630
6631         * attribs.c (vector_type_node_list): New static variable.
6632         (handle_vector_size_attribute): Use it to avoid generating a
6633         new type node each time we are called.
6634
6635         * combine.c (subst): Avoid trying to make a vector mode subreg of
6636         an integer constant.
6637         (gen_lowpart_for_combine): Likewise.
6638
6639 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6640             Jakub Jelinek  <jakub@redhat.com>
6641
6642         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6643         for integer constant c (if x has unsigned type or sign bit is not
6644         set in c).  This folds the zero/sign extension into the bit-wise and
6645         operation.
6646
6647 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6648
6649         PR middle-end/6205
6650         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6651         otherwise xorps.
6652
6653 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6654
6655         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6656
6657 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6658
6659         * gcc.c (read_specs): Detect and fail if an attempt is made to
6660         rename a spec string to an already existing string.
6661
6662 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6663
6664         * config/s390/s390.c (legitimize_pic_address): Do not generate
6665         illegal address constant without CONST.
6666
6667 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6668
6669         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6670         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6671
6672 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6673
6674         PR optimization/6305
6675         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6676         to make sure previous reloads are taken into account.  Generate
6677         better code if one operand is an in-range immediate constant.
6678
6679 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6680
6681         * doc/install.texi (Building): libgcj requires GNU make.
6682
6683 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6684
6685         PR bootstrap/6315
6686         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6687         even if hard quad and register is not floating.
6688         (movtf reg<-mem split): Disallow splitting if hard quad and
6689         register is floating.
6690         (movtf mem<-reg split): Likewise.
6691         * config/sparc/sparc.c (fp_register_operand): New predicate.
6692         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6693
6694 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6695
6696         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6697         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6698         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6699         UNPROTOIZE on command line.
6700         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6701         (in_system_include_dir): Use cpp_include_defaults (defined in
6702         cppdefault.o).
6703         * unprotoize.c: Delete file.
6704
6705 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6706
6707         * config/rs6000/altivec.h (vec_ld): Add array variants.
6708         (vec_lde): Same.
6709         (vec_ldl): Same.
6710
6711 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6712             Aldy Hernandez <aldyh@redhat.com>
6713
6714         * config/rs6000/altivec.h: Define __ALTIVEC__.
6715         (bool): New.
6716         (__pixel): New.
6717         (pixel): New.
6718         (vec_cfux): New.
6719         (vec_vmaddfp): New.
6720         (vec_vsldoi): New.
6721         Add parentheses to all macro arguments.
6722
6723 2002-04-16  Richard Henderson  <rth@redhat.com>
6724
6725         PR c++/6320
6726         * except.c (remove_eh_handler): Insert inner regions at beginning
6727         of sibling chain.  Refactor expressions.
6728
6729 2002-04-16  Richard Henderson  <rth@redhat.com>
6730
6731         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6732         * config/sparc/sol2-gas-bi.h: New file.
6733         * config.gcc (sparc*-solaris): Add it as needed.
6734         * configure.in (AS_SPARC64_FLAG): Remove check.
6735         * config.in, configure: Regenerate.
6736
6737         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6738
6739 2002-04-16  Richard Henderson  <rth@redhat.com>
6740
6741         * config/mips/mips.c (override_options): Don't override N32 for
6742         a 64-bit ISA.
6743
6744         PR 6202
6745         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6746         (HILO_delay): Set can_delay false.
6747
6748 2002-04-16  Dale Johannesen <dalej@apple.com>
6749
6750         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6751         instruction addresses.
6752         (rs6000_output_function_epilogue): Likewise.
6753
6754 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6755
6756         * c-parse.in (poplevel, compstmt_start,
6757         compstmt_primary_start): Add ending ';', in accordance
6758         with POSIX.
6759
6760 2002-04-16  Richard Henderson  <rth@redhat.com>
6761
6762         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6763         Adjust tm_file order to get TARGET_DEFAULT set properly.
6764         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6765         * doc/install.texi (sparc-solaris): Update.
6766
6767 2002-04-16  Dale Johannesen <dalej@apple.com>
6768
6769         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6770         comparison operands do not match each other or if modes of
6771         conditions do not match result.
6772
6773 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6774
6775         PR target/6305
6776         * config/s390/s390.md (mulsidi3): Set both subregs of the
6777         multiword register.
6778
6779 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6780
6781         * config/rs6000/altivec.h (vec_addc): Type check.
6782
6783 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6784
6785         PR middle-end/6279
6786         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6787
6788         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6789
6790 2002-04-15  Richard Henderson  <rth@redhat.com>
6791
6792         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6793         call_really_used_regs too.
6794
6795 2002-04-15  Richard Henderson  <rth@redhat.com>
6796
6797         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6798
6799 2002-04-15  David S. Miller  <davem@redhat.com>
6800
6801         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6802         as being CLOBBERed.
6803
6804 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6805
6806         PR c/6290
6807         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6808         CONST_VECTOR is { 0, ... 0 }.
6809
6810 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6811
6812         * doc/install.texi (Installing GCC: Configuration): Clarify
6813         the only supported ways to configure gcc.
6814
6815 2002-04-15  Roland McGrath  <roland@frob.com>
6816
6817         * config.gcc (alpha*-*-gnu*): New target configuration.
6818         * config/alpha/gnu.h: New file for it.
6819         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6820
6821 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6822
6823         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6824         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6825         * tree.h (expand_start_stmt_expr): Update prototype.
6826         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6827         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6828         on the STMT_EXPR created for the inline function.
6829
6830 2002-04-15  Richard Henderson  <rth@redhat.com>
6831
6832         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6833         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6834         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6835         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6836         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6837         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6838         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6839         Define __gnu_linux__, not gnu_linux.
6840         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6841
6842 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6843
6844         Remove Chill front end.
6845         * gcc.c (default_compilers): Remove Chill entries.
6846         * ch: Remove directory.
6847         * doc/frontends.texi: Remove information about Chill.
6848         * doc/sourcebuild.texi: Likewise.
6849         * doc/standards.texi: Likewise.
6850
6851 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6852
6853         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6854         (LONGLONG_STANDALONE): Define.
6855
6856 2002-04-15  David S. Miller  <davem@redhat.com>
6857
6858         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6859         Call emit_library_call with LCT_NORMAL.
6860         (sparc_initialize_trampoline): Use LCT_foo instead of
6861         magic constant in emit_library_call invocations.
6862         (sparc64_initialize_trampoline): Likewise.
6863         (sparc_profile_hook): Likewise.
6864         * config/sparc/sparc.md: Likewise.
6865
6866         * config/sparc/sparc.c (sparc_extra_constraint_check):
6867         Fix type of argument 'c'.
6868         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6869         Likewise.
6870
6871 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6872
6873         * diagnostic.h (output_buffer_state): Redefine.
6874         (output_format_decoder): New macro.
6875         (output_prefixing_rule): Likewise.
6876         (output_line_cutoff): Likewise.
6877         (diagnostic_format_decoder): Adjust.
6878         (diagnostic_prefixing_rule): Likewise.
6879         (diagnostic_line_cutoff): Likewise.
6880         (diagnostic_state): Likewise.
6881         (diagnostic_kind_count): Likewise.
6882         (diagnostic_buffer): Now a macro.
6883
6884         * diagnostic.c (diagnostic_buffer): Remove definition.
6885         (output_is_line_wrapping): Adjust.
6886         (set_real_maximum_length): Likewise.
6887         (output_set_maximum_length): Likewise.
6888         (init_output_buffer): Likewise.
6889         (lhd_print_error_function): Likewise.
6890         (output_do_verbatim): Likewise.
6891
6892 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6893
6894         * cpperror.c (print_location): Don't print include chain
6895         if line == 0.
6896         (cpp_begin_message): Update to use DL_ macros.
6897         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6898         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6899         cpp_notice, cpp_notice_from_errno): Remove.
6900         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6901         level.
6902         (cpp_errno): New.
6903         * cppexp.c (CPP_ICE): Remove.
6904         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6905         lex, integer_overflow, _cpp_parse_expr): Update.
6906         * cppfiles.c (read_include_file, find_include_file,
6907         handle_missing_header, _cpp_read_file, remap_filename): Update.
6908         * cpphash.h (enum error_type): Remove.
6909         (_cpp_begin_message): Update.
6910         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6911         cpp_handle_option, cpp_post_options): Update.
6912         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6913         skip_whitespace, parse_identifier, parse_slow, parse_string,
6914         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6915         cpp_interpret_charconst): Update.
6916         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6917         lex_macro_node, do_undef, glue_header_name, parse_include,
6918         do_include_common, read_flag, do_line, do_linemarker, do_ident,
6919         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6920         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6921         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6922         _cpp_pop_buffer, do_diagnostic): Update.
6923         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6924         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6925         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6926         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6927         cpp_notice, cpp_notice_from_errno): Remove.
6928         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6929         level.
6930         (cpp_errno): New.
6931         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6932         collect_args, enter_macro_context, save_parameter, parse_params,
6933         _cpp_create_definition, check_trad_stringification,
6934         cpp_macro_definition): Update.
6935         * cppmain.c (cpp_preprocess_file): Update.
6936         * fix-header.c (read_scan_file): Update.
6937
6938 2002-04-14  Andreas Schwab  <schwab@suse.de>
6939
6940         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6941
6942 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6943
6944         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6945
6946 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6947
6948         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6949         not gnu_hurd.
6950
6951 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
6952
6953         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6954
6955 2002-04-13      Joel Sherrill <joel@OARcorp.com>
6956
6957         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
6958         sparc-elf and sparc-rtems targets.
6959
6960 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6961
6962         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6963         defined, and __gnu_hurd__ wherever __GNU__ is defined.
6964         * arm/linux-elf.h: Likewise.
6965         * cris/aout.h: Likewise.
6966         * cris/linux.h: Likewise.
6967         * i370/linux.h: Likewise.
6968         * i386/gnu.h: Likewise.
6969         * i386/linux-aout.h: Likewise.
6970         * i386/linux-oldld.h: Likewise.
6971         * i386/linux.h: Likewise.
6972         * i386/linux64.h: Likewise.
6973         * ia64/linux.h: Likewise.
6974         * m68k/linux-aout.h: Likewise.
6975         * m68k/linux.h: Likewise.
6976         * mips/linux.h: Likewise.
6977         * pa/pa-linux.h: Likewise.
6978         * pj/linux.h: Likewise.
6979         * rs6000/sysv4.h: Likewise.
6980         * s390/linux.h: Likewise.
6981         * sh/linux.h: Likewise.
6982         * sparc/linux-aout.h: Likewise.
6983         * sparc/linux.h: Likewise.
6984         * sparc/linux64.h: Likewise.
6985         * xtensa/linux.h: Likewise.
6986
6987 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
6988
6989         * stmt.c (check_unique_operand_names): Expect operand names to
6990         be strings rather than identifiers.  Use simple_cst_equal to
6991         compare them.
6992         (resolve_operand_name_1): Make same identifier to string change here.
6993         * c-parse.in (asm_operand): Convert a named operand into a string.
6994         * cp/parse.y (asm_operand): Likewise.
6995
6996 2002-04-13  Andreas Schwab  <schwab@suse.de>
6997
6998         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6999
7000 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
7001
7002         Revert these changes:
7003
7004         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7005
7006         PR c++/5571
7007         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7008
7009 2002-04-12  Richard Henderson  <rth@redhat.com>
7010
7011         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
7012         (sparc*-*-solaris): Clean up header files.
7013         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
7014         and plan on generating 64-bit code.
7015         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
7016         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
7017         * config/sparc/sol2-sld-64.h: Rename ...
7018         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
7019         for AS_SPARC64_FLAG not defined.
7020         * config/sparc/sol2-gld-bi.h: New.
7021         * config/sparc/sol2-sld.h: Remove.
7022         * config/sparc/sol26-sld.h: New.
7023         * config/sparc/sol2.h: Tidy comments.
7024         * doc/install.texi: Document sparc-solaris configury changes.
7025
7026 2002-04-12  Richard Henderson  <rth@redhat.com>
7027
7028         * recog.c (offsettable_address_p): Match the logic in adjust_address.
7029
7030         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
7031         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
7032
7033 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7034
7035         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
7036
7037 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
7038
7039         * pa.c (pa_can_combine_p): Call extract_insn before calling
7040         constrain_operands.
7041
7042 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
7043
7044         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
7045         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
7046         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
7047         (CPP_PREDEFINES): Handle __declspec.
7048         * config/i386/t-interix (USER_H): Remove.
7049
7050 2002-04-12  DJ Delorie  <dj@redhat.com>
7051
7052         * integrate.c (compare_blocks): Make comparisons safe for when
7053         sizeof(int) < sizeof(char *).
7054         (find_block): Likewise.
7055
7056 2002-04-12  Jan Hubicka  <jh@suse.cz>
7057             David Edelsohn  <edelsohn@gnu.org>
7058
7059         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
7060         registers.
7061         (symbol_ref_operand): New.
7062         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
7063         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
7064
7065 2002-04-12  Andreas Schwab  <schwab@suse.de>
7066
7067         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
7068         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
7069         overrides the definition in config/svr4.h.
7070
7071 2002-04-12      Eric Norum <eric.norum@usask.ca>
7072
7073         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
7074         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
7075         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
7076         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
7077         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
7078         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
7079         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
7080         definitions to config/rtems.h and make the targets more similar.
7081
7082 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7083
7084         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7085         POINTERS_EXTEND_UNSIGNED.
7086         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7087         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7088
7089         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7090         not specified.
7091
7092 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7093
7094         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7095         depends on TARGET_SHMEDIA, not TARGET_SH5.
7096
7097 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
7098
7099         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7100         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7101
7102 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7103
7104         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7105         no r0 clobber.
7106
7107 2002-04-12  Andreas Schwab  <schwab@suse.de>
7108
7109         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7110
7111 2002-04-12  Richard Henderson  <rth@redhat.com>
7112
7113         PR bootstrap/4191
7114         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7115
7116         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7117         modes spanning multiple hard regs.
7118
7119         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7120
7121 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7122
7123         * pa.c (pa_output_function_prologue): Don't accumulate the total
7124         number of code bytes when using TARGET_64BIT, or gas, SOM and not
7125         the portable runtime.
7126         (output_deferred_plabels): Handle 64bit plabels.
7127         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7128         generating pic code using the GAS assembler for object formats that
7129         are not SOM (ie., ELF32 and ELF64).
7130         (output_millicode_call): Check attribute type if attribute length is 28.
7131         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
7132         dbr_sequence_length once.
7133         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7134         dbr_sequence_length once.
7135         * pa.h (TARGET_SOM): Define if not defined.
7136         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7137         with GAS and not SOM.
7138         (jump, call_internal_reg, call_value_internal_reg): Likewise.
7139         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
7140
7141 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7142
7143         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7144         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7145         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7146         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7147         elfos.h and dbxelf.h values are fine now.
7148         * config/i386/freebsd.h, config/alpha/freebsd.h
7149         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7150
7151 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7152
7153         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7154         or set Acpu or Amachine.  Reformat.
7155         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7156         define.
7157         (LINK_SPEC): Do not need to undef.
7158         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7159         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7160         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7161         define.
7162         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7163         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7164         (LINK_SPEC): Do not need to undef.
7165         (DONT_USE_BUILTIN_SETJMP): Do not define.
7166         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7167         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
7168         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7169         Remove trailing spaces.
7170         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7171         __ELF__, or set Acpu or Amachine.  Reformat.
7172         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7173         define.
7174
7175 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7176
7177         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7178         all other *-*-freebsd* targets.
7179
7180 2002-04-11  Richard Henderson  <rth@redhat.com>
7181
7182         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7183
7184 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7185
7186         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7187         Include {cpu}/{cpu}.h thru tm_file.
7188         (alpha*-*-linux*ecoff): Remove target.
7189         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7190         (LINK_SPEC): Remove, is not OS independent.
7191         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7192         (LINK_SPEC): Do not need to #undef any longer.
7193         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7194         any longer.
7195         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7196         __ELF__.
7197         (LINK_SPEC): Moved here from alpha/elf.h.
7198         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7199         SUB_CPP_PREDEFINES.
7200         * config/alpha/linux-ecoff.h: Remove.
7201         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7202         (CPP_SPEC): Define _POSIX_SOURCE as needed.
7203         (CPP_SUBTARGET_SPEC): Do not define.
7204         (LINK_SPEC): Do not need to #undef any longer.
7205         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7206         * config/alpha/vms.h: Likewise.
7207
7208 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
7209
7210         * doc/extend.texi: Remove old claim that typedefs cannot have
7211         an alignment attribute.
7212
7213 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7214
7215         PR optimization/6177
7216         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7217         bitpos is 0 and bitsize CONCAT size.
7218
7219 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7220
7221         PR c/6223
7222         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7223
7224 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
7225
7226         * config/alpha/freebsd.h: Minor reformatting.
7227         (CPP_SPEC): Define ELF and add cpp_subtarget.
7228         (ASM_SPEC): No longer needed.
7229
7230 2002-04-11  Richard Henderson  <rth@redhat.com>
7231
7232         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7233         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
7234         (dimode mem/zero splitter): New.
7235
7236 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
7237
7238         * config/cris/cris.c (cris_override_options): Tweak error message
7239         for PIC not implemented.
7240
7241         * config/cris/cris.h: Tweak comments related to parameter-passing.
7242
7243         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7244
7245 2002-04-10  Richard Henderson  <rth@redhat.com>
7246
7247         * except.c (add_ehl_entry): Allow duplicates after landing pad
7248         creation.
7249
7250 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
7251
7252         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7253
7254 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7255
7256         * c-decl.c (c_init_decl_processing): Move generation of
7257         decls for g77_integer_type_node and friends from here ...
7258         * c-common.c (c_common_nodes_and_builtins): ... to here.
7259
7260 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7261
7262         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7263         is only used as frame pointer when frame_pointer_needed is true.
7264
7265 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7266
7267         PR target/817
7268         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7269         for the fact that the pool entry uses two words.
7270         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
7271         1k bytes.
7272         (movdf_soft_insn): Similarly.
7273         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7274         for the fact that the pool entry uses three words.
7275
7276 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
7277
7278         * config/mips/mips.c (mips_va_arg): When using the struct version
7279         of the EABI va_list, allow arguments in the register save area to
7280         take up less room than a stack argument.
7281
7282 2002-04-10  Richard Henderson  <rth@redhat.com>
7283
7284         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7285         if EXPAND_INITIALIZER.
7286
7287 2002-04-09  Richard Henderson  <rth@redhat.com>
7288
7289         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7290         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7291
7292 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7293
7294         PR optimization/6233
7295         * rtlanal.c (pure_call_p): New function.
7296         * rtl.h (pure_call_p): Declare.
7297         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7298         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7299
7300 2002-04-09  Eric Christopher  <echristo@redhat.com>
7301
7302         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7303         information to .comm directive.
7304
7305 2002-04-09  Richard Henderson  <rth@redhat.com>
7306
7307         PR c/5078
7308         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7309
7310 2002-04-09  Richard Henderson  <rth@redhat.com>
7311
7312         * basic-block.h (flow_delete_block_noexpunge): Declare.
7313         (expunge_block_nocompact): Declare.
7314         * cfg.c (expunge_block_nocompact): Split out from ...
7315         (expunge_block): ... here.
7316         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7317         (flow_delete_block_noexpunge): Split out from ...
7318         (flow_delete_block): ... here.
7319         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7320         removing dead blocks.
7321         * except.c (exception_handler_labels): Remove.
7322         (exception_handler_label_map): New.
7323         (struct eh_region): Add aka member.
7324         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7325         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7326         (for_each_eh_label, for_each_eh_label_1): New.
7327         (init_eh): Register exception_handler_label_map.
7328         (free_eh_status): Use free_region.
7329         (find_exception_handler_labels): Use the map, not the list.
7330         (remove_exception_handler_label): Likewise.
7331         (maybe_remove_eh_handler): Likewise.
7332         (remove_eh_handler): Use the region aka bitmap.
7333         * except.h (exception_handler_labels): Remove.
7334         (for_each_eh_label): Declare.
7335         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7336         * loop.c (invalidate_loops_containing_label): New.
7337         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7338         * sched-rgn.c (is_cfg_nonregular): Use
7339         current_function_has_exception_handlers.
7340
7341 2002-04-09  Richard Henderson  <rth@redhat.com>
7342
7343         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7344         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7345         Do not return changed status.
7346         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7347         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7348         New functions that do return changed status.
7349         * sbitmap.h: Update decls.
7350         * gcse.c, lcm.c: Use _cg functions as needed.
7351
7352 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7353
7354         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7355         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7356         * config/sh/embed_bb.c: New file.
7357         * config/sh/embed-elf.h: New file.
7358         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7359         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7360         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7361         __PTRDIFF_TYPE__ .
7362         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7363         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7364         Add subtarget_asm_endian_spec.
7365         (ASM_SPEC): Use subtarget_asm_endian_spec.
7366         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7367         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7368         (WCHAR_UNSIGNED): Define.
7369         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7370         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7371         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7372         Fix value.
7373         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7374         (sh_adjust_cost): Likewise.
7375         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7376         __PTRDIFF_TYPE__ .
7377         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7378         (WCHAR_TYPE_SIZE): Likewise.
7379         (ASM_SPEC): Use subtarget_asm_endian_spec.
7380         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7381         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7382         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7383         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7384         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7385         (USER_LABEL_PREFIX): Don't #undef /#define .
7386         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7387         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7388         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7389         (ASM_SPEC): Likewise.
7390         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7391         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7392         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7393         (LIB2FUNCS_EXTRA): Define.
7394         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7395         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7396         (LIB1ASMFUNCS_CACHE): Define.
7397         (LIB2FUNCS_EXTRA): Redefine empty.
7398
7399 2002-04-08  Richard Henderson  <rth@redhat.com>
7400
7401         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7402
7403 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7404
7405         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7406         and optimize for size.
7407         (__do_global_ctors): Fix pointer comparison.
7408         (__do_global_dtors): Likewise.
7409
7410 2002-04-09  David S. Miller  <davem@redhat.com>
7411
7412         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7413         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7414         allow reloading pseudos.
7415         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7416         * config/sparc/sparc-protos.h: Declare it.
7417
7418         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7419         unsigned comparison warning.
7420         (output_restore_regs): Mark leaf_function as unused.
7421
7422 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7423
7424         * expr.c (is_aligning_offset): New function.
7425         (expand_expr, case COMPONENT_EXPR): Call it.
7426
7427 2002-04-08  David S. Miller  <davem@redhat.com>
7428
7429         PR target/6082
7430         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7431
7432         Make init_priority work on Sparc when using GNU ld.
7433         * config/sparc/linux.h, config/sparc/linux64.h,
7434         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7435         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7436         * config/sparc/sol2-gld.h: New file to do the same.
7437         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7438         sparc/sol2-gld.h to tm_file.
7439
7440         PR optimization/4328
7441         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7442         * doc/md.texi: Document it.
7443         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7444         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7445         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7446         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7447         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7448
7449 2002-04-08  Andreas Jaeger  <aj@suse.de>
7450
7451         * stmt.c (expand_asm_operands): Revert last patch from Richard
7452         Henderson.
7453
7454 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7455
7456         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7457         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7458
7459 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7460
7461         * doc/contrib.texi (Contributors): Add David O'Brien.
7462
7463 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7464
7465         * configure.in (auto-build.h): Use target_alias and build_alias
7466         when running configure.
7467         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7468         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7469         * configure: Regenerate.
7470
7471 2002-04-07  David S. Miller  <davem@redhat.com>
7472
7473         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7474
7475 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7476
7477         PR 5933
7478         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7479         generating 32-bit pic code.
7480
7481 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7482
7483         * cppinit.c (cpp_create_reader): Initialize
7484         discard_comments_in_macro_exp.
7485         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7486         (cpp_handle_option): Handle "-CC" option.
7487         * cpplex.c (save_comment): If saving a C++ comment in
7488         a directive, convert it to a C comment.
7489         (_cpp_lex_direct): Pass second comment start character to
7490         save_comment to indicate comment type.
7491         * cpplib.c (_cpp_handle_directive): If processing
7492         a "#define" directive and discard_comments_in_macro_exp
7493         is false,  re-enable saving of comments.
7494         (lex_macro_node): If discard_comments_in_macro_exp is false,
7495         discard any comments before the macro identifier.
7496         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7497         member.
7498         * cppmacro.c (cpp_get_token): If expanding a macro while
7499         processing a directive, discard any comments we might encounter.
7500         (parse_params): If discard_comments_in_macro_exp is false,
7501         ignore comments in the macro parameter list.
7502         * gcc.c (cpp_unique_options): Add "-CC" option.
7503         (option_map): Map "--comments-in-macros" to "-CC".
7504         * doc/cppopts.texi: Document "-CC" option.
7505         * f/lang-specs.h: Add "-CC" option.
7506         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7507         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7508         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7509         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7510         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7511         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7512
7513 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7514
7515         PR middle-end/6180
7516         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7517
7518 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7519
7520         PR c++/5571
7521         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7522
7523         PR opt/5120
7524         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7525         RTX_UNCHANGING_P for the functions arguments when a tail call
7526         is made.
7527
7528 2002-04-06  Jason Merrill  <jason@redhat.com>
7529
7530         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7531         (parse_options_and_default_flags): Set them appropriately.
7532         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7533
7534 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7535
7536         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7537         here.
7538
7539         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7540         semicolon.
7541
7542         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7543         types come in by-reference.  Fix typo in comment.
7544
7545 2002-04-05  David S. Miller  <davem@redhat.com>
7546
7547         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7548         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7549         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7550         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7551
7552 2002-04-05  David S. Miller  <davem@redhat.com>
7553
7554         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7555         are not going to emit return instructions, emit at least a nop
7556         for the sake of sane backtraces.
7557
7558 2002-04-05  Richard Henderson  <rth@redhat.com>
7559
7560         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7561
7562 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7563
7564         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7565
7566 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7567
7568         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7569         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7570         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7571
7572 2002-04-05  Andreas Schwab  <schwab@suse.de>
7573
7574         * c-convert.c: Include c-common.h.
7575         * Makefile.in (c-convert.o): Updated.
7576
7577 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7578
7579         * mklibgcc.in: Use separate libgcc.map for each multilib.
7580         * Makefile.in (distclean): Don't remove libgcc.map here.
7581
7582 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7583
7584         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7585         genmultilib invocation.
7586
7587 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7588
7589         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7590         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7591         to num_gprs for symmetry.
7592         * config/mips/mips.c: Adjust accordingly.
7593
7594 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7595
7596         * c-common.c (truthvalue_conversion): Rename, update.
7597         * c-common.h (c_common_truthvalue_conversion): New.
7598         * c-convert.c (convert): Update.
7599         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7600         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7601         * c-typeck.c (build_binary_op, build_unary_op,
7602         build_conditional_expr): Update.
7603         * fold-const.c (constant_boolean_node, fold): Use langhook.
7604         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7605         * langhooks.h (struct lang_hooks): New hook.
7606         * stmt.c (expand_decl_cleanup): Use langhook.
7607         * tree.h (truthvalue_conversion): Remove.
7608 objc:
7609         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7610
7611 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7612
7613         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7614         Add rules to make null object file.
7615
7616 2002-04-04  Jim Blandy  <jimb@redhat.com>
7617
7618         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7619         macro formal parameter names.
7620
7621 2002-04-04  David S. Miller  <davem@redhat.com>
7622
7623         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7624
7625 2002-04-04  Richard Henderson  <rth@redhat.com>
7626
7627         PR middle-end/5099
7628         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7629         Support copies into and out of memory.  Don't accept allows_reg
7630         and allows_mem as gospel.
7631
7632 2002-04-04  Richard Henderson  <rth@redhat.com>
7633
7634         PR opt/6165
7635         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7636         (write_dependence_p): Likewise.
7637
7638 2002-04-04  Richard Henderson  <rth@redhat.com>
7639
7640         * predict.c (estimate_bb_frequencies): Do frequency calculation
7641         with a volatile temporary.
7642
7643 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7644
7645         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7646
7647 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7648
7649         PR c++/6119
7650         * final.c (final_start_function): Don't bump profile_label_no here...
7651         (final_end_function): ...but here.
7652
7653 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7654
7655         * config/sparc/sparc.md (pic): New attribute.
7656         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7657         into stack slots.
7658         (split after do_builtin_setjmp_setup): New.
7659
7660 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7661
7662         PR fortran/6106
7663         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7664         change.
7665
7666 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7667
7668         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7669         UNITS_PER_WORD for zero sized aggregates.
7670
7671 2002-04-03  David S. Miller  <davem@redhat.com>
7672
7673         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7674         one-character spec for this, just use %(link_gcc_c_sequence).
7675
7676 2002-04-03  David S. Miller  <davem@redhat.com>
7677
7678         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7679         handling.
7680
7681 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7682
7683         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7684         (DWARF_FRAME_RETURN_COLUMN): Move.
7685         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7686         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7687         * pa.c (except.h, predict.h): Include.
7688         (FRP): Delete.
7689         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7690         (output_ascii): Add cast.
7691         (store_reg_modify): Revise to add frame notes.
7692         (set_reg_plus_d): Likewise.
7693         (compute_frame_size): Include space for eh data registers in frame if
7694         the current function calls eh_return.
7695         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7696         function calls eh_return.  Save eh data registers if the current
7697         function calls eh_return.  Fix code to add frame notes.  Emit
7698         blockage to prevent insns with frame notes being scheduled in the
7699         delay slot of calls.
7700         (hppa_expand_epilogue): Restore eh data registers and do final stack
7701         adjustment if the current function calls eh_return.  Don't add frame
7702         notes.
7703         (output_call): Revise for change in length of call insn.  Don't do
7704         return pointer adjustment for an unconditional jump in the delay slot
7705         of a call when using frame notes.
7706         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7707         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7708         (ARG_POINTER_CFA_OFFSET): Define.
7709         * pa.md (return_external_pic): New pattern.
7710         (prologue): Correct formatting.  Use return_external_pic if current
7711         function calls eh_return.
7712         (call_internal_symref, call_value_internal_symref,
7713         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7714         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7715         respectively.
7716         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7717
7718         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7719         list of targets to check using "nop" insn.
7720         * configure: Rebuilt.
7721
7722 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7723
7724         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7725
7726 2002-04-03  David S. Miller  <davem@redhat.com>
7727
7728         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7729         library sequence passed to the linker.
7730         (LINK_COMMAND_SPEC): Use it.
7731         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7732         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7733         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7734
7735 2002-04-03  Jason Merrill  <jason@redhat.com>
7736
7737         * except.c (struct eh_status): Remove protect_list.
7738         (begin_protect_partials, end_protect_partials): Remove.
7739         (add_partial_entry): Remove.
7740         * except.h: Remove prototypes.
7741
7742         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7743         expand_decl_cleanup_eh.
7744
7745         PR c++/5636
7746         * tree.h (CLEANUP_EH_ONLY): New macro.
7747         * stmt.c (expand_decl_cleanup_eh): New fn.
7748         (expand_cleanups): Check CLEANUP_EH_ONLY.
7749         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7750         Use expand_decl_cleanup_eh.
7751         (expand_stmt): Adjust.
7752         * c-common.h: Adjust prototype.
7753
7754 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7755
7756         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7757         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7758         (cris_target_asm_function_epilogue): Ditto.
7759         (cris_initial_frame_pointer_offset): Ditto.
7760         (cris_simple_epilogue): Ditto.
7761         (cris_expand_builtin_va_arg): Variable-size types come in
7762         by-reference.
7763
7764 2002-04-03  David S. Miller  <davem@redhat.com>
7765
7766         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7767         little-endian.
7768         (set_fast_math): Correct 'fsr' type.
7769
7770 2002-04-03  Richard Henderson  <rth@redhat.com>
7771
7772         PR opt/3569
7773         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7774         * toplev.c (check_global_declarations): Use it.
7775         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7776         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7777         (LANG_HOOKS_DECLS): Add it.
7778         * langhooks.c (lhd_warn_unused_global_decl): New.
7779         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7780         * c-objc-common.c (c_warn_unused_global_decl): New.
7781         * c-tree.h (c_warn_unused_global_decl): Declare.
7782         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7783
7784 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7785
7786         * langhooks-def.h (lhd_set_decl_assembler_name,
7787         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7788         (LANG_HOOKS_INITIALIZER): Update.
7789         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7790         * langhooks.h (struct lang_hooks): New hook.
7791         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7792         (lang_set_decl_assembler_name): Remove.
7793         (init_obstacks): Don't set hook.
7794         (decl_assembler_name): New function.
7795         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7796         (decl_assembler_name): New.
7797         (lang_set_decl_assembler_name): Remove.
7798
7799 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7800
7801         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7802         works properly with .hidden symbols.
7803         * configure: Rebuilt.
7804         * config.in: Rebuilt.
7805         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7806         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7807         properly with .hidden symbols.
7808
7809 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7810
7811         PR middle-end/6102
7812         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7813         USE argument.
7814
7815 2002-04-03  Richard Henderson  <rth@redhat.com>
7816
7817         PR opt/4120
7818         * sched-rgn.c (sets_likely_spilled): New.
7819         (sets_likely_spilled_1): New.
7820         (add_branch_dependences): Use it.
7821
7822 2002-04-02  Richard Henderson  <rth@redhat.com>
7823
7824         PR opt/4311
7825         * loop.h (LOOP_FIRST_PASS): New.
7826         * loop.c (strength_reduce): Mind it when deciding to unroll.
7827         * toplev.c (rest_of_compilation): Set it.
7828
7829 2002-04-02  David S. Miller  <davem@redhat.com>
7830
7831         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7832         mems_ok_for_ldd_peep when the order of the loads being examined
7833         is reversed.
7834         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7835         existing comment to increase comprehension of this situation.
7836
7837 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7838
7839         * config/sh/sh.md: Don't use union real_extract.
7840
7841 2002-04-02  Richard Henderson  <rth@redhat.com>
7842
7843         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7844
7845 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7846
7847         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7848         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7849         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7850         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7851         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7852         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7853         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7854         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7855         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7856         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7857         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7858         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7859         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7860         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7861         Include as many configury headers via tm_file as possible.  This
7862         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7863         * config/openbsd-oldgas.h: New file.
7864         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7865         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7866         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7867         config/i386/i386-coff.h, config/i386/i386-interix.h,
7868         config/i386/iscdbx.h, config/i386/linux-aout.h,
7869         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7870         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7871         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7872         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7873         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7874         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7875         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7876         config/i386/vxi386.h: Do not directly include configury headers.
7877         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7878         Directly include configury headers that are no longer automatically
7879         included by the above headers.
7880         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7881         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7882         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7883         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7884         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7885         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7886         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7887         (TARGET_VERSION): Define.
7888         * config/i386/beos-elf.h, config/i386/freebsd.h,
7889         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7890         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7891         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7892         config/i386/sco5.h, config/i386/sysv4.h
7893         (TARGET_VERSION): Do not need to protect.
7894         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7895         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7896         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7897         config/i386/i386-interix.h, config/i386/linux-aout.h,
7898         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7899         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7900         (YES_UNDERSCORES): Do not define - not needed.
7901         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7902         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7903         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7904         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7905         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7906         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7907         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7908         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7909
7910 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
7911             Richard Henderson  <rth@redhat.com>
7912
7913         PR c/5484
7914         * function.c (assign_temp): Accept either type or decl argument.
7915         Detect variables whose size is too large to fit into an integer.
7916         * stmt.c (expand_decl): Pass the decl, not the type.
7917
7918 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7919
7920         * protoize.c: Match include directory usage with cppdefault.c.
7921
7922 2002-04-03  Jeffrey A Law  (law@redhat.com)
7923             Hans-Peter Nilsson  <hp@bitrange.com>
7924
7925         * combine.c (simplify_comparison): Avoid narrowing a comparison
7926         with a paradoxical subreg when doing so would drop signficant bits.
7927
7928 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
7929
7930         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7931         if POINTERS_EXTEND_UNSIGNED is defined.
7932
7933 2002-04-02  Richard Henderson  <rth@redhat.com>
7934
7935         PR opt/3967
7936         * local-alloc.c (contains_replace_regs): LO_SUM may contain
7937         replace regs.
7938
7939 2002-04-02  Richard Henderson  <rth@redhat.com>
7940
7941         * doc/standards.texi: Document required freestanding libc entry points.
7942
7943 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
7944
7945         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7946         associated splitter.  Remove MQ constraint.
7947         (ctrdi_internal4): Correct CCmode clobber.
7948
7949 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7950
7951         * milli64.S ($$dyncall): New function.
7952         * t-linux (LIB1ASMFUNCS): Revise module list.
7953         (LIB1ASMSRC): Use pa/milli64.S.
7954
7955 2002-04-02  Richard Henderson  <rth@redhat.com>
7956
7957         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7958         rename solaris_sys_varargs_h.
7959
7960 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7961
7962         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7963         the same mode as its component.
7964
7965 2002-04-02  Richard Henderson  <rth@redhat.com>
7966
7967         PR opt/190
7968         * final.c (this_is_asm_operands): Export.
7969         * output.h (this_is_asm_operands): Declare.
7970         * config/i386/i386.c (print_operand): Error odd asm operands.
7971
7972 2002-04-02  Richard Henderson  <rth@redhat.com>
7973
7974         PR opt/420
7975         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7976
7977 2002-04-01  Richard Henderson  <rth@redhat.com>
7978
7979         PR target/1538
7980         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7981         * fixinc/fixincl.x: Rebuild.
7982
7983 2002-04-01  Richard Henderson  <rth@redhat.com>
7984
7985         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7986         (atomic_alloc, atomic_free): New.
7987         (SIZE, MASK_FOR, PTR_IN): New.
7988         (emergency_reg_state, emergency_reg_state_free): New.
7989         (emergency_labeled_state, emergency_labeled_state_free): New.
7990         (reg_state_alloced, labeled_state_alloced): New.
7991         (alloc_reg_state, free_reg_state): New.
7992         (alloc_label_state, free_label_state, free_label_states): New.
7993         (push, pop, dup_state_stack, free_state_stack): Use them.
7994         (desc_label_state): Likewise.
7995         (uw_frame_state_for): Free label states and state stack.
7996         (uw_update_reg_address): Eliminate warnings.
7997
7998 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
7999
8000         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
8001         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
8002
8003 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8004
8005         * c-decl.c (grokdeclarator): Update.
8006         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8007         * c-tree.h (c_mark_addressable): New.
8008         * c-typeck.c (default_function_array_conversion, build_unary_op,
8009         build_array_ref, convert_for_assignment): Update.
8010         (mark_addressable): Rename.
8011         * calls.c (try_to_integrate, expand_call): Use langhook.
8012         * expr.c (expand_expr): Use langhook.
8013         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
8014         * langhooks.h (struct lang_hooks): New hook.
8015         * stmt.c (expand_asm_operands): Use langhook.
8016         * tree.h (mark_addressable): Remove.
8017 objc:
8018         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
8019
8020 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8021
8022         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
8023         in previous change.
8024
8025 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
8026
8027         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
8028         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
8029
8030 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8031
8032         * c-common.c (unsigned_conversion_warning, convert_and_check,
8033         unsigned_type, signed_type, shorten_compare,
8034         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
8035         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
8036         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
8037         New.
8038         * c-decl.c (grokdeclarator): Update.
8039         * c-format.c (check_format_types): Update.
8040         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8041         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8042         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
8043         * convert.c (convert_to_integer): Use new hooks.
8044         * expmed.c (make_tree): Use new hooks.
8045         * expr.c (store_expr): Use new hooks.
8046         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
8047         all_ones_mask_p, unextend, fold): Use new hooks.
8048         * langhooks.h (struct lang_hooks_for_types): New hooks.
8049         * tree.h (signed_or_unsigned_type, signed_type,
8050         unsigned_type): Remove.
8051 objc:
8052         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
8053         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
8054
8055 2002-03-31  Richard Henderson  <rth@redhat.com>
8056
8057         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
8058         (desc_frgr_mem): Fix reference to f16-f31.
8059
8060 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8061
8062         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
8063         RTVEC_ELT): Const-ify.
8064         * varray.h (VARRAY_CHECK): Const-ify.
8065         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
8066         ggc_mark_rtvec, ggc_mark): Const-ify.
8067
8068 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
8069
8070         * diagnostic.c: Include langhooks-def.h.
8071         * Makefile.in (diagnostic.o): Update.
8072
8073 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8074
8075         * c-common.c (c_unsafe_for_reeval): Rename.
8076         * c-common.h (c_unsafe_for_reeval): Rename.
8077         * c-decl.c (finish_incomplete_decl): Rename.
8078         (c_init_decl_processing): Don't set langhook.
8079         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8080         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8081         * c-objc-common.c (c_objc_common_init): Don't set langhook.
8082         * c-tree.h (finish_incomplete_decl): Rename.
8083         * langhooks-def.h (lhd_unsafe_for_reeval): New.
8084         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8085         (LANG_HOOKS_INITIALIZER): Update.
8086         * langhooks.c (lhd_unsafe_For_reeval): New.
8087         * langhooks.h (struct langhooks): New hooks.
8088         * toplev.c (incomplete_decl_finalize_hook): Remove.
8089         (wrapup_global_declarations): Update.
8090         * tree.c (lang_unsafe_for_reeval): Remove.
8091         (unsafe_for_reeval): Update.
8092         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8093         Remove.
8094 objc:
8095         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8096         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8097
8098 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8099
8100         * diagnostic.c (print_error_function): Remove.
8101         (default_print_error_function): Rename.
8102         (report_error_function): Update.
8103         * diagnostic.h (print_error_function): Remove.
8104         (default_print_error_function): Remove.
8105         * langhooks-def.h (struct diagnostic_context): Predeclare.
8106         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8107         (LANG_HOOKS_INITIALIZER): Update.
8108         * langhooks.h (struct diagnostic context): Predeclare.
8109         (struct lang_hooks): New hook.
8110
8111 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8112
8113         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8114         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8115         !flag_pic.
8116         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8117         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8118         of PIC_OFFSET_TABLE_REGNUM thruout.
8119         * config/rs6000/rs6000.md: Likewise.
8120         * config/rs6000/darwin.h: Likewise.
8121
8122 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8123
8124         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8125         unsigned HOST_WIDE_INT, not unsigned int.
8126
8127 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8128
8129         PR middle-end/6096, middle-end/6098, middle-end/6099
8130         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8131         CODE_LABELs.
8132         (fill_slots_from_thread): Likewise.
8133
8134 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8135
8136         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8137         floating fields in float regs.
8138         (function_arg_record_value_2): Likewise.
8139
8140 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8141
8142         * config/mmix/mmix.md (define_constants): Remove misleading
8143         FIXME.  Add MMIX_fp_rO_OFFSET.
8144         ("nonlocal_goto_receiver"): Don't have stack-frame address of
8145         saved rO as part of the pattern.  Remove FIXME.
8146         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
8147         here, at output-time.
8148
8149 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8150
8151         PR middle-end/6100
8152         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8153         REG_BR_PRED.
8154         (output_v9branch): Likewise.
8155
8156 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8157
8158         * gcc.c: Revert previous patch for now.
8159         * config/i386/djgpp.h: Likewise.
8160
8161 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8162
8163         * config/mmix/crti.asm (_init): Register _fini with atexit.
8164         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8165
8166 2002-03-31  Richard Henderson  <rth@redhat.com>
8167
8168         PR target/3997
8169         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8170         (ASM_OUTPUT_DEF_FROM_DECLS): New.
8171
8172 2002-03-31  Richard Henderson  <rth@redhat.com>
8173
8174         * libgcc2.c (__bb_exit_func): Make static.
8175
8176         * config/alpha/alpha.md (trap): New.
8177
8178 2002-03-31  Richard Henderson  <rth@redhat.com>
8179
8180         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8181         promoted argument types; build trap.
8182         (expand_builtin_trap): New.
8183         (expand_builtin): Use it.
8184         * stmt.c (expand_nl_goto_receivers): Likewise.
8185         * expr.h (expand_builtin_trap): Declare.
8186         * libfuncs.h (LTI_abort, abort_libfunc): New.
8187         * optabs.c (init_optabs): Init abort_libfunc.
8188
8189 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8190
8191         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8192         (LINK_COMMAND_SPEC): ... from here.
8193         (init_gcc_specs): Duplicate it here too, omitting
8194         shared_name in the second copy.
8195         (init_spec): Test for duplicate
8196         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8197
8198 2002-03-30  David S. Miller  <davem@redhat.com>
8199
8200         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8201         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8202
8203 2002-03-30  Roger Sayle <roger@eyesopen.com>
8204             Richard Henderson  <rth@redhat.com>
8205
8206         * regmove.c (combine_stack_adjustments_for_block): Avoid
8207         emitting a stack adjustment of zero bytes.  Let delete_insn
8208         update bb->head.
8209
8210 2002-03-30  Richard Henderson  <rth@redhat.com>
8211
8212         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8213         (sparc_emitting_epilogue): New.
8214         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8215         * config/sparc/sparc-protos.h: Update.
8216         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8217         (TARGET_SWITCHES): Update.
8218         * config/sparc/sparc.md (return): Remove.
8219         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8220         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8221         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8222         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8223         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8224         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8225         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8226         Remove MASK_EPILOGUE.
8227         * doc/invoke.texi: Update.
8228
8229 2002-03-30  Daniel Berlin  <dan@dberlin.org>
8230
8231         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8232         CPP will start the file for us.
8233
8234 2002-03-30  Richard Henderson  <rth@redhat.com>
8235
8236         PR target/5446
8237         * config/ia64/ia64.c (group_barrier_needed_p): Special case
8238         prologue_allocate_stack.
8239         (ia64_single_set): Use insn codes for recognition of special
8240         cases, not rtl matching.
8241         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8242
8243 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8244
8245         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8246
8247 2002-03-30  Richard Henderson  <rth@redhat.com>
8248
8249         PR target/6032
8250         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8251         or -fomit-frame-pointer with profiling.
8252         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8253         (FUNCTION_PROFILER): Do nothing.
8254         (PROFILE_HOOK): New.
8255         * config/sparc/sparc.c (sparc_override_options): Don't check
8256         code models for profiling.
8257         (sparc_function_profiler): Remove.
8258         (sparc_profile_hook): New.
8259         * config/sparc/sparc-protos.h: Update.
8260
8261 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8262
8263         PR optimization/6086
8264         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8265         of SUBREG of volatile MEM or because the MEM was mode dependent,
8266         return CLOBBER instead of unmodified SUBREG.
8267
8268 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8269
8270         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8271         when not optimizing.
8272
8273         * toplev.c (rest_of_compilation): Cann mark_constant_function
8274         only when optimizing.
8275
8276         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8277         are NULL.
8278
8279         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8280         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8281         (try_optimize_cfg): clear all AUX fields.
8282
8283         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8284         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8285         (ix86_address_cost): Be prepared for SUBREGed registers.
8286         (legitimate_address_p): Accept SUBREGed registers.
8287
8288 2002-03-29  Richard Henderson  <rth@redhat.com>
8289
8290         PR target/5672
8291         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8292
8293 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8294
8295         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8296         for aggregate and TFmode types.
8297
8298 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8299
8300         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8301
8302 2002-03-29  Richard Henderson  <rth@redhat.com>
8303
8304         PR target/5886
8305         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8306         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8307
8308 2002-03-29  Richard Henderson  <rth@redhat.com>
8309
8310         PR target/6041
8311         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8312         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8313         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8314         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8315         conditional.
8316         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8317
8318 2002-03-29  Dale Johannesen <dalej@apple.com>
8319
8320         * loop.c (combine_movables): Do allow combination of pseudos.
8321
8322 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8323
8324         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8325         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8326         No functional change except ...
8327         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8328         * doc/install.texi (*-*-freebsd*): Document port configuration.
8329
8330 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8331
8332         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8333         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8334         Use new hooks.
8335         * builtin-types.def (BT_PTRMODE): Update.
8336         * c-common.c (type_for_size): Rename c_common_type_for_size.
8337         (type_for_mode): Similarly.
8338         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8339         Use new hook.
8340         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8341         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8342         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8343         Redefine.
8344         * c-typeck.c (common_type, comptypes, default_conversion):
8345         Use new hooks.
8346         * calls.c: Include langhooks.h.
8347         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8348         calls.
8349         * convert.c: Include langhooks.h
8350         (convert_to_pointer, convert_to_integer): Use new hooks.
8351         * except.c (init_eh): Similarly.
8352         * expmed.c: Include langhooks.h.
8353         (expand_mult_add): Use new hooks.
8354         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8355         try_casesi): Similarly.
8356         * fold-const.c (optimize_bit_field_compare, make_range,
8357         decode_field_reference, fold_truthop, fold): Similarly.
8358         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8359         put_var_into_stack): Similarly.
8360         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8361         LANG_HOOKS_TYPE_FOR_SIZE): New.
8362         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8363         * langhooks.h (lang_hooks_for_types): New hooks.
8364         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8365         * tree.c (get_unwidened, get_narrower): Similarly.
8366         * tree.h (type_for_mode, type_for_size): Remove.
8367         * varasm.c (force_const_mem): Use new hooks.
8368         * utils2.c (nonbinary_modular_operation): Update.
8369 objc:
8370         * objc-act.c (handle_impent): Update.
8371         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8372         Redefine.
8373
8374 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8375
8376         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8377         * config/ia64/ia64.c (basereg_operand): New.
8378         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8379         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8380
8381 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8382
8383         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8384         unwind information when frame_pointer_needed.
8385         (mmix_assemble_integer): Tweak wording in comment.
8386
8387 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8388
8389         * Makefile.in (except.o): Update.
8390         * except.c: Include langhooks.h.
8391         (init_eh): Use langhook.
8392         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8393         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8394         (LANG_HOOKS_INITIALIZER): Update.
8395         * langhooks.h (lang_hooks_for_types): New.
8396         (struct lang_hooks): Add it.
8397         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8398         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8399 config:
8400         * alpha/alpha.c: Include langhooks.h.
8401         (alpha_build_va_list): Use langhook.
8402         * d30v/d30v.c: Include langhooks.h.
8403         (d30v_build_va_list): Use langhook.
8404         * i386/i386.c: Include langhooks.h.
8405         (ix86_build_va_list): Use langhook.
8406         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8407         * s390/s390.c: Include langhooks.h.
8408         (s390_build_va_list): Use langhook.
8409         * stormy16/stormy16.c: Include langhooks.h.
8410         (stormy16_build_va_list): Use langhook.
8411
8412 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8413
8414         PR c++/5964
8415         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8416         attributes.
8417         (length): Compute variable length for branches/calls/jumps here.
8418         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8419         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8420         define branch_type attribute.
8421         (divsi3_sp32): Maximum length is 6 not 7.
8422         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8423         call_address_untyped_struct_value_sp32,
8424         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8425         * config/sparc/sparc.c (empty_delay_slot): New function.
8426         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8427         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8428
8429 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8430
8431         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8432         nonzero_bits if not needed.
8433         (nonzero_bits) [XOR]: Likewise.
8434         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8435         reg_last_set_mode and mode are both MODE_INT, but not equal.
8436         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8437         in nonzero_bits_mode for MODE_INT modes.
8438
8439 2002-03-28  Richard Henderson  <rth@redhat.com>
8440
8441         PR target/5715
8442         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8443         to GAS.  Correct drift between alternatives.
8444
8445 2002-03-28  Richard Henderson  <rth@redhat.com>
8446
8447         PR target/6087
8448         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8449
8450 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8451
8452         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8453         emulation to the linker.
8454
8455 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8456
8457         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8458         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8459
8460 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8461
8462         * combine.c (simplify_and_const_int): Make sure to apply mask
8463         when force_to_mode returns a constant integer.  PR3311.
8464
8465 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8466
8467         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8468
8469 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8470
8471         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8472         and Objective-C Dialect Options.
8473
8474 2002-03-28  Richard Henderson  <rth@redhat.com>
8475
8476         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8477         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8478
8479 2002-03-28  Richard Henderson  <rth@redhat.com>
8480
8481         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8482         on to c_expand_body.
8483         * c-tree.h (finish_function): Update decl.
8484         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8485
8486 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8487
8488         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8489
8490 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8491
8492         * rtlanal.c: Include flags.h
8493         (may_trap_p): Do not mark FP operations if trapping
8494         if !flag_trapping_math
8495         * Makefile.in (rtlanal.o): Add dependency on flag.h
8496         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8497
8498 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8499
8500         * mips.md: Use dconst1, not 1.0, as first argument of
8501         REAL_VALUE_LDEXP.  Don't use union real_extract.
8502
8503 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8504
8505         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8506         rather than $target.  Heed program_prefix and
8507         program_transform_name.  Search for gas in cross-compiler case too.
8508         "test -x" rather than "test -f".
8509         (gcc_cv_ld): Likewise.
8510         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8511         (gcc_cv_objdump): Likewise.
8512         * configure: Regenerate.
8513
8514 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8515
8516         * Makefile.in (attribs.o): Update.
8517         * attribs.c: Include langhooks.h.
8518         (decl_attributes): Use langhook.
8519         * c-decl.c (insert_default_attributes): Rename.
8520         * c-tree.h (c_insert_default_attributes): New.
8521         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8522         (LANG_HOOKS_INITIALIZER): Update.
8523         * langhooks.h (struct lang_hooks): New hook.
8524         * tree.h (insert_default_attributes): Remove.
8525 objc:
8526         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8527
8528 2002-03-27  Andreas Schwab  <schwab@suse.de>
8529
8530         * config/i386/i386.c (classify_argument): Also check for
8531         QUAL_UNION_TYPE.
8532
8533 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8534
8535         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8536         any more.
8537
8538 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8539
8540         * i960.md (ret): Set PC.
8541         (nonlocal_goto): Fix expander.
8542         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8543         some jump or call.
8544
8545 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8546
8547         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8548         of libcall regions.
8549
8550 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8551
8552         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8553         assigning to BLOCK_FOR_INSN directly.
8554
8555 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8556
8557         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8558
8559 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8560
8561         * c-common.c (c_expand_expr): Fix prototype.
8562         * c-common.h (c_expand_expr): Always declare, update.
8563         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8564         * c-objc-common.c (c_objc_common_init): No global hook.
8565         * expr.c (expand_expr): Use langhook.
8566         * expr.h (enum expand_modifier): Conditionally declare.
8567         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8568         (LANG_HOOKS_INITIALIZER): Update.
8569         * langhooks.c (lhd_expand_expr): New.
8570         * langhooks.h (struct lang_hooks): New hook.
8571         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8572         (lang_independent_init): Don't default hook.
8573 objc:
8574         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8575
8576 2002-03-27  Richard Henderson  <rth@redhat.com>
8577
8578         PR target/6054
8579         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8580         TARGET_CONST_GP.  Simplify conditions.
8581
8582 2002-03-27  Richard Henderson  <rth@redhat.com>
8583
8584         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8585         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8586         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8587
8588 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8589
8590         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8591         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8592         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8593         Remove unnecessary masks.
8594         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8595         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8596         -mwindows, -mdll switches and their negations.
8597
8598 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8599
8600         * gcc-common.c (lang_mark_false_label_stack): Remove.
8601         * ggc.h (lang_mark_false_label_stack): Similarly.
8602
8603 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8604
8605         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8606
8607         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8608         or __rtems_ is defined.
8609
8610 2002-03-26  Richard Henderson  <rth@redhat.com>
8611
8612         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8613         if a non-trivial load was emitted.
8614         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8615         in high+extra+low case.
8616
8617 2002-03-26  Richard Henderson  <rth@redhat.com>
8618
8619         * config.gcc (sparc*-solaris): Use float_format=sparc.
8620
8621 2002-03-26  Richard Henderson  <rth@redhat.com>
8622
8623         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8624         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8625         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8626         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8627         (WINT_TYPE_SIZE): Fix at 32.
8628
8629 2002-03-26  Richard Henderson  <rth@redhat.com>
8630
8631         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8632         until after eh landing pad generation.
8633         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8634         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8635
8636 2002-03-26  Richard Henderson  <rth@redhat.com>
8637
8638         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8639
8640 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8641
8642         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8643         and warning switches.
8644         (cc1_options):  Likewise.
8645
8646 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8647
8648         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8649         Restore more of the signal context.  Set no_reg_stack_frame.
8650         * config/ia64/unwind-ia64.c (unw_state_record):
8651         Add no_reg_stack_frame, comments.
8652         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8653         (uw_update_context): Adjust bsp when unwinding from leaf,
8654         but not signal frame.
8655
8656 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8657
8658         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8659
8660 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8661
8662         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8663
8664 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8665
8666         PR target/5621
8667         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8668         "Add a pool_range attribute", which was lost during the ARM/Thumb
8669         merge.
8670
8671 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8672
8673         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8674         a register into the MAC16 accumulator.
8675
8676 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8677
8678         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8679         (Warning Options): Document -Wswitch-enum.
8680         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8681         -Wswitch.
8682         (warn_switch_enum): Define variables.
8683         * flags.h (warn_switch_enum): Declare variables.
8684         * stmt.c (expand_end_case_type): When warn_switch_enum /
8685         -Wswitch-enum, perform switch checks.
8686         Fix PR c/5044.
8687
8688 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8689
8690         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8691         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8692         (reload_muladdsi_compare0_scratch): Delete.
8693
8694 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8695
8696         * doc/install.texi (*-*-freebsd*): Update.
8697
8698 2002-03-26  Richard Henderson  <rth@redhat.com>
8699
8700         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8701         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8702
8703         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8704         types from the normal argument frame.
8705
8706         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8707         variable sized objects by reference.
8708         (sparc_va_arg): Receive them by reference too.
8709
8710 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8711
8712         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8713         code to not restoring global registers.
8714
8715 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8716
8717         * Makefile.in (ggc-common.o): Update.
8718         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8719         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8720         * c-tree.h (c_mark_tree): New.
8721         * ggc-common.c: Include langhooks.h.
8722         (gcc_mark_trees): Use new langhook.
8723         * ggc-callbacks.c: Delete file.
8724         * ggc.h (lang_mark_tree): Remove.
8725         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8726         (LANG_HOOKS_INITIALIZER): Update.
8727         * langhooks.h (struct lang_hooks): New hook.
8728 objc:
8729         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8730
8731 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8732
8733         * doc/cpp.texi: Exclude entire Top node from printed manual.
8734         Move option index after directive index.  Insert page breaks
8735         before GFDL and concept index.  Index environment variables
8736         with command line options.
8737         * doc/cppenv.texi: Use @vtable for environment variable list.
8738         Add paragraph explaining semantics of empty elements in path
8739         variables.  Exclude a cross-reference to Fishkill from the
8740         manpage.  Remove an unnecessary cross-reference of the entry
8741         right above the referer.  Don't use @anchor in text that goes
8742         into manpage.
8743         * doc/cppopts.texi: Cross-reference the environment variables
8744         section, not the specific environment variable, for consistency.
8745
8746 2002-03-25  Richard Henderson  <rth@redhat.com>
8747
8748         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8749         anywhere in the block.  Don't refer to insns that have been
8750         removed from the chain.  Iterate backward through the new insns.
8751         Don't refer to edges that have been removed.
8752
8753 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8754
8755         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8756         test for overflow of constant.
8757
8758 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8759
8760         PR target/2623
8761         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8762         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8763         these patterns on arm_archv4.
8764
8765 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8766
8767         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8768         int".
8769
8770 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8771
8772         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8773         float_handled, float_handler, float_signal, set_float_handler,
8774         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8775         * toplev.h: Don't prototype do_float_handler.
8776
8777         * c-lex.c: Fold parse_float into lex_number.  Make warning
8778         about portability of hex float constants more informative, and
8779         don't issue it on top of a syntax error.
8780         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8781         their callers.
8782         * real.h: Define REAL_VALUE_ABS here...
8783         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8784         simplify_unary_real, simplify_binary_real, and
8785         simplify_binary_is2orm1 into their callers.
8786         * tree.c: Fold build_real_from_int_cst_1 into caller.
8787
8788         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8789
8790         * tsystem.h: Include float.h here...
8791         * libgcc2.c: ... not here.
8792
8793 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8794
8795         Fixes for: PR bootstrap/3591, target/5676
8796         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8797         defined.  Do not disable exceptions or rtti.
8798         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8799         mcore.h.  Disable exceptions and rtti, since they are not
8800         supported by EPOC.
8801
8802 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8803
8804         * c-decl.c (maybe_build_cleanup): Remove.
8805         * expr.c (expand_expr): Use langhook.
8806         * langhooks-def.h (lhd_return_null_tree,
8807         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8808         (LANGHOOKS_INITIALIZER): Update.
8809         * langhooks.c (lhd_return_null_tree): New.
8810         * langhooks.h (struct lang_hooks): New hook.
8811         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8812         * tree.h (maybe_build_cleanup): Remove.
8813
8814 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8815
8816         * regrename.c (build_def_use): Move recog_memoized
8817         before extract_insn.
8818
8819 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8820
8821         PR target/6043
8822         * expr.c (emit_group_store): Handle storing into CONCAT.
8823
8824 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8825
8826         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8827         corresponding MATCH_DUP.
8828
8829 2002-03-24  Richard Henderson  <rth@redhat.com>
8830
8831         * unroll.c (unroll_loop): Zero label_map.
8832
8833         * gcse.c: Include except.h.
8834         * Makefile.in (gcse.o): Update.
8835
8836 2002-03-24  Richard Henderson  <rth@redhat.com>
8837
8838         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8839         Do resolve_unique_section before shared data clause.
8840
8841 2002-03-24  Richard Henderson  <rth@redhat.com>
8842
8843         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8844
8845 2002-03-24  Richard Henderson  <rth@redhat.com>
8846
8847         * recog.c (peephole2_optimize): Split blocks when EH insns are
8848         generated in the middle of a block.  Do global life update if
8849         zapped EH edges.
8850
8851 2002-03-24  Richard Henderson  <rth@redhat.com>
8852
8853         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8854
8855 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8856
8857         preprocessor/3951
8858         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8859         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8860         (init_dependency_output): Don't make no_output decision here.
8861
8862 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8863
8864         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8865         warn_switch.  Update description.
8866         (expand_end_case_type): Call check_for_full_enumeration_handling
8867         when warn_switch.
8868
8869 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8870
8871         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8872         (m68hc11_split_move): Call it to see if the source and destination
8873         operands use the same direction auto inc/dec mode, otherwise make the
8874         source an offsetable memory operand and generate an add.
8875
8876 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8877
8878         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8879         register for operand 2.
8880         ("*subsi3_zero_extendqi"): Likewise.
8881         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8882         bits so that it is compatible with a pop.
8883         ("*andhi3_gen"): Likewise.
8884         ("xorhi3"): Likewise.
8885
8886 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8887
8888         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8889         -pedantic here...
8890         (cpp_post_options): ... not here.
8891
8892 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8893             Aldy Hernandez  <aldyh@redhat.com>
8894
8895         Removal of separate preprocessor cpp0.
8896
8897         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8898         cpp0, install-common): Update.
8899         * c-common.c (flag_preprocess_only): New.
8900         (c_common_init): Preprocess for -E.
8901         * c-common.h (flag_preprocess_only): New.
8902         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8903         * c-objc-common.c (c_init_decl_processing): Exit quickly
8904         for NULL return from c_common_init.
8905         * cpplib.h (cpp_preprocess_file): New.
8906         * cppmain.c (main, general_init, pfile, progname): Remove.
8907         (do_preprocessing): Rename cpp_preprocess_file, don't call
8908         cpp_finish.  Don't close stdout here.
8909         (setup_callbacks): Update prototype.
8910         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8911         Update.
8912         * tradcpp.c (main): Ignore -quiet.
8913 objc:
8914         * lang-specs.h (default_compilers): Preprocess with cc1obj.
8915
8916 2002-03-24  Richard Henderson  <rth@redhat.com>
8917
8918         PR optimization/5742
8919         * machmode.def: Add inner mode field to complex modes.
8920         * config/mips/mips.c (mips_function_value): Always define.  Add
8921         new argument to handle libcalls.
8922         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8923         (FUNCTION_VALUE): Likewise.
8924         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8925         * config/mips/mips-protos.h: Update.
8926
8927 2002-03-23  Richard Henderson  <rth@redhat.com>
8928
8929         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8930         * config/sparc/sparc-protos.h: Update.
8931         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8932
8933 2002-03-23  Richard Henderson  <rth@redhat.com>
8934
8935         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8936         _start or _init begins the text segment.
8937
8938 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
8939
8940         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
8941         not HOST_WIDEST_INT.
8942         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8943
8944 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
8945
8946         PR java/5489
8947         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8948         operand argument to output_return_instruction.
8949         * arm.c (arm_print_operand, case 'd'): If the operand is
8950         const_true_rtx then just return.
8951         (arm_print_operand, case 'D'): If the operand is const_true_rtx
8952         then abort.
8953
8954 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8955
8956         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8957         (Warning Options): Document -Wswitch-default.
8958         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
8959         -Wswitch.
8960         (warn_switch_default): Define variable.
8961         (warn_switch): Update comment.
8962         * flags.h (warn_switch_default): Declare variable.
8963         (warn_switch): Update comment.
8964         * stmt.c (expand_end_case): Check for and, when
8965         warn_switch_no_default, warn of a missing default case.
8966
8967 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
8968
8969         * real.h (N): Special case 128 bit doubles.
8970
8971         * combine.c (simplify_comparison): When widening modes, ignore
8972         sign extension on CONST_INTs.
8973
8974 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8975
8976         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8977         passed to adjust_address.  Fix comment formatting.
8978
8979
8980 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
8981
8982         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8983         Always make REAL_VALUE_TYPE a struct containing an array of
8984         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
8985         big it is.  Don't declare or use union real_extract.
8986
8987         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8988         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8989         (print_operand), config/arm/arm.c (output_move_double),
8990         config/arm/arm.md (consttable_4, consttable_8),
8991         config/romp/romp.c (output_fpops), config/s390/s390.h
8992         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8993         (xtensa_output_literal): Don't use union real_extract.
8994
8995         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8996         (sfmode_constant_to_ulong), config/ns32k/merlin.h
8997         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8998         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8999         (PRINT_OPERAND): Don't use local version of union
9000         real_extract.
9001
9002         * config/convex/convex.c (check_float_value), config/vax/vax.c
9003         (vax_float_literal), config/m88k/m88k.md (divdf3),
9004         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
9005         config/pdp11/pdp11.c (output_move_quad): Don't do host
9006         arithmetic on target floating point quantities.
9007
9008         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
9009         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
9010
9011         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
9012         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
9013
9014         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
9015         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
9016         INFINITY.
9017         * print-rtl.c (print_rtx): Disable code which needs
9018         floating-point emulator.
9019         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
9020         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
9021         depending on HOST_FLOAT_FORMAT to be defined properly.
9022
9023         * config/1750a/1750a.c (get_double, float_label): Delete.
9024         (print_operand): Delete huge commented-out chunk.  Use
9025         REAL_VALUE_TO_DECIMAL.
9026         * config/1750a/1750a-protos.h: Delete prototypes of deleted
9027         functions.
9028         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
9029         IEEE_FLOAT_FORMAT.
9030         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
9031         Use REAL_VALUE_TO_DECIMAL as ELF version does.
9032         * config/m88k/m88k.c (real_power_of_2_operand,
9033         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
9034         real_extract out of the union; run the input through
9035         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
9036         from that into the union.
9037         * config/pdp11/pdp11.c (output_move_double): Rearrange
9038         parentheses to make automatic indenter happy.
9039
9040         * doc/tm.texi (Cross-compilation): Rename node to "Floating
9041         Point" and rewrite to describe current situation.  Also adjust
9042         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
9043         match code.
9044         * doc/rtl.texi: Adjust cross reference.
9045
9046 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
9047
9048         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
9049         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
9050         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
9051         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
9052         prevent use of sp as a reload register.
9053         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
9054         non_acc_reg_operand.
9055         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
9056         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
9057         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
9058         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
9059
9060 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9061
9062         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
9063         * cpplex.c (unterminated): Delete.
9064         (parse_string): No string literal may extend over multiple
9065         lines.  Suppress the error when preprocessing assembly.
9066         * cppmain.c (scan_translation_unit): Strings are single-line.
9067
9068         * doc/cpp.texi: Update to match.
9069
9070 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9071
9072         PR optimization/5854
9073         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
9074         Shut up warnings.
9075         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
9076         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
9077         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
9078         const0 if scratch register was not allocated.
9079         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
9080         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
9081         with GEN_INT (...).
9082         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
9083         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
9084         with GEN_INT (...) everywhere.  Remove constraints in define_split
9085         patterns.
9086         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9087         require scratch register for setting 0 into regs/non-pushable memory.
9088
9089 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9090
9091         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9092         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9093
9094 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
9095
9096         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
9097         * cppinit.c (cpp_create_reader):  On by default.
9098         (cpp_handle_option):  Handle -W[no-]endif-labels.
9099         (cpp_post_options):  Also enable if -pedantic.
9100         * cpplib.c (do_else):  Use it.
9101         (do_endif):  Likewise.
9102         * doc/cppopts.texi:  Document new option.
9103         * doc/invoke.texi:  Document new option.
9104
9105 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
9106
9107         * config/i386/i386.c, config/i386/i386.md: Change all occurences
9108         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9109
9110 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9111
9112         * flow.c (calculate_global_regs_live): Clear aux fields of
9113         ENTRY and EXIT.
9114
9115 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9116
9117         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9118         REG or MEM subregs, pass rtx * instead of rtx to it.
9119         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9120         rtx * instead of rtx to alter_subreg.
9121         * config/m32r/m32r.c (gen_split_move_double): Likewise.
9122         * config/pj/pj.c (pj_output_rval): Likewise.
9123
9124 2002-03-22  Richard Henderson  <rth@redhat.com>
9125
9126         PR target/3177
9127         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9128         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9129         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9130         (ia64_expand_prologue): Look at int_regs, not words, for number
9131         of incomming int regs.
9132
9133 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
9134
9135         * expr.c (expand_expr): A RESULT_DECL is part of a call.
9136
9137 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9138
9139         * toplev.c (flag_loop_optimize, flag_crossjumping):
9140         New static variables.
9141         (rest_of_compilation): Conditionalize crossjumping and
9142         loop optimizer.
9143         (parse_options_and_default_flags): Default loop_optimize and
9144         crossjumping.
9145         (lang_independent_options): Add -fcrossjumping and -floop-optimize
9146         * invoke.texi (crossjumping, loop-optimize): Document.
9147
9148 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9149
9150         * real.c (eiisneg): Move outside #ifdef NANS.
9151
9152 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9153
9154         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9155         frequencies match; avoid match on different loop depths.
9156         (try_crossjump_to_bb): Kill tests that no longer brings time
9157         savings.
9158         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9159         updating code.
9160         (split_edge): Likewise.
9161
9162         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9163         variable.
9164
9165         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9166         * cfgrtl.c: Include insn-config.h
9167         (split_block) Dirtify block in presence of conditional execution
9168
9169 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9170
9171         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9172         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9173         (function_arg): Constify CUMULATIVE_ARGS.
9174         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9175         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9176         (UNITS_PER_DOUBLE): New macro.
9177         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
9178         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
9179         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
9180         fp_regs and stack_words.
9181         (EABI_FLOAT_VARARGS_P): New macro.
9182         * config/mips/mips.c (struct mips_arg_info): New.
9183         (mips_arg_info): New function.
9184         (function_arg_advance): Use it.  Add adjustment instructions here
9185         rather than in function_arg.
9186         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
9187         for VOIDmode at the beginning of the function.
9188         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
9189         (function_arg_pass_by_reference): Likewise.
9190         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9191         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9192         (mips_va_start): Likewise.  Use the new stack_words field of
9193         CUMULATIVE_ARGS to set up overflow area.  Reformat.
9194         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
9195         doubles and other types, aligning the overflow pointer for non-doubles
9196         too.  Remove some code duplication.  Replace hard-coded constants.
9197
9198 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9199
9200         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9201         (CLASS_UNITS): Undefine.
9202         (CLASS_MAX_NREGS): Use FP_INC.
9203         * config/mips/mips.c (compute_frame_size): Likewise.
9204         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9205
9206 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9207
9208         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9209         prototype, and handle lexing numbers and identifiers.
9210         (parse_identifier): Update to new form of parse_slow.
9211         (parse_number): Fast path only, use parse_slow otherwise.
9212         (_cpp_lex_direct): Update calls to parse_number.
9213
9214 2002-03-21  DJ Delorie  <dj@redhat.com>
9215
9216         * bb-reorder.c (make_reorder_chain_1): Protect against
9217         when redundant edges are omitted.
9218         * predict.c (dump_prediction): Likewise.
9219
9220 2002-03-21  Richard Henderson  <rth@redhat.com>
9221
9222         PR target/5996
9223         * fixinc/inclhack.def (solaris_stdio_tag): New.
9224         * fixinc/fixincl.x: Regenerate.
9225
9226 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9227
9228         PR c/5597
9229         * c-typeck.c (process_init_element): Flag non-static
9230         initialization of a flexible array member as illegal.
9231
9232 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
9233
9234         * config/rs6000/t-linux64: New.
9235         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9236         t-ppccomm.  Use t-rs6000 and t-linux64.
9237         (powerpc64-*-gnu* <tmake_file>): Likewise.
9238         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9239         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9240         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9241
9242 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
9243
9244         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9245         flag_really_no_inline instead of optimize == 0.
9246
9247         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9248
9249         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9250
9251         * flags.h (flag_really_no_inline): New.
9252
9253         * c-common.c (c_common_post_options): Initialize
9254         flag_really_no_inline.
9255
9256         * toplev.c (flag_really_no_inline): New.
9257
9258 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9259
9260         * config/avr/avr.md (length): Fix length computation for
9261         conditional branches.
9262
9263 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9264
9265         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9266         sdbout.o, profile.o): Update.
9267         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9268         langhook.
9269         * c-common.h (gettags): Move here from tree.h.
9270         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9271         insert_block, getdecls, kept_level_p, global_bindings_p): New.
9272         * dbxout.c (dbxout_init): Use getdecls langhook.
9273         * expr.c (expand_expr): Use insert_block langhook.
9274         * fold-const.c: Include langhooks.h.
9275         (fold_range_test, fold_binary_op_with_conditional_arg,
9276         fold): Use global_bindings_p langhook.
9277         * integrate.c (expand_inline_function): Use insert_block langhook.
9278         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9279         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9280         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9281         LANG_HOOKS_GETDECLS): New.
9282         (LANG_HOOKS_INITIALIZER): Update.
9283         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9284         langhook.
9285         * langhooks.h (struct lang_hooks_for_decls): New.
9286         (struct lang_hooks): Update.
9287         * profile.c: Include langhooks.h.
9288         (output_func_start_profiler): Use new langhooks.
9289         * sdbout.c: Include langhooks.h.
9290         (sdbout_init, sdbout_finish): Use getdecls langhook.
9291         * stmt.c: Include langhooks.h.
9292         (expand_fixup, fixup_gotos): Use new langhooks.
9293         * stor-layout.c: Include langhooks.h.
9294         (variable_size): Use global_bindings_p langhook.
9295         * toplev.c (compile_file): Use getdecls langhook.
9296         * tree-inline.c (remap_block): Use insert_block langhook.
9297         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9298         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9299
9300 2002-03-21  Richard Henderson  <rth@redhat.com>
9301
9302         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9303         constants in .data when -fpic.
9304
9305 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9306
9307         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9308         where appropriate.
9309
9310 2002-03-21  Tom Tromey  <tromey@redhat.com>
9311
9312         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9313
9314 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9315
9316         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9317
9318         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9319
9320 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9321             Richard Henderson  <rth@redhat.com>
9322
9323         PR c/5354
9324         * c-common.c (c_expand_expr): Preserve result of a statement
9325         expression if needed.
9326
9327 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9328
9329         PR bootstrap/4195
9330         * genrecog.c (maybe_both_true_mode): Remove.
9331         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9332         * machmode.def (Pmode): Likewise.
9333
9334 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9335
9336         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9337         (nonlocal_mentioned_p_1): New function.
9338         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9339         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9340         (mark_constant_function): Recognize pure functions.
9341         * rtl.h (global_reg_mentioned_p): New prototype.
9342         * rtlanal.c (global_reg_mentioned_p,
9343         global_reg_mentioned_p_1): New function.
9344
9345 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9346
9347         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9348         UNIX assert.h.
9349         * fixinc/fixincl.x: Regenerate.
9350
9351 2002-03-20  Jason Merrill  <jason@redhat.com>
9352
9353         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9354
9355 2002-03-20  Michael Meissner  <meissner@redhat.com>
9356
9357         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9358         -fstrict-aliasing.
9359
9360 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9361
9362         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9363         ".literal_position" directive before the constant pool.
9364
9365 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9366
9367         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9368         Add Craig Rodrigues.
9369         Add Brad Lucier to testers.
9370
9371 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9372
9373         PR target/4792
9374         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9375         to if_then_else.
9376         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9377         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9378         instead of insn_extract.
9379
9380 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9381
9382         PR bootstrap/4192
9383         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9384
9385         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9386         stmt if some case has been output.
9387
9388 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9389
9390         PR c/5972
9391         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9392         movsfcc_1, movdfcc_1): Add %O2.
9393         * config/i386/i386.c (print_operand): Handle %ON.
9394         Print . before float condition codes in Sun as cmov syntax.
9395         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9396         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9397         no longer true.
9398
9399 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9400
9401         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9402         return instruction if PC was popped.
9403
9404 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9405
9406         * config/xtensa/xtensa.md: Remove unused type attributes.
9407         (adddi_carry, subddi_carry): Change type attribute to "multi".
9408
9409 2002-03-19  Dale Johannesen  <dalej@apple.com>
9410
9411         PR optimization/5999, middle-end/5731
9412         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9413         multiplications by reciprocals.
9414
9415 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9416
9417         * Makefile.in: Update.
9418         * c-common.c: Include langhooks.h.
9419         (inline_forbidden_p): Use new hook.
9420         * diagnostic.c: Include langhooks.h.
9421         (format_with_decl, announce_function,
9422         default_print_error_function): Use new hook.
9423         * dwarf2out.c (dwarf2_name): Use new hook.
9424         * function.c: Include langhooks.h.
9425         (init_function_start): Use new hook.
9426         * langhooks-def.h (lhd_decl_printable_name): New.
9427         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9428         (LANGHOOKS_INITIALIZER): Update.
9429         * langhooks.c (lhd_decl_printable_name): New.
9430         * langhooks.h (struct lang_hooks): New hook.
9431         * toplev.c (decl_name, decl_printable_name): Remove.
9432         (open_dump_file): Use new hook.
9433         (process_options): Remove old hook.
9434         * tree.h (decl_printable_name): Remove.
9435 objc:
9436         * objc-act.c (objc_init): Remove old hook.
9437         (objc_printable_name): Export.
9438         * objc-act.h (objc_printable_name): New.
9439         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9440
9441 2002-03-19  Jim Blandy  <jimb@redhat.com>
9442
9443         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9444         the start_source_file debug hook, not the current line number.
9445
9446 2002-03-19  Richard Henderson  <rth@redhat.com>
9447
9448         * flow.c (EH_USES): Provide default.
9449         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9450         * doc/tm.texi (EH_USES): New.
9451
9452         * config/ia64/ia64.c (ia64_eh_uses): New.
9453         * config/ia64/ia64-protos.h: Update.
9454         * config/ia64/ia64.h (EH_USES): New.
9455
9456 2002-03-19  Richard Henderson  <rth@redhat.com>
9457
9458         * varasm.c (output_constant_def): Fix stupid typo.
9459
9460 2002-03-19  Richard Henderson  <rth@redhat.com>
9461
9462         PR 5879
9463         * except.c (current_function_has_exception_handlers): New.
9464         * except.h: Declare it.
9465         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9466         Combine tests that disable all sibcalls for the function.
9467
9468 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9469
9470         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9471         for INTEGER_CST.
9472
9473 2002-03-19  Richard Henderson  <rth@redhat.com>
9474
9475         PR 5977, 5991
9476         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9477         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9478
9479 2002-03-19  Jim Blandy  <jimb@redhat.com>
9480
9481         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9482         name, even if the replacement list contains no tokens, as required
9483         by Dwarf.
9484
9485 2002-03-19  Jason Merrill  <jason@redhat.com>
9486
9487         * varasm.c (globalize_decl): Get the name from the RTL, not
9488         DECL_ASSEMBLER_NAME.
9489
9490         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9491
9492 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9493
9494         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9495         subdi_carry): Define.
9496
9497 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9498
9499         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9500         about -fpic/-fPIC if extra_warnings set.
9501
9502 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9503
9504         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9505         TREE_STRING_POINTER.
9506         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9507
9508 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9509
9510         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9511         in favor of SP if FRAME_POINTER_REQUIRED is false.
9512
9513 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9514
9515         * emit-rtl.c (gen_int_mode): New function.
9516         * rtl.h: Prototype for it.
9517         * combine.c (make_extraction, simplify_comparison), expmed.c
9518         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9519         (convert_modes, store_field), optabs.c (expand_fix),
9520         simplify-rtx.c (neg_const_int, simplify_unary_real),
9521
9522         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9523         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9524
9525 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9526
9527         PR c/5656
9528         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9529         convert_parm_for_inlining.
9530         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9531         Define.
9532         * langhooks-def.h: Likewise.
9533         * objc/objc-lang.c: Likewise.
9534         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9535         function.
9536         * tree-inline.c (initialize_inlined_parameters):
9537         Call convert_parm_for_inlining lang hook if needed.
9538         * c-typeck.c (c_convert_parm_for_inlining): New function.
9539         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9540
9541 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9542
9543         * calls.c (precompute_arguments): Do not assume that temporaries
9544         can be destroyed after expanding the argument.
9545         (expand_call): Likewise.
9546
9547 2002-03-15  Eric Christopher  <echristo@redhat.com>
9548
9549         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9550         Fix register preference on last change.
9551         * config/mips/mips.c (mips_return_in_memory): New function.
9552         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9553         * config/mips/mips-protos.h: Declare.
9554         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9555         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9556
9557 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9558
9559         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9560         a register too.
9561         (anddi3, iorsi3): Likewise.
9562
9563         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9564         use %gprel for symbols that are going to be placed in linkonce
9565         sections.
9566
9567         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9568         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9569         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9570         not needed.  Disregard leaf_function_p().
9571         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9572         mips16 frame pointer.
9573         * config/mips/mips.md (store ra): Only to small SP offsets.
9574         2001-08-22  Graham Stott  <grahams@redhat.com>
9575         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9576         return a REG rtx for the return address register.
9577
9578 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9579
9580         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9581         constant-pool addresses as "mode-dependent".
9582         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9583
9584 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9585
9586         PR target/5740
9587         * expr.c (emit_group_load): Use extract_bit_field if
9588         needed for CONCAT arguments.
9589
9590 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9591
9592         PR target/4863
9593         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9594         offset to the base of the table.
9595         (thumb_tablejump): Matcher for Thumb tablejump insn.
9596         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9597         as the difference of two labels.
9598         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9599         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9600         tables in the code.
9601         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9602         * arm.c (get_jump_table_size): If the table is not in the text
9603         section, return zero.
9604
9605 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9606
9607         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9608         of gen_rtx_SUBREG.
9609         (arm_reload_out_hi): Use gen_lowpart instead of
9610         gen_rtx_SUBREG to access QImode components.
9611         * config/arm/arm.md: Disable zero_extend split for QImode
9612         subregs in BIG_ENDIAN mode.
9613         (storehi_bigend): Match use of least significant byte.
9614         (storeinthi): Remove extraneous SUBREG.
9615         Add missing construction of operands[2].
9616         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9617         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9618         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9619
9620 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9621
9622         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9623         any_operand.
9624
9625 2002-03-17  Richard Henderson  <rth@redhat.com>
9626
9627         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9628         explicitly.
9629
9630 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9631
9632         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9633         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9634
9635 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9636
9637         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9638
9639         * predict.c (estimate_bb_frequencies): Delete unused variables.
9640
9641 2002-03-17  Richard Henderson  <rth@redhat.com>
9642
9643         * config/ia64/ia64.c (ia64_attribute_table): Move before
9644         targetm definition.  Make static.
9645
9646 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9647
9648         * c-common.h (yyparse, c_common_parse_file): New.
9649         * c-lang.c: Include c-common.h.
9650         (LANG_HOOKS_PARSE_FILE): Redefine.
9651         * c-lex.c: Include c-common.h.
9652         (yyparse): Rename c_common_parse_file.  Call yyparse.
9653         * c-parse.in (yyparse): Remove macro.
9654         * c-tree.h (yyparse_1): Remove.
9655         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9656         (LANG_HOOKS_INITIALIZER): Update.
9657         * langhooks.h (struct lang_hoooks): New hook parse_file.
9658         * toplev.c (compile_file): Use parse_file hook.
9659         * tree.h (yyparse): Remove.
9660         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9661
9662 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9663
9664         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9665         float_truncate, not fix.
9666         ("*truncdfsf2_real"): Ditto.
9667         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9668
9669         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9670
9671 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9672
9673         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9674         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9675         where appropriate.  Make the second reference to
9676         leaf_function_p a function call, as intended.  Reindented.
9677
9678         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9679         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9680
9681         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9682         add register to non-constant into sp.
9683
9684         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9685         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9686         (mips16_gp_pseudo_rtx): Lose.
9687         (INIT_EXPANDERS): Deleted.
9688         * config/mips/mips.c (mips_init_machine_status): New.
9689         (mips_free_machine_status): New.
9690         (mips_mark_machine_status): New.
9691         (override_options): Set them.
9692         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9693         (struct machine_function): ... new.  Replaced all references.
9694         (mips_add_gc_roots): Don't mark them.
9695         (embedded_pic_fnaddr_reg): New, extracted from...
9696         (embedded_pic_offset): ... here.
9697         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9698         (movsi): Likewise.
9699
9700 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9701
9702         * cppinit.c: Revert -MD removal.
9703
9704 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9705
9706         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9707         soft registers by default for 68HC12.
9708         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9709         when compiling with -fomit-frame-pointer.
9710         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9711         (expand_epilogue): Likewise.
9712         (m68hc11_gen_rotate): Use exg when rotating by 8.
9713
9714 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9715
9716         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9717         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9718         (splits): Remove unused add splits.
9719         ("*addhi3_68hc12"): Tune constraints.
9720         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9721         constant fits in 8-bits and D is dead use abx/aby instructions.
9722         ("*addhi3"): Remove extern declaration of ix_reg.
9723         ("*subsi3"): Optimize and provide new split.
9724         ("subhi3"): Cleanup.
9725         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9726         (arith splits): For 68hc12 save the address register on the stack
9727         and do the arithmetic operation with a pop.
9728
9729 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9730
9731         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9732         allocating QImode in address registers.
9733         ("*movqi_m68hc11"): Likewise.
9734
9735 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9736
9737         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9738
9739 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9740
9741         * cppinit.c (print_help): Display -MD and -MMD.
9742         Don't display usage string.  Update assertion syntax and
9743         typo.
9744         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9745         (cpp_handle_option): Update.
9746
9747 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9748
9749         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9750         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9751         and define it so that regardless of target CPU size,
9752         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9753         of "int" rather than "long."
9754
9755 2002-03-15  Richard Henderson  <rth@redhat.com>
9756
9757         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9758         size as a tree.
9759
9760 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9761
9762         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9763         ("tstqi" split): Avoid using memory for tstqi on address register.
9764         (splits): Remove constraints.
9765         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9766         ("cmpdf", "cmpsf"): Remove since not used.
9767         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9768         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9769
9770 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9771
9772         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9773         ("neghi2"): Tighten constraints.
9774         ("one_cmplsi2"): Optimize and simplify split.
9775         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9776
9777 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9778
9779         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9780         and split of AND operation to clear the upper bits.
9781         ("*logicalsi3_zextqi"): Likewise.
9782         ("*logicallhi3_zexthi_ashift8"): Likewise.
9783         ("*logicalsi3_silshr16"): Likewise.
9784         ("logicalsi3_silshl16"): Likewise.
9785         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9786
9787 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9788
9789         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9790         (m68hc11_indirect_p): New function.
9791         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9792         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9793         TARGET_M6812.
9794         (asm_print_register): Likewise.
9795         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9796         (m68hc11_indirect_p): Declare.
9797         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9798         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9799         (TARGET_SWITCHES): New option -mrelax.
9800         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9801         destination.
9802         ("iorsi3", "xorsi3"): Likewise.
9803         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9804         ("*andhi3_mem"): New to handle destination in memory with bclr
9805         and a scratch register.
9806         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9807         ("*andhi3_const"): New when operand2 is constant.
9808         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9809         ("*andhi3_gen"): Cleanup of the old "andhi3".
9810         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9811         ("xorqi3"): Update constraints.
9812
9813 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9814
9815         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9816         for reg_equiv_memory_loc when the operand is a register that does
9817         not get a hard register (stack location).
9818         (tst_operand): After reload, accept all memory operand.
9819         (symbolic_memory_operand): Fix detection of symbolic references.
9820         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9821         accept symbols and any constant.
9822
9823 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9824
9825         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9826         note on the insn that sets the soft frame register.
9827         (must_parenthesize): ix and iy are also reserved names.
9828         (print_operand_address): One more place where parenthesis are required
9829         to avoid confusion with register names.
9830         (m68hc11_gen_movhi): Allow push of stack pointer.
9831         (m68hc11_check_z_replacement): Fix handling of parallel with a
9832         clobber.
9833         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9834         the replacement register is.
9835         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9836         and D8_REGS classes.
9837         (MODES_TIEABLE_P): All modes are tieable except QImode.
9838
9839 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9840
9841         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9842         (___subdi3): Likewise.
9843         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9844         (__map_data_section): Optimize 68hc11 case.
9845
9846 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9847
9848         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9849         than a shift to avoid adding a register with itself.
9850         (m68hc11_memory_move_cost): Take into account NO_REGS.
9851         (m68hc11_register_move_cost): Update and use memory move cost
9852         for soft registers.
9853         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9854         it gives more opportunities to cse to optimize.
9855         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9856         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9857
9858 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9859
9860         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9861         * c-common.def (CLEANUP_STMT): New tree node.
9862         * c-common.h (CLEANUP_DECL): New macro.
9863         (CLEANUP_EXPR): Likewise.
9864         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9865         * expr.c (expand_expr): Tidy.
9866         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9867         * tree-inline.c (initialize_inlined_parameters): Clean up
9868         new local variables.
9869
9870 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9871
9872         PR bootstrap/4128
9873         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9874         before movrXX only, use reg_overlap_mentioned_p.
9875         Only special case NE if just one insn can be generated.
9876
9877 2002-03-15  Jason Merrill  <jason@redhat.com>
9878
9879         * varasm.c (assemble_variable): Call resolve_unique_section before
9880         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9881         of error_mark_node.
9882
9883 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9884
9885         PR target/5170
9886         * arm.md (split pattern for thumb shiftable immediates): Add comment
9887         explaining non-obvious test.
9888
9889 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9890
9891         PR target/5712
9892         * arm.md (movaddr, movaddr_insn): Delete.
9893
9894 2002-03-15  Jason Merrill  <jason@redhat.com>
9895
9896         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9897         -fkeep-static-consts doesn't apply to comdats.
9898
9899 2002-03-14  Richard Henderson  <rth@redhat.com>
9900
9901         * c-decl.c: Include c-pragma.h.
9902         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9903         (finish_function): Tidy.
9904         * c-pragma.c: Include c-common.h.
9905         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9906         (handle_pragma_weak): Use them.
9907         (init_pragma): Register pending_weaks.
9908         * c-pragma.h (maybe_apply_pragma_weak): Declare.
9909         * print-tree.c (print_node): Print DECL_WEAK.
9910         * varasm.c (mark_weak_decls): Remove.
9911         (remove_from_pending_weak_list): Remove.
9912         (add_weak): Remove.
9913         (asm_emit_uninitialised): Call globalize_decl for weak commons.
9914         (weak_decls): Make a tree_list.
9915         (declare_weak): Cons weak_decls directly.
9916         (globalize_decl): Remove weak_decls elements directly.
9917         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
9918         symbols.  Don't pretend to handle aliases.
9919         (init_varasm_once): Update weak_decls registry.
9920         * Makefile.in: Update dependencies.
9921
9922 2002-03-14  Richard Henderson  <rth@redhat.com>
9923
9924         PR target/5312
9925         * config/ia64/ia64.c: Include tm_p.h last.
9926         (gen_nop_type): Remove duplicate definition.
9927         (cycle_end_fill_slots): Set sched_data for second L slot.
9928         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9929         (nop_cycles_until): Fix typos.
9930
9931 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9932
9933         PR optimization/5891
9934         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9935
9936 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9937
9938         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9939           descriptors correctly.
9940
9941 2002-03-14  Michael Meissner  <meissner@redhat.com>
9942
9943         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9944         100, allowing MAX_UNROLLED_INSNS to be overridden.
9945
9946         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9947         --param.
9948
9949         * unroll.c (params.h): Include.
9950         (MAX_UNROLLED_INSNS): Delete, now in params.h.
9951
9952         * doc/invoke.texi (--param max-unroll-insns): Document.
9953
9954         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9955
9956 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9957
9958         * arm.md: Fix warnings about constraints in peepholes and splits.
9959
9960 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
9961
9962         * cpphash.h (struct lexer_state): Remove line_extension member.
9963         * cpplib.c (dequote_string, do_linemarker): New functions.
9964         (linemarker_dir): New data object.
9965         (DIRECTIVE_TABLE): No longer need to interpret #line in
9966         preprocessed source.  Delete obsolete comment about return
9967         values of handlers.
9968         (end_directive, directive_diagnostics, _cpp_handle_directive):
9969         Don't muck with line_extension.
9970         (directive_diagnostics): No need to issue warnings for
9971         linemarkers here.
9972         (_cpp_handle_directive): Issue warnings for linemarkers here,
9973         when appropriate.  Dispatch linemarkers to do_linemarker, not
9974         do_line.
9975         (do_line): Code to handle linemarkers split out to do_linemarker.
9976         Convert escape sequences in filename argument, both places.
9977
9978         * cppmacro.c (quote_string): Rename cpp_quote_string and
9979         export.  All callers changed.
9980         * cpplib.h (cpp_quote_string): Prototype.
9981         * cppmain.c (print_line): Call cpp_quote_string on to_file
9982         before printing it.
9983
9984         * doc/cpp.texi: Document that escapes are now interpreted in
9985         #line and in linemarkers, and that non-printing characters are
9986         converted to octal escapes when linemarkers are generated.
9987
9988 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9989
9990         * emit-rtl.c (try_split): Use delete_insns.
9991         * recog.c (split_all_insns): Fix terminating condition.
9992
9993 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9994             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9995
9996         PR target/5828
9997         * arm.c (arm_output_epilogue): Fix floating-point register save
9998         adjustment when using a frame pointer.
9999
10000 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
10001
10002         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
10003         * config/mips/mips.c (compute_frame_size): Retrofit them here.
10004         (save_restore_insns, mips_expand_epilogue): And here.
10005         (build_mips16_call_stub): And here.
10006         (mips_function_value): Use the new macros to decide whether a single
10007         or complex float can be returned in floating-point registers.  Return
10008         a parallel rtx in the complex case.
10009
10010 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
10011
10012         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
10013         call after liveness analysis.
10014
10015         * recog.c (split_insn): Use delete_insn_and_edges.
10016
10017         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
10018         instructions to have branch prediction notes.
10019         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
10020
10021 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
10022
10023         * configure.in: Don't pass -Wno-long-long to a ADA compiler
10024         that doesn't support it.
10025         * configure: Regenerate.
10026
10027 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10028
10029         PR target/5626
10030         * config/sparc/sparc.md (normal_branch, inverted_branch,
10031         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
10032         inverted_fp_branch): Adjust calls to output_cbranch.
10033         Set length attribute.
10034         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
10035         output_v9branch.  Set length attribute.
10036         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
10037         predicates.
10038         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
10039         (output_cbranch): Likewise.  Handle far branches.
10040         (output_v9branch): Handle far branches.
10041         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
10042         Adjust prototypes.
10043         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
10044         noov_compare64_op predicates.
10045
10046 2002-03-13  Jason Merrill  <jason@redhat.com>
10047
10048         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
10049         into the function and constify it.
10050         * gthr-dce.h, gthr-solaris.h: Likewise.
10051
10052 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
10053
10054         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
10055         * config/rs6000/rs6000.c (rs6000_va_arg): Use
10056         std_expand_builtin_va_arg if not ABI_V4.
10057
10058 2002-03-13  Jason Merrill  <jason@redhat.com>
10059
10060         * varasm.c (globalize_decl): New fn.
10061         (assemble_start_function): Use it.
10062         (asm_emit_uninitialized): Use it.
10063         (assemble_alias): Use it.
10064         (assemble_variable): Use it.
10065
10066 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
10067
10068         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
10069         2002-03-12 internal visibility change.
10070         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
10071         visibility into SYMBOL_REF_FLAG.
10072
10073 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
10074
10075         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
10076         VOIDmode operand.  Add compile-time optimization for constant results.
10077
10078 2002-03-12  Jason Merrill  <jason@redhat.com>
10079
10080         * c-typeck.c (convert_for_assignment): Don't allow conversions
10081         between pointers and references.  Only allow lvalues to convert to
10082         reference.
10083
10084 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
10085
10086         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10087         before prologue, to avoid scheduling problems.
10088
10089 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10090
10091         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10092         (ELIMINABLE_REGS): Add sfp->sp.
10093         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10094
10095 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10096
10097         PR optimization/5892
10098         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10099
10100 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10101
10102         * loop.c (basic_induction_var): Don't call convert_modes if mode
10103         classes are different.
10104
10105 2002-03-12  Richard Henderson  <rth@redhat.com>
10106
10107         PR optimization/5901
10108         * function.c (reposition_prologue_and_epilogue_notes): Position
10109         the markers after/before the last/first insn not deleted.
10110
10111 2002-03-12  Richard Henderson  <rth@redhat.com>
10112
10113         PR optimization/5878
10114         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10115         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10116         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10117
10118         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10119         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10120         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10121
10122         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10123         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10124         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10125         also.  Don't set it if not flag_pic.
10126         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10127         to be INVALID_REGNUM when not used.
10128
10129 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
10130
10131         * expmed.c (store_bit_field): Reset alias set for memory.
10132         (extract_bit_field): Same.
10133
10134 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10135
10136         * c-common.c (c_tree_code_type, c_tree_code_length,
10137         c_tree_code_name, add_c_tree_codes): Delete.
10138         * c-common.h (add_c_tree_codes): Delete.
10139         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10140         Define.
10141         * c-objc-common.c (c_objc_common_init): Don't call
10142         add_c_tree_codes, instead set lang_unsafe_for_reeval.
10143         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10144         objc_tree_code_name, add_objc_tree_codes): Delete.
10145         (objc_init): Don't call add_objc_tree_codes.
10146         * objc/objc-lang.c (tree_code_type, tree_code_length,
10147         tree_code_name): Define.
10148         * toplev.c (lang_independent_init): Don't set
10149         tree_code_length[IDENTIFIER_NODE].
10150         * tree.c (tree_code_type, tree_code_length, tree_code_name):
10151         Delete definitions, moved to language front-ends.
10152         * tree.def (IDENTIFIER_NODE): Hardwire the length.
10153         * tree.h (tree_code_type, tree_code_length, tree_code_name):
10154         Const-ify.
10155         (tree_code_length): Change type to unsigned char.
10156
10157 2002-03-12  Richard Henderson  <rth@redhat.com>
10158
10159         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10160         internal visibility change.
10161
10162 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10163
10164         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10165         validize_mem() instead of change_address to avoid clobbering
10166         memory attributes.
10167
10168 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10169
10170         * c-lex.h (position_after_whitespace): Remove.
10171
10172 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
10173
10174         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10175         (lex_string): Use unsigned char pointers.
10176
10177 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10178
10179         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10180         is not a valid memory_operand.
10181
10182 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10183
10184         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10185         * config/xtensa/lib1funcs.asm: Fix copyright to include
10186         special case for libgcc files.
10187         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10188         (__divsi3): Likewise.
10189         (__umodsi3): Likewise.
10190         (__modsi3): Likewise.
10191         * config/xtensa/lib2funcs.S: Fix copyright to include
10192         special case for libgcc files.
10193
10194 2002-03-12  Tom Rix  <trix@redhat.com>
10195
10196         * collect2.c (resolve_lib_name): Move outside of
10197         OBJECT_FORMAT_COFF ifdef.
10198         (ignore_library): Same.
10199
10200 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10201
10202         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10203
10204 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10205
10206         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10207         to function_section before writing out the constant pool.
10208
10209 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
10210
10211         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10212         zero_constant.
10213         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10214
10215 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
10216
10217         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10218         (adddi3): Likewise.
10219         (movdf): Likewise.
10220         (movdi): Likewise.
10221         (cmpsi splitter): Likewise.
10222         (modsi3): Fail if <= 0.
10223         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10224         redundant test when HOST_BITS_PER_WIDE_INT != 32.
10225         (reg_or_sub_cint64_operand): Likewise.
10226         (num_insns_constant_wide): Optimize sign extension.
10227         (rs6000_legitimize_address): Likewise.
10228
10229 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10230
10231         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10232         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10233
10234 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10235
10236         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10237         address calculation.
10238
10239 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10240
10241         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10242         scratch register to DImode / TImode.
10243         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10244         register used does not overlap the target.
10245
10246 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10247
10248         * Makefile.in (debug.o): Depend on debug.h.
10249         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10250         * debug.c (do_nothing_debug_hooks): Likewise.
10251         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10252         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10253         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10254         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10255         * dwarfout.c (dwarf_debug_hooks): Likewise.
10256         * integrate.c (output_inline_function): Likewise.
10257         * objc/objc-act.c (synth_module_prologue): Likewise.
10258         * sdbout.c (sdb_debug_hooks): Likewise.
10259         * toplev.c (debug_hooks): Likewise.
10260         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10261
10262 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10263
10264         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10265         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10266         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10267         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10268         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10269         * defaults.h (POINTER_SIZE): Define.
10270         * doc/tm.texi (POINTER_SIZE): Document default.
10271
10272 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10273
10274         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10275
10276 2002-03-11  Richard Henderson  <rth@redhat.com>
10277
10278         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10279         if rebuild_label_notes_after_reload.
10280
10281 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
10282
10283         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
10284         emit pic register load if "internal" visibility.
10285         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10286         (cris_expand_builtin_va_arg): Do all computations on trees.
10287
10288 2002-03-11  Richard Henderson  <rth@redhat.com>
10289
10290         * rtlanal.c: Include recog.h.
10291         (keep_with_call_p): Fix thinko.
10292         * Makefile.in (rtlanal.o): Update dependencies.
10293
10294 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10295
10296         * genflags.c (gen_insn): Use IS_VSPACE.
10297         * genoutput.c (output_insn_data): Likewise.
10298         (process_template): Likewise.
10299
10300 2002-03-11  Richard Henderson  <rth@redhat.com>
10301
10302         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10303
10304 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10305
10306         * Makefile.in: Update.
10307         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10308         Update documentation.
10309         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10310         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10311
10312 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10313
10314         * Makefile.in: Give texi2pod its input file as a command line
10315         argument, not on stdin.
10316
10317 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10318             Daniel Berlin  <dan@dberlin.org>
10319
10320         C++ alias analysis improvement.
10321         * alias.c (record_component_aliases): Record aliases for base
10322         classes too.
10323
10324 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10325
10326         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10327
10328 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10329
10330         * toplev.c (vms_fopen): Remove, not needed.
10331
10332         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10333
10334         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10335
10336         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10337         for FP, already done later.
10338
10339         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10340         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10341
10342 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10343
10344         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10345         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10346         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10347         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10348         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10349         (ediv, emul, eldexp, esqrt): Likewise.
10350         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10351         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10352         (saturate): New function.
10353         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10354         (make_nan): Use a saturation value instead of a NaN if
10355         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10356         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10357         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10358         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10359         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10360         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10361         !ROUND_TOWARDS_ZERO.
10362         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10363         (ROUND_TOWARDS_ZERO): Document.
10364
10365 2002-03-11  Andreas Jaeger  <aj@suse.de>
10366
10367         * cfg.c (dump_flow_info): Remove unused variable.
10368
10369 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10370
10371         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10372         computations on trees.
10373
10374 2002-03-10  Richard Henderson  <rth@redhat.com>
10375
10376         PR 5693:
10377         * reload.c (copy_replacements_1): New.
10378         (copy_replacements): Use it to recurse through the rtx.
10379
10380 2002-03-10  Richard Henderson  <rth@redhat.com>
10381
10382         * loop.c (strength_reduce): Compute number of iterations as
10383         unsigned HOST_WIDE_INT.
10384
10385 2002-03-10  Richard Henderson  <rth@redhat.com>
10386
10387         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10388         to move away from the end of the block.
10389
10390 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10391
10392         PR preprocessor/5899
10393         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10394
10395 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10396
10397         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10398
10399         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10400
10401 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10402
10403         * config/mmix/mmix.c: Improve comments.
10404         (mmix_target_asm_function_prologue): Drop variable
10405         empty_stack_frame.  Don't allocate unused slot above fp.
10406         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10407         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10408         brace in first column.
10409         (enum reg_class): Ditto.
10410         (FIRST_PARM_OFFSET): Now 0.
10411         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10412
10413 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10414
10415         * combine.c (make_extraction): Fix error in last change.
10416
10417 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10418
10419         * c4x.c (c4x_fp_reglist): Const-ify.
10420         * cris.c (cris_print_operand): Likewise.
10421         * i386.c (ix86_va_arg): Likewise.
10422         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10423         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10424         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10425         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10426         * mcore.h (regno_reg_class): Likewise.
10427         * mips.c (gen_int_relational): Likewise.
10428         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10429         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10430         * pdp11.c (move_costs): Likewise.
10431         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10432         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10433         Likewise.
10434         * s390.h (regclass_map): Likewise.
10435         * sh.c (shift_amounts): Likewise.
10436         * sh.md (rotlsi3): Likewise.
10437
10438 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10439
10440         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10441         (ne0+5): Use new clobber to generate proper shift pattern.
10442         Patch by Michael Matz <matz@kde.org>.
10443
10444 2002-03-09  Andreas Schwab  <schwab@suse.de>
10445
10446         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10447
10448 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10449
10450         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10451
10452 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10453
10454         PR middle-end/5877
10455         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10456         even for non-representable constants.
10457
10458 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10459
10460         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10461         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10462         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10463         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10464         (pop_function_context): Compute MAY_SHARE parameter for
10465         fixup_var_refs.
10466         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10467         (gen_mem_addressof): Call fixup_var_refs with new parm.
10468
10469         * combine.c (make_extraction): Don't make extension of CONST_INT.
10470
10471 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10472
10473         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10474         in o32 and o64 ABIs.
10475         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10476         but getting fixed-size structs passed in registers regardless of
10477         padding in o32 and o64 ABIs.
10478
10479         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10480         offset before loading address of argument passed by transparent
10481         reference.
10482
10483 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10484
10485         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10486
10487 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10488
10489         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10490         marker such that registers after it are saved.
10491
10492 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10493
10494         * sparc.c (arith_4096_operand): Fix error in last change.
10495
10496 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10497
10498         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10499         defaults for MEABI.
10500
10501 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10502
10503         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10504         vectors.
10505
10506 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10507
10508         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10509
10510 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10511
10512         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10513         removed; fix return value.
10514         * combine.c (combine_instructions): Dirtify blocks where we failed to
10515         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10516         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10517
10518 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10519
10520         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10521
10522 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10523
10524         * recog.c (peephole2_optimize): Re-distribute EH edges.
10525
10526 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10527
10528         * expr.c (expand_expr): Use unsave lang hook.
10529         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10530         (LANG_HOOKS_INITIALIZER): Update.
10531         * langhooks.h (struct lang_hooks): New hook unsave.
10532         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10533         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10534         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10535         (unsave_expr_now): Remove.
10536         * tree.h (unsave_expr_now, lang_unsave,
10537         lang_unsave_expr_now): Remove.
10538         (lhd_unsave): New.
10539
10540 2002-03-08  Andreas Jaeger  <aj@suse.de>
10541
10542         * flow.c (propagate_block_delete_insn): Remove unused variable.
10543
10544 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10545
10546         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10547         insn length for memory load/store.
10548
10549 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10550
10551         * doc/install.texi (--with-libiconv-prefix): Document.
10552
10553 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10554
10555         * doc/sourcebuild.texi: Fix typo.
10556
10557 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10558
10559         PR c/3711
10560         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10561         trees.
10562
10563 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10564
10565         * rtl.c (copy_most_rtx): Move from here ...
10566         * emit-rtl.c (copy_most_rtx): ... to here.
10567
10568 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10569
10570         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10571         SUBTARGET_CPP_SIZE_SPEC.
10572         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10573
10574         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10575
10576 2002-03-07  Matt Hiller  <hiller@redhat.com>
10577
10578         * gensupport.c (first_dir_md_include): Renamed from include;
10579         change all references.
10580         (last_dir_md_include): Renamed from last_include; change all
10581         references.
10582         (init_md_reader): Unconditionally initialize base_dir whether or
10583         not filename is a relative path.
10584
10585 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10586
10587         * config/fp-bit.c (_unord_f2): Compile it in even if
10588         US_SOFTWARE_GOFAST is enabled.
10589
10590         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10591         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10592         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10593         NULL_RTX, try reversing the comparison and the operands.
10594
10595 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10596
10597         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10598         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10599         and MATCH_OP_DUP.
10600
10601 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10602
10603         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10604
10605 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10606
10607         * basic-block.h (fixup_abnormal_edges): Declare.
10608         * reload1.c (fixup_abnormal_edges): New function.
10609         * reg-stack.c (convert_regs): Use it.
10610
10611         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10612
10613         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10614
10615 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10616
10617         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10618         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10619         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10620         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10621         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10622         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10623         unless x and y could be infinite.
10624         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10625         Check that the common type of both arguments is a real, even for
10626         targets without unordered comparisons.  Allow an integer argument
10627         to be compared against a real.
10628         (expand_tree_builtin): Use expand_unordered_cmp.
10629         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10630         * cse.c (fold_rtx): Likewise.  Fix indentation.
10631         * fold-const.c (fold_real_zero_addition_p): New.
10632         (fold): Use it, and the new HONOR_... macros.
10633         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10634         * jump.c (reversed_comparison_code_parts): After searching for
10635         the true comparison mode, use HONOR_NANS to decide whether it
10636         can be safely reversed.
10637         (reverse_condition_maybe_unordered): Remove IEEE check.
10638         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10639         to decide which simplifications are valid.  Allow the following
10640         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10641         and (a - -b) to (a + b).
10642         (simplify_relational_operation): Use HONOR_NANS.
10643         * doc/tm.texi: Document the MODE_HAS_... macros.
10644
10645 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10646
10647         * combine.c (simplify_comparison): If simplifying a logical shift
10648         right and compare with constant, force the comparison to unsigned.
10649
10650 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10651
10652         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10653
10654         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10655         -mabi=no-altivec
10656         (alt_reg_names): Remove % for vrsave.
10657
10658 2002-03-06  Richard Henderson  <rth@redhat.com>
10659
10660         PR optimization/5844
10661         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10662         if used indicates we've already emitted one copy of an operand.
10663         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10664         (gen_split): Supply a non-null used.
10665
10666 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10667
10668         * reload1.c (reload): Unshare all rtl after reload is done.
10669
10670         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10671         but simply fail if the expression is too complex to simplify.
10672         (simplify_gen_binary): Handle simplify_plus_minus failures.
10673
10674 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10675
10676         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10677         consistently call delete_trivially_dead_insns after CSE and GCSE;
10678         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10679         after liveness2; update comment in last crossjumping.
10680         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10681
10682 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10683
10684         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10685         after completing fast dead code elimination.
10686
10687         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10688         COMPARE operator.
10689
10690 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10691
10692         * version.c:  Fix misplaced leading blanks on first line.
10693
10694 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10695
10696         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10697
10698 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10699
10700         * cfgcleanup.c (mentions_nonequal_regs): New function.
10701         (thread_jump): Use it.
10702         * toplev.c (rest_of_compilation): Run jump threading after
10703         liveness.
10704
10705 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10706
10707         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10708         patch.
10709
10710 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10711
10712         * predict.c (estimate_bb_frequencies): Do not reload the
10713         frequencies from notes.
10714
10715 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10716
10717         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10718         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10719
10720         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10721         delete_noop_moves): Return indeger.
10722         * flow.c (ndead): New variable.
10723         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10724         BB argument; update callers.
10725         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10726         (life_analysis): Do not call purge_all_dead_edges.
10727         (update_life_info): Return number of deleted insns; print statistics.
10728         (update_life_info_in_dirty_blocks): likewise.
10729         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10730         return number of insns deleted.
10731
10732         * cse.c: Include timevar.h
10733         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10734         iterate until stabilizes; print statistics; return number of killed
10735         insns.
10736         * Makefile.in: (cse.o): Add timevar.h dependency
10737         * rtl.h (delete_trivially_dead_insns): New.
10738         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10739         * toplev.c (rest_of_compilation): Update callers.
10740
10741         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10742         (try_optimize_cfg): Do not update liveness.
10743         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10744         removal stabilizes; use delete_trivially_dead_insns.
10745
10746         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10747
10748 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10749
10750         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10751         callbacks when processing assembly language.
10752
10753 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10754
10755         * pa.h (ASM_FILE_END): Define.
10756         * som.h (ASM_FILE_END): Delete.
10757
10758         * pa.c (function_arg): Don't pass floats in general registers in
10759         indirect calls if TARGET_ELF32.
10760
10761 2002-03-05  Richard Henderson  <rth@redhat.com>
10762
10763         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10764
10765 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10766
10767         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10768
10769 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10770
10771         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10772         -r command line.  Don't hide any symbols if not building
10773         shared libgcc.
10774
10775 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10776
10777         * cfg.c (dump_flow_info): Warn about profile mismatches.
10778         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10779         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10780
10781 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10782
10783         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10784         wide volatile memory by parts.
10785
10786 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10787
10788         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10789         is NULL.
10790
10791 2002-03-05  Richard Henderson  <rth@redhat.com>
10792
10793         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10794
10795 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10796
10797         * toplev.c (documented_lang_options): Document more
10798         language-specific options.
10799         * doc/invoke.texi (Warning Options): Correct documentation for
10800         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10801         * c-decl.c (c_decode_option): Use a table to handle warning options.
10802
10803 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10804
10805         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10806         parameter to mmix_encode_section_info.
10807         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10808         relocatably.  Always produce ELF, not mmo if linking relocatably.
10809         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10810         first is non-zero, don't add symbol prefix.
10811         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10812         prototype accordingly.
10813
10814 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10815
10816         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10817
10818 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10819
10820         * configure.in: Increase required makeinfo version to 4.1.
10821         * configure: Regenerate.
10822
10823 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10824
10825         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10826         elsewhere now.
10827
10828 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10829
10830         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10831         * doc/invoke.texi: Fix @math uses.
10832
10833 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10834
10835         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10836         removal
10837
10838 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10839
10840         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10841         (powerpc-*-eabisimaltivec*): Same.
10842
10843         * config/rs6000/t-ppcendian: New.
10844
10845 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10846
10847         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10848         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10849         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10850
10851 2002-03-03  Richard Henderson  <rth@redhat.com>
10852
10853         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10854
10855 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10856
10857         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10858         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10859         tree.c, config/m68k/m68k.c:
10860         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10861         REAL_ARITHMETIC blocks unconditional.  Delete some further
10862         #ifdef blocks predicated on REAL_ARITHMETIC.
10863         * flags.h, toplev.c: Delete remaining references to
10864         flag_pretend_float.
10865
10866         * doc/invoke.texi: Remove documentation of -fpretend-float.
10867         * doc/tm.texi: Describe the various REAL_* macros as provided by
10868         real.h, not by the target configuration files.
10869
10870         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10871         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10872         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10873         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10874         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10875         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10876         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10877         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10878         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10879         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10880         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10881         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10882         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10883         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10884         config/xtensa/xtensa.h:
10885         Do not define, undefine, or mention in comments any of
10886         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10887         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10888         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10889         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10890         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10891         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10892         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10893         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10894         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10895
10896 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10897
10898         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10899         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10900         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10901         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10902         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10903         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10904         Delete.
10905         * defaults.h (BITS_PER_WORD): Define.
10906         * doc/tm.texi (BITS_PER_WORD): Document default value.
10907
10908         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10909         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10910         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10911
10912 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10913
10914         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10915         lieu of explicit sizeof/sizeof.
10916         * i386.c (override_options, ix86_init_mmx_sse_builtins,
10917         ix86_expand_builtin): Likewise.
10918         * mips.c (mips_add_gc_roots): Likewise.
10919         * mmix.c (mmix_output_condition): Likewise.
10920         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10921         altivec_init_builtins): Likewise.
10922         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10923         * cppexp.c (Nsuff, parse_number): Likewise.
10924         * cppinit.c (builtin_array_end): Likewise.
10925         * gcc.c (n_default_compilers, process_command): Likewise.
10926         * genpreds.c (output_predicate_decls): Likewise.
10927         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10928         * lcm.c (N_ENTITIES): Likewise.
10929         * stor-layout.c (set_sizetype): Likewise.
10930
10931 2002-03-03  Richard Henderson  <rth@redhat.com>
10932
10933         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10934         for types or labels.
10935
10936 2002-03-03  Richard Henderson  <rth@redhat.com>
10937
10938         * c-decl.c (start_decl): Initialized variables are not common.
10939
10940 2002-03-02  Per Bothner  <per@bothner.com>
10941
10942         * gcc.c (option_map):  Suport new --bootclasspath option.
10943         --CLASSPATH is now just an alias for --classpath.
10944
10945 2002-03-02  Richard Henderson  <rth@redhat.com>
10946
10947         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10948         load if "internal" visibility.
10949         * doc/extend.texi: Document visibility meanings.
10950
10951 2002-03-02  Richard Henderson  <rth@redhat.com>
10952
10953         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10954         to functions as well.
10955
10956 2002-03-02  Richard Henderson  <rth@redhat.com>
10957
10958         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10959         (handle_visibility_attribute): Don't call assemble_visibility.
10960         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10961         without asmspec.  Invoke assemble_alias when needed.
10962         * varasm.c (maybe_assemble_visibility): New.
10963         (assemble_start_function, assemble_variable, assemble_alias): Use it.
10964
10965 2002-03-02  Richard Henderson  <rth@redhat.com>
10966
10967         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10968         invoke ENCODE_SECTION_INFO with first call flag.
10969
10970         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10971         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10972         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10973         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10974         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10975         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10976         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10977         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10978         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10979         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10980         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10981         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10982         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10983         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10984         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10985         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10986         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10987         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10988         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10989         config/sh/sh.h, config/sparc/sparc.h,
10990         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10991         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10992         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10993         FIRST argument.  As needed, examine it and do nothing.
10994
10995         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10996         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10997         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10998
10999         * config/arm/t-pe (pe.o): Add dependencies.
11000
11001 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11002
11003         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
11004         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
11005         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
11006         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
11007         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
11008         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
11009         * defaults.h (BITS_PER_UNIT): Define.
11010         * doc/tm.texi (BITS_PER_UNIT): Document default value.
11011
11012 2002-03-02  Kazu Hirata  <kazu@hxi.com>
11013
11014         * config/h8300/h8300-protos.h: Add a prototype for
11015         compute_a_shift_length.
11016         * config/h8300/h8300.c (h8300_asm_insn_count): New.
11017         (compute_a_shift_length): Likewise.
11018         (h8300_adjust_insn_length): Do not adjust insn length of shift
11019         insns.
11020         * config/h8300/h8300.md (anonymous shift patterns): Use
11021         compute_a_shift_length.
11022
11023 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11024
11025         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
11026         trunc_int_for_mode.
11027
11028         * emit-rtl.c (offset_address): Call update_temp_slot_address.
11029
11030 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
11031
11032         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
11033         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
11034         * flags.h (flag_zero_initialized_in_bss): Declare.
11035         * toplev.c (flag_zero_initialized_in_bss): New flag.
11036         (lang_independent_options): Add flag_zero_initialized_in_bss.
11037         * tree.c (initializer_zerop): New function.
11038         * tree.h (initializer_zerop): Declare.
11039         * varasm.c (assemble_variable): If we can emit bss, put zero
11040         initializers in the bss section.
11041
11042 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
11043
11044         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
11045         like more than one symbol per .weak directive.
11046
11047 2002-03-01  Richard Henderson  <rth@redhat.com>
11048
11049         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
11050         adjust argument_pointer by pretend_args_size.
11051         (ia64_va_start): Adjust va_start address by -pretend_args_size.
11052
11053 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11054
11055         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
11056
11057 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
11058
11059         * toplev.c (rest_of_compilation): Delete dead jumptables before
11060         loop.
11061         * flow.c (delete_dead_jumptables): Make global.
11062         * rtl.h (delete_dead_jumptables): Declare.
11063
11064 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
11065
11066         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
11067         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
11068         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
11069
11070 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11071
11072         * config/h8300/h8300-protos.h: Fix formatting.
11073         * config/h8300/h8300.c: Likewise.
11074         * config/h8300/h8300.h: Likewise.
11075
11076 2002-03-01  Kazu Hirata  <kazu@hxi.com>
11077
11078         * config/h8300/h8300.c (print_operand): Support 16-bit
11079         constant addresses.
11080         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
11081
11082 2002-02-28  Richard Henderson  <rth@redhat.com>
11083
11084         * expmed.c (store_bit_field): Prevent generation of CONCATs;
11085         pun complex values as integers; use gen_lowpart instead of
11086         gen_rtx_SUBREG.
11087         (extract_bit_field): Likewise.
11088
11089 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
11090             David Edelsohn  <edelsohn@gnu.org>
11091
11092         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11093         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11094         (SUPPORTS_WEAK): Likewise.
11095         * output.h (add_weak): Add tree param.
11096         * varasm.c (add_weak): Likewise.  Save decl.
11097         (struct weak_syms): Add decl field.
11098         (mark_weak_decls): New function.
11099         (init_varasm_once): ggc_add_root mark_weak_decls.
11100         (assemble_start_function): Use ASM_WEAKEN_DECL.
11101         (assemble_variable): Likewise.
11102         (assemble_alias): Likewise.
11103         (declare_weak): Pass decl to add_weak.
11104         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11105         (remove_from_pending_weak_list): Declare and define for
11106         ASM_WEAKEN_DECL.
11107         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11108         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11109         * defaults.h (SUPPORTS_WEAK): Likewise.
11110         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11111         .weak for code sym.  Do emit .size for descriptor sym.
11112         (ASM_DECLARE_FUNCTION_SIZE): Define.
11113         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11114         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
11115         .lglobl unless TARGET_XCOFF.  Formatting fixes.
11116         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11117         .weak for code sym.
11118         (HANDLE_PRAGMA_WEAK): Remove.
11119         (ASM_WEAKEN_LABEL): Remove.
11120         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11121
11122 2002-03-01  Jason Merrill  <jason@redhat.com>
11123
11124         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11125         (TARGET_EXPR_CLEANUP): New macro.
11126
11127 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
11128
11129         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11130         to take ptr_extend into account as third type of extension.
11131         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11132         fields used by SUBREG_PROMOTED_UNSIGNED_P.
11133         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11134         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11135         * calls.c (precompute_arguments): Use new macro.
11136         (expand_call): Ditto.
11137         * combine.c (nonzero_bits): Ditto.
11138         (record_promoted_value): Ditto.
11139         * expr.c (store_expr): Ditto.
11140         (expand_expr): Ditto.
11141         * function.c (assign_parms): Ditto.
11142
11143 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
11144
11145         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11146         override -shared and -shared-libgcc.
11147
11148 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
11149
11150         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11151         of "ultrasparc".
11152         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
11153         to be broken.
11154
11155 2002-02-28  Richard Henderson  <rth@redhat.com>
11156
11157         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11158         4 cycle latency from MM producers.
11159         (ia64_internal_sched_reorder): Likewise with pipeline flush.
11160
11161 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
11162
11163         * mklibgcc.in: Don't use GNU make extension.
11164
11165 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11166
11167         * c-parse.in (STATIC): New terminal.
11168         (scspec): New non-terminal.  Update productions accordingly.
11169         (program): Remove bogus ifc / end ifc.
11170         (array_declarator): Simplify production using STATIC.
11171
11172 2002-02-28  Jim Meyering  <meyering@lucent.com>
11173
11174         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11175         \a still means TARGET_BELL.
11176
11177 2002-02-28  Richard Henderson  <rth@redhat.com>
11178
11179         * haifa-sched.c (sched_emit_insn): New.
11180         (schedule_block): Use last_scheduled_insn to track last insn.
11181         * sched-int.h (sched_emit_insn): Prototype.
11182         * config/ia64/ia64.c (last_issued): Remove.
11183         (ia64_variable_issue): Don't set it.
11184         (nop_cycles_until): Use sched_emit_insn.
11185
11186 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
11187
11188         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11189         extended constants.
11190
11191 2002-02-28  Kazu Hirata  <kazu@hxi.com>
11192
11193         * config/h8300/h8300.c: Fix formatting.
11194         * config/h8300/h8300.h: Likewise.
11195
11196 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11197
11198         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11199         which may overwrite the high byte of the frame pointer.
11200
11201 2002-02-28  Bo Thorsen  <bo@suse.de>
11202
11203         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11204         (STARTFILE_SPEC): Add 64 bit files.
11205         (ENDFILE_SPEC): Likewise.
11206
11207 2002-02-28  Jason Merrill  <jason@redhat.com>
11208
11209         * c-decl.c (finish_function): Only warn about missing return
11210         statement with -Wreturn-type.
11211
11212 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11213
11214         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11215
11216         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11217         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11218
11219 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11220
11221         * basic-block.h (BB_REACHABLE): Renumber.
11222         (BB_DIRTY, BB_NEW): New flags.
11223         (clear_bb_flags): Declare.
11224         (update_life_info_in_dirty_blocks): Declare.
11225         * cfg.c (clear_bb_flags): New function.
11226         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11227         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11228         reorder_insns, emit_insn_after): Mark block as dirty.
11229         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11230         (update_life_info_in_dirty_blocks): New function.
11231         * recog.c (apply_change_group): Dirtify block.
11232
11233         * cse.c (cse_insn): Reorder emitting of jump insn to keep
11234         cfg consistent.
11235         * gcse.c (delete_null_pointer_checks): Likewise.
11236
11237         * toplev.c (dump_file_index): Move cse2 after bp,
11238         add DFI_null
11239         (dump_file_info): Similary.
11240         (rest_of_compilation): Avoid most of CFG rebuilds;
11241         do first if converision after null pointer checks, do cse2
11242         after branch prediction; avoid full liveness rebuild after
11243         initializing subregs.
11244         * invoke.texi (-d options): Document -du, renumber.
11245
11246         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11247         (notice_new_block): Do not set BB_UPDATE_LIFE.
11248         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11249          merge_blocks_move_successor_nojumps, merge_blocks,
11250          try_crossjump_to_edge): Likewise.
11251         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11252         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11253         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11254         (merge_of_block): Do not use life_data_ok.
11255         (find_if_case_1): Do not use SET_UPDATE_LIFE.
11256         (if_convert): Use BB_DIRTY mechanizm to update life.
11257         * lcm.c (optimize_mode_switching): Update
11258         update_life_info_in_dirty_blocks
11259
11260 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11261
11262         * Makefile.in (integrate.o): Update.
11263         * c-decl.c (copy_lang_decl): Rename.
11264         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11265         * integrate.c: Include langhooks.h.
11266         (copy_decl_for_inlining): Update to use langhook.
11267         * langhooks-def.h (lhd_do_nothing_t,
11268         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11269         (LANG_HOOKS_INITIALIZER): Update.
11270         * langhooks.c (lhd_do_nothing_t): New.
11271         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11272         * tree.h (copy_lang_decl): Remove.
11273 objc:
11274         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11275
11276 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
11277
11278         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11279         POST_DEC, and POST_MODIFY.
11280
11281 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11282
11283         * c-typeck.c (digest_init): Remove unused parameter; all
11284         callers changed.
11285
11286 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
11287
11288         * expmed.c (expand_shift): Correctly test for low part of a
11289         subreg.
11290
11291 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11292
11293         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11294         insn UIDs with insn addresses.
11295
11296 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11297
11298         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11299         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11300         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11301         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11302         gcc.c, toplev.c: Delete code implementing -traditional mode.
11303
11304         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11305         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11306         Document removal of -traditional mode for compilation, and
11307         remove documentation only relevant to that mode.
11308
11309         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11310         config/convex/convex.h, config/d30v/d30v.h,
11311         config/i386/dgux.h, config/i386/osf1elf.h,
11312         config/i386/osfelf.h, config/i386/osfrose.h,
11313         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11314         config/m68k/hp310.h, config/m88k/dgux.h,
11315         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11316         config/m88k/m88k.h, config/m88k/openbsd.h,
11317         config/mips/abi64.h, config/mips/osfrose.h,
11318         config/mips/svr4-5.h, config/mips/svr4-t.h,
11319         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11320         config/stormy16/stormy16.h: Remove all references to
11321         -traditional from target specs.  Delete all mention of the
11322         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11323         delete a couple of commented-out definitions of
11324         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11325         to -traditional.
11326
11327         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11328         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11329
11330 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11331
11332         * mklibgcc.in: Don't use \n in a line subject to
11333         interpretation by echo.
11334
11335 2002-02-27  Graham Stott  <grahams@redhat.com>
11336
11337         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11338         Constify NAME.
11339
11340         * loop.c (prescan_loop): Handle PARALLEL.
11341
11342         * unroll.c (loop_iterations): Return 0 if the add_val for
11343         a BIV is REG.
11344
11345         * final.c (output_operand_lossage): Constify PFX_STR.
11346
11347         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11348
11349 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11350
11351         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11352         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11353
11354 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11355
11356         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11357
11358 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11359
11360         * cpplex.c (_cpp_lex_token): Handle directives in macro
11361         arguments.
11362         * cpplib.c (_cpp_handle_directive): Save and restore state
11363         if parsing macro args when entering a directive.
11364         * cppmacro.c (collect_args): No need to handle directives
11365         in macro arguments.
11366         (enter_macro_context, replace_args): Use the original macro
11367         definition in case it was redefined whilst collecting arguments.
11368 doc:
11369         * cpp.texi: Update.
11370
11371 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11372
11373         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11374         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11375         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11376         method on AIX.
11377         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11378         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11379         (load_toc_v4_PIC_2): Same.
11380
11381 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11382
11383         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11384
11385 2002-02-26  Richard Henderson  <rth@redhat.com>
11386
11387         * config/alpha/alpha.md (ashldi_se): Re-enable.
11388
11389 2002-02-26  Richard Henderson  <rth@redhat.com>
11390
11391         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11392         MODULE_LOCAL_P; improve commentary.
11393
11394 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11395
11396         * doc/cpp.texi: Clarify documentation of relationship between
11397         #line and #include.
11398
11399 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11400
11401         * config/h8300/h8300-protos.h: Update the prototype for
11402         compute_logical_op_length.  Add the prototype for
11403         compute_logical_op_cc.
11404         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11405         code from operands.
11406         (compute_logical_op_cc): New.
11407         * config/h8300/h8300.md: Combine all the logical op patterns
11408         in HImode and SImode.  Use compute_logical_op_cc.
11409
11410 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11411
11412         * config/i386/i386.c (print_operand): Don't append ATT-style
11413         length suffixs to x87 opcodes when in Intel mode.
11414
11415 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11416
11417         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11418         (init_emit_once): Update calls.
11419         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11420         (init_syntax_once): Prototype.
11421
11422 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11423
11424         * pa-linux.h (LIB_SPEC): Update definition.
11425         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11426
11427 2002-02-26  Richard Henderson  <rth@redhat.com>
11428
11429         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11430         if we emitted a stop bit.
11431
11432 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11433
11434         * configure.in (libgcc_visibility): Substitute.
11435         * configure: Rebuilt.
11436         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11437         defined symbols .hidden.
11438
11439 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11440
11441         * attribs.c (c_common_attribute_table): Add visibility.
11442         (handle_visibility_attribute): New function.
11443         * varasm.c (assemble_visibility): New function.
11444         * output.h (assemble_visibility): Add prototype.
11445         * tree.h (MODULE_LOCAL_P): Define.
11446         * crtstuff.c (__dso_handle): Use visibility attribute.
11447         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11448         for MODULE_LOCAL_P symbols too.
11449         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11450         MODULE_LOCAL_P symbols the same way as local symbols.
11451         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11452         into .sdata/.sbss by the user.
11453         * doc/extend.texi (Function Attributes): Document visibility
11454         attribute.
11455
11456 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11457
11458         PR debug/5770
11459         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11460         STRING_CST initializer spanning the whole variable without
11461         embedded zeros.
11462         If expand_expr returned MEM, don't use it.
11463
11464 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11465
11466         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11467         generate a die for the lexical block.
11468
11469 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11470
11471         * config/h8300/h8300-protos.h: Add a prototype for
11472         compute_logical_op_length.
11473         * config/h8300/h8300.c (compute_logical_op_length): New.
11474         * config/h8300/h8300.md (anonymous logical patterns): Use
11475         compute_logical_op_length for length.
11476
11477 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11478
11479         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11480         for vectors.
11481         (gen_type_die): Same.
11482
11483         * attribs.c (handle_vector_size_attribute): Set debug information.
11484
11485 2002-02-26  Daniel Egger  <degger@fhm.edu>
11486
11487         * config/rs6000/rs6000.md: Swap define_insn attributes to
11488         fix incorrect generation of merge high instructions instead
11489         of merge low.
11490
11491 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11492
11493         * c-typeck.c (really_start_incremental_init): Use
11494         bitsize_zero_node for vectors.
11495
11496 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11497
11498         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11499         ("*set_vrsave_internal"): Same.
11500
11501 2002-02-25  Richard Henderson  <rth@redhat.com>
11502
11503         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11504         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11505
11506 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11507
11508         PR target/5755
11509         * config/i386/i386.c (ix86_return_pops_args): Only pop
11510         fake structure return argument if it was passed on the stack.
11511
11512 2002-02-25  Jason Merrill  <jason@redhat.com>
11513
11514         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11515         RESULT_DECL.
11516
11517 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11518
11519         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11520         link with shared_name only.
11521         * doc/invoke.texi (Link Options): Document new behavior.
11522
11523 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11524
11525         * c-typeck.c (push_init_level): Handle vectors.
11526
11527 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11528
11529         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11530         operands of SPARC_SETHI_P.
11531         (input_operand): Likewise.
11532         (sparc_emit_set_const32): Likewise.
11533         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11534         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11535         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11536         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11537         (movdi_insn_sp64_vis): Likewise.
11538         (movdi split, movdf split): Use SETHI32.
11539         * doc/md.texi: Document SPARC constraints L, M and N.
11540
11541 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11542
11543         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11544         ("*set_vrsave_internal"): use mfspr for Darwin.
11545
11546         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11547         gen_get_vrsave_internal.
11548
11549 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11550
11551         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11552
11553 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11554
11555         * cpplex.c (cpp_interpret_charconst): Get signedness or
11556         otherwise of wide character constants correct.
11557         * cppexp.c (lex): Get signedness of wide charconsts correct.
11558
11559 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11560
11561         * optabs.c (widen_operand): Only call convert_modes for
11562         promoted SUBREG if signedness matches.
11563         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11564
11565 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11566
11567         * cpplib.c (glue_header_name): Use local buffer to build up
11568         header name.
11569
11570 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11571
11572         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11573
11574 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11575
11576         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11577         H8/300[HS] separately.
11578         * config/h8300/h8300.md: Remove the early clobber constraint
11579         from bit field patterns.
11580
11581 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11582
11583         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11584         register_operand.
11585         (mulhisi3): Likewise.
11586         (umulqisi3): Likewise.
11587         (umulhisi3): Likewise.
11588
11589 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11590
11591         * cppinit.c (output_deps): Correct test for stdout output.
11592         (init_dependency_output): Cure warning.
11593
11594 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11595
11596         * expr.c (store_expr): When converting expression to promoted
11597         equivalent type, allow using SUBREG_REG of TARGET as the target
11598         of the expansion of EXP.
11599         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11600         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11601         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11602         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11603         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11604
11605 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11606
11607         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11608         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11609         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11610
11611 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11612
11613         PR optimization/5747
11614         * loop.c (scan_loop): Update reg info if move_movables created new
11615         pseudos.
11616
11617 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11618
11619         * gcc.c (init_gcc_spec): Revert last change.
11620
11621 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11622
11623         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11624         gpc_reg_operand constraint.
11625
11626 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11627
11628         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11629         Simplify comparison of `low'.
11630         (add_operand): Fix formatting.
11631         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11632         (mask_operand): Disallow mask to wrap in 64-bit mode.
11633         (rs6000_stack_info): Remove redundant test setting push_p.
11634         (output_toc): Fix formatting.
11635         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11636         cc_reg_not_cr0_operand constraint.
11637         (booldi3, boolcdi3 splitters): Same.
11638
11639 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11640
11641         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11642
11643 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11644
11645         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11646         gcc invoked with -shared-libgcc.
11647
11648 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11649
11650         PR c++/5748
11651         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11652         decl if any of elements was TREE_USED.
11653
11654 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11655
11656         * config/sparc/sol2.h: Don't include sys/mman.h.
11657         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11658         (arith_4096_operand): Don't throw high bits away.
11659         (const64_operand): Take sign extension of CONST_INTs into account.
11660         (const64_high_operand, sparc_emit_set_const32): Likewise.
11661         (GEN_HIGHINT64): Likewise.
11662         (sparc_emit_set_const64_quick1): Likewise.
11663         (const64_is_2insns): Likewise.
11664         (print_operand): Use trunc_int_for_mode for sign extension.
11665         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11666         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11667         chars.  Assume CONST_INT is already properly sign-extended.
11668         (movdi split): Sign-extend each SImode part.
11669         (andsi3 split): Don't mask high bits off, so that result
11670         remains properly sign-extend.
11671         (iorsi3 split): Likewise.
11672         (xorsi3 split): Likewise.
11673
11674 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11675
11676         * fold-const.c (fold): Fix typo in comments.
11677
11678 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11679
11680         * Makefile.in (langhooks.o): Update dependencies.
11681
11682 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11683
11684         * langhooks.c: Include flags.h.
11685
11686 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11687
11688         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11689
11690         * c-common.c (c_common_post_options): Set inline trees by
11691         default.
11692
11693         * doc/extend.texi (Function Attributes): Document always_inline
11694         attribute.
11695         Update documentation about inlining when not optimizing.
11696
11697         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11698
11699         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11700         unless DECL_ALWAYS_INLINE.
11701
11702         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11703         unless DECL_ALWAYS_INLINE.
11704         (c_disregard_inline_limits): Disregard if always_inline set.
11705
11706         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11707         Disregard if always_inline set.
11708         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11709         unless DECL_ALWAYS_INLINE.
11710
11711         * attribs.c (handle_always_inline_attribute): New.
11712         (c_common_attribute_table): Add always_inline.
11713
11714         * config/rs6000/altivec.h: Add prototypes for builtins
11715         requiring the always_inline attribute.
11716
11717 2002-02-21  Eric Christopher  <echristo@redhat.com>
11718
11719         * expmed.c (store_bit_field): Try to simplify the subreg
11720         before generating a new one when when the mode size of
11721         value is less than maxmode.
11722
11723 2002-02-21  Richard Henderson  <rth@redhat.com>
11724
11725         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11726         than gen_rtx_PLUS to form the sum.
11727         * explow.c (force_reg): Rearrange to not allocate new pseudo
11728         when force_operand returns a register.
11729         * expr.c (expand_assignment): Allow offset_rtx expansion to
11730         return a sum.  Do not force addresses into registers.
11731         (expand_expr): Likewise.
11732         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11733         to canonicalize arithmetic that didn't simpify.
11734         (simplify_plus_minus): New argument force; update
11735         all callers.  Don't split CONST unless we can do something with it,
11736         and wouldn't lose the constness of the operands.
11737
11738         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11739         that we generated earlier.
11740
11741 2002-02-21  Tom Tromey  <tromey@redhat.com>
11742
11743         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11744         (output_line_info): Use constant `1', with a long explanatory
11745         comment.
11746         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11747
11748 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11749
11750         * jump.c (redirect_jump): If old label has no UID, don't try to
11751         delete it.
11752
11753 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11754
11755         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11756         If input is constant, do shifts at compile time.
11757
11758 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11759
11760         * doc/extend.texi: Fix some more overfull hboxes.
11761
11762 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11763
11764         PR optimization/4994
11765         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11766         register moves.
11767
11768 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11769
11770         PR c++/4574
11771         * expr.h (expand_and): Add mode argument.
11772         * expmed.c (expand_and): Add mode argument.
11773         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11774         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11775         * except.c (expand_builtin_extract_return_addr): Likewise.
11776         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11777         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11778         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11779         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11780         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11781         gen_rtx (CONST_INT, VOIDmode, x).
11782
11783 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11784
11785         PR c/4697:
11786         * stmt.c (warn_if_unused_value): Move side effects test once more.
11787
11788 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11789
11790         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11791         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11792
11793 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11794
11795         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11796         SUBREG or ZERO_EXTEND.
11797
11798 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11799
11800         * sh.h (current_function_anonymous_args): Remove.
11801         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11802         of current_function_varargs and current_function_stdarg is set.
11803         * sh.c (sh_expand_prologue): Check current_function_varargs /
11804         current_function_stdarg / TARGET_SH5 instead of
11805         current_function_anonymous_args.
11806
11807         * sh64.h (TARGET_VERSION): Define.
11808
11809 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11810
11811         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11812         VRSAVE_REGNO on TARGET_ALTIVEC.
11813
11814 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11815
11816         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11817         bits of SImode const_int.
11818         (includes_rshift_p): Likewise.
11819         (print_operand): Call mask_operand and mask64_operand with correct
11820         mode.
11821         (rs6000_output_function_epilogue): Pad traceback table to word.
11822         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11823         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11824         mask64_operand with correct mode.
11825         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11826
11827 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11828
11829         PR debug/4461
11830         * varasm.c (get_pool_constant_mark): New.
11831         * rtl.h (get_pool_constant_mark): Add prototype.
11832         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11833         be represented if it has not been output.
11834
11835 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11836
11837         * combine.c (do_SUBST): Sanity check substitutions of
11838         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11839         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11840         CONST_INT into its operand.
11841         (known_cond): Likewise, for ZERO_EXTEND.
11842         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11843         allow for simplification of wide modes.  Reject CONST_INTs in
11844         ZERO_EXTEND when their actual mode is not given.
11845
11846 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11847
11848         * c-decl.c (pushdecl): If no global declaration is found for an
11849         extern declaration in block scope, try a limbo one.
11850
11851 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11852
11853         PR c++/4401
11854         * c-common.c (pointer_int_sum): Moved from...
11855         * c-typeck.c (pointer_int_sum): ...here.
11856         * c-common.h (pointer_int_sum): Add prototype.
11857
11858 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11859
11860         PR c++/5713
11861         * c-decl.c (duplicate_decls): Return 0 if issued error about
11862         redeclaration.
11863
11864 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11865             Jakub Jelinek  <jakub@redhat.com>
11866
11867         PR c/4389
11868         * tree.c (host_integerp): Ensure that the constant integer is
11869         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11870         when pos is zero or non-zero respectively.  Clarify comment.
11871         * c-format.c (check_format_info_recurse): Fix host_integerp
11872         usage; the pos argument should be zero when assigning to a
11873         signed HOST_WIDE_INT.
11874
11875 2002-02-20  Richard Henderson  <rth@redhat.com>
11876
11877         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11878         of the operand, rather than assuming TImode.
11879         (ix86_expand_binop_builtin): Cope with commutative patterns
11880         using nonimmediate_operand for both operands.
11881         (ix86_expand_timode_binop_builtin): Likewise.
11882         (ix86_expand_store_builtin): Validate operand 1.
11883         (ix86_expand_unop1_builtin): Likewise.
11884
11885 2002-02-20  Philip Blundell  <philb@gnu.org>
11886
11887         PR 5705
11888         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11889
11890 2002-02-20  Richard Henderson  <rth@redhat.com>
11891
11892         PR c/5615
11893         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11894
11895 2002-02-20  Tom Tromey  <tromey@redhat.com>
11896
11897         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11898         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11899         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11900         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11901         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11902         unconditionally.
11903
11904 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11905
11906         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11907           for (const_int 0) in X not just INTVAL.
11908
11909 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11910
11911         * doc/extend.texi: Avoid or reduce overfull hboxes.
11912
11913 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
11914
11915         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11916         operations if the field does not start at a mode boundary.
11917
11918 2001-02-20      Joel Sherrill <joel@OARcorp.com>
11919
11920         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11921         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11922         Also done for -Acpu and -Amachine.
11923
11924 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11925
11926         * cppinit.c (init_dependency_output): Take deps output file
11927         from -o if none given with -MF.  Suppress normal output.
11928         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11929         * doc/cpp.texi, doc/invoke.texi: Update.
11930
11931 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11932
11933         * toplev.c (output_quoted_string): Write unprintable
11934         characters with octal escapes.
11935
11936 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11937
11938         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11939         really_call_used[VRSAVE_REGNO] if not Altivec.
11940
11941 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
11942
11943         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11944         MODE_MASK.
11945         (constant_pool_expr_1): Fix formatting.
11946         (rs6000_legitimize_reload_address): Likewise.
11947
11948 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11949
11950         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11951         now that we have one.
11952
11953 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11954
11955         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
11956         end of first block of bitfields (which was only seven bits);
11957         rename dummy to unused_1; remove comment which is no longer true.
11958
11959 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11960
11961         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11962
11963 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11964
11965         PR 5399
11966         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11967         if generating PIC.
11968
11969         PR 5054
11970         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11971         arm_is_longcall_p rather than inspecting call-type cookie
11972         directly.
11973         (call_value_insn) [TARGET_THUMB]: Likewise.
11974
11975 2002-02-19  Graham Stott  <grahams@redhat.com>
11976
11977         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11978
11979 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11980
11981         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11982         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11983         (FP_SAVE_INLINE): Delete.
11984
11985         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11986         * config/rs6000/eabi.asm: Remove ABI save restore routines.
11987         * config/rs6000/t-ppccomm: Build crtsavres.o.
11988         * config/rs6000/crtsavres.asm: New file.
11989
11990 2002-02-19  Philip Blundell  <philb@gnu.org>
11991
11992         * config/arm/arm.c (use_return_insn): Don't reject interrupt
11993         functions.
11994         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11995         (output_return_instruction): Allow interrupt functions to return with
11996         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
11997         (arm_expand_prologue): Subtract 4 before stacking LR in an
11998         interrupt function.
11999
12000 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
12001
12002         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
12003         decl, not just FUNCTION_DECL.
12004         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
12005         (arm_assemble_integer): Likewise.
12006         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
12007         marked local.
12008
12009 2002-02-19  matthew green  <mrg@eterna.com.au>
12010
12011         * config.gcc (sparc-*-netbsdelf*): Enable target.
12012         (sparc64-*-netbsd*): New target.
12013         * config/sparc/netbsd-elf.h: New file.
12014         * config/sparc/t-netbsd64: New file.
12015
12016 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
12017
12018         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
12019
12020 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
12021
12022         * doc/invoke.texi: explicitly list the style guidelines that
12023         -Weffc++ checks for.
12024
12025 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
12026
12027         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
12028
12029 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
12030
12031         PR other/5718
12032         * gcc.c (cpp_unique_options): Treat -o as indicating object file
12033         only if not -E.  If -E, pass -o through to the preprocessor.
12034
12035 2002-02-19  Kazu Hirata  <kazu@hxi.com>
12036
12037         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
12038         register number with an appropriate macro.
12039
12040 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
12041
12042         * doc/rtl.texi (Constants): Close @code tag.
12043
12044 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
12045
12046         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
12047         ("mmx_uavgv4hi3"): Same.
12048         ("pmulhrwv4hi3"): Same.
12049
12050         * tree-inline.c (walk_tree): Handle vectors.
12051
12052         * c-common.c (constant_expression_warning): Handle vectors.
12053         (overflow_warning): Same.
12054
12055         * sched-deps.c (sched_analyze_2): Handle vectors.
12056
12057         * rtlanal.c (rtx_unstable_p): Handle vectors.
12058         (rtx_varies_p): Same.
12059         (count_occurrences): Same.
12060         (regs_set_between_p): Same.
12061         (modified_between_p): Same.
12062         (modified_in_p): Same.
12063         (volatile_insn_p): Same.
12064         (volatile_refs_p): Same.
12065         (side_effects_p): Same.
12066         (may_trap_p): Same.
12067         (inequality_comparisons_p): Same.
12068         (replace_regs): Same.
12069         (computed_jump_p_1): Same.
12070
12071         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
12072         argument.
12073         (inner_mode_array): New.
12074         (copy_rtx): Handle vectors.
12075         (copy_most_rtx): Same.
12076         (rtx_equal_p): Same.
12077         (get_mode_alignment): Adjust for vectors.
12078
12079         * resource.c (mark_referenced_resources): Handle vectors.
12080         (mark_set_resources): Same.
12081
12082         * reload1.c (eliminate_regs): Handle vectors.
12083         (elimination_effects): Same.
12084         (scan_paradoxical_subregs): Same.
12085
12086         * reload.c (subst_reg_equivs): Handle vectors.
12087
12088         * regrename.c (scan_rtx): Handle vectors.
12089
12090         * regclass.c (reg_scan_mark_refs): Handle vectors.
12091
12092         * recog.c (find_single_use_1): Handle vectors.
12093
12094         * local-alloc.c (equiv_init_varies_p): Handle vectors.
12095         (contains_replace_regs): Same.
12096         (memref_referenced_p): Same.
12097
12098         * integrate.c (copy_rtx_and_substitute): Handle vectors.
12099         (subst_constants): Same.
12100
12101         * genattrtab.c (attr_copy_rtx): Handle vectors.
12102         (encode_units_mask): Same.
12103         (clear_struct_flag): Same.
12104         (count_sub_rtxs): Same.
12105
12106         * gcse.c (want_to_gcse_p): Handle vectors.
12107         (oprs_unchanged_p): Same.
12108         (hash_expr_1): Same.
12109         (oprs_not_set_p): Same.
12110         (expr_killed_p): Same.
12111         (compute_transp): Same.
12112         (store_ops_ok): Same.
12113
12114         * function.c (purge_addressof_1): Do not allow paradoxical subregs
12115         of vectors.
12116         (fixup_var_refs_1): Same.
12117         (instantiate_virtual_regs_1): Same.
12118
12119         * fold-const.c (operand_equal_p): Handle vectors.
12120         (fold): Same.
12121         (rtl_expr_nonnegative_p): Same.
12122
12123         * flow.c (mark_used_regs): Handle vectors.
12124
12125         * df.c (df_uses_record): Handle vectors.
12126
12127         * cselib.c (cselib_subst_to_values): Handle vectors.
12128         (cselib_mem_conflict_p): Same.
12129         (hash_rtx): Same.
12130
12131         * cse.c (canon_reg): Handle vectors.
12132         (fold_rt): Same.
12133         (cse_process_notes): Same.
12134         (count_reg_usage): Same.
12135         (canon_hash): Same.
12136
12137         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12138
12139         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12140
12141         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12142         (gen_rtx): Handle CONST_VECTOR.
12143         (gen_const_vector_0): New.
12144         (copy_rtx_if_shared): CONST_VECTORs can be shared.
12145         (reset_used_flags): Same.
12146         (copy_insn_1): Same.
12147         (initializer_constant_valid_p): Handle VECTOR_CST.
12148
12149         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12150
12151         * doc/rtl.texi (Constants): Document const_vector.
12152         (CONST0_RTX): Update for vectors.
12153         (RTL sharing): Same.
12154
12155         * print-tree.c (print_node): Add case for VECTOR_CST.
12156
12157         * tree.h (TREE_VECTOR_CST_ELTS): New.
12158         (struct tree_vector): New.
12159         (union tree_node): Add vector node.
12160         (build_vector): Add prototype.
12161
12162         * tree.def (VECTOR_CST): New.
12163
12164         * tree.c (build_vector): New.
12165
12166         * expmed.c (make_tree): Handle CONST_VECTOR.
12167
12168         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12169         (CONST_VECTOR_ELT): New.
12170         (CONST_VECTOR_NUNITS): New.
12171
12172         * machmode.h (GET_MODE_INNER): New.
12173         (DEF_MACHMODE): Accept 8th arg.
12174
12175         * machmode.def: Add 8th argument for vector inner mode.
12176         Add inner vector modes for vectors.
12177
12178         * rtl.def (VEC_CONST): Remove.
12179         (CONST_VECTOR): New.
12180
12181         * expr.c (clear_storage): Allow vectors.
12182         (is_zeros_p): Handle VECTOR_CST.
12183
12184         * varasm.c (output_constant_pool): Handle vectors.
12185         (rtx_const): Add veclo and vechi fields.
12186         (kind): Add RTX_VECTOR.
12187         (decode_rtx_const): Add case for vector.
12188
12189         * config/rs6000/rs6000-protos.h: Add zero_constant.
12190
12191         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12192         constants.  Force easy vector constants into memory.
12193         (easy_vector_constant): New.
12194         (emit_easy_vector_constant): New.
12195         (rs6000_legitimize_reload_address): Do not generate bad reloads on
12196         darwin.
12197
12198         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12199         instruction does.
12200         ("altivec_lvxl"): Same.
12201         (altivec_lvebx): Same.
12202         (altivec_lvehx): Same.
12203         (altivec_lvewx): Same.
12204         ("*movv4si_const0"): New.
12205         ("*movv4sf_const0"): New.
12206         ("*movv8hi_const0"): New.
12207         ("*movv16qi_const0"): New.
12208
12209 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12210
12211         * config/h8300/h8300.c (notice_update_cc): Use
12212         cc_status.value2.
12213
12214 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12215
12216         * config/h8300/h8300.md (divmod patterns): Change the
12217         constraints for operands[1] to register_operand.
12218
12219 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12220
12221         * config/h8300/h8300-protos.h: Remove the prototype for
12222         p_operand.
12223         * config/h8300/h8300.c (p_operand): Remove.
12224         * config/h8300/h8300.md: Replace p_operand with
12225         const_int_operand.
12226
12227 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12228
12229         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12230         comment.
12231         (output_return_instruction): Allow use of LDR to unstack
12232         return addresss even for interrupt handlers or when
12233         interworking.  If compiling for ARMv5, use interworking-safe
12234         return instructions by default.  Remove duplicated code and
12235         lengthy "strcat" sequences.
12236
12237 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12238
12239         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12240         (LINK_EH_SPEC): Define.
12241         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12242
12243 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
12244
12245         * config/s390/s390.c (s390_emit_prologue): Do not set the
12246         frame_related flag for call-clobbered registers.
12247
12248 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12249
12250         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12251         (construct_container): Fix handling of SSE operands.
12252         (ix86_expand_builtin): Fix handling of 64bit pointers.
12253         (mmx_maskmovq_rex): New pattern.
12254
12255 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12256
12257         * regrename.c (kill_set_value): Handle subregs properly.
12258
12259 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
12260
12261         * objc/objc-act.c (handle_impent): Remove leading '*'
12262         from objc_class_name.
12263
12264 2002-02-17  Richard Henderson  <rth@redhat.com>
12265
12266         * config/alpha/alpha.c (some_small_symbolic_operand,
12267         some_small_symbolic_operand_1, split_small_symbolic_operand,
12268         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12269         Handle small SYMBOL_REFs anywhere, not just inside memories.
12270         * config/alpha/alpha-protos.h: Update.
12271         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12272         * config/alpha/alpha.md (small symbolic operand splitter): Update.
12273
12274 2002-02-17  Roland McGrath  <roland@frob.com>
12275
12276         * config.gcc (powerpc-*-gnu-gnualtivec*,
12277         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12278         * config/rs6000/gnu.h: New file.
12279         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12280         Grok "gnu" in rs6000_abi_name.
12281         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12282         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12283         Grok -mcall-gnu analogous to -mcall-linux et al.
12284         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12285         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12286         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12287
12288 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
12289
12290         PR c/3444:
12291         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12292         shortening.
12293
12294 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12295
12296         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12297         ENDFILE_SPEC before (re)defining them.
12298
12299 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12300
12301         * config/h8300/h8300.c: Fix formatting.
12302         * config/h8300/h8300.h: Likewise.
12303
12304 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12305
12306         * doc/tm.texi: Explain why empty strings should not be
12307         marked for translation.
12308
12309 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12310
12311         * final.c (output_operand_lossage): Changed to accept
12312         printf style arguments. Change calls where necessary.
12313         * output.h (output_operand_lossage): Change declaration
12314         accordingly. Update copyright.
12315         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12316         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12317         Update copyright date where necessary.
12318
12319         * config/i386/i386.c (print_operand): Likewise. Remove use of
12320         sprintf.
12321
12322         * config/cris/cris.c (cris_operand_lossage): Likewise.
12323         Rename parameter so that exgettext recognizes it as
12324         translatable message.
12325         (LOSE_AND_RETURN): Rename parameter to msgid.
12326
12327 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12328
12329         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12330         hard coded register number with an appropriate macro.
12331         (HARD_REGNO_MODE_OK): Likewise.
12332         (ARG_POINTER_REGNUM): Likewise.
12333         (STATIC_CHAIN_REGNUM): Likewise.
12334         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12335         * config/h8300/h8300.md (define_constants): Define more
12336         register numbers.
12337
12338 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12339
12340         * config/i386/i386.h: Don't mark empty strings for translation.
12341
12342 2002-02-16  H.J. Lu <hjl@gnu.org>
12343
12344         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12345
12346 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12347
12348         * cppinit.c (merge_include_chains): Check for brack being
12349         NULL before attempting to merge it with qtail.
12350
12351 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12352
12353         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12354         DBX_DEBUG.
12355
12356 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12357
12358         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12359
12360 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12361
12362         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12363         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12364         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12365
12366 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12367
12368         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12369         now only if !TARGET_FIX.
12370         (*movsi_nt_vms_fix): New pattern.
12371
12372 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12373
12374         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12375         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12376         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12377         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12378         (alpha_start_function, alpha_expand_epilogue): Likewise.
12379         (unicosmk_gen_dsib): Likewise.
12380
12381 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12382
12383         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12384
12385 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12386
12387         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12388         check_and_change_labels, s390_final_chunkify): Delete.
12389         (s390_split_branches, s390_chunkify_pool): New functions.
12390         (s390_function_prologue): Call them.
12391
12392         * config/s390/s390.h (S390_REL_MAX): Delete.
12393         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12394
12395         * config/s390/s390.md (cjump, icjump, jump): Fix length
12396         attribute calculation.
12397
12398
12399 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12400
12401         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12402         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12403
12404 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12405
12406         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12407         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12408         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12409
12410 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12411
12412         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12413
12414 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12415
12416         * reload.c (find_dummy_reload): Check that an output register
12417         is valid for its mode.
12418
12419 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12420
12421         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12422         to simplify it.
12423
12424         * function.c (assign_parms): Demote promoted argument passed by
12425         transparent reference.
12426
12427 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12428
12429         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12430         -Acpu() and -Amachine() to eliminate warnings.
12431
12432 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12433
12434         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12435
12436 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12437
12438         * config/h8300/h8300-protos.h: Update the prototype for
12439         const_costs.
12440         * config/h8300/h8300.c (const_costs): Treat SET as a little
12441         more expensive operation.
12442         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12443         reference to const_costs.
12444
12445 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12446
12447         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12448
12449 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12450
12451         PR c/5503:
12452         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12453         use arguments from newtype.
12454
12455 2002-02-13  Eric Christopher  <echristo@redhat.com>
12456
12457         * config/mips/mips.c (override_options): Add check for march/mipsX
12458         on the same command line. Fix error message in cpu processing.
12459         Remove architecture and ISA checks.
12460
12461 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12462
12463         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12464
12465         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12466
12467 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12468
12469         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12470         alternatives.
12471         ("*movv8hi_internal1"): Same.
12472         ("*movv16qi_internal1"): Same.
12473         ("*movv4sf_internal1"): Same.
12474
12475         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12476         not push_reload for altivec modes.
12477
12478 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12479
12480         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12481         all RTEMS targets including removal of #includes from config/*/rtems*.h
12482         file and adding them to tm_file setting. Added xm_defines=POSIX to
12483         many targets.
12484         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12485         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12486         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12487         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12488         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12489         config/m68k/rtemself.h: Ditto.
12490         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12491         config/mips/rtems64.h: Ditto.
12492         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12493         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12494         Ditto.
12495         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12496         config/sparc/rtemself.h: Ditto.
12497         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12498         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12499         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12500         more like arm-elf.
12501         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12502         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12503         target made more similar to i386-elf.
12504         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12505         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12506         be similar to config/m68k/t-m68kelf.
12507         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12508
12509 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12510
12511         * regmove.c (kill_value): Handle subregs.
12512
12513 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12514
12515         * i386.md (mul patterns): Allow memory operand to be first;
12516         add expanders where needed; fix constraints.
12517         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12518         Allow memory operand to be the first.
12519
12520         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12521         operands.
12522
12523 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12524
12525         PR c/5681:
12526         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12527         GET_MODE (x).
12528
12529 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12530
12531         PR optimization/5547:
12532         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12533         all valid IA-32 address modes involving non-scaled %ebx and
12534         GOT/GOTOFF as displacement.
12535
12536 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12537
12538         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12539         after emitting ltorg insns.
12540
12541         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12542         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12543         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12544         *abssf2): Fix "op_type" attribute.
12545
12546 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12547
12548         * mkconfig.sh: Avoid using a subshell redirect.
12549         ($output.T): Change to $(output)T.
12550         (ENABLE_NLS): Remove unneeded undef.
12551
12552         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12553         * config/alpha/x-vms (libsubdir): Define.
12554
12555         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12556         register frame procedures. Optimize retrieving context.
12557
12558         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12559         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12560         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12561
12562 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12563
12564         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12565         Make same change as for find_base_value.
12566
12567 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12568
12569         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12570         of QImode and SImode.
12571
12572 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12573
12574         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12575         length computation of movsi.
12576         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12577
12578 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12579
12580         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12581         operands[2] to register_operand.
12582
12583 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12584
12585         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12586
12587 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12588
12589         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12590         for altivec_lvx* and altivec_stvx*.
12591         ("*movv4si_internal"): Add constraint for loading from GPRs.
12592         ("*movv8hi_internal1"): Same.
12593         ("*movv16qi_internal1"): Same.
12594         ("*movv4sf_internal1"): Same.
12595
12596         * config/rs6000/rs6000.c (altivec_register_operand): New.
12597
12598         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12599         altivec_register_operand.
12600
12601 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12602
12603         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12604         handle SYMBOL_REF.
12605
12606 2002-02-13  Stan Shebs  <shebs@apple.com>
12607
12608         * c-typeck.c (digest_init): Handle vectors.
12609         (really_start_incremental_init): Same.
12610         (pop_init_level): Same.
12611         (process_init_element): Same.
12612
12613         * varasm.c (output_constant): Same.
12614
12615         * expr.c (clear_storage): Same.
12616         (store_constructor): Same.
12617
12618 2002-02-12  Eric Christopher  <echristo@redhat.com>
12619
12620         * explow.c (hard_function_value): Add comment explaining
12621         signed/unsigned comparison.
12622
12623 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12624
12625         * jump.c (never_reached_warning): Add finish argument.
12626         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12627         real insn after end.
12628         * rtl.h (never_reached_warning): Adjust prototype.
12629         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12630         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12631         never_reached_warning.
12632
12633 2002-02-12  Graham Stott  <grahams@redhat.com>
12634
12635         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12636
12637 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12638
12639         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12640         logical shifts on H8/300.
12641         (shift_alg_si): Improve several shifts on H8/300.
12642         (get_shift_alg): Likewise.
12643
12644 2002-02-12  Graham Stott  <grahams@redhat.com>
12645
12646         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12647
12648 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12649
12650         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12651         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12652
12653 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12654
12655         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12656         non-CONST_INT through default_assemble_integer.
12657         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12658         <case 8>: Abort for CONST_DOUBLE.
12659
12660 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12661
12662         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12663         is specified.
12664         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12665         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12666
12667 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12668
12669         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12670
12671 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12672
12673         * regrename.c (regrename_optimize): Don't accept a
12674         part-clobbered register if the replaced register is not part
12675         clobbered.
12676
12677         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12678         take padding into account when computing the argument value.
12679
12680         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12681
12682         * combine.c (try_combine): Apply substitutions in
12683         CALL_INSN_FUNCTION_USAGE too.
12684
12685 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12686
12687         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12688         __builtin_altivec_abs*.
12689         (bdesc_abs): New.
12690
12691         * config/rs6000/rs6000.h (rs6000_builtins): Add
12692         ALTIVEC_BUILTIN_ABS*.
12693
12694         * config/rs6000/altivec.h: Use const char for builtins expecting
12695         literals.
12696         (vec_abs): New versions for C and C++.
12697         (vec_abss): Same.
12698
12699 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12700
12701         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12702         using Pmode.
12703
12704 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12705
12706         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12707         constant definition from h8300.md.
12708         (FRAME_POINTER_REGNUM): Likewise.
12709         * config/h8300/h8300.md (define_constants): Add FP_REG.
12710
12711 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12712
12713         * config/h8300/h8300.c (print_operand): Remove redundant code.
12714
12715 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12716
12717         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12718         * config/h8300/h8300.c (byte_reg): Make it static.
12719
12720 2002-02-10  Richard Henderson  <rth@redhat.com>
12721
12722         PR c/5623
12723         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12724
12725 2002-02-10  Richard Henderson  <rth@redhat.com>
12726
12727         PR c++/5624
12728         * tree.c (append_random_chars): Don't abort if main_input_filename
12729         does not exist.
12730
12731 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12732
12733         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12734
12735 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12736
12737         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12738         (pushhi1): Likewise.
12739
12740 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12741
12742         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12743         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12744
12745 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12746
12747         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12748         remove MASK_VIS.
12749         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12750
12751 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12752
12753         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12754         a half of an SImode register on H8/300.
12755
12756 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12757
12758         * i386.md (movdi_2): Add missing '!'.
12759
12760 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12761
12762         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12763         definitions.
12764
12765 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12766
12767         * config/h8300/h8300.md (length): Correct the distance valid
12768         for the short branch.
12769
12770 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12771
12772         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12773
12774 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12775
12776         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12777         registers in SImode.
12778         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12779         part-clobbered.
12780
12781         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12782         patch.
12783
12784         Contribute sh64-elf.
12785         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12786         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12787         (sh_cannot_modify_jumps_p): New function.
12788         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12789         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12790         (sh_ms_bitfield_layout_p): New function.
12791         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12792                     Zack Weinberg  <zack@codesourcery.com>
12793         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12794         expand_simple_binop instead of expand_binop.
12795         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12796         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12797         use of .quad and .uaquad.
12798         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12799         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12800         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12801         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12802         movdi_const_16bit): Make sure all CONSTs have modes.
12803         (sym2PIC): Ditto, but by adjusting all callers.
12804         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12805         if the prologue calls the SHmedia argument decoder or register
12806         saver.
12807         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12808         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12809         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12810         (sh_expand_epilogue): Don't emit USE of return target register.
12811         (prepare_move_operands): Legitimize DImode PIC addresses.
12812         (sh_media_register_for_return): Skip tr0, used to initialize the
12813         PIC register.
12814         (sh_expand_prologue): Remove explicit USE of return register.
12815         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12816         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12817         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12818         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12819         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12820         EXTRA_CONSTRAINT_T.
12821         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12822         (MOVI_SHORI_BASE_OPERAND_P): New.
12823         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12824         (EXTRA_CONSTRAINT_T): Define in terms of them.
12825         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12826         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12827         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12828         alternatives supporting TARGET_REGS.
12829         (UNSPEC_GOTPLT): New constant.
12830         (movdi split): Move incrementing of LABEL_NUSES...
12831         (movdi_const, movdi_const_32bit): Here.  Use
12832         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12833         (movdi_const_16bit): New.
12834         (call, call_value) [flag_pic]: Use GOTPLT.
12835         (call_pop, call_value_pop): New expands.
12836         (call_pop_compact, call_pop_rettramp): New insns.
12837         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12838         (sibcall) [flag_pic]: Use GOT.
12839         (builtint_setjmp_receiver): Remove bogus, unused expand.
12840         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12841         (*pt, *ptb, ptrel): New insns.
12842         (sym2GOT): Handle DImode GOT.
12843         (sym2GOTPLT, symGOTPLT2reg): New expands.
12844         (sym2PIC): New expand.
12845         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12846         (shcompact_return_tramp_i): Use return register explicitly.
12847         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12848         disable flag_reorder_blocks.
12849         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12850         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12851         clobbers, for clarity.
12852         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12853         restoring of r0 in macl as MAYBE_DEAD.
12854         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12855         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12856         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12857         alter_subreg all over.
12858         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12859         reload, instead of emitting instructions that would require
12860         reloading.
12861         (casesi_load_media): Add missing modes.
12862         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12863         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12864         as used if the argument decoder is called.
12865         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12866         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12867         Pmode, then extend it to DImode if necessary.
12868         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12869         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12870         constants in FPU-enabled SHmedia, let them be loaded from memory.
12871         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12872         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12873         Adjust whitespace in assembly output templates.
12874         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12875         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12876         mode of if_then_else.
12877         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12878         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12879         sh.h.
12880         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12881                     Joern Rennecke <amylaar@redhat.com>
12882         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12883         (SUBTARGET_CPP_PTR_SPEC): New.
12884         (SUBTARGET_CPP_SPEC): Remove.
12885         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12886         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12887         Fix typo in previous checkin.
12888         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12889         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12890         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12891                     Alexandre Oliva  <aoliva@redhat.com>
12892         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12893         what single FP register can hold for SHmedia target.
12894         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12895                     Alexandre Oliva  <aoliva@redhat.com>
12896         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12897         Do not split into SUBREG.
12898         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12899         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12900         and added new functions as specified in SH5 ABI r9.
12901         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
12902         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12903         8-byte boundary.
12904         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
12905         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12906         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
12907         and consttable_window_ends.
12908         2001-06-03  Graham Stott  <grahams@redhat,com>
12909         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12910         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
12911         * config/sh/sh.c (print_operand): Handle floating-point pair,
12912         vector and matrix registers.
12913         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12914         vector modes into account.
12915         * config/sh/sh.md (movv2sf): Split move between registers into
12916         movdf.
12917         (movv4sf, movv16sf): Introduce insns that get split only after
12918         reload.
12919         * config/sh/shmedia.h: Fix Copyright dates.
12920         * config/sh/ushmedia.h: Likewise.  Move loop counter
12921         declarations into conditionals that uses them.
12922         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12923         loop boundary.
12924         * config/sh/sshmedia.h: Fix Copyright dates.
12925         (sh_media_PUTCFG): Fix constraints.
12926         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
12927         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12928         ptrmemfunc_vbit_in_delta for SH5.
12929         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
12930         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12931         * invoke.texi: Likewise.
12932         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12933         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12934         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12935         GCC_pop_shmedia_regs_nofpu): New global symbols.
12936         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12937         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12938         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12939         compact function with nonlocal labels.
12940         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12941         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12942         (initial_elimination_offset): Account for their stack space.
12943         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12944         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12945         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12946         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12947         least one of the operands to be a register.
12948         (movv2sf): Likewise.  Renamed to movv2sf_i.
12949         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12950         prepare_move_operands() before emitting SHmedia insns.
12951         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
12952         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12953         Don't save nor initialize r12.  Don't mis-align the stack.
12954         Pad the code with a nop.
12955         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
12956         stack.
12957         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12958         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12959         [__SHMEDIA__]: Implement.
12960         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
12961         * config/sh/sh.md: Set latency of `pt' closer to reality.
12962         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12963         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12964         Set move, load and store type attributes.
12965         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12966         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12967         profiling.
12968         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12969         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12970         * config/sh/sh.c (sh_media_register_for_return): New function.
12971         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12972         branch-target register.
12973         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12974         * config/sh/sh.md (return_media_i): Use any call-clobbered
12975         branch-target register.
12976         (return_media): If r18 wasn't copied in the prologue, copy it
12977         here.
12978         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12979         Clear class FP0_REGS.
12980         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12981         from elf.h.
12982         2001-03-08  DJ Delorie  <dj@redhat.com>
12983         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12984         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
12985         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12986         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
12987         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12988         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
12989         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12990         return value correctly for call_cookie.
12991         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12992         * config/sh/crt1.asm (start): Modified so as to call
12993         ___setup_argv_and_call_main.
12994         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
12995         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12996         SHmedia mode.
12997         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
12998         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12999         (STRIP_NAME_ENCODING): Use it.
13000         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
13001         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
13002         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
13003         prepare_scc_operands().
13004         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
13005         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
13006         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
13007         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
13008         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
13009         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
13010         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
13011         used in shcompact_incoming_args.
13012         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
13013         change.
13014         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
13015         mode.
13016         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
13017         Adjust accordingly.
13018         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
13019         Simplify.  Adjust.  Add sanity check.
13020         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
13021         FPU_SINGLE_BIT.
13022         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
13023         TARGET_SHCOMPACT.
13024         (udivsi3, divsi3): Use them.
13025         (force_mode_for_call): New insn.
13026         (call, call_value, sibcall_value): Emit it before SHcompact
13027         calls.
13028         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
13029         * config/sh/sh.md (call, call_value, sibcall): Make sure the
13030         call cookie is non-NULL before taking its value.
13031         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
13032         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
13033         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
13034         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
13035         block.
13036         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
13037         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
13038         temporary for stack adjusts.  Use MACL and MACH to pass
13039         arguments to shcompact_incoming_args.
13040         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
13041         clobber r1.
13042         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
13043         (nested_trampoline): Load static chain address into r1.
13044         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
13045         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
13046         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
13047         fp_arith_reg_operand().
13048         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
13049         * config/sh/sh.md (casesi): Sign-extend the first two operands,
13050         and use signed compares for them.
13051         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
13052         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
13053         ones properly aligned.
13054         (find_barrier): Account for extra alignment needed for 8-byte wide
13055         constants.
13056         (machine_dependent_reorg): Require a label for the second 4-byte
13057         constant after an 8-byte one.
13058         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
13059         change.
13060         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13061         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
13062         last_float when switching float modes.
13063         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
13064         auto-increment for general-purpose registers.
13065         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
13066         result.
13067         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
13068         for stack adjust.
13069         * config/sh/sh.c (sh_builtin_saveregs): Support using all
13070         registers for varargs.
13071         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
13072         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
13073         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
13074         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
13075         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
13076         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
13077         call_cookie accordingly.
13078         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
13079         (SHCOMPACT_BYREF): Likewise.
13080         (SHCOMPACT_FORCE_ON_STACK): New macro.
13081         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
13082         (sh_builtin_saveregs): Likewise.
13083         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13084         shcompact_incoming_args): Use new shift values.  Support
13085         sequences of consecutive and non-consecutive pushes/pops.
13086         * config/sh/sh.md (return): Don't explicitly use PR_REG.
13087         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
13088         * config/sh/sh.h (TEXT_SECTION): Define.
13089         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13090         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13091         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13092         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13093         return values on FPU-enabled SHmedia.
13094         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13095         FPU-enabled SHmedia.
13096         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13097         value is returned in a non-FP reg and is not returned by
13098         reference.
13099         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13100         jump_ind.
13101         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
13102         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13103         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13104         quad-aligned to be passed by callee-copy reference.
13105         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
13106         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13107         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13108         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
13109         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13110         copying low-numbered FP regs to r7 and r8.
13111         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13112         FP regs to general-purpose regs only if the copy was passed on the
13113         stack.
13114         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13115         copying FP reg to r9.
13116         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13117         copy FP regs to general-purpose regs only in outgoing calls.
13118         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13119         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
13120         HOST_WIDE_INT.
13121         * config/sh/sh.h (struct sh_args): Document all fields.
13122         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13123         passed partially on the stack should not consider making
13124         sibcalls.
13125         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13126         stack_regs only for incoming calls.  When passing FP args,
13127         make sure there are FP regs available before modifying
13128         call_cookie.
13129         (SHCOMPACT_BYREF): Pass double args in general-purpose
13130         registers by reference.
13131         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
13132         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13133         attempt to generate sibcalls if the caller got any arguments
13134         by reference.
13135         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13136         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13137         to 8-byte boundaries.
13138         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13139         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13140         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13141         stored in the stack.
13142         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13143         for the offsets to have the ISA bit set.
13144         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
13145         invocation.  Use beq instead of bgt to mark end of sequence of
13146         loads.
13147         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
13148         bgt to mark end of sequence of stores.
13149         * config/sh/sh.c (arith_operand): Don't check whether
13150         CONST_OK_FOR_J for now.
13151         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13152         instead of long for conversion.
13153         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
13154         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13155         before passing it to fprintf.
13156         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
13157         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13158         Call set_fpscr before reading/writing SR.
13159         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13160         Call set_fpscr.
13161         * config/sh/lib1funcs.asm: Add `.align 2' directives before
13162         SHmedia code.
13163         (FMOVD_WORKS): Define on SH5 with FPU.
13164         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
13165         setting.
13166         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13167         _fpscr_values.
13168         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
13169         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13170         address.
13171         (ia_main_table): Ditto.
13172         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
13173         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13174         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13175         the definitions from sh.h.
13176         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13177         TARGET_SH5.
13178         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13179         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13180         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13181         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
13182         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13183         Increment LABEL_NUSES.
13184
13185         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13186         TARGET_SH5.
13187         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13188         defined.
13189         * config/sh/elf.h (SIZE_TYPE): Likewise.
13190         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13191         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13192         shcompact_incoming_args): Load switch table addresses using
13193         datalabel.
13194         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13195         (NO_BUILTIN_SIZE_TYPE): Define.
13196         (SIZE_TYPE): Don't define.
13197         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13198         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13199         definition of __SH5__=32 for -m5-compact-nofpu.
13200         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13201         ADDR_DIFF_VEC.
13202         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
13203         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13204         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
13205         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13206         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13207         (INSN_LENGTH_ALIGNMENT): Likewise.
13208         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13209         * config/sh/sh.md (call, call_value, sibcall): Simplify
13210         copying of non-branch-target register.
13211         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13212         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
13213         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13214         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13215         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13216         floating-point values as structs.
13217         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13218         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13219         general-purpose register.
13220         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13221         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13222         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13223         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13224         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13225         (ENCODE_SECTION_INFO): Enclose variables and constants in
13226         DATALABEL unspecs.
13227         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13228         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13229         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13230         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13231         only for LABEL_REFs.  For SYMBOL_REFs, prepend
13232         SH_DATALABEL_ENCODING to the symbol name.
13233         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13234         convert_mode().
13235         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13236         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13237         UNSPEC_DATALABEL.
13238         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13239         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13240         (DATALABEL_REF_P): Don't require CONST.
13241         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13242         REL label.
13243         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
13244         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13245         right.
13246         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13247         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13248         Use shallow_copy_rtx and PUT_MODE to change the mode of
13249         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13250         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13251         on SHmedia using GENERAL_REGs.
13252         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13253         bltu_media_i): Fix reversion of conditions.
13254         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13255         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13256         * config/sh/sh.c (output_far_jump): Save r13 in macl.
13257         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
13258         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13259         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13260         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13261         (GCC_nested_trampoline): Likewise.
13262         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13263         * config/sh/sh.c (gen_datalabel_ref): Define.
13264         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13265         (INITIALIZE_TRAMPOLINE): Likewise.
13266         (TRAMPOLINE_ADJUST_ADDRESS): Define.
13267         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13268         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13269         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13270         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13271         (ic_invalidate): Adjust for SH5.
13272         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13273         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13274         _nested_trampoline.
13275         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
13276         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13277         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13278         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13279         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13280         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13281         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13282         * config/sh/sh.c (target_reg_operand): Match only target-branch
13283         registers and pseudos that aren't virtual registers.
13284         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13285         Copy operands that don't match target_reg_operand to pseudos.
13286         (call_media, call_value_media, sibcall_media): Use
13287         target_reg_operand instead of target_operand.
13288         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
13289         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13290         * config/sh/sh.c (target_reg_operand): Match hardware registers
13291         other than branch-target registers.
13292         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13293         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13294         (fpscr_values) [SH5 == 32]: Define.
13295         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13296         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13297         Handle function addresses coming in SUBREGs.
13298         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13299         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13300         shcompact_return_trampoline): Use datalabel where appropriate.
13301         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13302         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13303         general-purpose register to copy one branch-target register to
13304         another.
13305         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13306         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13307         SYMBOL_REFs with VOIDmode.
13308         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13309         bltu_media_i): New insns.
13310         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13311         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13312         (INIT_CUMULATIVE_ARGS): Likewise.
13313         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13314         * machmode.def (V16SFmode): New mode.
13315         * c-common.c (type_for_mode): Support V2SF and V16SF.
13316         * tree.c (build_common_tree_nodes_2): Likewise.
13317         * tree.h (tree_index): Likewise.
13318         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13319         callers.  Introduce CALL_POPS_ARGS.
13320         * tm.texi (CALL_POPS_ARGS): Document.
13321         * config/sh/crt1.asm: Implement in SHmedia mode.
13322         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13323         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13324         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13325         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13326         Implement divsi and udivsi in SHmedia mode.  Introduce
13327         SHcompact trampolines.
13328         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13329         only in SHmedia64.
13330         (regno_reg_class): Rewrite.
13331         (fp_reg_names): Remove.
13332         (sh_register_names, sh_additional_register_names): New.
13333         (print_operand): Added `u'.  Support SUBREGs in addresses.
13334         Add parentheses around shifted CONSTs.
13335         (output_file_start): Output .mode and .abi directives.
13336         (shiftcosts, addsubcosts, multcosts): Adjust.
13337         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13338         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13339         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13340         bytes, not registers.  Take into account the need for the
13341         SHcompact incoming args trampoline.  Adjust all callers.
13342         (sh_expand_prologue): Take stack_regs into account.  Call
13343         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13344         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13345         stack aligned as per SH5 ABI.
13346         (sh_builtin_saveregs): Support SH5 ABI.
13347         (sh_build_va_list, sh_va_start): Likewise.
13348         (initial_elimination_offset): Take alignment into account.
13349         Compute location of PR according to the SH5 stack frame.
13350         (arith_reg_operand): Reject branch-target registers.
13351         (shmedia_6bit_operand): New.
13352         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13353         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13354         (target_operand): New.
13355         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13356         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13357         SIBCALL_REGS for SHmedia.
13358         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13359         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13360         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13361         (TARGET_SWITCHES): New SH5 flags.
13362         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13363         VALID_REGISTER_P to disable unsupported registers.
13364         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13365         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13366         (FUNCTION_ARG_PADDING): Define.
13367         (FASTEST_ALIGNMENT): Adjust.
13368         (SH_REGISTER_NAMES_INITIALIZER): New.
13369         (sh_register_names): Declare.
13370         (DEBUG_REGISTER_NAMES): Define.
13371         (REGISTER_NAMES): Define based on sh_register_names.
13372         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13373         (sh_additional_register_names): Declare.
13374         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13375         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13376         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13377         (REGISTER_NATURAL_MODE): Define.
13378         (FIRST_PSEUDO_REGISTER): Adjust.
13379         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13380         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13381         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13382         (VECTOR_MODE_SUPPORTED_P): Define.
13383         (REG_CLASS_CONTENTS): Adjust.
13384         (SMALL_REGISTER_CLASSES): Adjust.
13385         (REG_ALLOC_ORDER): Adjust.
13386         (INDEX_REG_CLASS): Adjust.
13387         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13388         (CONST_OK_FOR_LETTER_P): Adjust.
13389         (PREFERRED_RELOAD_CLASS): Adjust.
13390         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13391         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13392         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13393         (FIRST_FP_PARM_REG): Adjust.
13394         (CALL_POPS_ARGS): Define.
13395         (FUNCTION_ARG_REGNO_P): Adjust.
13396         (struct sh_args): New fields.
13397         (GET_SH_ARG_CLASS): Adjust.
13398         (INIT_CUMULATIVE_ARGS): Adjust.
13399         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13400         (FUNCTION_ARG_ADVANCE): Adjust.
13401         (FUNCTION_ARG): Adjust.
13402         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13403         (FUNCTION_ARG_CALLEE_COPIES): Define.
13404         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13405         (STRICT_ARGUMENT_NAMING): Define.
13406         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13407         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13408         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13409         (SETUP_INCOMING_VARARGS): Adjust.
13410         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13411         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13412         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13413         (SUBREG_OK_FOR_INDEX_P): Adjust.
13414         (EXTRA_CONSTRAINT_S): Update.
13415         (EXTRA_CONSTRAINT_T): New.
13416         (EXTRA_CONSTRAINT): Adjust.
13417         (GO_IF_LEGITIMATE_INDEX): Adjust.
13418         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13419         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13420         (MOVE_MAX): Adjust.
13421         (MAX_MOVE_MAX): Define.
13422         (Pmode): Adjust.
13423         (CONST_COSTS): Adjust.
13424         (REGISTER_MOVE_COST): Adjust.
13425         (BRANCH_COST): Adjust.
13426         (TEXT_SECTION_ASM_OP): Adjust.
13427         (DBX_REGISTER_NUMBER): Adjust.
13428         (ASM_OUTPUT_DOUBLE_INT): New.
13429         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13430         (PREDICATE_CODES): Adjust.
13431         (PROMOTE_MODE): Adjust.
13432         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13433         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13434         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13435         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13436         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13437         (TR0_REG, TR1_REG, TR2_REG): New.
13438         (XD0_REG): Renumber.
13439         (UNSPEC_COMPACT_ARGS): New.
13440         (type): Added pt and ptabs.
13441         (length): Default to 4 on SHmedia.  Default pt length to 12
13442         and     20 on SHmedia32 and SHmedia64, respectively.
13443         (pt): New function unit.
13444         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13445         Add whitespace between operands of SHmedia instructions.
13446         (movdicc): Fix.
13447         (adddi3_media, addsi3_media): Adjust constraints.
13448         (subsi3) [SHmedia]: Force operand 1 into a register.
13449         (udivsi3_i1_media, udivsi3_i4_media): New.
13450         (udivsi3): Support SHmedia.
13451         (divsi3_i1_media, divsi3_i4_media): New.
13452         (divsi3): Support SHmedia.
13453         (anddi3, iordi3, xordi3): Adjust constraints.
13454         (zero_extendhidi2, zero_extendqidi2): New.
13455         (extendsidi2, extendhidi2, extendqidi2): New.
13456         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13457         (pop_e, pop_fpul, pop_4): Likewise.
13458         (movsi_media): Support FP and BT registers.
13459         (movsi_media_nofpu): New.  Adjust splits to DImode.
13460         (lduw, ldub): Renamed to zero_extend* above.
13461         (movqi_media): Fix typo.
13462         (movdi_media): Support FP and BT registers.
13463         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13464         (movdi_const_32bit): New.
13465         (shori_media): Require immediate operand.  Use `u' for output.
13466         (movdf_media, movsf_media): Simplified.
13467         (movdf_media_nofpu, movsf_media_nofpu): New.
13468         (movdf, movsf): Adjust
13469         (movv2sf, movv2sf, movv16sf): New.
13470         (beq_media, beq_media_i): Adjust constraints.  Don't use
13471         scratch BT register.
13472         (bne_media, bne_media_i): Likewise.
13473         (bgt_media, bgt_media_i): Likewise.
13474         (bge_media, bge_media_i): Likewise.
13475         (bgtu_media, bgtu_media_i): Likewise.
13476         (bgeu_media, bgeu_media_i): Likewise.
13477         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13478         bunordered): Emit jump insn.  Force operands to registers when
13479         needed.
13480         (jump_media, jump): Simplify.
13481         (call_compact, call_compact_rettramp): New.
13482         (call_value_compact, call_value_compact_rettramp): New.
13483         (call_media, call_value_media): Simplify.
13484         (sibcall_compact, sibcall_media): New.
13485         (call, call_value): Adjust for SHmedia and SHcompact.
13486         (sibcall, sibcall_value, untyped_call): Likewise.
13487         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13488         (indirect_jump): Adjust for SHmedia.
13489         (casesi_jump_media): New.
13490         (nop): Re-enable for SHmedia.
13491         (call_site): Restrict to SH1.
13492         (casesi): Adjust for SHmedia.
13493         (casesi_shift_media, casesi_load_media): New.
13494         (return): Explicitly use PR register.  Call return trampoline
13495         on SHcompact.
13496         (return_i): Explicitly use PR register.
13497         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13498         (return_media): Adjust.
13499         (shcompact_incoming_args): New.
13500         (epilogue): Adjust.
13501         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13502         (movstrsi): Disable on SH5.
13503         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13504         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13505         (subsf3, subsf3_media): Likewise.
13506         (mulsf3, mulsf3_media, mac_media): Likewise.
13507         (divsf3, divsf3_media): Likewise.
13508         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13509         (floatsisf2, fux_truncsfsi2): Likewise.
13510         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13511         constraints.
13512         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13513         (cmpunsf_media, cmpsf): Likewise.
13514         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13515         (abssf2, abssf2_media): Likewise.
13516         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13517         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13518         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13519         (floatsidf2, fix_truncdfsi2): Likewise.
13520         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13521         constraints.
13522         (cmpeqdf_media, cmpgtdf_media): Likewise.
13523         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13524         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13525         (absdf2, absdf2_media): Likewise.
13526         (extendsfdf2, extendsfdf2_media): Likewise.
13527         (truncsfdf2, truncsfdf2_media): Likewise.
13528         * config/sh/sh64.h: New file.
13529         * config/sh/t-sh64: New file.
13530         * config/sh/shmedia.h: New file.
13531         * config/sh/ushmedia.h: New file.
13532         * config/sh/sshmedia.h: New file.
13533         * configure.in: Added sh64-*-elf.
13534         * configure: Rebuilt.
13535         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13536         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13537         (reg_class_from_letter): Use `b' for TARGET_REGS.
13538         (print_operand): Support `%M', `%m', `AND' and
13539         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13540         (andcosts): Adjust for SHmedia.
13541         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13542         Likewise.
13543         (target_reg_operand): New function.
13544         * config/sh/sh-protos.h (target_reg_operand): Declare.
13545         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13546         FP registers on SH5.
13547         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13548         on SH4.
13549         (TARGET_REGISTER_P): New macro.
13550         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13551         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13552         (EXTRA_CONSTRAINT_S): New macro.
13553         (EXTRA_CONSTRAINT): Adjust.
13554         (FLOAT_TYPE_SIZE): Define to 32.
13555         (Pmode): DImode on SHmedia.
13556         (CONST_COSTS): Adjust for SHmedia literals.
13557         (PREDICATE_CODES): Added target_reg_operand.
13558         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13559         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13560         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13561         (cmpdi): Accept SHmedia.
13562         (movdicc_false, movdicc_true): New insns.
13563         (movdicc): New expand.
13564         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13565         no_new_pseudos.
13566         (addsi3_media): Match `S' constraint.
13567         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13568         (negdi2): Expand for SHmedia.
13569         (one_cmpldi2): New expand.
13570         (zero_extendsidi2): Change from expand to insn.
13571         (extendsidi2): Add constraints.
13572         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13573         LD/ST address.  Fix SI immediate loading split.
13574         (movhi_media, movqi_media, lduw, ldub): New insns.
13575         (movhi, movqi): Accept SHmedia.
13576         (shori_media, movdi_media): Relax input constraints.  Split
13577         symbolic constants.
13578         (movdf_media, movsf_media): New insn.  New split to movdi.
13579         (movdf, movsf): Match on SHmedia.
13580         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13581         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13582         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13583         (bunordered): New expand.
13584         (jump_compact): Renamed from `jump'.
13585         (jump_media): New insn.
13586         (jump): New expand.
13587         (call_media, call_value_media): New insns.
13588         (call, call_value): Adjust.
13589         (indirect_jump_compact): Renamed from `indirect_jump'.
13590         (indirect_jump_media): New insn.
13591         (indirect_jump): New expand.
13592         (untyped_call, return): Accept SHmedia.
13593         (return_media): New insn.
13594         (prologue, epilogue, blockage): Accept SHmedia.
13595         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13596         (sunordered): New expand.
13597         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13598         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13599         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13600         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13601         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13602         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13603         abssf2_media): New insns.
13604         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13605         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13606         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13607         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13608         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13609         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13610         absdf2_media): New insns.
13611         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13612         (extendsfdf2_media, truncdfsf2_media): New insns.
13613         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13614         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13615         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13616         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13617         * config/sh/sh.md (adddi3): New expand.
13618         (adddi3_media, adddi3z_media): New insns.
13619         (adddi3_compact): Renamed from adddi3.
13620         (addsi3_media): Use add.l r63 to add constant zero.
13621         (subdi3): New expand.
13622         (subdi3_media): New insn.
13623         (subdi3_compact): Renamed from subdi3.
13624         (mulsidi3): New expand.
13625         (mulsidi3_media): New insn.
13626         (mulsidi3_compact): Renamed from mulsidi3.
13627         (umulsidi3): New expand.
13628         (umulsidi3_media): New insn.
13629         (umulsidi3_compact): Renamed from umulsidi3.
13630         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13631         (ashlsi3, ashrsi3, lshrsi3): Use them.
13632         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13633         (ashldi3, ashrdi3, lshrdi3): Use them.
13634         (zero_extendsidi2): New expand.
13635         (extendsidi2): New insn.
13636         (movsi_media): New insn.  Split to movdi to load constants.
13637         (movsi): Enable for shmedia.
13638         (movdi_media): New insn.  Use shori_media to load wide constants.
13639         (short_media): New insn.
13640         (movdi): Enable for shmedia.
13641         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13642         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13643         (SUBTARGET_CPP_SPEC): Added `!m5'.
13644         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13645         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13646         to all other SH variants.
13647         (TARGET_DEFAULT): Set to SH1_BIT.
13648         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13649         (BITS_PER_WORD): Raise to 64 on shmedia.
13650         (MAX_BITS_PER_WORD): Change to 64.
13651         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13652         (INT_TYPE_SIZE): Keep as 32.
13653         (UNITS_PER_WORD): Raise to 8 on shmedia.
13654         (MIN_UNITS_PER_WORD): Keep as 4.
13655         (POINTER_SIZE): Raise to 64 on shmedia.
13656         (CONST_OK_FOR_J): New macro.
13657         (CONST_OK_FOR_LETTER_P): Use it.
13658         (processor_type): Add PROCESSOR_SH5.
13659         * config/sh/sh.md: Conditionalize all expands, insns and
13660         splits to TARGET_SH1.
13661         (cpu): Added sh5.
13662         (addsi3_compact): Renamed from...
13663         (addsi3): Now an expand.
13664         (addsi3_media, subsi3_media): New insns.
13665         (subsi3): Don't negate constants with SHmedia.
13666
13667         * hooks.c: New file.
13668         * hooks.h: New file.
13669         * Makefile.in (HOOKS_H): New.
13670         (TARGET_DEF_H): Added $(HOOKS_H).
13671         (OBJS): Added hooks.o.
13672         (cfgcleanup.o, bb-reorder.o): Added target.h.
13673         (hooks.o): Added dependencies.
13674         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13675         (TARGET_INITIALIZER): this.
13676         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13677         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13678         * bb-reorder.c: Include target.h.
13679         (reorder_basic_blocks): Skip if cannot modify jumps.
13680         * cfgcleanup.c: Include target.h.
13681         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13682
13683 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13684
13685         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13686         Protect jump delay slot instructions with .set noreorder and
13687         .set nomacro.
13688
13689 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13690
13691         * config/mips/mips.md (casesi_internal_di): Calculate
13692         the index into the target offset table correctly.
13693
13694 2002-02-08  Richard Henderson  <rth@redhat.com>
13695
13696         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13697         * final.c (output_addr_const): Accept and discard SUBREG.
13698         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13699         mark them unknown instead.
13700         (simplify_subtraction): Handle RTX_UNKNOWN.
13701         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13702
13703 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13704
13705         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13706
13707 2002-02-08  Richard Henderson  <rth@redhat.com>
13708
13709         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13710
13711 2002-02-08  Andreas Jaeger  <aj@suse.de>
13712
13713         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13714         * config/i386/t-linux64: New file.
13715
13716 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13717
13718         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13719         * c-parse.in (compstmt): Clear last_expr_type.
13720
13721 2002-02-07  Richard Henderson  <rth@redhat.com>
13722
13723         * loop.c (strength_reduce): Sink final_value when not
13724         eliminating a biv.
13725
13726 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13727
13728         * config/sparc/freebsd.h: Fix mismatched spec {.
13729
13730 2002-02-07  Richard Henderson  <rth@redhat.com>
13731
13732         * cfgrtl.c: Include recog.h and insn-config.h.
13733         (keep_with_call_p): Fix general_operand invocation.
13734         * Makefile.in (cfgrtl.o): Update dependencies.
13735
13736 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13737
13738         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13739         comment.  Accept HImode only if TARGET_H8300.
13740
13741 2002-02-07  Eric Christopher  <echristo@redhat.com>
13742
13743         * config/mips/crtn.asm: Cleanup #ifdefs.
13744
13745 2002-02-07  Eric Christopher  <echristo@redhat.com>
13746
13747         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13748         register 7 as RA instead of $31.
13749         * config/mips/crtn.asm: Ditto.
13750         * config/mips/mips.c (mips_move_2words): Add case for
13751         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13752         (compute_frame_size): Fix typo.
13753         (save_restore_insns): Ditto.  Make documentation about using
13754         register $7 as return register more precise.
13755         (mips_expand_epilogue): Fix comment. Add code to work around not
13756         being able to add to the stack pointer directly.
13757         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13758         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13759         epilogue.
13760
13761 2002-02-07  Tom Rix  <trix@redhat.com>
13762
13763         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13764         immediates in ldu and stdu DS opcode field.
13765         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13766         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13767         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13768
13769 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13770
13771         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13772         offset for stack bias.
13773
13774 2002-02-07  H.J. Lu <hjl@gnu.org>
13775
13776         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13777
13778 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13779
13780         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13781
13782 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13783
13784         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13785         * i386.c (x86_order_regs_for_local_alloc): New global function.
13786         * i386.h (REG_ALLOC_ORDER): CLeanup.
13787         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13788
13789 2002-02-07  Richard Henderson  <rth@redhat.com>
13790
13791         PR optimization/2463
13792         * alias.c (find_base_value): Recall base values for fixed hard regs.
13793         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13794
13795 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13796
13797         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13798         length.
13799
13800 2002-02-06  Richard Henderson  <rth@redhat.com>
13801
13802         PR c/5609
13803         * stmt.c (resolve_operand_name_1): Take more care with mixed
13804         named and unnamed operands.
13805
13806 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13807             Jan Hubicka  <jh@suse.cz>
13808
13809         * loop.c (remove_constant_addition): Avoid clobbering a shared
13810         CONST expression.
13811
13812 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13813
13814         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13815         * config/s390/t-linux64: New file.
13816         * config/s390/libgcc-glibc.ver: New file.
13817
13818 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13819
13820         * config/s390/linux64.h: Delete file.
13821         * config/s390/s390x.h: New file.
13822         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13823         as target header file.
13824         * config/s390/linux.h (TARGET_VERSION): Define depending on
13825         DEFAULT_TARGET_64BIT.
13826         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13827         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13828         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13829         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13830         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13831         (EXTRA_SPEC): New define.
13832         * config/s390/s390.h (TARGET_VERSION): Define depending on
13833         DEFAULT_TARGET_64BIT.
13834         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13835
13836 2002-02-06  Jason Merrill  <jason@redhat.com>
13837
13838         * c-decl.c (finish_function): Warn about a non-void function with
13839         no return statement and no abnormal exit.
13840         (current_function_returns_abnormally): New variable.
13841         (start_function): Clear it.
13842         (struct c_language_function): Add returns_abnormally.
13843         (push_c_function_context): Save it.
13844         (pop_c_function_context): Restore it.
13845         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13846         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13847         an explicit return type.
13848         * c-tree.h: Declare current_function_returns_abnormally.
13849         (C_FUNCTION_IMPLICIT_INT): New macro.
13850         * c-typeck.c (build_function_call): Set it.
13851         (c_expand_return): Set current_function_returns_value even if the
13852         value is erroneous.
13853
13854 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13855
13856         PR c/5420:
13857         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13858         unsafe for reevaluation.
13859
13860 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13861
13862         PR c/5482:
13863         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13864         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13865
13866 2002-02-06  Richard Henderson  <rth@redhat.com>
13867
13868         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13869         be a general_operand.  Dest for function value must be a pseudo.
13870
13871 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13872
13873         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13874         as SYMBOL_REFs from the constant pool.
13875
13876 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13877
13878         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13879         passed by invisible reference.
13880
13881 2002-02-05  Richard Henderson  <rth@redhat.com>
13882
13883         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13884
13885 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13886
13887         Implement using "base addresses" in insn operands as default.
13888         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13889         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13890         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13891         used to read the rtx value.
13892         (mmix_target_asm_function_epilogue): Fix spacing.
13893         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13894         (mmix_legitimate_address): Ditto.
13895         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13896         should be loaded with a GETA insn.  Don't allocate needless extra
13897         char for nul termination and fix misleading comment.
13898         (mmix_print_operand_address): Handle constants if
13899         TARGET_BASE_ADDRESSES.
13900         (mmix_output_register_setting): Use base addressing if
13901         TARGET_BASE_ADDRESSES and the number of insns is 3.
13902         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13903         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13904         to use R as constraint, add LDA to match s.
13905         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13906         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13907         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13908         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13909         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13910         order with other fixed registers.
13911         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13912         other parameter/call-clobbered registers.
13913         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13914         -mbase-addresses, -mno-base-addresses.
13915         (MMIX Options): Ditto.
13916
13917 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13918
13919         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13920
13921 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
13922
13923         * config/rs6000/altivec.h: Change elem to _S_elem.
13924
13925 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13926
13927         * config/netbsd.h (WCHAR_TYPE): Define.
13928         (WCHAR_TYPE_SIZE): Ditto.
13929         (WINT_TYPE): Ditto.
13930         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13931         (WCHAR_UNSIGNED): Ditto.
13932         (WCHAR_TYPE_SIZE): Ditto.
13933         (WINT_TYPE): Ditto.
13934         * config/arm/netbsd.h: Likewise.
13935         * config/i386/netbsd-elf.h: Likewise.
13936         * config/i386/netbsd.h: Likewise.
13937         * config/m68k/netbsd-elf.h: Likewise.
13938         * config/m68k/netbsd.h: Likewise.
13939         * config/ns32k/netbsd.h: Likewise.
13940         * config/sparc/netbsd.h: Likewise.
13941         * config/vax/netbsd.: Likewise.
13942
13943 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
13944
13945         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13946         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
13947         (TARGET_INITIALIZER): this.
13948         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13949         (BITFIELD_NBYTES_LIMITED): Markup fix.
13950         * tree.h (default_ms_bitfield_layout_p): Declare.
13951         (record_layout_info): Added prev_field.
13952         * tree.c (default_ms_bitfield_layout_p): New fn.
13953         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13954         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13955         * stor-layout.c: Include target.h.
13956         (start_record_layout): Initialize prev_field.
13957         (place_field): Handle MS bit-field layout, and disregard
13958         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13959         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
13960         * Makefile.in (stor-layout.o): Adjust dependencies.
13961
13962 2002-02-05  Jason Merrill  <jason@redhat.com>
13963
13964         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13965
13966 2002-02-05  Andreas Jaeger  <aj@suse.de>
13967
13968         * crtstuff.c: Fix comments.
13969
13970 2002-02-05  Richard Henderson  <rth@redhat.com>
13971
13972         PR fortran/3393
13973         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13974         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13975
13976         PR fortran/3392
13977         * config/mips/mips.c (function_arg): Handle TImode.
13978         (function_arg_advance): Likewise.
13979
13980 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13981
13982         * config/rs6000/altivec.h (vec_step_help): Rename to
13983         __vec_step_help.
13984
13985 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13986
13987         * config/rs6000/altivec.h: Fix typos.
13988
13989 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13990
13991         * config/arm/netbsd.h: Correct a comment.
13992
13993 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13994
13995         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13996         building void typed builtins.
13997
13998         * config/rs6000/altivec.h (vec_ld*): Fix typos.
13999         (vec_step): Implement for C++.
14000
14001 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14002
14003         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
14004
14005 2002-02-04  Richard Henderson  <rth@redhat.com>
14006
14007         * combine.c (nonzero_bits): Re-introduce special case for
14008         sp/fp/ap wrt REGNO_POINTER_ALIGN.
14009
14010 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
14011
14012         * doc/extend.texi: Warn about unsupported usage of altivec
14013         builtins.
14014
14015         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
14016         (altivec_predicate_*): New.
14017
14018         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
14019         Add C++ version of vec_*() functions.
14020
14021         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
14022         (bdesc_2arg): Remove altivec predicates.
14023         (altivec_expand_builtin): Handle predicates.
14024         (altivec_init_builtins): Handle predicates.
14025         (altivec_expand_predicate_builtin): New.
14026
14027 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14028
14029         * pa.c (DO_FRAME_NOTES): Move forward.
14030         (store_reg): Revise handling of frame notes.
14031         (load_reg): Likewise.
14032         (set_reg_plus_d): Likewise.
14033         (hppa_expand_prologue): Likewise.
14034         (hppa_expand_epilogue): Likewise.
14035
14036 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14037
14038         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
14039
14040 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14041
14042         PR c/4475, c++/3780:
14043         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
14044         * c-common.h (SWITCH_TYPE): Define.
14045         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
14046         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
14047         Rename spareness variable to sparseness.
14048         (expand_end_case_type): Renamed from expand_end_case, use orig_type
14049         if non-NULL instead of TREE_TYPE (orig_index).
14050         * tree.h (expand_end_case_type): Renamed from expand_end_case.
14051         (expand_end_case): Define using expand_end_case_type.
14052         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
14053         to expand_end_case_type.
14054         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
14055
14056 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14057
14058         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
14059         (BIGGEST_ALIGNMENT): Change to 128.
14060
14061 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14062
14063         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
14064
14065 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14066
14067         * pa.md (call_internal_reg_64bit): Remove unused variable.
14068
14069 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
14070
14071         * config/arm/arm.h (machine_function): Add uses_anonymous_args
14072         field.
14073         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
14074         * config/arm/arm.c (current_function_anonymous_args): Delete,
14075         replace uses with cfun->machine->uses_anonymous_args.
14076         (arm_reorg): Do not reset uses_anonymous_args.
14077
14078         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
14079         any geenral register.
14080
14081 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
14082
14083         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
14084         the entry block.
14085
14086 2002-02-04  Richard Henderson  <rth@redhat.com>
14087
14088         * combine.c (force_to_mode): Remove STACK_BIAS code.
14089         (nonzero_bits): Likewise.  Replace sp/fp special case with
14090         REGNO_POINTER_ALIGN.
14091
14092         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14093         (HARD_FRAME_POINTER_REGNUM): New.
14094         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14095         (FIXED_REGS, CALL_USED_REGS): Update.
14096         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14097         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14098         (HARD_REGNO_NREGS): Update for SFP.
14099         (STACK_POINTER_OFFSET): Include bias here ...
14100         (FIRST_PARM_OFFSET): ... not here.
14101         (STACK_BIAS): Remove.
14102         (INIT_EXPANDERS): New.
14103         (STARTING_FRAME_OFFSET): Do not include bias.
14104         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14105         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14106         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14107         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14108         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14109         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14110         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14111         (MUST_SAVE_REGISTER): Likewise.
14112         (sparc_flat_function_prologue): Likewise.
14113         (sparc_flat_function_epilogue): Likewise.
14114         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14115         (sparc_init_modes): SFP is GENERAL_REGS.
14116         (sparc_builtin_saveregs): SFP does not have bias applied.
14117
14118 2002-02-04  Richard Henderson  <rth@redhat.com>
14119
14120         * config/alpha/alpha.c (current_function_is_thunk): Don't check
14121         current_function_is_thunk.
14122         (alpha_sa_mask): Distinguish between current_function_is_thunk
14123         called from ASM_OUTPUT_MI_THUNK and not.
14124         (alpha_does_function_need_gp): Thunks always need gp.
14125         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14126         (alpha_output_mi_thunk_osf): New.
14127         * config/alpha/alpha-protos.h: Update.
14128         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14129
14130 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
14131
14132         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14133         function types, not when they're taken away.
14134
14135 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
14136
14137         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14138         CODE_LABEL and jump table when replacing a table jump with a
14139         simple jump.
14140
14141 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14142
14143         * config/s390/s390-protos.h (legitimize_la_operand,
14144         s390_secondary_input_reload_class, s390_plus_operand,
14145         s390_expand_plus_operand): Add prototypes.
14146
14147         config/s390/s390.c (s390_secondary_input_reload_class,
14148         s390_plus_operand, s390_expand_plus_operand): New functions.
14149
14150         (struct s390_address): New member 'pointer'.
14151         (s390_decompose_address): Compute it.
14152         (legitimate_la_operand_p): Use it.
14153         (legitimize_la_operand): New function.
14154         (movti, movdi, movdf splitters): Call it.
14155
14156         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14157         (PREDICATE_CODES): Add s390_plus_operand.
14158
14159         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14160         (la_ccclobber): Allow GENERAL_REGS as output operand.
14161
14162         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14163         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14164         (*la_64, *la_31, reload_indi, reload_insi): ... these.
14165
14166 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14167
14168         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14169         register names for regular asm () construct.
14170
14171 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14172
14173         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14174         registers.
14175
14176 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14177
14178         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14179         pat for recog.
14180
14181 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
14182
14183         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14184         constant pool to be identical by string address and index.
14185
14186 2002-02-04  Anthony Green  <green@redhat.com>
14187
14188         * output.h (SECTION_OVERRIDE): Define.
14189         * varasm.c (named_section): Obey SECTION_OVERRIDE.
14190
14191 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14192
14193         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14194         by existing arm*-*-netbsd* (a.out) target.
14195         (ns32k-*-netbsdelf*): Likewise.
14196         (sparc-*-netbsdelf*): Likewise.
14197         (vax-*-netbsdelf*): Likewise.
14198
14199 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
14200
14201         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14202         headers and libobjc headers.
14203
14204 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
14205
14206         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14207         (_mingw.h): Remove duplicate include.
14208
14209 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14210
14211         * config.gcc: Set cpu_type to m68k for 68010, as well.
14212         (m68010-*-netbsdelf*): New...
14213         (m68k*-*-netbsdelf*): ...targets.
14214         * config/m68k/netbsd-elf.h: New file.
14215
14216 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14217
14218         * config/h8300/h8300.c (hand_list): Move inside function_arg.
14219
14220 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14221
14222         * config/h8300/h8300.c (h8_push_ops): Move inside
14223         h8300_init_once.
14224         (h8_pop_ops): Likewise.
14225         (h8_move_ops): Likewise.
14226
14227 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14228
14229         * config/h8300/h8300.c (os_task): Make it static.
14230         (monitor): Likewise.
14231         (pragma_saveall): Likewise.
14232
14233 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
14234
14235         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14236         constant is a valid sign-extension for Pmode.
14237
14238 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14239
14240         * config/h8300/h8300.c: Fix formatting.
14241
14242 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14243
14244         * config/h8300/h8300.md: Fix formatting.
14245
14246 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14247
14248         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14249         predicates of operands[1].  Split the patterns for each
14250         processor variant.
14251
14252 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14253
14254         * config/h8300/h8300.md (xor patterns): Tighten the predicates
14255         of operands[1] to register_operand.
14256
14257 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14258
14259         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14260         * cpphash.c (_cpp_init_hashtable): Similarly.
14261         * cppinit.c (cpp_create_reader): Default the signed_char flag.
14262         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14263         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14264         (cpp_handle_option): Handle the new options.
14265         * cpplex.c (cpp_interpret_charconst): Use new flag.
14266         * cpplib.h (struct cpp_options): New member signed_char.
14267         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14268         (cpp_options): Handle -fsigned-char and -funsigned-char.
14269         (static_specs): Remove signed_char_spec.
14270         (do_spec1): Don't handle %c.
14271         * system.h: Poison SIGNED_CHAR_SPEC.
14272         * tradcif.y (yylex): Use flag_signed_char.
14273         * tradcpp.h (flag_signed_char): New.
14274         * tradcpp.c (flag_signed_char): New.
14275         (main): Handle new command-line options.
14276         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14277 config:
14278         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14279         * avr/avr.h: Remove old comments.
14280         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14281         (CC1_SPEC): Pass -fsigned-char if -mic*.
14282         (SIGNED_CHAR_SPEC): Remove.
14283 doc:
14284         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14285
14286 2002-02-01  Eric Christopher  <echristo@redhat.com>
14287
14288         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14289         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14290         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14291         (ASM_OUTPUT_REG_POP): Ditto.
14292
14293 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14294
14295         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14296         patch.
14297
14298 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14299
14300         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14301
14302 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14303
14304         PR c/5304:
14305         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14306         unconditionally.
14307
14308 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14309
14310         * cfganal.c: Include tm_p.h.
14311         (keep_with_call_p): Fix the test that determines if a register holds
14312         the return value of a call.
14313
14314 2002-02-01  DJ Delorie  <dj@redhat.com>
14315
14316         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14317         we are given conflicting registers, switch to the other one we
14318         had allocated for us.
14319         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14320         as TImode so we know when the "other" register is available.
14321
14322 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14323
14324         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14325         sparc/sparc_bi.h.
14326
14327 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14328
14329         * cfganal.c (keep_with_call_p): New function.
14330         (flow_call_edges_add): Prevent splitting a block between a call and
14331         a single-set instruction that should be kept in the same block.
14332
14333 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14334
14335         * doc/install.texi (avr): Update outdated URL.
14336
14337 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14338
14339         * config/stormy16/stormy16.md (pushqi): New.
14340         (popqi): New.
14341         (pushhi): New.
14342         (pophi): New.
14343         (movhi): Remove stack operands.
14344         (movqi): Likewise.
14345         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14346         nonimmediate_nonstack_operand.
14347         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14348         New.
14349         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14350         New.
14351
14352 2002-01-31  Jason Merrill  <jason@redhat.com>
14353
14354         * Makefile.in (c-parse.c): Handle .output file.
14355         * objc/Make-lang.in (objc-parse.c): Likewise.
14356
14357 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14358
14359         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14360         the -me[lb] option is given.  Don't output the default flag
14361         twice.
14362
14363 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14364
14365         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14366         the primary source file; this has not been done yet.
14367         * c-decl.c (c_expand_body): Reset input_filename from
14368         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14369
14370 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14371
14372         * rtlanal.c (subreg_regno_offset): Do not use
14373         SUBREG_REGNO_OFFSET.
14374         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14375         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14376
14377 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14378
14379         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14380         version rather than GNATS version in --version output.
14381
14382 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14383
14384         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14385         when copying back from a temporary.
14386
14387 2002-01-30  Richard Henderson  <rth@redhat.com>
14388
14389         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14390         and new_dest are the same.
14391
14392 2002-01-30  Richard Henderson  <rth@redhat.com>
14393
14394         PR opt/5076
14395         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14396         * rtl.c (note_insn_name): Update.
14397         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14398         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14399         to perform loop rotation.
14400         (expand_exit_loop_top_cond): New.
14401         * tree.h (expand_exit_loop_top_cond): Declare it.
14402         * c-semantics.c (genrtl_while_stmt): Use it.
14403         (genrtl_for_stmt): Likewise.
14404
14405 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14406
14407         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14408         arguments to 64-bit boundaries on 64-bit ABIs.
14409
14410 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14411
14412         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14413
14414 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14415
14416         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14417         invalid type.
14418
14419 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14420
14421         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14422         * config/sparc/sparc_bi.h: Remove file.
14423         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14424
14425 2002-01-30  Richard Henderson  <rth@redhat.com>
14426
14427         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14428
14429 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14430
14431         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14432
14433 2002-01-30  Jason Merrill  <jason@redhat.com>
14434
14435         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14436         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14437         (reg_save): Use DW_CFA_offset_extended_sf instead.
14438
14439         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14440
14441 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14442
14443         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14444         in cselib_lookup.
14445
14446 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14447
14448         * rs6000.md ("*call_value_local32"): Remove constraints.
14449         ("*call_value_local64"): Same.
14450         ("*call_value_indirect_nonlocal_aix32"): Same.
14451         ("*call_value_nonlocal_aix32"): Same.
14452         ("*call_value_indirect_nonlocal_aix64"): Same.
14453         ("*call_value_nonlocal_aix64"): Same.
14454         ("*call_value_nonlocal_sysv"): Same.
14455
14456 2002-01-29  Richard Henderson  <rth@redhat.com>
14457
14458         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14459
14460 2002-01-29  Richard Henderson  <rth@redhat.com>
14461
14462         * expr.c (force_operand): Ignore flag_pic for detecting pic
14463         address loads.
14464         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14465         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14466         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14467         instead of open-coded loop.
14468         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14469         be fixed when in use.
14470
14471 2002-01-29  Richard Henderson  <rth@redhat.com>
14472
14473         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14474         * sched-rgn.c (propagate_deps): Update them.
14475         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14476         clobbers list when either gets too long.
14477
14478 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14479
14480         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14481         and INDEX_REGS the same as GENERAL_REGS.
14482         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14483
14484 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14485
14486         * tree.c (build_nonstandard_integer_type): Correct prototype.
14487
14488 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14489
14490         * config/s390/s390.md (movstrsico, movstrdix_64,
14491         movstrsix_31): Remove, replace by ...
14492         (movstrdi_short, movstrsi_short, movstrdi_long,
14493         movstrsi_long): ... these.  New.
14494         (movstrdi, movstrsi): Adapt.
14495
14496         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14497         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14498         Remove unnecessary CC clobber.
14499         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14500         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14501
14502         (divmoddi4): Don't partially initialize TImode register.
14503
14504 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14505
14506         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14507
14508 2002-01-29  Richard Henderson  <rth@redhat.com>
14509
14510         * flow.c (print_rtl_and_abort): Remove.
14511         (print_rtl_and_abort_fcn): Remove.
14512         (verify_local_live_at_start): Use dump_bb instead.
14513         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14514         (verify_wide_reg_1): Return 2 on mode test failure.
14515
14516 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14517
14518         PR c/3325, c/3326, c/2511, c/3347
14519         * c-decl.c (enum_decl_context): Remove BITFIELD.
14520         (grokdeclarator): Take bitfield width as an input.
14521         Ensure bitfields are given the correct type.  Perform
14522         bitfield width validation with build_bitfield_integer_type
14523         rather than waiting for finish_struct.
14524         (grok_typename, grok_typename_in_parm_context, start_decl,
14525         push_parmdecl, grokfield, start_function): Update calls to
14526         grokdeclarator.
14527         (build_bitfield_integer_type): New function.
14528         (finish_struct): Move bitfield validation to grokdeclarator
14529         and build_bitfield_integer_type.
14530         * tree.c (build_nonstandard_integer_type): New function.
14531         * tree.h (build_nonstandard_integer_type): New prototype.
14532 objc:
14533         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14534
14535 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14536
14537         PR other/1502:
14538         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14539         don't ignore unrecognized -W* options.
14540         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14541         * cpplib.h (cpp_handle_option): Adjust prototype.
14542         * c-decl.c (c_decode_options): Pass 0 as last argument to
14543         cpp_handle_option.
14544
14545         PR c/2896:
14546         * gcc.c (cpp_unique_options): Split from cpp_options.
14547         (cpp_options): Source cpp_unique_options.
14548         (default_compilers): Use cpp_unique_options instead of cpp_options
14549         when used together with cc1_options.
14550         (static_specs): Add cpp_unique_options.
14551         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14552         when used together with cc1_options.
14553
14554 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14555
14556         * config/h8300/h8300-protos.h: Update the prototype of
14557         output_a_shift.
14558         * config/h8300/h8300.c (output_a_shift): Remove an unused
14559         argument 'insn'.  Remove redundant code.
14560         * config/h8300/h8300.md: Adust to the new prototype of
14561         output_a_shift.
14562
14563 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14564
14565         * config/h8300/h8300-protos.h: Update the prototypes of
14566         emit_a_rotate and expand_a_rotate.
14567         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14568         first argument to 'enum rtx_code'.
14569         (expand_a_rotate): Likewise.
14570
14571 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14572
14573         * config/h8300/h8300-protos.h: Update the prototype of
14574         output_simode_bld.
14575         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14576         'log2'.
14577         * config/h8300/h8300.md: Adjust to the new prototype.
14578
14579 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14580
14581         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14582         redundant code.
14583
14584 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14585
14586         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14587         is a fixed register before returning pic_offset_table_rtx.
14588         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14589         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14590
14591 2002-01-28  Jason Merrill  <jason@redhat.com>
14592
14593         * dwarf2.h: Sync with src version.
14594
14595 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14596
14597         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14598         BT_FN_VOID_PTR_VAR.
14599         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14600         * doc/extend.texi (__builtin_prefetch): Update documentation:
14601         first argument is now const void ptr.
14602
14603 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14604
14605         * config/h8300/h8300-protos.h: Remove an unused prototype.
14606
14607 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14608
14609         * toplev.c (lang_independent_init): Round up identifier size.
14610
14611 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14612
14613         * config.gcc: Revert previous change.
14614
14615 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14616
14617         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14618
14619 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14620
14621         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14622         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14623         other non-elf netbsd config frags.
14624         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14625         collect2 will does that.
14626         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14627         shared-lib frobbing will work.
14628
14629 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14630
14631         * config/h8300/h8300.h: Fix formatting.
14632         * config/h8300/h8300.md: Likewise.
14633
14634 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14635
14636         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14637         the old, removed AAA_standards fix.
14638         * fixinc/fixincl.x: Rebuilt.
14639
14640 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14641
14642         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14643         atexit call in crtbegin, hooked in after call to frame_dummy;
14644         register EH before registering __fini__start.
14645
14646 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14647
14648         * config/rs6000/altivec.h: Remove spurious semicolons.
14649
14650 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14651
14652         * config/h8300/h8300.md: Replace dead bit extraction patterns
14653         with ones that work.
14654
14655 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14656
14657         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14658         if not STRICT_ALIGNMENT.
14659         * rtl.h (MEM_ALIGN): Likewise.
14660
14661 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14662
14663         * doc/invoke.texi (-fdump-translation-unit): Revert this
14664         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14665
14666 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14667
14668         * config/h8300/h8300.md (define_constants): New.
14669         (anonymous patterns) Use defined constants appropriately.
14670
14671 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14672
14673         * config/h8300/h8300.c (function_arg): Remove redundant code.
14674
14675 2002-01-26  Richard Henderson  <rth@redhat.com>
14676
14677         * sched-deps.c (reg_pending_uses_head): New.
14678         (reg_pending_barrier): Rename from reg_pending_sets_all.
14679         (find_insn_list): Don't mark inline.
14680         (find_insn_mem_list): Remove.
14681         (add_dependence_list, add_dependence_list_and_free): New.
14682         (flush_pending_lists): Replace only_write param with separate
14683         for_read and for_write parameters.  Update all callers.  Use
14684         add_dependence_list_and_free.
14685         (sched_analyze_1): Do not add reg dependencies here; just set
14686         the pending bits.  Use add_dependence_list.
14687         (sched_analyze_2): Likewise.
14688         (sched_analyze_insn): Replace schedule_barrier_found with
14689         reg_pending_barrier.  Add all dependencies for pending reg
14690         uses, sets, and clobbers.
14691         (sched_analyze): Don't add reg dependencies for calls, just
14692         set pending bits.  Use regs_invalidated_by_call.  Treat
14693         sched_before_next_call as a normal list, not a fake insn.
14694         (init_deps): No funny init for sched_before_next_call.
14695         (free_deps): Free pending mems lists.  Don't zero reg_last.
14696         (init_deps_global): Init reg_pending_uses.
14697         (finish_deps_global): Free it.
14698         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14699         (find_insn_mem_list): Remove.
14700         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14701         (propagate_deps): Use them.  Zero temp mem lists.
14702
14703 2002-01-26  Richard Henderson  <rth@redhat.com>
14704
14705         * Makefile.in (CRTSTUFF_CFLAGS): New.
14706         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14707         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14708         crtstuff.c instead of alpha assembly version.
14709         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14710         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14711         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14712         (__do_global_dtors_aux): Mark used.
14713         (frame_dummy, __do_global_ctors_aux): Mark used.
14714         (fini_dummy, init_dummy): Remove.
14715
14716         * config/alpha/crtbegin.asm: Remove file.
14717         * config/alpha/crtend.asm: Remove file.
14718         * config/alpha/t-crtbe: Remove file.
14719         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14720         (LINK_EH_SPEC): New.
14721
14722         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14723         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14724         calling constructors.
14725         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14726
14727         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14728         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14729         CRT_END_INIT_DUMMY hack.
14730         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14731         FORCE_{INIT,FINI}_SECTION_ALIGN.
14732
14733         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14734         FORCE_{INIT,FINI}_SECTION_ALIGN.
14735
14736         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14737         invocation sequence.
14738         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14739
14740         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14741         (FORCE_CODE_SECTION_ALIGN): New.
14742
14743 2002-01-26  Richard Henderson  <rth@redhat.com>
14744
14745         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14746
14747 2002-01-26  Richard Henderson  <rth@redhat.com>
14748
14749         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14750         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14751
14752 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14753
14754         * config/h8300/h8300.md: Remove bit extraction patterns that
14755         cannot be triggered.
14756         Restrict each bit extraction pattern to a variant on which the
14757         pattern is tested.
14758
14759 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14760
14761         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14762
14763 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14764
14765         * config/h8300/h8300.md: Remove bit test patterns that cannot
14766         be triggered.
14767         Restrict each bit test pattern to a variant on which the
14768         pattern is tested.
14769
14770 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14771
14772         * builtins.c (expand_builtin_strncat): Remove redundant check for
14773         INTEGER_CST.
14774
14775 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14776
14777         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14778         default setting.
14779         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14780         existing setting.
14781
14782 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14783
14784         * dbxout.c (dbxout_init): Use assemble_name rather than just
14785         stripping off the first character.
14786         (dbxout_source_file): Likewise.
14787
14788 2002-01-25  DJ Delorie  <dj@redhat.com>
14789
14790         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14791         using rtx_equal_p, not by comparing pointers.
14792
14793 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14794
14795         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14796         for PIC_OFFSET_TABLE_REGNUM.
14797         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14798
14799 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14800
14801         * config.gcc (x86_64-*-freebsd*): New target.
14802         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14803         value.
14804         (i[34567]86-*-freebsd*): Don't include svr4.h.
14805         * config/i386/freebsd64.h: New file.
14806
14807 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14808
14809         * config/alpha/x-vms (version): Make static.
14810
14811         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14812         in previous checkin.
14813
14814         * Makefile.in (install-headers-cp): New target.
14815         * config.gcc (alpha-dec-*vms*): Install headers with
14816         install-headers-cp
14817
14818 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14819
14820         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14821         avoid it's copies.
14822
14823 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14824
14825         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14826         of compare_tree_int.
14827         (expand_builtin_strncat): Likewise.
14828         * c-decl.c (finish_struct): Use tree_low_cst.
14829         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14830         * tree.c (compare_tree_int): Likewise.
14831
14832 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14833
14834         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14835         adjustments even if they are implemented by more than two insns.
14836
14837 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14838
14839         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14840         * df.h (struct ref): Kill B.
14841         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14842
14843         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14844         * flow.c (propagate_one_insn): Use it.
14845         (mark_used_regs): Handle NIL.
14846
14847 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14848
14849         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14850         to help folding.
14851
14852 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14853
14854         * rs6000.md (prefetch): Make address V4SI mode so that the address
14855         is restricted to legitimate form for instruction.
14856
14857 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14858
14859         * doc/install.texi (xtensa-*-elf): New target.
14860         (xtensa-*-linux*): New target.
14861         * doc/contrib.texi: Add myself.
14862
14863 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14864
14865         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14866         purpose register to hold an SImode (or smaller) value.
14867
14868 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14869
14870         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14871         registry only.
14872         * crtstuff.c: Likewise.
14873
14874 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14875
14876         * config/h8300/h8300.md (negation patterns): Tighten
14877         predicates to register_operand.
14878
14879 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14880
14881         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14882         mode, not Pmode.
14883
14884         * builtins.c (expand_builtin_prefetch): Same.
14885
14886 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14887
14888         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14889         modes.
14890
14891 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14892
14893         * config/h8300/h8300.c (print_operand): Remove support for
14894         operand character 'A'.
14895         * config/h8300/h8300.md (three anonymous patterns): Replace
14896         operand character 'A' with either 'T' or 'S'.
14897
14898 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14899
14900         * config/h8300/h8300.c (print_operand): Remove support for
14901         operand character 'U'.
14902
14903 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
14904
14905         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14906
14907 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
14908
14909         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14910         values to be assigned to the stack pointer.
14911
14912 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
14913
14914         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14915         to const_double needs to be done right for big-endian systems.
14916
14917 2002-01-24  Jason Merrill  <jason@redhat.com>
14918
14919         PR c++/2432
14920         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14921         to can_throw_internal.
14922
14923 2002-01-23  Richard Henderson  <rth@redhat.com>
14924
14925         * fold-const.c (fold): Change UINT_MAX test to check vs precision
14926         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
14927
14928 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14929
14930         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14931         (symGOT2reg): Use them, then set as GOT value as unchanging.
14932         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
14933         as a temporary, if possible.
14934         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
14935         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14936
14937 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14938
14939         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14940         accept to accept 0x80 as operands[2].
14941
14942 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14943
14944         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14945
14946 2002-01-23  Richard Henderson  <rth@redhat.com>
14947
14948         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14949
14950 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
14951
14952         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14953         (parmlist_or_identifiers_1): Verify that only a parmlist follows
14954         an attribute.
14955
14956 2002-01-23  Richard Henderson  <rth@redhat.com>
14957
14958         * expr.c (move_by_pieces_1): Extend size before negation.
14959
14960         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14961         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14962         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14963         * config/m68k/t-m68kelf: Likewise.
14964
14965 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
14966
14967         * config/xtensa/elf.h: New file.
14968         * config/xtensa/lib1funcs.asm: New file.
14969         * config/xtensa/lib2funcs.S: New file.
14970         * config/xtensa/linux.h: New file.
14971         * config/xtensa/t-xtensa: New file.
14972         * config/xtensa/xtensa-config.h: New file.
14973         * config/xtensa/xtensa-protos.h: New file.
14974         * config/xtensa/xtensa.c: New file.
14975         * config/xtensa/xtensa.h: New file.
14976         * config/xtensa/xtensa.md: New file.
14977         * config.gcc (xtensa-*-elf*): New target.
14978         (xtensa-*-linux*): New target.
14979         * cse.c (canon_hash): Compare rtx pointers instead of register
14980         numbers.  This is required for the Xtensa port.
14981         * integrate.c (copy_insn_list): Handle case where the static
14982         chain is in memory and the memory address has to be copied to
14983         a register.
14984         * doc/invoke.texi (Option Summary): Add Xtensa options.
14985         (Xtensa Options): New node.
14986         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14987
14988 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14989
14990         * diagnostic.c (internal_error): Do ICE suppression only
14991         when ENABLE_CHECKING is not defined.
14992
14993         * c-typeck.c (require_complete_type): Return error_mark_node
14994         if type is error_mark_node.
14995
14996 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
14997
14998         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14999         -Os and issue a warning.
15000
15001 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
15002
15003         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
15004         current (lack of) need for host configuration by hand.
15005
15006         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
15007         references.  Documentation of some target macros moved from
15008         hostconfig.texi to tm.texi.
15009
15010 2002-01-23  Will Cohen  <wcohen@redhat.com>
15011
15012         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
15013         defined.
15014
15015 2002-01-23  Kazu Hirata  <kazu@hxi.com>
15016
15017         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
15018         operand[3].
15019
15020 2002-01-23  Jason Merrill  <jason@redhat.com>
15021
15022         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
15023
15024         * function.c (assign_parms): Don't put args of inline functions
15025         into registers when not optimizing.
15026
15027 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
15028
15029         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
15030         (prologue_use): New pattern.
15031         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
15032         preference to gen_rtx_USE.
15033         (thumb_expand_prologue): Use gen_prologue_use in preference to
15034         gen_rtx_USE.
15035         (thumb_expand_epilogue): Use gen_prologue_use in preference to
15036         gen_rtx_USE.
15037
15038 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
15039
15040         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
15041
15042 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
15043
15044         PR c/3504
15045         * doc/extend.texi: Correct documentation of __alignof__.
15046
15047 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
15048
15049         * params.h: Rename arguments of DEFPARAM so that it will be
15050         recognized as a translation keyword.
15051
15052 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15053
15054         * extend.texi: Document altivec functions.
15055         Fix N-bit adjectives in X86 builtin documentation.
15056
15057 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15058
15059         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
15060         auto_inc_dec values.
15061
15062 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
15063
15064         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
15065         after backslash.
15066         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
15067
15068 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
15069
15070         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
15071
15072 2002-01-22  Richard Henderson  <rth@redhat.com>
15073
15074         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
15075         copy_insn not copy_rtx.
15076
15077 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
15078
15079         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
15080         "nonzero" as that might add "1" bits.  Ensure "constop" is
15081         properly sign extened.
15082         (force_to_mode): Tweak for sign extended constop.
15083
15084 2002-01-22  Richard Henderson  <rth@redhat.com>
15085
15086         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15087         for_each_rtx instead of assuming we're already looking at the MEM.
15088         (split_small_symbolic_mem_operand): Likewise.
15089         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15090         * config/alpha/alpha.md (small symbolic memory splitters): Update.
15091
15092 2002-01-22  Richard Henderson  <rth@redhat.com>
15093
15094         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15095         sequence number for the literal.
15096         (divmoddi_internal_er): Likewise.
15097
15098 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15099
15100         PR java/4972
15101         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15102         in LIBICONV variable.
15103         * configure: Regenerated.
15104
15105 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
15106
15107         * dependence.c (build_def_use): Remove array_idx.
15108
15109         * dwarfout.c (last_filename): Remove.
15110         (output_compile_unit_die): Remove last_filename.
15111
15112 2002-01-22  Roger Sayle  <roger@eyesopen.com>
15113             Richard Henderson  <rth@redhat.com>
15114
15115         PR opt/3640
15116         * fold-const.c (fold): Optimize unsigned comparisons against
15117         UINT_MAX (and similar unsigned constants).
15118
15119 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
15120
15121         * Makefile.in (loop.o): Depend on OPTABS_H.
15122         * loop.c (emit_prefetch_instructions): Check the prefetch operand
15123         against the predicate.
15124
15125         PR target/5379
15126         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15127         for the address operand.
15128
15129 2002-01-22  Richard Henderson  <rth@redhat.com>
15130
15131         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15132
15133 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15134
15135         PR other/5450
15136         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15137         preprocessor flags.
15138
15139 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
15140
15141         * config.gcc (x86_64-*-netbsd*): New target.
15142         * config/i386/netbsd64.h: New file.
15143
15144 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15145
15146         * regrename.c (kill_value): Fix typo.
15147
15148 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15149
15150         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15151
15152         * config/rs6000/rs6000.h: Same.
15153
15154         * function.c (instantiate_virtual_regs): Remove
15155         STARTING_FRAME_PHASE.
15156         (assign_stack_local_1): Same.
15157         Calculate frame phase.
15158
15159 2002-01-22  Nick Clifton  <nickc@redhat.com>
15160
15161         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15162         variable declaration to outer scope in order to simplify
15163         future extensions.
15164         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15165         arm_hard_regno_mode_ok.
15166         * config/arm/arm-protos.h: Add a prototype for
15167         arm_hard_regno_mode_ok.
15168         * config/arm/arm.c (soft_df_operand): Remove now redundant
15169         check for DImode values using IP_REGNUM.
15170         (nonimmediate_soft_df_operand): Remove now redundant check for
15171         DImode values using IP_REGNUM.
15172         (arm_hard_regno_mode_ok): New function. New check: make sure
15173         that DImode values are not stored in IP_REGNUM.
15174
15175         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15176         note with a USE.
15177         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15178
15179 2002-01-22  Jason Merrill  <jason@redhat.com>
15180
15181         * c-semantics.c (genrtl_compound_stmt): Only check nesting
15182         consistency if this COMPOUND_STMT is scoped.
15183
15184 2002-01-22  Kazu Hirata  <kazu@hxi.com>
15185
15186         * predict.c: Fix formatting.
15187         * print-tree.c: Likewise.
15188         * protoize.c: Likewise.
15189         * real.h: Likewise.
15190         * rtl.h: Likewise.
15191         * sbitmap.h: Likewise.
15192         * scan.c: Likewise.
15193         * sched-deps.c: Likewise.
15194         * sched-vis.c: Likewise.
15195         * sdbout.c: Likewise.
15196         * sibcall.c: Likewise.
15197         * ssa.c: Likewise.
15198         * ssa-ccp.c: Likewise.
15199         * ssa-dce.c: Likewise.
15200         * stmt.c: Likewise.
15201         * stor-layout.c: Likewise.
15202         * system.h: Likewise.
15203
15204 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15205
15206         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15207         if fits in bounds of base type.
15208
15209         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15210         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15211         (add_bound_info, default): If can't find a context, make a
15212         SAVE_EXPR.
15213         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15214
15215 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
15216
15217         * c-typeck.c (parser_build_binary_op): If result from
15218         build_binary_op is ERROR_MARK just return error_mark_node without
15219         further processing.
15220
15221 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
15222
15223         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15224         Split a.out-specific bits into...
15225         * config/netbsd-aout.h: ...this.
15226         * config/netbsd-elf.h: New file.
15227         * config/alpha/netbsd-elf.h: Remove.
15228         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15229         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15230         (STARTFILE_SPEC): Remove redundant definition.
15231         (ENDFILE_SPEC): Likewise.
15232         (LINK_SPEC): Likewise.
15233         (CPP_SPEC): Likewise.
15234         (ASM_SPEC): Likewise.
15235         (LIB_SPEC): Likewise.
15236         (SWITCH_TAKES_ARG): Likewise.
15237         (TARGET_MEM_FUNCTIONS): Likewise.
15238         (CPP_PREDEFINES): Redefine.
15239         (ASM_FINAL_SPEC): Remove redefinition.
15240         (ASM_COMMENT_START): Redefine.
15241         (FUNCTION_PROFILER): Define.
15242         (TARGET_VERSION): Redefine.
15243         Comment and formatting cleanup.
15244         * config/i386/netbsd.h: Include <netbsd-aout.h>.
15245         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15246         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15247         big- or little-endian.
15248         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15249         * config.gcc (*-*-netbsd*): Add definitions common to all
15250         NetBSD configs.
15251         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15252         gnu_ld definitions.  Add netbsd-elf.h to and remove
15253         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
15254         tmake_file, and don't lose previous tmake_file contents.
15255         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15256         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15257         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
15258         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15259         (mipsel-*-netbsd*): Rename this to...
15260         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
15261         mips/little.h to tm_file for mips*el-*.
15262         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15263         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15264         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15265
15266 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15267
15268         * pa-protos.h (reg_before_reload_operand): New function prototype.
15269         * pa.c (reg_before_reload_operand): New function implementation.
15270         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
15271         contraints to "*m".
15272
15273 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15274
15275         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15276
15277 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15278
15279         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15280         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15281         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15282         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15283         (ENDFILE_SPEC): Undefine.
15284         (STARTFILE_SPEC): Redefine for PA.
15285
15286 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15287
15288         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15289
15290 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15291
15292         * config.gcc: Add entries to supported PowerPC --with-cpu
15293         types.
15294
15295 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15296
15297         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15298         true for 64-bit mode only SSE registers in 32-bit mode.
15299
15300 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15301
15302         * unwind-dw2.c: Fix formatting.
15303         * unwind-dw2-fde.c: Likewise.
15304         * unwind-dw2-fde.h: Likewise.
15305         * unwind-pe.h: Likewise.
15306         * varasm.c: Likewise.
15307         * varray.h: Likewise.
15308
15309 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15310
15311         Remove workaround for register stack overwrite bug in mmix.
15312         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15313         support for TARGET_REG_STACK_FILL_BUG.
15314         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15315         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15316         Delete.
15317         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15318         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15319         -mno-reg-stack-fill-bug-workaround.
15320         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15321         machine member has_call_without_parameters.
15322         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15323         -mreg-stack-fill-bug-workaround and
15324         -mno-reg-stack-fill-bug-workaround.
15325         (MMIX Options): Ditto.
15326
15327 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15328
15329         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15330         as appropriate.
15331         Remove redundant code.
15332
15333 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15334
15335         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15336         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15337         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15338         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15339         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15340         out target macro definitions and non-target-specific comments
15341         mostly taken from old versions of the manual.
15342
15343 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15344
15345         * config/h8300/h8300.h: Fix comment formatting.
15346         * config/ia64/aix.h: Likewise.
15347         * config/ia64/ia64-protos.h: Likewise.
15348         * config/ia64/ia64.c: Likewise.
15349         * config/ia64/ia64.h: Likewise.
15350         * config/ia64/ia64intrin.h: Likewise.
15351         * config/ia64/linux.h: Likewise.
15352         * config/ia64/unwind-aix.c: Likewise.
15353         * config/ia64/unwind-ia64.c: Likewise.
15354
15355 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15356
15357         * config/h8300/h8300.c: Revise comments about shift code.
15358
15359 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15360
15361         * config/h8300/h8300.c (function_arg): Update a comment.
15362
15363 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15364
15365         * config/h8300/h8300.md: Update the comments at the beginning
15366         of the file.
15367
15368 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15369
15370         * config/i370/i370.c: Fix comment formatting.
15371         * config/i370/i370.h: Likewise.
15372         * config/i370/i370.md: Likewise.
15373         * config/i370/linux.h: Likewise.
15374
15375 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15376
15377         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15378
15379         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15380         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15381         in incomplete case.
15382
15383 2002-01-20  Graham Stott  <grahams@redhat.com>
15384
15385         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15386
15387 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15388
15389         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15390
15391 2002-01-19  Tom Rix  <trix@redhat.com>
15392
15393         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15394
15395 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15396
15397         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15398
15399         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15400         STARTING_FRAME_PHASE.
15401         (STARTING_FRAME_PHASE): New.
15402         (instantiate_virtual_regs): Check saneness of
15403         STARTING_FRAME_PHASE.
15404
15405         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15406
15407 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15408
15409         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15410
15411 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15412
15413         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15414         be used for bootstrapping GCC 3.0.
15415
15416 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15417
15418         * config/h8300/h8300.md: Fix an insn length.
15419
15420 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15421
15422         * bitmap.h: Fix comment formatting.
15423         * combine.c: Likewise.
15424         * cppfiles.c: Likewise.
15425         * c-pragma.h: Likewise.
15426         * c-typeck.c: Likewise.
15427         * df.c: Likewise.
15428         * dwarf2out.c: Likewise.
15429         * function.c: Likewise.
15430         * gcc.c: Likewise.
15431         * genattrtab.c: Likewise.
15432         * gthr-win32.h: Likewise.
15433         * haifa-sched.c: Likewise.
15434         * predict.c: Likewise.
15435         * rtlanal.c: Likewise.
15436         * rtl.h: Likewise.
15437         * unwind-dw2-fde.h: Likewise.
15438         * unwind-pe.h: Likewise.
15439         * vmsdbgout.c: Likewise.
15440
15441 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15442
15443         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15444         if type_required and passed decl.
15445
15446 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15447
15448         * config.gcc (cpu_type): Include altivec.h in powerpc
15449         extra_headers.
15450         Same for darwin.
15451
15452         * config/rs6000/altivec.h: New.
15453
15454 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15455
15456         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15457         handling information.
15458         * doc/trouble.texi (Interoperation): Add libstdc++ information
15459         for AIX.
15460         (Misunderstandings): Add template instantiation and static template
15461         member information for AIX.
15462
15463 2002-01-17  Jason Merrill  <jason@redhat.com>
15464
15465         * dbxout.c (dbxout_type): Support const and volatile.
15466
15467         * except.c (add_partial_entry): Remove backwards compatibility code.
15468         (end_protect_partials): Likewise.
15469
15470 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15471
15472         * config/ia64/ia64.md (prologue_use): New.
15473         * config/ia64/ia64.c (ia64_expand_prologue): Use
15474         gen_prologue_use instead of gen_rtx_USE.
15475         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15476         as CODE_FOR_pred_rel_mutex.
15477         (ia64_sched_reorder2): Likewise.
15478
15479 2002-01-16  Eric Christopher  <echristo@redhat.com>
15480
15481         * config/mips/r3900.h: Reformat.
15482         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15483         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15484         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15485         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15486         * config/mips/t-elf: Remove mips3 multilib.
15487
15488 2002-01-16  H.J. Lu <hjl@gnu.org>
15489
15490         * config/mips/linux.h: Include "mips/abi64.h".
15491
15492 2002-01-16  H.J. Lu <hjl@gnu.org>
15493
15494         * config/mips/t-linux: New.
15495
15496         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15497
15498         * config/mips/linux.h: Don't include "gofast.h".
15499         (INIT_SUBTARGET_OPTABS): Removed.
15500
15501 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15502
15503         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15504         output_a_shift.
15505         * config/h8300/h8300.c: Likewise.
15506         * config/h8300/h8300.md: Likewise.
15507
15508 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15509
15510         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15511         spaces after an opcode name.
15512         (pushqi1_h8300hs): Likewise.
15513         (pushhi1_h8300hs): Likewise.
15514
15515 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15516
15517         * doc/extend.texi: Replace "option" with "attribute"
15518         appropriately.
15519
15520 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15521
15522         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15523         (and:DI () (const_int -8)).
15524         (split_small_symbolic_mem_operand): Split
15525         (mem (and:DI () (const_int -8)).
15526
15527 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15528
15529         PR target/5309:
15530         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15531         same way as TYPE_IMUL.
15532         (ultrasparc_sched_reorder): Likewise.
15533         * config/sparc/sparc.md (type): Add comment to update
15534         ultrasparc_sched_reorder when making changes.
15535
15536 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15537
15538         * doc/invoke.texi: Change the dump file name of block
15539         reordering pass from 28.bbro to 29.bbro.
15540         Mention -dk option.
15541
15542 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15543
15544         * i386.md (minsf splitter): Fix pasto.
15545
15546 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15547
15548         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15549         to frame pointer initialisation instruction.
15550         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15551         initialisation instruction.
15552         (soft_df_operand): Do not accept the IP register.
15553         (nonimmediate_soft_df_operand): Do not accept the IP register.
15554
15555 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15556
15557         PR target/5357:
15558         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15559         MASK_V8 being both set.
15560
15561 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15562
15563         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15564         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15565         config/s390/s390.md (call, call_value): Add GOT register to
15566         CALL_INSN_FUNCTION_USAGE where needed.
15567         (call_exp, call_value_exp): New.
15568
15569 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15570
15571         * config/arm/arm.c: General formatting tidy up.
15572
15573 2002-01-16  Graham Stott  <grahams@redhat.com>
15574
15575         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15576         cast and when casting an integer literal to "rtx" pointer.
15577         (expand_call): Likewise.
15578         * flow.c (try_pre_increment): Likewise.
15579         (find_use_as_address): Likewise.
15580         * integrate.c (expand_iline_function): Likewise.
15581         * regmove.c (try_auto_increment): Likewise.
15582
15583 2002-01-16  Graham Stott  <grahams@redhat.com>
15584
15585         * sched-rgn.c (passed): Use sbitmap_free.
15586         (header): Likewise.
15587         (inner): Likewise.
15588         (in_queue): Likewise.
15589         (in_stack): Likewise.
15590
15591 2002-01-15  Eric Christopher  <echristo@redhat.com>
15592
15593         * flow.c (propagate_one_insn): Change to use fatal_insn.
15594
15595 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15596
15597         * expmed.c (extract_fixed_bit_field): Remove unused code.
15598         * system.h: Poison SLOW_ZERO_EXTEND.
15599         * doc/tm.texi: Remove.
15600         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15601         * config/arm/arm.h: Likewise.
15602         * config/avr/avr.h: Likewise.
15603         * config/clipper/clipper.h: Likewise.
15604         * config/convex/convex.h: Likewise.
15605         * config/d30v/d30v.h: Likewise.
15606         * config/dsp16xx/dsp16xx.h: Likewise.
15607         * config/elxsi/elxsi.h: Likewise.
15608         * config/fr30/fr30.h: Likewise.
15609         * config/h8300/h8300.h: Likewise.
15610         * config/i370/i370.h: Likewise.
15611         * config/i386/i386.h: Likewise.
15612         * config/m68k/m68k.h: Likewise.
15613         * config/mips/mips.h: Likewise.
15614         * config/ns32k/ns32k.h: Likewise.
15615         * config/pdp11/pdp11.h: Likewise.
15616         * config/pj/pj.h: Likewise.
15617         * config/s390/s390.h: Likewise.
15618         * config/sh/sh.h: Likewise.
15619         * config/stormy16/stormy16.h: Likewise.
15620         * config/v850/v850.h: Likewise.
15621         * config/vax/vax.h: Likewise.
15622         * config/we32k/we32k.h: Likewise.
15623
15624 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15625
15626         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15627         (altivec_lvsl): Change constraint to b.
15628         (altivec_lvsr): Same.
15629         (altivec_lvebx): Same.
15630         (altivec_lvehx): Same.
15631         (altivec_lvewx): Same.
15632         (altivec_lvxl): Same.
15633         (altivec_lvx): Same.
15634         (altivec_stvx): Add parallel.
15635         (altivec_stvxl): Same.
15636         (altivec_stvehx): Same.
15637         (altivec_stvebx): Same.
15638         (altivec_stvebx): Same.
15639
15640 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15641
15642         * config.gcc: Change altivec.h to altivec-defs.h.
15643
15644         * config/rs6000/altivec.h: Delete.
15645
15646         * config/rs6000/altivec-defs.h: Add.
15647
15648 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15649
15650         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15651         and UMOD modes.
15652
15653         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15654         less than or equal to eight bytes.
15655
15656         * vax.md (andsi3): Remove constraints and change SET destination
15657         operand type to nonimmediate_operand.
15658         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15659         when it is a CONST_INT.
15660
15661 2002-01-15  Jason Merrill  <jason@redhat.com>
15662
15663         * c-common.def (FILE_STMT): New code.
15664         * c-common.c (statement_code_p): It's a statement.
15665         * c-common.h (stmt_tree_s): Add x_last_filename.
15666         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15667         (last_expr_filename): New macro.
15668         * c-semantics.c (begin_stmt_tree): Initialize it.
15669         (add_stmt): If the filename changed, also insert a
15670         FILE_STMT.
15671         (expand_stmt): Handle seeing one.
15672
15673 2002-01-15  Eric Christopher  <echristo@redhat.com>
15674
15675         * flow.c (propagate_one_insn): Add error message and print out
15676         insn for debugging.
15677
15678 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15679
15680         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15681         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15682         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15683         TRAMPOLINE_ALIGNMENT.
15684         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15685         to be in bits.
15686         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15687         PCC_BITFIELD_TYPE_MATTERS.
15688         * config/interix.h (STDC_VALUE): Remove.  Use
15689         STDC_0_IN_SYSTEM_HEADERS.
15690         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15691         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15692         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15693
15694 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15695
15696         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15697         not work on this platform currently.
15698
15699 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15700
15701         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15702         readonly_warning in _().
15703
15704 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15705
15706         * gcc.c (delete_if_ordinary): Backout previous change.
15707
15708 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15709
15710         * config/h8300/h8300.c (print_operand): Remove support for
15711         unused operand characters.
15712
15713         * read-rtl.c: Fix formatting.
15714         * real.c: Likewise.
15715         * recog.c: Likewise.
15716         * regclass.c: Likewise.
15717         * regmove.c: Likewise.
15718         * reg-stack.c: Likewise.
15719         * reload1.c: Likewise.
15720         * rtlanal.c: Likewise.
15721
15722 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15723
15724         * config/i386/i386.c: Fix formatting.
15725
15726 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15727
15728         * c-typeck.c (process_init_element): Don't save_expr
15729         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15730
15731 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15732
15733         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15734         emit optional traceback table if optimize_size or TARGET_ELF.
15735         * config/rs6000/rs6000.md (prefetch): New.
15736
15737 2002-01-15  Andreas Jaeger  <aj@suse.de>
15738
15739         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15740
15741 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15742
15743         * mips-tfile.c: Fix formatting.
15744
15745 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15746
15747         * unroll.c (final_reg_note_copy): Fix previous commit.
15748
15749 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15750
15751         * config/h8300/h8300-protos.h: Remove the prototype for
15752         eq_operator.
15753         * config/h8300/h8300.c (eq_operator): Remove.
15754
15755 2002-01-14  Richard Henderson  <rth@redhat.com>
15756
15757         * config/i386/i386.md (prefetch): Tidy.
15758         (prefetch_3dnow): Fix locality operand.
15759
15760 2002-01-14  Richard Henderson  <rth@redhat.com>
15761
15762         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15763         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15764
15765 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15766
15767         * reload1.c (reload_combine): Pass reg_sum replacement through
15768         copy_rtx in loop performing multiple changes.
15769
15770 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15771
15772         * except.c (remove_unreachable_regions): New.
15773         (free_eh_status): Clear exception_handler_labels.
15774         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15775         (find_exception_handler_labels): Don't add the same label more than
15776         once.
15777         (remove_exception_handler_label): Don't die if
15778         find_exception_handler_labels hasn't been called for the current
15779         function yet.
15780
15781 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15782
15783         * toplev.c (rest_of_compilation): Rebuild jump labels after
15784         gcse.
15785
15786 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15787
15788         * doc/extend.texi: Move documentation of X86 built-in functions
15789         here.
15790         * doc/invoke.texi: From here.
15791         * doc/sourcebuild.texi: Document location of documentation for
15792         machine built-in functions.
15793
15794 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15795
15796         * cppfiles.c (TEST_THRESHOLD): New macro.
15797         (SHOULD_MMAP): Ditto.
15798         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15799         be used.
15800
15801 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15802
15803         * unroll.c (final_reg_note_copy): Properly handle
15804         REG_LABEL
15805         (unroll_loops): Fix LOOP_CONDITION heuristics.
15806
15807 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15808
15809         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15810         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15811
15812 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15813
15814         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15815         threaded loop.
15816
15817 2002-01-14  Tom Rix  <trix@redhat.com>
15818
15819         * config/rs6000/rs6000.md: Fix typo with sradi.
15820
15821 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15822
15823         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15824         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15825         (clrstrdi, clrstrsi): Adapt callers.
15826
15827         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15828
15829         (movti splitter): Never use register 0 as base register.
15830
15831 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15832
15833         * combine.c (simplify_shift_const): Always generate new rtx
15834         for shift expression instead of reusing given expression.
15835
15836 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15837
15838         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15839         alpha_legitimize_address unless mode is Pmode.
15840
15841 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15842
15843         * doc/md.texi (Modifiers): Document the '*' constraint for the
15844         user.
15845
15846         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15847         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15848         for xstormy16 too.
15849
15850 2002-01-13  Richard Henderson  <rth@redhat.com>
15851
15852         * reload.c (find_reloads): Use a hard reg destination as reload reg
15853         for an input reload of the source.
15854
15855 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15856
15857         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15858         more generic.
15859
15860 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15861
15862         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15863         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15864
15865         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15866
15867 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15868
15869         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15870
15871 2002-01-12  Tom Rix  <trix@redhat.com>
15872
15873         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15874         TARGET_POWERPC64.
15875
15876 2002-01-12  Richard Henderson  <rth@redhat.com>
15877
15878         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15879
15880         * doc/invoke.texi: Update Alpha options.
15881
15882         * doc/invoke.texi: Update i386 built-in function lists.
15883
15884 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15885
15886         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15887         referencing outside.
15888
15889 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15890
15891         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15892         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15893         offsets, and change line folding.
15894         * optabs.c (expand_binop): Remove warnings.
15895         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15896
15897 2002-01-12  Graham Stott <grahams@redhat.com>
15898
15899         * attribs.c (handle_deprecated_attribute): constify WHAT.
15900         * diagnostic.c (warn_deprecated_use): Add braces, fixes
15901         dangling else warning and constify WHAT.
15902         * except.h (struct function, struct inline_remap): Move
15903         struct tag forward defs before all prototypes.
15904         (duplicate_eh_regions): Whitespace.
15905
15906 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
15907
15908         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15909         MODE_BASE_REG_CLASS.
15910         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15911
15912 2002-01-12  Richard Henderson  <rth@redhat.com>
15913
15914         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15915         (ix86_expand_vector_move): New.
15916         (bdesc_2arg): Remove andps, andnps, orps, xorps.
15917         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
15918         Remove old prefetch builtins.  Special case the logicals removed above.
15919         (ix86_expand_builtin): Likewise.
15920         (safe_vector_operand): Use V4SFmode, not TImode.
15921         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
15922         (ix86_expand_timode_binop_builtin): New.
15923         * config/i386/i386-protos.h: Update.
15924         * config/i386/i386.h (enum ix86_builtins): Update.
15925         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15926         Use ix86_expand_vector_move in vector move expanders.
15927         (movti_internal, movti_rex64): Add xorps alternative.
15928         (sse_clrv4sf): Rename and adjust from sse_clrti.
15929         (prefetch): Don't work so hard.
15930         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15931         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15932         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15933
15934 2002-01-11  Richard Henderson  <rth@redhat.com>
15935
15936         * config/i386/mmintrin.h: New file.
15937         * config/i386/xmmintrin.h: New file.
15938         * config.gcc (i?86-*-*): Add extra_headers.
15939         * simplify-rtx.c (simplify_unary_operation): Handle saturating
15940         truncation codes.
15941         (simplify_binary_operation): Handle saturating arithmetic codes.
15942         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15943         not the lowpart subreg.
15944         (ix86_expand_builtin): Return a TImode dummy register instead of 0
15945         on error.
15946         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15947
15948 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15949
15950         * conflict.c (conflict_graph_compute): Free regsets when finished.
15951         * ssa.c (compute_coalesced_reg_partition): Likewise.
15952
15953 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15954
15955         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15956         every where we allocate a register.
15957
15958 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15959
15960         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15961         * lcm.c (compute_earliest, compute_farthest): Likewise.
15962
15963 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15964
15965         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15966
15967 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15968
15969         * doc/rtl.texi (Insns): Fix 2 typos.
15970
15971 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
15972
15973         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
15974         options.  Use @table @gcctabopt for MMIX options.  Add index
15975         entries for MMIX options.  Start new paragraph with first
15976         heading of the machine-dependent options.
15977
15978 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15979
15980         PR other/5299
15981         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15982         * combine.c (force_to_mode): Same.
15983         * reload1.c (clear_reload_reg_in_use): Same.
15984
15985 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
15986
15987         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15988         and 'subtargets'.
15989
15990 2002-01-11  Andreas Jaeger  <aj@suse.de>,
15991             Brad Lucier <lucier@math.purdue.edu>
15992
15993         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15994         mcpu.
15995
15996 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
15997
15998         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15999         Protect with IN_LIBGCC.
16000         (LINK_EH_SPEC): Add required trailing space.
16001
16002 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16003
16004         * c-tree.h: Move function declarations so that they are listed
16005         under the filename which contains them.
16006         (check_identifier, finish_decl_top_level,
16007         lookup_name_current_level_global, shadow_record_fields): Remove.
16008
16009 2002-01-11  Andreas Jaeger  <aj@suse.de>
16010
16011         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
16012         march.
16013
16014 2002-01-10  Richard Henderson  <rth@redhat.com>
16015
16016         * config/alpha/alpha.c (print_operand): Add 'J'.
16017         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
16018         new operand with the sequence number for the lituse.  When splitting
16019         the insns, use gen_movdi_er_high_g and generate a sequence number.
16020         (gen_movdi_er_high_g): Print the sequence number if non-zero.
16021
16022 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
16023
16024         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
16025         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
16026         stvxl.
16027         (altivec_expand_builtin): Same.
16028         (altivec_expand_stv_builtin): New.
16029
16030         * config/rs6000/rs6000.h (rs6000_builtins): Same.
16031
16032         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
16033         ("altivec_lvehx"): New.
16034         ("altivec_lvewx"): New.
16035         ("altivec_lvxl"): New.
16036         ("altivec_lvx"): New.
16037         ("altivec_stvx"): New.
16038         ("altivec_stvebx"): New.
16039         ("altivec_stvehx"): New.
16040         ("altivec_stvewx"): New.
16041         ("altivec_stvxl"): New.
16042
16043 2002-01-10  Richard Henderson  <rth@redhat.com>
16044
16045         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
16046         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
16047         care not to delete instructions twice.
16048
16049 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16050
16051         * toplev.c: Don't declare environ (it's not used anywhere).
16052         * configure.in: Don't check for declaration of environ.
16053         * config/i386/xm-mingw32.h: Don't #define environ.
16054         * config.in, configure: Regenerate.
16055
16056 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
16057
16058         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
16059         * configure: Regenerate.
16060
16061         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
16062         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
16063         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
16064         alpha/xm-vms.h.
16065         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
16066         LIMITS_H_TEST here, not in m68k/x-next.
16067         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
16068         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
16069
16070         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
16071         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
16072         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
16073
16074         * config/i386/x-djgpp: Renamed i386/t-djgpp.
16075         * config/m88k/x-dolph: Renamed m88k/t-dolph.
16076         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
16077         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
16078         replacement of quadlib.asm with quadlib.c.
16079
16080         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
16081         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
16082         config/rs6000/xm-beos.h: Delete file.
16083
16084         * config.gcc: Update to match above changes.
16085
16086 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16087
16088         * config/h8300/h8300.h: Fix comment typos.
16089         * config/h8300/h8300.md: Likewise.
16090         * config/h8300/lib1funcs.asm: Likewise.
16091
16092 2002-01-10  Dale Johannesen  <dalej@apple.com>
16093
16094         PR optimization/5269
16095         * unroll.c (precondition_loop_p): Make *increment be the correct
16096         sign when n_iterations known, to avoid confusing caller.
16097
16098 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16099
16100         * doc/extend.texi (deprecated): Fix a typo.
16101
16102 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16103
16104         * basic-block.h (update_br_prob_note): Declare.
16105         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16106         (try_forward_edges): Care negative frequencies and update note.
16107         (outgoing_edges_match): Tweek conditional merging heuristics.
16108         (try_crossjump_to_edge): use update_br_prob_note.
16109         * cfglayout.c (fixup_reorder_chain): Likewise.
16110         * cfrtl.c (update_br_prob_note): New.
16111         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16112
16113         * i386.c (ix86_decompose_address): Return -1 if address contains
16114         shift.
16115         (legitimate_address_p): Require ix86_decompose_address to return 1.
16116
16117         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16118         (cprop_insn): Likewise.
16119
16120 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16121
16122         * toplev.c: Fix formatting.
16123         * tree.c: Likewise.
16124         * tree-dump.c: Likewise.
16125         * unroll.c: Likewise.
16126         * unwind-dw2.c: Likewise.
16127         * unwind-dw2-fde.c: Likewise.
16128         * unwind-dw2-fde-glibc.c: Likewise.
16129         * unwind-sjlj.c: Likewise.
16130
16131 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16132
16133         * doc/invoke.texi: Document PDP-11 options.
16134
16135 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16136
16137         * config/h8300/h8300.h: Fix formatting.
16138
16139 2002-01-10  Ira Ruben   <ira@apple.com>
16140
16141         Add __attribute__ ((deprecated)).
16142         * extend.texi: Document __attribute__ ((deprecated)).
16143         * invoke.texi: Document -Wno-deprecated-declarations.
16144         * testsuite/g++.dg/other/deprecated.C: New C++ test.
16145         * testsuite/gcc.dg/deprecated.c: New C test.
16146         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16147         (c_common_attribute_table): Add "deprecated" entry.
16148         (handle_deprecated_attribute): New function.
16149         * c-decl.c (deprecated_states): New enum.
16150         deprecated_state: State of "deprecated" handling.
16151         (start_decl): Set deprecated_state based on attributes.
16152         (grokdeclarator): Test for deprecated uses, propagate attribute.
16153         * c-typeck.c (build_component_ref): Test for deprecated fields.
16154         (build_external_ref): Test for deprecated primaries.
16155         * diagnostic.c (warn_deprecated_use) New function to issue
16156         warnings about __attribute__ ((depricated)) references.
16157         * flags.h (warn_deprecated_decl): Extern declared for
16158         -W[no-]deprecated-declarations option.
16159         * print-tree.c (print_node): Show deprecated flag status.
16160         * toplev.c (warn_deprecated_decl): Defined.
16161         (W_options): Added "deprecated-declaration".
16162         * toplev.h (warn_deprecated_use): Extern declared.
16163         * tree.h (struct tree_common): Define deprecated_flag.
16164         (TREE_DEPRECATED): New macro to access flag.
16165         * cp/call.c (build_call): Test for deprecated calls.
16166         * cp/class.c (add_implicitly_declared_members): Set global
16167         flag to tell grokdeclarator to not issue deprecated warnings.
16168         * cp/cp-tree.h: Add extern for adding_implicit_members.
16169         * cp/decl.c (deprecated_states): New enum.
16170         (start_decl): Set deprecated_state based on attributes.
16171         (grokdeclarator): Test for deprecated uses, propagate attribute.
16172         * cp/lex.c (do_identifier): Test for deprecated primaries.
16173         * cp/typeck.c (build_component_ref): Test for deprecated fields.
16174
16175 2002-01-10  Ira Ruben   <ira@apple.com>
16176
16177         Fix to assign attributes to inline member functions.
16178         * cp/decl.c (start_method): Handle attrlist.
16179
16180 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16181
16182         * combine.c (expand_field_assignment): Use subreg_lsb().
16183
16184 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
16185
16186         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16187         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16188         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16189         Recurse for any operand of AND as long as constant is non-zero.
16190
16191 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16192
16193         * config/h8300/h8300.md: Remove constraints from expanders.
16194
16195 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16196
16197         * varasm.c: Fix formatting.
16198         * varray.c: Likewise.
16199         * vmsdbgout.c: Likewise.
16200         * xcoffout.c: Likewise.
16201
16202 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
16203
16204         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16205         update edge probabilities to match.
16206
16207 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16208
16209         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16210         dependencies.
16211         * doc/languages.texi, doc/sourcebuild.texi: New files.
16212         * doc/configfiles.texi: Make a subsubsection.  Update.
16213         * doc/configterms.texi: Add @node.  Remove warning that this isn't
16214         instructions for building GCC.
16215         * doc/makefile.texi: Make a subsection.
16216         * doc/gccint.texi: Update.
16217
16218 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
16219
16220         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16221
16222 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16223
16224         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16225
16226 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
16227
16228         * optabs.c (expand_fix): Look for wider integer modes first.
16229
16230         * i386.md (mov?f): Avoid the fake const double trick for medium
16231         memory model.
16232         (min?f*/max?f*): Prohibit memory operands for i387 variant.
16233         (fop_df_4): Disable for SSE compilation.
16234
16235 2002-01-10  Graham Stott  <grahams@redhat.com>
16236
16237         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16238         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16239
16240 2002-01-10  Richard Henderson  <rth@redhat.com>
16241
16242         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16243
16244 2002-01-10  Richard Henderson  <rth@redhat.com>
16245
16246         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16247         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
16248
16249 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16250
16251         * combine.c (can_combine_p): Fix a comment typo.
16252
16253 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
16254
16255         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16256         empty list correctly.  Change loop index $t to $f for
16257         consistency with rest of Makefile.
16258
16259 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
16260
16261         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16262         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16263
16264         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16265         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16266         (altivec_init_builtins): Same.
16267         (altivec_expand_unop_builtin): Return NULL_RTX on error.
16268         (altivec_expand_binop_builtin): Same.
16269         (altivec_expand_ternop_builtin): Same.
16270         (bdesc_dst): New.
16271
16272         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16273         ("altivec_vctuxs"): Fix typo.
16274         ("altivec_vnmsubfp"): Same.
16275         ("altivec_dssall"): New.
16276         ("altivec_mfvscr"): New.
16277         ("altivec_dss"): New.
16278         ("altivec_lvsl"): New.
16279         ("altivec_lvsr"): New.
16280         ("altivec_dstt"): New.
16281         ("altivec_dstst"): New.
16282         ("altivec_dststt"): New.
16283         ("altivec_dst"): New.
16284
16285         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16286         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16287
16288 2002-01-09  Richard Henderson  <rth@redhat.com>
16289
16290         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16291
16292 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16293
16294         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16295         function.
16296         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16297         prototype.
16298         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16299
16300 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16301
16302         * read-rtl.c: Fix formatting.
16303         * real.c: Likewise.
16304         * regclass.c: Likewise.
16305         * regrename.c: Likewise.
16306         * reg-stack.c: Likewise.
16307         * reload1.c: Likewise.
16308         * reload.c: Likewise.
16309         * rtl.c: Likewise.
16310
16311 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16312
16313         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16314         to extract items in the expr_list chain.
16315
16316 2002-01-09  Richard Henderson  <rth@redhat.com>
16317
16318         * config/vax/vax.c (vax_rtx_cost): Never abort.
16319
16320         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16321
16322 2002-01-09  Jan Hubicka  <jh@suse.cz>
16323
16324         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16325
16326 2002-01-09  Richard Henderson  <rth@redhat.com>
16327
16328         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16329         Unify code from various alternatives.
16330
16331 2002-01-09  Richard Henderson  <rth@redhat.com>
16332
16333         * regrename.c (copy_value): Ignore the copy if the source register
16334         is present in the value chain with a narrower mode.
16335
16336 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16337
16338         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16339         for the c4x target. Also improve layout.
16340
16341 2002-01-09  Richard Henderson  <rth@redhat.com>
16342
16343         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16344         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16345         to match insn patterns.
16346
16347 2002-01-09  Richard Henderson  <rth@redhat.com>
16348
16349         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16350         (copyprop_hardreg_forward_1): Likewise.
16351
16352 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16353
16354         * pa.md (decrement_and_branch_until_zero): Change predicate for
16355         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16356
16357 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16358
16359         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16360         gets undefined. For Darwin.
16361
16362 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16363
16364         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16365
16366 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16367
16368         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16369
16370 2002-01-08  Richard Henderson  <rth@redhat.com>
16371
16372         * regrename.c (copy_value): Ignore overlapping copies.
16373
16374 2002-01-08  Richard Henderson  <rth@redhat.com>
16375
16376         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16377         as needed to avoid shared structure.
16378
16379 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16380
16381         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16382         H8/300H and H8/S.
16383
16384 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16385
16386         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16387         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16388         documentation of obsolete macros.
16389         * system.h: Poison these macros.
16390         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16391         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16392         config/c4x/c4x.h, config/clipper/clipper.h,
16393         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16394         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16395         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16396         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16397         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16398         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16399         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16400         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16401         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16402         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16403         config/sparc/sparc.h, config/stormy16/stormy16.h,
16404         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16405         definitions and commented out definitions of obsolete macros.
16406         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16407         of MAX_INT_TYPE_SIZE.
16408
16409 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16410
16411         * config/s390/s390.c (s390_preferred_reload_class): Never
16412         return ADDR_REGS if it isn't a subset of the given class.
16413         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16414         FP_REGS, but all superclasses as well.
16415
16416         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16417
16418         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16419         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16420         must not be a const_int.
16421
16422 2002-01-08  Richard Henderson  <rth@redhat.com>
16423
16424         * Makefile.in (toplev.o): Depend on options.h.
16425         (gcc.o): Depend on specs.h.
16426
16427 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16428
16429         * expr.c (store_expr): Convert VOIDmode constants back to target's
16430         mode.
16431
16432 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16433
16434         * doc/invoke.texi: Markup gcc as @command.  Refer to
16435         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16436         of http://gcc.gnu.org/thanks.html.
16437
16438 2002-01-08  Dale Johannesen  <dalej@apple.com>
16439
16440         * config/rs6000/rs6000.md: Add missing int register
16441         target case to movdf_low.
16442
16443 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16444
16445         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16446         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16447         (cppinit.o): Depend on except.h.
16448         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16449         s-specs): New rules.
16450
16451         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16452         Don't create specs.h/options.h/gencheck.h here.  Remove
16453         unnecessary variable settings from last argument of AC_OUTPUT.
16454         * config.in, configure: Regenerate.
16455         * intl.c: Hardcode package name as "gcc".
16456
16457         * cppinit.c: Include except.h.
16458         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16459         appropriate.
16460         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16461         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16462         (!)USING_SJLJ_EXCEPTIONS.
16463         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16464
16465 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16466
16467         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16468         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16469         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16470         documentation of obsolete macros.
16471         * system.h: Poison these macros.
16472         * config/d30v/d30v.h, config/ns32k/encore.h,
16473         config/stormy16/stormy16.h: Remove definitions and commented out
16474         definitions of obsolete macros.
16475
16476 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16477
16478         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16479         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16480         warnings.
16481
16482 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16483
16484         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16485         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16486         to insn adjusting stack/frame pointer.
16487         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16488         accept operands that cause the insn to be non-splittable.
16489
16490 2002-01-08  Graham Stott  <grahams@redhat.com>
16491
16492         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16493         (C_TYPE_FIELDS_VOLATILE): Likewise.
16494         (C_TYPE_BEING_DEFINED): Likewise.
16495         (C_IS_RESERVED_WORD): Likewise.
16496         (C_TYPE_VARIABLE_SIZE): Likewise.
16497         (C_DECL_VARIABLE_SIZE): Likewise.
16498         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16499         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16500         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16501         parenthesis.
16502         (C_DECL_ANTICIPATED): Likewise.
16503         (c_build_type_variant): Add parenthesis.
16504
16505 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16506
16507         * gcc.c (option_map): Remove --version.
16508         (process_command): Handle -fversion following the GNU Coding
16509         Standards.  Partially addresses PR other/704.
16510
16511 2002-01-08  Graham Stott  <grahams@redhat.com>
16512
16513         * combine.c (combine_instructions): Fix typo.
16514
16515 2002-01-08  Graham Stott  <grahams@redhat.com>
16516
16517         * debug.h: Use "tree" and "rtx" throughout.
16518
16519         * debug.c: Likewise.
16520
16521 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16522
16523         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16524         constant pool, use the pool's version of the symbol instead.
16525
16526 2002-01-07  Richard Henderson  <rth@redhat.com>
16527
16528         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16529         the original register was copied in a mode with a fewer number of
16530         hard registers than the desired mode.
16531         (copyprop_hardreg_forward_1): Likewise.
16532         (debug_value_data): Fix loop test.
16533         * toplev.c (parse_options_and_default_flags): Reenable
16534         -fcprop-registers at -O1.
16535
16536 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16537
16538         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16539         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16540
16541         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16542         predicates.
16543
16544         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16545
16546 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16547
16548         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16549         (pa_output_function_prologue): Output local label at the beginning of
16550         the prologue when profiling.
16551         (hppa_profile_hook): Use the local label rather than the function label.
16552         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16553
16554 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16555
16556         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16557         (altivec_expand_unop_builtin): Fix thinko.
16558         (altivec_expand_binop_builtin): Same.
16559         (altivec_expand_ternop_builtin): Same.
16560         (altivec_expand_builtin): Same.
16561
16562 2002-01-07  Richard Henderson  <rth@redhat.com>
16563
16564         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16565
16566 2002-01-07  Jason Merrill  <jason@redhat.com>
16567
16568         * unwind-dw2.c (execute_cfa_program): Use < again.
16569
16570 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16571
16572         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16573
16574 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16575
16576         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16577         Don't allow -1 - x -> ~x simplifications in the first pass.
16578
16579 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16580
16581         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16582         arguments.
16583         (altivec_expand_binop_builtin): Same.
16584         (altivec_expand_unop_builtin): Same.
16585         (print_operand): Fix typo.
16586         (bdesc_1arg): Add vupk* variants.
16587
16588         * rs6000.h (rs6000_builtins): Add vupk* enums.
16589
16590         * rs6000.md: Add altivec_vupk* variants.
16591
16592 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16593
16594         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16595         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16596         and last update dates.
16597
16598 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16599
16600         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16601
16602 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16603
16604         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16605         * config/avr/avr.h (CPP_SPEC): Likewise.
16606         (LINK_SPEC): Likewise.
16607         (CRT_BINUTILS_SPECS): Likewise.
16608         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16609         * doc/invoke.texi (AVR Options): Document them.
16610
16611 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16612
16613         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16614         LABEL_NUSES.
16615
16616 2002-01-07  Graham Stott  <grahams@redhat.com>
16617
16618         * config/i386/i386.h: Update copyright date.
16619         (HALF_PIC_PTR): Add parenthesis.
16620         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16621         (CONSTANT_ALIGNMENT): Add parenthesis.
16622         (DATA_ALIGNMENT): Likewise.
16623         (LOCAL_ALIGNMENT): Likewise.
16624         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16625         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16626         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16627         (HARD_REGNO_NREGS): Add paranethesis.
16628         (VALID_SSE_REG_MODE): Whitespace.
16629         (VALID_MMX_REG_MODE): Whitespace.
16630         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16631         (ix86_hard_regno_mode_ok): Add parenthesis.
16632         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16633         (RETURN_IN_MEMORY): Whitespace.
16634         (N_REG_CLASSES): Add parenthesis.
16635         (INTEGER_CLASS_P): Add parenthesis and wrap.
16636         (FLOAT_CLASS_P): Likewise.
16637         (SSE_CLASS_P): Likewise.
16638         (MMX_CLASS_P): Likewise.
16639         (MAYBE_INTEGER_CLASS_P): Likewise.
16640         (MAYBE_FLOAT_CLASS_P): Likewise.
16641         (MAYBE_SSE_CLASS_P): Likewise.
16642         (MAYBE_MMX_CLASS_P): Likewise.
16643         (Q_CLASS_P): Likewise.
16644         (GENERAL_REGNO_P): Uppercase macro parameter.
16645         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16646         (FP_REGNO_P): Likewise.
16647         (ANY_FP_REGNO_P): Uppercase macro parameter.
16648         (SSE_REGNO_P): Likewise.
16649         (SSE_REGNO): Likewise.
16650         (SSE_REG_P): Likewise.
16651         (SSE_FLOAT_MODE_P): Likewise.
16652         (MMX_REGNO_P): Likewise.
16653         (MMX_REG_P):Likewise.
16654         (STACK_REG_P): Likewise.
16655         (NON_STACK_REG_P): Likewise.
16656         (STACK_TOP_P): Likewise.
16657         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16658         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16659         (SECONDARY_MEMORY_NEEDED): Likewise.
16660         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16661         (MD_ASM_CLOBBERS): Whitespace and wrap.
16662         (MUST_PASS_IN_STACK): Whitespace and wrap.
16663         (RETURN_POPS_ARGS): Add parenthesis.
16664         (INIT_CUMULATIVE_ARGS): Likewise.
16665         (FUNCTION_ARG): Likewise.
16666         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16667         (SETUP_INCOMING_VARARGS): Likewise.
16668         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16669         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16670         parenthsis.
16671         (EXPAND_BUILTIN_VA_ARG): Likewise.
16672         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16673         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16674         (INITIAL_ELIMINATION_OFFSET): Likewise.
16675         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16676         (REGNO_OK_FOR_BASE_P): Likewise.
16677         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16678         (REGNO_OK_FOR_DIREG_P): Likewise.
16679         (REG_OK_FOR_INDEX_P): Whitespace.
16680         (REG_OK_FOR_BASE_P): Whitespace.
16681         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16682         parenthesis.
16683         (FIND_BASE_TERM): Fix typo.
16684         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16685         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16686         (SYMBOLIC_CONST; Whitespace.
16687         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16688         (ENCODE_SECTION_INFO): Whitespace.
16689         (FINALIZE_PIC): Remove do { ... } while (0).
16690         (PROMOTE_MODE): Wrap in do { ... } while (0).
16691         (CONST_COSTS): Whitespace.
16692         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16693         (REGISTER_MOVE_COST): Add parenthesis.
16694         (MEMORY_MOVE_COST): Likewise.
16695         (EXTRA_CC_MODES): Whitespace.
16696         (SELECT_CC_MODE): Add parenthesis and whitespace.
16697         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16698         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16699         (ASM_OUTPUT_LABEL): Add paramethesis.
16700         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16701         (ASM_OUTPUT_REG_POP): Likewise.
16702         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16703         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16704
16705         * config/i386/i386.c: Update copyright.
16706         (CHECK_STACK_LIMIT): Add parenthesis.
16707         (AT_BP): Uppercase macro parameter.
16708         (x86_64_int_parameter_registers): Constify.
16709         (x86_64_int_return_registers): Likewise.
16710         (ix86_compare_op0): Use rtx.
16711         (construct_container): Constify INTREG parameter.
16712         (function_arg): Use rtx.
16713
16714         * diagnostic.h: Update copyright date.
16715         (output_buffer_state): Add parenthesis.
16716         (output_buffer_format_args): Likewise.
16717
16718         * combine.c (combine_instructions): Replace XEXP (links, 0)
16719         with link.
16720
16721 2002-01-06  H.J. Lu <hjl@gnu.org>
16722
16723         * cfgcleanup.c (thread_jump): Fix 2 typos.
16724
16725 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16726
16727         * config.gcc: Add support for --enable-altivec.
16728
16729 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16730
16731         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16732
16733 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16734
16735         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16736         __objc_class_name_*.
16737
16738 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16739
16740         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16741
16742 2002-01-06  Richard Henderson  <rth@redhat.com>
16743
16744         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16745         nop them out.  Increment label reference count for REG_LABEL.
16746         (fill_slots_from_thread): Frob label reference count around
16747         delete_related_insns.
16748
16749 2002-01-05  Richard Henderson  <rth@redhat.com>
16750
16751         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16752         jump threading.
16753
16754 2002-01-05  Richard Henderson  <rth@redhat.com>
16755
16756         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16757         * integrate.c (output_inline_function): Likewise.
16758         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16759         to remove_unnecessary_notes after emitting abstract instance.
16760         Force an emitted nested function to have its parent emited as well.
16761         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16762         for null.
16763         (rtl_for_decl_location): Do not look at reload data structures
16764         before reload has run.
16765
16766 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16767
16768         * cse.c: Fix formatting.
16769         * dwarf2asm.c: Likewise.
16770         * dwarf2out.c: Likewise.
16771         * explow.c: Likewise.
16772         * expmed.c: Likewise.
16773         * function.c: Likewise.
16774         * gcov.c: Likewise.
16775         * gencheck.c: Likewise.
16776         * genrecog.c: Likewise.
16777         * ggc-common.c: Likewise.
16778         * ggc-page.c: Likewise.
16779         * global.c: Likewise.
16780
16781 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16782
16783         * combine.c: Fix formatting.
16784
16785 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16786
16787         PR middle-end/1557
16788         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16789
16790 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16791
16792         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16793         as 1 for __powerpc64__ as well.
16794
16795         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16796
16797         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16798         return it.
16799
16800 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16801
16802         * lcm.c: Revert change, due to performance regression it causes on
16803         SPEC because it's slightly more conservative (sigh, I hate
16804         edge-based LCM).
16805
16806 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16807
16808         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16809
16810 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16811
16812         * doc/cppinternals.texi: Update.
16813
16814 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16815
16816         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16817         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16818         negatives.
16819         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16820         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16821         kludge for pre-october-14th mmix versions to handle new-found bug
16822         with PUSHJ/PUSHGO and the register stack.
16823         * config/mmix/mmix.h (struct machine_function): Rename member
16824         has_call_value_without_parameters to has_call_without_parameters.
16825         All referers changed.
16826         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16827         TARGET_MASK_BRANCH_PREDICT): New macros.
16828         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16829         -mno-reg-stack-fill-bug-workaround.
16830         * config/mmix/mmix.md ("call"): Set struct machine member
16831         has_call_without_parameters.
16832
16833 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16834
16835         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16836
16837 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16838
16839         * cfgcleanup.c: Include tm_p.h
16840         (mark_effect): Fix handling of hard register; fix handling of SET
16841
16842 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16843
16844         * config/h8300/h8300.md (anonymous patterns): Check that
16845         operands are registers before using REGNO on them.
16846
16847 2002-01-03  Roland McGrath  <roland@frob.com>
16848
16849         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16850
16851 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16852
16853         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16854         * c-common.h (genrtl_expr_stmt_value): Likewise.
16855         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16856         (expand_expr_stmt_value): Add maybe_last argument.
16857         Don't warn about statement with no effect if it is the last statement
16858         in expression statement.
16859         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16860         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16861         expand_expr_stmt_value.
16862         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16863         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16864         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16865         as maybe_last to expand_expr_stmt_value.
16866
16867 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16868
16869         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16870         be passed in, do not build it.
16871         (c_begin_if_stmt): New function.
16872         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16873         * c-common.h (c_expand_start_cond): Update prototype.
16874         (c_begin_if_stmt): Prototype new function.
16875         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16876         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16877         c_begin_while_stmt and c_finish_while_stmt_cond.
16878
16879 2002-01-04  William Cohen  <wcohen@redhat.com>
16880
16881         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16882         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16883         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16884         * config/pa/som.h (ASM_FILE_START): Likewise.
16885
16886 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16887
16888         * lcm.c: Include df.h.
16889         Add available_transfer_function prototype.
16890         (compute_available): Rework to use iterative dataflow framework.
16891         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16892         with bb_info in df.h
16893         (available_transfer_function): New function.
16894
16895         * Makefile.in (lcm.o): add df.h to dependencies.
16896
16897 2002-01-04  Richard Henderson  <rth@redhat.com>
16898
16899         * config/alpha/alpha.c (some_operand): Accept HIGH.
16900         (input_operand): Likewise; accept simple references to globals.
16901         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16902         (alpha_const_double_ok_for_letter_p): Likewise.
16903         (alpha_extra_constraint): Likewise.
16904         (alpha_preferred_reload_class): Likewise.  Do not force
16905         symbolic constants to memory.
16906         (alpha_legitimate_address_p): Accept simple references
16907         to small_symbolic_operand.
16908         (alpha_legitimize_address): New arg scratch.  Be prepared to be
16909         called when no_new_pseudos.  Emit simple symbolic references.
16910         Split integers into low, high, and rest.
16911         (alpha_expand_mov): Use alpha_legitimize_address.
16912         (some_small_symbolic_mem_operand): New.
16913         (split_small_symbolic_mem_operand): New.
16914         * config/alpha/alpha-protos.h: Update.
16915         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16916         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16917         (EXTRA_CONSTRAINT): Likewise.
16918         (PREFERRED_RELOAD_CLASS): Likewise.
16919         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16920         (PREDICATE_CODES): Update.
16921         * config/alpha/alpha.md: New post-reload splitters to convert
16922         simplfied symbolic operands to the form that references $29.
16923         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16924         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16925
16926 2002-01-03  Richard Henderson  <rth@redhat.com>
16927
16928         * local-alloc.c (function_invariant_p): Update commentary.
16929
16930 2002-01-04  H.J. Lu <hjl@gnu.org>
16931
16932         * toplev.c (rest_of_compilation): Fix a typo when calling
16933         cleanup_cfg.
16934
16935 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16936
16937         * c-common.c: Fix formatting.
16938         * diagnostic.c: Likewise.
16939         * doloop.c: Likewise.
16940         * dwarf2out.c: Likewise.
16941
16942 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16943
16944         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16945         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16946
16947 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16948
16949         * cpperror.c: Update comments and copyright.
16950         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16951         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16952
16953 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16954
16955         * collect2.c (main): Use strcmp when testing for "-shared".
16956
16957 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16958
16959         * cppmacro.c: Don't include intl.h.  Update comments.
16960         (new_number_token): Allocate enough buffer for 64-bit unsigned
16961         integers; update prototype.
16962         * cppmain.c: Update comments.
16963
16964 2002-01-03  William Cohen  <wcohen@redhat.com>
16965
16966         * function.h (struct function): Add profile.
16967         (current_function_profile): New.
16968         doc/extend.texi: Update documentation.
16969         * final.c (final_start_function): Use current_function_profile
16970         instead of profile_flag.
16971         (profile_after_prologue): Likewise.
16972         * function.c (expand_function_start): Likewise.
16973         (expand_function_start): Likewise.
16974         * config/alpha/alpha.c (direct_call_operand):
16975         (alpha_does_function_need_gp): Likewise.
16976         (alpha_expand_prologue): Likewise.
16977         * config/arm/arm.c (arm_expand_prologue): Likewise.
16978         thumb_expand_prologue: Likewise.
16979         * config/d30v/d30v.c (d30v_stack_info): Likewise.
16980         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16981         (fr30_expand_prologue): Likewise.
16982         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16983         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16984         * config/i386/i386.h (FINALIZE_PIC): Likewise.
16985         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16986         * config/i960/i960.c (i960_output_function_prologue): Likewise.
16987         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16988         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16989         (m32r_expand_prologue): Likewise.
16990         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16991         (m88k_expand_prologue): Likewise.
16992         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16993         * config/mips/mips.c (compute_frame_size): Likewise.
16994         (mips_expand_prologue): Likewise.
16995         (mips_can_use_return_insn): Likewise.
16996         * config/pa/elf.h (ASM_FILE_START): Likewise.
16997         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16998         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16999         * config/pa/som.h (ASM_FILE_START): Likewise.
17000         * config/romp/romp.c (romp_using_r14): Likewise.
17001         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
17002         (rs6000_stack_info): Likewise.
17003         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
17004         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
17005         * config/v850/v850.c (compute_register_save_size): Likewise.
17006
17007 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
17008
17009         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
17010         gen_lowpart_common fails, use gen_lowpart_SUBREG.
17011
17012 2002-01-03  Turly O'Connor  <turly@apple.com>
17013
17014         * darwin.c (machopic_output_possible_stub_label): Don't generate
17015         stub routines for pseudo-stubs which we've just defined.
17016
17017 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17018
17019         * builtins.c: Fix formatting.
17020         * c-typeck.c: Likewise.
17021         * combine.c: Likewise.
17022         * expr.c: Likewise.
17023         * loop.c: Likewise.
17024
17025 2002-01-03  Andreas Schwab  <schwab@suse.de>
17026
17027         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
17028         and return true if _cpp_push_next_buffer pushed a new include
17029         file.
17030         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
17031         _cpp_pop_file_buffer did not push a new file.
17032         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
17033
17034 2002-01-02  Eric Christopher  <echristo@redhat.com>
17035
17036         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
17037         FIND_REG_INC_NOTE call. Update copyright.
17038         * loop.c (canonicalize_condition): Ditto.
17039         * reorg.c (delete_scheduled_jump): Ditto.
17040
17041 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17042
17043         * gcse.c: Fix formatting.
17044
17045 2002-01-03  Graham Stott  <grahams@redhat.com>
17046
17047         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
17048         forward defs for struct tags rtx_def, union_tree, rtvec_def
17049         also output corresponding typedefs for rtx, tree, and rtvec.
17050
17051         * system.h: Move forward defs for struct tags rtx_def, union_tree,
17052         rtvec_def along with corresponding typedefs for rtx, tree, and
17053         rtvec to config.h, hconfig.h, tconfig.h.
17054
17055 2002-01-03  Graham Stott  <grahams@redhat.com>
17056
17057         * tree.h: Update copyright date.
17058         (IS_EXPR_CODE_CLASS): Add parenthesis.
17059         (TREE_SET_CODE): Add whitespace.
17060         (TREE_CHECK): Add parenthesis.
17061         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
17062         (CST_OR_CONSTRUCTOR_CHECK):
17063         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
17064         (TREE_SYMBOL_REFERENCED): Whitespace.
17065         (INT_CST_LT): Likewise.
17066         (INT_CST_LT_UNSIGNED): Likewise.
17067         (tree_real_cst): Unwrap comment.
17068         (tree_string): Likewise.
17069         (tree_complex): Likewise.
17070         (IDENTIFIER_POINTER): correct cast.
17071         (SAVE_EXPR_CONTEXT): Whitespace.
17072         (EXPR_WFL_FILENAME_NODE): Likewise.
17073         (EXPR_WFL_FILENAME): Remove parenthesis.
17074         (DECL_ORIGIN): Add parenthesis.
17075         (DECL_FROM_INLINE): Use NULL_TREE.
17076         (build_int_2): Whitespace.
17077         (build_type_variant): Add parenthesis.
17078
17079         * gcc/jcf-parse.c: Update copyright date.
17080         (yyparse): Constify resource_filename.
17081
17082 2002-01-03  Graham Stott  <grahams@redhat.com>
17083
17084         * rtl.h: Update copyright date.
17085         (RTL_CHECK1): Wrap long line.
17086         (RTL_CHECK2): Likewise.
17087         (RTL_CHECKC1): Wrap long line and whitespace.
17088         (RTL_CHECKC2): Likewise.
17089         (XWINT): Whitespace.
17090         (XINT): Likewise.
17091         (XSTR): Likewise.
17092         (XEXP): Likewise.
17093         (XVEC): Likewise.
17094         (XMODE): Likewise.
17095         (XBITMAP): Likewise.
17096         (XTREE): Likewise.
17097         (XBBDEF): Likewise.
17098         (XTMPL): Likewise.
17099         (X0WINT): Likewise.
17100         (X0INT):Likewise.
17101         (X0UINT): Likewise.
17102         (X0STR): Likewise.
17103         (X0EXP): Likewise.
17104         (X0VEC): Likewise.
17105         (X0MODE): Likewise.
17106         (X0BITMAP): Likewise.
17107         (X0TREE): Likewise.
17108         (X0BBDEF): Likewise.
17109         (X0ADVFLAGS): Likewise.
17110         (X0CSELIB): Likewise.
17111         (X0MEMATTR): Likewise.
17112         (XCWINT): Likewise.
17113         (XCINT): Likewise.
17114         (XCUINT): Likewise.
17115         (XCSTR): Likewise.
17116         (XCEXP): Likewise.
17117         (XCVEC): Likewise.
17118         (XCMODE): Likewise.
17119         (XCBITMAP): Likewise.
17120         (XCTREE): Likewise.
17121         (XCBBDEF): Likewise.
17122         (XCADVFLAGS): Likewise.
17123         (XCCSELIB): Likewise.
17124         (XC2EXP): Likewise.
17125         (INSN_UID): Likewise.
17126         (PREV_INSN): Likewise.
17127         (PATTERN): Likewise.
17128         (INSN_CODE): Likewise.
17129         (PUT_REG_NOTE_KIND): Likewise.
17130         (CODE_LABEL_NUMBER): Likewise.
17131         (NOTE_SOURCE_FILE): Likewise.
17132         (NOTE_BLOCK): Likewise.
17133         (NOTE_EH_HANDLER): Likewise.
17134         (NOTE_RANGE_INFO): Likewise.
17135         (NOTE_LIVE_INFO): Likewise.
17136         (NOTE_BASIC_BLOCK): Likewise.
17137         (NOTE_EXPECTED_VALUE): Likewise.
17138         (NOTE_LINE_NUMBER): Likewise.
17139         (LABEL_NAME): Likewise.
17140         (LABEL_NUSES): Likewise.
17141         (LABEL_ALTERNATE_NAME): Likewise.
17142         (ADDRESSOF_DECL): Likewise.
17143         (JUMP_LABEL): Likewise.
17144         (LABEL_NEXTREF): Likewise.
17145         (REGNO): Likewise.
17146         (ORIGINAL_REGNO: Likewise.
17147         (HARD_REGISTER_NUM_P): Add parenthesis.
17148         (SUBREG_REG): Whitespace.
17149         (SUBREG_BYTE): Likewise.
17150         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17151         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17152         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17153         (ASM_OPERANDS_INPUT_VEC): Likewise.
17154         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17155         (ASM_OPERANDS_INPUT): Likewise.
17156         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17157         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17158         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17159         (ASM_OPERANDS_INPUT_MODE): Likewise.
17160         (ASM_OPERANDS_SOURCE_FILE): Likewise.
17161         (ASM_OPERANDS_SOURCE_LINE): Likewise.
17162         (MEM_SET_IN_STRUCT_P): Minor reformat.
17163         (TRAP_CONDITION): Whitespace.
17164         (TRAP_CODE): Likewise.
17165         (COND_EXEC_TEST): Likewise.
17166         (COND_EXEC_CODE): Likewise.
17167         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17168         (PHI_NODE_P): Add parenthesis.
17169         (plus_constant): Whitespace and add parenthesis.
17170
17171 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17172
17173         * config/avr/avr.c: Fix comment typos.
17174         * config/c4x/c4x.md: Likewise.
17175         * config/dsp16xx/dsp16xx.h: Likewise.
17176         * config/dsp16xx/dsp16xx.md: Likewise.
17177         * config/i386/i386.md: Likewise.
17178         * config/ia64/ia64.c: Likewise.
17179         * config/m32r/m32r.h: Likewise.
17180         * config/m68hc11/m68hc11.md: Likewise.
17181         * config/mmix/mmix.c: Likewise.
17182         * config/mn10200/mn10200.c: Likewise.
17183         * config/romp/romp.c: Likewise.
17184         * config/sh/sh.c: Likewise.
17185         * config/stormy16/stormy16.c: Likewise.
17186         * config/stormy16/stormy16.h: Likewise.
17187         * config/stormy16/stormy16.md: Likewise.
17188
17189 2002-01-03  Graham Stott  <grahams@redhat.com>
17190
17191         * loop.h: Update copyright date.
17192         (LOOP_MOVABLES): Fix typo.
17193         (LOOP_REGS): Likewise.
17194         (LOOP_IVS): Likewise.
17195
17196 2002-01-03  Graham Stott  <grahams@redhat.com>
17197
17198         * cppinit.c: Update copyright date.
17199         Don't include output.h
17200         * Makefile.in: Update copyright date.
17201         Update dependency.
17202
17203 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17204
17205         PR c/5226
17206         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17207         (-pthread) Add to RS/6000 options.
17208
17209 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17210
17211         * except.c: Fix comment typos.
17212         * loop.c: Likewise.
17213         * varasm.c: Likewise.
17214         * doc/tm.texi: Fix a typo.
17215
17216 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
17217
17218         * c-typeck.c (output_init_element): Allow initializing static storage
17219         duration objects with compound literals.
17220
17221 2002-01-02  Richard Henderson  <rth@redhat.com>
17222
17223         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17224         after abusing it.
17225
17226 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17227
17228         * gcc.c (default_compilers): Const-ify.
17229         * mips-tdump.c (stab_names): Likewise.
17230         * mips-tfile.c (map_coff_types, map_coff_storage,
17231         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17232         pseudo_ops_t, pseudo_ops): Likewise.
17233         * protoize.c (default_include): Likewise
17234
17235         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17236         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17237         Add array size in declaration.
17238         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17239         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17240         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17241         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17242         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17243         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17244         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17245         emtens, make_nan): Const-ify.
17246         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17247         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17248
17249 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
17250
17251         * config.gcc (ia64-*-*): Set extra_headers.
17252         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
17253         * config/alpha/t-osf: Remove.
17254         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17255
17256 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
17257
17258         * config/rs6000/t-aix43: Revert previous change.
17259
17260 2002-01-02  Jason Merrill  <jason@redhat.com>
17261
17262         * c-decl.c (c_expand_body): Call outlining_inline_function when
17263         emitting an inline function out of line.
17264
17265 2002-01-02  Richard Henderson  <rth@redhat.com>
17266
17267         * dwarf2out.c (limbo_die_node): Add created_for member.
17268         (new_die): New argument created_for.  Update all callers.
17269         (mark_limbo_die_list): New.
17270         (dwarf2out_init): Register limbo_die_list as a root.
17271         (dwarf2out_finish): Force insert limbo dies into their function
17272         context.
17273
17274 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
17275
17276         PR c++/5089
17277         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17278
17279 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17280
17281         * config/h8300/fixunssfsi.c: Update copyright.
17282         Fix comment typos.
17283         Fix formatting.
17284         * config/h8300/h8300.c: Update copyright.
17285         Eliminate warnings.
17286
17287 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17288
17289         * config/romp/romp.c: Fix comment formatting.
17290         * config/romp/romp.h: Likewise.
17291         * config/romp/romp.md: Likewise.
17292         * config/s390/s390.c: Likewise.
17293         * config/stormy16/stormy16.c: Likewise.
17294         * config/stormy16/stormy16.h: Likewise.
17295
17296 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17297
17298         * c-common.h (genrtl_expr_stmt_value): Declare.
17299         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17300         (genrtl_goto_stmt_value): ... this new function.  Pass new
17301         argument down to expand_expr_stmt_value, taking
17302         TREE_ADDRESSABLE into account.
17303         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17304         STMT_EXPR as addressable, i.e., one whose result we want.
17305         * expr.c (expand_expr): Don't save expression statement value
17306         of labeled_blocks or loop_exprs.
17307         * stmt.c (expand_expr_stmt): Redirect to...
17308         (expand_expr_stmt_value): ... this new function.  Use new
17309         argument to tell whether to save expression value.
17310         (expand_end_stmt_expr): Reset last_expr_type and
17311         last_expr_value if we don't have either.
17312         * tree-inline.c (declare_return_variable): Mark its use
17313         statement as addressable.
17314         * tree.h: Document new use of TREE_ADDRESSABLE.
17315         (expand_expr_stmt_value): Declare.
17316
17317 2002-01-01  Tom Rix  <trix@redhat.com>
17318
17319         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17320         rs6000_emit_allocate_stack.
17321
17322 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17323
17324         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17325         ${srcdir}/ginclude/ to every entry in extra_headers.
17326         * configure: Regenerate.
17327         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17328         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17329         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17330         * ginclude/proto.h: Rename to config/convex/proto.h.
17331
17332 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17333
17334         * attribs.c (handle_vector_size_attribute): Use host_integerp
17335         and tree_int_cst; remove warnings.
17336         * caller-save.c (insert_restore): Add cast to get rid of warning.
17337         (insert_save): Likewise.
17338         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17339         * regmove.c (find_matches): Add temporary var to kill a warning.
17340
17341 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17342
17343         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17344         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17345         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17346         (vms-dwarf2eh.o): Add Makefile rule.
17347         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17348         * config/alpha/vms-dwarf2eh.asm: New file.
17349
17350         * gcc.c (delete_if_ordinary): Delete all versions.
17351
17352 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17353
17354         * config/mmix/mmix.md: Update FIXME to not mention
17355         define_constants.
17356         (MMIX_rJ_REGNUM): New define_constants constant.
17357         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17358         "*movdicc_real"): Adjust contraints formatting.
17359         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17360         for branch prediction.
17361         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17362         output template.
17363         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17364         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17365         number.  Delete related FIXMEs.
17366         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17367         from number to MMIX_rJ_REGNUM.
17368         (TARGET_MASK_BRANCH_PREDICT): New.
17369         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17370         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17371         value.  Add -mbranch-predict and -mno-branch-predict.
17372         (TARGET_VERSION): Drop date.
17373         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17374         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17375         for finding out global symbols.
17376         (mmix_asm_output_labelref): Revert condition for global symbol.
17377         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17378         (mmix_print_operand_punct_valid_p): A '+' is valid.
17379
17380 See ChangeLog.6 for earlier changes.