OSDN Git Service

2e5018942e995c4eeea755fc01ed5a9286468967
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 Sat Jun  1 23:29:51 CEST 2002  Jan Hubicka  <jh@suse.cz>
2
3         * Makefile.in (tracer.o): New.
4         * params.def (TRACER_*): New options.
5         * rtl.h (tracer): Declare.
6         * timevar.def (TV_TRACER): New.
7         * toplev.c (dump_file_index): Add DFI_tracer.
8         (dump_file_info): Add tracer.
9         (flag_tracer): New.
10         (lang_indepdenent_options): Add tracer.
11         (rest_of_compilation): Call tracer.
12         * tracer.c: New file.
13         * invoke.texi (-ftracer): Document.
14         (--param tracer-*): Document.
15
16 2002-06-01  Daniel Berlin  <dberlin@dberlin.org>
17
18         * tree-inline.c (expand_call_inline): Make the statement
19         expression we generate have a COMPOUND_STMT.    
20
21 2002-06-01  Roger Sayle  <roger@eyesopen.com>
22
23         * gcse.c (cprop_cc0_jump): Function deleted.
24         (cprop_jump): Take an additional argument which is the possibly
25         NULL cc setting insn immediately before the conditional jump.
26         When a MODE_CC set is present, substitute it into the JUMP_INSN
27         before attempting the constant propagation.
28         (cprop_insn):  Recognize cc setters followed by conditional jumps
29         as a special case.   Use cprop_jump instead of cprop_cc0_jump.
30         (cprop_one_pass):  Call bypass_conditional_jumps if altering jumps.
31         (find_bypass_set): New function based upon find_avail_set used by
32         cprop, but finds constant expressions available at the end of
33         basic blocks.
34         (bypass_block): New function.  Given a basic block that begins
35         with a conditional jump and multiple incoming edges, perform
36         the jump bypass optimization.
37         (bypass_conditional_jumps): New function.  Call bypass_block with
38         each suitable basic block in the CFG using a simple single pass.
39
40 2002-06-01  Roger Sayle  <roger@eyesopen.com>
41
42         * tree.c (real_minus_onep): New function to test for -1.0.
43         * fold-const.c (fold) [MULT_EXPR]:  Optimize -1.0*x into -x.
44
45 2002-06-01  Roger Sayle  <roger@eyesopen.com>
46
47         * fold-const.c (fold_truthop): Transform "a || b" into "(a|b) != 0"
48         and "!p && !q" into "(p|q) == 0" under suitable conditions.
49
50 2002-06-01  Andreas Jaeger  <aj@suse.de>
51
52         * cppexp.c (cpp_classify_number): Cast precission to int for
53         correct printf format.
54
55 2002-06-01  Marek Michalkiewicz  <marekm@amelek.gda.pl>
56
57         * config/avr/avr.c (avr_mcu_types): Remove devices that were once
58         expected, but don't really exist: atmega83, atmega85, attiny10.
59         * config/avr/avr.h (LINK_SPEC): Update to use the new avr[1-5] ld
60         emulations for all devices.
61         (CRT_BINUTILS_SPECS): Remove atmega83, atmega85, attiny10.
62         * config/avr/t-avr (MULTILIB_MATCHES): Remove atmega83, atmega85.
63
64 2002-06-01  Kazu Hirata  <kazu@cs.umass.edu>
65
66         * config/h8300/h8300-protos.h: Add a prototype for
67         h8300_shift_needs_scratch_p.
68         * config/h8300/h8300.c (h8300_shift_needs_scratch_p): New.
69         * config/h8300/h8300.h (OK_FOR_R): New.
70         (OK_FOR_S): Likewise.
71         (OK_FOR_T): Likewise.
72         (EXTRA_CONSTRAINT): Call OK_FOR_R, OK_FOR_S, and OK_FOR_T.
73         * config/h8300/h8300.md (anonymous shift patterns): Use
74         constraints R, S, and T.
75
76 Sat Jun  1 11:23:22 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
77
78         * basic-block.h (struct basic_block_def): New field loop_father.
79         (BB_VISITED): New flag.
80         (struct loop): New field pred, removed field shared.
81         (struct loops): New field parray.
82         (LOOP_EXITS_DOMS): Removed.
83         (flow_loop_tree_node_add, flow_loop_tree_node_remove,
84         flow_loop_nested_p, flow_bb_inside_loop_p, get_loop_body,
85         dfs_enumerate_from, loop_preheader_edge, loop_latch_edge,
86         add_bb_to_loop, remove_bb_from_loops, find_common_loop,
87         verify_loop_structure): Declare.
88         * cfg.c (entry_exit_blocks): Initialize loop_father field.
89         * cfganal.c (dfs_enumerate_from): New function.
90         * cfgloop.c (HEAVY_EDGE_RATIO): New constant.
91         (flow_loop_entry_edges_find, flow_loop_exit_edges_find,
92         flow_loop_nodes_find, flow_loop_level_compute, flow_loop_nested_p,
93         flow_loop_dump, flow_loops_dump, flow_loops_free,
94         flow_loop_tree_node_add, flow_loop_level_compute,
95         flow_loops_level_compute, flow_loop_scan, flow_loops_update,
96         flow_loop_outside_edge_p): Modified for new infrastructure.
97         (make_forwarder_block, canonicalize_loop_headers, glb_enum_p,
98         redirect_edge_with_latch_update, flow_loop_free): New static functions.
99         (flow_loop_tree_node_remove, flow_bb_inside_loop_p,
100         get_loop_body, add_bb_to_loop, remove_bb_from_loops,
101         find_common_loop, verify_loop_structure, loop_latch_edge,
102         loop_preheader_edge): New functions.
103         (flow_loops_cfg_dump): Do not show dominators, as this information
104         does not remain up to date long.
105         (flow_loops_find): Store results in new format.
106         * predict.c (propagate_freq, estimate_probability,
107         estimate_loops_at_level, estimate_bb_frequencies): Use new loop
108         infrastructure.
109
110 2002-06-01  Alan Lehotsky  <apl@alum.mit.edu>
111
112         * except.c (nothrow_function_p): Walk epilogue delay list
113         checking the insn, not the chain for potential throws.
114
115 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
116
117         * Makefile.in (INSTALL_CPP, UNINSTALL_CPP): Remove.
118         (install): Refer to install-cpp directly.
119         (uninstall-cpp): Folded into uninstall rule.
120         * configure.in: Delete all code relating to --disable-cpp.
121         * configure: Regenerate.
122         * config/t-install-cpp: Delete.
123
124 2002-05-31  Richard Henderson  <rth@redhat.com>
125
126         * configure.in (HAVE_AS_TLS): Add alpha tests.
127         * configure: Rebuild.
128         * config/alpha/alpha.c (TARGET_AS_TLS): New.
129         (alpha_tls_size, alpha_tls_size_string): New.
130         (overide_options): Set it.  Always install machine_status hooks.
131         (input_operand): Accept got tls predicates.
132         (local_symbol_p): Merge into ...
133         (local_symbolic_operand): ... here.  Reject tls symbols.
134         (global_symbolic_operand): Likewise.
135         (tls_symbolic_operand_1, dtp16_symbolic_operand): New.
136         (dtp32_symbolic_operand, gotdtp_symbolic_operand): New.
137         (tp16_symbolic_operand, tp32_symbolic_operand): New.
138         (gottp_symbolic_operand, tls_symbolic_operand_type): New.
139         (alpha_encode_section_info): Handle TLS symbols.
140         (alpha_strip_name_encoding): Likewise.
141         (alpha_legitimate_address_p): Likewise.
142         (alpha_legitimize_address): Likewise.
143         (alpha_expand_mov): Early exit to avoid nop moves.
144         (struct machine_function): Move from unicosmk.h.  Add some_ld_name.
145         (alpha_init_machine_status, alpha_mark_machine_status,
146         alpha_free_machine_status): Always define.
147         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): New.
148         (print_operand, print_operand_address): Add TLS relocs.
149         * config/alpha/alpha.h (HAVE_AS_TLS): Default 0.
150         (MASK_TLS_KERNEL, TARGET_TLS_KERNEL): New.
151         (TARGET_SWITCHES): Add -mtls-kernel.
152         (alpha_tls_size, alpha_tls_size_string): New.
153         (TARGET_OPTIONS): Add -mtls-size=.
154         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS,
155         REGNO_REG_CLASS, REG_CLASS_FROM_LETTER): Add R0_REG.
156         (ASM_OUTPUT_LABELREF): Skip %.
157         (PRINT_OPERAND_PUNCT_VALID_P): Add &.
158         (PREDICATE_CODES): Update.
159         * config/alpha/alpha.md (UNSPEC_TLSGD_CALL, UNSPEC_TLSLDM_CALL,
160         UNSPEC_TLSGD, UNSPEC_TLSLDM, UNSPEC_DTPREL, UNSPEC_TPREL,
161         UNSPEC_TP, UNSPECV_SET_TP): New.
162         (adddi_er_lo16_dtp, adddi_er_hi32_dtp, adddi_er_lo32_dtp,
163         adddi_er_lo16_tp, adddi_er_hi32_tp, adddi_er_lo32_tp, load_tp,
164         set_tp, movdi_er_tlsgd, movdi_er_tlsldm, movdi_er_gotdtp,
165         movdi_er_gottp, call_value_osf_tlsgd, call_value_osf_tlsldm): New.
166         (call_value_osf_2_er): Accept anything as op4.
167         * config/alpha/alpha-protos.h: Update.
168         * config/alpha/unicosmk.h (struct machine_function): Move to alpha.c.
169
170 2002-05-31  Zack Weinberg  <zack@codesourcery.com>
171
172         * cppinit.c (append_include_chain): Always pay attention to
173         cxx_aware when setting new->sysp.  Remove ATTRIBUTE_UNUSED
174         marker on argument.
175
176 2002-05-31  Kazu Hirata  <kazu@cs.umass.edu>
177
178         * target.h: Fix formatting.
179         * timevar.h: Likewise.
180         * tlink.c: Likewise.
181         * toplev.c: Likewise.
182         * toplev.h: Likewise.
183         * tree.c: Likewise.
184         * tree-dump.h: Likewise.
185         * tree.h: Likewise.
186         * tree-inline.h: Likewise.
187         * unroll.c: Likewise.
188         * unwind-dw2.c: Likewise.
189         * unwind-dw2-fde.c: Likewise.
190         * unwind-dw2-fde-glibc.c: Likewise.
191         * unwind-dw2-fde.h: Likewise.
192         * unwind.h: Likewise.
193         * unwind-sjlj.c: Likewise.
194         * varasm.c: Likewise.
195         * varray.h: Likewise.
196         * vmsdbg.h: Likewise.
197         * vmsdbgout.c: Likewise.
198         * xcoffout.h: Likewise.
199
200 2002-05-31  Igor Shevlyakov <igor@microunity.com>
201
202         * expr.c (compare_from_rtx): Generate comparison between op0 and op1
203         rather than cc0 and 0 in a case when HAVE_cc0 is not defined.
204
205 2002-05-31  Matthew Woodcraft  <mattheww@chiark.greenend.org.uk>
206
207         * gcc.c (cpp_unique_options): Remove "-d" options.
208         (cpp_debug_options): New spec string.
209         (default_compilers): Use it.
210         * objc/lang-specs.h: Likewise.
211
212 2002-05-31  Nathanael Nerode  <neroden@twcny.rr.com>
213
214         * gcc/Makefile.in: Replace HOST_PREFIX, HOST_PREFIX_1 with
215         BUILD_PREFIX, BUILD_PREFIX_1, to correct nomenclature.
216         * gcc/mklibgcc.in: Likewise.
217         * gcc/config/arc/t-arc: Likewise.
218         * gcc/configure.in: Likewise.
219         * gcc/configure: Regenerate.
220
221 2002-05-31  Stan Shebs  <shebs@apple.com>
222             Turly O'Connor  <turly@apple.com>
223
224         * c-decl.c (struct binding_level): Change int field n_incomplete
225         to tree list incomplete_list.
226         (clear_binding_level): Init field with NULL.
227         (pushdecl): Add incomplete type to list.
228         (mark_binding_level): Mark the incomplete list.
229         (finish_struct): Scan the incomplete list for types instead
230         of all decls in the current binding level.
231
232 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
233
234         * pa.c (output_millicode_call): Add missing '%' characters.
235         (output_call): Likewise.
236
237 2002-05-31  David Edelsohn  <edelsohn@gnu.org>
238
239         * config/rs6000/xcoff.h (HOT_TEXT_SECTION_NAME): Define.
240         (UNLIKELY_EXECUTED_TEXT_SECTION_NAME): Define.
241
242 2002-05-31  Alan Lehotsky <apl@alum.mit.edu>
243
244         * varasm.c (mark_constant_pool): Walk epilogue delay list
245         checking the insn, not the chain for potential constants.
246
247 Fri May 31 12:38:43 2002  J"orn Rennecke <joern.rennecke@superh.com>
248
249         * config/sh/elf.h (ASM_SPEC): Use subtarget_endian_asm_spec.
250
251 Fri May 31 13:50:19 CEST 2002  Jan Hubicka  <jh@suse.cz>
252
253         * i386.c (classify_argument): Properly handle base types.
254
255         * dwarf2out.c (expand_builin_init_dwarf_reg_sizes):
256         Store first DWARF_FRAME_REGISTERS dwarf registers, not pseudo
257         registers.
258
259 Fri May 31 13:37:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
260
261         * gcse.c (gcse_emit_move_after): New.
262         (pre_delete, hoist_store): Use it.
263
264         * reload1.c (emit_input_reload_insns): Use constrain_operands
265         instead of constraint_accepts_reg_p to verify optimization.
266         (constraint_accepts_reg_p): Kill
267
268         * reload1.c (reload_cse_delete_noop_set): Kill.
269         (reload_cse_simplify): use delte_insn_and_edges.
270
271 2002-05-31  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
272
273         * cfgloop.c (flow_loops_find): Initialize first and last fields
274         correctly.
275
276 2002-05-31  Neil Booth  <neil@daikokuya.demon.co.uk>
277
278         * c-common.c (builtin_define_std): Correct logic.
279
280 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
281
282         * pa.c (output_millicode_call): Correct "be,l" insn for TARGET_PA_20.
283         (output_call): Likewise.
284
285 2002-05-31  John David Anglin  <dave@hiauly1.hia.nrc.ca>
286
287         * pa.c: Move output.h include after tree.h include.
288         (pa_asm_output_mi_thunk): Constify identifier lab.
289
290 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
291
292         * config/ns32k/ns32k.h: Define named constants for the
293         bits in target_flags and use them.
294         * config/ns32k/netbsd.h (TARGET_DEFAULT): Use named constants.
295
296 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
297
298         * config.gcc (tm_file): Prefix pa/pa-700.h to tm_file list for PA1.0
299         architecture and pa/pa-7100.h for PA1.1 architecture, respectively.
300         * pa/pa.c (override_options): Use TARGET_SCHED_DEFAULT to select
301         default scheduling model.
302         * pa/pa.h (TARGET_SCHED_DEFAULT): Define if not defined to "8000".
303         * pa/pa-700.h (TARGET_SCHED_DEFAULT): New file for "700" scheduling.
304         * pa/pa-7100.h (TARGET_SCHED_DEFAULT): New file for "7100" scheduling.
305         * doc/install.texi (hppa*-*-*): Document default scheduling.
306
307 2002-05-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
308
309         * pa.c (following_call): Check TARGET_JUMP_IN_DELAY.
310
311 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
312
313         * config.gcc (ns32k-*-netbsd*): Set tm_file to
314         "${tm_file} netbsd.h netbsd-aout.h ns32k/netbsd.h"
315         * config/ns32k/netbsd.h: Don't include ns32k/ns32k.h,
316         netbsd.h, or netbsd-aout.h.
317
318 2002-05-31  Jason Thorpe  <thorpej@wasabisystems.com>
319
320         * longlong.h (count_trailing_zeros): Add missing \, and clean up
321         whitespace in __ns32000__ case.
322
323 2002-05-31  Aldy Hernandez  <aldyh@redhat.com>
324
325         * expr.c (expand_expr): Output partially zeroed out vectors with
326         output_constant_def.
327
328 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
329
330         * config.gcc (sh[123456789l]*-*-*): Set cpu_type to sh.
331         (sh-*-netbsdelf*)
332         (shl*-*-netbsdelf*): New targets.
333         * config/sh/netbsd-elf.h: New file.
334
335 2002-05-30  Richard Henderson  <rth@redhat.com>
336             Eric Botcazou  <ebotcazou@multimania.com>
337
338         PR optimization/6822
339         * config/i386/i386.c (ix86_expand_int_movcc): Don't cast INTVAL
340         to unsigned int for op1 comparisons.  Use gen_int_mode.
341
342 2002-05-30  Eric Botcazou  <ebotcazou@multimania.com>
343
344         * expmed.c (const_mult_add_overflow_p): New.
345         * expr.h: Declare it.
346         * loop.c (maybe_eliminate_biv_1) [COMPARE]: Use it.
347         Don't eliminate the biv if the giv has a constant multiplier and
348         the rhs argument of the comparison does satisfy the predicate.
349         Use expand_mult_add to compute the replacement constant.
350
351 2002-05-30  Osku Salerma  <osku@iki.fi>
352
353         * c-common.c (c_common_attribute_table): Add "may_alias" entry.
354         (c_common_get_alias_set): Handle it.
355         * doc/extend.texi: Document it.
356
357 2002-05-30  Richard Henderson  <rth@redhat.com>
358
359         * defaults.h (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
360         * toplev.c (process_options): Don't check it.
361         * doc/tm.texi: Don't document it.
362         * config/i386/linux.h (SUBTARGET_FRAME_POINTER_REQUIRED): New.
363         (TARGET_ALLOWS_PROFILING_WITHOUT_FRAME_POINTER): Kill.
364         * config/i386/i386.c (ix86_frame_pointer_required): Suppress leaf
365         frame pointer optimization if current_function_profile.
366
367 2002-05-30  Kazu Hirata  <kazu@cs.umass.edu>
368
369         * langhooks.c: Fix formatting.
370         * langhooks.h: Likewise.
371         * lcm.c: Likewise.
372         * libgcc2.c: Likewise.
373         * lists.c: Likewise.
374         * local-alloc.c: Likewise.
375         * loop.c: Likewise.
376         * loop.h: Likewise.
377
378 2002-05-30  Marc Espie <espie@openbsd.org>
379
380         * config.gcc (sparc64-*-openbsd*): New.
381         * config/sparc/openbsd1-64.h: New.
382         * config/sparc/openbsd64.h: New.
383
384 2002-05-30  Jeff Law <law@redhat.com>
385
386         * flow.c (propagate_one_insn): Revise yesterday's patch.  Delete
387         a dead insn with a REG_RETVAL note when the entire libcall is not
388         dead and remove the associated REG_LIBCALL note at the same time.
389
390 Thu May 30 19:54:30 2002  J"orn Rennecke <joern.rennecke@superh.com>
391
392         * lcm.c (output.h): #include.
393         (compute_earliest): Remove hack to treat renumbered EXIT_BLOCK
394         as an ordinary block.
395         (optimize_mode_switching): Don't pretend that the exit block is
396         an ordinary block, or handle sucessors of entry block specially.
397         Instead, split edges from entry block and to exit block, and
398         put a computing definition on the thus gained post-entry-block,
399         and a need on the pre-exit-block.
400
401 Thu May 30 20:28:01 CEST 2002  Jan Hubicka  <jh@suse.cz>
402
403         * gengenrtl.c (type_from_format, accessor_from_format): Support 'B'.
404         * rtl.texi: Document 'B'
405
406 2002-05-30  Jason Thorpe  <thorpej@wasabisystems.com>
407
408         * config/m68k/netbsd-elf.h (LONG_DOUBLE_TYPE_SIZE): Compute
409         at run-time.
410         (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Set to 96 if not __mc68010__.
411
412 2002-05-30  Aldy Hernandez  <aldyh@redhat.com>
413
414         * config/rs6000/rs6000.c (rs6000_expand_unop_builtin): Return
415         const0_rtx instead of NULL_RTX when in error.
416         (altivec_expand_abs_builtin): Same.
417         (rs6000_expand_binop_builtin): Same.
418         (altivec_expand_predicate_builtin): Same.
419         (altivec_expand_stv_builtin): Same.
420         (rs6000_expand_ternop_builtin): Same.
421         (altivec_expand_builtin): Same.
422
423 2002-05-29  David S. Miller  <davem@redhat.com>
424
425         * rtl.h (clear_emit_caches): Delete.
426         * integrate.c (output_inline_function): Don't call it.
427         * emit-rtl.c (restore_emit_status, init_emit): Likewise.
428         (clear_emit_caches): Delete definition.
429         (SEQUENCE_RESULT_SIZE, sequence_result, free_insn): Likewise.
430
431 2002-05-30  Hans-Peter Nilsson  <hp@bitrange.com>
432
433         * config/mmix/mmix.c: Include real.h.
434         (mmix_constant_address_p): Remove redundant test before switch.
435
436 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
437
438         * config/mips/mips.h (READONLY_DATA_SECTION_ASM_OP): Define
439         only if not already defined.
440
441 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
442
443         * config/h8300/h8300-protos.h: Remove prototypes for
444         ok_for_bclr and small_power_of_two.
445         * config/h8300/h8300.c (small_power_of_two): Remove.
446         (ok_for_blcr): Likewise.
447         (fix_bit_operand): Make WHAT deal with an integer instead of a
448         constraint character.
449         * config/h8300/h8300.h (CONST_OK_FOR_O): Remove.
450         (CONST_OK_FOR_P): Likewise.
451         (CONST_OK_FOR_LETTER_P): Do not call CONST_OK_FOR_O or
452         CONST_OK_FOR_P any more.
453         * config/h8300/h8300.md (andqi3): Adjust to the new prototype
454         of fix_bit_operand.
455         (iorqi3): Likewise.
456         (xorqi3): Likewise.
457
458 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
459
460         * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
461         (CPP_PREDEFINES): Make sure this is undefined.
462         (CPP_SPEC): Place -D__mips=1 at the beginning of the spec,
463         since it is no longer in CPP_PREDEFINES.  Don't -U__MIPSEL__
464         or -U__MIPSEB__ before defining one or the other.  Instead,
465         use %(subtarget_endian_default) if neither -EB nor -EL are
466         specified.
467         (SUBTARGET_EXTRA_SPECS): Define.
468         (SUBTARGET_CPP_SPEC): Remove __LONG64 handling.  Use
469         %(netbsd_cpp_spec).
470
471 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
472
473         * doc/md.texi (Patterns): Note pattern condition pitfall
474         for unnamed insn.
475
476 2002-05-29  Aldy Hernandez  <aldyh@redhat.com>
477
478         * rs6000.c: (altivec_expand_builtin): Only expand altivec builtins
479         when TARGET_ALTIVEC.  Move handling of generic unary, binary, and
480         ternary operations from here...
481         (rs6000_expand_builtin): ...to here.
482         New argument expandedp.
483         Change all instances of altivec_expand_binop_builtin to
484         rs6000_expand_binop_builtin.
485         (altivec_expand_unop_builtin): Rename to
486         rs6000_expand_unop_builtin.
487         (altivec_expand_binop_builtin): Rename to
488         rs6000_expand_binop_builtin.
489         (altivec_expand_ternop_builtin): Rename to
490         rs6000_expand_ternop_builtin.
491
492 2002-05-29  Richard Henderson  <rth@redhat.com>
493
494         * config/i386/biarch64.h (TARGET_64BIT_DEFAULT): Define with value.
495         (TARGET_BI_ARCH): Likewise.
496         * config/i386/i386.h: Test TARGET_64BIT_DEFAULT by value.
497         (TARGET_SWITCHES): Combine target defaults here not in TARGET_DEFAULT.
498         (TARGET_64BIT_DEFAULT): Default to 0.
499         (TARGET_DEFAULT): Default to MASK_OMIT_LEAF_FRAME_POINTER.
500
501 2002-05-29  Richard Henderson  <rth@redhat.com>
502
503         * config/i386/i386.c (USE_HIDDEN_LINKONCE): New.
504         (get_pc_thunk_name): New.
505         (output_set_got): Use it.
506         (ix86_asm_file_end): If USE_HIDDEN_LINKONCE, emit get_pc thunks
507         into linkonce sections.
508
509 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
510
511         * config/sparc/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
512         (CPP_PREDEFINES): Make sure this is undefined.
513         (CPP_SUBTARGET_SPEC64, CPP_SUBTARGET_SPEC32): Remove.
514         (CPP_SUBTARGET_SPEC): Don't provide different versions for
515         default-32 and default-64.  Just always use %(netbsd_cpp_spec).
516         (SUBTARGET_EXTRA_SPECS): Remove cpp_subtarget_spec32 and
517         cpp_subtarget_spec64.  Add netbsd_cpp_spec.
518         * config/sparc/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
519         (CPP_PREDEFINES): Make sure this is undefined.
520         (SUBTARGET_EXTRA_SPECS): Define.
521         (CPP_SPEC): Use %(netbsd_cpp_spec).
522
523 2002-05-29  Jeff Law <law@redhat.com>
524
525         * pa.h (ASM_OUTPUT_MI_THUNK): Remove unwanted semi-colon.
526
527         * flow.c (propagate_one_insn): Do not remove a dead insn if it
528         contains a REG_RETVAL note.
529
530         * haifa-sched (sched_analyze): Remove another useless clearing
531         of SCHED_GROUP_P I missed yesterday.
532
533         * pa.h (ASM_OUTPUT_MI_THUNK): Move implementation into pa.c.
534         * pa.c (pa_asm_output_mi_thunk): New function.
535         * pa-protos.h (pa_asm_output_mi_thunk): Declare.
536
537 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
538             Marek Michalkiewicz  <marekm@amelek.gda.pl>
539
540         * config/avr/avr.c (avr_base_arch_macro, avr_extra_arch_macro): New.
541         (avr_asm_only_p): Make non-static.
542         (enum avr_arch): Remove.
543         (avr_arch_types): New.
544         (avr_mcu_types): Update.
545         (avr_override_options): Use avr_arch_types table instead of switch.
546         * avr.h (CPP_PREDEFINES): Die.
547         (avr_base_arch_macro, avr_extra_arch_macro): New.
548         (TARGET_CPU_CPP_BUILTINS): New.
549         (CPP_SPEC, EXTRA_SPECS): Simplify.
550         (CPP_AVR1_SPEC, CPP_AVR2_SPEC, CPP_AVR3_SPEC, CPP_AVR4_SPEC,
551         CPP_AVR5_SPEC): Die.
552
553 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
554
555         * config/arm/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
556         NETBSD_OS_CPP_BUILTINS_AOUT.
557         (SUBTARGET_EXTRA_SPECS): Define.
558         (CPP_SPEC): Use %(netbsd_cpp_spec).
559
560 2002-05-29  Richard Henderson  <rth@redhat.com>
561
562         * config/i386/i386.c (ix86_output_function_epilogue): New.
563         (TARGET_ASM_FUNCTION_EPILOGUE): New.
564         (pic_label_name): Remove.
565         (pic_labels_used): New.
566         (ix86_asm_file_end): Emit one pc load stub for each register used.
567         (output_set_got): Generate deep pc load to any register.
568         (ix86_select_alt_pic_regnum): New.
569         (ix86_save_reg): Don't save pic register if we can find a valid
570         call-clobbered replacement.
571         (ix86_expand_prologue): If we found a valid replacement, renumber
572         pic_offset_table_rtx.
573         * config/i386/i386.h (PIC_OFFSET_TABLE_REGNUM): Look at
574         pic_offset_table_rtx after reload.
575         (REAL_PIC_OFFSET_TABLE_REGNUM): New.
576         * config/i386/i386.md (set_got): Make insn, not expander.
577         (set_got_nopic, set_got_deep, set_got_nodeep): Remove.
578
579 2002-05-29  Richard Henderson  <rth@redhat.com>
580
581         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
582         alignment for alloca.
583
584 2002-05-29  Richard Henderson  <rth@redhat.com>
585
586         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
587         (print_operand_address): Only add rip for symbolic addresses
588         for which we do not have another relocation type.
589
590 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
591
592         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
593         (EXTRA_SPECS): Add netbsd_cpp_spec.
594         (CPP_SPEC): Use %(netbsd_cpp_spec).
595         (CPP_PREDEFINES): Remove.
596         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
597         (EXTRA_SPECS): Define.
598         (CPP_SPEC): Use %(netbsd_cpp_spec).
599         (CPP_PREDEFINES): Remove.
600
601 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
602
603         PR preprocessor/6844
604         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
605         NUL.
606
607 2002-05-29  Eric Christopher  <echristo@redhat.com>
608
609         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
610         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
611
612 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
613
614         * config/fr30/fr30.md: Remove previous restriction on splits.
615         Enforce conformance through gen_lowpart and cont_int_operand.
616         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
617         as the assembler does not support ".bss".
618
619 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
620
621         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
622         (CPP_PREDEFINES): Remove.
623         (SUBTARGET_EXTRA_SPECS): Define.
624         (CPP_SPEC): Use %(netbsd_cpp_spec).
625         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
626         (CPP_PREDEFINES): Remove.
627         (SUBTARGET_EXTRA_SPECS): Define.
628         (CPP_SPEC): Use %(netbsd_cpp_spec).
629         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
630         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
631         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
632         Add netbsd_cpp_spec.
633         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
634
635 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
636             Zack Weinberg <zack@codesourcery.com>
637
638         * cppexp.c (cpp_num): Move to cpplib.h.
639         (CPP_ERROR): Remove.
640         (interpret_float_suffix, interpret_int_suffix): New.
641         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
642         (cpp_classify_number, cpp_interpret_integer): New.
643         (interpret_number): Remove.
644         (eval_token): Update to use new routines.
645         * cpphash.h (cpp_num_part): Move to cpplib.h.
646         * cppinit.c (cpp_post_options): Set warn_long_long.
647         * cpplib.h (struct cpp_options): Add warn_long_long.
648         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
649         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
650         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
651         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
652         cpp_interpret_integer): New.
653
654 2002-05-29  Joel Sherrill <joel@OARcorp.com>
655
656         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
657
658 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
659
660         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
661         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
662         (CPP_SUBTARGET_SPEC): Define.
663         (SUBTARGET_EXTRA_SPECS): Define.
664         (CPP_SPEC): Remove.
665
666 2002-05-29  Chris Lattner  <sabre@nondot.org>
667
668         * ssa.c (rename_insn_1): Rename uses of undefined registers to
669         prevent confusion if/when the register is defined.
670
671 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
672
673         PR target/6838
674         * config/cris/cris.md: Fix typos and thinkos in comments.
675         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
676         second alternative.
677         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
678         ("*mov_sideqi_mem"): Similar, but for operand 3.
679         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
680         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
681         Remove spurious mode specifier on operand 2.
682
683 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
684
685         * config/h8300/h8300-protos.h: Remove the prototype for
686         o_operand.
687         Add prototypes for single_one_operand and single_zero_operand.
688         * config/h8300/h8300.c (o_operand): Remove.
689         (single_one_operand): New.
690         (single_zero_operand): Likewise.
691         (print_operand): For 'V' operand, and the operand with 0xff.
692         For 'V' and 'W' operands, do not and the bit position with 7.
693         * config/h8300/h8300.md (various anonymous patterns): Replace
694         use of exact_log2 with single_one_operand/single_zero_operand.
695
696 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
697
698         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
699
700 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
701
702         * config/s390/s390.c (legitimate_pic_operand_p): Do not
703         accept symbolic LARL operands.
704         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
705         epilogue insns.
706
707 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
708
709         * config/s390/s390.md (cmpstr_64/31): Mark whole
710         input registers as used.
711
712 2002-05-28  Richard Henderson  <rth@redhat.com>
713
714         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
715         not current_function_uses_pic_offset_table and
716         current_function_uses_const_pool; examine current_function_profile.
717         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
718         input to blockage if needed.
719         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
720         (legitimize_pic_address): Likewise.  Set regs_ever_live for
721         pic_offset_table_rtx when invoked during reload.
722         * config/i386/i386.h (FINALIZE_PIC): Remove.
723         * config/i386/i386.md (tablejump): Reformat.  Do not set
724         current_function_uses_pic_offset_table.
725         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
726         (blockage): Accept anything as operand 0.
727
728 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
729
730         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
731         common CPP built-ins for all NetBSD a.out targets.
732         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
733         common CPP built-ins for all NetBSD ELF targets.
734         * config/netbsd.h: Add missing notice.
735         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
736         for all NetBSD targets.
737         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
738         for all NetBSD targets using an LP64 code model.
739         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
740         NetBSD targets.
741
742 2002-05-28  Richard Henderson  <rth@redhat.com>
743
744         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
745         update if UPDATE_LIFE_LOCAL.
746
747 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
748
749         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
750
751 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
752                           Jason R. Thorpe <thorpej@wasabisystems.com>
753
754         config/sh reorganization to factor out endianness and coff:
755
756         * config/sh/little.h: New file.
757         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
758         defined, define to 0 to select big-endian.
759         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
760         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
761         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
762         * config/sh/t-be: New file.
763         * config/sh/t-le: New file.
764
765         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
766         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
767         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
768         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
769         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
770         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
771         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
772         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
773         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
774         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
775         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
776         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
777         (LINK_SPEC): Define to SH_LINK_SPEC.
778         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
779         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
780         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
781         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
782         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
783         * config/sh/coff.h: New file.
784         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
785         (TARGET_OBJFMT_CPP_BUILTINS): Define.
786         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
787         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
788         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
789         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
790         (PTRDIFF_TYPE): Likewise.
791         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
792         (CPP_PREDEFINES): Don't define.
793         (TARGET_OBJFMT_CPP_BUILTINS): Define.
794         (LINK_SPEC): Define to SH_LINK_SPEC.
795         (LINK_EMUL_PREFIX): Redefine.
796         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
797         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
798         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
799         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
800         (TARGET_OS_CPP_BUILTINS): Define.
801         (TARGET_DEFAULT): Redefine.
802         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
803         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
804         (LINK_SPEC): Don't redefine.
805         (LINK_DEFAULT_CPU_EMUL): Redefine.
806         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
807         * sh.c (sh_asm_named_section): Don't declare / define.
808         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
809         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
810         (sh64-*-elf* tm_file): Likewise.
811         (sh-*-rtemself* tm_file): Likewise.
812         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
813         (sh-*-linux* tmake_file): Add sh/t-le.
814         (sh-*-rtems* tm_file): Add sh/coff.h
815         (sh-*-* tm_file): Likewise.
816
817 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
818
819         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
820         CONSTANT_POOL_ADDRESS_P.
821
822         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
823
824 2002-05-28  David Edelsohn  <edelsohn@gnu.org>
825             Jeff Law <law@redhat.com>
826
827         * optabs.c (expand_binop): Fix nwords sign warnings.
828         generate pseudo for add_optab.
829
830         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
831         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
832
833 2002-05-28      Marc Espie <espie@openbsd.org>
834
835         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
836         inherited from gas.h.
837         (ASM_QUAD):  Undef.  OpenBSD does not support it.
838
839 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
840
841         * doc/install.texi (binaries): Change mingw binaries
842         link to www.mingw.org.
843
844 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
845
846         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
847
848 2002-05-28  Richard Henderson  <rth@redhat.com>
849
850         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
851         bottom alignment for leaf functions.
852
853 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
854
855         * config/pa/milli32.S, config/pa/lib1funcs.asm,
856         config/sparc/sol2-g1.asm: Delete unused files.
857
858 2002-05-28  Richard Henderson  <rth@redhat.com>
859
860         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
861
862         * flow.c (calculate_global_regs_live): Rename call_used to
863         invalidated_by_call.  Initialize from regs_invalidated_by_call
864         instead of call_used_regs.
865
866         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
867         DECL_EXTERNAL.
868
869 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
870
871         * tree.h: Don't include real.h.
872         Forward-declare struct realvaluetype.
873         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
874         contain it.
875         (TREE_REAL_CST_PTR): New accessor.
876         (TREE_REAL_CST): Update.
877         * real.h: Include machmode.h.
878         (realvaluetype): Make it struct realvaluetype, not a typedef.
879         (build_real): Prototype here.
880
881         * tree.c: Include real.h.
882         (build_real): Allocate the REAL_VALUE_TYPE as a separate
883         object in GC memory, set TREE_REAL_CST_PTR to point to it.
884         (build_real_from_int_cst): Use build_real.
885         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
886         REAL_CST.
887
888         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
889         fold-const.c, print-tree.c, real.c: Include real.h.
890         * Makefile.in: Update dependency lists.
891
892 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
893
894         * basic-block.h (last_basic_block): Declare.
895         (expunge_block_nocompact): Declaration removed.
896         (compact_blocks): Declare.
897         * cfg.c (last_basic_block): New variable.
898         (expunge_block_nocompact): Removed.
899         (expunge_block): Do not compact basic blocks.
900         (compact_blocks): New.
901         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
902         longer change.
903         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
904         last_basic_block.
905         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
906         real positions of blocks.
907         (delete_unreachable_blocks): Simplified -- quadratic behavior now
908         cannot occur.
909         (cleanup_cfg): Compact blocks.
910         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
911         basic_block_info varray.
912         (flow_delete_block): Comment update.
913         (back_edge_of_syntactic_loop_p): Modify position check code.
914         (verify_flow_info): Update checking.
915         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
916         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
917         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
918         indices no longer change.
919         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
920         last_basic_block.
921         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
922         * profile.c (branch_prob): Compact blocks.
923         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
924         last_basic_block.
925
926 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
927
928         * config/h8300/h8300.md (two anonymous patterns): New.
929
930 2002-05-28  David S. Miller  <davem@redhat.com>
931
932         * config/sparc/sparc.md (cpu): Tidy.
933         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
934         'trap'.
935         (in_call_delay): Delete reference to 'return' type.
936         (eligible_for_return_delay, in_return_delay, define_delay
937         referencing those): Delete.
938         (rest of file): Use new type attributes as appropriate.
939         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
940         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
941         * config/sparc/ultra1_2.md (us1_single): New reservation.
942         (us1_ialuX): Likewise.
943         * config/sparc/ultra3.md (us3_single): Likewise.
944         (us3_ialuX): Likewise.
945         (us3_imul, us3_idiv): Tweak.
946
947 2002-05-28  Richard Henderson  <rth@redhat.com>
948
949         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
950         STRING_CST.
951
952 2002-05-28  Richard Henderson  <rth@redhat.com>
953
954         * config.gcc: Obsolete mn10200.
955
956 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
957
958         * cppexp.c (interpret_number): Optimize for single-digit
959         and less-than-half-precision cases.
960         (num_trim, num_positive, num_div_op): Cast constants.
961
962 2002-05-27  Bo Thorsen  <bo@suse.de>
963
964         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
965         3.1 branch. The file was made by Jakub Jelinek.
966         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
967         support so multilib doesn't break. And don't define this at all
968         when -Dinhibit_libc is used.
969         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
970         * config/i386/t-linux64: Implement full multilib support. Patch
971         originally done by Andreas Jaeger and Jakub Jelinek.
972
973 2002-05-27  Roger Sayle  <roger@eyesopen.com>
974
975         * c-common.c: Add support for __attribute__((nothrow)) to specify
976         that a function cannot throw an exception (using TREE_NOTHROW).
977         (handle_nothrow_attribute): New function to process this attribute.
978
979         * doc/extend.texi: Document the new nothrow function attribute.
980
981 2002-05-27  H.J. Lu  (hjl@gnu.org)
982
983         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
984         (num_positive): Likewise.
985         (num_div_op): Likewise.
986
987 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
988
989         * c-common.c (c_common_init): Always use intmax_t.
990
991 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
992
993         * c-common.c (c_common_init): Use intmax_t for now.
994
995 2002-05-24  Andrew Haley  <aph@redhat.com>
996
997         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
998         if T is a boolean type.
999
1000 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1001
1002         * basic-block.h (last_basic_block): Defined as synonym for
1003         n_basic_blocks.
1004         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
1005         flow_depth_first_order_compute, flow_preorder_transversal_compute,
1006         flow_dfs_compute_reverse_init): Replaced relevant occurences of
1007         n_basic_blocks with last_basic_block.
1008         * cfgbuild.c (make_edges): Likewise.
1009         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
1010         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
1011         * combine.c (combine_instructions): Likewise.
1012         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
1013         iterative_dataflow_bitmap): Likewise.
1014         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
1015         calc_idoms, idoms_to_doms): Likewise.
1016         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
1017         Likewise.
1018         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
1019         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
1020         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
1021         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
1022         delete_null_pointer_checks, compute_code_hoist_vbeinout,
1023         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
1024         compute_store_table, build_store_vectors): Likewise.
1025         * haifa-sched.c (sched_init): Likewise.
1026         * ifcvt.c (if_convert): Likewise.
1027         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1028         pre_edge_lcm, compute_available, compute_nearerout,
1029         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
1030         Likewise.
1031         * predict.c (estimate_probability, process_note_prediction,
1032         note_prediction_to_br_prob): Likewise.
1033         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
1034         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1035         * regrename.c (copyprop_hardreg_forward): Likewise.
1036         * resource.c (init_resource_info): Likewise.
1037         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
1038         init_regions, schedule_insns): Likewise.
1039         * ssa-ccp.c (ssa_const_prop): Likewise.
1040         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1041         * ssa.c (compute_dominance_frontiers,
1042         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
1043
1044         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
1045         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
1046         sizes consistently.
1047
1048 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
1049
1050         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
1051         new.
1052         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
1053         hoist_insn_after, hoist_insn_to_edge): New.
1054
1055 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
1056
1057         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
1058         (PROP_FINAL): Include.
1059         * flow.c (life_analysis, update_life_info,
1060         init_propagate_block_info, mark_set_1, mark_used_rgs):
1061         Support SCAN_DEAD_STORE.
1062
1063 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
1064
1065         * c-common.c (c_common_init): Set CPP arithmetic precision.
1066         * cppexp.c (cpp_num_part): Move typedef ...
1067         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
1068         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
1069         (sanity_checks): Update.
1070
1071 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
1072
1073         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
1074         (mkheaders): New rule.
1075         (install-mkheaders): New rule.
1076         * configure.in (all_outputs): Add mkheaders.
1077         * configure: Regenerate.
1078         * mkheaders.in: New file.
1079
1080 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
1081
1082         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
1083
1084 2002-05-26  Andreas Jaeger  <aj@suse.de>
1085
1086         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
1087
1088 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1089
1090         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
1091         right_shift): Remove.
1092         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
1093         HIGH_PART): New.
1094         (struct op): Use cpp_num.
1095         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
1096         num_part_mul, num_unary_op, num_binary_op, num_negate,
1097         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
1098         num_div_op, num_lshift, num_rshift, append_digit): New.
1099         (interpret_number, parse_defined, eval_token, reduce): Update
1100         for two-integer arithmetic.
1101         (binary_handler): New typedef.
1102         (optab): Update.
1103         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
1104         (_cpp_parse_expr, reduce): Update to handle two-integers.
1105         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
1106
1107 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1108
1109         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
1110         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
1111         branch insn into account, do not assume 1.
1112         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
1113         over single word insn.  Handle upper half of I/O space too.
1114         * config/avr/avr.md (*sbrx_branch): Use it.
1115         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
1116         (*sbix_branch, *sbix_branch_bit7): Likewise.
1117         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
1118         Use RTL peepholes to optimize register operand sign tests.
1119
1120 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1121
1122         * config/avr/avr.c (avr_asm_only_p): New variable.
1123         (avr_override_options): Set it here if AVR1.
1124         (asm_file_start): Test it here, report an error if set.
1125
1126 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
1127
1128         * alias.c: Fix formatting.
1129         * attribs.c: Likewise.
1130         * bb-reorder.c: Likewise.
1131         * bitmap.c: Likewise.
1132         * bitmap.h: Likewise.
1133         * builtins.c: Likewise.
1134
1135 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
1136
1137         * reload.c (find_valid_class): Accept new argument DEST,
1138         choose class accordingly.
1139         (push_reload): Update callers.
1140
1141 2002-05-26  Andreas Jaeger  <aj@suse.de>
1142
1143         * combine.c (combine_instructions): Do not indent #if for
1144         traditional C.
1145
1146 2002-05-25  Richard Henderson  <rth@redhat.com>
1147
1148         * c-pragma.c (apply_pragma_weak): Convert value identifier to
1149         string for decl_attributes.
1150         (handle_pragma_weak): Call assemble_alias if we're modifying
1151         an existing decl.
1152
1153 2002-05-25  Richard Henderson  <rth@redhat.com>
1154
1155         PR target/6788
1156         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
1157         using rtl instead of fprintf.
1158         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
1159         * config/sparc/sparc-protos.h: Update.
1160
1161 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
1162
1163         * Makefile.in (C_COMMON_H): Fix.
1164         Update other targets.
1165         * c-common.c: Don't include c-lex.h.
1166         (builtin_define_with_value): Make static and prototype.
1167         (builtin_define_std): Move from c-lex.h.
1168         * c-common.h (init_c_lex): Move from c-lex.h.
1169         * c-decl.c: Don't include c-lex.h.
1170         (make_pointer_declarator): Move from c-parse.in.
1171         * c-lex.c: Don't include c-lex.h.
1172         * c-lex.h: Remove.
1173         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
1174         (make_pointer_declarator): Move to c-decl.c.
1175         * c-pragma.c: Don't include c-lex.h.
1176         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
1177         * c-tree.h (make_pointer_declarator): New.
1178 doc:
1179         * passes.texi, tm.texi: Update.
1180 objc:
1181         * Make-lang.in: Update and correct.
1182         * objc-act.c: Don't include c-lex.h or cpplib.h.
1183 treelang:
1184         * treetree.c: Don't include c-lex.h.
1185 config:
1186         * darwin-c.c: Don't include c-lex.h.
1187         * c4x/c4x-c.c: Don't include c-lex.h.
1188         * c4x/t-c4x: Update.
1189         * i370/i370-c.c: Don't include c-lex.h.
1190         * i370/t-i370: Update.
1191         * i960/i960-c.c: Don't include c-lex.h.
1192         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
1193         * i960/t-960bare: Update.
1194         * i960/t-vxworks: Update.
1195         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
1196         * rs6000/t-darwin: Update.
1197         * rs6000/t-rs6000-c-rule: Update.
1198         * v850/v850-c.c: Don't include c-lex.h.
1199         * v850/v850.c: Don't include c-lex.h or cpplib.h.
1200
1201
1202 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1203
1204         * tree.def: Fix typos.
1205         * doc/install.texi: Likewise.
1206
1207 2002-05-25  Richard Henderson  <rth@redhat.com>
1208
1209         * configure.in (HAVE_AS_TLS): Add ia64 test.
1210         * configure: Rebuild.
1211         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
1212         (override_options): Set it.
1213         (TARGET_HAVE_TLS): New.
1214         (sdata_symbolic_operand): Look for 's'.
1215         (tls_symbolic_operand): New.
1216         (ia64_expand_load_address): Abort for tls symbols.
1217         (gen_tls_get_addr): New.
1218         (gen_thread_pointer): New.
1219         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
1220         (rtx_needs_barrier): Add new unspecs.
1221         (ia64_encode_section_info): Handle tls symbols.
1222         (ia64_strip_name_encoding): Strip two encoding chars.
1223         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
1224         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
1225         (TARGET_OPTIONS): Add tls-size.
1226         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
1227         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
1228         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
1229         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
1230         (movsf, movdf): Likewise.
1231         (movdi_symbolic): Use match_scratch.  Don't split if we won't
1232         have a scratch availiable.
1233         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
1234         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
1235         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
1236         * config/ia64/ia64-protos.h: Update.
1237         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
1238         sdata_symbolic_operand.
1239         (ASM_OUTPUT_LABELREF): Strip two characters.
1240
1241 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
1242
1243         * combine.c (simplify_set): Remove an unnecessary subreg.
1244
1245 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1246
1247         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
1248
1249         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
1250
1251 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1252
1253         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
1254
1255 2002-05-25  Roger Sayle  <roger@eyesopen.com>
1256
1257         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
1258         (cond (compare x y) 0) into the equivalent (cond x y).
1259
1260 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
1261
1262         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
1263
1264 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
1265
1266         * config.gcc: Remove all stanzas for previously obsoleted
1267         systems.  Where necessary, add explicit error stanzas to
1268         prevent removed systems from being misidentified as something
1269         else.  Begin a fresh obsoletions list, with the systems that
1270         were reprieved last round.
1271         * doc/install.texi: Remove all mention of dead targets.
1272         * fixinc/mkfixinc.sh: Likewise.
1273
1274         * config/arm/arm.h: Bit 31 of target_flags is no longer
1275         reserved.
1276
1277         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
1278         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
1279         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
1280         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
1281         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
1282         config/alpha/osf12.h, config/alpha/osf2or3.h,
1283         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
1284         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
1285         config/clipper/clipper-protos.h, config/clipper/clipper.c,
1286         config/clipper/clipper.h, config/clipper/clipper.md,
1287         config/clipper/clix.h, config/convex/convex-protos.h,
1288         config/convex/convex.c, config/convex/convex.h,
1289         config/convex/convex.md, config/convex/fixinc.convex,
1290         config/convex/proto.h, config/elxsi/elxsi-protos.h,
1291         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
1292         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
1293         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
1294         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
1295         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
1296         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
1297         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
1298         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
1299         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
1300         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
1301         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
1302         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
1303         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
1304         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
1305         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
1306         config/m68k/altos3068.h, config/m68k/apollo68.h,
1307         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
1308         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
1309         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
1310         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
1311         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
1312         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
1313         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
1314         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
1315         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
1316         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
1317         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
1318         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
1319         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
1320         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
1321         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
1322         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
1323         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
1324         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
1325         config/mips/dec-osf1.h, config/mips/elflorion.h,
1326         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
1327         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
1328         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
1329         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
1330         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
1331         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
1332         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
1333         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
1334         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
1335         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
1336         config/ns32k/sequent.h, config/ns32k/tek6000.h,
1337         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
1338         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
1339         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
1340         config/sparc/rtems.h, config/we32k/we32k-protos.h,
1341         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
1342         Delete file.
1343
1344 2002-05-24  Richard Henderson  <rth@redhat.com>
1345
1346         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
1347         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
1348         * config/i386/i386.c (tls_model_chars): Add leading space.
1349         (tls_symbolic_operand): Don't bias by 1.
1350         (legitimize_address): Don't unbias by 1.
1351
1352 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
1353
1354         * lcm.c (optimize_mode_switching): Change bb used as indices
1355         to bb->index.
1356
1357 2002-05-24  Richard Henderson  <rth@redhat.com>
1358
1359         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
1360         of update_life_info_in_dirty_blocks.
1361
1362 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
1363
1364         PR other/6782
1365         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
1366
1367 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
1368
1369         PR preprocessor/6780
1370         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
1371
1372 2002-05-24  Jim Blandy  <jimb@redhat.com>
1373
1374         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
1375         entry with a type code of zero, marking the end of the compilation
1376         unit's macro info.
1377
1378 2002-05-24  Richard Henderson  <rth@redhat.com>
1379
1380         * varasm.c (asm_output_bss): Always output one byte.
1381         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
1382
1383 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1384
1385         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
1386         namespace.
1387
1388 2002-05-24  Andreas Jaeger  <aj@suse.de>
1389
1390         * ggc-page.c (alloc_page): Cast variables of type size_t to
1391         unsigned long, adjust printf format string.
1392         (ggc_alloc): Likewise.
1393         (ggc_print_statistics): Likewise.
1394         (ggc_print_statistics): Correct printf format string for SCALE to
1395         use unsigned long.
1396
1397 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
1398
1399         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
1400
1401 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
1402             Zack Weinberg     <zack@codesourcery.com>
1403
1404         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
1405         quoted strings.
1406         * dwarf2out.c (lookup_filename): Properly quote filename in .file
1407         directive in assembly file.
1408         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1409         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
1410         * config/pj/pj.h (ASM_FILE_START): Likewise.
1411         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
1412         * config/avr/avr.c (asm_file_end): Likewise.
1413         * toplev.c (output_quoted_string): Handle possibly signed plain
1414         char.
1415         * toplev.h (output_clean_symbol_name): Declare
1416         * toplev.c (output_clean_symbol_name): Define.
1417         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
1418         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
1419
1420 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
1421
1422         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
1423
1424 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
1425
1426         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
1427         of size of unsigned.
1428
1429 2002-05-23  Richard Henderson  <rth@redhat.com>
1430
1431         * configure.in (HAVE_AS_TLS): New test.
1432         * config.in, configure: Rebuild.
1433         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
1434         (ix86_tls_dialect_string, ix86_tls_dialect): New.
1435         (override_options): Set it.
1436         (tls_model_chars, tls_symbolic_operand): New.
1437         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
1438         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
1439         (local_exec_symbolic_operand): New.
1440         (get_pic_label_name): Merge into output_set_got.
1441         (ix86_asm_file_end): Emit pic_label_name if defined.
1442         (legitimate_constant_p, constant_address_p): New.
1443         (legitimate_pic_operand_p): New.
1444         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
1445         (legitimate_address_p): Likewise.
1446         (ix86_encode_section_info): Rename from i386_; handle tls decls.
1447         (ix86_strip_name_encoding): New.
1448         (get_thread_pointer): New.
1449         (legitimize_address): Handle tls symbols.
1450         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
1451         Remove UNSPEC_PLT.
1452         (struct machine_function): Add some_ld_name.
1453         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
1454         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
1455         (output_addr_const_extra): New.
1456         (maybe_get_pool_constant): New.
1457         (ix86_split_to_parts): Use it.
1458         (ix86_expand_move): Handle tls symbols.
1459         (ix86_tls_get_addr): New.
1460         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
1461         (TARGET_OPTIONS): Add tls-dialect.
1462         (CONSTANT_ADDRESS_P): Use new out-of-line function.
1463         (LEGITIMATE_CONSTANT_P): Likewise.
1464         (LEGITIMATE_PIC_OPERAND_P): Likewise.
1465         (TARGET_STRIP_NAME_ENCODING): New.
1466         (ASM_OUTPUT_LABELREF): New.
1467         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
1468         (OUTPUT_ADDR_CONST_EXTRA): New.
1469         (PREDICATE_CODES): Update.
1470         (ix86_tls_dialect, ix86_tls_dialect_string): New.
1471         * config/i386/i386.md: Regroup and renumber unspec constants.
1472         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
1473         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
1474         (tls_global_dynamic, tls_local_dynamic_base): New.
1475         (tls_local_dynamic_once): New.
1476         * config/i386/i386-protos.h: Update.
1477
1478 2002-05-23  Richard Henderson  <rth@redhat.com>
1479
1480         * genemit.c (gen_insn): Print file:lineno comment before function.
1481         (main): likewise.
1482         * gensupport.c (struct queue_elem): Add filename member.
1483         (queue_pattern): Initialize it; update all callers.
1484         (process_include): Don't free filename.
1485         (read_md_rtx): Set read_rtx_filename.
1486
1487 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
1488
1489         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
1490
1491 2002-05-23  Richard Henderson  <rth@redhat.com>
1492
1493         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
1494
1495 2002-05-23  Richard Henderson  <rth@redhat.com>
1496
1497         * doc/extend.texi (C++98 Thread-Local Edits): Update with
1498         commentary from Mark.
1499
1500 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1501
1502         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
1503         Use FOR_EACH_BB macros to iterate over basic block chain.
1504         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
1505         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
1506         Likewise.
1507         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
1508         find_unreachable_blocks, create_edge_list, verify_edge_list,
1509         remove_fake_edges, add_noreturn_fake_exit_edges,
1510         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
1511         Likewise.
1512         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1513         find_sub_basic_blocks): Likewise.
1514         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
1515         Likewise.
1516         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
1517         Likewise.
1518         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
1519         Likewise.
1520         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
1521         commit_edge_insertions, commit_edge_insertions_watch_calls,
1522         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
1523         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
1524         * conflict.c (conflict_graph_compute): Likewise.
1525         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
1526         df_modified_p, df_refs_unlink, df_dump): Likewise.
1527         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
1528         * final.c (compute_alignments): Likewise.
1529         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
1530         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
1531         count_or_remove_death_notes): Likewise.
1532         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
1533         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
1534         classic_gcse, compute_transp, cprop, compute_pre_data,
1535         compute_transpout, invalidate_nonnull_info,
1536         delete_null_pointer_checks_1, delete_null_pointer_checks,
1537         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
1538         compute_store_table, build_store_vectors, store_motion): Likewise.
1539         * global.c (global_conflicts, mark_elimination): Likewise.
1540         * graph.c (print_rtl_graph_with_bb): Likewise.
1541         * haifa-sched.c (sched_init): Likewise.
1542         * ifcvt.c (if_convert): Likewise.
1543         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
1544         compute_available, compute_nearerout, compute_rev_insert_delete,
1545         optimize_mode_switching): Likewise.
1546         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
1547         * predict.c (estimate_probability, note_prediction_to_br_prob,
1548         propagate_freq, counts_to_freqs, expensive_function_p,
1549         estimate_bb_frequencies): Likewise.
1550         * profile.c (instrument_edges, get_exec_counts,
1551         compute_branch_probabilities, compute_checksum, branch_prob,
1552         find_spanning_tree): Likewise.
1553         * recog.c (split_all_insns, peephole2_optimize): Likewise.
1554         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
1555         Likewise.
1556         * regclass.c (scan_one_insn, regclass): Likewise.
1557         * regmove.c (mark_flags_life_zones, regmove_optimize,
1558         record_stack_memrefs): Likewise.
1559         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
1560         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
1561         * resource.c (find_basic_block): Likewise.
1562         * sched-ebb.c (schedule_ebbs): Likewise.
1563         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
1564         find_single_block_region, find_rgns, schedule_insns)
1565         * sibcall.c (optimize_sibling_and_tail_recursive_call)
1566         * ssa-ccp.c (optimize_unexecutable_edges,
1567         ssa_ccp_df_delete_unreachable_insns): Likewise.
1568         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
1569         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
1570         rename_block, convert_to_ssa, compute_conservative_reg_partition,
1571         compute_coalesced_reg_partition, rename_equivalent_regs,
1572         convert_from_ssa): Likewise.
1573         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
1574         process_for_unwind_directive): Likewise.
1575
1576         * df.c (FOR_ALL_BBS): Removed.
1577         * gcse.c (struct null_pointer_info): Type of current_block field
1578         changed.
1579         (struct reg_avail_info): Type of last_bb field changed.
1580         * config/ia64/ia64.c (block_num): Removed.
1581         (need_copy_state): Type changed.
1582         (last_block): New.
1583
1584 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1585
1586         * cppinit.c (mark_named_operators): Split out from init_builtins.
1587         (cpp_finish_options): Call it from here instead.
1588
1589 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1590
1591         * builtin-attrs.def: Update copyright years.
1592         (ATTR_NONNULL): New attribute identifier.
1593         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1594         attribute tree lists.
1595         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1596         format operand.
1597         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1598         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1599         attribute lists.  Chain the appropriate nonnull attribute.
1600         * c-format.c (check_format_arg): Remove null format string
1601         warning.
1602         * testsuite/gcc.dg/format/null-1.c: New test.
1603
1604 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1605
1606         * Makefile.in (ADAC): Define.
1607         (SYSLIBS): Define.
1608         (.SUFFIXES): Move before language makefile fragments.
1609         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1610
1611 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1612
1613         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1614         placed in common.
1615
1616 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1617
1618         * cfg.c (dump_flow_info): Print results of
1619         maybe_hot/probably_never_executed predicates.
1620         * toplev.c (open_dump_file): Print function frequency.
1621
1622 2002-05-23  David S. Miller  <davem@redhat.com>
1623
1624         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1625         regsets.
1626
1627 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1628
1629         * c-common.c (warn_nonnull): Declare.
1630         (c_common_attribute_table): Add "nonnull" attribute.
1631         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1632         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1633         check_function_arguments_recurse): New functions.
1634         * c-common.h (warn_nonnull): Declare extern.
1635         (check_function_arguments, check_function_arguments_recurse): New
1636         prototypes.
1637         * c-decl.c (c_decode_option): Add -Wnonnull option.
1638         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1639         format checking.
1640         (format_check_context): New structure.
1641         (check_format_info_recurse): Remove recursion and rename to...
1642         (check_format_arg): ...this.  Update comment.
1643         (check_format_info): Use check_function_arguments_recurse.
1644         * c-typeck.c (build_function_call): Call check_function_arguments
1645         instead of check_function_format.
1646         * doc/extend.texi: Document "nonnull" attribute.
1647         * doc/invoke.texi: Docuemnt -Wnonnull option.
1648         * testsuite/gcc.dg/nonnull-1.c: New test.
1649         * testsuite/gcc.dg/nonnull-2.c: New test.
1650
1651 2002-05-23  David S. Miller  <davem@redhat.com>
1652
1653         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1654         * cfgcleanup.c (cleanup_cfg): If it is set do not
1655         attempt to delete trivially dead insns.
1656         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1657         * toplev.c (rest_of_compilation): Document non-trivial aspect
1658         the RTL before optimize_save_area_alloca is run.
1659
1660 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1661
1662         * c-lex.c (indent_level): Remove.
1663         (cb_file_change, c_lex): Remove indent level handling.
1664         * c-lex.h (indent_level): Remove.
1665         * input.h (struct file_stack): Remove indent_level.
1666         * toplev.c (push_srcloc): Remove indent_level handling.
1667
1668 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1669
1670         PR target/6753
1671         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1672         of x in constraints for clarity.
1673         (sse_mov?fcc split): abort if op2 == op3.
1674         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1675         sse_movsfcc_const0_4): Add earlyclobber.
1676         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1677         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1678         Use Y instead of x in constraints.
1679
1680 2002-05-23  Richard Henderson  <rth@redhat.com>
1681
1682         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1683         (C++98 Thread-Local Edits): New subsection.
1684
1685         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1686         (ix86_arch): Set type to enum processor_type.
1687
1688         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1689         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1690
1691 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1692
1693         * configure.in: Fix as version test for binutils 2.12.1 releases
1694         (without dates).
1695         * configure: Rebuilt.
1696
1697 2002-05-23  Richard Henderson  <rth@redhat.com>
1698
1699         * config/i386/i386.c (get_pic_label_name): New.
1700         (load_pic_register): Remove.
1701         (output_set_got): New.
1702         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1703         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1704         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1705         (prologue_set_got, prologue_get_pc): Remove.
1706         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1707         (builtin_setjmp_receiver): Use gen_set_got.
1708         * config/i386/i386-protos.h: Update.
1709
1710 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1711
1712         * gcse.c (hash_expr): Do not use alias set for hashing.
1713
1714 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1715
1716         * dbxout.c (dbxout_class_name_qualifiers): New function.
1717         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1718
1719 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1720
1721         * cpperror.c (_cpp_begin_message): No special casing
1722         of CPP_FATAL_LIMIT.
1723         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1724         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1725         * cpplib.c (do_include_common): Use DL_ERROR.
1726         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1727         (DL_ICE): Renumber.
1728         * fix-header.c (read_scan_file): Update.
1729
1730 2002-05-22  Richard Henderson  <rth@redhat.com>
1731
1732         * config/i386/i386.c (ix86_expand_call): New function, extracted
1733         from md call patterns.  Add pic_offset_table_rtx to
1734         CALL_INSN_FUNCTION_USAGE when needed.
1735         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1736         (call_value_pop, call_value, untyped_call): Likewise.
1737         (call_exp, call_value_exp): Remove.
1738         * config/i386/i386-protos.h: Update.
1739
1740 2002-05-22  Richard Henderson  <rth@redhat.com>
1741
1742         * varasm.c (default_section_type_flags): Check for VAR_DECL
1743         before using DECL_THREAD_LOCAL.
1744
1745 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1746
1747         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1748         (STARTFILE_SPEC): Delete PE crt0.o.
1749         * config/rs6000/aix51.h: Same.
1750         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1751         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1752         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1753         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1754         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1755
1756 2002-05-22  Richard Henderson  <rth@redhat.com>
1757
1758         * varasm.c (default_section_type_flags): Handle tls data and
1759         default sections.
1760         (default_unique_section): Handle tls sections.
1761
1762 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1763
1764         * configure.in (CROSS): Define NATIVE_CROSS.
1765         * configure: Regenerate.
1766         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1767         (startfile_prefix_spec): New var.
1768         (static_specs): Add startfile_prefix_spec.
1769         (do_spec_2): Split out from..
1770         (do_spec): ..here.
1771         (main): Process startfile_prefix_spec.
1772         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1773         dynamic linker.
1774         (STARTFILE_PREFIX_SPEC): Define.
1775         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1776         absolute paths.
1777
1778 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1779
1780         * cpperror.c: Fix formatting.
1781         * cppexp.c: Likewise.
1782         * cppfiles.c: Likewise.
1783         * cpphash.c: Likewise.
1784         * cpphash.h: Likewise.
1785         * cppinit.c: Likewise.
1786         * cpplex.c: Likewise.
1787         * cpplib.c: Likewise.
1788         * cppmacro.c: Likewise.
1789         * cppmain.c: Likewise.
1790         * cppspec.c: Likewise.
1791
1792 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1793
1794         * combine.c (force_to_mode): Use gen_int_mode.
1795         Don't clear CONST_INT bits outside of mode.
1796
1797 2002-05-22  Richard Henderson  <rth@redhat.com>
1798
1799         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1800         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1801
1802 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1803
1804         PR c/6643
1805         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1806         if DECL_SIZE_UNIT is INTEGER_CST.
1807
1808 2002-05-22  Richard Henderson  <rth@redhat.com>
1809
1810         * flow.c (life_analysis): Delete broken reg_label check.
1811
1812 2002-05-22  Richard Henderson  <rth@redhat.com>
1813
1814         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1815         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1816
1817 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1818
1819         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1820         (embed-bb.c): New rule.
1821         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1822         * config/sh/embed_bb.c: Delete.
1823
1824 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1825
1826         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1827
1828 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1829
1830         * config/h8300/h8300.md (*andorqi3): New.
1831
1832 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1833
1834         PR preprocessor/6517
1835         * Makefile.in: Update.
1836         * c-common.c (c_common_post_options): Add preprocessor
1837         errors to the error count.
1838         * c-lang.c (c_post_options): Kill.
1839         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1840         * hooks.h: Add header guards.
1841         * langhooks-def.h: Include hooks.h.
1842         (LANG_HOOKS_POST_OPTIONS): Update.
1843         * langhooks.h (struct lang_hooks): Update post_options.
1844         * toplev.c (parse_options_and_default_flags): Update.
1845 objc:
1846         * objc-lang.c (objc_post_options): Kill.
1847         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1848
1849 2002-05-21  Bruce Korb  <bkorb@gnu.org>
1850
1851         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1852         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1853         * fixinc/fixincl.x: regen.
1854
1855 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
1856
1857         * cfgbuild.c: Fix formatting.
1858         * cfg.c: Likewise.
1859         * cfgcleanup.c: Likewise.
1860         * cfglayout.c: Likewise.
1861         * cfgloop.c: Likewise.
1862         * cfgrtl.c: Likewise.
1863
1864 2002-05-21  Richard Henderson  <rth@redhat.com>
1865
1866         * c-common.h (enum rid): Add RID_THREAD.
1867         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1868         (grokdeclarator): Grok __thread.
1869         * c-parse.in (reswords): Add __thread.
1870         (rid_to_yy): Add RID_THREAD.
1871
1872         * tree.h (DECL_THREAD_LOCAL): New.
1873         (struct tree_decl): Add thread_local_flag.
1874         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1875         * tree.c (staticp): TLS variables are not static.
1876
1877         * target-def.h (TARGET_HAVE_TLS): New.
1878         * target.h (have_tls): New.
1879         * output.h (SECTION_TLS): New.
1880         * varasm.c (assemble_variable): TLS variables can't be common for now.
1881         (default_section_type_flags): Handle .tdata and .tbss.
1882         (default_elf_asm_named_section): Handle SECTION_TLS.
1883         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1884
1885         * flags.h (flag_tls_default): Declare.
1886         * toplev.c (flag_tls_default): Define.
1887         (display_help): Display help for it.
1888         (decode_f_option): Set it.
1889
1890         * doc/extend.texi (Thread-Local): New node describing language-level
1891         thread-local storage.
1892         * doc/invoke.texi (-ftls-model): Document.
1893
1894         * fixinc/inclhack.def (thread_keyword): New.
1895         * fixinc/fixincl.x: Rebuild.
1896
1897 2002-05-21  Jeffrey A Law  <law@redhat.com>
1898
1899         * optabs.c (expand_binop): For double-word integer multiplies,
1900         do not compute intermediate results into something that is
1901         not a register (such as a SUBREG or MEM).
1902
1903         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1904         (ix86_sched_reorder): Make sure to initialize scheduling
1905         data even when there's only one insn in the ready queue.
1906
1907 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1908
1909         * genautomata.c (reserv_sets_hash_value): Fix a typo.
1910
1911 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1912
1913         * genautomata.c (reserv_sets_hash_value): Define hash_value as
1914         set_el_t.  Transform the hash value into unsigned.
1915         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1916         (transform_3): Add code to process `(A,B)+(D,E)'.
1917
1918 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
1919
1920         * reload1.c (do_output_reload): Run delete_output_reload
1921         only if optimizing.
1922
1923 2002-05-21  Roger Sayle  <roger@eyesopen.com>
1924
1925         PR middle-end/6600
1926         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1927         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
1928         (can_store_by_pieces): ... and here to limit the largest mode used.
1929         Add a comment to document this function.
1930
1931 2002-05-21  Richard Henderson  <rth@redhat.com>
1932
1933         * flow.c (life_analysis): Fix test for deleted label.
1934
1935 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1936
1937         * doc/tm.texi: Fix typo.
1938
1939 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
1940
1941         * c-common.c (c_common_init): Set options->unsigned_char from
1942         flag_signed_char.
1943         (cb_register_builtins): Define __STRICT_ANSI__ and
1944         __CHAR_UNSIGNED__ here...
1945         * cppinit.c (init_builtins): Not here.
1946         (cpp_create_reader): unsigned_char option defaults to 0, not
1947         !DEFAULT_SIGNED_CHAR.
1948         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1949         and -funsigned-char.
1950
1951         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1952         * cpphash.c (_cpp_init_hashtable): Don't set it.
1953         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1954         directly.  Clarify comment.
1955
1956 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1957
1958         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1959         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
1960         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
1961         BASIC_BLOCK (n_basic_blocks - 1).
1962         * cfganal.c (can_fallthru, flow_call_edges_add,
1963         flow_preorder_transversal_compute): Too.
1964         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1965         find_sub_basic_blocks): Too.
1966         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1967         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1968         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1969         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1970         * combine.c (this_basic_block): Type changed to basic_block.
1971         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1972         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1973         get_last_value, distribute_notes, distribute_links): Too.
1974         * final.c (compute_alignments): Too.
1975         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1976         * function.c (thread_prologue_and_epilogue_insns): Too.
1977         * gcse.c (compute_code_hoist_vbeinout): Too.
1978         * global.c (build_insn_chain): Too.
1979         * ifcvt.c (find_if_block, find_cond_trap): Too.
1980         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1981         * regmove.c (regmove_optimize): Too.
1982         * resource.c (find_basic_block): Too.
1983         * sched-ebb.c (schedule_ebbs): Too.
1984         * ssa-dce.c (find_control_dependence, find_pdom): Too.
1985
1986 2002-05-21  Andreas Jaeger  <aj@suse.de>
1987
1988         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1989
1990 2002-05-21  Richard Henderson  <rth@redhat.com>
1991
1992         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1993         unspec names, not numbers.
1994
1995 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1996
1997         * doc/sourcebuild.texi: Mention snapshot-README and
1998         snapshot-index.html as needing updating for new front ends.
1999
2000 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2001
2002         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
2003         disabling checking, and avoid multiple evaluation of RTX.
2004
2005 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
2006
2007         * bitmap.c (bitmap_find_bit): Return early if we have the correct
2008         element cached.
2009
2010 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
2011
2012         * profile.c (gen_edge_profiler):  Set alias set before the memory is
2013         used.
2014
2015 2002-05-20  David S. Miller  <davem@redhat.com>
2016
2017         * cselib.c (max_value_regs): New.
2018         (cselib_lookup, cselib_invalidate_regno): Initialize it when
2019         adding new entries to the REG_VALUES table and we are dealing with
2020         a hard register.
2021         (clear_table): Initialize it.
2022         (cselib_invalidate_regno): Use it to determine which hard
2023         registers to scan when mode is not VOIDmode.
2024
2025 2002-05-20  Duraid Madina   <duraid@fl.net.au>
2026
2027         * tradcpp.c (fixup_newlines): Use old-style function header.
2028
2029 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
2030
2031         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
2032
2033 2002-05-20  H.J. Lu  (hjl@gnu.org)
2034
2035         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
2036
2037         * config/mips/mips.h (DFMODE_NAN): Defined.
2038         (SFMODE_NAN): Likewise.
2039
2040 2002-05-20  Dale Johannesen  <dalej@apple.com>
2041
2042         * combine.c (cant_combine_insn_p):  Back out my
2043         previous patch.
2044
2045 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
2046
2047         * params.c: Fix formatting.
2048         * params.h: Likewise.
2049         * predict.c: Likewise.
2050         * prefix.c: Likewise.
2051         * print-rtl.c: Likewise.
2052         * print-tree.c: Likewise.
2053         * profile.c: Likewise.
2054
2055 2002-05-20  H.J. Lu  (hjl@gnu.org)
2056
2057         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
2058
2059 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
2060
2061         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
2062         switches straight on to the assembler, do not abbreviate them.
2063         * config/arm/elf.h (ASM_SPEC): As above.
2064         * config/arm/semi.h (ASM_SPEC): As above.
2065         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
2066         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
2067         -mcpu=xscale on to the assembler by default.
2068         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
2069
2070 2002-05-20  Richard Henderson  <rth@redhat.com>
2071
2072         * cse.c (canon_hash): Reorder do_not_record test.  Always
2073         allow pic_offset_table_rtx.
2074
2075 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2076
2077         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
2078         (expand_binop): Ditto (3 times).
2079
2080 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
2081
2082         * Makefile.in (distclean): Remove QMTest stuff.
2083         (QMTEST_PATH): New variable.
2084         (QMTESTFLAGS): Likewise.
2085         (QMTESTRUNFLAGS): Likewise.
2086         (QMTEST): Likewise.
2087         (QMTEST_GPP_TESTS): Likewise.
2088         (QMTEST_DIR): Likewise.
2089         (QMTEST_DIR/context): New target.
2090         (qmtest-g++): Likeise.
2091         (qmtest-gui): Likewise.
2092         (QMTEST_DIR/gpp-expected.qmr): Likewise.
2093
2094 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
2095
2096         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
2097         an altivec register if TARGET_ALTIVEC.
2098
2099         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
2100         to ALTIVEC_VECTOR_MODE.
2101         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
2102         (rs6000_va_arg): Vectors may go in registers if they are not
2103         altivec vectors.
2104
2105 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
2106
2107         * protoize.c: Fix formatting.
2108
2109 2002-05-19  Richard Henderson  <rth@redhat.com>
2110
2111         * gensupport.c (init_include_reader): Merge into ...
2112         (process_include): ... here.  Simplify composite path creation.
2113         Plug memory leaks.  Fix file/line number tracking.  Do not
2114         process_define_cond_exec.  Return void.
2115         (process_rtx): Don't check process_include return value.
2116
2117 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2118
2119         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
2120         fields.
2121         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2122         traversing basic block chain.
2123         (create_basic_block_structure, create_basic_block): Declaration changed.
2124         (link_block, unlink_block): Declare.
2125         * cfg.c (entry_exit_blocks): Initialize new fields.
2126         (link_block, unlink_block): New.
2127         (expunge_block_nocompact): Unlink basic block.
2128         (dump_flow_info): Print prev_bb/next_bb fields.
2129         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
2130         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
2131         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
2132         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2133         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
2134         (verify_flow_info): Check that list agrees with numbering.
2135
2136 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2137
2138         * c-common.c (preprocessing_asm): New macro.
2139         * c-lex.h (builtin_define, builtin_assert): Use pfile.
2140 doc:
2141         * tm.texi: Update.
2142 config/alpha:
2143         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
2144         (CPP_SPEC): Simplify.
2145         (TARGET_CPU_CPP_BUILTINS): Update.
2146         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
2147         (CPP_SPEC): Simplify.
2148         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
2149         (TARGET_OS_CPP_BUILTINS): Update.
2150         * osf.h (CPP_XFLOAT_SPEC): Kill.
2151         (TARGET_OS_CPP_BUILTINS): Update.
2152         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
2153         * osf5.h (CPP_XFLOAT_SPEC): Kill.
2154         * vms.h (CPP_SUBTARGET_SPEC): Kill.
2155         (TARGET_OS_CPP_BUILTINS): Update.
2156
2157 2002-05-19  Richard Henderson  <rth@redhat.com>
2158
2159         * varasm.c (default_binds_local_p): Fix typo.
2160
2161 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2162
2163         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
2164         CONST_INT operand to the correct mode after adding 1 to it.
2165
2166 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
2167
2168         * config.gcc (powerpc-wrs-windiss*): New target.
2169
2170 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2171
2172         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
2173         (ashrdi3): Use it.
2174
2175 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
2176
2177         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
2178         alphasort.
2179         * config.in: Regenerated.
2180         * configure: Regenerated.
2181
2182 2002-05-19  Richard Henderson  <rth@redhat.com>
2183
2184         * target-def.h (TARGET_BINDS_LOCAL_P): New.
2185         * target.h (struct gcc_target): Move boolean fields to the end.
2186         Add binds_local_p.
2187         * varasm.c (default_binds_local_p): New.
2188         * output.h: Declare it.
2189
2190         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
2191         * config/cris/cris.c (cris_encode_section_info): Likewise.
2192         * config/i386/i386.c (i386_encode_section_info): Likewise.
2193         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
2194         * config/sh/sh.c (sh_encode_section_info): Likewise.
2195
2196         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
2197         (TARGET_BINDS_LOCAL_P): New.
2198
2199 2002-05-19  Richard Henderson  <rth@redhat.com>
2200
2201         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
2202         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
2203         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
2204
2205         * toplev.c (display_help): Kill -a -ax help.
2206
2207         * config/1750a/1750a.h, config/alpha/alpha.h,
2208         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
2209         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
2210         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
2211         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
2212
2213         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
2214         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
2215
2216         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
2217         (ix86_output_function_block_profiler): Kill.
2218         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
2219         (m68hc11_function_block_profiler): Kill.
2220         * config/m68hc11/m68hc11-protos.h: Update.
2221         * config/m88k/m88k.c (output_block_profiler): Kill.
2222         (output_function_block_profiler): Kill.
2223         * config/m88k/m88k-protos.h: Update.
2224
2225 2002-05-19  Richard Henderson  <rth@redhat.com>
2226
2227         * system.h (STRIP_NAME_ENCODING): Poison it.
2228         * output.h (STRIP_NAME_ENCODING): Remove.
2229         (default_strip_name_encoding): Declare.
2230         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
2231         * target.h (strip_name_encoding): New.
2232         * varasm.c (default_strip_name_encoding): New.
2233
2234         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
2235         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
2236         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
2237         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
2238         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
2239         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
2240         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
2241         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
2242         config/v850/v850.h: Use the hook, not the macro.
2243
2244         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
2245         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
2246         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
2247         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
2248         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
2249         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
2250         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
2251         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
2252         config/v850/v850.c, config/v850/v850.h:
2253         Move STRIP_NAME_ENCODING to out-of-line function and add
2254         TARGET_STRIP_NAME_ENCODING.
2255
2256         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
2257         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
2258         with TARGET_STRIP_NAME_ENCODING referencing existing function;
2259         make function static.
2260
2261         * xcoffout.c: Include target.h
2262         * Makefile.in (xcoffout.o): Update.
2263
2264         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
2265         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
2266         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
2267         reloc argument unused.
2268         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
2269
2270         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
2271         STRIP_NAME_ENCODING docs.
2272
2273 2002-05-19  Andreas Jaeger  <aj@suse.de>
2274
2275         * gengenrtl.c: Add prototype for excluded_rtx.
2276
2277         * real.h: Add prototype for exact_real_truncate.
2278
2279 2002-05-18  Richard Henderson  <rth@redhat.com>
2280
2281         * system.h (ENCODE_SECTION_INFO): Poison it.
2282         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
2283         * target.h (encode_section_info): New.
2284         * varasm.c (make_decl_rtl, output_constant_def): Use it.
2285         * hooks.c (hook_tree_int_void): New.
2286         * hooks.h: Declare it.
2287
2288         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
2289         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
2290         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
2291         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
2292         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
2293         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
2294         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
2295         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
2296         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
2297         config/mcore/mcore-protos.h, config/mcore/mcore.c,
2298         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
2299         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
2300         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
2301         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
2302         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
2303         referencing existing function.  Make function static.
2304
2305         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
2306         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
2307         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
2308         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
2309         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
2310         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
2311         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
2312         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
2313         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
2314         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
2315         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
2316         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
2317         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
2318         Move ENCODE_SECTION_INFO to out-of-line function and add
2319         TARGET_ENCODE_SECTION_INFO.
2320
2321         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
2322         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
2323
2324         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
2325         from SUBTARGET_*
2326         (switch_to_section): Replace in_rdata case with in_readonly_data.
2327
2328         * config/h8300/h8300.c (h8300_encode_label): Make static.
2329         * config/h8300/h8300-protos.h: Update.
2330
2331         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
2332         from rs6000_encode_section_info; make static.
2333         (rs6000_xcoff_encode_section_info): New.
2334
2335         * config/v850/v850.c (v850_encode_data_area): Make static.
2336         * config/v850/v850-protos.h: Update.
2337
2338         * config/vax/vax.c: Include flags.h.
2339         (vms_select_section): Fix typo.
2340
2341         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
2342         ENCODE_SECTION_INFO docs.
2343
2344 2002-05-18  Richard Henderson  <rth@redhat.com>
2345
2346         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
2347         REGISTER_TARGET_PRAGMAS.
2348         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
2349
2350         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
2351
2352 2002-05-18  Richard Henderson  <rth@redhat.com>
2353
2354         * system.h (SELECT_RTX_SECTION): Poison.
2355         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
2356         * target.h (select_rtx_section): New.
2357         * varasm.c (output_constant_pool): Use it.
2358         (default_select_rtx_section, default_elf_select_rtx_section): New.
2359         * output.h: Declare them.
2360
2361         * config/darwin.h (SELECT_RTX_SECTION): Move ...
2362         * config/darwin.c (machopic_select_rtx_section): ... here.
2363         * config/darwin-protos.h: Update.
2364
2365         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
2366         * config/nextstep.c (machopic_select_rtx_section): ... here.
2367         (nextstep_select_section): Rename variable to avoid macro clash.
2368         * config/nextstep-protos.h: Update.
2369
2370         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
2371         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
2372         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
2373         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
2374         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
2375         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
2376         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
2377         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
2378         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
2379         (SELECT_RTX_SECTION): Remove.
2380
2381         * config/darwin.h, config/elfos.h, config/nextstep.h,
2382         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
2383         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
2384         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
2385         config/sparc/lynx.h, config/xtensa/xtensa.c
2386         (TARGET_ASM_SELECT_RTX_SECTION): New.
2387
2388         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
2389         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
2390         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
2391         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
2392         (ia64_aix_select_rtx_section): New.
2393         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
2394         redefining.
2395         * config/mips/mips.c (mips_select_rtx_section): Make static.
2396         Support ELF SHF_MERGE features.
2397         * config/mips/mips-protos.h: Update.
2398         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
2399         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
2400         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
2401         make static, fall back to default_elf_select_rtx_section.
2402         * config/rs6000/rs6000-protos.h: Update.
2403         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
2404         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
2405         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
2406         * config/romp/romp.c (romp_select_rtx_section): New.
2407         * config/s390/s390.c (s390_select_rtx_section): New.
2408         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
2409         declarations before target macro definition.
2410         (xtensa_emit_call): Use static buffer.
2411         (xtensa_select_rtx_section): New.
2412         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
2413         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
2414         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
2415
2416         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
2417         SELECT_RTX_SECTION docs.
2418
2419 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
2420
2421         * i386.md (movsi/movdi): Fix template.
2422         (sse2 patterns): Set attributes consistently.
2423
2424         * i386.md (pushqi2, ashrqi_*): Fix constraint.
2425
2426 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2427
2428         * optabs.c (complex_part_zero_p): New.
2429         * (expand_cmplxdiv_straight): Use it.
2430         * (expand_cmplxdiv_wide): Ditto.
2431         * (expand_binop): Ditto.
2432
2433 2002-05-18  Richard Henderson  <rth@redhat.com>
2434
2435         * final.c (HAVE_READONLY_DATA_SECTION): New.
2436         (shorten_branches): Use it instead of ifdefs.
2437         * varasm.c (enum in_section): Add in_readonly_data.
2438         (text_section, data_section): Tidy.
2439         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
2440
2441         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
2442         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
2443         (READONLY_DATA_SECTION): Don't undef.
2444
2445         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
2446         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
2447         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
2448
2449         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
2450         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
2451         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
2452         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
2453
2454         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
2455         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
2456         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2457         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
2458         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
2459         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
2460         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
2461         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
2462         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
2463
2464         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
2465         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
2466         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
2467         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
2468         config/pa/pa64-hpux.h, config/sparc/litecoff.h
2469         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
2470
2471         * config/elfos.h, config/netware.h, config/svr3.h,
2472         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2473         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
2474         config/h8300/h8300.h, config/i386/i386-interix.h,
2475         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2476         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
2477
2478         * config/elfos.h, config/netware.h, config/svr3.h,
2479         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
2480         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
2481         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
2482         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
2483
2484         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
2485         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
2486         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
2487         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
2488         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
2489         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
2490         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
2491         config/rs6000/sysv4.h, config/v850/v850.h
2492         (EXTRA_SECTIONS): Remove in_const/in_rdata.
2493         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
2494
2495         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
2496         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
2497         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
2498         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
2499         * config/alpha/alpha.c (alpha_start_function): Likewise.
2500         (alpha_write_linkage): Likewise.
2501         * config/m32r/m32r.c (m32r_select_section): Likewise.
2502         * config/m88k/m88k.c (m88k_select_section): Likewise.
2503         * config/mips/mips.c (mips_select_rtx_section): Likewise.
2504         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
2505         (rs6000_elf_select_section): Likewise.
2506         * config/v850/v850.c (v850_select_section): Likewise.
2507
2508         * config/1750a/1750a.h, config/i860/sysv3.h
2509         (READONLY_DATA_SECTION_ASM_OP): New.
2510         READONLY_DATA_SECTION_ASM_OP.
2511         * config/i386/interix.c, config/i386/winnt.c
2512         (i386_pe_unique_section): Always use .rdata prefix.
2513         * config/pa/som.h (readonly_data): Always switch to read-only section.
2514         (READONLY_DATA_SECTION): Predicate on flag_pic.
2515         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
2516         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
2517         (READONLY_DATA_SECTION): Update.
2518
2519 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
2520
2521         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
2522         is used without -Wformat.
2523         * c-common.h (warn_format_zero_length): Declare extern.
2524         * c-decl.c (warn_options): Add "format-zero-length".
2525         * c-format.c (warn_format_zero_length): Declare.
2526         (set_Wformat): Set warn_format_zero_length for -Wformat.
2527         (check_format_info): Only warn about zero-length formats if
2528         warn_format_zero_length is true.  Include the format type
2529         name in the warning message.
2530         * doc/invoke.texi: Document -Wformat-zero-length.
2531         * testsuite/gcc.dg/format/zero-length-1.c: New test.
2532
2533 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
2534
2535         * timevar.c: Fix formatting.
2536         * tlink.c: Likewise.
2537         * toplev.c: Likewise.
2538         * tree-dump.c: Likewise.
2539         * tree-inline.c: Likewise.
2540
2541 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2542
2543         * cppinit.c (cpp_post_options): If preprocessed, turn off
2544         traditional.  If traditional, turn off column numbers.
2545         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
2546         * cpptrad.c (handle_newline): Update line_base.
2547         (skip_comment): Handle -Wcomment.
2548
2549 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
2550
2551         * cppinit.c (struct builtin): Remove unused fields.
2552         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
2553         (operator_array): New - was second half of builtin_array.
2554         (init_builtins): Simplify loop over builtin_array/operator_array.
2555
2556 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
2557
2558         * defaults.h (UNIQUE_SECTION): Remove.
2559         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
2560
2561 2002-05-17  Richard Henderson  <rth@redhat.com>
2562
2563         * expr.c (init_expr_once): Don't use start/end_sequence.
2564         Use rtx_alloc instead of emit_insn.
2565         * toplev.c (lang_dependent_init): Run init_expr_once here ...
2566         (lang_independent_init): ... not here.
2567
2568 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
2569
2570         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
2571
2572 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2573
2574         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
2575         for fixed registers, possibly used for global register variables.
2576         (initial_elimination_offset, avr_output_function_prologue,
2577         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
2578
2579 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2580
2581         * Makefile.in: Update for cpptrad.c.
2582         * cpphash.h (struct cpp_buffer): New members for buffer
2583         overlays.
2584         (struct cpp_reader): New members for traditional output.
2585         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2586         * cppinit.c (cpp_create_reader): Set trad_line.
2587         (cpp_destroy): Free trad_out_base if used.
2588         (cpp_read_main_file): Overlay an empty buffer if traditional.
2589         (cpp_finish_options): Don't do builtins.
2590         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2591         (cpp_handle_option): Handle it.
2592         * cpplex.c (continue_after_nul): New.
2593         (_cpp_lex_direct): Use handle_nul.
2594         * cpplib.h (struct cpp_options): New traditional option.
2595         * cpptrad.c: New file.
2596
2597 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2598
2599         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2600         and set the options flag.
2601         * cppinit.c (lang_flags): Remove objc.
2602         (lang_defaults): Remove OBJC and OBJCXX.
2603         (set_lang): Update.
2604         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2605         (cpp_handle_option): Remove -+ and -lang-objc++.
2606         For ObjC, just set a flag.
2607         (print_help): Update.
2608         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2609
2610 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2611
2612         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2613         bootstrap with -mips3.
2614
2615 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2616
2617         * final.c: Fix formatting.
2618         * fix-header.c: Likewise.
2619         * flow.c: Likewise.
2620         * fold-const.c: Likewise.
2621         * function.c: Likewise.
2622
2623 2002-05-17  David S. Miller  <davem@redhat.com>
2624
2625         PR c/6689, PR optimization/6615
2626         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2627         and make it a pointer to rtx.  Update comments.
2628         (update_equiv_regs): When scanning for equivalences, record
2629         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2630         it while making the equiv replacements.
2631
2632 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2633
2634         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2635
2636 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2637
2638         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2639         when encoding visibility into SYMBOL_REF_FLAG.
2640
2641 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2642
2643         * expr.c (force_operand): Fix reversed move.
2644
2645 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2646
2647         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2648         that can be ignored.
2649
2650 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2651
2652         * doc/install.texi (Final install): Recommend to install into a
2653         "clean" target directory.
2654
2655 2002-05-17  Richard Henderson  <rth@redhat.com>
2656
2657         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2658         for code blocks.  Tidy whitespace.
2659
2660 2002-05-17  Richard Henderson  <rth@redhat.com>
2661
2662         * hooks.c (hook_tree_bool_false): New.
2663         * hooks.h: Declare it.
2664         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2665         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2666         * target.h (select_section, unique_section): New.
2667         (in_small_data_p): New.
2668         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2669         (variable_section, output_constant_def_contents): Likewise.
2670         (default_select_section, default_unique_section): New.
2671         (categorize_decl_for_section, default_elf_select_section): New.
2672         * output.h: Declare them.
2673
2674         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2675         (TARGET_ASM_SELECT_SECTION): New.
2676         (SELECT_SECTION): Move ...
2677         * config/darwin.c (machopic_select_section): ... here.
2678         * config/darwin-protos.h: Update.
2679
2680         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2681         (SELECT_SECTION): Move ...
2682         * config/nextstep.c (nextstep_select_section): ... here.
2683         * config/nextstep-protos.h: Update.
2684
2685         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2686         (TARGET_ASM_SELECT_SECTION): New.
2687         * config/svr3.h (SELECT_SECTION): Remove.
2688
2689         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2690         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2691         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2692         (alpha_encode_section_info): Use it.
2693         * config/alpha/alpha-protos.h: Update.
2694         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2695         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2696         (TARGET_ASM_SELECT_SECTION): New.
2697         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2698
2699         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2700         (TARGET_ASM_UNIQUE_SECTION): New.
2701
2702         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2703         (avr_unique_section): Rename from unique_section; make static.
2704         * config/avr/avr-protos.h: Update.
2705         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2706
2707         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2708
2709         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2710         (TARGET_ASM_UNIQUE_SECTION): New.
2711         * config/i386/i386-interix.h: Likewise.
2712         * config/i386/win32.h: Likewise.
2713         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2714         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2715         * config/i386/sco5.h (SELECT_SECTION): Remove.
2716         (TARGET_ASM_SELECT_SECTION): New.
2717         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2718
2719         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2720         instead of SELECT_SECTION.
2721         * config/m68k/dpx2.h: Likewise.
2722         * config/rs6000/lynx.h: Likewise.
2723
2724         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2725         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2726         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2727         (ia64_in_small_data_p): New.
2728         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2729         (ia64_aix_select_section, ia64_aix_unique_section): New.
2730         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2731         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2732
2733         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2734         (TARGET_ASM_SELECT_SECTION): New.
2735         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2736         * config/m32r/m32r-protos.h: Update.
2737
2738         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2739         (SELECT_SECTION): Move ...
2740         * config/m88k/m88k.c (m88k_select_section): ... here.
2741
2742         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2743         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2744         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2745         (mcore_unique_section): Make static.
2746         * config/mcore/mcore-protos.h: Update.
2747
2748         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2749         (TARGET_ASM_UNIQUE_SECTION): New.
2750         * config/mips/elf64.h: Likewise.
2751         * config/mips/iris6gld.h: Likewise.
2752         * config/mips/linux.h: Likewise.
2753         * config/mips/mips-protos.h: Update.
2754         * config/mips/mips.c (mips_select_section): Add align argument.
2755         * config/mips/mips.h (SELECT_SECTION): Remove.
2756         (TARGET_ASM_SELECT_SECTION): New.
2757
2758         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2759         * config/mmix/mmix.c (mmix_select_section): Remove.
2760         (mmix_unique_section): Remove.
2761         * config/mmix/mmix-protos.h: Update.
2762
2763         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2764         (SELECT_SECTION): Move ...
2765         * config/pa/pa.c (pa_select_section): ... here.
2766         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2767
2768         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2769         from rs6000_select_section and make static.
2770         (rs6000_elf_unique_section): Similarly.
2771         (rs6000_xcoff_select_section): From xcoff.h.
2772         (rs6000_xcoff_unique_section): Likewise.
2773         * config/rs6000/rs6000-protos.h: Update.
2774         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2775         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2776         * config/rs6000/xcoff.h: Likewise.
2777
2778         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2779         (SELECT_SECTION): Move ...
2780         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2781
2782         * config/v850/v850.h (SELECT_SECTION): Move ...
2783         * config/v850/v850.c (v850_select_section): ... here.
2784         (TARGET_ASM_SELECT_SECTION): New.
2785
2786         * config/vax/vms.h (SELECT_SECTION): Move ...
2787         * config/vax/vax.c (vms_select_section): ... here.
2788         (TARGET_ASM_SELECT_SECTION): New.
2789
2790         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2791         for the target hooks.
2792
2793 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2794
2795         * config/arm/arm.c (emit_multi_reg_push): Do not set
2796         RTX_FRAME_RELATED_P on the SEQUENCE.
2797
2798 2002-05-16  Richard Henderson  <rth@redhat.com>
2799
2800         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2801         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2802
2803 2002-05-16  Richard Henderson  <rth@redhat.com>
2804
2805         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2806
2807         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2808
2809 2002-05-16  Richard Henderson  <rth@redhat.com>
2810
2811         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2812         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2813         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2814         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2815         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2816         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2817         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2818         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2819         Revert "Basic block renumbering removal", and two followup patches.
2820
2821 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2822
2823         * lcm.c (optimize_mode_switching): Revert previous change.
2824
2825 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2826
2827         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2828         with only extant block numbers.
2829
2830 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2831
2832         * lcm.c (optimize_mode_switching): Fix typo.
2833
2834 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2835
2836         * flow.c (calculate_global_regs_live): Queue blocks in program order.
2837
2838 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2839
2840         * doc/install.texi (Configuration): Document PWDCMD.
2841
2842 2002-05-16  Dale Johannesen  <dalej@apple.com>
2843
2844         * combine.c (cant_combine_insn_p):  Reenable combinations
2845         involving hard regs unless CLASS_LIKELY_SPILLED_P.
2846
2847 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2848
2849         * c-common.c (cb_register_builtins): Handle more built-ins
2850         here rather than in gcc.c specs.
2851         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2852         (cpp_options): Pass -O flags even when only preprocessing.
2853         * toplev.c (set_fast_math_flags): New prototype.
2854         (fast_math_flags_set_p): New.
2855         (set_no_fast_math_flags): Remove.
2856         (decode_f_option): Update.
2857         * toplev.h (set_fast_math_flags): Update.
2858         (fast_math_flags_set_p): New.
2859         (set_no_fast_math_flags): Remove.
2860 config:
2861         * c4x/c4x.c (c4x_override_options): Update.
2862
2863 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
2864
2865         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2866         Default-define here.
2867         (builtin_define_with_value): Can now wrap the expansion in
2868         quotation marks if such is wanted.
2869         (cb_register_builtins): Update calls to builtin_define_with_value.
2870         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2871         here.
2872         (c_common_init): Set options->stdc_0_in_system_headers.
2873         * c-lex.h: Update prototype of builtin_define_with_value.
2874         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2875         and REGISTER_PREFIX.
2876
2877         * cppinit.c (VERS, ULP, C, X): Kill.
2878         (builtin_array): Remove entries for __VERSION__,
2879         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2880         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
2881         a constant.
2882         (init_builtins): Kill off a bunch of now-dead code.
2883         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2884         -fno-leading-underscore.
2885         (cpp_handle_option): Remove code to set user_label_prefix.
2886         (cpp_post_options): Likewise.
2887
2888         * cpplib.h (struct cpp_options): Remove user_label_prefix.
2889         (stdc_0_in_system_headers): New.
2890         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2891         stdc_0_in_system_headers) too to decide the value of __STDC__.
2892
2893         * tradcpp.c (user_label_prefix): Kill.
2894         (main): Remove code handling -f(no-)leading-underscore.
2895         (initialize_builtins): Don't define __REGISTER_PREFIX__
2896         or __USER_LABEL_PREFIX__.
2897         (install_value): Wrap compound statement in dummy loop so the
2898         macro works properly in an if statement.
2899
2900
2901 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
2902
2903         * loop.h (struct loop_info): Add member has_prefetch.
2904         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2905         (prescan_loop): Initialize has_prefetch.
2906         (struct prefetch_info): Change prefetch_in_loop and
2907         prefetch_before_loop from bit fields to ints.
2908         (emit_prefetch_instructions): Several small fixes.
2909         (check_dbra_loop): Don't reverse loop that uses prefetch.
2910
2911 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2912
2913         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2914         * configure.in: Likewise.
2915         * fixinc/check.tpl: Likewise.
2916         * fixinc/fixinc.dgux: Likewise.
2917         * fixinc/fixinc.svr4: Likewise.
2918         * fixinc/fixinc.winnt: Likewise.
2919         * fixinc/fixincl.sh: Likewise.
2920         * fixproto: Likewise.
2921         * configure: Regenerate.
2922
2923 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2924
2925         Basic block renumbering removal:
2926         * basic_block.h (struct basic_block_def): Renamed index to sindex,
2927         added prev_bb and next_bb fields.
2928         (n_basic_blocks): Renamed to num_basic_blocks.
2929         (last_basic_block): New, index of last basic block.
2930         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2931         traversing basic block chain.
2932         (BLOCK_NUM): index -> sindex.
2933         (create_basic_block_structure, create_basic_block): Declaration changed.
2934         (debug_num2bb): Declare.
2935         (expunge_block_nocompact): Declaration removed.
2936         (link_block, unlink_block, compact_blocks): Declare.
2937         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2938         * cfg.c (entry_exit_blocks): Initialize new fields.
2939         (clear_edges, alloc_block, expunge_block, cached_make_edge,
2940         redirect_edge_pred, dump_flow_info, dump_edge_info,
2941         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2942         free_aux_for_edges): Modified.
2943         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2944         (expunge_block_nocompact): Removed.
2945         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2946         find_unreachable_blocks, create_edge_list, print_edge_list,
2947         verify_edge_list, flow_edge_list_print, remove_fake_successors,
2948         remove_fake_edges, flow_reverse_top_sort_order_compute,
2949         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2950         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2951         flow_dfs_compute_reverse_execute): Modified.
2952         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2953         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2954         Modified.
2955         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2956         merge_blocks_move_predecessor_nojumps,
2957         merge_blocks_move_successor_nojumps, merge_blocks,
2958         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2959         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2960         * cfglayout.c (skip_insns_after_block, label_for_bb,
2961         record_effective_endpoints, scope_to_insns_finalize,
2962         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2963         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2964         cfg_layout_duplicate_bb): Modified.
2965         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2966         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2967         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2968         flow_loops_find, flow_loop_outside_edge_p): Modified.
2969         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2970         flow_delete_block, compute_bb_for_insn, split_block,
2971         try_redirect_by_replacing_jump, redirect_edge_and_branch,
2972         force_nonfallthru_and_redirect, tidy_fallthru_edge,
2973         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2974         commit_edge_insertions, commit_edge_insertions_watch_calls,
2975         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2976         purge_all_dead_edges): Modified.
2977         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2978         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2979         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2980         Modified.
2981         * conflict.c (conflict_graph_compute): Modified.
2982         * df.c (FOR_ALL_BBS): Removed.
2983         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2984         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2985         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2986         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2987         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2988         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2989         * final.c (compute_alignments, final_scan_insn): Modified.
2990         * flow.c (verify_local_live_at_start, update_life_info,
2991         update_life_info_in_dirty_blocks, free_basic_block_vars,
2992         delete_noop_moves, calculate_global_regs_live,
2993         initialize_uninitialized_subregs, allocate_bb_life_data,
2994         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2995         mark_used_reg, count_or_remove_death_notes): Modified.
2996         * function.c (thread_prologue_and_epilogue_insns): Modified.
2997         * gcse.c (struct null_pointer_info): Change typo of current_block
2998         to basic_block.
2999         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
3000         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
3001         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
3002         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
3003         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
3004         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
3005         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
3006         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
3007         pre_delete, one_pre_gcse_pass, compute_transpout,
3008         invalidate_nonnull_info, delete_null_pointer_checks_1,
3009         free_code_hoist_mem, compute_code_hoist_vbeinout,
3010         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
3011         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
3012         compute_store_table, build_store_vectors, insert_insn_start_bb,
3013         insert_store, replace_store_insn, free_store_memory, store_motion):
3014         Modified.
3015         * global.c (global_alloc, global_conflicts, mark_elimination,
3016         build_insn_chain): Modified.
3017         * graph.c (print_rtl_graph_with_bb): Modified.
3018         * haifa-sched.c (sched_init): Modified.
3019         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
3020         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
3021         if_convert): Modified.
3022         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
3023         compute_insert_delete, pre_edge_lcm, compute_available,
3024         compute_farthest, compute_nearerout, compute_rev_insert_delete,
3025         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
3026         Modified.
3027         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
3028         * loop.c (loop_dump_aux): Modified.
3029         * predict.c (combine_predictions_for_insn, estimate_probability,
3030         last_basic_block_p, process_note_prediction, process_note_predictions,
3031         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
3032         expensive_function_p, estimate_bb_frequencies,
3033         compute_function_frequency): Modified.
3034         * print-rtl.c (print_rtx): Modified.
3035         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
3036         get_exec_counts, compute_branch_probabilities, compute_checksum,
3037         branch_prob, find_spanning_tree): Modified.
3038         * recog.c (split_all_insns, peephole2_optimize): Modified.
3039         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
3040         convert_regs_1, convert_regs_2, convert_regs): Modified.
3041         * regclass.c (scan_one_insn, regclass): Modified.
3042         * regmove.c (mark_flags_life_zones, regmove_optimize,
3043         combine_stack_adjustments): Modified.
3044         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
3045         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
3046         * reorg.c (dbr_schedule): Modified.
3047         * resource.c (find_basic_block, init_resource_info): Modified.
3048         * sbitmap.c (sbitmap_intersection_of_succs,
3049         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
3050         sbitmap_union_of_preds): Modified.
3051         * sched-deps.c (init_dependency_caches): Modified.
3052         * sched-ebb.c (schedule_ebbs): Modified.
3053         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
3054         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
3055         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
3056         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
3057         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
3058         ssa_const_prop): Modified.
3059         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
3060         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
3061         * ssa.c (remove_phi_alternative, find_evaluations,
3062         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
3063         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
3064         make_regs_equivalent_over_bad_edges,
3065         make_equivalent_phi_alternatives_equival,
3066         compute_conservative_reg_partition,
3067         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
3068         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
3069         Modified.
3070
3071 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
3072
3073         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
3074
3075 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
3076
3077         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
3078         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3079         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
3080         calling CONSTANT_POOL_ADDRESS_P.
3081         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
3082         to decide whether to define __arm__ or __thumb.
3083         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
3084         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
3085
3086 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3087
3088         * config/arc/arc.h (CPP_PREDEFINES): Remove.
3089         (CPP_SPEC): Update.
3090         (TARGET_CPU_CPP_BUILTINS): New.
3091
3092 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
3093
3094         * cpphash.h (cpp_macro): Move here, and make expansion a union.
3095         * cppmacro.c (cpp_macro): Remove.
3096         (enter_macro_context, replace_args, warn_of_redefinition,
3097         _cpp_create_definition, cpp_macro_definition): Update.
3098
3099 2002-05-16  Jason Merrill  <jason@redhat.com>
3100
3101         * config/mips/mips.c (mips_output_external): Don't do sdata
3102         optimization for a variable with DECL_COMDAT set.
3103
3104 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3105
3106         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
3107         Cleanups for accepting modifiers on pointers.
3108         Fix predicate typos.
3109         Allow long pointers as well as int pointers.
3110
3111 2002-05-15  Richard Henderson  <rth@redhat.com>
3112
3113         * varasm.c (merge_weak): Remove special case for extern and common.
3114
3115 2002-05-15  Matt Hiller  <hiller@redhat.com>
3116
3117         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
3118         XFAILing.
3119         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
3120         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
3121         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
3122         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
3123         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
3124         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
3125
3126 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3127
3128         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
3129
3130 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
3131
3132         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
3133         ("altivec_mfvscr"): Read from VSCR.
3134
3135         Add vscr sets for the following insns: altivec_vctuxs,
3136         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
3137         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
3138         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
3139         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
3140         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
3141         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
3142         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
3143         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
3144         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
3145         altivec_vsum2sws, altivec_vsumsws.
3146
3147         * config/rs6000/rs6000.h: Add VSCR fixed register.
3148         (CALL_REALLY_USED_REGISTERS): Add vscr.
3149         (CALL_USED_REGISTERS): Same.
3150         (FIXED_REGISTERS): Same.
3151         (REG_ALLOC_ORDER): Same.
3152         (reg_class): Add VSCR_REGS.
3153         (REG_CLASS_NAMES): Same.
3154         (REG_CLASS_CONTENTS): Same.
3155         (VSCR_REGNO): New.
3156         (REGISTER_NAMES): Add vscr.
3157         (DEBUG_REGISTER_NAMES): Same.
3158         (ADDITIONAL_REGISTER_NAMES): Same.
3159         (FIRST_PSEUDO_REGISTER): Increment.
3160         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
3161
3162 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
3163
3164         * fold-const.c (fold): Fix a typo.
3165
3166 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
3167
3168         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
3169         comparison against the highest or lowest integer value before
3170         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
3171         transformation and that of an unsigned comparison against 0
3172         right after.
3173
3174 2002-05-15  Richard Henderson  <rth@redhat.com>
3175
3176         * varasm.c (merge_weak): Error for any weakening after definition.
3177         Adjust weakening after use warning to catch more cases.
3178         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
3179         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
3180
3181 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
3182
3183         * invoke.texi (-malign-double): Re-add lost warning.
3184
3185         * i386-protos.h (x86_output_mi_thunk): Declare.
3186         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
3187         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
3188
3189         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
3190         when flag_asynchronous_unwind_tables is set.
3191
3192         * flags.h (flag_reorder_functions): Declare.
3193         * function.c (prepare_function_start): Initialize frequnecy.
3194         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
3195         * Makefile.in (predict.o): Add dependency on target.h and params.h
3196         * defaults.h (HOT_TEXT_SECTION_NAME,
3197         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
3198         * predict.c (choose_function_section): New function.
3199         (estimate_bb_frequencies): Use it.
3200         * toplev.c (flag_reorder_functions): New global variable.
3201         (lang_independent_options): New.
3202         (parse_options_and_default_flags): Set.
3203         * varasm.c (assemble_start_function): Bypass functdion alignment
3204         for never executed functions.
3205         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
3206         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
3207         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
3208         Document.
3209
3210         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
3211
3212         * predict.c: Inlude profile.h
3213         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
3214         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
3215         Use the information about maximal counter in the program.
3216
3217         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
3218
3219         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
3220         probably_never_executed_bb_p): New functions.
3221         * cfgcleanup.c (outgoing_edges_match): Use them.
3222         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
3223         (maybe_hot_bb_p, probably_cold_bb_p,
3224         probably_never_executed_bb_p): New functions.
3225
3226         * function.h (function): Add new field function_frequency.
3227         * predict.c (compute_function_frequency): New function.
3228         (estimate_probability): Call it.
3229
3230 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
3231
3232         PR optimization/5172, optimization/5200
3233         * gcse.c (gcse_main): Disable store_motion.
3234
3235 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
3236
3237         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
3238         (c_common_nodes_and_builtins): Use it.
3239         (builtin_define_with_value): New function.
3240         (cb_register_builtins): Define __SIZE_TYPE__,
3241         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
3242         using builtin_define_with_value.  Use consistent notation when
3243         defining __GXX_WEAK__.
3244         (WCHAR_TYPE_SIZE): Don't redefine.
3245         (combine_strings): Don't use WCHAR_TYPE_SIZE.
3246
3247         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
3248         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
3249         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
3250         * tradcpp.c (initialize_builtins): Likewise.
3251         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
3252
3253         * c-lex.h (builtin_define_with_value): Prototype.
3254         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
3255         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
3256         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
3257
3258         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
3259         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
3260         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
3261         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
3262         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
3263         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
3264         config/sparc/sol2-bi.h, config/sparc/sparc.h:
3265         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
3266         to __SIZE_TYPE__ etc from all spec strings. When this makes
3267         extra specs empty, delete them.
3268
3269 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3270
3271         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
3272         for PA8000 or generating dwarf2 call frame information.
3273         (output_call): Remove DO_FRAME_NOTES check from return pointer
3274         optimization.
3275         (following_call): Return 0 when scheduling for PA8000 or generating
3276         dwarf2 call frame information.  Revise comment.
3277
3278 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3279
3280 config/alpha:
3281         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
3282         and __IEEE_FP_INEXACT as appropriate.
3283         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
3284         (CPP_SPEC): Remove ieee defines.
3285         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
3286
3287 >>>>>>> 1.14095
3288 2002-05-14  Richard Henderson  <rth@redhat.com>
3289
3290         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
3291         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
3292
3293 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3294
3295         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
3296         (CPP_SPEC): Update.
3297         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
3298         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
3299         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
3300         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
3301         (EXTRA_SPECS): Update.
3302         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
3303         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
3304         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
3305         define TARGET_OS_CPP_BUILTINS if necessary.
3306
3307 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
3308
3309         * gcc.c (cpp_options): Must pass -m* and -f* options
3310         to the front end even when only preprocessing.
3311         (cc1_options): Remove redundant -lang-c.
3312         * tradcpp.c (main): Ignore -m options.
3313 objc:
3314         * lang-specs.h: Similarly.
3315
3316 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
3317
3318         * genautomata.c (transform_3): Add code for transformation
3319         `(A,B,...)+C -> A+C,B,...'.
3320
3321 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
3322
3323         * final.c (end_final): Do not output profile_arcs constructor, when
3324         no functions are instrumented.
3325
3326 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
3327
3328         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
3329
3330 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3331
3332         * doc/install.texi: Remove special markup originally required for
3333         HTML generation with texi2html.
3334
3335 2002-05-14  Andreas Schwab  <schwab@suse.de>
3336
3337         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
3338         SELECT_SECTION.
3339         (UNIQUE_SECTION): Define to get small data correctly.
3340
3341         * varasm.c (resolve_unique_section): Add third parameter
3342         flag_function_or_data_sections and use it instead of
3343         flag_function_sections.
3344         (assemble_start_function): Pass flag_function_sections.
3345         (asm_emit_uninitialised): Pass flag_data_sections.
3346         (assemble_variable): Likewise.
3347
3348 2002-05-14  Richard Henderson  <rth@redhat.com>
3349
3350         * config/i386/i386.md: Use define_constants for unspec numbers.
3351         * config/i386/i386.c: Likewise.
3352
3353 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3354
3355         * doc/contrib.texi: Update my entry.
3356
3357 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
3358
3359         * fixinc/inclhack.def (winidss_valist): Limit applicability.
3360         * fixinc/fixincl.x: Regenerated.
3361         * fixinc/tests/base/math.h: Update.
3362         * fixinc/tests/base/testing.h: Likewise.
3363
3364 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
3365
3366         * genattr.c (gen_attr): Don't emit a comma after the last
3367         enumerator.
3368
3369 2002-05-13  Richard Henderson  <rth@redhat.com>
3370
3371         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
3372         by non-local gotos.
3373         * recog.c (peephole2_optimize): Likewise.
3374
3375 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
3376
3377         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
3378         input to O_BINARY.
3379
3380 2002-05-13  Jeffrey A Law  (law@redhat.com)
3381
3382         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
3383         Update prototype and callers.
3384         (propagate_one_insn): Stack pointer adjustments kill MEMs on
3385         the mem_set_list which reference the stack pointer, as do
3386         calls to constant functions as they may clobber outgoing
3387         argument space.
3388
3389         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
3390
3391         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
3392         (ia32_multipass_dfa_lookahead): New function.
3393
3394 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3395
3396         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
3397         (translate_options): Remove 'V'.
3398         (process_command): Similarly.
3399 doc:
3400         * invoke.texi: Remove documentation of 'V'.
3401
3402 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
3403
3404         * config/s390/linux.h: Revert 2002-04-22 changes.
3405
3406 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
3407
3408         * config/fr30/fr30.md: Only allow splits of immediate loads
3409         if the destination is a register.
3410
3411 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
3412
3413         * Makefile.in (c-common.o, cppinit.o): Update.
3414         * c-common.c: Include except.h.
3415         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
3416         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
3417         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
3418         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
3419         CPP_PREDEFINES): Handle here.
3420 config:
3421         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
3422         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
3423         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
3424         TARGET_OS_CPP_BUILTINS.
3425         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
3426         (CPP_SPEC, EXTRA_SPECS): Update.
3427         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
3428         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
3429         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
3430         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
3431         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
3432 doc:
3433         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
3434         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
3435
3436 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3437
3438         * emit-rtl.c (global_rtl): Update comment.
3439         (const_double_htab, const_double_htab_hash,
3440         const_double_htab_hash, lookup_const_double): New.
3441         (const_int_htab_hash, const_int_htab_eq): Remove const
3442         qualifiers, which cause tons of warnings with RTL checking on.
3443         (gen_rtx_CONST_DOUBLE): Deleted.
3444         (const_double_from_real_value): New function - bears some
3445         resemblance to the former immed_real_const_1.
3446         (immed_double_const): Moved here from varasm.c and
3447         simplified.
3448         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
3449         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
3450         (gen_rtx): Use immed_double_const.
3451         (init_emit_once): Initialize the const_double_htab.  Use
3452         REAL_VALUE_FROM_INT where possible.  Can now use
3453         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
3454         * varasm.c (struct varasm_status): Remove x_const_double_chain.
3455         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
3456         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
3457         (init_varasm_status, mark_varasm_status): Don't touch
3458         x_const_double_chain.
3459
3460         * output.h: Delete prototype for clear_const_double_mem.
3461         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
3462         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
3463         const_double_from_real_value, not immed_real_const_1, and use
3464         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
3465         CONST_DOUBLE_ATOF.
3466         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
3467         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
3468         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
3469         (gen_rtx_REG): Second arg is unsigned.
3470
3471         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
3472         (excluded_rtx): New, return true for CONST_DOUBLE.
3473         (genmacro): Write nothing for excluded codes.
3474         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
3475         * expr.c (expand_expr): Likewise.
3476         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
3477         CONST_DOUBLE_CHAIN.
3478         * toplev.c (rest_of_compilation): Don't call
3479         clear_const_double_mem.
3480
3481         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
3482         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
3483         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
3484         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
3485         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
3486         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
3487         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
3488         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
3489
3490 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3491
3492         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
3493
3494 2002-05-12  Tom Tromey  <tromey@redhat.com>
3495
3496         * tree.h (copy_node): Don't mention TREE_PERMANENT.
3497
3498 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
3499
3500         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
3501         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
3502         * gensupport.h: Prototype new routines.
3503         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
3504         use of printf.
3505         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
3506         (next_comma_elt): Use scan_comma_elt.
3507
3508         * config/i386/i386.md: Use new attribute notation to break up
3509         long lines in define_attr forms.
3510
3511 2002-05-12  Richard Henderson  <rth@redhat.com>
3512
3513         * expr.c (compress_float_constant): New.
3514         (emit_move_insn): Use it.
3515         (float_extend_from_mem): New.
3516         (init_expr_once): Initialize it.
3517         * real.c (exact_real_truncate): New.
3518
3519         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
3520         dropped into memory; penalize for size.
3521         (RTX_COSTS): FLOAT_EXTEND is free.
3522         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
3523         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
3524
3525 2002-05-12  Richard Henderson  <rth@redhat.com>
3526
3527         * profile.h (profile_info): Add missing extern to declaration.
3528         * profile.c (profile_info): Define it.
3529
3530 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3531
3532         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
3533         used for DImode and TImode.
3534
3535 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
3536
3537         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
3538         fake a newline.
3539
3540 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
3541
3542         * config/rs6000/rs6000.c (rs6000_default_long_calls,
3543         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
3544         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
3545         (rs6000_override_options): Handle -m(no-)longcall.
3546         (init_cumulative_args, output_mi_thunk): Check for both
3547         longcall and shortcall attributes on the function.
3548         (rs6000_attribute_table): Add "shortcall".
3549         (rs6000_handle_longcall_attribute): Update comment.
3550         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
3551         altivec_expand_ternop_builtin): Add default clauses to switches
3552         to silence warnings.
3553
3554         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
3555         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
3556         (TARGET_OPTIONS): Add longcall and no-longcall.
3557
3558         * config/rs6000/rs6000.md (call_nonlocal_sysv,
3559         call_value_nonlocal_sysv): Split by alternatives.  One pair
3560         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
3561         the call cookie.  The other pair accepts only LR/CTR and has
3562         no restriction.
3563
3564         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
3565         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
3566         tmake_file.
3567         * config/rs6000/rs6000-c.c: New file.
3568         * config/rs6000/t-rs6000-c-rule: New file.
3569         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
3570         Prototype rs6000_pragma_longcall.
3571
3572         * doc/extend.texi: Document shortcall attribute.
3573         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
3574
3575 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3576
3577         * reorg.c (dbr_schedule): Remove unnecessary test.
3578
3579 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3580
3581         * i386.md (testsi to testqi spliters): New.
3582
3583         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3584
3585         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3586
3587         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3588
3589         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3590         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3591         that can be made fallthru.
3592
3593         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3594
3595         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3596         (cfg_layout_initialize): Use it.
3597
3598 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3599
3600         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3601         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3602         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3603
3604 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3605
3606         * dbxout.c: Fix formatting.
3607         * dependence.c: Likewise.
3608         * df.c: Likewise.
3609         * diagnostic.c: Likewise.
3610         * doloop.c: Likewise.
3611         * dominance.c: Likewise.
3612         * doschk.c: Likewise.
3613         * dwarf2asm.c: Likewise.
3614         * dwarf2out.c: Likewise.
3615         * dwarfout.c: Likewise.
3616
3617 2002-05-10  Richard Henderson  <rth@redhat.com>
3618
3619         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3620         Convert integers constants as needed.  Replace "nwords" field with
3621         "sizeof_bb".
3622         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3623         * function.h: Fix typo in comment.
3624         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3625
3626 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3627
3628         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3629         into the equivalent (signed char)c > 0.
3630
3631 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3632
3633         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3634         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3635         (struct prefetch_info): Fix spelling of member bytes_accessed.
3636         (emit_prefetch_instructions): Make dump messages more regular;
3637         restructure code to add more dump messages; use new macros for
3638         heuristics. (There are no code generation changes in any of this).
3639
3640 2002-05-10  David S. Miller  <davem@redhat.com>
3641
3642         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3643         (struct rtx_def): Update unchanging flag comment.
3644         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3645         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3646         to be handled to INSN too.
3647         (dbr_schedule): Likewise.
3648         * resource.c (next_insn_no_annul): Likewise.
3649
3650         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3651         casing.
3652
3653 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3654
3655         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3656         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3657         (possibly) work around broken /bin/sh.
3658
3659 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3660
3661         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3662         . as N64/N32 libgcc_s.so subdirs.
3663
3664 2002-05-10  David S. Miller  <davem@redhat.com>
3665
3666         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3667
3668         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3669         more accurately.
3670         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3671         comment.
3672         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3673         * doc/rtl.texi: Document these macros more accurately.
3674         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3675         JUMP_INSNs and CALL_INSNs.
3676         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3677         or INSN_FROM_TARGET_P if the code is appropriate.
3678
3679 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3680
3681         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3682         before using SYMBOL_REF_FLAG (addr).
3683
3684         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3685         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3686         Make non-static.  Update all callers.
3687         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3688         New insns to clear/set/test a single bit in I/O address space.
3689
3690 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3691
3692         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3693
3694 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3695
3696         * Makefile.in: Update.
3697         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3698         builtin_define_std): New.
3699         (c_common_init): Register CPP builtins callback.
3700         * c-common.h (flag_iso, flag_undef): New.
3701         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3702         * c-lex.c: Don't include target.h.
3703         (cb_register_builtins): Move to c-common.c.
3704         (init_c_lex): Don't register hook here.
3705         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3706         (cpp_define, cpp_assert): Remove.
3707         * gcc.c (cc1_options): Pass -undef to front end.
3708         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3709         (TARGET_INITIALIZER): Update.
3710         * target.h (struct cpp_reader): Don't predeclare.
3711         (struct gcc_target): Remove cpp builtin hook.
3712         * tree.c (default_register_cpp_builtins): Remove.
3713 doc:
3714         * tm.texi: Update.
3715
3716 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3717
3718         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3719
3720 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3721
3722         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3723         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3724
3725 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3726
3727         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3728         * config/sparc/libgcc-sparc-glibc.ver: New file.
3729         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3730         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3731
3732 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3733
3734         PR target/6429
3735         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3736         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3737         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3738         base multilibs.
3739         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3740         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3741         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3742         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3743
3744 2002-05-09  Richard Henderson  <rth@redhat.com>
3745
3746         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3747         * config/ia64/ia64.c: Likewise.
3748
3749 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3750
3751         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3752         (save_restore_insns): Likewise.
3753         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3754         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3755
3756 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3757
3758         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3759         * i386.md: Move scheduling information into new files.
3760
3761         * i386.md (type attribute): Add "rotate" for rotate insns.
3762         (rotate insns): Set type to "rotate".
3763         (various attributes and function units): Treat rotate like shift.
3764         (pent_pair attribute): Only rotates by one bit position are
3765         pairable.
3766         (sbb insns): Explicitly set pent_pair attribute on a couple
3767         that were missing it.
3768
3769 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3770
3771         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3772         make sure that buffer starts on odd word address.
3773         (sh_va_arg): Skip odd fp registers when reading a double precision
3774         value.
3775
3776 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3777
3778         * tree.h (preserve_data, object_permanent_p, type_precision):
3779         Remove.
3780
3781 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3782
3783         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3784         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3785 doc:
3786         * cpp.texi: Update for removal of obsolete features.
3787
3788 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3789                           Jeffrey A Law  (law@redhat.com)
3790
3791         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3792         the DFA interface for Pentium processors.
3793         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3794         (attr_pent_pair, ix86_pent_find_pair): Remove.
3795         (ix86_sched_reorder_pentium): Remove.
3796         (ix86_sched_reorder): Remove reordering for Pentium.
3797         * i386.md (Pentium scheduling): Rewrite using DFA description.
3798
3799 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3800
3801         * cfganal.c (can_fallthru): Fix fast path.
3802         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3803         with edges to the next block.
3804
3805 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3806                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3807
3808         * final.c (end_final): Use C trees to output data structures for profiling.
3809
3810         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3811         (profile.o): New dependency profile.h
3812         (final.o): New dependency profile.h
3813         * profile.h: New file. New global structure profile_info.
3814         * final.h (count_edges_instrumented_now): Declare.
3815         (current_function_cfg_checksum): Declare.
3816         (function_list): New structure.
3817         (functions_head, functions_tail): New static variables.
3818         (end_final): Emits more data, removed some -ax stuff.
3819         (final): Stores function names and chcksums.
3820         * gcov-io.h (__write_gcov_string): New function.
3821         (__read_gcov_string): New function.
3822         * gcov.c (read_profile): New function.
3823         (create_program_flow_graph): Uses read_profile instead of reading
3824         da_file.
3825         (read_files): Removed da_file checking, it's done by read_profile now.
3826         * libgcc2.c (bb_function_info): New structure.
3827         (bb): New field in structure, removed some -ax stuff.
3828         (__bb_exit_func): Changed structure of da_file.
3829         * profile.c (count_edges_instrumented_now): New global variable.
3830         (current_function_cfg_checksum): New global variable.
3831         (max_counter_in_program): New global variable.
3832         (get_exec_counts): New function.
3833         (compute_checksum): New function.
3834         (instrument_edges): Sets count_edges_instrumented_now.
3835         (compute_branch_probabilities): Uses get_exec_counts instead of
3836         reading da_file.
3837         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3838         (init_branch_prob): Removed da_file checking, done in get_exec_counts
3839         now.
3840         (end_branch_prob): Removed da_file checking, done in get_exec_counts
3841         now.
3842         * gcov.texi: Updated information about gcov file format.
3843
3844 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3845
3846         * sbitmap.c: Fix formatting.
3847         * scan.c: Likewise.
3848         * scan-decls.c: Likewise.
3849         * sched-deps.c: Likewise.
3850         * sched-ebb.c: Likewise.
3851         * sched-rgn.c: Likewise.
3852         * sched-vis.c: Likewise.
3853         * sdbout.c: Likewise.
3854         * sibcall.c: Likewise.
3855         * simplify-rtx.c: Likewise.
3856         * ssa.c: Likewise.
3857         * ssa-ccp.c: Likewise.
3858         * ssa-dce.c: Likewise.
3859         * stmt.c: Likewise.
3860         * stor-layout.c: Likewise.
3861         * stringpool.c: Likewise.
3862
3863 2002-05-09  David S. Miller  <davem@redhat.com>
3864
3865         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3866
3867 2002-05-07  David S. Miller  <davem@redhat.com>
3868
3869         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3870         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3871         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3872         library implementation clobbers the output before the inputs
3873         are fully consumed, use stack temporary for the output.
3874
3875 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
3876
3877         * config/netbsd.h (CPP_SPEC): Remove.
3878         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3879         * config/i386/netbsd.h (CPP_SPEC): Define.
3880         * config/ns32k/netbsd.h (CPP_SPEC): Define.
3881         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3882         * config/sparc/netbsd.h (CPP_SPEC): Define.
3883         * config/vax/netbsd.h (CPP_SPEC): Define.
3884
3885 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3886
3887         * read-rtl.c: Fix formatting.
3888         * real.c: Likewise.
3889         * recog.c: Likewise.
3890         * regclass.c: Likewise.
3891         * regmove.c: Likewise.
3892         * reg-stack.c: Likewise.
3893         * reload1.c: Likewise.
3894         * reload.c: Likewise.
3895         * resource.c: Likewise.
3896         * rtlanal.c: Likewise.
3897         * rtl.c: Likewise.
3898         * rtl-error.c: Likewise.
3899
3900 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3901
3902         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3903         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3904
3905 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
3906
3907         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3908         use __SSE2__ macro instead.
3909         * config/i386/xmmintrin.h: Likewise.
3910
3911 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
3912
3913         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3914         and use it in all invocations of these macros.  Clean up comments.
3915         * rtl.c (rtl_check_failed_flag): Add an argument for the name
3916         of the flag access macro whose check failed.
3917         * doc/rtl.texi (Flags): Document additional flag uses.
3918
3919 2002-05-08  Robert Spier <rspier@pobox.com>
3920             Neil Booth  <neil@daikokuya.demon.co.uk>
3921
3922         PR preprocessor/6521
3923         * cppfiles.c (handle_missing_header): Don't do anything
3924         different for <> includes.
3925 doc:
3926         * cppopts.texi: Update documentation for -MG.
3927
3928 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3929
3930         * cpplex.c (cpp_interpret_charconst): Truncate as well as
3931         sign-extend.
3932 doc:
3933         * cpp.texi: Clarify multichar charconst valuation.
3934
3935 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3936
3937         * doc/invoke.texi: Document -mwindiss option.
3938
3939 2002-05-08  Jason Merrill  <jason@redhat.com>
3940
3941         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3942
3943         * dwarf2out.c (gen_type_die): Abort on broken recursion.
3944
3945         PR c++/6381
3946         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3947         REAL_CST.
3948
3949 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
3950
3951         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3952         little-endian multilibs to override arm/thumb multilibs.
3953         Do not build hardware floating point multilibs, nor apcs-26
3954         multilibs for the Thumb.
3955
3956 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3957
3958         PR c/6569.
3959         * varasm.c (mark_weak): New function.
3960         (merge_weak): Use it.  Do not call declare_weak.
3961         (declare_weak): Use merge_weak.
3962
3963 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3964
3965         * cse.c (dead_libcall_p): Update counts.
3966         (delete_trivially_dead_insns): Update call of dead_libcall_p.
3967
3968 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3969
3970         * cfglayout.c (function_tail_eff_head): Rename to ...
3971         (function_footer): ... this one.
3972         (unlink_insn_chain): New functions.
3973         (label_for_bb): Only call block_label and emit debug message.
3974         (record_effective_endpoints): Actually unlink the headers and footers.
3975         (fixup_reorder_cahin): Re-insert the unlinked sequences.
3976         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3977         * cfglayout.h (struct reorder_block_def): New fields footer/header;
3978         remove eff_head/eff_end.
3979         * rtl.h (set_first_insn): Declare.
3980         * emit-rtl.c (set_first_insn): New function.
3981
3982         * cfglayout.c (fixup_reorder_chain): Dump duplicated
3983         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3984         cfg_layout_duplicate_bb): New global function.
3985         (duplicate_insn_chain): New static function.
3986         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3987         cfg_layout_duplicate_bb): Declare.
3988         (struct reorder_block_def): Add "original" field.
3989         * emit-rtl.c (emit_copy_of_insn_after): New function.
3990         * rtl.h (emit_copy_of_insn_after): Declare.
3991
3992         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3993         (fixup_reorder_chain): properly handle edges to exit block.
3994
3995 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3996                                Jan Hubicka  <jh@suse.cz>
3997
3998         * basic-block.h (note_prediction_to_br_prob): declare.
3999         * c-semantics.c: Inlucde predit.h
4000         (expand_stmt): predict GOTO_STMT as not taken.
4001         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
4002         (cleanup_cfg): Do not free tail_recursion_list.
4003         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
4004         (flow_delete_block): Kill predictions past end of basic block.
4005         * output.h (delete_unreachable_blocks): Declare.
4006         * predict.c (predicted_by_p, process_note_predictions,
4007         process_note_prediction, last_block_p): New function.
4008         (estimate_probability): Bypass loop on PRED_CONTINUE;
4009         do not handle noreturn heuristics; kill PRED_RETURN; add
4010         PRED_EARLY_RETURN.
4011         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
4012         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
4013         * predict.h (IS_TAKEN): New constant.
4014         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
4015         * rtl.c (NOTE_INSN_PREDICTION): New.
4016         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
4017         New macro.
4018         (insn_note): add NOTE_INSN_PREDICTION.
4019         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
4020         CFG; free tail_recursion_label_list.
4021         * stmt.c: Include predict.h;
4022         (return_prediction): New.
4023         (expand_value_return): Use it.
4024         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
4025
4026 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
4027
4028         * config/mips/mips.md: Name the unspecs with define_constant.
4029         (*HILO_delay): Rename to 'hilo_delay' (no star).
4030         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
4031         (reload_outdi, reload_outsi): Likewise.
4032
4033 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
4034
4035         * toplev.c: Fix formatting.
4036
4037 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
4038
4039         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
4040         * configure.in (ac_rtlflag_checking): New.
4041         * doc/install.texi (--enable-checking): Document RTL flag checking.
4042
4043 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4044
4045         * c-common.c (c_common_init): Set options->unsigned_wchar.
4046         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
4047         group target dependencies.
4048         (init_builtins, cpp_handle_option): Update.
4049         * cpplex.c (cpp_interpret_charconst): Update.
4050         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
4051         signed_char to unsigned_char, group target dependencies.
4052         * defaults.h (WCHAR_UNSIGNED): Remove.
4053         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
4054 config:
4055         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
4056         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
4057         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
4058         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
4059         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
4060 doc:
4061         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
4062
4063 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4064
4065         * fixinc/inclhack.def (windiss_math1): New fix.
4066         (windiss_math2): Likewise.
4067         (windiss_valist): Likewise.
4068         * fixinc/fixincl.x: Regenerated.
4069
4070 2002-05-07  Andreas Jaeger  <aj@suse.de>
4071
4072         * genautomata.c (output_internal_min_issue_delay_func): Add
4073         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
4074         (output_internal_trans_func): Likewise.
4075
4076 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
4077
4078         * pa.c (hppa_profile_hook): Use force_reg to get the address
4079         of the profile hook into an appropriate pseudo register.
4080
4081 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
4082
4083         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
4084         (LINK_START_SPEC): Handle it.
4085         (LINK_OS_SPEC): Likewise.
4086         (CPP_SPEC): Likewise.
4087         (STARTFILE_SPEC): Likewise.
4088         (LIB_SPEC): Likewise.
4089         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
4090         all platforms.
4091         (CRTSAVRES_DEFAULT_SPEC): New macro.
4092         (LIB_WINDISS_SPEC): New macro.
4093         (CPP_OS_WINDISS_SPEC): Likewise.
4094         (STARTFILE_WINDISS_SPEC): Likewise.
4095         (ENDFILE_WINDISS_SPEC): Likewise.
4096         (LINK_START_WINDISS_SPEC): Likewise.
4097         (LINK_OS_WINDISS_SPEC): Likewise.
4098         * config/rs6000/windiss.h: New file.
4099
4100 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
4101
4102         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
4103
4104 2002-05-06  David S. Miller  <davem@redhat.com>
4105
4106         * config/sparc/sparc.md (shift insns): Do not mask off
4107         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
4108         take care of it.
4109
4110 2002-05-06  Richard Henderson  <rth@redhat.com>
4111
4112         PR c++/6212
4113         * expr.c (highest_pow2_factor_for_type): New.
4114         (expand_assignment): Use it.
4115
4116 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
4117
4118         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
4119         unspec_volatile.
4120         ("altivec_mfvscr"): Same.
4121
4122 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4123
4124         * rtl.h (struct rtx_def): Update comments.
4125         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
4126         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
4127         RTL_FLAG_CHECK macros with list of expected RTL codes.
4128         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
4129         (rtl_check_failed_flag): New.
4130         * reload1.c (reload): Use REG macro before changing rtx to MEM.
4131         (reload_cse_noop_set_p): Check rtx code before using access macro.
4132         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
4133         before using access macro.
4134
4135 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
4136
4137         * doc/rtl.texi (Flags): Update to reflect current usage.
4138
4139 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4140
4141         PR opt/3995
4142         * fold-const.c (sign_bit_p): New function.
4143         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
4144         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
4145         Reapply fold when converting (A & C) == C into (A & C) != 0.
4146         (fold_binary_op_with_conditional_arg): Fix typo in comment.
4147
4148 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
4149
4150         * c-common.c (warn_multichar): New.
4151         (c_common_init): Set CPP's warn_multichar.
4152         * c-common.h (warn_multichar): New.
4153         * c-decl.c (warn_multichar): Remove.
4154         * c-lex.c (lex_charconst): Update.
4155         * c-tree.h (warn_multichar): Remove.
4156         * cppexp.c (eval_token): Sign-extend charconst value.
4157         * cppinit.c (cpp_create_reader): Set warn_multichar.
4158         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
4159         each character.  Update prototype.  Sign-extend the result.
4160         * cpplib.h: Fix conditions.
4161         (struct cpp_options): Add new warning flag.
4162         (cpp_interpret_charconst): Update prototype.
4163 doc:
4164         * cpp.texi: Update documentation.
4165
4166 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
4167
4168         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
4169         Fix typo in usage of allof instead of unit.
4170
4171 2002-05-06  Richard Henderson  <rth@redhat.com>
4172
4173         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
4174         and any jump or call for IN.
4175
4176 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
4177
4178         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
4179         -msse2.
4180         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
4181
4182 2002-05-06  Roger Sayle  <roger@eyesopen.com>
4183
4184         * fold-const.c (lshift-double): Cast the high word to an unsigned
4185         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
4186         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
4187         avoid compiler warning.  (fold): Remove redundant code from
4188         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
4189
4190 2002-05-06  Jeff Law  <law@redhat.com>
4191
4192         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
4193         * pa.c (pa_adjust_cost): Remove all true dependency cost
4194         adjustments.  Also remove support for non-DFA scheduling.
4195         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
4196         to adjust true dependency costs.  Update various comments.
4197         (7100lc, 7200, 7300 scheduling): Simplify by combining the
4198         FP ALU & MPY units into a single unit.
4199
4200 2002-05-06  Catherine Moore  <clm@redhat.com>
4201
4202         * config/v850/v850.c (compute_register_save_size): Make sure
4203         to count all of the registers that will be saved.
4204
4205 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
4206
4207         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
4208
4209 2002-05-06  David S. Miller  <davem@redhat.com>
4210
4211         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
4212         allow result to overlap input operands in memory.
4213
4214 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4215
4216 doc:
4217         * cpp.texi: Update multichar charconst docs.
4218
4219 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
4220
4221         * cpplex.c (cpp_interpret_charconst): Sign-extend each
4222         character.  Don't ignore excess characters.  Treat
4223         multicharacter character constants as signed.
4224         (cpp_parse_escape): Clarify diagnostic.
4225
4226 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4227
4228         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
4229         use add instead of shift.
4230         (ashldi3_sp64): Likewise.
4231         (ashlsi3_const1, ashldi3_const1): Remove.
4232         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
4233         * config/sparc/sparc.c (const1_operand): New.
4234
4235 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
4236
4237         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
4238
4239 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
4240
4241         PR target/6561
4242         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
4243
4244 2002-05-05  Richard Henderson  <rth@redhat.com>
4245
4246         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
4247         memory latency adjustments.
4248         (alpha_variable_issue): Remove.
4249         (alpha_use_dfa_pipeline_interface): New.
4250         (alpha_multipass_dfa_lookahead): New.
4251         * config/alpha/alpha.md: Remove define_function_unit scheduling;
4252         include new dfa scheduling.
4253         (attr type): Add none.
4254         (blockage): Use it.
4255         * config/alpha/ev4.md: New.
4256         * config/alpha/ev5.md: New.
4257         * config/alpha/ev6.md: New.
4258
4259 2002-05-05  David S. Miller  <davem@redhat.com>
4260
4261         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
4262
4263 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
4264
4265         * cse.c: Fix formatting.
4266         * emit-rtl.c: Likewise.
4267
4268 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4269
4270         * genautomata.c (initiate_states): Add additional guard to
4271         initialize `units_array'.
4272
4273 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
4274
4275         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
4276         process_unit_to_form_the_same_automaton_unit_lists,
4277         form_the_same_automaton_unit_lists
4278         check_unit_distributions_to_automata): New prototypes and
4279         functions.
4280         (check_automata): Rename it into `check_automata_insn_issues'.
4281         (unit_decl): New fields `the_same_automaton_unit' and
4282         `the_same_automaton_message_reported_p'.
4283         (unit_decl_t): New typedef.
4284         (the_same_automaton_lists): New gloval variable.
4285         (unit_regexp, unit_set_el, units_array, units_cmp,
4286         output_get_cpu_unit_code_func): Use the typedef.
4287         (evaluate_max_reserv_cycles): Increment
4288         `description->max_insn_reserv_cycles'.
4289         (initiate_states): Don't increment `max_cycles_num'.
4290         (transform_insn_regexps): Move code around transformation of
4291         regexps from `generate'.
4292         (generate): Remove call of `transform_insn_regexps'.
4293         (expand_automata): Call `transform_insn_regexps' and
4294         `check_unit_distributions_to_automata'.  Check errors before
4295         `generate'.
4296
4297         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
4298         automaton `ultrasparc3_1'.
4299
4300 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
4301
4302         * c-common.c (c_common_init): Set up CPP arithmetic.
4303         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
4304         something reasonable for the host.
4305         (sanity_checks): Add checks.
4306         (cpp_read_main_file): Call sanity_checks() from here...
4307         (cpp_post_options): ... not here.
4308         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
4309         * cpplib.h (struct cpp_options): New member int_precision.
4310
4311 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4312
4313         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
4314
4315 2002-05-04  David S. Miller  <davem@redhat.com>
4316
4317         * config/sparc/linux.h, config/sparc/linux64.h
4318         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
4319
4320         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
4321         more RTX codes.
4322         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
4323
4324         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
4325         of SETs.
4326
4327 2002-05-05  Tim Josling  <tej@melbpc.org.au>
4328
4329         * treelang; New directory for new sample language treelang.
4330
4331 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4332
4333         * Makefile.in (c-lex.o): Update.
4334         * c-lex.c: Include target.h.
4335         (cb_register_builtins): New.
4336         (init_c_lex): Set builtins callback.
4337         * c-lex.h (cpp_define, cpp_assert): New prototypes.
4338         * cppinit.c (init_builtins): Use callback, including for
4339         GXX_WEAK.
4340         * cpplib.h (struct cpp_callbacks): New member.
4341         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
4342         (TARGET_INITIALIZER): Update.
4343         * target.h (struct gcc_target): New hook.
4344         * tree.c (default_register_cpp_builtins): New.
4345         * tree.h (default_register_cpp_builtins): New.
4346 doc:
4347         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
4348
4349 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4350
4351         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
4352         (cpp_post_options): Move sanity checks to...
4353         (sanity_checks): New.
4354         * cpplex.c (maybe_read_ucs): Fix prototype.
4355         (parse_string, cpp_parse_escape): Cast for %c format specifier.
4356         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
4357         if necessary.
4358
4359 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
4360
4361         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
4362         builtins.  Use V2DI patterns instead of TI for logical operations.
4363         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
4364         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
4365         (ix86_expand_builtins): Change the pattern used for movntdq.
4366         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
4367         sse2_nandv2di3): New patterns.
4368         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
4369         on operands.
4370         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
4371         (cvtdq2pd): Correct mode on operand 1.
4372         (sse2_umulsidi3): Describe without unspec.
4373         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
4374         machine modes.
4375         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
4376         (ashlv2di3): Likewise, from sse2_ashlv2di3.
4377         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
4378         ashlv4si3, ashlv2di3): Use SImode for shift count.
4379         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
4380         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
4381         New patterns.
4382         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
4383         New typedefs.
4384         (__m128i, __m128d): New macros.
4385         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
4386         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
4387         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
4388         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
4389         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
4390         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
4391         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
4392         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
4393         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
4394         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
4395         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
4396         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
4397         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
4398         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
4399         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
4400         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
4401         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
4402         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
4403         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
4404         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
4405         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
4406         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
4407         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
4408         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
4409         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
4410         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
4411         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
4412         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
4413         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
4414         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
4415         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
4416         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
4417         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
4418         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
4419         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
4420         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
4421         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
4422         functions.
4423         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
4424         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
4425
4426 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
4427
4428         * dwarf2out.c: Fix formatting.
4429         * varasm.c: Likewise.
4430
4431 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
4432
4433         PR c/6543
4434         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
4435         clobber and use result as temporary value.
4436
4437 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
4438
4439         * expr.c (force_operand): Use expand_simple_* to handle more
4440         cases.
4441
4442 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4443
4444         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
4445         and sign-extension.
4446         (lex_charconst): Update for change in prototype of
4447         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
4448         appropriately.
4449         * cpphash.h (BITS_PER_CPPCHAR_T): New.
4450         * cppinit.c (cpp_create_reader): Initialize them for no
4451         change in semantics.
4452         (cpp_post_options): Add sanity checks.
4453         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
4454         and truncation issues.  Calculate in type cppchar_t.
4455         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
4456         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
4457         run-time dependent precision correctly.  Return whether the
4458         result is signed or not.
4459         * cpplib.c (dequote_string): Use cppchar_t; update.
4460         * cpplib.h (cppchar_signed_t): New.
4461         struct cpp_options): New precision members.
4462         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
4463         * cppexp.c (eval_token): Update.
4464
4465 2002-05-03  David S. Miller  <davem@redhat.com>
4466
4467         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
4468         * config/sparc/sparc.c (sparc_rtx_costs): New function
4469         implementing RTX_COSTS and CONST_COSTS.
4470         * config/sparc/sparc.h (CONST_COSTS): Delete.
4471         (RTX_COSTS_CASES): Define.
4472         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
4473         the work.
4474
4475         * config/sparc/sparc.md (DFA schedulers): Split out...
4476         * config/sparc/cypress.md, config/sparc/hypersparc.md,
4477         config/sparc/sparclet.md, config/sparc/supersparc.md,
4478         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
4479
4480         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
4481         checks on it, always defined for Sparc.
4482
4483         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
4484         Tweak, and add more detailed comments.
4485
4486 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
4487
4488         * Re-apply patch accidentally reverted with
4489         DFA scheduler merge: remove all rules and variables to slurp
4490         source files out of libiberty and rebuild them with HOST_CC.
4491         ($(HOST_PREFIX_1)varray.o): New rule.
4492         (genattrtab rule): Word wrap.
4493
4494 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4495
4496         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
4497         (CPP_SUBTARGET_SPEC): Define.
4498         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
4499         cpp_subtarget specs.
4500         (CPP_SPEC): Redefine to include %(cpp_subtarget).
4501
4502 2002-05-03  David S. Miller  <davem@redhat.com>
4503
4504         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
4505         * target.h (struct gcc_target): Delete cycle_display member.
4506
4507         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
4508         (rtx_needs_barrier): Delete reference to cycle_display unspec.
4509         (ia64_sched_reorder2): Mention need for cycle display handling
4510         once such notes exist.
4511
4512 2002-05-03  Richard Henderson  <rth@redhat.com>
4513
4514         * real.c (etoasc): Strip most trailing zeros for clarity.
4515         * sched-vis.c: Include real.h.
4516         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
4517         * Makefile.in (sched-vis.o): Add real.h.
4518
4519 2002-05-03  David S. Miller  <davem@redhat.com>
4520
4521         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
4522         no longer needed.
4523
4524 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
4525
4526         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
4527         when we get an out of range literal.
4528         (altivec_expand_ternop_builtin): Same.
4529         (altivec_expand_unop_builtin): Same.
4530         (altivec_expand_builtin): Same, for dss.
4531         (altivec_expand_builtin): Use trees instead of rtl when
4532         determining literal argument validity.
4533
4534 2002-05-03  David S. Miller  <davem@redhat.com>
4535
4536         Delete cycle display scheduling hook.
4537         * config/ia64/ia64.c (ia64_cycle_display,
4538         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
4539         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
4540         and use emit_insn_before instead of ia64_emit_insn_before.
4541         * config/ia64/ia64.md (unspec usage): Delete cycle display.
4542         (cycle_display): Delete insn pattern.
4543         * config/sparc/sparc.md (unspec usage): Delete cycle display.
4544         (cycle_display): Delete insn pattern.
4545         * config/sparc/sparc.c (sparc_cycle_display,
4546         TARGET_SCHED_CYCLE_DISPLAY): Delete.
4547         * doc/md.texi (cycle_display): Don't mention.
4548         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
4549
4550 2002-05-03  Richard Henderson  <rth@redhat.com>
4551
4552         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
4553         * recog.h: Declare them.
4554
4555         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
4556         * config/sparc/sparc.md: Use store_data_bypass_p instead.
4557         * config/sparc/sparc-protos.h: Update.
4558
4559 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4560
4561         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
4562         -D__arch64__.  Add -D_LP64.
4563         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
4564         from sparc.h.
4565         (CPP_ARCH64_SPEC): Likewise.
4566         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
4567         (NO_BUILTIN_SIZE_TYPE): Undef.
4568
4569 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
4570
4571         * genautomata.c (min_issue_delay_pass_states): Change return type
4572         in the prototype.
4573         (min_issue_delay_pass_states): Change the algorithm.
4574         (min_issue_delay): Set up min_insn_issue_delay for the state.
4575         (output_min_issue_delay_table): Interchange the nested loops and
4576         and initiate min_insn_issue_delay for states.
4577
4578 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
4579
4580         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4581         jump is simplejump.
4582
4583 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4584
4585         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4586         sequence.
4587
4588 2002-05-03  Richard Henderson  <rth@redhat.com>
4589
4590         PR opt/6534
4591         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4592         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4593         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4594         code before JUMP, not EARLIEST.
4595
4596 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4597
4598         * c-format.c (check_format_info_main): Don't check for presence of
4599         parameter for * width until after operand number has been read,
4600         and only check for it if format parameters are available.
4601         Fixes PR c/6547.
4602
4603 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4604
4605         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4606         (LINK_SPEC): Undef before defining.
4607
4608 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4609
4610         PR preprocessor/6489
4611         * tradcpp.c (fixup_newlines): New.
4612         (main, finclude): Use it.
4613
4614 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4615
4616         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4617         * config/mips/mips.c (mips_unique_section): Strip encoding from
4618         decl name.
4619
4620 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4621
4622         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4623         mode.
4624
4625 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4626
4627         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4628         (Specific): Removed buildstats references.
4629         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4630         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4631         Accomodate Solaris versions beyond 8.
4632         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4633         (Specific, *-*-solaris2.8): Removed, obsolete.
4634
4635 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4636
4637         PR target/6542
4638         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4639         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4640         fill leaf_reg_remap with identity.
4641         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4642
4643 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4644
4645         * config/h8300/crti.asm: Remove trailing spaces.
4646         * config/h8300/h8300.c: Likewise.
4647         * config/h8300/lib1funcs.asm: Likewise.
4648
4649 2002-05-02  Jason Merrill  <jason@redhat.com>
4650
4651         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4652         * c-decl.c (c_init_decl_processing): Use it.
4653         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4654         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4655         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4656
4657 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4658
4659         * regrename.c: Fix formatting.
4660         * tree.c: Likewise.
4661
4662 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4663
4664         * i386.md (attribute memory): Handle compares properly.
4665
4666 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4667
4668         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4669         to none.
4670
4671 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4672
4673         * function.c: Fix formatting.
4674
4675 2002-05-02  Jan Hubicka  <jh@suse.cz>
4676
4677         * haifa-sched.c (schedule_insn): Print table of instructions and
4678         reservations.
4679         (sched_block): Do not print ready list at verbosity level 1.
4680         * sched-vis.c (print_insn): Make global.
4681         * sched-ebb.c (ebb_print_insn): Rename from...
4682         (print_insn): ... this one.
4683         * sched-int.h (print_insn): Declare
4684
4685 2002-05-02  Richard Henderson  <rth@redhat.com>
4686
4687         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4688         emitted by cycle_display.
4689
4690 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4691
4692         * doc/install.texi (*-*-freebsd*): Update to latest status.
4693
4694 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4695
4696         PR target/6540
4697         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4698         * config/float-sparc.h: Assume 128-bit long double if
4699         __LONG_DOUBLE_128__ is defined.
4700
4701 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4702
4703         * genattrtab.c (write_function_unit_info): Add a dummy element
4704         when num_units == 0.
4705
4706 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4707
4708         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4709         TYPE_MODE (double_type_node) instead of DFmode.
4710
4711 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4712
4713         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4714         jumps post reload.
4715         * toplev.c (rest_of_compilation): Revert Richard's patch.
4716
4717 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4718
4719         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4720
4721 2002-05-02  Catherine Moore  <clm@redhat.com>
4722
4723         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4724
4725 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4726
4727         * combine.c: Fix comment typos.
4728         * expr.c: Likewise.
4729         * genautomata.c: Likewise.
4730         * stmt.c: Likewise.
4731         * tree.h: Likewise.
4732
4733 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4734
4735         * doc/install.texi: State GNAT version requirements.
4736
4737 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4738
4739         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4740         of the frame pointer or arg pointer register which strict register
4741         checking is not enabled.
4742
4743 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4744
4745         * gcc.dg/altivec-8.c: New.
4746
4747         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4748         PRE_INC and PRE_DEC for altivec modes.
4749
4750 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4751
4752         * fixinc/check.tpl(set-writable): make sure the function exists first
4753         * fixinc/inclhack.def(alpha_assert): fix test_text
4754         * fixinc/tests/base/assert.h: add in missing result
4755
4756 2002-05-01  Jeff Law  <law@redhat.com>
4757
4758         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4759         'T' constraint.
4760
4761 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4762
4763         * dbxout.c (dbxout_type): Emit size information for range types,
4764         as well, but only when using GDB extensions.
4765
4766 2002-05-01  Richard Henderson  <rth@redhat.com>
4767
4768         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4769         target-independent gnu binutils date test.
4770
4771 2002-05-01  Richard Henderson  <rth@redhat.com>
4772
4773         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4774         info before expunging the block.
4775
4776 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4777
4778         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4779         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4780         -M -or -MM is in effect.
4781
4782 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4783
4784         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4785         A29k configurations.
4786         * doc/install.texi: Update to match.
4787
4788 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4789
4790         PR bootstrap/6514
4791         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4792         for duplicates. Always loop over whole list.
4793
4794 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4795
4796         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4797
4798 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4799
4800         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4801         support routines.
4802
4803 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4804
4805         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4806
4807 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4808
4809         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4810         (nabs_nopower): Same.
4811         (floatdisf2): New pattern.
4812         (absdi2): Convert to define_insn_and_split.
4813         (nabsdi2): Same.
4814         (trunctfsf2): Same.
4815         (floatditf2): Same.
4816         (floatsitf2): Same.
4817         (fix_trunctfdi2): Same.
4818         (fix_trunctfsi2): Same.
4819
4820 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4821
4822         * doc/install.texi: Update Texinfo version requirement
4823         documentation.
4824
4825 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4826
4827         PR target/6512, PR target/5628
4828         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4829         when memory is not aligned.
4830         (movdf_insn_v9only_vis): Likewise.
4831         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4832         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4833         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4834
4835 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
4836
4837         * gcc.dg/altivec-7.c: New.
4838
4839         * config/rs6000/altivec.h: Cleanup.
4840
4841 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
4842
4843         * doc/invoke.texi (Option Summary): Add -mvrsave=.
4844         (RS/6000 and PowerPC Options): Document -mvrsave=.
4845
4846         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4847         (rs6000_altivec_vrsave_string): Same.
4848         (rs6000_override_options): Call rs6000_parse_vrsave_option.
4849         (rs6000_parse_vrsave_option): New.
4850         (rs6000_stack_info): Only generate vrsave instructions when
4851         TARGET_ALTIVEC_VRSAVE.
4852
4853         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4854         (rs6000_altivec_vrsave_string): Define extern.
4855         (rs6000_altivec_vrsave): Same.
4856         (TARGET_ALTIVEC_VRSAVE): New.
4857
4858 2002-04-30  Richard Henderson  <rth@redhat.com>
4859
4860         PR opt/6516
4861         * toplev.c (rest_of_compilation): Don't run cross-jump before
4862         bb-reorder.
4863
4864 2002-04-30  Tom Rix  <trix@redhat.com>
4865
4866         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4867         check which_alternative.
4868
4869 2002-04-30  Kazu Hirata  <kazu@hxi.com>
4870
4871         * cpplex.c: Fix comment formatting.
4872         * function.c: Likewise.
4873         * integrate.c: Likewise.
4874         * regrename.c: Likewise.
4875         * sibcall.c: Likewise.
4876         * simplify-rtx.c: Likewise.
4877         * tree-inline.c: Likewise.
4878
4879 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4880
4881         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4882         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4883         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4884         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4885         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4886         * pa/x-ada: New file.  Define ADA_CFLAGS.
4887
4888 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
4889
4890         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4891         from MMIX_LAST_REGISTER_FILE_REGNUM.
4892         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4893         (struct machine_function): New member highest_saved_stack_register
4894         previously static variable in mmix.c.
4895         (MACHINE_DEPENDENT_REORG): Define.
4896         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4897         (MMIX_OUTPUT_REGNO): New.
4898         (mmix_target_asm_function_prologue): Move calculation of last used
4899         saved-stack-register into...
4900         (mmix_machine_dependent_reorg): New function.  Update to also handle
4901         !TARGET_ABI_GNU.
4902         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4903         register names, simplify somewhat by new variable regno.
4904         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
4905         register.
4906         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4907         emitting register names.
4908         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4909         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4910         Remove fixed FIXME.
4911         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4912         Declare.
4913
4914         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4915
4916 2002-04-30  Richard Henderson  <rth@redhat.com>
4917
4918         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4919         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4920         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4921         emit_tfmode_cvt): New.
4922         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4923         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4924         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4925         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4926         * config/sparc/sparc-protos.h: Update.
4927
4928 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
4929
4930         * install.texi (Final install): Add to the list of info to include
4931         in a report of a successful bootstrap, and add link to 3.1 list.
4932
4933 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
4934
4935         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4936         (mode): Add vector modes
4937         (i387): Kill attribute.
4938         (unit): New attribute.
4939         (length_immediate): Grok new types.
4940         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4941         (modrm): Use "unit".
4942         (memory): Handle MMX/SSE properly.
4943         (scheduling descriptions): Kill uses of fop1.
4944         (sse, mmx, fp patterns): Set type and mode properly.
4945
4946 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
4947
4948         * pa.c (override_options): Default to PA8000 scheduling.
4949         * doc/invoke.texi (HP-PA options): Mention newly added 7300
4950         scheduling parameter.
4951
4952         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4953         handling of double precision multiplies.
4954
4955         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4956         fpdiv and fpsqrt instructions.
4957         (7200 & 7300 scheduling): Fix typo in handling of
4958         store-load and store-store penalties.
4959
4960 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4961
4962         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4963         mips.  Add two missing commas.
4964
4965 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
4966
4967         * doc/contrib.texi (Contributors): Update Paolo Carlini's
4968         and Benjamin Kosnik's entries.
4969
4970 2002-04-29  David S. Miller  <davem@redhat.com>
4971
4972         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4973         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4974         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4975         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4976
4977 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4978
4979         * combine.c (find_split_point): Use gen_int_mode.
4980
4981 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4982
4983         Merging code from dfa-branch:
4984
4985         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4986
4987         * genautomata.c (output_reserv_sets): Fix typo.
4988
4989         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
4990
4991         * genautomata.c (output_reserv_sets): Remove
4992         next_cycle_output_flag.
4993
4994         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
4995
4996         * sched-rgn.c (init_ready_list): Make the DFA code handle
4997         USE/CLOBBER insns in the same way as the traditional
4998         scheduler.
4999         (new_ready): Similarly..
5000
5001         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
5002
5003         * haifa-sched.c (schedule_block): Change the DFA state only after
5004         issuing insn.
5005
5006         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
5007
5008         * pa.c (hppa_use_dfa_pipeline_interface): New function.
5009         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
5010         (override_options): Add PA7300 scheduling support.
5011         (pa_adjust_cost): Update various comments.  Properly
5012         handle anti and output dependencies when using the
5013         DFA scheduler.
5014         (pa_issue_rate): Add PA7300 scheduling support.
5015         (pa_can_combine_p): Call extract_insn before calling
5016         constrain_operands (taken from mainline tree).
5017         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
5018         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
5019         descriptions using DFA descriptions.  Add PA7300
5020         scheduling support.
5021
5022         2002-03-30  David S. Miller  <davem@redhat.com>
5023
5024         Add UltraSPARC-III DFA scheduling support.
5025         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
5026         Update FP conditional move on register insn patterns to use it, as
5027         appropriate.
5028         (define_attr cpu): Add ultrasparc3.
5029         (define_attr us3load_type): New, update integer load patterns to
5030         set it, as appropriate.
5031         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
5032         (rest): Add UltraSPARC3 scheduling description.
5033         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
5034         (PROCESSOR_ULTRASPARC3): New.
5035         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
5036         ({ASM,CPP}_CPU_SPEC): Likewise.
5037         (REGISTER_MOVE_COST): Likewise.
5038         (RTX_COSTS): Likewise.
5039         * config/sparc/sparc.c (sparc_override_options,
5040         sparc_initialize_trampoline, sparc64_initialize_trampoline,
5041         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5042         sparc_issue_rate): Likewise.
5043         * config/sparc/sol2.h: Likewise.
5044         * config/sparc/sol2-sld-64.h: Likewise.
5045         * config/sparc/linux64.h: Likewise.
5046
5047         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
5048
5049         * doc/md.texi: Add comments about usage the latency time for the
5050         different dependencies and about case when two or more conditions
5051         in different define_insn_reservations returns TRUE for an insn.
5052
5053         * doc/md.texi: Add reference for automaton based pipeline
5054         description.
5055
5056         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
5057
5058         * doc/passes.texi: Add missed information about genattrtab.
5059
5060         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
5061
5062         * genautomata.c (output_automata_list_transition_code): Check
5063         automata_list on NULL.
5064
5065         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
5066
5067         * genautomata.c (output_insn_code_cases,
5068         output_automata_list_min_issue_delay_code,
5069         output_automata_list_transition_code,
5070         output_automata_list_state_alts_code): Comment the functions.
5071
5072         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
5073
5074         * genautomata.c (automata_list_el_t): New typedef.
5075         (get_free_automata_list_el,free_automata_list_el,
5076         free_automata_list, automata_list_hash, automata_list_eq_p,
5077         initiate_automata_lists, automata_list_start, automata_list_add,
5078         automata_list_finish, finish_automata_lists,
5079         output_insn_code_cases, output_automata_list_min_issue_delay_code,
5080         output_automata_list_transition_code,
5081         output_automata_list_state_alts_code, add_automaton_state,
5082         form_important_insn_automata_lists): New functions and prototypes.
5083         (insn_reserv_decl): Add members important_automata_list and
5084         processed_p.
5085         (ainsn): Add members important_p.
5086         (automata_list_el): New structure.
5087         (first_free_automata_list_el, current_automata_list,
5088         automata_list_table): New global variables.
5089         (create_ainsns): Initiate member important_p.
5090         (output_internal_min_issue_delay_func): Generate the switch and
5091         call output_insn_code_cases.
5092         (output_internal_trans_func, output_internal_state_alts_func):
5093         Ditto.
5094         (generate): Call initiate_automata_lists.
5095         (automaton_states): New global variable.
5096         (expand_automata): Call form_important_insn_automata_lists.
5097         (write_automata): Call finish_automata_lists.
5098
5099         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
5100
5101         * genautomata.c (add_excls, add_presence_absence): Check that
5102         cpu units in the sets belong the same automaton.
5103
5104         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
5105         about that cpu units in the sets belong the same automaton.
5106
5107         * doc/md.texi: Ditto.
5108
5109         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
5110                     Nitin Gupta  <niting@noida.hcltech.com>
5111
5112         * config/sh/sh.c (sh_use_dfa_interface): New function.
5113
5114         (sh_issue_rate): New Function.
5115         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
5116         TARGET_SCHED_ISSUE_RATE: define.
5117
5118         * config/sh/sh.md: Add DFA based pipeline description for SH4.
5119
5120         (define_attr insn_class): New attribute used for DFA
5121          scheduling.
5122         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
5123         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
5124          cmpeqdi_t): Likewise.
5125
5126         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
5127          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
5128          ex_group.
5129         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
5130
5131         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5132
5133         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
5134         break.
5135
5136         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
5137
5138         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
5139         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
5140         necessary.
5141         (output_dfa_start_func): Initiate new variable insn_codes_length,
5142         (write_automata): Output definition of the new variable.
5143
5144         2001-10-02  David S. Miller  <davem@redhat.com>
5145
5146         * haifa-sched.c (advance_one_cycle): New function.
5147         (schedule_block): Use it.
5148         (queue_to_ready): Use it, and also make sure to advance the DFA
5149         state on all stall cycles, not just those where insn_queue links
5150         are found.
5151
5152         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
5153
5154         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
5155         non-zero if the highest-priority instruction could be scheduled.
5156         (choose_ready): Remove last argument from max_issue call.
5157
5158         2001-09-28  David S. Miller  <davem@redhat.com>
5159
5160         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
5161         ultrasparc and 3 for other multi-issue sparcs.
5162
5163         2001-09-27  David S. Miller  <davem@redhat.com>
5164
5165         * config/sparc/sparc.md (cycle_display): New pattern.
5166         * config/sparc/sparc.c (sparc_cycle_display): New.
5167         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
5168
5169         2001-09-25  David S. Miller  <davem@redhat.com>
5170
5171         Convert all of Sparc scheduling to DFA
5172         * config/sparc/sparc.md: Kill all define_function_unit
5173         directives and replace with DFA equivalent.
5174         * config/sparc/sparc.c (ultrasparc_adjust_cost,
5175         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
5176         ultra_fpmode_conflict_exists, ultra_find_type,
5177         ultra_build_types_avail, ultra_flush_pipeline,
5178         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
5179         ultrasparc_variable_issue, ultrasparc_sched_init,
5180         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
5181         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
5182         ultra_cur_hist, ultra_cycles_elapsed): Kill.
5183         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
5184         ultrasparc_store_bypass_p): New.
5185         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
5186         Declare.
5187
5188         2001-09-24  David S. Miller  <davem@redhat.com>
5189
5190         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
5191         ready->vec[foo] not ready[foo].
5192
5193         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5194
5195         * doc/md.texi: Correct examples for define_insn_reservations
5196         `mult' and `div'.
5197
5198         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
5199
5200         * genautomata.c (create_automata): Print message about creation of
5201         each automaton.
5202         (generate): Remove printing meease about creation of
5203         automata.
5204
5205         2001-09-05  David S. Miller  <davem@redhat.com>
5206
5207         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
5208         * config/sparc/linux64.h: Likewise.
5209
5210         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
5211
5212         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
5213         schedule_block, sched_init, sched_finish): Add missed calls of
5214         use_dfa_pipeline_interface.
5215
5216         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
5217         Ditto.
5218
5219         * sched-vis.c (get_visual_tbl_length): Ditto.
5220
5221         2001-08-27  Richard Henderson  <rth@redhat.com>
5222
5223         * genattr.c (main): Emit state_t even when not doing scheduling.
5224
5225         2001-08-27  Richard Henderson  <rth@redhat.com>
5226
5227         * genautomata.c (expand_automata): Always create a description.
5228
5229         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
5230
5231         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
5232         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
5233         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
5234         RTL constructions.
5235
5236         * genattr.c (main): New variable num_insn_reservations.  Increase
5237         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
5238         pipeline hazard recognizer interface.
5239
5240         * genattrtab.h: New file.
5241
5242         * genattrtab.c: Include genattrtab.h.
5243         (attr_printf, check_attr_test, make_internal_attr,
5244         make_numeric_value): Move protypes into genattrtab.h.  Define them
5245         as external.
5246         (num_dfa_decls): New global variable.
5247         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
5248         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
5249         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
5250         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
5251
5252         * genautomata.c: New file.
5253
5254         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
5255
5256         * sched-int.h: (curr_state): Add the external definition for
5257         automaton pipeline interface.
5258         (haifa_insn_data): Add comments for members blockage and units.
5259
5260         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5261         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5262         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5263         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5264         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5265         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5266         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
5267         macros.
5268         (TARGET_SCHED): Use the new macros.
5269
5270         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
5271         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
5272         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
5273         dfa_bubble): New members in gcc_target.sched.
5274
5275         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
5276         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
5277         (insn_queue): Redefine it as pointer to array.
5278         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
5279         INSN_QUEUE_SIZE.
5280         (max_insn_queue_index_macro_value): New variable.
5281         (curr_state, dfa_state_size, ready_try): New varaibles for
5282         automaton interface.
5283         (ready_element, ready_remove, max_issue): New function prototypes
5284         for automaton interface.
5285         (choose_ready): New function prototype.
5286         (insn_unit, blockage_range): Add comments.
5287         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
5288         FUNCTION_UNITS_SIZE == 0.
5289         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
5290         actual_hazard, potential_hazard): Add comments.
5291         (insn_cost): Use cost -1 as undefined value.  Remove
5292         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
5293         pipeline interface.
5294         (ready_element, ready_remove): New functions for automaton
5295         interface.
5296         (schedule_insn): Add new code for automaton pipeline interface.
5297         (queue_to_ready): Add new code for automaton pipeline interface.
5298         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
5299         (debug_ready_list): Print newline when the queue is empty.
5300         (max_issue): New function for automaton pipeline interface.
5301         (choose_ready): New function.
5302         (schedule_block): Add new code for automaton pipeline interface.
5303         Print ready list before scheduling each insn.
5304         (sched_init): Add new code for automaton pipeline interface.
5305         Initiate insn cost by -1.
5306         (sched_finish): Free the current automaton state and finalize
5307         automaton pipeline interface.
5308
5309         * sched-rgn.c: Include target.h.
5310         (init_ready_list, new_ready, debug_dependencies): Add new code for
5311         automaton pipeline interface.
5312
5313         * sched-vis.c: Include target.h.
5314         (get_visual_tbl_length): Add code for automaton interface.
5315         (target_units, print_block_visualization):  Add comments.
5316
5317         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
5318         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
5319         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
5320         (getruntime.o, genautomata.o): New entries.
5321         (genattrtab.o): Add new dependency file genattrtab.h.
5322         (genattrtab): Add new dependencies.  Link it with `libm.a'.
5323         (getruntime.o, hashtab.o): New entries for canadian cross.
5324
5325         * doc/md.texi: Description of automaton based model.
5326
5327         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
5328         Add comments.
5329         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
5330         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
5331         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
5332         TARGET_SCHED_DFA_POST_CYCLE_INSN,
5333         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
5334         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
5335         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
5336         hook descriptions.
5337         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
5338         MAX_DFA_ISSUE_RATE): New macro descriptions.
5339
5340         * doc/contrib.texi: Add dfa based scheduler contribution.
5341
5342         * doc/gcc.texi: Add more information about genattrtab.
5343
5344 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5345
5346         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
5347         adjust_address_nv call.
5348
5349 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
5350
5351         * doc/install.texi (Testing): Provide additional information, and
5352         a stronger encouragement, for running the testsuites.
5353
5354 2002-04-29  DJ Delorie  <dj@redhat.com>
5355
5356         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
5357         given in upper case.
5358
5359 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5360
5361         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
5362         Solaris 2 <widec.h> if missing.
5363         * fixinc/fixincl.x: Regenerate.
5364         * fixinc/tests/base/widec.h: New file.
5365
5366 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
5367
5368         * toplev.c (f_options): Add "profile" switch so that
5369         -fno-profile can be used to disable -p.
5370
5371 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
5372
5373         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
5374         UV2DImode.
5375         * tree.c (build_common_tree_nodes_2): Likewise.
5376         * tree.h (enum tree_index): Likewise.
5377         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
5378
5379         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
5380         entries.
5381         (init_mmx_sse_builtins): Initialize SSE2 builtins.
5382         (ix86_expand_builtin): Add support for SSE2 builtins.
5383         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
5384         (VALID_SSE_REG_MODE): Use it.
5385         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
5386         (enum ix86_builtins): Add SSE2 builtins.
5387         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
5388         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
5389         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
5390         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
5391         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
5392         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
5393         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
5394         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
5395         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
5396         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
5397         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
5398         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
5399         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
5400         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
5401         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
5402         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
5403         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
5404         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
5405         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
5406         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
5407         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
5408         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
5409         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
5410         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
5411         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
5412         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
5413         lfence_insn): New patterns.
5414         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
5415         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
5416
5417 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
5418
5419         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
5420
5421 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5422
5423         * doc/contrib.texi (Contributors): Add Paolo Carlini and
5424         Janis Johnson.
5425         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
5426         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
5427         and CPU instead of cpu.
5428
5429 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
5430
5431         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
5432         variables.
5433         (lang_independent_options): Add -fif-conversion, -fif-conversion2
5434         (rest_of_compilation): Do if conversion only when asked for.
5435         (parse_options_and_default_flags): Set new variables to 1 for -O1
5436         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
5437
5438 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
5439
5440         * i386.c (dbx64_register_map): Fix typo.
5441
5442 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
5443
5444         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
5445         real_one_half, real_bb_freq_max): New static variables.
5446         (debug_profile_bbauxs): Kill.
5447         (process_note_predictions): Kill unused variable.
5448         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
5449         volatile double.
5450         (propagate_freq): Use REAL_ARITHMETICS.
5451         (estimate_bb_frequencies): Likevise; init new static variables.
5452         * Makefile.in (predict.o): Add dependency on real.h
5453
5454 2002-04-28  David S. Miller  <davem@redhat.com>
5455
5456         PR target/6500
5457         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
5458         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
5459         several {reads,writes} instead.
5460         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
5461         Define.
5462
5463 2002-04-27  David S. Miller  <davem@redhat.com>
5464
5465         PR target/6494
5466         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
5467         of the stack bias.
5468
5469         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
5470         including signal.h and sys/ucontext.h, not needed.
5471
5472 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
5473
5474         * varasm.c (output_constant_def): Correct test for not calling
5475         ENCODE_SECTION_INFO for INTEGER_CST.
5476
5477 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5478
5479         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
5480         keep most cases as function eval_token.
5481         (eval_token): New function.
5482         (_cpp_parse_expr): Read token here for improved diagnostics.
5483         Don't use op_as_text.  Detect bad ':' here.
5484         (reduce): Don't detect bad ':' here.
5485         (op_as_text): Remove.
5486         * cpphash.h (_cpp_test_assertion): Change prototype.
5487         * cpplib.c (_cpp_test_assertion): Change prototype.
5488
5489 2002-04-28  Richard Henderson  <rth@redhat.com>
5490
5491         PR c/5154
5492         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
5493         (ggc_mark_rtx_children): New.
5494
5495 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5496
5497         PR target/6496
5498         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
5499         after call peepholes for UltraSPARC.
5500         (call + jump 64-bit peepholes): Remove.
5501
5502 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5503
5504         PR c/6497
5505         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
5506         result as temporary value.
5507
5508 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5509
5510         PR c++/6396
5511         * toplev.c (rest_of_compilation): Only run regrename and copy
5512         propagation if optimizing.
5513
5514 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
5515
5516         PR optimization/6475
5517         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
5518         register of REGNO_DECL (i).
5519         * Makefile.in (reload1.o): Add $(TREE_H).
5520
5521 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
5522
5523         * cppexp.c (lex): Update to use state.skip_eval.
5524         (struct op): Remove prio and flags members.
5525         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
5526         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
5527         (LEFT_ASSOC): New macro.
5528         (optab): New table of operator priorities and flags.
5529         (SHIFT): Update.
5530         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
5531         malloc-ed parser stack.
5532         (reduce): New; reduce the operator stack.
5533         (_cpp_expand_op_stack): Expand the operator stack as necessary.
5534         * cpphash.h (struct op): Predeclare.
5535         (struct cpp_reader): New members op_stack, op_limit.
5536         (struct lexer_state): New member skip_eval.
5537         (_cpp_parse_expr): Update.
5538         (_cpp_expand_op_stack): New.
5539         * cpplib.c (do_if): Update.
5540         * cppinit.c (cpp_create_reader): Create op stack.
5541         (cpp_destroy): And destroy it.
5542         * cpplib.h (CPP_LAST_CPP_OP): Correct.
5543         (TTYPE_TABLE): Correct.
5544
5545 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5546
5547         PR c/6343
5548         * c-decl.c (duplicate_decls): Call merge_weak.
5549         * c-pragma.c (apply_pragma_weak): Warn about misuse.
5550         * output.h (merge_weak): Prototype merge_weak.
5551         * varasm.c (merge_weak): New function.
5552         (declare_weak): Make sure we don't give an error on VAR_DECLs.
5553         Mark RTL with SYMBOL_REF_WEAK.
5554
5555 2002-04-27  Kurt Garloff <garloff@suse.de>
5556
5557         * tree-inline.c (inlinable_function_p): Improve heuristics
5558         by using a smoother function to cut down allowable inlinable size.
5559         * param.def: Add parameters max-inline-insns-single,
5560         max-inline-slope, min-inline-insns that determine the exact
5561         shape of the above function.
5562         * param.h: Likewise.
5563
5564 2002-04-26  Richard Henderson  <rth@redhat.com>
5565
5566         * c-parse.in (malloced_yyss, malloced_yyvs): New.
5567         (yyoverflow): Re-add.  Set them.
5568         (free_parser_stacks): New.
5569         * c-common.h: Declare it.
5570         * c-lex.c (c_common_parse_file): Call it.
5571
5572 2002-04-26  Richard Henderson  <rth@redhat.com>
5573
5574         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
5575         for fallthru search.
5576
5577 2002-04-26  Eric Christopher  <echristo@redhat.com>
5578
5579         PR optimization/3700
5580         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5581         (TARGET_SCHED_ISSUE_RATE): Use.
5582
5583 2002-04-25  David S. Miller  <davem@redhat.com>
5584
5585         PR target/6422
5586         * reorg.c (optimize_skip): Do not allow exception causing
5587         instructions to be considered for delay slots.
5588         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5589         (relax_delay_slots): Do not try to consider exception causing
5590         instructions as redundant.
5591
5592 2002-04-26  Richard Henderson  <rth@redhat.com>
5593
5594         PR c/5225
5595         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5596
5597 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5598
5599         PR bootstrap/6445
5600         * config/i386/i386.md (untyped_call): Return the value in a float
5601         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5602         TARGET_80387.
5603
5604 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5605
5606         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5607         in unsigned-ness correctly.
5608
5609 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5610
5611         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5612         portable runtime model.
5613
5614 2002-04-26  Richard Henderson  <rth@redhat.com>
5615
5616         * c-parse.in (yyoverflow): Revert.
5617
5618 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5619             Richard Henderson  <rth@redhat.com>
5620
5621         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5622         result as temporary value.
5623
5624 2002-04-26  Richard Henderson  <rth@redhat.com>
5625
5626         PR c/3581
5627         * c-common.c (fix_string_type): Split out of ...
5628         (combine_strings): ... here.  Take a varray, not a tree list.
5629         (c_expand_builtin_printf): Use fix_string_type.
5630         * c-common.h: Update decls.
5631         * c-parse.in (string): Remove.  Update all uses to use STRING
5632         instead, and not call combine_strings.
5633         (yylexstring): New.
5634         (_yylex): Use it.
5635         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5636         (build_asm_stmt): Likewise.
5637         * objc/objc-act.c (my_build_string): Use fix_string_type.
5638         (build_objc_string_object): Build varray for combine_strings.
5639
5640 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5641
5642         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5643         x86-64.
5644
5645 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5646
5647         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5648         (HAVE_NO_R_OPERAND): Remove.
5649         (HAVE_VALUE): Remove.
5650         (op_to_prio): Update.
5651         (UNARY): Don't alter flags.
5652         (_cpp_parse_expr): want_value used to indicate whether
5653         a number or unary operator is expected next.  Distinguish
5654         unary and binary +/-.
5655         (op_as_text): Update for unary operators.
5656
5657 2002-04-25  Richard Henderson  <rth@redhat.com>
5658
5659         PR c/2161
5660         * c-parse.in (yyoverflow): New.
5661
5662 2002-04-25  Richard Henderson  <rth@redhat.com>
5663
5664         PR c/2098
5665         * c-common.c (shorten_compare): Simplfy conditions leading to
5666         the generation of a warning.
5667
5668 2002-04-25  Richard Henderson  <rth@redhat.com>
5669
5670         PR c/2035
5671         * expmed.c (extract_bit_field): Fall through to generic code rather
5672         than aborting on subreg special case.
5673
5674 2002-04-25  David S. Miller  <davem@redhat.com>
5675
5676         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5677         for DECL being NULL.
5678
5679 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5680
5681         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5682
5683 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5684
5685         * c-decl.c (grokdeclarator): Remove outdated ??? note
5686         on invalid declaration of flexible array members.
5687
5688 2002-04-25  Richard Henderson  <rth@redhat.com>
5689
5690         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5691
5692 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5693
5694         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5695         needed by the compiler, even if they are used as global regs.
5696
5697 2002-04-25  Matt Hiller  <hiller@redhat.com>
5698
5699         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5700         functions.
5701         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5702         of the corresponding functions.
5703         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5704         New prototypes.
5705
5706 2002-04-25  Matt Hiller  <hiller@redhat.com>
5707
5708         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5709
5710         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5711         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5712         registers, adjust comment accordingly.
5713         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5714         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5715         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5716         for coprocessor registers.
5717         (ADDITIONAL_REGISTER_NAMES): Include
5718         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5719
5720         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5721         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5722         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5723         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5724         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5725
5726         (mips_char_to_class): Adjust comment to include coprocessor
5727         constraint letters.
5728
5729         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5730         New functions.
5731         (mips_reg_names, mips_regno_to_class): Include coprocessor
5732         information.
5733         (mips_sw_reg_names): Ditto, make non-static.
5734         (mips_move_1word): Handle moves to and from coprocessor registers.
5735         (mips_move_2words): Handle moves to and from coprocessor
5736         registers.
5737         (mips_class_max_nregs, mips_register_move_cost): Handle
5738         coprocessor register classes.
5739         (override_options): Initialize mips_char_to_class and
5740         mips_hard_regno_mode_ok properly for coprocessor registers.
5741
5742         * config/mips/mips.md (movdi_internal, movdi_internal2,
5743         movsi_internal1, movsi_internal2): Add constraint-sets for
5744         coprocessor registers.
5745         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5746         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5747         isn't mips.
5748         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5749         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5750         isn't mips.
5751         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5752         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5753         isn't mips.
5754         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5755         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5756         isn't mips.
5757
5758         * doc/tm.texi: Document feature.
5759
5760 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5761
5762         * integrate.c (function_attribute_inlinable_p): Simplify.
5763         Check the table pointer is not NULL.
5764
5765 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5766
5767         * doc/c-tree.texi: Fix typo in introduction.
5768
5769 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5770
5771         * c-common.h (c_common_parse_file): Update.
5772         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5773         * c-lex.c (YYDEBUG): Get from c-lex.h.
5774         (c_common_parse_file): Update.
5775         * c-lex.h (YYDEBUG, yydebug): New.
5776         * c-parse.in (YYDEBUG): Get from c-lex.h.
5777         (c_set_yydebug): Remove.
5778         * c-tree.h (c_set_yydebug): Remove.
5779         * langhooks-def.h (lhd_do_nothing_i): New.
5780         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5781         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5782         * langhooks.c  (lhd_do_nothing_i): New.
5783         (lhd_set_yydebug): Remove.
5784         * langhooks.h (struct lang_hooks): Update.
5785         * toplev.c (set_yydebug): New.
5786         (compile_file): Update call to parse_file hook.
5787         (decode_d_option): Update.
5788 objc:
5789         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5790
5791 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5792
5793         * loop.c (load_mems): Don't change the interface of called functions.
5794
5795         * calls.c (expand_call): Take current_function_pretend_args_size
5796         into account when setting argblock for sibcalls.
5797
5798 2002-04-24  Matt Hiller  <hiller@redhat.com>
5799
5800         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5801         * c-lex.c: Ditto.
5802
5803         * cpplex.c (skip_line_comment): Process comment one multibyte
5804         character at a time rather than one char at a time, if
5805         appropriate.
5806         (parse_string): Process string one multibyte character at a time
5807         rather than one char at a time, if appropriate.
5808         * c-lex.c (lex_string): Lex and copy multibyte strings
5809         appropriately.
5810         * cpplib.h (cppchar_t): Change to unsigned.
5811
5812 2002-04-24  Richard Henderson  <rth@redhat.com>
5813
5814         PR c/3467
5815         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5816         for c99.
5817
5818 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
5819
5820         * sh.c (sh_va_arg): If argument was passed by reference,
5821         dereference the pointer.
5822
5823         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5824
5825         * sh.md (divsi3_i4_media): Use match_operand for input values
5826         rather than hard registers.
5827         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5828         unnecessarily through hard registers.  Keep copies of pseudo
5829         registers outside of the libcall sequence.
5830
5831         * sh.md (casesi_shift_media): Add modes.
5832
5833         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5834         values in memory.
5835
5836 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5837
5838         * attribs.c (c_common_attribute_table): Move table and handlers
5839         to c-common.c.
5840         (format_attribute_table, lang_attribute_table,
5841         lang_attribute_common): Remove.
5842         (init_attributes): Replace NULL pointers with pointers to the
5843         empty table.
5844         (handle_packed_attribute, handle_nocommon_attribute,
5845         handle_common_attribute, handle_noreturn_attribute,
5846         handle_noinline_attribute, handle_always_inline_attribute,
5847         handle_used_attribute, handle_unused_attribute,
5848         handle_const_attribute, handle_transparent_union_attribute,
5849         handle_constructor_attribute, handle_destructor_attribute,
5850         handle_mode_attribute, handle_section_attribute,
5851         handle_aligned_attribute, handle_weak_attribute,
5852         handle_alias_attribute, handle_visibility_attribute,
5853         handle_no_instrument_function_attribute, handle_malloc_attribute,
5854         handle_no_limit_stack_attribute, handle_pure_attribute,
5855         handle_deprecated_attribute, handle_vector_size_attribute,
5856         vector_size_helper): Move to c-common.c.
5857         * c-common.c (c_common_attribute_table,
5858         handle_packed_attribute, handle_nocommon_attribute,
5859         handle_common_attribute, handle_noreturn_attribute,
5860         handle_noinline_attribute, handle_always_inline_attribute,
5861         handle_used_attribute, handle_unused_attribute,
5862         handle_const_attribute, handle_transparent_union_attribute,
5863         handle_constructor_attribute, handle_destructor_attribute,
5864         handle_mode_attribute, handle_section_attribute,
5865         handle_aligned_attribute, handle_weak_attribute,
5866         handle_alias_attribute, handle_visibility_attribute,
5867         handle_no_instrument_function_attribute, handle_malloc_attribute,
5868         handle_no_limit_stack_attribute, handle_pure_attribute,
5869         handle_deprecated_attribute, handle_vector_size_attribute,
5870         vector_size_helper): Move from attribs.c.
5871         * c-common.h (c_common_attribute_table,
5872         c_common_format_attribute_table): New.
5873         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5874         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5875         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5876         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5877         (LANG_HOOKS_INITIALIZER): Update.
5878         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5879         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5880         * target.h: Update comment.
5881         * tree.c (default_target_attribute_table): Remove.
5882         * tree.h (default_target_attribute_table, format_attribute_table,
5883         lang_attribute_table, lang_attribute_common): Remove.
5884 objc:
5885         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5886         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5887
5888 2002-04-24  Jason Merrill  <jason@redhat.com>
5889
5890         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5891         * dwarf2out.c (dwarf_attr_name): Support it.
5892         (gen_array_type_die): Emit it.
5893         (lookup_type_die): No special handling for VECTOR_TYPE.
5894         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5895
5896 2002-04-24  Richard Henderson  <rth@redhat.com>
5897
5898         * config/mips/mips.md (movdi_usd): Renumber.
5899
5900 2002-04-24  David S. Miller  <davem@redhat.com>
5901
5902         PR target/6420
5903         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5904         32-bit Sparc and current_function_returns_struct is true.
5905
5906 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5907
5908         * loop.c (canonicalize_condition): Use gen_int_mode.
5909
5910 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
5911
5912         * config/rs6000/altivec.h: Cleanup file.  Add non individual
5913         variants.
5914         (vec_vaddubm): New.
5915         (vec_vadduhm): New.
5916         (vec_vadduwm): New.
5917         (vec_vaddfp): New.
5918         (vec_vaddcuw): New.
5919         (vec_vaddubs): New.
5920         (vec_vaddsbs): New.
5921         (vec_vadduhs): New.
5922         (vec_vadduws): New.
5923         (vec_vaddsws): New.
5924         (vec_vand): New.
5925         (vec_vandc): New.
5926         (vec_vavgub): New.
5927         (vec_vavgsb): New.
5928         (vec_vavguh): New.
5929         (vec_vavgsh): New.
5930         (vec_vavguw): New.
5931         (vec_vavgsw): New.
5932         (vec_vrfip): New.
5933         (vec_vcmpbfp): New.
5934         (vec_vcmpequb): New.
5935         (vec_vcmpequh): New.
5936         (vec_vcmpequw): New.
5937         (vec_vcmpeqfp): New.
5938         (vec_vcmpgefp): New.
5939         (vec_vcmpgtub): New.
5940         (vec_vcmpgtsb): New.
5941         (vec_vcmpgtuh): New.
5942         (vec_vcmpgtsh): New.
5943         (vec_vcmpgtuw): New.
5944         (vec_vcmpgtsw): New.
5945         (vec_vcmpgtfp): New.
5946         (vec_vcmpgefp): New.
5947         (vec_vcfux): New.
5948         (vec_vcfsx): New.
5949         (vec_vctsxs): New.
5950         (vec_vctuxs): New.
5951         (vec_vexptefp): New.
5952         (vec_vrfim): New.
5953         (vec_lvx): New.
5954         (vec_lvebx): New.
5955         (vec_lvehx): New.
5956         (vec_lde): Add vector float variant.
5957         (vec_lvewx): New.
5958         (vec_lvxl): New.
5959         (vec_vlogefp): New.
5960         (vec_vmaddfp): New.
5961         (vec_vmhaddshs): New.
5962         (vec_vmaxub): New.
5963         (vec_vmaxsb): New.
5964         (vec_vmaxuh): New.
5965         (vec_vmaxsh): New.
5966         (vec_vmaxuw): New.
5967         (vec_vmaxsw): New.
5968         (vec_vmaxsw): New.
5969         (vec_vmaxfp): New.
5970         (vec_vmrghb): New.
5971         (vec_vmrghh): New.
5972         (vec_vmrghw): New.
5973         (vec_vmrglb): New.
5974         (vec_vmrglh): New.
5975         (vec_vmrglw): New.
5976         (vec_vminub): New.
5977         (vec_vminsb): New.
5978         (vec_vminuh): New.
5979         (vec_vminsh): New.
5980         (vec_vminuw): New.
5981         (vec_vminsw): New.
5982         (vec_vminfp): New.
5983         (vec_vmladduhm): New.
5984         (vec_vmhraddshs): New.
5985         (vec_msumubm): New.
5986         (vec_vmsummbm): New.
5987         (vec_vmsumuhm): New.
5988         (vec_vmsumshm): New.
5989         (vec_vmsumuhs): New.
5990         (vec_vmsumshs): New.
5991         (vec_vmuleub): New.
5992         (vec_vmulesb): New.
5993         (vec_vmuleuh): New.
5994         (vec_vmulesh): New.
5995         (vec_vmuloub): New.
5996         (vec_mulosb): New.
5997         (vec_vmulouh): New.
5998         (vec_vmulosh): New.
5999         (vec_vnmsubfp): New.
6000         (vec_vnor): New.
6001         (vec_vor): New.
6002         (vec_vpkuhum): New.
6003         (vec_vpkuwum): New.
6004         (vec_vpkpx): New.
6005         (vec_vpkuhus): New.
6006         (vec_vpkshss): New.
6007         (vec_vpkuwus): New.
6008         (vec_vpkswss): New.
6009         (vec_vpkshus): New.
6010         (vec_vpkswus): New.
6011         (vec_vperm): New.
6012         (vec_vrefp): New.
6013         (vec_vrlb): New.
6014         (vec_vrlh): New.
6015         (vec_vrlw): New.
6016         (vec_vrfin): New.
6017         (vec_vrsqrtefp): New.
6018         (vec_vsel): New.
6019         (vec_vslb): New.
6020         (vec_vslh): New.
6021         (vec_vslw): New.
6022         (vec_vsldoi): New.
6023         (vec_vsl): New.
6024         (vec_vslo): New.
6025         (vec_vspltb): New.
6026         (vec_vsplth): New.
6027         (vec_vspltw): New.
6028         (vec_vspltisb): New.
6029         (vec_vspltish): New.
6030         (vec_vspltisw): New.
6031         (vec_vsrb): New.
6032         (vec_vsrh): New.
6033         (vec_vsrw): New.
6034         (vec_vsrab): New.
6035         (vec_vsrah): New.
6036         (vec_vsraw): New.
6037         (vec_vsr): New.
6038         (vec_vsro): New.
6039         (vec_stvx): New.
6040         (vec_stvebx): New.
6041         (vec_stvehx): New.
6042         (vec_stvewx): New.
6043         (vec_stvxl): New.
6044         (vec_vsububm): New.
6045         (vec_vsubuhm): New.
6046         (vec_vsubuwm): New.
6047         (vec_vsubfp): New.
6048         (vec_vsubcuw): New.
6049         (vec_vsububs): New.
6050         (vec_vsubsbs): New.
6051         (vec_vsubuhs): New.
6052         (vec_vsubshs): New.
6053         (vec_vsubuws): New.
6054         (vec_vsubsws): New.
6055         (vec_vsum4ubs): New.
6056         (vec_vsum4sbs): New.
6057         (vec_vsum4shs): New.
6058         (vec_vsum2sws): New.
6059         (vec_vsumsws): New.
6060         (vec_vrfiz): New.
6061         (vec_vupkhsb): New.
6062         (vec_vupkhpx): New.
6063         (vec_vupkhsh): New.
6064         (vec_vupklsb): New.
6065         (vec_vupklpx): New.
6066         (vec_vupklsh): New.
6067         (vec_vxor): New.
6068
6069 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
6070
6071         PR c/5430
6072         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
6073         added literals from substracted literals.
6074         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
6075         (fold) [associate]: Preserve MINUS_EXPR if needed.
6076
6077 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
6078
6079         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
6080         are obsoleted.
6081
6082 2002-04-23  Tom Tromey  <tromey@redhat.com>
6083
6084         * gcc.c: Added --resource.  For PR java/6314.
6085
6086 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6087
6088         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
6089         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
6090         these libraries.
6091
6092 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
6093
6094         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
6095
6096 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
6097
6098         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
6099         workaround.
6100         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
6101         (ix86_expand_clrstr): Fix typo.
6102         * loop.c (gen_load_of_final_value): New.
6103         (loop_givs_rescan, strength_reduce, check_dbra_loop):
6104         Use it.
6105
6106 2002-04-23  Roger Sayle  <roger@eyesopen.com>
6107
6108         * builtins.c (builtin_memset_gen_str): New function.
6109         (expand_builtin_memset): Optimize the case of constant length, but
6110         unknown value.
6111
6112 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
6113
6114         * config/rs6000/altivec.h (vec_step): Remove extraneous
6115         parentheses.
6116         (vec_ctu): Cast return.
6117
6118 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
6119
6120         PR target/6413
6121         * function.h: (struct function): Add profile_label_no field.
6122         (current_function_profile_label_no): Define.
6123         * function.c: (profile_label_no): New static var.
6124         (expand_function_start): Increment it, and copy to
6125         current_function_profile_label_no.
6126         * output.h (profile_label_no): Delete.
6127         * final.c (profile_label_no): Delete.
6128         (profile_function): Use current_function_profile_label_no.
6129         (final_end_function): Don't increment profile_label_no here.
6130         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
6131         profile_label_no with current_function_profile_label_no.
6132         * config/pa/pa.c (current_function_number): Delete.
6133         (pa_output_function_prologue): Don't output profile label here.
6134         (hppa_profile_hook): Use label_no param rather than
6135         current_function_number.
6136         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
6137         * config/pa/pa.h: .. here.
6138         (FUNCTION_PROFILER): Output profile label here.
6139
6140 2002-04-22  Eric Christopher  <echristo@redhat.com>
6141
6142         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
6143         patch of 2002-04-09 due to binutils issues.
6144         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
6145
6146 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6147
6148         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
6149         constraint to 'o' for m=r and r=m alternatives.
6150         ("*movv8hi_internal1"): Same.
6151         ("*movv16qi_internal1"): Same.
6152         ("*movv4sf_internal1"): Same.
6153
6154 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
6155
6156         * rtl.h (RTX_FLAG): New macro.
6157         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
6158         * final.c (alter_subreg): Use macro to access rtx flag.
6159         * integrate.c (copy_rtx_and_substitute): Use new access macro.
6160         * print-rtl.c (print_rtx): Use new access macro.
6161
6162         * cse.c (insert): Check rtx code before accessing flag.
6163
6164         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
6165         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
6166         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
6167         convert_const_symbol_ref, make_canonical, make_alternative_compare,
6168         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
6169         simplify_test_exp, optimize_attrs, simplify_by_exploding,
6170         find_and_mark_used_attributes, unmark_used_attributes,
6171         add_values_to_cover, simplify_with_current_value,
6172         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
6173         copy_rtx_unchanging, main): Use new access macros.
6174
6175 2002-04-22  Tom Rix  <trix@redhat.com>
6176
6177         * expmed.c (init_expmed): Generate shifted constant once.
6178
6179 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
6180
6181         * c-lex.c (lex_charconst): Call convert to get constant in
6182         proper type; don't just smash the type field.
6183         Fixes PR c/6300.
6184
6185         * config.gcc: Add list of obsolete configurations.  Disallow
6186         building these without --enable-obsolete.
6187         * doc/install.texi: Document --enable-obsolete and obsoletion
6188         policy.  Mention obsoletion of individual targets in
6189         appropriate places.
6190
6191 2002-04-22  Richard Henderson  <rth@redhat.com>
6192
6193         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
6194
6195 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
6196
6197         PR f/6138.
6198         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
6199         (walk_fixup_memory_subreg): Likewise.
6200         (fixup_var_refs_insn): Adjust accordingly.
6201         (fixup_var_refs_1): Likewise.
6202
6203 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
6204
6205         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
6206         LIBPATH_ARCH64_SPEC): Define.
6207         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
6208         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
6209         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
6210         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
6211
6212 2002-04-22      Joel Sherrill <joel@OARcorp.com>
6213
6214         * gthr-rtems.h: Correct prototypes to remove warnings.
6215
6216 2002-04-22  Richard Henderson  <rth@redhat.com>
6217
6218         PR c/6344
6219         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
6220
6221         * gcse.c (free_insn_expr_list_list): New.
6222         (clear_modify_mem_tables): Use it.  Fix bit set usage.
6223         (canon_list_insert): Use EXPR_LISTs for expressions.
6224         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
6225
6226 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6227
6228         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
6229         file change and include code to _cpp_pop_buffer.
6230         * cpphash.h (struct pending_option): Predeclare.
6231         (struct cpp_reader): New member next_include_file.
6232         (_cpp_pop_file_buffer): Update.
6233         (_cpp_push_next_buffer): Update, rename.
6234         * cppinit.c (cpp_destroy): Free include chain and pending here.
6235         (cpp_finish_options): Simplify.
6236         (_cpp_push_next_buffer): Rename and clean up.
6237         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
6238         Clarify.
6239         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
6240
6241 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
6242
6243         * config/rs6000/altivec.h (vec_xor): Add variant for both args
6244         being vector signed int.
6245         (vec_andc): Same.
6246         (vec_xor): Add variant for both args being vector signed char.
6247         Remove redundant variant.
6248         (vec_andc): Same.
6249
6250 2002-04-21  David S. Miller  <davem@redhat.com>
6251
6252         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
6253         compare mode in output RTL.
6254
6255 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
6256
6257         * config/rs6000/rs6000.c (rs6000_override_options): Correct
6258         style and formatting of previous patch.
6259
6260 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
6261
6262         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
6263         flag_pic for ABI_AIX.
6264
6265 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6266
6267         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
6268         * cppfiles.c (read_include_file): Similarly.
6269         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
6270         uxstrdup ustrchr, ufputs): Similarly.
6271         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
6272         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
6273         cpp_ideq, parse_identifier, parse_number): Similarly.
6274         * cpplib.c (struct directive, dequote_string, D, run_directive,
6275         cpp_push_buffer): Similarly.
6276         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
6277         _cpp_create_definition, check_trad_stringification,
6278         cpp_macro_definition): Similarly.
6279
6280 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6281
6282         * cppmacro.c (funlike_invocation_p): Don't step back
6283         over CPP_EOF.
6284
6285 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
6286
6287         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
6288         labelno.
6289
6290 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
6291
6292         * doc/invoke.texi: Remove Chill references.
6293         * doc/gcc.texi: Update last modified date.
6294
6295 2002-04-20  Kazu Hirata  <kazu@hxi.com>
6296
6297         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
6298         push and pop.  Replace add.l with add.w.
6299
6300 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6301
6302         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
6303         multiply instructions for H8/300H case.
6304
6305 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
6306
6307         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
6308         Bum three instructions from each routine.
6309
6310 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6311
6312         * Makefile.in: Update.
6313         * decl.c (push_c_function_context, pop_c_function_context,
6314         mark_c_function_context): Rename for consistency.
6315         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
6316         * c-tree.h (push_c_function_context, pop_c_function_context,
6317         mark_c_function_context): Rename for consistency.
6318         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6319         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6320         * function.c (init_lang_status, save_lang_status,
6321         restore_lang_status, mark_lang_status, free_lang_status):
6322         Move to langhooks.h.
6323         (push_function_context_to, pop_function_context_from,
6324         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
6325         Update.
6326         * function.h (init_lang_status, save_lang_status,
6327         restore_lang_status, mark_lang_status, free_lang_status):
6328         Move to langhooks.h.
6329         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
6330         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
6331         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
6332         LANG_HOOKS_FUNCTION_INITIALIZER): New.
6333         (LANG_HOOKS_INITIALIZER): Update.
6334         (lhd_do_nothing_f): New.
6335         * langhooks.h (struct lang_hooks_for_functions): New.
6336         (struct lang_hooks): New hooks.
6337         * langhooks.c (lhd_do_nothing_f): New.
6338 objc:
6339         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
6340         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
6341
6342 2002-04-19  David S. Miller  <davem@redhat.com>
6343
6344         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
6345         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
6346
6347 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6348
6349         PR optimization/3756
6350         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
6351         x = ((int) y < 0) ? cst1 : cst2.
6352
6353 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
6354
6355         PR c/6358
6356         * function.c: Reapply patch for c/6358.
6357         (expand_function_end): Copy decl_rtl's mode, not
6358         current_function_return_rtx mode.
6359
6360 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
6361
6362         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
6363         targets.
6364
6365 2002-04-19  Tom Tromey  <tromey@redhat.com>
6366
6367         * doc/install.texi (Specific): Update status of Solaris 2.8.
6368         For PR libgcj/6158.
6369
6370 2002-04-19  Andreas Schwab  <schwab@suse.de>
6371
6372         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
6373         (PUT_REAL): Restore old definition.
6374
6375 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
6376             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6377
6378         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
6379         binutils 2.11.2 and higher generate smaller binaries than Sun's
6380         native tools.
6381
6382 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
6383
6384         PR c++/6352
6385         * toplev.c (rest_of_compilation): Do not defer functions for which
6386         TREE_SYMBOL_REFERENCED has already been set.
6387
6388 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
6389
6390         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
6391         alternative.
6392
6393 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
6394
6395         * builtins.c: Include langhooks.h.
6396         (lang_type_promotes_to): Remove.
6397         (expand_builtin_va_arg): Use new hook.
6398         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
6399         (simple_type_promotes_to): Move to c-typeck.c.
6400         * c-common.h (simple_type_promotes_to): Remove.
6401         * c-decl.c (duplicate_decls, grokdeclarator): Update.
6402         * c-format.c: Include langhooks.h.
6403         (check_format_types): Update.
6404         * c-tree.h (c_type_promotes_to): New.
6405         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
6406         (type_lists_compatible_p): Update.
6407         * langhooks-def.h (lhd_type_promotes_to): New.
6408         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
6409         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6410         * langhooks.c (lhd_type_promotes_to): New.
6411         * langhooks.h (struct lang_hooks_for_types): New hook.
6412         * tree.h (lang_type_promotes_to): Remove.
6413 objc:
6414         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
6415
6416 2002-04-18  Richard Henderson  <rth@redhat.com>
6417
6418         * function.c: Revert patch for c/6358.
6419
6420 2002-04-18  Richard Henderson  <rth@redhat.com>
6421
6422         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
6423         blocks.  Handle multiple references to the TRAP block.  Handle
6424         non-adjacent THEN and OTHER blocks.
6425
6426 2002-04-18  Richard Henderson  <rth@redhat.com>
6427
6428         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
6429         crash with no type for by-mode libcalls.
6430
6431         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
6432
6433 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
6434
6435         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
6436         __xtensa_nonlocal_goto): Use a syscall instructions to flush
6437         the register windows.
6438
6439 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6440
6441         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
6442         appropriate.  Document need for extended precision even when
6443         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
6444         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
6445         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
6446         instead of relying on later syntax error when REAL_WIDTH > 5.
6447         * real.c: Define NE based only on whether or not we have a
6448         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
6449         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
6450         define GET_REAL and PUT_REAL as simple memcpy operations; no
6451         need to byteswap or round.
6452         Use #error instead of #ifdef-ing out the entire file, for
6453         prompt error detection.
6454
6455         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
6456
6457 2002-04-18  David S. Miller  <davem@redhat.com>
6458
6459         * config/sparc/sparc.h (BRANCH_COST): Define.
6460
6461         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
6462         does it.
6463
6464 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
6465
6466         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
6467         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
6468         propagate_block calls after relaxation loop using new variable
6469         stabilized_prop_flags.
6470
6471 2002-04-18  Richard Henderson  <rth@redhat.com>
6472
6473         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
6474         (ia64_va_arg): Expect variable sized types by reference.
6475         * config/ia64/ia64-protos.h: Update.
6476         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
6477         ia64_function_arg_pass_by_reference.
6478
6479 2002-04-18  Richard Henderson  <rth@redhat.com>
6480
6481         * ifcvt.c: Include except.h.
6482         (block_has_only_trap): Break out from find_cond_trap.
6483         (find_cond_trap): Use it.  Always delete the trap block.
6484         (merge_if_block): Allow then block null.  Be less simplistic about
6485         what insns can end a block.
6486         * Makefile.in (ifcvt.o): Depend on except.h.
6487
6488         * config/ia64/ia64.md (trap, conditional_trap): New.
6489
6490 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6491
6492         PR c/6358
6493         * function.c (assign_parms): Assign hard current_function_return_rtx
6494         register here...
6495         (expand_function_end): ...not here.
6496
6497 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
6498
6499         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6500         * c-tree.h (c_incomplete_type_error): New.
6501         * c-typeck.c (require_complete_type, build_component_ref): Update.
6502         (incomplete_type_error): Rename.
6503         * langhooks-def.h (lhd_incomplete_type_error): New.
6504         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
6505         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
6506         * langhooks.c (lhd_incomplete_type_error): New.
6507         * langhooks.h (struct lang_hooks_for_types): New hook.
6508         * tree.c (size_in_bytes): Use new hook.
6509         * tree.h (incomplete_type_error): Remove.
6510 objc:
6511         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
6512
6513 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
6514
6515         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
6516         TARGET_FLOAT_FORMAT blocks.
6517
6518 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6519
6520         * doc/install.texi (Downloading the source): Do not mention Chill
6521         any longer, but mention Ada.
6522         (Configuration): Do not mention Chill any longer.
6523
6524 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
6525
6526         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
6527
6528 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
6529
6530         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
6531         in last patch.
6532
6533 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6534
6535         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
6536         instead of unsigned_type.
6537
6538 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
6539
6540         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
6541         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
6542         later.
6543
6544 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
6545
6546         * attribs.c (vector_type_node_list): New static variable.
6547         (handle_vector_size_attribute): Use it to avoid generating a
6548         new type node each time we are called.
6549
6550         * combine.c (subst): Avoid trying to make a vector mode subreg of
6551         an integer constant.
6552         (gen_lowpart_for_combine): Likewise.
6553
6554 2002-04-18  Roger Sayle  <roger@eyesopen.com>
6555             Jakub Jelinek  <jakub@redhat.com>
6556
6557         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
6558         for integer constant c (if x has unsigned type or sign bit is not
6559         set in c).  This folds the zero/sign extension into the bit-wise and
6560         operation.
6561
6562 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
6563
6564         PR middle-end/6205
6565         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
6566         otherwise xorps.
6567
6568 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
6569
6570         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
6571
6572 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
6573
6574         * gcc.c (read_specs): Detect and fail if an attempt is made to
6575         rename a spec string to an already existing string.
6576
6577 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6578
6579         * config/s390/s390.c (legitimize_pic_address): Do not generate
6580         illegal address constant without CONST.
6581
6582 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6583
6584         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6585         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6586
6587 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6588
6589         PR optimization/6305
6590         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6591         to make sure previous reloads are taken into account.  Generate
6592         better code if one operand is an in-range immediate constant.
6593
6594 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6595
6596         * doc/install.texi (Building): libgcj requires GNU make.
6597
6598 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6599
6600         PR bootstrap/6315
6601         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6602         even if hard quad and register is not floating.
6603         (movtf reg<-mem split): Disallow splitting if hard quad and
6604         register is floating.
6605         (movtf mem<-reg split): Likewise.
6606         * config/sparc/sparc.c (fp_register_operand): New predicate.
6607         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6608
6609 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6610
6611         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6612         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6613         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6614         UNPROTOIZE on command line.
6615         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6616         (in_system_include_dir): Use cpp_include_defaults (defined in
6617         cppdefault.o).
6618         * unprotoize.c: Delete file.
6619
6620 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6621
6622         * config/rs6000/altivec.h (vec_ld): Add array variants.
6623         (vec_lde): Same.
6624         (vec_ldl): Same.
6625
6626 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6627             Aldy Hernandez <aldyh@redhat.com>
6628
6629         * config/rs6000/altivec.h: Define __ALTIVEC__.
6630         (bool): New.
6631         (__pixel): New.
6632         (pixel): New.
6633         (vec_cfux): New.
6634         (vec_vmaddfp): New.
6635         (vec_vsldoi): New.
6636         Add parentheses to all macro arguments.
6637
6638 2002-04-16  Richard Henderson  <rth@redhat.com>
6639
6640         PR c++/6320
6641         * except.c (remove_eh_handler): Insert inner regions at beginning
6642         of sibling chain.  Refactor expressions.
6643
6644 2002-04-16  Richard Henderson  <rth@redhat.com>
6645
6646         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6647         * config/sparc/sol2-gas-bi.h: New file.
6648         * config.gcc (sparc*-solaris): Add it as needed.
6649         * configure.in (AS_SPARC64_FLAG): Remove check.
6650         * config.in, configure: Regenerate.
6651
6652         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6653
6654 2002-04-16  Richard Henderson  <rth@redhat.com>
6655
6656         * config/mips/mips.c (override_options): Don't override N32 for
6657         a 64-bit ISA.
6658
6659         PR 6202
6660         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6661         (HILO_delay): Set can_delay false.
6662
6663 2002-04-16  Dale Johannesen <dalej@apple.com>
6664
6665         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6666         instruction addresses.
6667         (rs6000_output_function_epilogue): Likewise.
6668
6669 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6670
6671         * c-parse.in (poplevel, compstmt_start,
6672         compstmt_primary_start): Add ending ';', in accordance
6673         with POSIX.
6674
6675 2002-04-16  Richard Henderson  <rth@redhat.com>
6676
6677         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6678         Adjust tm_file order to get TARGET_DEFAULT set properly.
6679         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6680         * doc/install.texi (sparc-solaris): Update.
6681
6682 2002-04-16  Dale Johannesen <dalej@apple.com>
6683
6684         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6685         comparison operands do not match each other or if modes of
6686         conditions do not match result.
6687
6688 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6689
6690         PR target/6305
6691         * config/s390/s390.md (mulsidi3): Set both subregs of the
6692         multiword register.
6693
6694 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6695
6696         * config/rs6000/altivec.h (vec_addc): Type check.
6697
6698 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6699
6700         PR middle-end/6279
6701         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6702
6703         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6704
6705 2002-04-15  Richard Henderson  <rth@redhat.com>
6706
6707         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6708         call_really_used_regs too.
6709
6710 2002-04-15  Richard Henderson  <rth@redhat.com>
6711
6712         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6713
6714 2002-04-15  David S. Miller  <davem@redhat.com>
6715
6716         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6717         as being CLOBBERed.
6718
6719 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6720
6721         PR c/6290
6722         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6723         CONST_VECTOR is { 0, ... 0 }.
6724
6725 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6726
6727         * doc/install.texi (Installing GCC: Configuration): Clarify
6728         the only supported ways to configure gcc.
6729
6730 2002-04-15  Roland McGrath  <roland@frob.com>
6731
6732         * config.gcc (alpha*-*-gnu*): New target configuration.
6733         * config/alpha/gnu.h: New file for it.
6734         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6735
6736 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6737
6738         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6739         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6740         * tree.h (expand_start_stmt_expr): Update prototype.
6741         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6742         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6743         on the STMT_EXPR created for the inline function.
6744
6745 2002-04-15  Richard Henderson  <rth@redhat.com>
6746
6747         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6748         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6749         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6750         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6751         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6752         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6753         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6754         Define __gnu_linux__, not gnu_linux.
6755         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6756
6757 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6758
6759         Remove Chill front end.
6760         * gcc.c (default_compilers): Remove Chill entries.
6761         * ch: Remove directory.
6762         * doc/frontends.texi: Remove information about Chill.
6763         * doc/sourcebuild.texi: Likewise.
6764         * doc/standards.texi: Likewise.
6765
6766 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6767
6768         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6769         (LONGLONG_STANDALONE): Define.
6770
6771 2002-04-15  David S. Miller  <davem@redhat.com>
6772
6773         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6774         Call emit_library_call with LCT_NORMAL.
6775         (sparc_initialize_trampoline): Use LCT_foo instead of
6776         magic constant in emit_library_call invocations.
6777         (sparc64_initialize_trampoline): Likewise.
6778         (sparc_profile_hook): Likewise.
6779         * config/sparc/sparc.md: Likewise.
6780
6781         * config/sparc/sparc.c (sparc_extra_constraint_check):
6782         Fix type of argument 'c'.
6783         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6784         Likewise.
6785
6786 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6787
6788         * diagnostic.h (output_buffer_state): Redefine.
6789         (output_format_decoder): New macro.
6790         (output_prefixing_rule): Likewise.
6791         (output_line_cutoff): Likewise.
6792         (diagnostic_format_decoder): Adjust.
6793         (diagnostic_prefixing_rule): Likewise.
6794         (diagnostic_line_cutoff): Likewise.
6795         (diagnostic_state): Likewise.
6796         (diagnostic_kind_count): Likewise.
6797         (diagnostic_buffer): Now a macro.
6798
6799         * diagnostic.c (diagnostic_buffer): Remove definition.
6800         (output_is_line_wrapping): Adjust.
6801         (set_real_maximum_length): Likewise.
6802         (output_set_maximum_length): Likewise.
6803         (init_output_buffer): Likewise.
6804         (lhd_print_error_function): Likewise.
6805         (output_do_verbatim): Likewise.
6806
6807 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6808
6809         * cpperror.c (print_location): Don't print include chain
6810         if line == 0.
6811         (cpp_begin_message): Update to use DL_ macros.
6812         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6813         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6814         cpp_notice, cpp_notice_from_errno): Remove.
6815         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6816         level.
6817         (cpp_errno): New.
6818         * cppexp.c (CPP_ICE): Remove.
6819         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6820         lex, integer_overflow, _cpp_parse_expr): Update.
6821         * cppfiles.c (read_include_file, find_include_file,
6822         handle_missing_header, _cpp_read_file, remap_filename): Update.
6823         * cpphash.h (enum error_type): Remove.
6824         (_cpp_begin_message): Update.
6825         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6826         cpp_handle_option, cpp_post_options): Update.
6827         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6828         skip_whitespace, parse_identifier, parse_slow, parse_string,
6829         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6830         cpp_interpret_charconst): Update.
6831         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6832         lex_macro_node, do_undef, glue_header_name, parse_include,
6833         do_include_common, read_flag, do_line, do_linemarker, do_ident,
6834         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6835         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6836         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6837         _cpp_pop_buffer, do_diagnostic): Update.
6838         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6839         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6840         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6841         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6842         cpp_notice, cpp_notice_from_errno): Remove.
6843         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6844         level.
6845         (cpp_errno): New.
6846         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6847         collect_args, enter_macro_context, save_parameter, parse_params,
6848         _cpp_create_definition, check_trad_stringification,
6849         cpp_macro_definition): Update.
6850         * cppmain.c (cpp_preprocess_file): Update.
6851         * fix-header.c (read_scan_file): Update.
6852
6853 2002-04-14  Andreas Schwab  <schwab@suse.de>
6854
6855         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6856
6857 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6858
6859         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6860
6861 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6862
6863         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6864         not gnu_hurd.
6865
6866 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
6867
6868         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6869
6870 2002-04-13      Joel Sherrill <joel@OARcorp.com>
6871
6872         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
6873         sparc-elf and sparc-rtems targets.
6874
6875 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6876
6877         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6878         defined, and __gnu_hurd__ wherever __GNU__ is defined.
6879         * arm/linux-elf.h: Likewise.
6880         * cris/aout.h: Likewise.
6881         * cris/linux.h: Likewise.
6882         * i370/linux.h: Likewise.
6883         * i386/gnu.h: Likewise.
6884         * i386/linux-aout.h: Likewise.
6885         * i386/linux-oldld.h: Likewise.
6886         * i386/linux.h: Likewise.
6887         * i386/linux64.h: Likewise.
6888         * ia64/linux.h: Likewise.
6889         * m68k/linux-aout.h: Likewise.
6890         * m68k/linux.h: Likewise.
6891         * mips/linux.h: Likewise.
6892         * pa/pa-linux.h: Likewise.
6893         * pj/linux.h: Likewise.
6894         * rs6000/sysv4.h: Likewise.
6895         * s390/linux.h: Likewise.
6896         * sh/linux.h: Likewise.
6897         * sparc/linux-aout.h: Likewise.
6898         * sparc/linux.h: Likewise.
6899         * sparc/linux64.h: Likewise.
6900         * xtensa/linux.h: Likewise.
6901
6902 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
6903
6904         * stmt.c (check_unique_operand_names): Expect operand names to
6905         be strings rather than identifiers.  Use simple_cst_equal to
6906         compare them.
6907         (resolve_operand_name_1): Make same identifier to string change here.
6908         * c-parse.in (asm_operand): Convert a named operand into a string.
6909         * cp/parse.y (asm_operand): Likewise.
6910
6911 2002-04-13  Andreas Schwab  <schwab@suse.de>
6912
6913         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6914
6915 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
6916
6917         Revert these changes:
6918
6919         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6920
6921         PR c++/5571
6922         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6923
6924 2002-04-12  Richard Henderson  <rth@redhat.com>
6925
6926         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6927         (sparc*-*-solaris): Clean up header files.
6928         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6929         and plan on generating 64-bit code.
6930         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6931         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6932         * config/sparc/sol2-sld-64.h: Rename ...
6933         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
6934         for AS_SPARC64_FLAG not defined.
6935         * config/sparc/sol2-gld-bi.h: New.
6936         * config/sparc/sol2-sld.h: Remove.
6937         * config/sparc/sol26-sld.h: New.
6938         * config/sparc/sol2.h: Tidy comments.
6939         * doc/install.texi: Document sparc-solaris configury changes.
6940
6941 2002-04-12  Richard Henderson  <rth@redhat.com>
6942
6943         * recog.c (offsettable_address_p): Match the logic in adjust_address.
6944
6945         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6946         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
6947
6948 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6949
6950         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6951
6952 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
6953
6954         * pa.c (pa_can_combine_p): Call extract_insn before calling
6955         constrain_operands.
6956
6957 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
6958
6959         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6960         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6961         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6962         (CPP_PREDEFINES): Handle __declspec.
6963         * config/i386/t-interix (USER_H): Remove.
6964
6965 2002-04-12  DJ Delorie  <dj@redhat.com>
6966
6967         * integrate.c (compare_blocks): Make comparisons safe for when
6968         sizeof(int) < sizeof(char *).
6969         (find_block): Likewise.
6970
6971 2002-04-12  Jan Hubicka  <jh@suse.cz>
6972             David Edelsohn  <edelsohn@gnu.org>
6973
6974         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6975         registers.
6976         (symbol_ref_operand): New.
6977         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6978         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6979
6980 2002-04-12  Andreas Schwab  <schwab@suse.de>
6981
6982         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6983         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6984         overrides the definition in config/svr4.h.
6985
6986 2002-04-12      Eric Norum <eric.norum@usask.ca>
6987
6988         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6989         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6990         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6991         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6992         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6993         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6994         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6995         definitions to config/rtems.h and make the targets more similar.
6996
6997 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6998
6999         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
7000         POINTERS_EXTEND_UNSIGNED.
7001         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
7002         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
7003
7004         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
7005         not specified.
7006
7007 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
7008
7009         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
7010         depends on TARGET_SHMEDIA, not TARGET_SH5.
7011
7012 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
7013
7014         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
7015         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
7016
7017 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
7018
7019         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
7020         no r0 clobber.
7021
7022 2002-04-12  Andreas Schwab  <schwab@suse.de>
7023
7024         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
7025
7026 2002-04-12  Richard Henderson  <rth@redhat.com>
7027
7028         PR bootstrap/4191
7029         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
7030
7031         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
7032         modes spanning multiple hard regs.
7033
7034         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
7035
7036 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7037
7038         * pa.c (pa_output_function_prologue): Don't accumulate the total
7039         number of code bytes when using TARGET_64BIT, or gas, SOM and not
7040         the portable runtime.
7041         (output_deferred_plabels): Handle 64bit plabels.
7042         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
7043         generating pic code using the GAS assembler for object formats that
7044         are not SOM (ie., ELF32 and ELF64).
7045         (output_millicode_call): Check attribute type if attribute length is 28.
7046         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
7047         dbr_sequence_length once.
7048         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
7049         dbr_sequence_length once.
7050         * pa.h (TARGET_SOM): Define if not defined.
7051         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
7052         with GAS and not SOM.
7053         (jump, call_internal_reg, call_value_internal_reg): Likewise.
7054         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
7055
7056 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7057
7058         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
7059         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
7060         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
7061         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
7062         elfos.h and dbxelf.h values are fine now.
7063         * config/i386/freebsd.h, config/alpha/freebsd.h
7064         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
7065
7066 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7067
7068         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
7069         or set Acpu or Amachine.  Reformat.
7070         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7071         define.
7072         (LINK_SPEC): Do not need to undef.
7073         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
7074         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
7075         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7076         define.
7077         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
7078         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
7079         (LINK_SPEC): Do not need to undef.
7080         (DONT_USE_BUILTIN_SETJMP): Do not define.
7081         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
7082         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
7083         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
7084         Remove trailing spaces.
7085         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
7086         __ELF__, or set Acpu or Amachine.  Reformat.
7087         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
7088         define.
7089
7090 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7091
7092         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
7093         all other *-*-freebsd* targets.
7094
7095 2002-04-11  Richard Henderson  <rth@redhat.com>
7096
7097         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
7098
7099 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
7100
7101         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
7102         Include {cpu}/{cpu}.h thru tm_file.
7103         (alpha*-*-linux*ecoff): Remove target.
7104         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
7105         (LINK_SPEC): Remove, is not OS independent.
7106         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
7107         (LINK_SPEC): Do not need to #undef any longer.
7108         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
7109         any longer.
7110         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
7111         __ELF__.
7112         (LINK_SPEC): Moved here from alpha/elf.h.
7113         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
7114         SUB_CPP_PREDEFINES.
7115         * config/alpha/linux-ecoff.h: Remove.
7116         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
7117         (CPP_SPEC): Define _POSIX_SOURCE as needed.
7118         (CPP_SUBTARGET_SPEC): Do not define.
7119         (LINK_SPEC): Do not need to #undef any longer.
7120         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
7121         * config/alpha/vms.h: Likewise.
7122
7123 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
7124
7125         * doc/extend.texi: Remove old claim that typedefs cannot have
7126         an alignment attribute.
7127
7128 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7129
7130         PR optimization/6177
7131         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
7132         bitpos is 0 and bitsize CONCAT size.
7133
7134 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
7135
7136         PR c/6223
7137         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
7138
7139 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
7140
7141         * config/alpha/freebsd.h: Minor reformatting.
7142         (CPP_SPEC): Define ELF and add cpp_subtarget.
7143         (ASM_SPEC): No longer needed.
7144
7145 2002-04-11  Richard Henderson  <rth@redhat.com>
7146
7147         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
7148         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
7149         (dimode mem/zero splitter): New.
7150
7151 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
7152
7153         * config/cris/cris.c (cris_override_options): Tweak error message
7154         for PIC not implemented.
7155
7156         * config/cris/cris.h: Tweak comments related to parameter-passing.
7157
7158         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
7159
7160 2002-04-10  Richard Henderson  <rth@redhat.com>
7161
7162         * except.c (add_ehl_entry): Allow duplicates after landing pad
7163         creation.
7164
7165 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
7166
7167         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
7168
7169 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
7170
7171         * c-decl.c (c_init_decl_processing): Move generation of
7172         decls for g77_integer_type_node and friends from here ...
7173         * c-common.c (c_common_nodes_and_builtins): ... to here.
7174
7175 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
7176
7177         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
7178         is only used as frame pointer when frame_pointer_needed is true.
7179
7180 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
7181
7182         PR target/817
7183         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
7184         for the fact that the pool entry uses two words.
7185         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
7186         1k bytes.
7187         (movdf_soft_insn): Similarly.
7188         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
7189         for the fact that the pool entry uses three words.
7190
7191 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
7192
7193         * config/mips/mips.c (mips_va_arg): When using the struct version
7194         of the EABI va_list, allow arguments in the register save area to
7195         take up less room than a stack argument.
7196
7197 2002-04-10  Richard Henderson  <rth@redhat.com>
7198
7199         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
7200         if EXPAND_INITIALIZER.
7201
7202 2002-04-09  Richard Henderson  <rth@redhat.com>
7203
7204         * config/alpha/alpha.md (movdi_er_maybe_g): New.
7205         * config/alpha/alpha.c (alpha_expand_mov): Use it.
7206
7207 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
7208
7209         PR optimization/6233
7210         * rtlanal.c (pure_call_p): New function.
7211         * rtl.h (pure_call_p): Declare.
7212         * loop.c (prescan_loop): Use it to set has_nonconst_call.
7213         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
7214
7215 2002-04-09  Eric Christopher  <echristo@redhat.com>
7216
7217         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
7218         information to .comm directive.
7219
7220 2002-04-09  Richard Henderson  <rth@redhat.com>
7221
7222         PR c/5078
7223         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
7224
7225 2002-04-09  Richard Henderson  <rth@redhat.com>
7226
7227         * basic-block.h (flow_delete_block_noexpunge): Declare.
7228         (expunge_block_nocompact): Declare.
7229         * cfg.c (expunge_block_nocompact): Split out from ...
7230         (expunge_block): ... here.
7231         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
7232         (flow_delete_block_noexpunge): Split out from ...
7233         (flow_delete_block): ... here.
7234         * cfgcleanup.c (delete_unreachable_blocks): Compact while
7235         removing dead blocks.
7236         * except.c (exception_handler_labels): Remove.
7237         (exception_handler_label_map): New.
7238         (struct eh_region): Add aka member.
7239         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
7240         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
7241         (for_each_eh_label, for_each_eh_label_1): New.
7242         (init_eh): Register exception_handler_label_map.
7243         (free_eh_status): Use free_region.
7244         (find_exception_handler_labels): Use the map, not the list.
7245         (remove_exception_handler_label): Likewise.
7246         (maybe_remove_eh_handler): Likewise.
7247         (remove_eh_handler): Use the region aka bitmap.
7248         * except.h (exception_handler_labels): Remove.
7249         (for_each_eh_label): Declare.
7250         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
7251         * loop.c (invalidate_loops_containing_label): New.
7252         (find_and_verify_loops): Use it.  Use for_each_eh_label.
7253         * sched-rgn.c (is_cfg_nonregular): Use
7254         current_function_has_exception_handlers.
7255
7256 2002-04-09  Richard Henderson  <rth@redhat.com>
7257
7258         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
7259         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
7260         Do not return changed status.
7261         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
7262         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
7263         New functions that do return changed status.
7264         * sbitmap.h: Update decls.
7265         * gcse.c, lcm.c: Use _cg functions as needed.
7266
7267 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
7268
7269         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
7270         (sh64-*-elf*, sh-*-rtemself*): Likewise.
7271         * config/sh/embed_bb.c: New file.
7272         * config/sh/embed-elf.h: New file.
7273         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
7274         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
7275         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7276         __PTRDIFF_TYPE__ .
7277         (SUBTARGET_CPP_PTR_SPEC): Don't define.
7278         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
7279         Add subtarget_asm_endian_spec.
7280         (ASM_SPEC): Use subtarget_asm_endian_spec.
7281         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
7282         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
7283         (WCHAR_UNSIGNED): Define.
7284         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
7285         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7286         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
7287         Fix value.
7288         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
7289         (sh_adjust_cost): Likewise.
7290         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
7291         __PTRDIFF_TYPE__ .
7292         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
7293         (WCHAR_TYPE_SIZE): Likewise.
7294         (ASM_SPEC): Use subtarget_asm_endian_spec.
7295         (SH_ELF_WCHAR_TYPE): #undef/ #define.
7296         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
7297         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
7298         (MAX_WCHAR_TYPE_SIZE): Don't #define .
7299         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
7300         (USER_LABEL_PREFIX): Don't #undef /#define .
7301         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
7302         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
7303         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
7304         (ASM_SPEC): Likewise.
7305         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
7306         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
7307         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
7308         (LIB2FUNCS_EXTRA): Define.
7309         * t-sh64 (LIB2FUNCS_EXTRA): Define.
7310         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
7311         (LIB1ASMFUNCS_CACHE): Define.
7312         (LIB2FUNCS_EXTRA): Redefine empty.
7313
7314 2002-04-08  Richard Henderson  <rth@redhat.com>
7315
7316         * reorg.c (get_branch_condition): Use reversed_comparison_code.
7317
7318 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7319
7320         * config/m68hc11/larith.asm (__map_data_section): Fix condition
7321         and optimize for size.
7322         (__do_global_ctors): Fix pointer comparison.
7323         (__do_global_dtors): Likewise.
7324
7325 2002-04-09  David S. Miller  <davem@redhat.com>
7326
7327         * config/sparc/sparc.c (sparc_extra_constraint_check): New
7328         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
7329         allow reloading pseudos.
7330         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
7331         * config/sparc/sparc-protos.h: Declare it.
7332
7333         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
7334         unsigned comparison warning.
7335         (output_restore_regs): Mark leaf_function as unused.
7336
7337 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7338
7339         * expr.c (is_aligning_offset): New function.
7340         (expand_expr, case COMPONENT_EXPR): Call it.
7341
7342 2002-04-08  David S. Miller  <davem@redhat.com>
7343
7344         PR target/6082
7345         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
7346
7347         Make init_priority work on Sparc when using GNU ld.
7348         * config/sparc/linux.h, config/sparc/linux64.h,
7349         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
7350         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
7351         * config/sparc/sol2-gld.h: New file to do the same.
7352         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
7353         sparc/sol2-gld.h to tm_file.
7354
7355         PR optimization/4328
7356         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
7357         * doc/md.texi: Document it.
7358         * config/sparc/sparc.md (movdi_insn_sp64_novis,
7359         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
7360         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
7361         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
7362         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
7363
7364 2002-04-08  Andreas Jaeger  <aj@suse.de>
7365
7366         * stmt.c (expand_asm_operands): Revert last patch from Richard
7367         Henderson.
7368
7369 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7370
7371         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
7372         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
7373
7374 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7375
7376         * doc/contrib.texi (Contributors): Add David O'Brien.
7377
7378 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
7379
7380         * configure.in (auto-build.h): Use target_alias and build_alias
7381         when running configure.
7382         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
7383         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
7384         * configure: Regenerate.
7385
7386 2002-04-07  David S. Miller  <davem@redhat.com>
7387
7388         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
7389
7390 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7391
7392         PR 5933
7393         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
7394         generating 32-bit pic code.
7395
7396 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
7397
7398         * cppinit.c (cpp_create_reader): Initialize
7399         discard_comments_in_macro_exp.
7400         (COMMAND_LINE_OPTIONS): Add "-CC" option.
7401         (cpp_handle_option): Handle "-CC" option.
7402         * cpplex.c (save_comment): If saving a C++ comment in
7403         a directive, convert it to a C comment.
7404         (_cpp_lex_direct): Pass second comment start character to
7405         save_comment to indicate comment type.
7406         * cpplib.c (_cpp_handle_directive): If processing
7407         a "#define" directive and discard_comments_in_macro_exp
7408         is false,  re-enable saving of comments.
7409         (lex_macro_node): If discard_comments_in_macro_exp is false,
7410         discard any comments before the macro identifier.
7411         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
7412         member.
7413         * cppmacro.c (cpp_get_token): If expanding a macro while
7414         processing a directive, discard any comments we might encounter.
7415         (parse_params): If discard_comments_in_macro_exp is false,
7416         ignore comments in the macro parameter list.
7417         * gcc.c (cpp_unique_options): Add "-CC" option.
7418         (option_map): Map "--comments-in-macros" to "-CC".
7419         * doc/cppopts.texi: Document "-CC" option.
7420         * f/lang-specs.h: Add "-CC" option.
7421         * testsuite/gcc.dg/cpp/maccom1.c: New test.
7422         * testsuite/gcc.dg/cpp/maccom2.c: New test.
7423         * testsuite/gcc.dg/cpp/maccom3.c: New test.
7424         * testsuite/gcc.dg/cpp/maccom4.c: New test.
7425         * testsuite/gcc.dg/cpp/maccom5.c: New test.
7426         * testsuite/gcc.dg/cpp/maccom6.c: New test.
7427
7428 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7429
7430         PR middle-end/6180
7431         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
7432
7433 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
7434
7435         PR c++/5571
7436         * stor-layout.c (layout_decl): Reset the RTL for the decl.
7437
7438         PR opt/5120
7439         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
7440         RTX_UNCHANGING_P for the functions arguments when a tail call
7441         is made.
7442
7443 2002-04-06  Jason Merrill  <jason@redhat.com>
7444
7445         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
7446         (parse_options_and_default_flags): Set them appropriately.
7447         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
7448
7449 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
7450
7451         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
7452         here.
7453
7454         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
7455         semicolon.
7456
7457         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
7458         types come in by-reference.  Fix typo in comment.
7459
7460 2002-04-05  David S. Miller  <davem@redhat.com>
7461
7462         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
7463         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
7464         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
7465         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
7466
7467 2002-04-05  David S. Miller  <davem@redhat.com>
7468
7469         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
7470         are not going to emit return instructions, emit at least a nop
7471         for the sake of sane backtraces.
7472
7473 2002-04-05  Richard Henderson  <rth@redhat.com>
7474
7475         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
7476
7477 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
7478
7479         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
7480
7481 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
7482
7483         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
7484         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
7485         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
7486
7487 2002-04-05  Andreas Schwab  <schwab@suse.de>
7488
7489         * c-convert.c: Include c-common.h.
7490         * Makefile.in (c-convert.o): Updated.
7491
7492 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7493
7494         * mklibgcc.in: Use separate libgcc.map for each multilib.
7495         * Makefile.in (distclean): Don't remove libgcc.map here.
7496
7497 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
7498
7499         * Makefile.in (s-mlib): Handle --disable-multilib by separate
7500         genmultilib invocation.
7501
7502 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
7503
7504         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
7505         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
7506         to num_gprs for symmetry.
7507         * config/mips/mips.c: Adjust accordingly.
7508
7509 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
7510
7511         * c-common.c (truthvalue_conversion): Rename, update.
7512         * c-common.h (c_common_truthvalue_conversion): New.
7513         * c-convert.c (convert): Update.
7514         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7515         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
7516         * c-typeck.c (build_binary_op, build_unary_op,
7517         build_conditional_expr): Update.
7518         * fold-const.c (constant_boolean_node, fold): Use langhook.
7519         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
7520         * langhooks.h (struct lang_hooks): New hook.
7521         * stmt.c (expand_decl_cleanup): Use langhook.
7522         * tree.h (truthvalue_conversion): Remove.
7523 objc:
7524         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
7525
7526 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
7527
7528         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
7529         Add rules to make null object file.
7530
7531 2002-04-04  Jim Blandy  <jimb@redhat.com>
7532
7533         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
7534         macro formal parameter names.
7535
7536 2002-04-04  David S. Miller  <davem@redhat.com>
7537
7538         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
7539
7540 2002-04-04  Richard Henderson  <rth@redhat.com>
7541
7542         PR middle-end/5099
7543         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
7544         Support copies into and out of memory.  Don't accept allows_reg
7545         and allows_mem as gospel.
7546
7547 2002-04-04  Richard Henderson  <rth@redhat.com>
7548
7549         PR opt/6165
7550         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
7551         (write_dependence_p): Likewise.
7552
7553 2002-04-04  Richard Henderson  <rth@redhat.com>
7554
7555         * predict.c (estimate_bb_frequencies): Do frequency calculation
7556         with a volatile temporary.
7557
7558 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
7559
7560         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
7561
7562 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7563
7564         PR c++/6119
7565         * final.c (final_start_function): Don't bump profile_label_no here...
7566         (final_end_function): ...but here.
7567
7568 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7569
7570         * config/sparc/sparc.md (pic): New attribute.
7571         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
7572         into stack slots.
7573         (split after do_builtin_setjmp_setup): New.
7574
7575 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7576
7577         PR fortran/6106
7578         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
7579         change.
7580
7581 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7582
7583         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7584         UNITS_PER_WORD for zero sized aggregates.
7585
7586 2002-04-03  David S. Miller  <davem@redhat.com>
7587
7588         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7589         one-character spec for this, just use %(link_gcc_c_sequence).
7590
7591 2002-04-03  David S. Miller  <davem@redhat.com>
7592
7593         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7594         handling.
7595
7596 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7597
7598         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7599         (DWARF_FRAME_RETURN_COLUMN): Move.
7600         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7601         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7602         * pa.c (except.h, predict.h): Include.
7603         (FRP): Delete.
7604         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7605         (output_ascii): Add cast.
7606         (store_reg_modify): Revise to add frame notes.
7607         (set_reg_plus_d): Likewise.
7608         (compute_frame_size): Include space for eh data registers in frame if
7609         the current function calls eh_return.
7610         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7611         function calls eh_return.  Save eh data registers if the current
7612         function calls eh_return.  Fix code to add frame notes.  Emit
7613         blockage to prevent insns with frame notes being scheduled in the
7614         delay slot of calls.
7615         (hppa_expand_epilogue): Restore eh data registers and do final stack
7616         adjustment if the current function calls eh_return.  Don't add frame
7617         notes.
7618         (output_call): Revise for change in length of call insn.  Don't do
7619         return pointer adjustment for an unconditional jump in the delay slot
7620         of a call when using frame notes.
7621         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7622         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7623         (ARG_POINTER_CFA_OFFSET): Define.
7624         * pa.md (return_external_pic): New pattern.
7625         (prologue): Correct formatting.  Use return_external_pic if current
7626         function calls eh_return.
7627         (call_internal_symref, call_value_internal_symref,
7628         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7629         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7630         respectively.
7631         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7632
7633         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7634         list of targets to check using "nop" insn.
7635         * configure: Rebuilt.
7636
7637 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7638
7639         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7640
7641 2002-04-03  David S. Miller  <davem@redhat.com>
7642
7643         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7644         library sequence passed to the linker.
7645         (LINK_COMMAND_SPEC): Use it.
7646         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7647         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7648         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7649
7650 2002-04-03  Jason Merrill  <jason@redhat.com>
7651
7652         * except.c (struct eh_status): Remove protect_list.
7653         (begin_protect_partials, end_protect_partials): Remove.
7654         (add_partial_entry): Remove.
7655         * except.h: Remove prototypes.
7656
7657         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7658         expand_decl_cleanup_eh.
7659
7660         PR c++/5636
7661         * tree.h (CLEANUP_EH_ONLY): New macro.
7662         * stmt.c (expand_decl_cleanup_eh): New fn.
7663         (expand_cleanups): Check CLEANUP_EH_ONLY.
7664         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7665         Use expand_decl_cleanup_eh.
7666         (expand_stmt): Adjust.
7667         * c-common.h: Adjust prototype.
7668
7669 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7670
7671         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7672         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7673         (cris_target_asm_function_epilogue): Ditto.
7674         (cris_initial_frame_pointer_offset): Ditto.
7675         (cris_simple_epilogue): Ditto.
7676         (cris_expand_builtin_va_arg): Variable-size types come in
7677         by-reference.
7678
7679 2002-04-03  David S. Miller  <davem@redhat.com>
7680
7681         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7682         little-endian.
7683         (set_fast_math): Correct 'fsr' type.
7684
7685 2002-04-03  Richard Henderson  <rth@redhat.com>
7686
7687         PR opt/3569
7688         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7689         * toplev.c (check_global_declarations): Use it.
7690         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7691         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7692         (LANG_HOOKS_DECLS): Add it.
7693         * langhooks.c (lhd_warn_unused_global_decl): New.
7694         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7695         * c-objc-common.c (c_warn_unused_global_decl): New.
7696         * c-tree.h (c_warn_unused_global_decl): Declare.
7697         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7698
7699 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7700
7701         * langhooks-def.h (lhd_set_decl_assembler_name,
7702         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7703         (LANG_HOOKS_INITIALIZER): Update.
7704         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7705         * langhooks.h (struct lang_hooks): New hook.
7706         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7707         (lang_set_decl_assembler_name): Remove.
7708         (init_obstacks): Don't set hook.
7709         (decl_assembler_name): New function.
7710         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7711         (decl_assembler_name): New.
7712         (lang_set_decl_assembler_name): Remove.
7713
7714 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7715
7716         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7717         works properly with .hidden symbols.
7718         * configure: Rebuilt.
7719         * config.in: Rebuilt.
7720         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7721         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7722         properly with .hidden symbols.
7723
7724 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7725
7726         PR middle-end/6102
7727         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7728         USE argument.
7729
7730 2002-04-03  Richard Henderson  <rth@redhat.com>
7731
7732         PR opt/4120
7733         * sched-rgn.c (sets_likely_spilled): New.
7734         (sets_likely_spilled_1): New.
7735         (add_branch_dependences): Use it.
7736
7737 2002-04-02  Richard Henderson  <rth@redhat.com>
7738
7739         PR opt/4311
7740         * loop.h (LOOP_FIRST_PASS): New.
7741         * loop.c (strength_reduce): Mind it when deciding to unroll.
7742         * toplev.c (rest_of_compilation): Set it.
7743
7744 2002-04-02  David S. Miller  <davem@redhat.com>
7745
7746         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7747         mems_ok_for_ldd_peep when the order of the loads being examined
7748         is reversed.
7749         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7750         existing comment to increase comprehension of this situation.
7751
7752 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7753
7754         * config/sh/sh.md: Don't use union real_extract.
7755
7756 2002-04-02  Richard Henderson  <rth@redhat.com>
7757
7758         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7759
7760 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7761
7762         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7763         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7764         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7765         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7766         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7767         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7768         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7769         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7770         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7771         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7772         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7773         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7774         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7775         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7776         Include as many configury headers via tm_file as possible.  This
7777         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7778         * config/openbsd-oldgas.h: New file.
7779         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7780         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7781         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7782         config/i386/i386-coff.h, config/i386/i386-interix.h,
7783         config/i386/iscdbx.h, config/i386/linux-aout.h,
7784         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7785         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7786         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7787         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7788         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7789         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7790         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7791         config/i386/vxi386.h: Do not directly include configury headers.
7792         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7793         Directly include configury headers that are no longer automatically
7794         included by the above headers.
7795         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7796         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7797         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7798         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7799         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7800         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7801         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7802         (TARGET_VERSION): Define.
7803         * config/i386/beos-elf.h, config/i386/freebsd.h,
7804         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7805         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7806         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7807         config/i386/sco5.h, config/i386/sysv4.h
7808         (TARGET_VERSION): Do not need to protect.
7809         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7810         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7811         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7812         config/i386/i386-interix.h, config/i386/linux-aout.h,
7813         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7814         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7815         (YES_UNDERSCORES): Do not define - not needed.
7816         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7817         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7818         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7819         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7820         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7821         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7822         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7823         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7824
7825 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
7826             Richard Henderson  <rth@redhat.com>
7827
7828         PR c/5484
7829         * function.c (assign_temp): Accept either type or decl argument.
7830         Detect variables whose size is too large to fit into an integer.
7831         * stmt.c (expand_decl): Pass the decl, not the type.
7832
7833 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7834
7835         * protoize.c: Match include directory usage with cppdefault.c.
7836
7837 2002-04-03  Jeffrey A Law  (law@redhat.com)
7838             Hans-Peter Nilsson  <hp@bitrange.com>
7839
7840         * combine.c (simplify_comparison): Avoid narrowing a comparison
7841         with a paradoxical subreg when doing so would drop signficant bits.
7842
7843 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
7844
7845         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7846         if POINTERS_EXTEND_UNSIGNED is defined.
7847
7848 2002-04-02  Richard Henderson  <rth@redhat.com>
7849
7850         PR opt/3967
7851         * local-alloc.c (contains_replace_regs): LO_SUM may contain
7852         replace regs.
7853
7854 2002-04-02  Richard Henderson  <rth@redhat.com>
7855
7856         * doc/standards.texi: Document required freestanding libc entry points.
7857
7858 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
7859
7860         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7861         associated splitter.  Remove MQ constraint.
7862         (ctrdi_internal4): Correct CCmode clobber.
7863
7864 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7865
7866         * milli64.S ($$dyncall): New function.
7867         * t-linux (LIB1ASMFUNCS): Revise module list.
7868         (LIB1ASMSRC): Use pa/milli64.S.
7869
7870 2002-04-02  Richard Henderson  <rth@redhat.com>
7871
7872         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7873         rename solaris_sys_varargs_h.
7874
7875 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7876
7877         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7878         the same mode as its component.
7879
7880 2002-04-02  Richard Henderson  <rth@redhat.com>
7881
7882         PR opt/190
7883         * final.c (this_is_asm_operands): Export.
7884         * output.h (this_is_asm_operands): Declare.
7885         * config/i386/i386.c (print_operand): Error odd asm operands.
7886
7887 2002-04-02  Richard Henderson  <rth@redhat.com>
7888
7889         PR opt/420
7890         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7891
7892 2002-04-01  Richard Henderson  <rth@redhat.com>
7893
7894         PR target/1538
7895         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7896         * fixinc/fixincl.x: Rebuild.
7897
7898 2002-04-01  Richard Henderson  <rth@redhat.com>
7899
7900         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7901         (atomic_alloc, atomic_free): New.
7902         (SIZE, MASK_FOR, PTR_IN): New.
7903         (emergency_reg_state, emergency_reg_state_free): New.
7904         (emergency_labeled_state, emergency_labeled_state_free): New.
7905         (reg_state_alloced, labeled_state_alloced): New.
7906         (alloc_reg_state, free_reg_state): New.
7907         (alloc_label_state, free_label_state, free_label_states): New.
7908         (push, pop, dup_state_stack, free_state_stack): Use them.
7909         (desc_label_state): Likewise.
7910         (uw_frame_state_for): Free label states and state stack.
7911         (uw_update_reg_address): Eliminate warnings.
7912
7913 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
7914
7915         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7916         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7917
7918 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7919
7920         * c-decl.c (grokdeclarator): Update.
7921         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7922         * c-tree.h (c_mark_addressable): New.
7923         * c-typeck.c (default_function_array_conversion, build_unary_op,
7924         build_array_ref, convert_for_assignment): Update.
7925         (mark_addressable): Rename.
7926         * calls.c (try_to_integrate, expand_call): Use langhook.
7927         * expr.c (expand_expr): Use langhook.
7928         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7929         * langhooks.h (struct lang_hooks): New hook.
7930         * stmt.c (expand_asm_operands): Use langhook.
7931         * tree.h (mark_addressable): Remove.
7932 objc:
7933         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7934
7935 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7936
7937         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7938         in previous change.
7939
7940 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7941
7942         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7943         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7944
7945 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7946
7947         * c-common.c (unsigned_conversion_warning, convert_and_check,
7948         unsigned_type, signed_type, shorten_compare,
7949         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7950         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7951         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7952         New.
7953         * c-decl.c (grokdeclarator): Update.
7954         * c-format.c (check_format_types): Update.
7955         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7956         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7957         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7958         * convert.c (convert_to_integer): Use new hooks.
7959         * expmed.c (make_tree): Use new hooks.
7960         * expr.c (store_expr): Use new hooks.
7961         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7962         all_ones_mask_p, unextend, fold): Use new hooks.
7963         * langhooks.h (struct lang_hooks_for_types): New hooks.
7964         * tree.h (signed_or_unsigned_type, signed_type,
7965         unsigned_type): Remove.
7966 objc:
7967         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7968         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7969
7970 2002-03-31  Richard Henderson  <rth@redhat.com>
7971
7972         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7973         (desc_frgr_mem): Fix reference to f16-f31.
7974
7975 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7976
7977         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7978         RTVEC_ELT): Const-ify.
7979         * varray.h (VARRAY_CHECK): Const-ify.
7980         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7981         ggc_mark_rtvec, ggc_mark): Const-ify.
7982
7983 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7984
7985         * diagnostic.c: Include langhooks-def.h.
7986         * Makefile.in (diagnostic.o): Update.
7987
7988 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7989
7990         * c-common.c (c_unsafe_for_reeval): Rename.
7991         * c-common.h (c_unsafe_for_reeval): Rename.
7992         * c-decl.c (finish_incomplete_decl): Rename.
7993         (c_init_decl_processing): Don't set langhook.
7994         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7995         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7996         * c-objc-common.c (c_objc_common_init): Don't set langhook.
7997         * c-tree.h (finish_incomplete_decl): Rename.
7998         * langhooks-def.h (lhd_unsafe_for_reeval): New.
7999         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
8000         (LANG_HOOKS_INITIALIZER): Update.
8001         * langhooks.c (lhd_unsafe_For_reeval): New.
8002         * langhooks.h (struct langhooks): New hooks.
8003         * toplev.c (incomplete_decl_finalize_hook): Remove.
8004         (wrapup_global_declarations): Update.
8005         * tree.c (lang_unsafe_for_reeval): Remove.
8006         (unsafe_for_reeval): Update.
8007         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
8008         Remove.
8009 objc:
8010         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
8011         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
8012
8013 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
8014
8015         * diagnostic.c (print_error_function): Remove.
8016         (default_print_error_function): Rename.
8017         (report_error_function): Update.
8018         * diagnostic.h (print_error_function): Remove.
8019         (default_print_error_function): Remove.
8020         * langhooks-def.h (struct diagnostic_context): Predeclare.
8021         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
8022         (LANG_HOOKS_INITIALIZER): Update.
8023         * langhooks.h (struct diagnostic context): Predeclare.
8024         (struct lang_hooks): New hook.
8025
8026 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8027
8028         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
8029         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
8030         !flag_pic.
8031         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
8032         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
8033         of PIC_OFFSET_TABLE_REGNUM thruout.
8034         * config/rs6000/rs6000.md: Likewise.
8035         * config/rs6000/darwin.h: Likewise.
8036
8037 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8038
8039         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
8040         unsigned HOST_WIDE_INT, not unsigned int.
8041
8042 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8043
8044         PR middle-end/6096, middle-end/6098, middle-end/6099
8045         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
8046         CODE_LABELs.
8047         (fill_slots_from_thread): Likewise.
8048
8049 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8050
8051         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
8052         floating fields in float regs.
8053         (function_arg_record_value_2): Likewise.
8054
8055 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8056
8057         * config/mmix/mmix.md (define_constants): Remove misleading
8058         FIXME.  Add MMIX_fp_rO_OFFSET.
8059         ("nonlocal_goto_receiver"): Don't have stack-frame address of
8060         saved rO as part of the pattern.  Remove FIXME.
8061         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
8062         here, at output-time.
8063
8064 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
8065
8066         PR middle-end/6100
8067         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
8068         REG_BR_PRED.
8069         (output_v9branch): Likewise.
8070
8071 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8072
8073         * gcc.c: Revert previous patch for now.
8074         * config/i386/djgpp.h: Likewise.
8075
8076 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
8077
8078         * config/mmix/crti.asm (_init): Register _fini with atexit.
8079         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
8080
8081 2002-03-31  Richard Henderson  <rth@redhat.com>
8082
8083         PR target/3997
8084         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
8085         (ASM_OUTPUT_DEF_FROM_DECLS): New.
8086
8087 2002-03-31  Richard Henderson  <rth@redhat.com>
8088
8089         * libgcc2.c (__bb_exit_func): Make static.
8090
8091         * config/alpha/alpha.md (trap): New.
8092
8093 2002-03-31  Richard Henderson  <rth@redhat.com>
8094
8095         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
8096         promoted argument types; build trap.
8097         (expand_builtin_trap): New.
8098         (expand_builtin): Use it.
8099         * stmt.c (expand_nl_goto_receivers): Likewise.
8100         * expr.h (expand_builtin_trap): Declare.
8101         * libfuncs.h (LTI_abort, abort_libfunc): New.
8102         * optabs.c (init_optabs): Init abort_libfunc.
8103
8104 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
8105
8106         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
8107         (LINK_COMMAND_SPEC): ... from here.
8108         (init_gcc_specs): Duplicate it here too, omitting
8109         shared_name in the second copy.
8110         (init_spec): Test for duplicate
8111         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
8112
8113 2002-03-30  David S. Miller  <davem@redhat.com>
8114
8115         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
8116         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
8117
8118 2002-03-30  Roger Sayle <roger@eyesopen.com>
8119             Richard Henderson  <rth@redhat.com>
8120
8121         * regmove.c (combine_stack_adjustments_for_block): Avoid
8122         emitting a stack adjustment of zero bytes.  Let delete_insn
8123         update bb->head.
8124
8125 2002-03-30  Richard Henderson  <rth@redhat.com>
8126
8127         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
8128         (sparc_emitting_epilogue): New.
8129         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
8130         * config/sparc/sparc-protos.h: Update.
8131         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
8132         (TARGET_SWITCHES): Update.
8133         * config/sparc/sparc.md (return): Remove.
8134         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
8135         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
8136         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
8137         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8138         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
8139         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
8140         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
8141         Remove MASK_EPILOGUE.
8142         * doc/invoke.texi: Update.
8143
8144 2002-03-30  Daniel Berlin  <dan@dberlin.org>
8145
8146         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
8147         CPP will start the file for us.
8148
8149 2002-03-30  Richard Henderson  <rth@redhat.com>
8150
8151         PR target/5446
8152         * config/ia64/ia64.c (group_barrier_needed_p): Special case
8153         prologue_allocate_stack.
8154         (ia64_single_set): Use insn codes for recognition of special
8155         cases, not rtl matching.
8156         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
8157
8158 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
8159
8160         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
8161
8162 2002-03-30  Richard Henderson  <rth@redhat.com>
8163
8164         PR target/6032
8165         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
8166         or -fomit-frame-pointer with profiling.
8167         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
8168         (FUNCTION_PROFILER): Do nothing.
8169         (PROFILE_HOOK): New.
8170         * config/sparc/sparc.c (sparc_override_options): Don't check
8171         code models for profiling.
8172         (sparc_function_profiler): Remove.
8173         (sparc_profile_hook): New.
8174         * config/sparc/sparc-protos.h: Update.
8175
8176 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
8177
8178         PR optimization/6086
8179         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
8180         of SUBREG of volatile MEM or because the MEM was mode dependent,
8181         return CLOBBER instead of unmodified SUBREG.
8182
8183 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
8184
8185         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
8186         when not optimizing.
8187
8188         * toplev.c (rest_of_compilation): Cann mark_constant_function
8189         only when optimizing.
8190
8191         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
8192         are NULL.
8193
8194         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
8195         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
8196         (try_optimize_cfg): clear all AUX fields.
8197
8198         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
8199         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
8200         (ix86_address_cost): Be prepared for SUBREGed registers.
8201         (legitimate_address_p): Accept SUBREGed registers.
8202
8203 2002-03-29  Richard Henderson  <rth@redhat.com>
8204
8205         PR target/5672
8206         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
8207
8208 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8209
8210         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
8211         for aggregate and TFmode types.
8212
8213 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8214
8215         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
8216
8217 2002-03-29  Richard Henderson  <rth@redhat.com>
8218
8219         PR target/5886
8220         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
8221         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
8222
8223 2002-03-29  Richard Henderson  <rth@redhat.com>
8224
8225         PR target/6041
8226         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
8227         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
8228         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
8229         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
8230         conditional.
8231         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
8232
8233 2002-03-29  Dale Johannesen <dalej@apple.com>
8234
8235         * loop.c (combine_movables): Do allow combination of pseudos.
8236
8237 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
8238
8239         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
8240         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
8241         No functional change except ...
8242         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
8243         * doc/install.texi (*-*-freebsd*): Document port configuration.
8244
8245 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8246
8247         * Makefile.in (convert.o, calls.o, expmed.o): Update.
8248         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
8249         Use new hooks.
8250         * builtin-types.def (BT_PTRMODE): Update.
8251         * c-common.c (type_for_size): Rename c_common_type_for_size.
8252         (type_for_mode): Similarly.
8253         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
8254         Use new hook.
8255         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
8256         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
8257         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
8258         Redefine.
8259         * c-typeck.c (common_type, comptypes, default_conversion):
8260         Use new hooks.
8261         * calls.c: Include langhooks.h.
8262         (emit_library_call_value_1): Use new hooks.  Avoid redundant
8263         calls.
8264         * convert.c: Include langhooks.h
8265         (convert_to_pointer, convert_to_integer): Use new hooks.
8266         * except.c (init_eh): Similarly.
8267         * expmed.c: Include langhooks.h.
8268         (expand_mult_add): Use new hooks.
8269         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
8270         try_casesi): Similarly.
8271         * fold-const.c (optimize_bit_field_compare, make_range,
8272         decode_field_reference, fold_truthop, fold): Similarly.
8273         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
8274         put_var_into_stack): Similarly.
8275         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
8276         LANG_HOOKS_TYPE_FOR_SIZE): New.
8277         (LANG_HOOKS_TYPES_INITIALIZER): Update.
8278         * langhooks.h (lang_hooks_for_types): New hooks.
8279         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
8280         * tree.c (get_unwidened, get_narrower): Similarly.
8281         * tree.h (type_for_mode, type_for_size): Remove.
8282         * varasm.c (force_const_mem): Use new hooks.
8283         * utils2.c (nonbinary_modular_operation): Update.
8284 objc:
8285         * objc-act.c (handle_impent): Update.
8286         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
8287         Redefine.
8288
8289 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
8290
8291         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
8292         * config/ia64/ia64.c (basereg_operand): New.
8293         * config/ia64/ia64-protos.h (basereg_operand): Declare.
8294         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
8295
8296 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
8297
8298         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
8299         unwind information when frame_pointer_needed.
8300         (mmix_assemble_integer): Tweak wording in comment.
8301
8302 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
8303
8304         * Makefile.in (except.o): Update.
8305         * except.c: Include langhooks.h.
8306         (init_eh): Use langhook.
8307         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
8308         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
8309         (LANG_HOOKS_INITIALIZER): Update.
8310         * langhooks.h (lang_hooks_for_types): New.
8311         (struct lang_hooks): Add it.
8312         * tree.c (make_lang_type_fn, make_lang_type): Remove.
8313         * tree.h (make_lang_type_fn, make_lang_type): Remove.
8314 config:
8315         * alpha/alpha.c: Include langhooks.h.
8316         (alpha_build_va_list): Use langhook.
8317         * d30v/d30v.c: Include langhooks.h.
8318         (d30v_build_va_list): Use langhook.
8319         * i386/i386.c: Include langhooks.h.
8320         (ix86_build_va_list): Use langhook.
8321         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
8322         * s390/s390.c: Include langhooks.h.
8323         (s390_build_va_list): Use langhook.
8324         * stormy16/stormy16.c: Include langhooks.h.
8325         (stormy16_build_va_list): Use langhook.
8326
8327 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8328
8329         PR c++/5964
8330         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
8331         attributes.
8332         (length): Compute variable length for branches/calls/jumps here.
8333         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
8334         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
8335         define branch_type attribute.
8336         (divsi3_sp32): Maximum length is 6 not 7.
8337         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
8338         call_address_untyped_struct_value_sp32,
8339         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
8340         * config/sparc/sparc.c (empty_delay_slot): New function.
8341         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
8342         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
8343
8344 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
8345
8346         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
8347         nonzero_bits if not needed.
8348         (nonzero_bits) [XOR]: Likewise.
8349         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
8350         reg_last_set_mode and mode are both MODE_INT, but not equal.
8351         (record_value_for_reg): Compute reg_last_set_nonzero_bits
8352         in nonzero_bits_mode for MODE_INT modes.
8353
8354 2002-03-28  Richard Henderson  <rth@redhat.com>
8355
8356         PR target/5715
8357         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
8358         to GAS.  Correct drift between alternatives.
8359
8360 2002-03-28  Richard Henderson  <rth@redhat.com>
8361
8362         PR target/6087
8363         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
8364
8365 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
8366
8367         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
8368         emulation to the linker.
8369
8370 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
8371
8372         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
8373         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
8374
8375 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
8376
8377         * combine.c (simplify_and_const_int): Make sure to apply mask
8378         when force_to_mode returns a constant integer.  PR3311.
8379
8380 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8381
8382         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
8383
8384 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8385
8386         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
8387         and Objective-C Dialect Options.
8388
8389 2002-03-28  Richard Henderson  <rth@redhat.com>
8390
8391         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
8392         comparison should be done vs !=0 not >0 return code.  Tidy cases.
8393
8394 2002-03-28  Richard Henderson  <rth@redhat.com>
8395
8396         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
8397         on to c_expand_body.
8398         * c-tree.h (finish_function): Update decl.
8399         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
8400
8401 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8402
8403         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
8404
8405 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
8406
8407         * rtlanal.c: Include flags.h
8408         (may_trap_p): Do not mark FP operations if trapping
8409         if !flag_trapping_math
8410         * Makefile.in (rtlanal.o): Add dependency on flag.h
8411         * ifcvt.c (noce_operand_ok): Avoid the lameness.
8412
8413 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
8414
8415         * mips.md: Use dconst1, not 1.0, as first argument of
8416         REAL_VALUE_LDEXP.  Don't use union real_extract.
8417
8418 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
8419
8420         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
8421         rather than $target.  Heed program_prefix and
8422         program_transform_name.  Search for gas in cross-compiler case too.
8423         "test -x" rather than "test -f".
8424         (gcc_cv_ld): Likewise.
8425         (gcc_cv_nm): Heed program_prefix and program_transform_name.
8426         (gcc_cv_objdump): Likewise.
8427         * configure: Regenerate.
8428
8429 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8430
8431         * Makefile.in (attribs.o): Update.
8432         * attribs.c: Include langhooks.h.
8433         (decl_attributes): Use langhook.
8434         * c-decl.c (insert_default_attributes): Rename.
8435         * c-tree.h (c_insert_default_attributes): New.
8436         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
8437         (LANG_HOOKS_INITIALIZER): Update.
8438         * langhooks.h (struct lang_hooks): New hook.
8439         * tree.h (insert_default_attributes): Remove.
8440 objc:
8441         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
8442
8443 2002-03-27  Andreas Schwab  <schwab@suse.de>
8444
8445         * config/i386/i386.c (classify_argument): Also check for
8446         QUAL_UNION_TYPE.
8447
8448 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8449
8450         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
8451         any more.
8452
8453 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8454
8455         * i960.md (ret): Set PC.
8456         (nonlocal_goto): Fix expander.
8457         * builtins.c (epxand_builin_longjmp): Check that we've emitted
8458         some jump or call.
8459
8460 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
8461
8462         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
8463         of libcall regions.
8464
8465 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
8466
8467         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
8468         assigning to BLOCK_FOR_INSN directly.
8469
8470 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
8471
8472         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
8473
8474 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8475
8476         * c-common.c (c_expand_expr): Fix prototype.
8477         * c-common.h (c_expand_expr): Always declare, update.
8478         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8479         * c-objc-common.c (c_objc_common_init): No global hook.
8480         * expr.c (expand_expr): Use langhook.
8481         * expr.h (enum expand_modifier): Conditionally declare.
8482         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
8483         (LANG_HOOKS_INITIALIZER): Update.
8484         * langhooks.c (lhd_expand_expr): New.
8485         * langhooks.h (struct lang_hooks): New hook.
8486         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
8487         (lang_independent_init): Don't default hook.
8488 objc:
8489         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
8490
8491 2002-03-27  Richard Henderson  <rth@redhat.com>
8492
8493         PR target/6054
8494         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
8495         TARGET_CONST_GP.  Simplify conditions.
8496
8497 2002-03-27  Richard Henderson  <rth@redhat.com>
8498
8499         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8500         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
8501         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
8502
8503 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
8504
8505         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
8506         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
8507         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
8508         Remove unnecessary masks.
8509         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
8510         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
8511         -mwindows, -mdll switches and their negations.
8512
8513 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8514
8515         * gcc-common.c (lang_mark_false_label_stack): Remove.
8516         * ggc.h (lang_mark_false_label_stack): Similarly.
8517
8518 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
8519
8520         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
8521
8522         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
8523         or __rtems_ is defined.
8524
8525 2002-03-26  Richard Henderson  <rth@redhat.com>
8526
8527         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
8528         if a non-trivial load was emitted.
8529         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
8530         in high+extra+low case.
8531
8532 2002-03-26  Richard Henderson  <rth@redhat.com>
8533
8534         * config.gcc (sparc*-solaris): Use float_format=sparc.
8535
8536 2002-03-26  Richard Henderson  <rth@redhat.com>
8537
8538         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
8539         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
8540         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
8541         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
8542         (WINT_TYPE_SIZE): Fix at 32.
8543
8544 2002-03-26  Richard Henderson  <rth@redhat.com>
8545
8546         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
8547         until after eh landing pad generation.
8548         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
8549         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
8550
8551 2002-03-26  Richard Henderson  <rth@redhat.com>
8552
8553         * expr.h (ADD_PARM_SIZE): One more convert for INC.
8554
8555 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
8556
8557         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
8558         and warning switches.
8559         (cc1_options):  Likewise.
8560
8561 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
8562
8563         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
8564         Restore more of the signal context.  Set no_reg_stack_frame.
8565         * config/ia64/unwind-ia64.c (unw_state_record):
8566         Add no_reg_stack_frame, comments.
8567         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
8568         (uw_update_context): Adjust bsp when unwinding from leaf,
8569         but not signal frame.
8570
8571 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
8572
8573         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
8574
8575 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8576
8577         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
8578
8579 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8580
8581         PR target/5621
8582         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8583         "Add a pool_range attribute", which was lost during the ARM/Thumb
8584         merge.
8585
8586 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8587
8588         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8589         a register into the MAC16 accumulator.
8590
8591 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8592
8593         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8594         (Warning Options): Document -Wswitch-enum.
8595         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8596         -Wswitch.
8597         (warn_switch_enum): Define variables.
8598         * flags.h (warn_switch_enum): Declare variables.
8599         * stmt.c (expand_end_case_type): When warn_switch_enum /
8600         -Wswitch-enum, perform switch checks.
8601         Fix PR c/5044.
8602
8603 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8604
8605         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8606         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8607         (reload_muladdsi_compare0_scratch): Delete.
8608
8609 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8610
8611         * doc/install.texi (*-*-freebsd*): Update.
8612
8613 2002-03-26  Richard Henderson  <rth@redhat.com>
8614
8615         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8616         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8617
8618         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8619         types from the normal argument frame.
8620
8621         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8622         variable sized objects by reference.
8623         (sparc_va_arg): Receive them by reference too.
8624
8625 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8626
8627         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8628         code to not restoring global registers.
8629
8630 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8631
8632         * Makefile.in (ggc-common.o): Update.
8633         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8634         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8635         * c-tree.h (c_mark_tree): New.
8636         * ggc-common.c: Include langhooks.h.
8637         (gcc_mark_trees): Use new langhook.
8638         * ggc-callbacks.c: Delete file.
8639         * ggc.h (lang_mark_tree): Remove.
8640         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8641         (LANG_HOOKS_INITIALIZER): Update.
8642         * langhooks.h (struct lang_hooks): New hook.
8643 objc:
8644         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8645
8646 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8647
8648         * doc/cpp.texi: Exclude entire Top node from printed manual.
8649         Move option index after directive index.  Insert page breaks
8650         before GFDL and concept index.  Index environment variables
8651         with command line options.
8652         * doc/cppenv.texi: Use @vtable for environment variable list.
8653         Add paragraph explaining semantics of empty elements in path
8654         variables.  Exclude a cross-reference to Fishkill from the
8655         manpage.  Remove an unnecessary cross-reference of the entry
8656         right above the referer.  Don't use @anchor in text that goes
8657         into manpage.
8658         * doc/cppopts.texi: Cross-reference the environment variables
8659         section, not the specific environment variable, for consistency.
8660
8661 2002-03-25  Richard Henderson  <rth@redhat.com>
8662
8663         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8664         anywhere in the block.  Don't refer to insns that have been
8665         removed from the chain.  Iterate backward through the new insns.
8666         Don't refer to edges that have been removed.
8667
8668 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8669
8670         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8671         test for overflow of constant.
8672
8673 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8674
8675         PR target/2623
8676         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8677         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8678         these patterns on arm_archv4.
8679
8680 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8681
8682         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8683         int".
8684
8685 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8686
8687         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8688         float_handled, float_handler, float_signal, set_float_handler,
8689         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8690         * toplev.h: Don't prototype do_float_handler.
8691
8692         * c-lex.c: Fold parse_float into lex_number.  Make warning
8693         about portability of hex float constants more informative, and
8694         don't issue it on top of a syntax error.
8695         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8696         their callers.
8697         * real.h: Define REAL_VALUE_ABS here...
8698         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8699         simplify_unary_real, simplify_binary_real, and
8700         simplify_binary_is2orm1 into their callers.
8701         * tree.c: Fold build_real_from_int_cst_1 into caller.
8702
8703         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8704
8705         * tsystem.h: Include float.h here...
8706         * libgcc2.c: ... not here.
8707
8708 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8709
8710         Fixes for: PR bootstrap/3591, target/5676
8711         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8712         defined.  Do not disable exceptions or rtti.
8713         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8714         mcore.h.  Disable exceptions and rtti, since they are not
8715         supported by EPOC.
8716
8717 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8718
8719         * c-decl.c (maybe_build_cleanup): Remove.
8720         * expr.c (expand_expr): Use langhook.
8721         * langhooks-def.h (lhd_return_null_tree,
8722         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8723         (LANGHOOKS_INITIALIZER): Update.
8724         * langhooks.c (lhd_return_null_tree): New.
8725         * langhooks.h (struct lang_hooks): New hook.
8726         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8727         * tree.h (maybe_build_cleanup): Remove.
8728
8729 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8730
8731         * regrename.c (build_def_use): Move recog_memoized
8732         before extract_insn.
8733
8734 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8735
8736         PR target/6043
8737         * expr.c (emit_group_store): Handle storing into CONCAT.
8738
8739 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8740
8741         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8742         corresponding MATCH_DUP.
8743
8744 2002-03-24  Richard Henderson  <rth@redhat.com>
8745
8746         * unroll.c (unroll_loop): Zero label_map.
8747
8748         * gcse.c: Include except.h.
8749         * Makefile.in (gcse.o): Update.
8750
8751 2002-03-24  Richard Henderson  <rth@redhat.com>
8752
8753         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8754         Do resolve_unique_section before shared data clause.
8755
8756 2002-03-24  Richard Henderson  <rth@redhat.com>
8757
8758         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8759
8760 2002-03-24  Richard Henderson  <rth@redhat.com>
8761
8762         * recog.c (peephole2_optimize): Split blocks when EH insns are
8763         generated in the middle of a block.  Do global life update if
8764         zapped EH edges.
8765
8766 2002-03-24  Richard Henderson  <rth@redhat.com>
8767
8768         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8769
8770 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8771
8772         preprocessor/3951
8773         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8774         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8775         (init_dependency_output): Don't make no_output decision here.
8776
8777 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8778
8779         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8780         warn_switch.  Update description.
8781         (expand_end_case_type): Call check_for_full_enumeration_handling
8782         when warn_switch.
8783
8784 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8785
8786         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8787         (m68hc11_split_move): Call it to see if the source and destination
8788         operands use the same direction auto inc/dec mode, otherwise make the
8789         source an offsetable memory operand and generate an add.
8790
8791 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8792
8793         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8794         register for operand 2.
8795         ("*subsi3_zero_extendqi"): Likewise.
8796         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8797         bits so that it is compatible with a pop.
8798         ("*andhi3_gen"): Likewise.
8799         ("xorhi3"): Likewise.
8800
8801 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8802
8803         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8804         -pedantic here...
8805         (cpp_post_options): ... not here.
8806
8807 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8808             Aldy Hernandez  <aldyh@redhat.com>
8809
8810         Removal of separate preprocessor cpp0.
8811
8812         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8813         cpp0, install-common): Update.
8814         * c-common.c (flag_preprocess_only): New.
8815         (c_common_init): Preprocess for -E.
8816         * c-common.h (flag_preprocess_only): New.
8817         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8818         * c-objc-common.c (c_init_decl_processing): Exit quickly
8819         for NULL return from c_common_init.
8820         * cpplib.h (cpp_preprocess_file): New.
8821         * cppmain.c (main, general_init, pfile, progname): Remove.
8822         (do_preprocessing): Rename cpp_preprocess_file, don't call
8823         cpp_finish.  Don't close stdout here.
8824         (setup_callbacks): Update prototype.
8825         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8826         Update.
8827         * tradcpp.c (main): Ignore -quiet.
8828 objc:
8829         * lang-specs.h (default_compilers): Preprocess with cc1obj.
8830
8831 2002-03-24  Richard Henderson  <rth@redhat.com>
8832
8833         PR optimization/5742
8834         * machmode.def: Add inner mode field to complex modes.
8835         * config/mips/mips.c (mips_function_value): Always define.  Add
8836         new argument to handle libcalls.
8837         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8838         (FUNCTION_VALUE): Likewise.
8839         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8840         * config/mips/mips-protos.h: Update.
8841
8842 2002-03-23  Richard Henderson  <rth@redhat.com>
8843
8844         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8845         * config/sparc/sparc-protos.h: Update.
8846         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8847
8848 2002-03-23  Richard Henderson  <rth@redhat.com>
8849
8850         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8851         _start or _init begins the text segment.
8852
8853 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
8854
8855         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
8856         not HOST_WIDEST_INT.
8857         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8858
8859 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
8860
8861         PR java/5489
8862         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8863         operand argument to output_return_instruction.
8864         * arm.c (arm_print_operand, case 'd'): If the operand is
8865         const_true_rtx then just return.
8866         (arm_print_operand, case 'D'): If the operand is const_true_rtx
8867         then abort.
8868
8869 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8870
8871         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8872         (Warning Options): Document -Wswitch-default.
8873         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
8874         -Wswitch.
8875         (warn_switch_default): Define variable.
8876         (warn_switch): Update comment.
8877         * flags.h (warn_switch_default): Declare variable.
8878         (warn_switch): Update comment.
8879         * stmt.c (expand_end_case): Check for and, when
8880         warn_switch_no_default, warn of a missing default case.
8881
8882 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
8883
8884         * real.h (N): Special case 128 bit doubles.
8885
8886         * combine.c (simplify_comparison): When widening modes, ignore
8887         sign extension on CONST_INTs.
8888
8889 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8890
8891         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8892         passed to adjust_address.  Fix comment formatting.
8893
8894
8895 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
8896
8897         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8898         Always make REAL_VALUE_TYPE a struct containing an array of
8899         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
8900         big it is.  Don't declare or use union real_extract.
8901
8902         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8903         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8904         (print_operand), config/arm/arm.c (output_move_double),
8905         config/arm/arm.md (consttable_4, consttable_8),
8906         config/romp/romp.c (output_fpops), config/s390/s390.h
8907         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8908         (xtensa_output_literal): Don't use union real_extract.
8909
8910         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8911         (sfmode_constant_to_ulong), config/ns32k/merlin.h
8912         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8913         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8914         (PRINT_OPERAND): Don't use local version of union
8915         real_extract.
8916
8917         * config/convex/convex.c (check_float_value), config/vax/vax.c
8918         (vax_float_literal), config/m88k/m88k.md (divdf3),
8919         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8920         config/pdp11/pdp11.c (output_move_quad): Don't do host
8921         arithmetic on target floating point quantities.
8922
8923         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8924         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8925
8926         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8927         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8928
8929         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8930         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8931         INFINITY.
8932         * print-rtl.c (print_rtx): Disable code which needs
8933         floating-point emulator.
8934         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8935         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8936         depending on HOST_FLOAT_FORMAT to be defined properly.
8937
8938         * config/1750a/1750a.c (get_double, float_label): Delete.
8939         (print_operand): Delete huge commented-out chunk.  Use
8940         REAL_VALUE_TO_DECIMAL.
8941         * config/1750a/1750a-protos.h: Delete prototypes of deleted
8942         functions.
8943         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8944         IEEE_FLOAT_FORMAT.
8945         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8946         Use REAL_VALUE_TO_DECIMAL as ELF version does.
8947         * config/m88k/m88k.c (real_power_of_2_operand,
8948         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8949         real_extract out of the union; run the input through
8950         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8951         from that into the union.
8952         * config/pdp11/pdp11.c (output_move_double): Rearrange
8953         parentheses to make automatic indenter happy.
8954
8955         * doc/tm.texi (Cross-compilation): Rename node to "Floating
8956         Point" and rewrite to describe current situation.  Also adjust
8957         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8958         match code.
8959         * doc/rtl.texi: Adjust cross reference.
8960
8961 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8962
8963         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8964         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8965         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8966         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8967         prevent use of sp as a reload register.
8968         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8969         non_acc_reg_operand.
8970         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8971         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8972         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8973         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8974
8975 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8976
8977         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8978         * cpplex.c (unterminated): Delete.
8979         (parse_string): No string literal may extend over multiple
8980         lines.  Suppress the error when preprocessing assembly.
8981         * cppmain.c (scan_translation_unit): Strings are single-line.
8982
8983         * doc/cpp.texi: Update to match.
8984
8985 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8986
8987         PR optimization/5854
8988         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8989         Shut up warnings.
8990         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8991         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8992         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8993         const0 if scratch register was not allocated.
8994         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8995         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8996         with GEN_INT (...).
8997         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8998         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8999         with GEN_INT (...) everywhere.  Remove constraints in define_split
9000         patterns.
9001         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
9002         require scratch register for setting 0 into regs/non-pushable memory.
9003
9004 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9005
9006         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
9007         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
9008
9009 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
9010
9011         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
9012         * cppinit.c (cpp_create_reader):  On by default.
9013         (cpp_handle_option):  Handle -W[no-]endif-labels.
9014         (cpp_post_options):  Also enable if -pedantic.
9015         * cpplib.c (do_else):  Use it.
9016         (do_endif):  Likewise.
9017         * doc/cppopts.texi:  Document new option.
9018         * doc/invoke.texi:  Document new option.
9019
9020 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
9021
9022         * config/i386/i386.c, config/i386/i386.md: Change all occurences
9023         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
9024
9025 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
9026
9027         * flow.c (calculate_global_regs_live): Clear aux fields of
9028         ENTRY and EXIT.
9029
9030 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
9031
9032         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
9033         REG or MEM subregs, pass rtx * instead of rtx to it.
9034         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
9035         rtx * instead of rtx to alter_subreg.
9036         * config/m32r/m32r.c (gen_split_move_double): Likewise.
9037         * config/pj/pj.c (pj_output_rval): Likewise.
9038
9039 2002-03-22  Richard Henderson  <rth@redhat.com>
9040
9041         PR target/3177
9042         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
9043         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
9044         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
9045         (ia64_expand_prologue): Look at int_regs, not words, for number
9046         of incomming int regs.
9047
9048 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
9049
9050         * expr.c (expand_expr): A RESULT_DECL is part of a call.
9051
9052 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
9053
9054         * toplev.c (flag_loop_optimize, flag_crossjumping):
9055         New static variables.
9056         (rest_of_compilation): Conditionalize crossjumping and
9057         loop optimizer.
9058         (parse_options_and_default_flags): Default loop_optimize and
9059         crossjumping.
9060         (lang_independent_options): Add -fcrossjumping and -floop-optimize
9061         * invoke.texi (crossjumping, loop-optimize): Document.
9062
9063 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9064
9065         * real.c (eiisneg): Move outside #ifdef NANS.
9066
9067 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
9068
9069         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
9070         frequencies match; avoid match on different loop depths.
9071         (try_crossjump_to_bb): Kill tests that no longer brings time
9072         savings.
9073         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
9074         updating code.
9075         (split_edge): Likewise.
9076
9077         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
9078         variable.
9079
9080         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
9081         * cfgrtl.c: Include insn-config.h
9082         (split_block) Dirtify block in presence of conditional execution
9083
9084 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9085
9086         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
9087         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
9088         (function_arg): Constify CUMULATIVE_ARGS.
9089         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
9090         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
9091         (UNITS_PER_DOUBLE): New macro.
9092         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
9093         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
9094         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
9095         fp_regs and stack_words.
9096         (EABI_FLOAT_VARARGS_P): New macro.
9097         * config/mips/mips.c (struct mips_arg_info): New.
9098         (mips_arg_info): New function.
9099         (function_arg_advance): Use it.  Add adjustment instructions here
9100         rather than in function_arg.
9101         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
9102         for VOIDmode at the beginning of the function.
9103         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
9104         (function_arg_pass_by_reference): Likewise.
9105         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
9106         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
9107         (mips_va_start): Likewise.  Use the new stack_words field of
9108         CUMULATIVE_ARGS to set up overflow area.  Reformat.
9109         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
9110         doubles and other types, aligning the overflow pointer for non-doubles
9111         too.  Remove some code duplication.  Replace hard-coded constants.
9112
9113 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
9114
9115         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
9116         (CLASS_UNITS): Undefine.
9117         (CLASS_MAX_NREGS): Use FP_INC.
9118         * config/mips/mips.c (compute_frame_size): Likewise.
9119         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
9120
9121 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9122
9123         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
9124         prototype, and handle lexing numbers and identifiers.
9125         (parse_identifier): Update to new form of parse_slow.
9126         (parse_number): Fast path only, use parse_slow otherwise.
9127         (_cpp_lex_direct): Update calls to parse_number.
9128
9129 2002-03-21  DJ Delorie  <dj@redhat.com>
9130
9131         * bb-reorder.c (make_reorder_chain_1): Protect against
9132         when redundant edges are omitted.
9133         * predict.c (dump_prediction): Likewise.
9134
9135 2002-03-21  Richard Henderson  <rth@redhat.com>
9136
9137         PR target/5996
9138         * fixinc/inclhack.def (solaris_stdio_tag): New.
9139         * fixinc/fixincl.x: Regenerate.
9140
9141 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9142
9143         PR c/5597
9144         * c-typeck.c (process_init_element): Flag non-static
9145         initialization of a flexible array member as illegal.
9146
9147 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
9148
9149         * config/rs6000/t-linux64: New.
9150         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
9151         t-ppccomm.  Use t-rs6000 and t-linux64.
9152         (powerpc64-*-gnu* <tmake_file>): Likewise.
9153         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
9154         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
9155         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
9156
9157 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
9158
9159         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
9160         flag_really_no_inline instead of optimize == 0.
9161
9162         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
9163
9164         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
9165
9166         * flags.h (flag_really_no_inline): New.
9167
9168         * c-common.c (c_common_post_options): Initialize
9169         flag_really_no_inline.
9170
9171         * toplev.c (flag_really_no_inline): New.
9172
9173 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9174
9175         * config/avr/avr.md (length): Fix length computation for
9176         conditional branches.
9177
9178 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
9179
9180         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
9181         sdbout.o, profile.o): Update.
9182         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
9183         langhook.
9184         * c-common.h (gettags): Move here from tree.h.
9185         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
9186         insert_block, getdecls, kept_level_p, global_bindings_p): New.
9187         * dbxout.c (dbxout_init): Use getdecls langhook.
9188         * expr.c (expand_expr): Use insert_block langhook.
9189         * fold-const.c: Include langhooks.h.
9190         (fold_range_test, fold_binary_op_with_conditional_arg,
9191         fold): Use global_bindings_p langhook.
9192         * integrate.c (expand_inline_function): Use insert_block langhook.
9193         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
9194         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
9195         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
9196         LANG_HOOKS_GETDECLS): New.
9197         (LANG_HOOKS_INITIALIZER): Update.
9198         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
9199         langhook.
9200         * langhooks.h (struct lang_hooks_for_decls): New.
9201         (struct lang_hooks): Update.
9202         * profile.c: Include langhooks.h.
9203         (output_func_start_profiler): Use new langhooks.
9204         * sdbout.c: Include langhooks.h.
9205         (sdbout_init, sdbout_finish): Use getdecls langhook.
9206         * stmt.c: Include langhooks.h.
9207         (expand_fixup, fixup_gotos): Use new langhooks.
9208         * stor-layout.c: Include langhooks.h.
9209         (variable_size): Use global_bindings_p langhook.
9210         * toplev.c (compile_file): Use getdecls langhook.
9211         * tree-inline.c (remap_block): Use insert_block langhook.
9212         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
9213         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
9214
9215 2002-03-21  Richard Henderson  <rth@redhat.com>
9216
9217         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
9218         constants in .data when -fpic.
9219
9220 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9221
9222         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
9223         where appropriate.
9224
9225 2002-03-21  Tom Tromey  <tromey@redhat.com>
9226
9227         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
9228
9229 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9230
9231         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
9232
9233         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
9234
9235 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
9236             Richard Henderson  <rth@redhat.com>
9237
9238         PR c/5354
9239         * c-common.c (c_expand_expr): Preserve result of a statement
9240         expression if needed.
9241
9242 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
9243
9244         PR bootstrap/4195
9245         * genrecog.c (maybe_both_true_mode): Remove.
9246         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
9247         * machmode.def (Pmode): Likewise.
9248
9249 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
9250
9251         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
9252         (nonlocal_mentioned_p_1): New function.
9253         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
9254         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
9255         (mark_constant_function): Recognize pure functions.
9256         * rtl.h (global_reg_mentioned_p): New prototype.
9257         * rtlanal.c (global_reg_mentioned_p,
9258         global_reg_mentioned_p_1): New function.
9259
9260 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
9261
9262         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
9263         UNIX assert.h.
9264         * fixinc/fixincl.x: Regenerate.
9265
9266 2002-03-20  Jason Merrill  <jason@redhat.com>
9267
9268         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
9269
9270 2002-03-20  Michael Meissner  <meissner@redhat.com>
9271
9272         * doc/invoke.texi (Optimize Options): Document that -O2 sets
9273         -fstrict-aliasing.
9274
9275 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9276
9277         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
9278         ".literal_position" directive before the constant pool.
9279
9280 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
9281
9282         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
9283         Add Craig Rodrigues.
9284         Add Brad Lucier to testers.
9285
9286 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9287
9288         PR target/4792
9289         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
9290         to if_then_else.
9291         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
9292         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
9293         instead of insn_extract.
9294
9295 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9296
9297         PR bootstrap/4192
9298         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
9299
9300         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
9301         stmt if some case has been output.
9302
9303 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
9304
9305         PR c/5972
9306         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
9307         movsfcc_1, movdfcc_1): Add %O2.
9308         * config/i386/i386.c (print_operand): Handle %ON.
9309         Print . before float condition codes in Sun as cmov syntax.
9310         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
9311         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
9312         no longer true.
9313
9314 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
9315
9316         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
9317         return instruction if PC was popped.
9318
9319 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
9320
9321         * config/xtensa/xtensa.md: Remove unused type attributes.
9322         (adddi_carry, subddi_carry): Change type attribute to "multi".
9323
9324 2002-03-19  Dale Johannesen  <dalej@apple.com>
9325
9326         PR optimization/5999, middle-end/5731
9327         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
9328         multiplications by reciprocals.
9329
9330 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9331
9332         * Makefile.in: Update.
9333         * c-common.c: Include langhooks.h.
9334         (inline_forbidden_p): Use new hook.
9335         * diagnostic.c: Include langhooks.h.
9336         (format_with_decl, announce_function,
9337         default_print_error_function): Use new hook.
9338         * dwarf2out.c (dwarf2_name): Use new hook.
9339         * function.c: Include langhooks.h.
9340         (init_function_start): Use new hook.
9341         * langhooks-def.h (lhd_decl_printable_name): New.
9342         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
9343         (LANGHOOKS_INITIALIZER): Update.
9344         * langhooks.c (lhd_decl_printable_name): New.
9345         * langhooks.h (struct lang_hooks): New hook.
9346         * toplev.c (decl_name, decl_printable_name): Remove.
9347         (open_dump_file): Use new hook.
9348         (process_options): Remove old hook.
9349         * tree.h (decl_printable_name): Remove.
9350 objc:
9351         * objc-act.c (objc_init): Remove old hook.
9352         (objc_printable_name): Export.
9353         * objc-act.h (objc_printable_name): New.
9354         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
9355
9356 2002-03-19  Jim Blandy  <jimb@redhat.com>
9357
9358         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
9359         the start_source_file debug hook, not the current line number.
9360
9361 2002-03-19  Richard Henderson  <rth@redhat.com>
9362
9363         * flow.c (EH_USES): Provide default.
9364         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
9365         * doc/tm.texi (EH_USES): New.
9366
9367         * config/ia64/ia64.c (ia64_eh_uses): New.
9368         * config/ia64/ia64-protos.h: Update.
9369         * config/ia64/ia64.h (EH_USES): New.
9370
9371 2002-03-19  Richard Henderson  <rth@redhat.com>
9372
9373         * varasm.c (output_constant_def): Fix stupid typo.
9374
9375 2002-03-19  Richard Henderson  <rth@redhat.com>
9376
9377         PR 5879
9378         * except.c (current_function_has_exception_handlers): New.
9379         * except.h: Declare it.
9380         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
9381         Combine tests that disable all sibcalls for the function.
9382
9383 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
9384
9385         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
9386         for INTEGER_CST.
9387
9388 2002-03-19  Richard Henderson  <rth@redhat.com>
9389
9390         PR 5977, 5991
9391         * config/ia64/ia64.c: Revert 2002-03-01 patch.
9392         * config/ia64/ia64.h (INIT_EXPANDERS): New.
9393
9394 2002-03-19  Jim Blandy  <jimb@redhat.com>
9395
9396         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
9397         name, even if the replacement list contains no tokens, as required
9398         by Dwarf.
9399
9400 2002-03-19  Jason Merrill  <jason@redhat.com>
9401
9402         * varasm.c (globalize_decl): Get the name from the RTL, not
9403         DECL_ASSEMBLER_NAME.
9404
9405         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
9406
9407 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
9408
9409         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
9410         subdi_carry): Define.
9411
9412 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9413
9414         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
9415         about -fpic/-fPIC if extra_warnings set.
9416
9417 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
9418
9419         * expr.c (expand_expr): Sign-extend CONST_INT generated from
9420         TREE_STRING_POINTER.
9421         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
9422
9423 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9424
9425         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
9426         in favor of SP if FRAME_POINTER_REQUIRED is false.
9427
9428 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
9429
9430         * emit-rtl.c (gen_int_mode): New function.
9431         * rtl.h: Prototype for it.
9432         * combine.c (make_extraction, simplify_comparison), expmed.c
9433         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
9434         (convert_modes, store_field), optabs.c (expand_fix),
9435         simplify-rtx.c (neg_const_int, simplify_unary_real),
9436
9437         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
9438         Use it instead of GEN_INT (trunc_int_for_mode (...)).
9439
9440 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
9441
9442         PR c/5656
9443         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
9444         convert_parm_for_inlining.
9445         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
9446         Define.
9447         * langhooks-def.h: Likewise.
9448         * objc/objc-lang.c: Likewise.
9449         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
9450         function.
9451         * tree-inline.c (initialize_inlined_parameters):
9452         Call convert_parm_for_inlining lang hook if needed.
9453         * c-typeck.c (c_convert_parm_for_inlining): New function.
9454         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
9455
9456 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
9457
9458         * calls.c (precompute_arguments): Do not assume that temporaries
9459         can be destroyed after expanding the argument.
9460         (expand_call): Likewise.
9461
9462 2002-03-15  Eric Christopher  <echristo@redhat.com>
9463
9464         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
9465         Fix register preference on last change.
9466         * config/mips/mips.c (mips_return_in_memory): New function.
9467         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
9468         * config/mips/mips-protos.h: Declare.
9469         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
9470         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
9471
9472 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
9473
9474         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
9475         a register too.
9476         (anddi3, iorsi3): Likewise.
9477
9478         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
9479         use %gprel for symbols that are going to be placed in linkonce
9480         sections.
9481
9482         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
9483         RETURN_ADDRESS_POINTER_REGNUM to $ra.
9484         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
9485         not needed.  Disregard leaf_function_p().
9486         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
9487         mips16 frame pointer.
9488         * config/mips/mips.md (store ra): Only to small SP offsets.
9489         2001-08-22  Graham Stott  <grahams@redhat.com>
9490         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
9491         return a REG rtx for the return address register.
9492
9493 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
9494
9495         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
9496         constant-pool addresses as "mode-dependent".
9497         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
9498
9499 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
9500
9501         PR target/5740
9502         * expr.c (emit_group_load): Use extract_bit_field if
9503         needed for CONCAT arguments.
9504
9505 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
9506
9507         PR target/4863
9508         * arm.md (tablejump): Make this a define_expand.  For PIC add the
9509         offset to the base of the table.
9510         (thumb_tablejump): Matcher for Thumb tablejump insn.
9511         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
9512         as the difference of two labels.
9513         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
9514         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
9515         tables in the code.
9516         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
9517         * arm.c (get_jump_table_size): If the table is not in the text
9518         section, return zero.
9519
9520 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
9521
9522         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
9523         of gen_rtx_SUBREG.
9524         (arm_reload_out_hi): Use gen_lowpart instead of
9525         gen_rtx_SUBREG to access QImode components.
9526         * config/arm/arm.md: Disable zero_extend split for QImode
9527         subregs in BIG_ENDIAN mode.
9528         (storehi_bigend): Match use of least significant byte.
9529         (storeinthi): Remove extraneous SUBREG.
9530         Add missing construction of operands[2].
9531         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
9532         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
9533         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
9534
9535 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
9536
9537         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
9538         any_operand.
9539
9540 2002-03-17  Richard Henderson  <rth@redhat.com>
9541
9542         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
9543         explicitly.
9544
9545 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9546
9547         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
9548         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
9549
9550 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9551
9552         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
9553
9554         * predict.c (estimate_bb_frequencies): Delete unused variables.
9555
9556 2002-03-17  Richard Henderson  <rth@redhat.com>
9557
9558         * config/ia64/ia64.c (ia64_attribute_table): Move before
9559         targetm definition.  Make static.
9560
9561 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
9562
9563         * c-common.h (yyparse, c_common_parse_file): New.
9564         * c-lang.c: Include c-common.h.
9565         (LANG_HOOKS_PARSE_FILE): Redefine.
9566         * c-lex.c: Include c-common.h.
9567         (yyparse): Rename c_common_parse_file.  Call yyparse.
9568         * c-parse.in (yyparse): Remove macro.
9569         * c-tree.h (yyparse_1): Remove.
9570         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
9571         (LANG_HOOKS_INITIALIZER): Update.
9572         * langhooks.h (struct lang_hoooks): New hook parse_file.
9573         * toplev.c (compile_file): Use parse_file hook.
9574         * tree.h (yyparse): Remove.
9575         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
9576
9577 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
9578
9579         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9580         float_truncate, not fix.
9581         ("*truncdfsf2_real"): Ditto.
9582         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9583
9584         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9585
9586 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9587
9588         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9589         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9590         where appropriate.  Make the second reference to
9591         leaf_function_p a function call, as intended.  Reindented.
9592
9593         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9594         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9595
9596         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9597         add register to non-constant into sp.
9598
9599         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9600         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9601         (mips16_gp_pseudo_rtx): Lose.
9602         (INIT_EXPANDERS): Deleted.
9603         * config/mips/mips.c (mips_init_machine_status): New.
9604         (mips_free_machine_status): New.
9605         (mips_mark_machine_status): New.
9606         (override_options): Set them.
9607         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9608         (struct machine_function): ... new.  Replaced all references.
9609         (mips_add_gc_roots): Don't mark them.
9610         (embedded_pic_fnaddr_reg): New, extracted from...
9611         (embedded_pic_offset): ... here.
9612         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9613         (movsi): Likewise.
9614
9615 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9616
9617         * cppinit.c: Revert -MD removal.
9618
9619 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9620
9621         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9622         soft registers by default for 68HC12.
9623         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9624         when compiling with -fomit-frame-pointer.
9625         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9626         (expand_epilogue): Likewise.
9627         (m68hc11_gen_rotate): Use exg when rotating by 8.
9628
9629 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9630
9631         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9632         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9633         (splits): Remove unused add splits.
9634         ("*addhi3_68hc12"): Tune constraints.
9635         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9636         constant fits in 8-bits and D is dead use abx/aby instructions.
9637         ("*addhi3"): Remove extern declaration of ix_reg.
9638         ("*subsi3"): Optimize and provide new split.
9639         ("subhi3"): Cleanup.
9640         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9641         (arith splits): For 68hc12 save the address register on the stack
9642         and do the arithmetic operation with a pop.
9643
9644 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9645
9646         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9647         allocating QImode in address registers.
9648         ("*movqi_m68hc11"): Likewise.
9649
9650 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9651
9652         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9653
9654 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9655
9656         * cppinit.c (print_help): Display -MD and -MMD.
9657         Don't display usage string.  Update assertion syntax and
9658         typo.
9659         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9660         (cpp_handle_option): Update.
9661
9662 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9663
9664         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9665         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9666         and define it so that regardless of target CPU size,
9667         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9668         of "int" rather than "long."
9669
9670 2002-03-15  Richard Henderson  <rth@redhat.com>
9671
9672         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9673         size as a tree.
9674
9675 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9676
9677         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9678         ("tstqi" split): Avoid using memory for tstqi on address register.
9679         (splits): Remove constraints.
9680         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9681         ("cmpdf", "cmpsf"): Remove since not used.
9682         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9683         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9684
9685 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9686
9687         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9688         ("neghi2"): Tighten constraints.
9689         ("one_cmplsi2"): Optimize and simplify split.
9690         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9691
9692 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9693
9694         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9695         and split of AND operation to clear the upper bits.
9696         ("*logicalsi3_zextqi"): Likewise.
9697         ("*logicallhi3_zexthi_ashift8"): Likewise.
9698         ("*logicalsi3_silshr16"): Likewise.
9699         ("logicalsi3_silshl16"): Likewise.
9700         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9701
9702 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9703
9704         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9705         (m68hc11_indirect_p): New function.
9706         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9707         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9708         TARGET_M6812.
9709         (asm_print_register): Likewise.
9710         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9711         (m68hc11_indirect_p): Declare.
9712         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9713         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9714         (TARGET_SWITCHES): New option -mrelax.
9715         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9716         destination.
9717         ("iorsi3", "xorsi3"): Likewise.
9718         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9719         ("*andhi3_mem"): New to handle destination in memory with bclr
9720         and a scratch register.
9721         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9722         ("*andhi3_const"): New when operand2 is constant.
9723         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9724         ("*andhi3_gen"): Cleanup of the old "andhi3".
9725         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9726         ("xorqi3"): Update constraints.
9727
9728 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9729
9730         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9731         for reg_equiv_memory_loc when the operand is a register that does
9732         not get a hard register (stack location).
9733         (tst_operand): After reload, accept all memory operand.
9734         (symbolic_memory_operand): Fix detection of symbolic references.
9735         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9736         accept symbols and any constant.
9737
9738 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9739
9740         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9741         note on the insn that sets the soft frame register.
9742         (must_parenthesize): ix and iy are also reserved names.
9743         (print_operand_address): One more place where parenthesis are required
9744         to avoid confusion with register names.
9745         (m68hc11_gen_movhi): Allow push of stack pointer.
9746         (m68hc11_check_z_replacement): Fix handling of parallel with a
9747         clobber.
9748         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9749         the replacement register is.
9750         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9751         and D8_REGS classes.
9752         (MODES_TIEABLE_P): All modes are tieable except QImode.
9753
9754 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9755
9756         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9757         (___subdi3): Likewise.
9758         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9759         (__map_data_section): Optimize 68hc11 case.
9760
9761 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9762
9763         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9764         than a shift to avoid adding a register with itself.
9765         (m68hc11_memory_move_cost): Take into account NO_REGS.
9766         (m68hc11_register_move_cost): Update and use memory move cost
9767         for soft registers.
9768         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9769         it gives more opportunities to cse to optimize.
9770         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9771         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9772
9773 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9774
9775         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9776         * c-common.def (CLEANUP_STMT): New tree node.
9777         * c-common.h (CLEANUP_DECL): New macro.
9778         (CLEANUP_EXPR): Likewise.
9779         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9780         * expr.c (expand_expr): Tidy.
9781         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9782         * tree-inline.c (initialize_inlined_parameters): Clean up
9783         new local variables.
9784
9785 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9786
9787         PR bootstrap/4128
9788         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9789         before movrXX only, use reg_overlap_mentioned_p.
9790         Only special case NE if just one insn can be generated.
9791
9792 2002-03-15  Jason Merrill  <jason@redhat.com>
9793
9794         * varasm.c (assemble_variable): Call resolve_unique_section before
9795         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9796         of error_mark_node.
9797
9798 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9799
9800         PR target/5170
9801         * arm.md (split pattern for thumb shiftable immediates): Add comment
9802         explaining non-obvious test.
9803
9804 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9805
9806         PR target/5712
9807         * arm.md (movaddr, movaddr_insn): Delete.
9808
9809 2002-03-15  Jason Merrill  <jason@redhat.com>
9810
9811         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9812         -fkeep-static-consts doesn't apply to comdats.
9813
9814 2002-03-14  Richard Henderson  <rth@redhat.com>
9815
9816         * c-decl.c: Include c-pragma.h.
9817         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9818         (finish_function): Tidy.
9819         * c-pragma.c: Include c-common.h.
9820         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9821         (handle_pragma_weak): Use them.
9822         (init_pragma): Register pending_weaks.
9823         * c-pragma.h (maybe_apply_pragma_weak): Declare.
9824         * print-tree.c (print_node): Print DECL_WEAK.
9825         * varasm.c (mark_weak_decls): Remove.
9826         (remove_from_pending_weak_list): Remove.
9827         (add_weak): Remove.
9828         (asm_emit_uninitialised): Call globalize_decl for weak commons.
9829         (weak_decls): Make a tree_list.
9830         (declare_weak): Cons weak_decls directly.
9831         (globalize_decl): Remove weak_decls elements directly.
9832         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
9833         symbols.  Don't pretend to handle aliases.
9834         (init_varasm_once): Update weak_decls registry.
9835         * Makefile.in: Update dependencies.
9836
9837 2002-03-14  Richard Henderson  <rth@redhat.com>
9838
9839         PR target/5312
9840         * config/ia64/ia64.c: Include tm_p.h last.
9841         (gen_nop_type): Remove duplicate definition.
9842         (cycle_end_fill_slots): Set sched_data for second L slot.
9843         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9844         (nop_cycles_until): Fix typos.
9845
9846 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9847
9848         PR optimization/5891
9849         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9850
9851 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9852
9853         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9854           descriptors correctly.
9855
9856 2002-03-14  Michael Meissner  <meissner@redhat.com>
9857
9858         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9859         100, allowing MAX_UNROLLED_INSNS to be overridden.
9860
9861         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9862         --param.
9863
9864         * unroll.c (params.h): Include.
9865         (MAX_UNROLLED_INSNS): Delete, now in params.h.
9866
9867         * doc/invoke.texi (--param max-unroll-insns): Document.
9868
9869         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9870
9871 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9872
9873         * arm.md: Fix warnings about constraints in peepholes and splits.
9874
9875 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
9876
9877         * cpphash.h (struct lexer_state): Remove line_extension member.
9878         * cpplib.c (dequote_string, do_linemarker): New functions.
9879         (linemarker_dir): New data object.
9880         (DIRECTIVE_TABLE): No longer need to interpret #line in
9881         preprocessed source.  Delete obsolete comment about return
9882         values of handlers.
9883         (end_directive, directive_diagnostics, _cpp_handle_directive):
9884         Don't muck with line_extension.
9885         (directive_diagnostics): No need to issue warnings for
9886         linemarkers here.
9887         (_cpp_handle_directive): Issue warnings for linemarkers here,
9888         when appropriate.  Dispatch linemarkers to do_linemarker, not
9889         do_line.
9890         (do_line): Code to handle linemarkers split out to do_linemarker.
9891         Convert escape sequences in filename argument, both places.
9892
9893         * cppmacro.c (quote_string): Rename cpp_quote_string and
9894         export.  All callers changed.
9895         * cpplib.h (cpp_quote_string): Prototype.
9896         * cppmain.c (print_line): Call cpp_quote_string on to_file
9897         before printing it.
9898
9899         * doc/cpp.texi: Document that escapes are now interpreted in
9900         #line and in linemarkers, and that non-printing characters are
9901         converted to octal escapes when linemarkers are generated.
9902
9903 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9904
9905         * emit-rtl.c (try_split): Use delete_insns.
9906         * recog.c (split_all_insns): Fix terminating condition.
9907
9908 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9909             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9910
9911         PR target/5828
9912         * arm.c (arm_output_epilogue): Fix floating-point register save
9913         adjustment when using a frame pointer.
9914
9915 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
9916
9917         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9918         * config/mips/mips.c (compute_frame_size): Retrofit them here.
9919         (save_restore_insns, mips_expand_epilogue): And here.
9920         (build_mips16_call_stub): And here.
9921         (mips_function_value): Use the new macros to decide whether a single
9922         or complex float can be returned in floating-point registers.  Return
9923         a parallel rtx in the complex case.
9924
9925 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9926
9927         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9928         call after liveness analysis.
9929
9930         * recog.c (split_insn): Use delete_insn_and_edges.
9931
9932         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9933         instructions to have branch prediction notes.
9934         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9935
9936 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
9937
9938         * configure.in: Don't pass -Wno-long-long to a ADA compiler
9939         that doesn't support it.
9940         * configure: Regenerate.
9941
9942 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9943
9944         PR target/5626
9945         * config/sparc/sparc.md (normal_branch, inverted_branch,
9946         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9947         inverted_fp_branch): Adjust calls to output_cbranch.
9948         Set length attribute.
9949         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9950         output_v9branch.  Set length attribute.
9951         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9952         predicates.
9953         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9954         (output_cbranch): Likewise.  Handle far branches.
9955         (output_v9branch): Handle far branches.
9956         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9957         Adjust prototypes.
9958         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9959         noov_compare64_op predicates.
9960
9961 2002-03-13  Jason Merrill  <jason@redhat.com>
9962
9963         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9964         into the function and constify it.
9965         * gthr-dce.h, gthr-solaris.h: Likewise.
9966
9967 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
9968
9969         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9970         * config/rs6000/rs6000.c (rs6000_va_arg): Use
9971         std_expand_builtin_va_arg if not ABI_V4.
9972
9973 2002-03-13  Jason Merrill  <jason@redhat.com>
9974
9975         * varasm.c (globalize_decl): New fn.
9976         (assemble_start_function): Use it.
9977         (asm_emit_uninitialized): Use it.
9978         (assemble_alias): Use it.
9979         (assemble_variable): Use it.
9980
9981 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
9982
9983         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9984         2002-03-12 internal visibility change.
9985         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9986         visibility into SYMBOL_REF_FLAG.
9987
9988 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
9989
9990         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9991         VOIDmode operand.  Add compile-time optimization for constant results.
9992
9993 2002-03-12  Jason Merrill  <jason@redhat.com>
9994
9995         * c-typeck.c (convert_for_assignment): Don't allow conversions
9996         between pointers and references.  Only allow lvalues to convert to
9997         reference.
9998
9999 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
10000
10001         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
10002         before prologue, to avoid scheduling problems.
10003
10004 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10005
10006         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
10007         (ELIMINABLE_REGS): Add sfp->sp.
10008         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
10009
10010 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10011
10012         PR optimization/5892
10013         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
10014
10015 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
10016
10017         * loop.c (basic_induction_var): Don't call convert_modes if mode
10018         classes are different.
10019
10020 2002-03-12  Richard Henderson  <rth@redhat.com>
10021
10022         PR optimization/5901
10023         * function.c (reposition_prologue_and_epilogue_notes): Position
10024         the markers after/before the last/first insn not deleted.
10025
10026 2002-03-12  Richard Henderson  <rth@redhat.com>
10027
10028         PR optimization/5878
10029         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
10030         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
10031         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
10032
10033         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
10034         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
10035         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
10036
10037         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
10038         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
10039         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
10040         also.  Don't set it if not flag_pic.
10041         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
10042         to be INVALID_REGNUM when not used.
10043
10044 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
10045
10046         * expmed.c (store_bit_field): Reset alias set for memory.
10047         (extract_bit_field): Same.
10048
10049 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10050
10051         * c-common.c (c_tree_code_type, c_tree_code_length,
10052         c_tree_code_name, add_c_tree_codes): Delete.
10053         * c-common.h (add_c_tree_codes): Delete.
10054         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
10055         Define.
10056         * c-objc-common.c (c_objc_common_init): Don't call
10057         add_c_tree_codes, instead set lang_unsafe_for_reeval.
10058         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
10059         objc_tree_code_name, add_objc_tree_codes): Delete.
10060         (objc_init): Don't call add_objc_tree_codes.
10061         * objc/objc-lang.c (tree_code_type, tree_code_length,
10062         tree_code_name): Define.
10063         * toplev.c (lang_independent_init): Don't set
10064         tree_code_length[IDENTIFIER_NODE].
10065         * tree.c (tree_code_type, tree_code_length, tree_code_name):
10066         Delete definitions, moved to language front-ends.
10067         * tree.def (IDENTIFIER_NODE): Hardwire the length.
10068         * tree.h (tree_code_type, tree_code_length, tree_code_name):
10069         Const-ify.
10070         (tree_code_length): Change type to unsigned char.
10071
10072 2002-03-12  Richard Henderson  <rth@redhat.com>
10073
10074         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
10075         internal visibility change.
10076
10077 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10078
10079         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
10080         validize_mem() instead of change_address to avoid clobbering
10081         memory attributes.
10082
10083 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10084
10085         * c-lex.h (position_after_whitespace): Remove.
10086
10087 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
10088
10089         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
10090         (lex_string): Use unsigned char pointers.
10091
10092 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10093
10094         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
10095         is not a valid memory_operand.
10096
10097 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10098
10099         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
10100         * config/xtensa/lib1funcs.asm: Fix copyright to include
10101         special case for libgcc files.
10102         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
10103         (__divsi3): Likewise.
10104         (__umodsi3): Likewise.
10105         (__modsi3): Likewise.
10106         * config/xtensa/lib2funcs.S: Fix copyright to include
10107         special case for libgcc files.
10108
10109 2002-03-12  Tom Rix  <trix@redhat.com>
10110
10111         * collect2.c (resolve_lib_name): Move outside of
10112         OBJECT_FORMAT_COFF ifdef.
10113         (ignore_library): Same.
10114
10115 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10116
10117         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
10118
10119 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
10120
10121         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
10122         to function_section before writing out the constant pool.
10123
10124 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
10125
10126         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
10127         zero_constant.
10128         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
10129
10130 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
10131
10132         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
10133         (adddi3): Likewise.
10134         (movdf): Likewise.
10135         (movdi): Likewise.
10136         (cmpsi splitter): Likewise.
10137         (modsi3): Fail if <= 0.
10138         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
10139         redundant test when HOST_BITS_PER_WIDE_INT != 32.
10140         (reg_or_sub_cint64_operand): Likewise.
10141         (num_insns_constant_wide): Optimize sign extension.
10142         (rs6000_legitimize_address): Likewise.
10143
10144 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10145
10146         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10147         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
10148
10149 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
10150
10151         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
10152         address calculation.
10153
10154 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
10155
10156         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
10157         scratch register to DImode / TImode.
10158         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
10159         register used does not overlap the target.
10160
10161 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10162
10163         * Makefile.in (debug.o): Depend on debug.h.
10164         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
10165         * debug.c (do_nothing_debug_hooks): Likewise.
10166         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
10167         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
10168         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
10169         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
10170         * dwarfout.c (dwarf_debug_hooks): Likewise.
10171         * integrate.c (output_inline_function): Likewise.
10172         * objc/objc-act.c (synth_module_prologue): Likewise.
10173         * sdbout.c (sdb_debug_hooks): Likewise.
10174         * toplev.c (debug_hooks): Likewise.
10175         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
10176
10177 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10178
10179         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
10180         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
10181         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
10182         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
10183         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
10184         * defaults.h (POINTER_SIZE): Define.
10185         * doc/tm.texi (POINTER_SIZE): Document default.
10186
10187 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10188
10189         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
10190
10191 2002-03-11  Richard Henderson  <rth@redhat.com>
10192
10193         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
10194         if rebuild_label_notes_after_reload.
10195
10196 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
10197
10198         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
10199         emit pic register load if "internal" visibility.
10200         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
10201         (cris_expand_builtin_va_arg): Do all computations on trees.
10202
10203 2002-03-11  Richard Henderson  <rth@redhat.com>
10204
10205         * rtlanal.c: Include recog.h.
10206         (keep_with_call_p): Fix thinko.
10207         * Makefile.in (rtlanal.o): Update dependencies.
10208
10209 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
10210
10211         * genflags.c (gen_insn): Use IS_VSPACE.
10212         * genoutput.c (output_insn_data): Likewise.
10213         (process_template): Likewise.
10214
10215 2002-03-11  Richard Henderson  <rth@redhat.com>
10216
10217         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
10218
10219 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
10220
10221         * Makefile.in: Update.
10222         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
10223         Update documentation.
10224         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
10225         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
10226
10227 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
10228
10229         * Makefile.in: Give texi2pod its input file as a command line
10230         argument, not on stdin.
10231
10232 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
10233             Daniel Berlin  <dan@dberlin.org>
10234
10235         C++ alias analysis improvement.
10236         * alias.c (record_component_aliases): Record aliases for base
10237         classes too.
10238
10239 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
10240
10241         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
10242
10243 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
10244
10245         * toplev.c (vms_fopen): Remove, not needed.
10246
10247         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
10248
10249         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
10250
10251         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
10252         for FP, already done later.
10253
10254         * toplev.c (debug_args): Add entry for VMS_DEBUG.
10255         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
10256
10257 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
10258
10259         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
10260         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
10261         LARGEST_EXPONENT_IS_NORMAL for the given mode.
10262         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
10263         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
10264         (ediv, emul, eldexp, esqrt): Likewise.
10265         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
10266         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
10267         (saturate): New function.
10268         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
10269         (make_nan): Use a saturation value instead of a NaN if
10270         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
10271         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
10272         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
10273         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
10274         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
10275         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
10276         !ROUND_TOWARDS_ZERO.
10277         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
10278         (ROUND_TOWARDS_ZERO): Document.
10279
10280 2002-03-11  Andreas Jaeger  <aj@suse.de>
10281
10282         * cfg.c (dump_flow_info): Remove unused variable.
10283
10284 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
10285
10286         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
10287         computations on trees.
10288
10289 2002-03-10  Richard Henderson  <rth@redhat.com>
10290
10291         PR 5693:
10292         * reload.c (copy_replacements_1): New.
10293         (copy_replacements): Use it to recurse through the rtx.
10294
10295 2002-03-10  Richard Henderson  <rth@redhat.com>
10296
10297         * loop.c (strength_reduce): Compute number of iterations as
10298         unsigned HOST_WIDE_INT.
10299
10300 2002-03-10  Richard Henderson  <rth@redhat.com>
10301
10302         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
10303         to move away from the end of the block.
10304
10305 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
10306
10307         PR preprocessor/5899
10308         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
10309
10310 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10311
10312         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
10313
10314         * attribs.c (decl_attributes): Fix signed/unsigned warning.
10315
10316 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
10317
10318         * config/mmix/mmix.c: Improve comments.
10319         (mmix_target_asm_function_prologue): Drop variable
10320         empty_stack_frame.  Don't allocate unused slot above fp.
10321         (mmix_target_asm_function_epilogue): Mirror prologue changes.
10322         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
10323         brace in first column.
10324         (enum reg_class): Ditto.
10325         (FIRST_PARM_OFFSET): Now 0.
10326         (USER_LABEL_PREFIX): Remove #if 0:d definition.
10327
10328 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10329
10330         * combine.c (make_extraction): Fix error in last change.
10331
10332 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10333
10334         * c4x.c (c4x_fp_reglist): Const-ify.
10335         * cris.c (cris_print_operand): Likewise.
10336         * i386.c (ix86_va_arg): Likewise.
10337         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
10338         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
10339         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
10340         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
10341         * mcore.h (regno_reg_class): Likewise.
10342         * mips.c (gen_int_relational): Likewise.
10343         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
10344         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
10345         * pdp11.c (move_costs): Likewise.
10346         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
10347         * s390.c (s390_branch_condition_mnemonic, regclass_map):
10348         Likewise.
10349         * s390.h (regclass_map): Likewise.
10350         * sh.c (shift_amounts): Likewise.
10351         * sh.md (rotlsi3): Likewise.
10352
10353 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10354
10355         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
10356         (ne0+5): Use new clobber to generate proper shift pattern.
10357         Patch by Michael Matz <matz@kde.org>.
10358
10359 2002-03-09  Andreas Schwab  <schwab@suse.de>
10360
10361         * gcc.c (validate_all_switches): Also handle `%W{...}'.
10362
10363 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
10364
10365         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
10366
10367 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
10368
10369         PR middle-end/5877
10370         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
10371         even for non-representable constants.
10372
10373 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10374
10375         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
10376         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
10377         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
10378         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
10379         (pop_function_context): Compute MAY_SHARE parameter for
10380         fixup_var_refs.
10381         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
10382         (gen_mem_addressof): Call fixup_var_refs with new parm.
10383
10384         * combine.c (make_extraction): Don't make extension of CONST_INT.
10385
10386 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10387
10388         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
10389         in o32 and o64 ABIs.
10390         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
10391         but getting fixed-size structs passed in registers regardless of
10392         padding in o32 and o64 ABIs.
10393
10394         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
10395         offset before loading address of argument passed by transparent
10396         reference.
10397
10398 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10399
10400         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
10401
10402 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
10403
10404         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
10405         marker such that registers after it are saved.
10406
10407 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10408
10409         * sparc.c (arith_4096_operand): Fix error in last change.
10410
10411 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10412
10413         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
10414         defaults for MEABI.
10415
10416 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10417
10418         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
10419         vectors.
10420
10421 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
10422
10423         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
10424
10425 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
10426
10427         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
10428         removed; fix return value.
10429         * combine.c (combine_instructions): Dirtify blocks where we failed to
10430         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
10431         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
10432
10433 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10434
10435         * gcse.c (insert_insn_end_bb): Fix typo in last change.
10436
10437 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
10438
10439         * recog.c (peephole2_optimize): Re-distribute EH edges.
10440
10441 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
10442
10443         * expr.c (expand_expr): Use unsave lang hook.
10444         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
10445         (LANG_HOOKS_INITIALIZER): Update.
10446         * langhooks.h (struct lang_hooks): New hook unsave.
10447         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
10448         (unsave_expr_1): Remove unused lang_unsave_expr_now.
10449         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
10450         (unsave_expr_now): Remove.
10451         * tree.h (unsave_expr_now, lang_unsave,
10452         lang_unsave_expr_now): Remove.
10453         (lhd_unsave): New.
10454
10455 2002-03-08  Andreas Jaeger  <aj@suse.de>
10456
10457         * flow.c (propagate_block_delete_insn): Remove unused variable.
10458
10459 2002-03-08  Kazu Hirata  <kazu@hxi.com>
10460
10461         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
10462         insn length for memory load/store.
10463
10464 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
10465
10466         * doc/install.texi (--with-libiconv-prefix): Document.
10467
10468 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
10469
10470         * doc/sourcebuild.texi: Fix typo.
10471
10472 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
10473
10474         PR c/3711
10475         * builtins.c (std_expand_builtin_va_arg): Do all computations on
10476         trees.
10477
10478 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10479
10480         * rtl.c (copy_most_rtx): Move from here ...
10481         * emit-rtl.c (copy_most_rtx): ... to here.
10482
10483 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
10484
10485         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
10486         SUBTARGET_CPP_SIZE_SPEC.
10487         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
10488
10489         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
10490
10491 2002-03-07  Matt Hiller  <hiller@redhat.com>
10492
10493         * gensupport.c (first_dir_md_include): Renamed from include;
10494         change all references.
10495         (last_dir_md_include): Renamed from last_include; change all
10496         references.
10497         (init_md_reader): Unconditionally initialize base_dir whether or
10498         not filename is a relative path.
10499
10500 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
10501
10502         * config/fp-bit.c (_unord_f2): Compile it in even if
10503         US_SOFTWARE_GOFAST is enabled.
10504
10505         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
10506         NULL_RTX.  Set all HFmode operations as NULL_RTX.
10507         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
10508         NULL_RTX, try reversing the comparison and the operands.
10509
10510 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10511
10512         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
10513         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
10514         and MATCH_OP_DUP.
10515
10516 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
10517
10518         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
10519
10520 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10521
10522         * basic-block.h (fixup_abnormal_edges): Declare.
10523         * reload1.c (fixup_abnormal_edges): New function.
10524         * reg-stack.c (convert_regs): Use it.
10525
10526         * gcse.c (insert_insn_end_bb): Handle trapping insns.
10527
10528         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
10529
10530 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
10531
10532         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
10533         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
10534         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
10535         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
10536         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
10537         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
10538         unless x and y could be infinite.
10539         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
10540         Check that the common type of both arguments is a real, even for
10541         targets without unordered comparisons.  Allow an integer argument
10542         to be compared against a real.
10543         (expand_tree_builtin): Use expand_unordered_cmp.
10544         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
10545         * cse.c (fold_rtx): Likewise.  Fix indentation.
10546         * fold-const.c (fold_real_zero_addition_p): New.
10547         (fold): Use it, and the new HONOR_... macros.
10548         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
10549         * jump.c (reversed_comparison_code_parts): After searching for
10550         the true comparison mode, use HONOR_NANS to decide whether it
10551         can be safely reversed.
10552         (reverse_condition_maybe_unordered): Remove IEEE check.
10553         * simplify-rtx.c (simplify_binary_operation): Use the new macros
10554         to decide which simplifications are valid.  Allow the following
10555         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
10556         and (a - -b) to (a + b).
10557         (simplify_relational_operation): Use HONOR_NANS.
10558         * doc/tm.texi: Document the MODE_HAS_... macros.
10559
10560 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
10561
10562         * combine.c (simplify_comparison): If simplifying a logical shift
10563         right and compare with constant, force the comparison to unsigned.
10564
10565 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
10566
10567         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
10568
10569         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
10570         -mabi=no-altivec
10571         (alt_reg_names): Remove % for vrsave.
10572
10573 2002-03-06  Richard Henderson  <rth@redhat.com>
10574
10575         PR optimization/5844
10576         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
10577         if used indicates we've already emitted one copy of an operand.
10578         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
10579         (gen_split): Supply a non-null used.
10580
10581 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10582
10583         * reload1.c (reload): Unshare all rtl after reload is done.
10584
10585         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10586         but simply fail if the expression is too complex to simplify.
10587         (simplify_gen_binary): Handle simplify_plus_minus failures.
10588
10589 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10590
10591         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10592         consistently call delete_trivially_dead_insns after CSE and GCSE;
10593         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10594         after liveness2; update comment in last crossjumping.
10595         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10596
10597 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10598
10599         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10600         after completing fast dead code elimination.
10601
10602         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10603         COMPARE operator.
10604
10605 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10606
10607         * version.c:  Fix misplaced leading blanks on first line.
10608
10609 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10610
10611         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10612
10613 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10614
10615         * cfgcleanup.c (mentions_nonequal_regs): New function.
10616         (thread_jump): Use it.
10617         * toplev.c (rest_of_compilation): Run jump threading after
10618         liveness.
10619
10620 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10621
10622         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10623         patch.
10624
10625 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10626
10627         * predict.c (estimate_bb_frequencies): Do not reload the
10628         frequencies from notes.
10629
10630 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10631
10632         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10633         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10634
10635         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10636         delete_noop_moves): Return indeger.
10637         * flow.c (ndead): New variable.
10638         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10639         BB argument; update callers.
10640         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10641         (life_analysis): Do not call purge_all_dead_edges.
10642         (update_life_info): Return number of deleted insns; print statistics.
10643         (update_life_info_in_dirty_blocks): likewise.
10644         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10645         return number of insns deleted.
10646
10647         * cse.c: Include timevar.h
10648         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10649         iterate until stabilizes; print statistics; return number of killed
10650         insns.
10651         * Makefile.in: (cse.o): Add timevar.h dependency
10652         * rtl.h (delete_trivially_dead_insns): New.
10653         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10654         * toplev.c (rest_of_compilation): Update callers.
10655
10656         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10657         (try_optimize_cfg): Do not update liveness.
10658         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10659         removal stabilizes; use delete_trivially_dead_insns.
10660
10661         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10662
10663 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10664
10665         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10666         callbacks when processing assembly language.
10667
10668 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10669
10670         * pa.h (ASM_FILE_END): Define.
10671         * som.h (ASM_FILE_END): Delete.
10672
10673         * pa.c (function_arg): Don't pass floats in general registers in
10674         indirect calls if TARGET_ELF32.
10675
10676 2002-03-05  Richard Henderson  <rth@redhat.com>
10677
10678         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10679
10680 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10681
10682         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10683
10684 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10685
10686         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10687         -r command line.  Don't hide any symbols if not building
10688         shared libgcc.
10689
10690 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10691
10692         * cfg.c (dump_flow_info): Warn about profile mismatches.
10693         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10694         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10695
10696 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10697
10698         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10699         wide volatile memory by parts.
10700
10701 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10702
10703         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10704         is NULL.
10705
10706 2002-03-05  Richard Henderson  <rth@redhat.com>
10707
10708         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10709
10710 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10711
10712         * toplev.c (documented_lang_options): Document more
10713         language-specific options.
10714         * doc/invoke.texi (Warning Options): Correct documentation for
10715         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10716         * c-decl.c (c_decode_option): Use a table to handle warning options.
10717
10718 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10719
10720         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10721         parameter to mmix_encode_section_info.
10722         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10723         relocatably.  Always produce ELF, not mmo if linking relocatably.
10724         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10725         first is non-zero, don't add symbol prefix.
10726         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10727         prototype accordingly.
10728
10729 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10730
10731         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10732
10733 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10734
10735         * configure.in: Increase required makeinfo version to 4.1.
10736         * configure: Regenerate.
10737
10738 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10739
10740         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10741         elsewhere now.
10742
10743 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10744
10745         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10746         * doc/invoke.texi: Fix @math uses.
10747
10748 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10749
10750         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10751         removal
10752
10753 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10754
10755         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10756         (powerpc-*-eabisimaltivec*): Same.
10757
10758         * config/rs6000/t-ppcendian: New.
10759
10760 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10761
10762         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10763         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10764         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10765
10766 2002-03-03  Richard Henderson  <rth@redhat.com>
10767
10768         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10769
10770 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10771
10772         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10773         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10774         tree.c, config/m68k/m68k.c:
10775         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10776         REAL_ARITHMETIC blocks unconditional.  Delete some further
10777         #ifdef blocks predicated on REAL_ARITHMETIC.
10778         * flags.h, toplev.c: Delete remaining references to
10779         flag_pretend_float.
10780
10781         * doc/invoke.texi: Remove documentation of -fpretend-float.
10782         * doc/tm.texi: Describe the various REAL_* macros as provided by
10783         real.h, not by the target configuration files.
10784
10785         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10786         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10787         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10788         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10789         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10790         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10791         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10792         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10793         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10794         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10795         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10796         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10797         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10798         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10799         config/xtensa/xtensa.h:
10800         Do not define, undefine, or mention in comments any of
10801         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10802         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10803         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10804         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10805         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10806         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10807         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10808         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10809         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10810
10811 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10812
10813         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10814         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10815         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10816         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10817         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10818         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10819         Delete.
10820         * defaults.h (BITS_PER_WORD): Define.
10821         * doc/tm.texi (BITS_PER_WORD): Document default value.
10822
10823         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10824         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10825         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10826
10827 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10828
10829         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10830         lieu of explicit sizeof/sizeof.
10831         * i386.c (override_options, ix86_init_mmx_sse_builtins,
10832         ix86_expand_builtin): Likewise.
10833         * mips.c (mips_add_gc_roots): Likewise.
10834         * mmix.c (mmix_output_condition): Likewise.
10835         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10836         altivec_init_builtins): Likewise.
10837         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10838         * cppexp.c (Nsuff, parse_number): Likewise.
10839         * cppinit.c (builtin_array_end): Likewise.
10840         * gcc.c (n_default_compilers, process_command): Likewise.
10841         * genpreds.c (output_predicate_decls): Likewise.
10842         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10843         * lcm.c (N_ENTITIES): Likewise.
10844         * stor-layout.c (set_sizetype): Likewise.
10845
10846 2002-03-03  Richard Henderson  <rth@redhat.com>
10847
10848         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10849         for types or labels.
10850
10851 2002-03-03  Richard Henderson  <rth@redhat.com>
10852
10853         * c-decl.c (start_decl): Initialized variables are not common.
10854
10855 2002-03-02  Per Bothner  <per@bothner.com>
10856
10857         * gcc.c (option_map):  Suport new --bootclasspath option.
10858         --CLASSPATH is now just an alias for --classpath.
10859
10860 2002-03-02  Richard Henderson  <rth@redhat.com>
10861
10862         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10863         load if "internal" visibility.
10864         * doc/extend.texi: Document visibility meanings.
10865
10866 2002-03-02  Richard Henderson  <rth@redhat.com>
10867
10868         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10869         to functions as well.
10870
10871 2002-03-02  Richard Henderson  <rth@redhat.com>
10872
10873         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10874         (handle_visibility_attribute): Don't call assemble_visibility.
10875         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10876         without asmspec.  Invoke assemble_alias when needed.
10877         * varasm.c (maybe_assemble_visibility): New.
10878         (assemble_start_function, assemble_variable, assemble_alias): Use it.
10879
10880 2002-03-02  Richard Henderson  <rth@redhat.com>
10881
10882         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10883         invoke ENCODE_SECTION_INFO with first call flag.
10884
10885         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10886         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10887         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10888         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10889         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10890         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10891         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10892         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10893         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10894         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10895         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10896         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10897         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10898         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10899         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10900         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10901         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10902         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10903         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10904         config/sh/sh.h, config/sparc/sparc.h,
10905         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10906         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10907         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10908         FIRST argument.  As needed, examine it and do nothing.
10909
10910         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10911         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10912         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10913
10914         * config/arm/t-pe (pe.o): Add dependencies.
10915
10916 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10917
10918         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10919         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10920         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10921         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10922         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10923         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10924         * defaults.h (BITS_PER_UNIT): Define.
10925         * doc/tm.texi (BITS_PER_UNIT): Document default value.
10926
10927 2002-03-02  Kazu Hirata  <kazu@hxi.com>
10928
10929         * config/h8300/h8300-protos.h: Add a prototype for
10930         compute_a_shift_length.
10931         * config/h8300/h8300.c (h8300_asm_insn_count): New.
10932         (compute_a_shift_length): Likewise.
10933         (h8300_adjust_insn_length): Do not adjust insn length of shift
10934         insns.
10935         * config/h8300/h8300.md (anonymous shift patterns): Use
10936         compute_a_shift_length.
10937
10938 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10939
10940         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10941         trunc_int_for_mode.
10942
10943         * emit-rtl.c (offset_address): Call update_temp_slot_address.
10944
10945 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10946
10947         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10948         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10949         * flags.h (flag_zero_initialized_in_bss): Declare.
10950         * toplev.c (flag_zero_initialized_in_bss): New flag.
10951         (lang_independent_options): Add flag_zero_initialized_in_bss.
10952         * tree.c (initializer_zerop): New function.
10953         * tree.h (initializer_zerop): Declare.
10954         * varasm.c (assemble_variable): If we can emit bss, put zero
10955         initializers in the bss section.
10956
10957 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
10958
10959         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10960         like more than one symbol per .weak directive.
10961
10962 2002-03-01  Richard Henderson  <rth@redhat.com>
10963
10964         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10965         adjust argument_pointer by pretend_args_size.
10966         (ia64_va_start): Adjust va_start address by -pretend_args_size.
10967
10968 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10969
10970         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10971
10972 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
10973
10974         * toplev.c (rest_of_compilation): Delete dead jumptables before
10975         loop.
10976         * flow.c (delete_dead_jumptables): Make global.
10977         * rtl.h (delete_dead_jumptables): Declare.
10978
10979 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
10980
10981         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10982         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10983         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10984
10985 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10986
10987         * config/h8300/h8300-protos.h: Fix formatting.
10988         * config/h8300/h8300.c: Likewise.
10989         * config/h8300/h8300.h: Likewise.
10990
10991 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10992
10993         * config/h8300/h8300.c (print_operand): Support 16-bit
10994         constant addresses.
10995         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10996
10997 2002-02-28  Richard Henderson  <rth@redhat.com>
10998
10999         * expmed.c (store_bit_field): Prevent generation of CONCATs;
11000         pun complex values as integers; use gen_lowpart instead of
11001         gen_rtx_SUBREG.
11002         (extract_bit_field): Likewise.
11003
11004 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
11005             David Edelsohn  <edelsohn@gnu.org>
11006
11007         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
11008         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
11009         (SUPPORTS_WEAK): Likewise.
11010         * output.h (add_weak): Add tree param.
11011         * varasm.c (add_weak): Likewise.  Save decl.
11012         (struct weak_syms): Add decl field.
11013         (mark_weak_decls): New function.
11014         (init_varasm_once): ggc_add_root mark_weak_decls.
11015         (assemble_start_function): Use ASM_WEAKEN_DECL.
11016         (assemble_variable): Likewise.
11017         (assemble_alias): Likewise.
11018         (declare_weak): Pass decl to add_weak.
11019         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
11020         (remove_from_pending_weak_list): Declare and define for
11021         ASM_WEAKEN_DECL.
11022         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
11023         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
11024         * defaults.h (SUPPORTS_WEAK): Likewise.
11025         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11026         .weak for code sym.  Do emit .size for descriptor sym.
11027         (ASM_DECLARE_FUNCTION_SIZE): Define.
11028         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
11029         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
11030         .lglobl unless TARGET_XCOFF.  Formatting fixes.
11031         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
11032         .weak for code sym.
11033         (HANDLE_PRAGMA_WEAK): Remove.
11034         (ASM_WEAKEN_LABEL): Remove.
11035         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
11036
11037 2002-03-01  Jason Merrill  <jason@redhat.com>
11038
11039         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
11040         (TARGET_EXPR_CLEANUP): New macro.
11041
11042 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
11043
11044         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
11045         to take ptr_extend into account as third type of extension.
11046         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
11047         fields used by SUBREG_PROMOTED_UNSIGNED_P.
11048         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
11049         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
11050         * calls.c (precompute_arguments): Use new macro.
11051         (expand_call): Ditto.
11052         * combine.c (nonzero_bits): Ditto.
11053         (record_promoted_value): Ditto.
11054         * expr.c (store_expr): Ditto.
11055         (expand_expr): Ditto.
11056         * function.c (assign_parms): Ditto.
11057
11058 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
11059
11060         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
11061         override -shared and -shared-libgcc.
11062
11063 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
11064
11065         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
11066         of "ultrasparc".
11067         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
11068         to be broken.
11069
11070 2002-02-28  Richard Henderson  <rth@redhat.com>
11071
11072         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
11073         4 cycle latency from MM producers.
11074         (ia64_internal_sched_reorder): Likewise with pipeline flush.
11075
11076 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
11077
11078         * mklibgcc.in: Don't use GNU make extension.
11079
11080 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11081
11082         * c-parse.in (STATIC): New terminal.
11083         (scspec): New non-terminal.  Update productions accordingly.
11084         (program): Remove bogus ifc / end ifc.
11085         (array_declarator): Simplify production using STATIC.
11086
11087 2002-02-28  Jim Meyering  <meyering@lucent.com>
11088
11089         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
11090         \a still means TARGET_BELL.
11091
11092 2002-02-28  Richard Henderson  <rth@redhat.com>
11093
11094         * haifa-sched.c (sched_emit_insn): New.
11095         (schedule_block): Use last_scheduled_insn to track last insn.
11096         * sched-int.h (sched_emit_insn): Prototype.
11097         * config/ia64/ia64.c (last_issued): Remove.
11098         (ia64_variable_issue): Don't set it.
11099         (nop_cycles_until): Use sched_emit_insn.
11100
11101 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
11102
11103         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
11104         extended constants.
11105
11106 2002-02-28  Kazu Hirata  <kazu@hxi.com>
11107
11108         * config/h8300/h8300.c: Fix formatting.
11109         * config/h8300/h8300.h: Likewise.
11110
11111 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
11112
11113         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
11114         which may overwrite the high byte of the frame pointer.
11115
11116 2002-02-28  Bo Thorsen  <bo@suse.de>
11117
11118         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
11119         (STARTFILE_SPEC): Add 64 bit files.
11120         (ENDFILE_SPEC): Likewise.
11121
11122 2002-02-28  Jason Merrill  <jason@redhat.com>
11123
11124         * c-decl.c (finish_function): Only warn about missing return
11125         statement with -Wreturn-type.
11126
11127 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11128
11129         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
11130
11131         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
11132         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
11133
11134 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
11135
11136         * basic-block.h (BB_REACHABLE): Renumber.
11137         (BB_DIRTY, BB_NEW): New flags.
11138         (clear_bb_flags): Declare.
11139         (update_life_info_in_dirty_blocks): Declare.
11140         * cfg.c (clear_bb_flags): New function.
11141         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
11142         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
11143         reorder_insns, emit_insn_after): Mark block as dirty.
11144         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
11145         (update_life_info_in_dirty_blocks): New function.
11146         * recog.c (apply_change_group): Dirtify block.
11147
11148         * cse.c (cse_insn): Reorder emitting of jump insn to keep
11149         cfg consistent.
11150         * gcse.c (delete_null_pointer_checks): Likewise.
11151
11152         * toplev.c (dump_file_index): Move cse2 after bp,
11153         add DFI_null
11154         (dump_file_info): Similary.
11155         (rest_of_compilation): Avoid most of CFG rebuilds;
11156         do first if converision after null pointer checks, do cse2
11157         after branch prediction; avoid full liveness rebuild after
11158         initializing subregs.
11159         * invoke.texi (-d options): Document -du, renumber.
11160
11161         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
11162         (notice_new_block): Do not set BB_UPDATE_LIFE.
11163         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
11164          merge_blocks_move_successor_nojumps, merge_blocks,
11165          try_crossjump_to_edge): Likewise.
11166         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
11167         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
11168         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
11169         (merge_of_block): Do not use life_data_ok.
11170         (find_if_case_1): Do not use SET_UPDATE_LIFE.
11171         (if_convert): Use BB_DIRTY mechanizm to update life.
11172         * lcm.c (optimize_mode_switching): Update
11173         update_life_info_in_dirty_blocks
11174
11175 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
11176
11177         * Makefile.in (integrate.o): Update.
11178         * c-decl.c (copy_lang_decl): Rename.
11179         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11180         * integrate.c: Include langhooks.h.
11181         (copy_decl_for_inlining): Update to use langhook.
11182         * langhooks-def.h (lhd_do_nothing_t,
11183         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
11184         (LANG_HOOKS_INITIALIZER): Update.
11185         * langhooks.c (lhd_do_nothing_t): New.
11186         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
11187         * tree.h (copy_lang_decl): Remove.
11188 objc:
11189         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
11190
11191 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
11192
11193         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
11194         POST_DEC, and POST_MODIFY.
11195
11196 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11197
11198         * c-typeck.c (digest_init): Remove unused parameter; all
11199         callers changed.
11200
11201 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
11202
11203         * expmed.c (expand_shift): Correctly test for low part of a
11204         subreg.
11205
11206 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
11207
11208         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
11209         insn UIDs with insn addresses.
11210
11211 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11212
11213         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
11214         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
11215         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
11216         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
11217         gcc.c, toplev.c: Delete code implementing -traditional mode.
11218
11219         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
11220         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
11221         Document removal of -traditional mode for compilation, and
11222         remove documentation only relevant to that mode.
11223
11224         * config/nextstep.h, config/ptx4.h, config/svr4.h,
11225         config/convex/convex.h, config/d30v/d30v.h,
11226         config/i386/dgux.h, config/i386/osf1elf.h,
11227         config/i386/osfelf.h, config/i386/osfrose.h,
11228         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
11229         config/m68k/hp310.h, config/m88k/dgux.h,
11230         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
11231         config/m88k/m88k.h, config/m88k/openbsd.h,
11232         config/mips/abi64.h, config/mips/osfrose.h,
11233         config/mips/svr4-5.h, config/mips/svr4-t.h,
11234         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
11235         config/stormy16/stormy16.h: Remove all references to
11236         -traditional from target specs.  Delete all mention of the
11237         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
11238         delete a couple of commented-out definitions of
11239         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
11240         to -traditional.
11241
11242         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
11243         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
11244
11245 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
11246
11247         * mklibgcc.in: Don't use \n in a line subject to
11248         interpretation by echo.
11249
11250 2002-02-27  Graham Stott  <grahams@redhat.com>
11251
11252         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
11253         Constify NAME.
11254
11255         * loop.c (prescan_loop): Handle PARALLEL.
11256
11257         * unroll.c (loop_iterations): Return 0 if the add_val for
11258         a BIV is REG.
11259
11260         * final.c (output_operand_lossage): Constify PFX_STR.
11261
11262         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
11263
11264 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
11265
11266         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
11267         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
11268
11269 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
11270
11271         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
11272
11273 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
11274
11275         * cpplex.c (_cpp_lex_token): Handle directives in macro
11276         arguments.
11277         * cpplib.c (_cpp_handle_directive): Save and restore state
11278         if parsing macro args when entering a directive.
11279         * cppmacro.c (collect_args): No need to handle directives
11280         in macro arguments.
11281         (enter_macro_context, replace_args): Use the original macro
11282         definition in case it was redefined whilst collecting arguments.
11283 doc:
11284         * cpp.texi: Update.
11285
11286 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
11287
11288         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
11289         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
11290         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
11291         method on AIX.
11292         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
11293         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
11294         (load_toc_v4_PIC_2): Same.
11295
11296 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
11297
11298         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
11299
11300 2002-02-26  Richard Henderson  <rth@redhat.com>
11301
11302         * config/alpha/alpha.md (ashldi_se): Re-enable.
11303
11304 2002-02-26  Richard Henderson  <rth@redhat.com>
11305
11306         * config/alpha/alpha.c (alpha_encode_section_info): Examine
11307         MODULE_LOCAL_P; improve commentary.
11308
11309 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
11310
11311         * doc/cpp.texi: Clarify documentation of relationship between
11312         #line and #include.
11313
11314 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11315
11316         * config/h8300/h8300-protos.h: Update the prototype for
11317         compute_logical_op_length.  Add the prototype for
11318         compute_logical_op_cc.
11319         * config/h8300/h8300.c (compute_logical_op_length): Figure out
11320         code from operands.
11321         (compute_logical_op_cc): New.
11322         * config/h8300/h8300.md: Combine all the logical op patterns
11323         in HImode and SImode.  Use compute_logical_op_cc.
11324
11325 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
11326
11327         * config/i386/i386.c (print_operand): Don't append ATT-style
11328         length suffixs to x87 opcodes when in Intel mode.
11329
11330 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
11331
11332         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
11333         (init_emit_once): Update calls.
11334         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
11335         (init_syntax_once): Prototype.
11336
11337 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11338
11339         * pa-linux.h (LIB_SPEC): Update definition.
11340         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11341
11342 2002-02-26  Richard Henderson  <rth@redhat.com>
11343
11344         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
11345         if we emitted a stop bit.
11346
11347 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11348
11349         * configure.in (libgcc_visibility): Substitute.
11350         * configure: Rebuilt.
11351         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
11352         defined symbols .hidden.
11353
11354 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11355
11356         * attribs.c (c_common_attribute_table): Add visibility.
11357         (handle_visibility_attribute): New function.
11358         * varasm.c (assemble_visibility): New function.
11359         * output.h (assemble_visibility): Add prototype.
11360         * tree.h (MODULE_LOCAL_P): Define.
11361         * crtstuff.c (__dso_handle): Use visibility attribute.
11362         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
11363         for MODULE_LOCAL_P symbols too.
11364         * config/ia64/ia64.c (ia64_encode_section_info): Handle
11365         MODULE_LOCAL_P symbols the same way as local symbols.
11366         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
11367         into .sdata/.sbss by the user.
11368         * doc/extend.texi (Function Attributes): Document visibility
11369         attribute.
11370
11371 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
11372
11373         PR debug/5770
11374         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
11375         STRING_CST initializer spanning the whole variable without
11376         embedded zeros.
11377         If expand_expr returned MEM, don't use it.
11378
11379 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
11380
11381         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
11382         generate a die for the lexical block.
11383
11384 2002-02-26  Kazu Hirata  <kazu@hxi.com>
11385
11386         * config/h8300/h8300-protos.h: Add a prototype for
11387         compute_logical_op_length.
11388         * config/h8300/h8300.c (compute_logical_op_length): New.
11389         * config/h8300/h8300.md (anonymous logical patterns): Use
11390         compute_logical_op_length for length.
11391
11392 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11393
11394         * dwarf2out.c (modified_type_die): Do not call type_main_variant
11395         for vectors.
11396         (gen_type_die): Same.
11397
11398         * attribs.c (handle_vector_size_attribute): Set debug information.
11399
11400 2002-02-26  Daniel Egger  <degger@fhm.edu>
11401
11402         * config/rs6000/rs6000.md: Swap define_insn attributes to
11403         fix incorrect generation of merge high instructions instead
11404         of merge low.
11405
11406 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11407
11408         * c-typeck.c (really_start_incremental_init): Use
11409         bitsize_zero_node for vectors.
11410
11411 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
11412
11413         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
11414         ("*set_vrsave_internal"): Same.
11415
11416 2002-02-25  Richard Henderson  <rth@redhat.com>
11417
11418         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
11419         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
11420
11421 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
11422
11423         PR target/5755
11424         * config/i386/i386.c (ix86_return_pops_args): Only pop
11425         fake structure return argument if it was passed on the stack.
11426
11427 2002-02-25  Jason Merrill  <jason@redhat.com>
11428
11429         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
11430         RESULT_DECL.
11431
11432 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11433
11434         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
11435         link with shared_name only.
11436         * doc/invoke.texi (Link Options): Document new behavior.
11437
11438 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11439
11440         * c-typeck.c (push_init_level): Handle vectors.
11441
11442 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
11443
11444         * config/sparc/sparc.c (const64_high_operand): Zero-extend
11445         operands of SPARC_SETHI_P.
11446         (input_operand): Likewise.
11447         (sparc_emit_set_const32): Likewise.
11448         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
11449         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
11450         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
11451         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
11452         (movdi_insn_sp64_vis): Likewise.
11453         (movdi split, movdf split): Use SETHI32.
11454         * doc/md.texi: Document SPARC constraints L, M and N.
11455
11456 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
11457
11458         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
11459         ("*set_vrsave_internal"): use mfspr for Darwin.
11460
11461         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
11462         gen_get_vrsave_internal.
11463
11464 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11465
11466         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
11467
11468 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
11469
11470         * cpplex.c (cpp_interpret_charconst): Get signedness or
11471         otherwise of wide character constants correct.
11472         * cppexp.c (lex): Get signedness of wide charconsts correct.
11473
11474 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11475
11476         * optabs.c (widen_operand): Only call convert_modes for
11477         promoted SUBREG if signedness matches.
11478         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
11479
11480 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11481
11482         * cpplib.c (glue_header_name): Use local buffer to build up
11483         header name.
11484
11485 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11486
11487         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
11488
11489 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11490
11491         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
11492         H8/300[HS] separately.
11493         * config/h8300/h8300.md: Remove the early clobber constraint
11494         from bit field patterns.
11495
11496 2002-02-23  Kazu Hirata  <kazu@hxi.com>
11497
11498         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
11499         register_operand.
11500         (mulhisi3): Likewise.
11501         (umulqisi3): Likewise.
11502         (umulhisi3): Likewise.
11503
11504 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
11505
11506         * cppinit.c (output_deps): Correct test for stdout output.
11507         (init_dependency_output): Cure warning.
11508
11509 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11510
11511         * expr.c (store_expr): When converting expression to promoted
11512         equivalent type, allow using SUBREG_REG of TARGET as the target
11513         of the expansion of EXP.
11514         * loop.c (basic_induction_var, case SUBREG): Always look inside.
11515         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
11516         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
11517         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
11518         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
11519
11520 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
11521
11522         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
11523         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
11524         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
11525
11526 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
11527
11528         PR optimization/5747
11529         * loop.c (scan_loop): Update reg info if move_movables created new
11530         pseudos.
11531
11532 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11533
11534         * gcc.c (init_gcc_spec): Revert last change.
11535
11536 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
11537
11538         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
11539         gpc_reg_operand constraint.
11540
11541 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
11542
11543         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
11544         Simplify comparison of `low'.
11545         (add_operand): Fix formatting.
11546         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
11547         (mask_operand): Disallow mask to wrap in 64-bit mode.
11548         (rs6000_stack_info): Remove redundant test setting push_p.
11549         (output_toc): Fix formatting.
11550         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
11551         cc_reg_not_cr0_operand constraint.
11552         (booldi3, boolcdi3 splitters): Same.
11553
11554 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
11555
11556         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
11557
11558 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
11559
11560         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
11561         gcc invoked with -shared-libgcc.
11562
11563 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
11564
11565         PR c++/5748
11566         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
11567         decl if any of elements was TREE_USED.
11568
11569 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
11570
11571         * config/sparc/sol2.h: Don't include sys/mman.h.
11572         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
11573         (arith_4096_operand): Don't throw high bits away.
11574         (const64_operand): Take sign extension of CONST_INTs into account.
11575         (const64_high_operand, sparc_emit_set_const32): Likewise.
11576         (GEN_HIGHINT64): Likewise.
11577         (sparc_emit_set_const64_quick1): Likewise.
11578         (const64_is_2insns): Likewise.
11579         (print_operand): Use trunc_int_for_mode for sign extension.
11580         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11581         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11582         chars.  Assume CONST_INT is already properly sign-extended.
11583         (movdi split): Sign-extend each SImode part.
11584         (andsi3 split): Don't mask high bits off, so that result
11585         remains properly sign-extend.
11586         (iorsi3 split): Likewise.
11587         (xorsi3 split): Likewise.
11588
11589 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11590
11591         * fold-const.c (fold): Fix typo in comments.
11592
11593 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11594
11595         * Makefile.in (langhooks.o): Update dependencies.
11596
11597 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11598
11599         * langhooks.c: Include flags.h.
11600
11601 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11602
11603         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11604
11605         * c-common.c (c_common_post_options): Set inline trees by
11606         default.
11607
11608         * doc/extend.texi (Function Attributes): Document always_inline
11609         attribute.
11610         Update documentation about inlining when not optimizing.
11611
11612         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11613
11614         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11615         unless DECL_ALWAYS_INLINE.
11616
11617         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11618         unless DECL_ALWAYS_INLINE.
11619         (c_disregard_inline_limits): Disregard if always_inline set.
11620
11621         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11622         Disregard if always_inline set.
11623         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11624         unless DECL_ALWAYS_INLINE.
11625
11626         * attribs.c (handle_always_inline_attribute): New.
11627         (c_common_attribute_table): Add always_inline.
11628
11629         * config/rs6000/altivec.h: Add prototypes for builtins
11630         requiring the always_inline attribute.
11631
11632 2002-02-21  Eric Christopher  <echristo@redhat.com>
11633
11634         * expmed.c (store_bit_field): Try to simplify the subreg
11635         before generating a new one when when the mode size of
11636         value is less than maxmode.
11637
11638 2002-02-21  Richard Henderson  <rth@redhat.com>
11639
11640         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11641         than gen_rtx_PLUS to form the sum.
11642         * explow.c (force_reg): Rearrange to not allocate new pseudo
11643         when force_operand returns a register.
11644         * expr.c (expand_assignment): Allow offset_rtx expansion to
11645         return a sum.  Do not force addresses into registers.
11646         (expand_expr): Likewise.
11647         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11648         to canonicalize arithmetic that didn't simpify.
11649         (simplify_plus_minus): New argument force; update
11650         all callers.  Don't split CONST unless we can do something with it,
11651         and wouldn't lose the constness of the operands.
11652
11653         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11654         that we generated earlier.
11655
11656 2002-02-21  Tom Tromey  <tromey@redhat.com>
11657
11658         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11659         (output_line_info): Use constant `1', with a long explanatory
11660         comment.
11661         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11662
11663 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11664
11665         * jump.c (redirect_jump): If old label has no UID, don't try to
11666         delete it.
11667
11668 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11669
11670         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11671         If input is constant, do shifts at compile time.
11672
11673 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11674
11675         * doc/extend.texi: Fix some more overfull hboxes.
11676
11677 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11678
11679         PR optimization/4994
11680         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11681         register moves.
11682
11683 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11684
11685         PR c++/4574
11686         * expr.h (expand_and): Add mode argument.
11687         * expmed.c (expand_and): Add mode argument.
11688         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11689         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11690         * except.c (expand_builtin_extract_return_addr): Likewise.
11691         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11692         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11693         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11694         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11695         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11696         gen_rtx (CONST_INT, VOIDmode, x).
11697
11698 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11699
11700         PR c/4697:
11701         * stmt.c (warn_if_unused_value): Move side effects test once more.
11702
11703 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11704
11705         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11706         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11707
11708 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11709
11710         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11711         SUBREG or ZERO_EXTEND.
11712
11713 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11714
11715         * sh.h (current_function_anonymous_args): Remove.
11716         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11717         of current_function_varargs and current_function_stdarg is set.
11718         * sh.c (sh_expand_prologue): Check current_function_varargs /
11719         current_function_stdarg / TARGET_SH5 instead of
11720         current_function_anonymous_args.
11721
11722         * sh64.h (TARGET_VERSION): Define.
11723
11724 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11725
11726         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11727         VRSAVE_REGNO on TARGET_ALTIVEC.
11728
11729 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11730
11731         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11732         bits of SImode const_int.
11733         (includes_rshift_p): Likewise.
11734         (print_operand): Call mask_operand and mask64_operand with correct
11735         mode.
11736         (rs6000_output_function_epilogue): Pad traceback table to word.
11737         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11738         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11739         mask64_operand with correct mode.
11740         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11741
11742 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11743
11744         PR debug/4461
11745         * varasm.c (get_pool_constant_mark): New.
11746         * rtl.h (get_pool_constant_mark): Add prototype.
11747         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11748         be represented if it has not been output.
11749
11750 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11751
11752         * combine.c (do_SUBST): Sanity check substitutions of
11753         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11754         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11755         CONST_INT into its operand.
11756         (known_cond): Likewise, for ZERO_EXTEND.
11757         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11758         allow for simplification of wide modes.  Reject CONST_INTs in
11759         ZERO_EXTEND when their actual mode is not given.
11760
11761 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11762
11763         * c-decl.c (pushdecl): If no global declaration is found for an
11764         extern declaration in block scope, try a limbo one.
11765
11766 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11767
11768         PR c++/4401
11769         * c-common.c (pointer_int_sum): Moved from...
11770         * c-typeck.c (pointer_int_sum): ...here.
11771         * c-common.h (pointer_int_sum): Add prototype.
11772
11773 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11774
11775         PR c++/5713
11776         * c-decl.c (duplicate_decls): Return 0 if issued error about
11777         redeclaration.
11778
11779 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11780             Jakub Jelinek  <jakub@redhat.com>
11781
11782         PR c/4389
11783         * tree.c (host_integerp): Ensure that the constant integer is
11784         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11785         when pos is zero or non-zero respectively.  Clarify comment.
11786         * c-format.c (check_format_info_recurse): Fix host_integerp
11787         usage; the pos argument should be zero when assigning to a
11788         signed HOST_WIDE_INT.
11789
11790 2002-02-20  Richard Henderson  <rth@redhat.com>
11791
11792         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11793         of the operand, rather than assuming TImode.
11794         (ix86_expand_binop_builtin): Cope with commutative patterns
11795         using nonimmediate_operand for both operands.
11796         (ix86_expand_timode_binop_builtin): Likewise.
11797         (ix86_expand_store_builtin): Validate operand 1.
11798         (ix86_expand_unop1_builtin): Likewise.
11799
11800 2002-02-20  Philip Blundell  <philb@gnu.org>
11801
11802         PR 5705
11803         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11804
11805 2002-02-20  Richard Henderson  <rth@redhat.com>
11806
11807         PR c/5615
11808         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11809
11810 2002-02-20  Tom Tromey  <tromey@redhat.com>
11811
11812         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11813         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11814         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11815         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11816         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11817         unconditionally.
11818
11819 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11820
11821         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11822           for (const_int 0) in X not just INTVAL.
11823
11824 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11825
11826         * doc/extend.texi: Avoid or reduce overfull hboxes.
11827
11828 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
11829
11830         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11831         operations if the field does not start at a mode boundary.
11832
11833 2001-02-20      Joel Sherrill <joel@OARcorp.com>
11834
11835         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11836         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11837         Also done for -Acpu and -Amachine.
11838
11839 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11840
11841         * cppinit.c (init_dependency_output): Take deps output file
11842         from -o if none given with -MF.  Suppress normal output.
11843         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11844         * doc/cpp.texi, doc/invoke.texi: Update.
11845
11846 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11847
11848         * toplev.c (output_quoted_string): Write unprintable
11849         characters with octal escapes.
11850
11851 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11852
11853         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11854         really_call_used[VRSAVE_REGNO] if not Altivec.
11855
11856 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
11857
11858         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11859         MODE_MASK.
11860         (constant_pool_expr_1): Fix formatting.
11861         (rs6000_legitimize_reload_address): Likewise.
11862
11863 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11864
11865         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11866         now that we have one.
11867
11868 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11869
11870         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
11871         end of first block of bitfields (which was only seven bits);
11872         rename dummy to unused_1; remove comment which is no longer true.
11873
11874 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11875
11876         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11877
11878 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11879
11880         PR 5399
11881         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11882         if generating PIC.
11883
11884         PR 5054
11885         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11886         arm_is_longcall_p rather than inspecting call-type cookie
11887         directly.
11888         (call_value_insn) [TARGET_THUMB]: Likewise.
11889
11890 2002-02-19  Graham Stott  <grahams@redhat.com>
11891
11892         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11893
11894 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11895
11896         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11897         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11898         (FP_SAVE_INLINE): Delete.
11899
11900         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11901         * config/rs6000/eabi.asm: Remove ABI save restore routines.
11902         * config/rs6000/t-ppccomm: Build crtsavres.o.
11903         * config/rs6000/crtsavres.asm: New file.
11904
11905 2002-02-19  Philip Blundell  <philb@gnu.org>
11906
11907         * config/arm/arm.c (use_return_insn): Don't reject interrupt
11908         functions.
11909         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11910         (output_return_instruction): Allow interrupt functions to return with
11911         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
11912         (arm_expand_prologue): Subtract 4 before stacking LR in an
11913         interrupt function.
11914
11915 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11916
11917         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11918         decl, not just FUNCTION_DECL.
11919         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11920         (arm_assemble_integer): Likewise.
11921         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11922         marked local.
11923
11924 2002-02-19  matthew green  <mrg@eterna.com.au>
11925
11926         * config.gcc (sparc-*-netbsdelf*): Enable target.
11927         (sparc64-*-netbsd*): New target.
11928         * config/sparc/netbsd-elf.h: New file.
11929         * config/sparc/t-netbsd64: New file.
11930
11931 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11932
11933         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11934
11935 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
11936
11937         * doc/invoke.texi: explicitly list the style guidelines that
11938         -Weffc++ checks for.
11939
11940 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
11941
11942         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11943
11944 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11945
11946         PR other/5718
11947         * gcc.c (cpp_unique_options): Treat -o as indicating object file
11948         only if not -E.  If -E, pass -o through to the preprocessor.
11949
11950 2002-02-19  Kazu Hirata  <kazu@hxi.com>
11951
11952         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11953         register number with an appropriate macro.
11954
11955 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11956
11957         * doc/rtl.texi (Constants): Close @code tag.
11958
11959 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
11960
11961         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11962         ("mmx_uavgv4hi3"): Same.
11963         ("pmulhrwv4hi3"): Same.
11964
11965         * tree-inline.c (walk_tree): Handle vectors.
11966
11967         * c-common.c (constant_expression_warning): Handle vectors.
11968         (overflow_warning): Same.
11969
11970         * sched-deps.c (sched_analyze_2): Handle vectors.
11971
11972         * rtlanal.c (rtx_unstable_p): Handle vectors.
11973         (rtx_varies_p): Same.
11974         (count_occurrences): Same.
11975         (regs_set_between_p): Same.
11976         (modified_between_p): Same.
11977         (modified_in_p): Same.
11978         (volatile_insn_p): Same.
11979         (volatile_refs_p): Same.
11980         (side_effects_p): Same.
11981         (may_trap_p): Same.
11982         (inequality_comparisons_p): Same.
11983         (replace_regs): Same.
11984         (computed_jump_p_1): Same.
11985
11986         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11987         argument.
11988         (inner_mode_array): New.
11989         (copy_rtx): Handle vectors.
11990         (copy_most_rtx): Same.
11991         (rtx_equal_p): Same.
11992         (get_mode_alignment): Adjust for vectors.
11993
11994         * resource.c (mark_referenced_resources): Handle vectors.
11995         (mark_set_resources): Same.
11996
11997         * reload1.c (eliminate_regs): Handle vectors.
11998         (elimination_effects): Same.
11999         (scan_paradoxical_subregs): Same.
12000
12001         * reload.c (subst_reg_equivs): Handle vectors.
12002
12003         * regrename.c (scan_rtx): Handle vectors.
12004
12005         * regclass.c (reg_scan_mark_refs): Handle vectors.
12006
12007         * recog.c (find_single_use_1): Handle vectors.
12008
12009         * local-alloc.c (equiv_init_varies_p): Handle vectors.
12010         (contains_replace_regs): Same.
12011         (memref_referenced_p): Same.
12012
12013         * integrate.c (copy_rtx_and_substitute): Handle vectors.
12014         (subst_constants): Same.
12015
12016         * genattrtab.c (attr_copy_rtx): Handle vectors.
12017         (encode_units_mask): Same.
12018         (clear_struct_flag): Same.
12019         (count_sub_rtxs): Same.
12020
12021         * gcse.c (want_to_gcse_p): Handle vectors.
12022         (oprs_unchanged_p): Same.
12023         (hash_expr_1): Same.
12024         (oprs_not_set_p): Same.
12025         (expr_killed_p): Same.
12026         (compute_transp): Same.
12027         (store_ops_ok): Same.
12028
12029         * function.c (purge_addressof_1): Do not allow paradoxical subregs
12030         of vectors.
12031         (fixup_var_refs_1): Same.
12032         (instantiate_virtual_regs_1): Same.
12033
12034         * fold-const.c (operand_equal_p): Handle vectors.
12035         (fold): Same.
12036         (rtl_expr_nonnegative_p): Same.
12037
12038         * flow.c (mark_used_regs): Handle vectors.
12039
12040         * df.c (df_uses_record): Handle vectors.
12041
12042         * cselib.c (cselib_subst_to_values): Handle vectors.
12043         (cselib_mem_conflict_p): Same.
12044         (hash_rtx): Same.
12045
12046         * cse.c (canon_reg): Handle vectors.
12047         (fold_rt): Same.
12048         (cse_process_notes): Same.
12049         (count_reg_usage): Same.
12050         (canon_hash): Same.
12051
12052         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
12053
12054         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
12055
12056         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
12057         (gen_rtx): Handle CONST_VECTOR.
12058         (gen_const_vector_0): New.
12059         (copy_rtx_if_shared): CONST_VECTORs can be shared.
12060         (reset_used_flags): Same.
12061         (copy_insn_1): Same.
12062         (initializer_constant_valid_p): Handle VECTOR_CST.
12063
12064         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
12065
12066         * doc/rtl.texi (Constants): Document const_vector.
12067         (CONST0_RTX): Update for vectors.
12068         (RTL sharing): Same.
12069
12070         * print-tree.c (print_node): Add case for VECTOR_CST.
12071
12072         * tree.h (TREE_VECTOR_CST_ELTS): New.
12073         (struct tree_vector): New.
12074         (union tree_node): Add vector node.
12075         (build_vector): Add prototype.
12076
12077         * tree.def (VECTOR_CST): New.
12078
12079         * tree.c (build_vector): New.
12080
12081         * expmed.c (make_tree): Handle CONST_VECTOR.
12082
12083         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
12084         (CONST_VECTOR_ELT): New.
12085         (CONST_VECTOR_NUNITS): New.
12086
12087         * machmode.h (GET_MODE_INNER): New.
12088         (DEF_MACHMODE): Accept 8th arg.
12089
12090         * machmode.def: Add 8th argument for vector inner mode.
12091         Add inner vector modes for vectors.
12092
12093         * rtl.def (VEC_CONST): Remove.
12094         (CONST_VECTOR): New.
12095
12096         * expr.c (clear_storage): Allow vectors.
12097         (is_zeros_p): Handle VECTOR_CST.
12098
12099         * varasm.c (output_constant_pool): Handle vectors.
12100         (rtx_const): Add veclo and vechi fields.
12101         (kind): Add RTX_VECTOR.
12102         (decode_rtx_const): Add case for vector.
12103
12104         * config/rs6000/rs6000-protos.h: Add zero_constant.
12105
12106         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
12107         constants.  Force easy vector constants into memory.
12108         (easy_vector_constant): New.
12109         (emit_easy_vector_constant): New.
12110         (rs6000_legitimize_reload_address): Do not generate bad reloads on
12111         darwin.
12112
12113         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
12114         instruction does.
12115         ("altivec_lvxl"): Same.
12116         (altivec_lvebx): Same.
12117         (altivec_lvehx): Same.
12118         (altivec_lvewx): Same.
12119         ("*movv4si_const0"): New.
12120         ("*movv4sf_const0"): New.
12121         ("*movv8hi_const0"): New.
12122         ("*movv16qi_const0"): New.
12123
12124 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12125
12126         * config/h8300/h8300.c (notice_update_cc): Use
12127         cc_status.value2.
12128
12129 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12130
12131         * config/h8300/h8300.md (divmod patterns): Change the
12132         constraints for operands[1] to register_operand.
12133
12134 2002-02-18  Kazu Hirata  <kazu@hxi.com>
12135
12136         * config/h8300/h8300-protos.h: Remove the prototype for
12137         p_operand.
12138         * config/h8300/h8300.c (p_operand): Remove.
12139         * config/h8300/h8300.md: Replace p_operand with
12140         const_int_operand.
12141
12142 2002-02-18 Philip Blundell <pb@nexus.co.uk>
12143
12144         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
12145         comment.
12146         (output_return_instruction): Allow use of LDR to unstack
12147         return addresss even for interrupt handlers or when
12148         interworking.  If compiling for ARMv5, use interworking-safe
12149         return instructions by default.  Remove duplicated code and
12150         lengthy "strcat" sequences.
12151
12152 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12153
12154         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
12155         (LINK_EH_SPEC): Define.
12156         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
12157
12158 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
12159
12160         * config/s390/s390.c (s390_emit_prologue): Do not set the
12161         frame_related flag for call-clobbered registers.
12162
12163 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
12164
12165         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
12166         (construct_container): Fix handling of SSE operands.
12167         (ix86_expand_builtin): Fix handling of 64bit pointers.
12168         (mmx_maskmovq_rex): New pattern.
12169
12170 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
12171
12172         * regrename.c (kill_set_value): Handle subregs properly.
12173
12174 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
12175
12176         * objc/objc-act.c (handle_impent): Remove leading '*'
12177         from objc_class_name.
12178
12179 2002-02-17  Richard Henderson  <rth@redhat.com>
12180
12181         * config/alpha/alpha.c (some_small_symbolic_operand,
12182         some_small_symbolic_operand_1, split_small_symbolic_operand,
12183         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
12184         Handle small SYMBOL_REFs anywhere, not just inside memories.
12185         * config/alpha/alpha-protos.h: Update.
12186         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12187         * config/alpha/alpha.md (small symbolic operand splitter): Update.
12188
12189 2002-02-17  Roland McGrath  <roland@frob.com>
12190
12191         * config.gcc (powerpc-*-gnu-gnualtivec*,
12192         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
12193         * config/rs6000/gnu.h: New file.
12194         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
12195         Grok "gnu" in rs6000_abi_name.
12196         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
12197         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
12198         Grok -mcall-gnu analogous to -mcall-linux et al.
12199         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
12200         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
12201         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
12202
12203 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
12204
12205         PR c/3444:
12206         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
12207         shortening.
12208
12209 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12210
12211         * config/cris/cris.h: Undefine STARTFILE_SPEC and
12212         ENDFILE_SPEC before (re)defining them.
12213
12214 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12215
12216         * config/h8300/h8300.c: Fix formatting.
12217         * config/h8300/h8300.h: Likewise.
12218
12219 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12220
12221         * doc/tm.texi: Explain why empty strings should not be
12222         marked for translation.
12223
12224 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12225
12226         * final.c (output_operand_lossage): Changed to accept
12227         printf style arguments. Change calls where necessary.
12228         * output.h (output_operand_lossage): Change declaration
12229         accordingly. Update copyright.
12230         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
12231         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
12232         Update copyright date where necessary.
12233
12234         * config/i386/i386.c (print_operand): Likewise. Remove use of
12235         sprintf.
12236
12237         * config/cris/cris.c (cris_operand_lossage): Likewise.
12238         Rename parameter so that exgettext recognizes it as
12239         translatable message.
12240         (LOSE_AND_RETURN): Rename parameter to msgid.
12241
12242 2002-02-17  Kazu Hirata  <kazu@hxi.com>
12243
12244         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
12245         hard coded register number with an appropriate macro.
12246         (HARD_REGNO_MODE_OK): Likewise.
12247         (ARG_POINTER_REGNUM): Likewise.
12248         (STATIC_CHAIN_REGNUM): Likewise.
12249         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
12250         * config/h8300/h8300.md (define_constants): Define more
12251         register numbers.
12252
12253 2002-02-17  Philipp Thomas  <pthomas@suse.de>
12254
12255         * config/i386/i386.h: Don't mark empty strings for translation.
12256
12257 2002-02-16  H.J. Lu <hjl@gnu.org>
12258
12259         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
12260
12261 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
12262
12263         * cppinit.c (merge_include_chains): Check for brack being
12264         NULL before attempting to merge it with qtail.
12265
12266 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
12267
12268         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
12269         DBX_DEBUG.
12270
12271 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12272
12273         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
12274
12275 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12276
12277         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
12278         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
12279         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
12280
12281 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12282
12283         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
12284         now only if !TARGET_FIX.
12285         (*movsi_nt_vms_fix): New pattern.
12286
12287 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
12288
12289         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
12290         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
12291         (alpha_sa_mask, alpha_sa_size): Reflect above change.
12292         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
12293         (alpha_start_function, alpha_expand_epilogue): Likewise.
12294         (unicosmk_gen_dsib): Likewise.
12295
12296 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12297
12298         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
12299
12300 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
12301
12302         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
12303         check_and_change_labels, s390_final_chunkify): Delete.
12304         (s390_split_branches, s390_chunkify_pool): New functions.
12305         (s390_function_prologue): Call them.
12306
12307         * config/s390/s390.h (S390_REL_MAX): Delete.
12308         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
12309
12310         * config/s390/s390.md (cjump, icjump, jump): Fix length
12311         attribute calculation.
12312
12313
12314 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
12315
12316         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
12317         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
12318
12319 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12320
12321         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
12322         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
12323         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
12324
12325 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12326
12327         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
12328
12329 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
12330
12331         * reload.c (find_dummy_reload): Check that an output register
12332         is valid for its mode.
12333
12334 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
12335
12336         * combine.c (known_cond): After replacing the REG of a SUBREG, try
12337         to simplify it.
12338
12339         * function.c (assign_parms): Demote promoted argument passed by
12340         transparent reference.
12341
12342 2001-02-14      Joel Sherrill <joel@OARcorp.com>
12343
12344         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
12345         -Acpu() and -Amachine() to eliminate warnings.
12346
12347 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
12348
12349         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
12350
12351 2002-02-14  Kazu Hirata  <kazu@hxi.com>
12352
12353         * config/h8300/h8300-protos.h: Update the prototype for
12354         const_costs.
12355         * config/h8300/h8300.c (const_costs): Treat SET as a little
12356         more expensive operation.
12357         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
12358         reference to const_costs.
12359
12360 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
12361
12362         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
12363
12364 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
12365
12366         PR c/5503:
12367         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
12368         use arguments from newtype.
12369
12370 2002-02-13  Eric Christopher  <echristo@redhat.com>
12371
12372         * config/mips/mips.c (override_options): Add check for march/mipsX
12373         on the same command line. Fix error message in cpu processing.
12374         Remove architecture and ISA checks.
12375
12376 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12377
12378         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
12379
12380         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
12381
12382 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
12383
12384         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
12385         alternatives.
12386         ("*movv8hi_internal1"): Same.
12387         ("*movv16qi_internal1"): Same.
12388         ("*movv4sf_internal1"): Same.
12389
12390         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
12391         not push_reload for altivec modes.
12392
12393 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
12394
12395         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
12396         all RTEMS targets including removal of #includes from config/*/rtems*.h
12397         file and adding them to tm_file setting. Added xm_defines=POSIX to
12398         many targets.
12399         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
12400         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
12401         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
12402         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
12403         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
12404         config/m68k/rtemself.h: Ditto.
12405         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
12406         config/mips/rtems64.h: Ditto.
12407         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
12408         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
12409         Ditto.
12410         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
12411         config/sparc/rtemself.h: Ditto.
12412         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
12413         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
12414         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
12415         more like arm-elf.
12416         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
12417         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
12418         target made more similar to i386-elf.
12419         * config/i386/t-rtems-i386: Added soft float support and multilibs.
12420         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
12421         be similar to config/m68k/t-m68kelf.
12422         * gthr-rtems.h: Encapsulate with extern "C" for C++.
12423
12424 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
12425
12426         * regmove.c (kill_value): Handle subregs.
12427
12428 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
12429
12430         * i386.md (mul patterns): Allow memory operand to be first;
12431         add expanders where needed; fix constraints.
12432         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
12433         Allow memory operand to be the first.
12434
12435         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
12436         operands.
12437
12438 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12439
12440         PR c/5681:
12441         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
12442         GET_MODE (x).
12443
12444 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
12445
12446         PR optimization/5547:
12447         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
12448         all valid IA-32 address modes involving non-scaled %ebx and
12449         GOT/GOTOFF as displacement.
12450
12451 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
12452
12453         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
12454         after emitting ltorg insns.
12455
12456         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
12457         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
12458         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
12459         *abssf2): Fix "op_type" attribute.
12460
12461 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
12462
12463         * mkconfig.sh: Avoid using a subshell redirect.
12464         ($output.T): Change to $(output)T.
12465         (ENABLE_NLS): Remove unneeded undef.
12466
12467         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
12468         * config/alpha/x-vms (libsubdir): Define.
12469
12470         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
12471         register frame procedures. Optimize retrieving context.
12472
12473         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
12474         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
12475         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
12476
12477 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12478
12479         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
12480         Make same change as for find_base_value.
12481
12482 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12483
12484         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
12485         of QImode and SImode.
12486
12487 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12488
12489         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
12490         length computation of movsi.
12491         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
12492
12493 2002-02-13  Kazu Hirata  <kazu@hxi.com>
12494
12495         * config/h8300/h8300.md (subqi3): Tighten the predicate for
12496         operands[2] to register_operand.
12497
12498 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12499
12500         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
12501
12502 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
12503
12504         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
12505         for altivec_lvx* and altivec_stvx*.
12506         ("*movv4si_internal"): Add constraint for loading from GPRs.
12507         ("*movv8hi_internal1"): Same.
12508         ("*movv16qi_internal1"): Same.
12509         ("*movv4sf_internal1"): Same.
12510
12511         * config/rs6000/rs6000.c (altivec_register_operand): New.
12512
12513         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
12514         altivec_register_operand.
12515
12516 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
12517
12518         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
12519         handle SYMBOL_REF.
12520
12521 2002-02-13  Stan Shebs  <shebs@apple.com>
12522
12523         * c-typeck.c (digest_init): Handle vectors.
12524         (really_start_incremental_init): Same.
12525         (pop_init_level): Same.
12526         (process_init_element): Same.
12527
12528         * varasm.c (output_constant): Same.
12529
12530         * expr.c (clear_storage): Same.
12531         (store_constructor): Same.
12532
12533 2002-02-12  Eric Christopher  <echristo@redhat.com>
12534
12535         * explow.c (hard_function_value): Add comment explaining
12536         signed/unsigned comparison.
12537
12538 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
12539
12540         * jump.c (never_reached_warning): Add finish argument.
12541         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
12542         real insn after end.
12543         * rtl.h (never_reached_warning): Adjust prototype.
12544         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
12545         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
12546         never_reached_warning.
12547
12548 2002-02-12  Graham Stott  <grahams@redhat.com>
12549
12550         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
12551
12552 2002-02-12  Kazu Hirata  <kazu@hxi.com>
12553
12554         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
12555         logical shifts on H8/300.
12556         (shift_alg_si): Improve several shifts on H8/300.
12557         (get_shift_alg): Likewise.
12558
12559 2002-02-12  Graham Stott  <grahams@redhat.com>
12560
12561         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
12562
12563 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12564
12565         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
12566         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
12567
12568 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
12569
12570         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
12571         non-CONST_INT through default_assemble_integer.
12572         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
12573         <case 8>: Abort for CONST_DOUBLE.
12574
12575 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12576
12577         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
12578         is specified.
12579         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12580         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12581
12582 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12583
12584         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12585
12586 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12587
12588         * regrename.c (regrename_optimize): Don't accept a
12589         part-clobbered register if the replaced register is not part
12590         clobbered.
12591
12592         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12593         take padding into account when computing the argument value.
12594
12595         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12596
12597         * combine.c (try_combine): Apply substitutions in
12598         CALL_INSN_FUNCTION_USAGE too.
12599
12600 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12601
12602         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12603         __builtin_altivec_abs*.
12604         (bdesc_abs): New.
12605
12606         * config/rs6000/rs6000.h (rs6000_builtins): Add
12607         ALTIVEC_BUILTIN_ABS*.
12608
12609         * config/rs6000/altivec.h: Use const char for builtins expecting
12610         literals.
12611         (vec_abs): New versions for C and C++.
12612         (vec_abss): Same.
12613
12614 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12615
12616         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12617         using Pmode.
12618
12619 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12620
12621         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12622         constant definition from h8300.md.
12623         (FRAME_POINTER_REGNUM): Likewise.
12624         * config/h8300/h8300.md (define_constants): Add FP_REG.
12625
12626 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12627
12628         * config/h8300/h8300.c (print_operand): Remove redundant code.
12629
12630 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12631
12632         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12633         * config/h8300/h8300.c (byte_reg): Make it static.
12634
12635 2002-02-10  Richard Henderson  <rth@redhat.com>
12636
12637         PR c/5623
12638         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12639
12640 2002-02-10  Richard Henderson  <rth@redhat.com>
12641
12642         PR c++/5624
12643         * tree.c (append_random_chars): Don't abort if main_input_filename
12644         does not exist.
12645
12646 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12647
12648         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12649
12650 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12651
12652         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12653         (pushhi1): Likewise.
12654
12655 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12656
12657         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12658         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12659
12660 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12661
12662         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12663         remove MASK_VIS.
12664         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12665
12666 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12667
12668         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12669         a half of an SImode register on H8/300.
12670
12671 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12672
12673         * i386.md (movdi_2): Add missing '!'.
12674
12675 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12676
12677         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12678         definitions.
12679
12680 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12681
12682         * config/h8300/h8300.md (length): Correct the distance valid
12683         for the short branch.
12684
12685 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12686
12687         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12688
12689 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12690
12691         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12692         registers in SImode.
12693         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12694         part-clobbered.
12695
12696         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12697         patch.
12698
12699         Contribute sh64-elf.
12700         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12701         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12702         (sh_cannot_modify_jumps_p): New function.
12703         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12704         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12705         (sh_ms_bitfield_layout_p): New function.
12706         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12707                     Zack Weinberg  <zack@codesourcery.com>
12708         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12709         expand_simple_binop instead of expand_binop.
12710         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12711         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12712         use of .quad and .uaquad.
12713         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12714         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12715         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12716         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12717         movdi_const_16bit): Make sure all CONSTs have modes.
12718         (sym2PIC): Ditto, but by adjusting all callers.
12719         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12720         if the prologue calls the SHmedia argument decoder or register
12721         saver.
12722         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12723         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12724         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12725         (sh_expand_epilogue): Don't emit USE of return target register.
12726         (prepare_move_operands): Legitimize DImode PIC addresses.
12727         (sh_media_register_for_return): Skip tr0, used to initialize the
12728         PIC register.
12729         (sh_expand_prologue): Remove explicit USE of return register.
12730         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12731         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12732         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12733         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12734         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12735         EXTRA_CONSTRAINT_T.
12736         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12737         (MOVI_SHORI_BASE_OPERAND_P): New.
12738         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12739         (EXTRA_CONSTRAINT_T): Define in terms of them.
12740         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12741         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12742         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12743         alternatives supporting TARGET_REGS.
12744         (UNSPEC_GOTPLT): New constant.
12745         (movdi split): Move incrementing of LABEL_NUSES...
12746         (movdi_const, movdi_const_32bit): Here.  Use
12747         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12748         (movdi_const_16bit): New.
12749         (call, call_value) [flag_pic]: Use GOTPLT.
12750         (call_pop, call_value_pop): New expands.
12751         (call_pop_compact, call_pop_rettramp): New insns.
12752         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12753         (sibcall) [flag_pic]: Use GOT.
12754         (builtint_setjmp_receiver): Remove bogus, unused expand.
12755         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12756         (*pt, *ptb, ptrel): New insns.
12757         (sym2GOT): Handle DImode GOT.
12758         (sym2GOTPLT, symGOTPLT2reg): New expands.
12759         (sym2PIC): New expand.
12760         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12761         (shcompact_return_tramp_i): Use return register explicitly.
12762         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12763         disable flag_reorder_blocks.
12764         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12765         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12766         clobbers, for clarity.
12767         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12768         restoring of r0 in macl as MAYBE_DEAD.
12769         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12770         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12771         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12772         alter_subreg all over.
12773         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12774         reload, instead of emitting instructions that would require
12775         reloading.
12776         (casesi_load_media): Add missing modes.
12777         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12778         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12779         as used if the argument decoder is called.
12780         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12781         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12782         Pmode, then extend it to DImode if necessary.
12783         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12784         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12785         constants in FPU-enabled SHmedia, let them be loaded from memory.
12786         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12787         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12788         Adjust whitespace in assembly output templates.
12789         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12790         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12791         mode of if_then_else.
12792         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12793         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12794         sh.h.
12795         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12796                     Joern Rennecke <amylaar@redhat.com>
12797         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12798         (SUBTARGET_CPP_PTR_SPEC): New.
12799         (SUBTARGET_CPP_SPEC): Remove.
12800         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12801         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12802         Fix typo in previous checkin.
12803         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12804         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12805         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12806                     Alexandre Oliva  <aoliva@redhat.com>
12807         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12808         what single FP register can hold for SHmedia target.
12809         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12810                     Alexandre Oliva  <aoliva@redhat.com>
12811         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12812         Do not split into SUBREG.
12813         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12814         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12815         and added new functions as specified in SH5 ABI r9.
12816         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
12817         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12818         8-byte boundary.
12819         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
12820         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12821         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
12822         and consttable_window_ends.
12823         2001-06-03  Graham Stott  <grahams@redhat,com>
12824         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12825         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
12826         * config/sh/sh.c (print_operand): Handle floating-point pair,
12827         vector and matrix registers.
12828         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12829         vector modes into account.
12830         * config/sh/sh.md (movv2sf): Split move between registers into
12831         movdf.
12832         (movv4sf, movv16sf): Introduce insns that get split only after
12833         reload.
12834         * config/sh/shmedia.h: Fix Copyright dates.
12835         * config/sh/ushmedia.h: Likewise.  Move loop counter
12836         declarations into conditionals that uses them.
12837         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12838         loop boundary.
12839         * config/sh/sshmedia.h: Fix Copyright dates.
12840         (sh_media_PUTCFG): Fix constraints.
12841         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
12842         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12843         ptrmemfunc_vbit_in_delta for SH5.
12844         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
12845         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12846         * invoke.texi: Likewise.
12847         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12848         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12849         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12850         GCC_pop_shmedia_regs_nofpu): New global symbols.
12851         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12852         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12853         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12854         compact function with nonlocal labels.
12855         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12856         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12857         (initial_elimination_offset): Account for their stack space.
12858         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12859         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12860         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12861         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12862         least one of the operands to be a register.
12863         (movv2sf): Likewise.  Renamed to movv2sf_i.
12864         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12865         prepare_move_operands() before emitting SHmedia insns.
12866         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
12867         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12868         Don't save nor initialize r12.  Don't mis-align the stack.
12869         Pad the code with a nop.
12870         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
12871         stack.
12872         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12873         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12874         [__SHMEDIA__]: Implement.
12875         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
12876         * config/sh/sh.md: Set latency of `pt' closer to reality.
12877         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12878         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12879         Set move, load and store type attributes.
12880         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12881         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12882         profiling.
12883         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12884         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12885         * config/sh/sh.c (sh_media_register_for_return): New function.
12886         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12887         branch-target register.
12888         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12889         * config/sh/sh.md (return_media_i): Use any call-clobbered
12890         branch-target register.
12891         (return_media): If r18 wasn't copied in the prologue, copy it
12892         here.
12893         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12894         Clear class FP0_REGS.
12895         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12896         from elf.h.
12897         2001-03-08  DJ Delorie  <dj@redhat.com>
12898         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12899         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
12900         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12901         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
12902         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12903         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
12904         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12905         return value correctly for call_cookie.
12906         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12907         * config/sh/crt1.asm (start): Modified so as to call
12908         ___setup_argv_and_call_main.
12909         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
12910         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12911         SHmedia mode.
12912         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
12913         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12914         (STRIP_NAME_ENCODING): Use it.
12915         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
12916         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
12917         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12918         prepare_scc_operands().
12919         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12920         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12921         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
12922         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12923         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
12924         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12925         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12926         used in shcompact_incoming_args.
12927         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12928         change.
12929         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12930         mode.
12931         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12932         Adjust accordingly.
12933         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12934         Simplify.  Adjust.  Add sanity check.
12935         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12936         FPU_SINGLE_BIT.
12937         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12938         TARGET_SHCOMPACT.
12939         (udivsi3, divsi3): Use them.
12940         (force_mode_for_call): New insn.
12941         (call, call_value, sibcall_value): Emit it before SHcompact
12942         calls.
12943         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
12944         * config/sh/sh.md (call, call_value, sibcall): Make sure the
12945         call cookie is non-NULL before taking its value.
12946         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
12947         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12948         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
12949         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12950         block.
12951         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12952         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12953         temporary for stack adjusts.  Use MACL and MACH to pass
12954         arguments to shcompact_incoming_args.
12955         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
12956         clobber r1.
12957         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12958         (nested_trampoline): Load static chain address into r1.
12959         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12960         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
12961         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12962         fp_arith_reg_operand().
12963         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
12964         * config/sh/sh.md (casesi): Sign-extend the first two operands,
12965         and use signed compares for them.
12966         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12967         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
12968         ones properly aligned.
12969         (find_barrier): Account for extra alignment needed for 8-byte wide
12970         constants.
12971         (machine_dependent_reorg): Require a label for the second 4-byte
12972         constant after an 8-byte one.
12973         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12974         change.
12975         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12976         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12977         last_float when switching float modes.
12978         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12979         auto-increment for general-purpose registers.
12980         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12981         result.
12982         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12983         for stack adjust.
12984         * config/sh/sh.c (sh_builtin_saveregs): Support using all
12985         registers for varargs.
12986         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
12987         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12988         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12989         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12990         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12991         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
12992         call_cookie accordingly.
12993         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12994         (SHCOMPACT_BYREF): Likewise.
12995         (SHCOMPACT_FORCE_ON_STACK): New macro.
12996         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12997         (sh_builtin_saveregs): Likewise.
12998         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12999         shcompact_incoming_args): Use new shift values.  Support
13000         sequences of consecutive and non-consecutive pushes/pops.
13001         * config/sh/sh.md (return): Don't explicitly use PR_REG.
13002         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
13003         * config/sh/sh.h (TEXT_SECTION): Define.
13004         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
13005         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
13006         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
13007         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
13008         return values on FPU-enabled SHmedia.
13009         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
13010         FPU-enabled SHmedia.
13011         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
13012         value is returned in a non-FP reg and is not returned by
13013         reference.
13014         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
13015         jump_ind.
13016         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
13017         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
13018         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
13019         quad-aligned to be passed by callee-copy reference.
13020         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
13021         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
13022         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
13023         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
13024         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
13025         copying low-numbered FP regs to r7 and r8.
13026         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
13027         FP regs to general-purpose regs only if the copy was passed on the
13028         stack.
13029         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
13030         copying FP reg to r9.
13031         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
13032         copy FP regs to general-purpose regs only in outgoing calls.
13033         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
13034         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
13035         HOST_WIDE_INT.
13036         * config/sh/sh.h (struct sh_args): Document all fields.
13037         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
13038         passed partially on the stack should not consider making
13039         sibcalls.
13040         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
13041         stack_regs only for incoming calls.  When passing FP args,
13042         make sure there are FP regs available before modifying
13043         call_cookie.
13044         (SHCOMPACT_BYREF): Pass double args in general-purpose
13045         registers by reference.
13046         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
13047         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
13048         attempt to generate sibcalls if the caller got any arguments
13049         by reference.
13050         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
13051         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
13052         to 8-byte boundaries.
13053         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
13054         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
13055         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
13056         stored in the stack.
13057         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
13058         for the offsets to have the ISA bit set.
13059         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
13060         invocation.  Use beq instead of bgt to mark end of sequence of
13061         loads.
13062         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
13063         bgt to mark end of sequence of stores.
13064         * config/sh/sh.c (arith_operand): Don't check whether
13065         CONST_OK_FOR_J for now.
13066         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
13067         instead of long for conversion.
13068         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
13069         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
13070         before passing it to fprintf.
13071         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
13072         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
13073         Call set_fpscr before reading/writing SR.
13074         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
13075         Call set_fpscr.
13076         * config/sh/lib1funcs.asm: Add `.align 2' directives before
13077         SHmedia code.
13078         (FMOVD_WORKS): Define on SH5 with FPU.
13079         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
13080         setting.
13081         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
13082         _fpscr_values.
13083         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
13084         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
13085         address.
13086         (ia_main_table): Ditto.
13087         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
13088         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
13089         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
13090         the definitions from sh.h.
13091         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
13092         TARGET_SH5.
13093         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
13094         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
13095         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13096         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
13097         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
13098         Increment LABEL_NUSES.
13099
13100         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
13101         TARGET_SH5.
13102         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
13103         defined.
13104         * config/sh/elf.h (SIZE_TYPE): Likewise.
13105         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
13106         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13107         shcompact_incoming_args): Load switch table addresses using
13108         datalabel.
13109         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13110         (NO_BUILTIN_SIZE_TYPE): Define.
13111         (SIZE_TYPE): Don't define.
13112         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
13113         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
13114         definition of __SH5__=32 for -m5-compact-nofpu.
13115         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
13116         ADDR_DIFF_VEC.
13117         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
13118         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
13119         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
13120         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
13121         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
13122         (INSN_LENGTH_ALIGNMENT): Likewise.
13123         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13124         * config/sh/sh.md (call, call_value, sibcall): Simplify
13125         copying of non-branch-target register.
13126         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13127         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
13128         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
13129         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
13130         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
13131         floating-point values as structs.
13132         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
13133         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
13134         general-purpose register.
13135         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
13136         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13137         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
13138         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
13139         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
13140         (ENCODE_SECTION_INFO): Enclose variables and constants in
13141         DATALABEL unspecs.
13142         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
13143         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
13144         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
13145         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
13146         only for LABEL_REFs.  For SYMBOL_REFs, prepend
13147         SH_DATALABEL_ENCODING to the symbol name.
13148         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
13149         convert_mode().
13150         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
13151         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
13152         UNSPEC_DATALABEL.
13153         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
13154         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
13155         (DATALABEL_REF_P): Don't require CONST.
13156         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
13157         REL label.
13158         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
13159         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
13160         right.
13161         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13162         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
13163         Use shallow_copy_rtx and PUT_MODE to change the mode of
13164         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
13165         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
13166         on SHmedia using GENERAL_REGs.
13167         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13168         bltu_media_i): Fix reversion of conditions.
13169         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
13170         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
13171         * config/sh/sh.c (output_far_jump): Save r13 in macl.
13172         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
13173         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
13174         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
13175         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
13176         (GCC_nested_trampoline): Likewise.
13177         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
13178         * config/sh/sh.c (gen_datalabel_ref): Define.
13179         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
13180         (INITIALIZE_TRAMPOLINE): Likewise.
13181         (TRAMPOLINE_ADJUST_ADDRESS): Define.
13182         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
13183         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
13184         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
13185         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
13186         (ic_invalidate): Adjust for SH5.
13187         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
13188         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
13189         _nested_trampoline.
13190         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
13191         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
13192         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
13193         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13194         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
13195         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
13196         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
13197         * config/sh/sh.c (target_reg_operand): Match only target-branch
13198         registers and pseudos that aren't virtual registers.
13199         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13200         Copy operands that don't match target_reg_operand to pseudos.
13201         (call_media, call_value_media, sibcall_media): Use
13202         target_reg_operand instead of target_operand.
13203         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
13204         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
13205         * config/sh/sh.c (target_reg_operand): Match hardware registers
13206         other than branch-target registers.
13207         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
13208         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
13209         (fpscr_values) [SH5 == 32]: Define.
13210         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
13211         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
13212         Handle function addresses coming in SUBREGs.
13213         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
13214         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
13215         shcompact_return_trampoline): Use datalabel where appropriate.
13216         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
13217         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
13218         general-purpose register to copy one branch-target register to
13219         another.
13220         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13221         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
13222         SYMBOL_REFs with VOIDmode.
13223         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
13224         bltu_media_i): New insns.
13225         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
13226         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
13227         (INIT_CUMULATIVE_ARGS): Likewise.
13228         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
13229         * machmode.def (V16SFmode): New mode.
13230         * c-common.c (type_for_mode): Support V2SF and V16SF.
13231         * tree.c (build_common_tree_nodes_2): Likewise.
13232         * tree.h (tree_index): Likewise.
13233         * calls.c (emit_call_1): Take args_so_far.  Adjust all
13234         callers.  Introduce CALL_POPS_ARGS.
13235         * tm.texi (CALL_POPS_ARGS): Document.
13236         * config/sh/crt1.asm: Implement in SHmedia mode.
13237         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
13238         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
13239         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
13240         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
13241         Implement divsi and udivsi in SHmedia mode.  Introduce
13242         SHcompact trampolines.
13243         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
13244         only in SHmedia64.
13245         (regno_reg_class): Rewrite.
13246         (fp_reg_names): Remove.
13247         (sh_register_names, sh_additional_register_names): New.
13248         (print_operand): Added `u'.  Support SUBREGs in addresses.
13249         Add parentheses around shifted CONSTs.
13250         (output_file_start): Output .mode and .abi directives.
13251         (shiftcosts, addsubcosts, multcosts): Adjust.
13252         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
13253         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
13254         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
13255         bytes, not registers.  Take into account the need for the
13256         SHcompact incoming args trampoline.  Adjust all callers.
13257         (sh_expand_prologue): Take stack_regs into account.  Call
13258         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
13259         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
13260         stack aligned as per SH5 ABI.
13261         (sh_builtin_saveregs): Support SH5 ABI.
13262         (sh_build_va_list, sh_va_start): Likewise.
13263         (initial_elimination_offset): Take alignment into account.
13264         Compute location of PR according to the SH5 stack frame.
13265         (arith_reg_operand): Reject branch-target registers.
13266         (shmedia_6bit_operand): New.
13267         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
13268         (target_reg_operand): Match DImode only.  Accept SUBREGs.
13269         (target_operand): New.
13270         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
13271         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
13272         SIBCALL_REGS for SHmedia.
13273         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
13274         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
13275         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
13276         (TARGET_SWITCHES): New SH5 flags.
13277         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
13278         VALID_REGISTER_P to disable unsupported registers.
13279         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
13280         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
13281         (FUNCTION_ARG_PADDING): Define.
13282         (FASTEST_ALIGNMENT): Adjust.
13283         (SH_REGISTER_NAMES_INITIALIZER): New.
13284         (sh_register_names): Declare.
13285         (DEBUG_REGISTER_NAMES): Define.
13286         (REGISTER_NAMES): Define based on sh_register_names.
13287         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
13288         (sh_additional_register_names): Declare.
13289         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
13290         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
13291         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
13292         (REGISTER_NATURAL_MODE): Define.
13293         (FIRST_PSEUDO_REGISTER): Adjust.
13294         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
13295         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
13296         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
13297         (VECTOR_MODE_SUPPORTED_P): Define.
13298         (REG_CLASS_CONTENTS): Adjust.
13299         (SMALL_REGISTER_CLASSES): Adjust.
13300         (REG_ALLOC_ORDER): Adjust.
13301         (INDEX_REG_CLASS): Adjust.
13302         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
13303         (CONST_OK_FOR_LETTER_P): Adjust.
13304         (PREFERRED_RELOAD_CLASS): Adjust.
13305         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
13306         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
13307         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
13308         (FIRST_FP_PARM_REG): Adjust.
13309         (CALL_POPS_ARGS): Define.
13310         (FUNCTION_ARG_REGNO_P): Adjust.
13311         (struct sh_args): New fields.
13312         (GET_SH_ARG_CLASS): Adjust.
13313         (INIT_CUMULATIVE_ARGS): Adjust.
13314         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
13315         (FUNCTION_ARG_ADVANCE): Adjust.
13316         (FUNCTION_ARG): Adjust.
13317         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
13318         (FUNCTION_ARG_CALLEE_COPIES): Define.
13319         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
13320         (STRICT_ARGUMENT_NAMING): Define.
13321         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
13322         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
13323         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
13324         (SETUP_INCOMING_VARARGS): Adjust.
13325         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
13326         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
13327         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
13328         (SUBREG_OK_FOR_INDEX_P): Adjust.
13329         (EXTRA_CONSTRAINT_S): Update.
13330         (EXTRA_CONSTRAINT_T): New.
13331         (EXTRA_CONSTRAINT): Adjust.
13332         (GO_IF_LEGITIMATE_INDEX): Adjust.
13333         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
13334         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
13335         (MOVE_MAX): Adjust.
13336         (MAX_MOVE_MAX): Define.
13337         (Pmode): Adjust.
13338         (CONST_COSTS): Adjust.
13339         (REGISTER_MOVE_COST): Adjust.
13340         (BRANCH_COST): Adjust.
13341         (TEXT_SECTION_ASM_OP): Adjust.
13342         (DBX_REGISTER_NUMBER): Adjust.
13343         (ASM_OUTPUT_DOUBLE_INT): New.
13344         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
13345         (PREDICATE_CODES): Adjust.
13346         (PROMOTE_MODE): Adjust.
13347         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
13348         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
13349         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
13350         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
13351         (DR0_REG, DR2_REG, DR4_REG): Renumber.
13352         (TR0_REG, TR1_REG, TR2_REG): New.
13353         (XD0_REG): Renumber.
13354         (UNSPEC_COMPACT_ARGS): New.
13355         (type): Added pt and ptabs.
13356         (length): Default to 4 on SHmedia.  Default pt length to 12
13357         and     20 on SHmedia32 and SHmedia64, respectively.
13358         (pt): New function unit.
13359         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
13360         Add whitespace between operands of SHmedia instructions.
13361         (movdicc): Fix.
13362         (adddi3_media, addsi3_media): Adjust constraints.
13363         (subsi3) [SHmedia]: Force operand 1 into a register.
13364         (udivsi3_i1_media, udivsi3_i4_media): New.
13365         (udivsi3): Support SHmedia.
13366         (divsi3_i1_media, divsi3_i4_media): New.
13367         (divsi3): Support SHmedia.
13368         (anddi3, iordi3, xordi3): Adjust constraints.
13369         (zero_extendhidi2, zero_extendqidi2): New.
13370         (extendsidi2, extendhidi2, extendqidi2): New.
13371         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
13372         (pop_e, pop_fpul, pop_4): Likewise.
13373         (movsi_media): Support FP and BT registers.
13374         (movsi_media_nofpu): New.  Adjust splits to DImode.
13375         (lduw, ldub): Renamed to zero_extend* above.
13376         (movqi_media): Fix typo.
13377         (movdi_media): Support FP and BT registers.
13378         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
13379         (movdi_const_32bit): New.
13380         (shori_media): Require immediate operand.  Use `u' for output.
13381         (movdf_media, movsf_media): Simplified.
13382         (movdf_media_nofpu, movsf_media_nofpu): New.
13383         (movdf, movsf): Adjust
13384         (movv2sf, movv2sf, movv16sf): New.
13385         (beq_media, beq_media_i): Adjust constraints.  Don't use
13386         scratch BT register.
13387         (bne_media, bne_media_i): Likewise.
13388         (bgt_media, bgt_media_i): Likewise.
13389         (bge_media, bge_media_i): Likewise.
13390         (bgtu_media, bgtu_media_i): Likewise.
13391         (bgeu_media, bgeu_media_i): Likewise.
13392         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
13393         bunordered): Emit jump insn.  Force operands to registers when
13394         needed.
13395         (jump_media, jump): Simplify.
13396         (call_compact, call_compact_rettramp): New.
13397         (call_value_compact, call_value_compact_rettramp): New.
13398         (call_media, call_value_media): Simplify.
13399         (sibcall_compact, sibcall_media): New.
13400         (call, call_value): Adjust for SHmedia and SHcompact.
13401         (sibcall, sibcall_value, untyped_call): Likewise.
13402         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
13403         (indirect_jump): Adjust for SHmedia.
13404         (casesi_jump_media): New.
13405         (nop): Re-enable for SHmedia.
13406         (call_site): Restrict to SH1.
13407         (casesi): Adjust for SHmedia.
13408         (casesi_shift_media, casesi_load_media): New.
13409         (return): Explicitly use PR register.  Call return trampoline
13410         on SHcompact.
13411         (return_i): Explicitly use PR register.
13412         (shcompact_return_tramp, shcompact_return_tramp_i): New.
13413         (return_media): Adjust.
13414         (shcompact_incoming_args): New.
13415         (epilogue): Adjust.
13416         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13417         (movstrsi): Disable on SH5.
13418         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
13419         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
13420         (subsf3, subsf3_media): Likewise.
13421         (mulsf3, mulsf3_media, mac_media): Likewise.
13422         (divsf3, divsf3_media): Likewise.
13423         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
13424         (floatsisf2, fux_truncsfsi2): Likewise.
13425         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
13426         constraints.
13427         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
13428         (cmpunsf_media, cmpsf): Likewise.
13429         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
13430         (abssf2, abssf2_media): Likewise.
13431         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
13432         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
13433         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
13434         (floatsidf2, fix_truncdfsi2): Likewise.
13435         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
13436         constraints.
13437         (cmpeqdf_media, cmpgtdf_media): Likewise.
13438         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
13439         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
13440         (absdf2, absdf2_media): Likewise.
13441         (extendsfdf2, extendsfdf2_media): Likewise.
13442         (truncsfdf2, truncsfdf2_media): Likewise.
13443         * config/sh/sh64.h: New file.
13444         * config/sh/t-sh64: New file.
13445         * config/sh/shmedia.h: New file.
13446         * config/sh/ushmedia.h: New file.
13447         * config/sh/sshmedia.h: New file.
13448         * configure.in: Added sh64-*-elf.
13449         * configure: Rebuilt.
13450         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
13451         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
13452         (reg_class_from_letter): Use `b' for TARGET_REGS.
13453         (print_operand): Support `%M', `%m', `AND' and
13454         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
13455         (andcosts): Adjust for SHmedia.
13456         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
13457         Likewise.
13458         (target_reg_operand): New function.
13459         * config/sh/sh-protos.h (target_reg_operand): Declare.
13460         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
13461         FP registers on SH5.
13462         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
13463         on SH4.
13464         (TARGET_REGISTER_P): New macro.
13465         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
13466         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
13467         (EXTRA_CONSTRAINT_S): New macro.
13468         (EXTRA_CONSTRAINT): Adjust.
13469         (FLOAT_TYPE_SIZE): Define to 32.
13470         (Pmode): DImode on SHmedia.
13471         (CONST_COSTS): Adjust for SHmedia literals.
13472         (PREDICATE_CODES): Added target_reg_operand.
13473         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
13474         * config/sh/sh.md: Remove all attrs from SHmedia insns.
13475         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
13476         (cmpdi): Accept SHmedia.
13477         (movdicc_false, movdicc_true): New insns.
13478         (movdicc): New expand.
13479         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
13480         no_new_pseudos.
13481         (addsi3_media): Match `S' constraint.
13482         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
13483         (negdi2): Expand for SHmedia.
13484         (one_cmpldi2): New expand.
13485         (zero_extendsidi2): Change from expand to insn.
13486         (extendsidi2): Add constraints.
13487         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
13488         LD/ST address.  Fix SI immediate loading split.
13489         (movhi_media, movqi_media, lduw, ldub): New insns.
13490         (movhi, movqi): Accept SHmedia.
13491         (shori_media, movdi_media): Relax input constraints.  Split
13492         symbolic constants.
13493         (movdf_media, movsf_media): New insn.  New split to movdi.
13494         (movdf, movsf): Match on SHmedia.
13495         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
13496         bgeu_media): New insns and splits.  New insns with `_i' suffix.
13497         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
13498         (bunordered): New expand.
13499         (jump_compact): Renamed from `jump'.
13500         (jump_media): New insn.
13501         (jump): New expand.
13502         (call_media, call_value_media): New insns.
13503         (call, call_value): Adjust.
13504         (indirect_jump_compact): Renamed from `indirect_jump'.
13505         (indirect_jump_media): New insn.
13506         (indirect_jump): New expand.
13507         (untyped_call, return): Accept SHmedia.
13508         (return_media): New insn.
13509         (prologue, epilogue, blockage): Accept SHmedia.
13510         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
13511         (sunordered): New expand.
13512         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
13513         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
13514         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
13515         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
13516         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
13517         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
13518         abssf2_media): New insns.
13519         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
13520         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
13521         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
13522         floatdidf2, floatsidf2_media, fix_truncdfdi2,
13523         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
13524         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
13525         absdf2_media): New insns.
13526         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
13527         (extendsfdf2_media, truncdfsf2_media): New insns.
13528         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
13529         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
13530         * config/sh/sh.h (CONST_OK_FOR_J): Document.
13531         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
13532         * config/sh/sh.md (adddi3): New expand.
13533         (adddi3_media, adddi3z_media): New insns.
13534         (adddi3_compact): Renamed from adddi3.
13535         (addsi3_media): Use add.l r63 to add constant zero.
13536         (subdi3): New expand.
13537         (subdi3_media): New insn.
13538         (subdi3_compact): Renamed from subdi3.
13539         (mulsidi3): New expand.
13540         (mulsidi3_media): New insn.
13541         (mulsidi3_compact): Renamed from mulsidi3.
13542         (umulsidi3): New expand.
13543         (umulsidi3_media): New insn.
13544         (umulsidi3_compact): Renamed from umulsidi3.
13545         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
13546         (ashlsi3, ashrsi3, lshrsi3): Use them.
13547         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
13548         (ashldi3, ashrdi3, lshrdi3): Use them.
13549         (zero_extendsidi2): New expand.
13550         (extendsidi2): New insn.
13551         (movsi_media): New insn.  Split to movdi to load constants.
13552         (movsi): Enable for shmedia.
13553         (movdi_media): New insn.  Use shori_media to load wide constants.
13554         (short_media): New insn.
13555         (movdi): Enable for shmedia.
13556         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
13557         * config/sh/sh.h (CPP_SPEC): Added `m5'.
13558         (SUBTARGET_CPP_SPEC): Added `!m5'.
13559         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
13560         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
13561         to all other SH variants.
13562         (TARGET_DEFAULT): Set to SH1_BIT.
13563         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
13564         (BITS_PER_WORD): Raise to 64 on shmedia.
13565         (MAX_BITS_PER_WORD): Change to 64.
13566         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
13567         (INT_TYPE_SIZE): Keep as 32.
13568         (UNITS_PER_WORD): Raise to 8 on shmedia.
13569         (MIN_UNITS_PER_WORD): Keep as 4.
13570         (POINTER_SIZE): Raise to 64 on shmedia.
13571         (CONST_OK_FOR_J): New macro.
13572         (CONST_OK_FOR_LETTER_P): Use it.
13573         (processor_type): Add PROCESSOR_SH5.
13574         * config/sh/sh.md: Conditionalize all expands, insns and
13575         splits to TARGET_SH1.
13576         (cpu): Added sh5.
13577         (addsi3_compact): Renamed from...
13578         (addsi3): Now an expand.
13579         (addsi3_media, subsi3_media): New insns.
13580         (subsi3): Don't negate constants with SHmedia.
13581
13582         * hooks.c: New file.
13583         * hooks.h: New file.
13584         * Makefile.in (HOOKS_H): New.
13585         (TARGET_DEF_H): Added $(HOOKS_H).
13586         (OBJS): Added hooks.o.
13587         (cfgcleanup.o, bb-reorder.o): Added target.h.
13588         (hooks.o): Added dependencies.
13589         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13590         (TARGET_INITIALIZER): this.
13591         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13592         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13593         * bb-reorder.c: Include target.h.
13594         (reorder_basic_blocks): Skip if cannot modify jumps.
13595         * cfgcleanup.c: Include target.h.
13596         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13597
13598 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13599
13600         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13601         Protect jump delay slot instructions with .set noreorder and
13602         .set nomacro.
13603
13604 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13605
13606         * config/mips/mips.md (casesi_internal_di): Calculate
13607         the index into the target offset table correctly.
13608
13609 2002-02-08  Richard Henderson  <rth@redhat.com>
13610
13611         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13612         * final.c (output_addr_const): Accept and discard SUBREG.
13613         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13614         mark them unknown instead.
13615         (simplify_subtraction): Handle RTX_UNKNOWN.
13616         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13617
13618 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13619
13620         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13621
13622 2002-02-08  Richard Henderson  <rth@redhat.com>
13623
13624         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13625
13626 2002-02-08  Andreas Jaeger  <aj@suse.de>
13627
13628         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13629         * config/i386/t-linux64: New file.
13630
13631 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13632
13633         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13634         * c-parse.in (compstmt): Clear last_expr_type.
13635
13636 2002-02-07  Richard Henderson  <rth@redhat.com>
13637
13638         * loop.c (strength_reduce): Sink final_value when not
13639         eliminating a biv.
13640
13641 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13642
13643         * config/sparc/freebsd.h: Fix mismatched spec {.
13644
13645 2002-02-07  Richard Henderson  <rth@redhat.com>
13646
13647         * cfgrtl.c: Include recog.h and insn-config.h.
13648         (keep_with_call_p): Fix general_operand invocation.
13649         * Makefile.in (cfgrtl.o): Update dependencies.
13650
13651 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13652
13653         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13654         comment.  Accept HImode only if TARGET_H8300.
13655
13656 2002-02-07  Eric Christopher  <echristo@redhat.com>
13657
13658         * config/mips/crtn.asm: Cleanup #ifdefs.
13659
13660 2002-02-07  Eric Christopher  <echristo@redhat.com>
13661
13662         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13663         register 7 as RA instead of $31.
13664         * config/mips/crtn.asm: Ditto.
13665         * config/mips/mips.c (mips_move_2words): Add case for
13666         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13667         (compute_frame_size): Fix typo.
13668         (save_restore_insns): Ditto.  Make documentation about using
13669         register $7 as return register more precise.
13670         (mips_expand_epilogue): Fix comment. Add code to work around not
13671         being able to add to the stack pointer directly.
13672         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13673         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13674         epilogue.
13675
13676 2002-02-07  Tom Rix  <trix@redhat.com>
13677
13678         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13679         immediates in ldu and stdu DS opcode field.
13680         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13681         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13682         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13683
13684 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13685
13686         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13687         offset for stack bias.
13688
13689 2002-02-07  H.J. Lu <hjl@gnu.org>
13690
13691         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13692
13693 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13694
13695         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13696
13697 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13698
13699         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13700         * i386.c (x86_order_regs_for_local_alloc): New global function.
13701         * i386.h (REG_ALLOC_ORDER): CLeanup.
13702         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13703
13704 2002-02-07  Richard Henderson  <rth@redhat.com>
13705
13706         PR optimization/2463
13707         * alias.c (find_base_value): Recall base values for fixed hard regs.
13708         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13709
13710 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13711
13712         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13713         length.
13714
13715 2002-02-06  Richard Henderson  <rth@redhat.com>
13716
13717         PR c/5609
13718         * stmt.c (resolve_operand_name_1): Take more care with mixed
13719         named and unnamed operands.
13720
13721 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13722             Jan Hubicka  <jh@suse.cz>
13723
13724         * loop.c (remove_constant_addition): Avoid clobbering a shared
13725         CONST expression.
13726
13727 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13728
13729         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13730         * config/s390/t-linux64: New file.
13731         * config/s390/libgcc-glibc.ver: New file.
13732
13733 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13734
13735         * config/s390/linux64.h: Delete file.
13736         * config/s390/s390x.h: New file.
13737         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13738         as target header file.
13739         * config/s390/linux.h (TARGET_VERSION): Define depending on
13740         DEFAULT_TARGET_64BIT.
13741         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13742         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13743         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13744         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13745         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13746         (EXTRA_SPEC): New define.
13747         * config/s390/s390.h (TARGET_VERSION): Define depending on
13748         DEFAULT_TARGET_64BIT.
13749         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13750
13751 2002-02-06  Jason Merrill  <jason@redhat.com>
13752
13753         * c-decl.c (finish_function): Warn about a non-void function with
13754         no return statement and no abnormal exit.
13755         (current_function_returns_abnormally): New variable.
13756         (start_function): Clear it.
13757         (struct c_language_function): Add returns_abnormally.
13758         (push_c_function_context): Save it.
13759         (pop_c_function_context): Restore it.
13760         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13761         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13762         an explicit return type.
13763         * c-tree.h: Declare current_function_returns_abnormally.
13764         (C_FUNCTION_IMPLICIT_INT): New macro.
13765         * c-typeck.c (build_function_call): Set it.
13766         (c_expand_return): Set current_function_returns_value even if the
13767         value is erroneous.
13768
13769 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13770
13771         PR c/5420:
13772         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13773         unsafe for reevaluation.
13774
13775 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13776
13777         PR c/5482:
13778         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13779         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13780
13781 2002-02-06  Richard Henderson  <rth@redhat.com>
13782
13783         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13784         be a general_operand.  Dest for function value must be a pseudo.
13785
13786 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13787
13788         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13789         as SYMBOL_REFs from the constant pool.
13790
13791 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13792
13793         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13794         passed by invisible reference.
13795
13796 2002-02-05  Richard Henderson  <rth@redhat.com>
13797
13798         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13799
13800 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13801
13802         Implement using "base addresses" in insn operands as default.
13803         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13804         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13805         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13806         used to read the rtx value.
13807         (mmix_target_asm_function_epilogue): Fix spacing.
13808         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13809         (mmix_legitimate_address): Ditto.
13810         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13811         should be loaded with a GETA insn.  Don't allocate needless extra
13812         char for nul termination and fix misleading comment.
13813         (mmix_print_operand_address): Handle constants if
13814         TARGET_BASE_ADDRESSES.
13815         (mmix_output_register_setting): Use base addressing if
13816         TARGET_BASE_ADDRESSES and the number of insns is 3.
13817         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13818         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13819         to use R as constraint, add LDA to match s.
13820         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13821         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13822         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13823         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13824         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13825         order with other fixed registers.
13826         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13827         other parameter/call-clobbered registers.
13828         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13829         -mbase-addresses, -mno-base-addresses.
13830         (MMIX Options): Ditto.
13831
13832 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13833
13834         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13835
13836 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
13837
13838         * config/rs6000/altivec.h: Change elem to _S_elem.
13839
13840 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13841
13842         * config/netbsd.h (WCHAR_TYPE): Define.
13843         (WCHAR_TYPE_SIZE): Ditto.
13844         (WINT_TYPE): Ditto.
13845         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13846         (WCHAR_UNSIGNED): Ditto.
13847         (WCHAR_TYPE_SIZE): Ditto.
13848         (WINT_TYPE): Ditto.
13849         * config/arm/netbsd.h: Likewise.
13850         * config/i386/netbsd-elf.h: Likewise.
13851         * config/i386/netbsd.h: Likewise.
13852         * config/m68k/netbsd-elf.h: Likewise.
13853         * config/m68k/netbsd.h: Likewise.
13854         * config/ns32k/netbsd.h: Likewise.
13855         * config/sparc/netbsd.h: Likewise.
13856         * config/vax/netbsd.: Likewise.
13857
13858 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
13859
13860         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13861         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
13862         (TARGET_INITIALIZER): this.
13863         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13864         (BITFIELD_NBYTES_LIMITED): Markup fix.
13865         * tree.h (default_ms_bitfield_layout_p): Declare.
13866         (record_layout_info): Added prev_field.
13867         * tree.c (default_ms_bitfield_layout_p): New fn.
13868         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13869         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13870         * stor-layout.c: Include target.h.
13871         (start_record_layout): Initialize prev_field.
13872         (place_field): Handle MS bit-field layout, and disregard
13873         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13874         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
13875         * Makefile.in (stor-layout.o): Adjust dependencies.
13876
13877 2002-02-05  Jason Merrill  <jason@redhat.com>
13878
13879         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13880
13881 2002-02-05  Andreas Jaeger  <aj@suse.de>
13882
13883         * crtstuff.c: Fix comments.
13884
13885 2002-02-05  Richard Henderson  <rth@redhat.com>
13886
13887         PR fortran/3393
13888         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13889         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13890
13891         PR fortran/3392
13892         * config/mips/mips.c (function_arg): Handle TImode.
13893         (function_arg_advance): Likewise.
13894
13895 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13896
13897         * config/rs6000/altivec.h (vec_step_help): Rename to
13898         __vec_step_help.
13899
13900 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13901
13902         * config/rs6000/altivec.h: Fix typos.
13903
13904 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13905
13906         * config/arm/netbsd.h: Correct a comment.
13907
13908 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13909
13910         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13911         building void typed builtins.
13912
13913         * config/rs6000/altivec.h (vec_ld*): Fix typos.
13914         (vec_step): Implement for C++.
13915
13916 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13917
13918         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13919
13920 2002-02-04  Richard Henderson  <rth@redhat.com>
13921
13922         * combine.c (nonzero_bits): Re-introduce special case for
13923         sp/fp/ap wrt REGNO_POINTER_ALIGN.
13924
13925 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13926
13927         * doc/extend.texi: Warn about unsupported usage of altivec
13928         builtins.
13929
13930         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13931         (altivec_predicate_*): New.
13932
13933         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13934         Add C++ version of vec_*() functions.
13935
13936         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13937         (bdesc_2arg): Remove altivec predicates.
13938         (altivec_expand_builtin): Handle predicates.
13939         (altivec_init_builtins): Handle predicates.
13940         (altivec_expand_predicate_builtin): New.
13941
13942 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13943
13944         * pa.c (DO_FRAME_NOTES): Move forward.
13945         (store_reg): Revise handling of frame notes.
13946         (load_reg): Likewise.
13947         (set_reg_plus_d): Likewise.
13948         (hppa_expand_prologue): Likewise.
13949         (hppa_expand_epilogue): Likewise.
13950
13951 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13952
13953         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13954
13955 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13956
13957         PR c/4475, c++/3780:
13958         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13959         * c-common.h (SWITCH_TYPE): Define.
13960         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13961         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13962         Rename spareness variable to sparseness.
13963         (expand_end_case_type): Renamed from expand_end_case, use orig_type
13964         if non-NULL instead of TREE_TYPE (orig_index).
13965         * tree.h (expand_end_case_type): Renamed from expand_end_case.
13966         (expand_end_case): Define using expand_end_case_type.
13967         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13968         to expand_end_case_type.
13969         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13970
13971 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13972
13973         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13974         (BIGGEST_ALIGNMENT): Change to 128.
13975
13976 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13977
13978         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13979
13980 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13981
13982         * pa.md (call_internal_reg_64bit): Remove unused variable.
13983
13984 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
13985
13986         * config/arm/arm.h (machine_function): Add uses_anonymous_args
13987         field.
13988         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13989         * config/arm/arm.c (current_function_anonymous_args): Delete,
13990         replace uses with cfun->machine->uses_anonymous_args.
13991         (arm_reorg): Do not reset uses_anonymous_args.
13992
13993         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13994         any geenral register.
13995
13996 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
13997
13998         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13999         the entry block.
14000
14001 2002-02-04  Richard Henderson  <rth@redhat.com>
14002
14003         * combine.c (force_to_mode): Remove STACK_BIAS code.
14004         (nonzero_bits): Likewise.  Replace sp/fp special case with
14005         REGNO_POINTER_ALIGN.
14006
14007         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
14008         (HARD_FRAME_POINTER_REGNUM): New.
14009         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
14010         (FIXED_REGS, CALL_USED_REGS): Update.
14011         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
14012         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
14013         (HARD_REGNO_NREGS): Update for SFP.
14014         (STACK_POINTER_OFFSET): Include bias here ...
14015         (FIRST_PARM_OFFSET): ... not here.
14016         (STACK_BIAS): Remove.
14017         (INIT_EXPANDERS): New.
14018         (STARTING_FRAME_OFFSET): Do not include bias.
14019         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
14020         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
14021         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
14022         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
14023         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
14024         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
14025         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
14026         (MUST_SAVE_REGISTER): Likewise.
14027         (sparc_flat_function_prologue): Likewise.
14028         (sparc_flat_function_epilogue): Likewise.
14029         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
14030         (sparc_init_modes): SFP is GENERAL_REGS.
14031         (sparc_builtin_saveregs): SFP does not have bias applied.
14032
14033 2002-02-04  Richard Henderson  <rth@redhat.com>
14034
14035         * config/alpha/alpha.c (current_function_is_thunk): Don't check
14036         current_function_is_thunk.
14037         (alpha_sa_mask): Distinguish between current_function_is_thunk
14038         called from ASM_OUTPUT_MI_THUNK and not.
14039         (alpha_does_function_need_gp): Thunks always need gp.
14040         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
14041         (alpha_output_mi_thunk_osf): New.
14042         * config/alpha/alpha-protos.h: Update.
14043         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
14044
14045 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
14046
14047         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
14048         function types, not when they're taken away.
14049
14050 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
14051
14052         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
14053         CODE_LABEL and jump table when replacing a table jump with a
14054         simple jump.
14055
14056 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14057
14058         * config/s390/s390-protos.h (legitimize_la_operand,
14059         s390_secondary_input_reload_class, s390_plus_operand,
14060         s390_expand_plus_operand): Add prototypes.
14061
14062         config/s390/s390.c (s390_secondary_input_reload_class,
14063         s390_plus_operand, s390_expand_plus_operand): New functions.
14064
14065         (struct s390_address): New member 'pointer'.
14066         (s390_decompose_address): Compute it.
14067         (legitimate_la_operand_p): Use it.
14068         (legitimize_la_operand): New function.
14069         (movti, movdi, movdf splitters): Call it.
14070
14071         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
14072         (PREDICATE_CODES): Add s390_plus_operand.
14073
14074         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
14075         (la_ccclobber): Allow GENERAL_REGS as output operand.
14076
14077         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
14078         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
14079         (*la_64, *la_31, reload_indi, reload_insi): ... these.
14080
14081 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
14082
14083         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
14084         register names for regular asm () construct.
14085
14086 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14087
14088         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
14089         registers.
14090
14091 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
14092
14093         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
14094         pat for recog.
14095
14096 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
14097
14098         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
14099         constant pool to be identical by string address and index.
14100
14101 2002-02-04  Anthony Green  <green@redhat.com>
14102
14103         * output.h (SECTION_OVERRIDE): Define.
14104         * varasm.c (named_section): Obey SECTION_OVERRIDE.
14105
14106 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14107
14108         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
14109         by existing arm*-*-netbsd* (a.out) target.
14110         (ns32k-*-netbsdelf*): Likewise.
14111         (sparc-*-netbsdelf*): Likewise.
14112         (vax-*-netbsdelf*): Likewise.
14113
14114 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
14115
14116         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
14117         headers and libobjc headers.
14118
14119 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
14120
14121         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
14122         (_mingw.h): Remove duplicate include.
14123
14124 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
14125
14126         * config.gcc: Set cpu_type to m68k for 68010, as well.
14127         (m68010-*-netbsdelf*): New...
14128         (m68k*-*-netbsdelf*): ...targets.
14129         * config/m68k/netbsd-elf.h: New file.
14130
14131 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14132
14133         * config/h8300/h8300.c (hand_list): Move inside function_arg.
14134
14135 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14136
14137         * config/h8300/h8300.c (h8_push_ops): Move inside
14138         h8300_init_once.
14139         (h8_pop_ops): Likewise.
14140         (h8_move_ops): Likewise.
14141
14142 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14143
14144         * config/h8300/h8300.c (os_task): Make it static.
14145         (monitor): Likewise.
14146         (pragma_saveall): Likewise.
14147
14148 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
14149
14150         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
14151         constant is a valid sign-extension for Pmode.
14152
14153 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14154
14155         * config/h8300/h8300.c: Fix formatting.
14156
14157 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14158
14159         * config/h8300/h8300.md: Fix formatting.
14160
14161 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14162
14163         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
14164         predicates of operands[1].  Split the patterns for each
14165         processor variant.
14166
14167 2002-02-02  Kazu Hirata  <kazu@hxi.com>
14168
14169         * config/h8300/h8300.md (xor patterns): Tighten the predicates
14170         of operands[1] to register_operand.
14171
14172 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14173
14174         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
14175         * cpphash.c (_cpp_init_hashtable): Similarly.
14176         * cppinit.c (cpp_create_reader): Default the signed_char flag.
14177         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
14178         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
14179         (cpp_handle_option): Handle the new options.
14180         * cpplex.c (cpp_interpret_charconst): Use new flag.
14181         * cpplib.h (struct cpp_options): New member signed_char.
14182         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
14183         (cpp_options): Handle -fsigned-char and -funsigned-char.
14184         (static_specs): Remove signed_char_spec.
14185         (do_spec1): Don't handle %c.
14186         * system.h: Poison SIGNED_CHAR_SPEC.
14187         * tradcif.y (yylex): Use flag_signed_char.
14188         * tradcpp.h (flag_signed_char): New.
14189         * tradcpp.c (flag_signed_char): New.
14190         (main): Handle new command-line options.
14191         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
14192 config:
14193         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
14194         * avr/avr.h: Remove old comments.
14195         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
14196         (CC1_SPEC): Pass -fsigned-char if -mic*.
14197         (SIGNED_CHAR_SPEC): Remove.
14198 doc:
14199         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
14200
14201 2002-02-01  Eric Christopher  <echristo@redhat.com>
14202
14203         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
14204         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
14205         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
14206         (ASM_OUTPUT_REG_POP): Ditto.
14207
14208 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
14209
14210         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
14211         patch.
14212
14213 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14214
14215         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
14216
14217 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
14218
14219         PR c/5304:
14220         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
14221         unconditionally.
14222
14223 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14224
14225         * cfganal.c: Include tm_p.h.
14226         (keep_with_call_p): Fix the test that determines if a register holds
14227         the return value of a call.
14228
14229 2002-02-01  DJ Delorie  <dj@redhat.com>
14230
14231         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
14232         we are given conflicting registers, switch to the other one we
14233         had allocated for us.
14234         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
14235         as TImode so we know when the "other" register is available.
14236
14237 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
14238
14239         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
14240         sparc/sparc_bi.h.
14241
14242 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
14243
14244         * cfganal.c (keep_with_call_p): New function.
14245         (flow_call_edges_add): Prevent splitting a block between a call and
14246         a single-set instruction that should be kept in the same block.
14247
14248 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14249
14250         * doc/install.texi (avr): Update outdated URL.
14251
14252 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
14253
14254         * config/stormy16/stormy16.md (pushqi): New.
14255         (popqi): New.
14256         (pushhi): New.
14257         (pophi): New.
14258         (movhi): Remove stack operands.
14259         (movqi): Likewise.
14260         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
14261         nonimmediate_nonstack_operand.
14262         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
14263         New.
14264         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
14265         New.
14266
14267 2002-01-31  Jason Merrill  <jason@redhat.com>
14268
14269         * Makefile.in (c-parse.c): Handle .output file.
14270         * objc/Make-lang.in (objc-parse.c): Likewise.
14271
14272 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
14273
14274         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
14275         the -me[lb] option is given.  Don't output the default flag
14276         twice.
14277
14278 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
14279
14280         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
14281         the primary source file; this has not been done yet.
14282         * c-decl.c (c_expand_body): Reset input_filename from
14283         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
14284
14285 2002-01-31  Kazu Hirata  <kazu@hxi.com>
14286
14287         * rtlanal.c (subreg_regno_offset): Do not use
14288         SUBREG_REGNO_OFFSET.
14289         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
14290         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
14291
14292 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14293
14294         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
14295         version rather than GNATS version in --version output.
14296
14297 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
14298
14299         * ifcvt.c (noce_process_if_block): Make a copy of the destination
14300         when copying back from a temporary.
14301
14302 2002-01-30  Richard Henderson  <rth@redhat.com>
14303
14304         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
14305         and new_dest are the same.
14306
14307 2002-01-30  Richard Henderson  <rth@redhat.com>
14308
14309         PR opt/5076
14310         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
14311         * rtl.c (note_insn_name): Update.
14312         * emit-rtl.c (remove_unnecessary_notes): Kill it.
14313         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
14314         to perform loop rotation.
14315         (expand_exit_loop_top_cond): New.
14316         * tree.h (expand_exit_loop_top_cond): Declare it.
14317         * c-semantics.c (genrtl_while_stmt): Use it.
14318         (genrtl_for_stmt): Likewise.
14319
14320 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
14321
14322         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
14323         arguments to 64-bit boundaries on 64-bit ABIs.
14324
14325 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
14326
14327         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
14328
14329 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
14330
14331         * c-decl.c (grokdeclarator): Handle type being a typedef for an
14332         invalid type.
14333
14334 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
14335
14336         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
14337         * config/sparc/sparc_bi.h: Remove file.
14338         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
14339
14340 2002-01-30  Richard Henderson  <rth@redhat.com>
14341
14342         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
14343
14344 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
14345
14346         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
14347
14348 2002-01-30  Jason Merrill  <jason@redhat.com>
14349
14350         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
14351         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
14352         (reg_save): Use DW_CFA_offset_extended_sf instead.
14353
14354         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
14355
14356 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14357
14358         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
14359         in cselib_lookup.
14360
14361 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
14362
14363         * rs6000.md ("*call_value_local32"): Remove constraints.
14364         ("*call_value_local64"): Same.
14365         ("*call_value_indirect_nonlocal_aix32"): Same.
14366         ("*call_value_nonlocal_aix32"): Same.
14367         ("*call_value_indirect_nonlocal_aix64"): Same.
14368         ("*call_value_nonlocal_aix64"): Same.
14369         ("*call_value_nonlocal_sysv"): Same.
14370
14371 2002-01-29  Richard Henderson  <rth@redhat.com>
14372
14373         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
14374
14375 2002-01-29  Richard Henderson  <rth@redhat.com>
14376
14377         * expr.c (force_operand): Ignore flag_pic for detecting pic
14378         address loads.
14379         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
14380         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
14381         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
14382         instead of open-coded loop.
14383         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
14384         be fixed when in use.
14385
14386 2002-01-29  Richard Henderson  <rth@redhat.com>
14387
14388         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
14389         * sched-rgn.c (propagate_deps): Update them.
14390         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
14391         clobbers list when either gets too long.
14392
14393 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14394
14395         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
14396         and INDEX_REGS the same as GENERAL_REGS.
14397         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
14398
14399 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14400
14401         * tree.c (build_nonstandard_integer_type): Correct prototype.
14402
14403 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
14404
14405         * config/s390/s390.md (movstrsico, movstrdix_64,
14406         movstrsix_31): Remove, replace by ...
14407         (movstrdi_short, movstrsi_short, movstrdi_long,
14408         movstrsi_long): ... these.  New.
14409         (movstrdi, movstrsi): Adapt.
14410
14411         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
14412         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
14413         Remove unnecessary CC clobber.
14414         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
14415         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
14416
14417         (divmoddi4): Don't partially initialize TImode register.
14418
14419 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
14420
14421         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
14422
14423 2002-01-29  Richard Henderson  <rth@redhat.com>
14424
14425         * flow.c (print_rtl_and_abort): Remove.
14426         (print_rtl_and_abort_fcn): Remove.
14427         (verify_local_live_at_start): Use dump_bb instead.
14428         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
14429         (verify_wide_reg_1): Return 2 on mode test failure.
14430
14431 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
14432
14433         PR c/3325, c/3326, c/2511, c/3347
14434         * c-decl.c (enum_decl_context): Remove BITFIELD.
14435         (grokdeclarator): Take bitfield width as an input.
14436         Ensure bitfields are given the correct type.  Perform
14437         bitfield width validation with build_bitfield_integer_type
14438         rather than waiting for finish_struct.
14439         (grok_typename, grok_typename_in_parm_context, start_decl,
14440         push_parmdecl, grokfield, start_function): Update calls to
14441         grokdeclarator.
14442         (build_bitfield_integer_type): New function.
14443         (finish_struct): Move bitfield validation to grokdeclarator
14444         and build_bitfield_integer_type.
14445         * tree.c (build_nonstandard_integer_type): New function.
14446         * tree.h (build_nonstandard_integer_type): New prototype.
14447 objc:
14448         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
14449
14450 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
14451
14452         PR other/1502:
14453         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
14454         don't ignore unrecognized -W* options.
14455         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
14456         * cpplib.h (cpp_handle_option): Adjust prototype.
14457         * c-decl.c (c_decode_options): Pass 0 as last argument to
14458         cpp_handle_option.
14459
14460         PR c/2896:
14461         * gcc.c (cpp_unique_options): Split from cpp_options.
14462         (cpp_options): Source cpp_unique_options.
14463         (default_compilers): Use cpp_unique_options instead of cpp_options
14464         when used together with cc1_options.
14465         (static_specs): Add cpp_unique_options.
14466         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
14467         when used together with cc1_options.
14468
14469 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14470
14471         * config/h8300/h8300-protos.h: Update the prototype of
14472         output_a_shift.
14473         * config/h8300/h8300.c (output_a_shift): Remove an unused
14474         argument 'insn'.  Remove redundant code.
14475         * config/h8300/h8300.md: Adust to the new prototype of
14476         output_a_shift.
14477
14478 2002-01-29  Kazu Hirata  <kazu@hxi.com>
14479
14480         * config/h8300/h8300-protos.h: Update the prototypes of
14481         emit_a_rotate and expand_a_rotate.
14482         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
14483         first argument to 'enum rtx_code'.
14484         (expand_a_rotate): Likewise.
14485
14486 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14487
14488         * config/h8300/h8300-protos.h: Update the prototype of
14489         output_simode_bld.
14490         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
14491         'log2'.
14492         * config/h8300/h8300.md: Adjust to the new prototype.
14493
14494 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14495
14496         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
14497         redundant code.
14498
14499 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14500
14501         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
14502         is a fixed register before returning pic_offset_table_rtx.
14503         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
14504         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
14505
14506 2002-01-28  Jason Merrill  <jason@redhat.com>
14507
14508         * dwarf2.h: Sync with src version.
14509
14510 2002-01-28  Paul Koning  <pkoning@equallogic.com>
14511
14512         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
14513         BT_FN_VOID_PTR_VAR.
14514         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
14515         * doc/extend.texi (__builtin_prefetch): Update documentation:
14516         first argument is now const void ptr.
14517
14518 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14519
14520         * config/h8300/h8300-protos.h: Remove an unused prototype.
14521
14522 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
14523
14524         * toplev.c (lang_independent_init): Round up identifier size.
14525
14526 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14527
14528         * config.gcc: Revert previous change.
14529
14530 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
14531
14532         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
14533
14534 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
14535
14536         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
14537         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
14538         other non-elf netbsd config frags.
14539         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
14540         collect2 will does that.
14541         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
14542         shared-lib frobbing will work.
14543
14544 2002-01-28  Kazu Hirata  <kazu@hxi.com>
14545
14546         * config/h8300/h8300.h: Fix formatting.
14547         * config/h8300/h8300.md: Likewise.
14548
14549 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
14550
14551         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
14552         the old, removed AAA_standards fix.
14553         * fixinc/fixincl.x: Rebuilt.
14554
14555 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
14556
14557         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
14558         atexit call in crtbegin, hooked in after call to frame_dummy;
14559         register EH before registering __fini__start.
14560
14561 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
14562
14563         * config/rs6000/altivec.h: Remove spurious semicolons.
14564
14565 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14566
14567         * config/h8300/h8300.md: Replace dead bit extraction patterns
14568         with ones that work.
14569
14570 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14571
14572         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
14573         if not STRICT_ALIGNMENT.
14574         * rtl.h (MEM_ALIGN): Likewise.
14575
14576 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14577
14578         * doc/invoke.texi (-fdump-translation-unit): Revert this
14579         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14580
14581 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14582
14583         * config/h8300/h8300.md (define_constants): New.
14584         (anonymous patterns) Use defined constants appropriately.
14585
14586 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14587
14588         * config/h8300/h8300.c (function_arg): Remove redundant code.
14589
14590 2002-01-26  Richard Henderson  <rth@redhat.com>
14591
14592         * sched-deps.c (reg_pending_uses_head): New.
14593         (reg_pending_barrier): Rename from reg_pending_sets_all.
14594         (find_insn_list): Don't mark inline.
14595         (find_insn_mem_list): Remove.
14596         (add_dependence_list, add_dependence_list_and_free): New.
14597         (flush_pending_lists): Replace only_write param with separate
14598         for_read and for_write parameters.  Update all callers.  Use
14599         add_dependence_list_and_free.
14600         (sched_analyze_1): Do not add reg dependencies here; just set
14601         the pending bits.  Use add_dependence_list.
14602         (sched_analyze_2): Likewise.
14603         (sched_analyze_insn): Replace schedule_barrier_found with
14604         reg_pending_barrier.  Add all dependencies for pending reg
14605         uses, sets, and clobbers.
14606         (sched_analyze): Don't add reg dependencies for calls, just
14607         set pending bits.  Use regs_invalidated_by_call.  Treat
14608         sched_before_next_call as a normal list, not a fake insn.
14609         (init_deps): No funny init for sched_before_next_call.
14610         (free_deps): Free pending mems lists.  Don't zero reg_last.
14611         (init_deps_global): Init reg_pending_uses.
14612         (finish_deps_global): Free it.
14613         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14614         (find_insn_mem_list): Remove.
14615         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14616         (propagate_deps): Use them.  Zero temp mem lists.
14617
14618 2002-01-26  Richard Henderson  <rth@redhat.com>
14619
14620         * Makefile.in (CRTSTUFF_CFLAGS): New.
14621         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14622         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14623         crtstuff.c instead of alpha assembly version.
14624         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14625         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14626         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14627         (__do_global_dtors_aux): Mark used.
14628         (frame_dummy, __do_global_ctors_aux): Mark used.
14629         (fini_dummy, init_dummy): Remove.
14630
14631         * config/alpha/crtbegin.asm: Remove file.
14632         * config/alpha/crtend.asm: Remove file.
14633         * config/alpha/t-crtbe: Remove file.
14634         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14635         (LINK_EH_SPEC): New.
14636
14637         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14638         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14639         calling constructors.
14640         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14641
14642         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14643         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14644         CRT_END_INIT_DUMMY hack.
14645         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14646         FORCE_{INIT,FINI}_SECTION_ALIGN.
14647
14648         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14649         FORCE_{INIT,FINI}_SECTION_ALIGN.
14650
14651         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14652         invocation sequence.
14653         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14654
14655         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14656         (FORCE_CODE_SECTION_ALIGN): New.
14657
14658 2002-01-26  Richard Henderson  <rth@redhat.com>
14659
14660         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14661
14662 2002-01-26  Richard Henderson  <rth@redhat.com>
14663
14664         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14665         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14666
14667 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14668
14669         * config/h8300/h8300.md: Remove bit extraction patterns that
14670         cannot be triggered.
14671         Restrict each bit extraction pattern to a variant on which the
14672         pattern is tested.
14673
14674 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14675
14676         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14677
14678 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14679
14680         * config/h8300/h8300.md: Remove bit test patterns that cannot
14681         be triggered.
14682         Restrict each bit test pattern to a variant on which the
14683         pattern is tested.
14684
14685 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14686
14687         * builtins.c (expand_builtin_strncat): Remove redundant check for
14688         INTEGER_CST.
14689
14690 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14691
14692         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14693         default setting.
14694         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14695         existing setting.
14696
14697 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14698
14699         * dbxout.c (dbxout_init): Use assemble_name rather than just
14700         stripping off the first character.
14701         (dbxout_source_file): Likewise.
14702
14703 2002-01-25  DJ Delorie  <dj@redhat.com>
14704
14705         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14706         using rtx_equal_p, not by comparing pointers.
14707
14708 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14709
14710         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14711         for PIC_OFFSET_TABLE_REGNUM.
14712         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14713
14714 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14715
14716         * config.gcc (x86_64-*-freebsd*): New target.
14717         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14718         value.
14719         (i[34567]86-*-freebsd*): Don't include svr4.h.
14720         * config/i386/freebsd64.h: New file.
14721
14722 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14723
14724         * config/alpha/x-vms (version): Make static.
14725
14726         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14727         in previous checkin.
14728
14729         * Makefile.in (install-headers-cp): New target.
14730         * config.gcc (alpha-dec-*vms*): Install headers with
14731         install-headers-cp
14732
14733 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14734
14735         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14736         avoid it's copies.
14737
14738 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14739
14740         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14741         of compare_tree_int.
14742         (expand_builtin_strncat): Likewise.
14743         * c-decl.c (finish_struct): Use tree_low_cst.
14744         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14745         * tree.c (compare_tree_int): Likewise.
14746
14747 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14748
14749         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14750         adjustments even if they are implemented by more than two insns.
14751
14752 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14753
14754         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14755         * df.h (struct ref): Kill B.
14756         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14757
14758         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14759         * flow.c (propagate_one_insn): Use it.
14760         (mark_used_regs): Handle NIL.
14761
14762 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14763
14764         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14765         to help folding.
14766
14767 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14768
14769         * rs6000.md (prefetch): Make address V4SI mode so that the address
14770         is restricted to legitimate form for instruction.
14771
14772 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14773
14774         * doc/install.texi (xtensa-*-elf): New target.
14775         (xtensa-*-linux*): New target.
14776         * doc/contrib.texi: Add myself.
14777
14778 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14779
14780         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14781         purpose register to hold an SImode (or smaller) value.
14782
14783 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14784
14785         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14786         registry only.
14787         * crtstuff.c: Likewise.
14788
14789 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14790
14791         * config/h8300/h8300.md (negation patterns): Tighten
14792         predicates to register_operand.
14793
14794 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14795
14796         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14797         mode, not Pmode.
14798
14799         * builtins.c (expand_builtin_prefetch): Same.
14800
14801 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14802
14803         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14804         modes.
14805
14806 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14807
14808         * config/h8300/h8300.c (print_operand): Remove support for
14809         operand character 'A'.
14810         * config/h8300/h8300.md (three anonymous patterns): Replace
14811         operand character 'A' with either 'T' or 'S'.
14812
14813 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14814
14815         * config/h8300/h8300.c (print_operand): Remove support for
14816         operand character 'U'.
14817
14818 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
14819
14820         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14821
14822 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
14823
14824         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14825         values to be assigned to the stack pointer.
14826
14827 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
14828
14829         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14830         to const_double needs to be done right for big-endian systems.
14831
14832 2002-01-24  Jason Merrill  <jason@redhat.com>
14833
14834         PR c++/2432
14835         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14836         to can_throw_internal.
14837
14838 2002-01-23  Richard Henderson  <rth@redhat.com>
14839
14840         * fold-const.c (fold): Change UINT_MAX test to check vs precision
14841         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
14842
14843 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14844
14845         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14846         (symGOT2reg): Use them, then set as GOT value as unchanging.
14847         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
14848         as a temporary, if possible.
14849         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
14850         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14851
14852 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14853
14854         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14855         accept to accept 0x80 as operands[2].
14856
14857 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14858
14859         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14860
14861 2002-01-23  Richard Henderson  <rth@redhat.com>
14862
14863         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14864
14865 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
14866
14867         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14868         (parmlist_or_identifiers_1): Verify that only a parmlist follows
14869         an attribute.
14870
14871 2002-01-23  Richard Henderson  <rth@redhat.com>
14872
14873         * expr.c (move_by_pieces_1): Extend size before negation.
14874
14875         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14876         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14877         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14878         * config/m68k/t-m68kelf: Likewise.
14879
14880 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
14881
14882         * config/xtensa/elf.h: New file.
14883         * config/xtensa/lib1funcs.asm: New file.
14884         * config/xtensa/lib2funcs.S: New file.
14885         * config/xtensa/linux.h: New file.
14886         * config/xtensa/t-xtensa: New file.
14887         * config/xtensa/xtensa-config.h: New file.
14888         * config/xtensa/xtensa-protos.h: New file.
14889         * config/xtensa/xtensa.c: New file.
14890         * config/xtensa/xtensa.h: New file.
14891         * config/xtensa/xtensa.md: New file.
14892         * config.gcc (xtensa-*-elf*): New target.
14893         (xtensa-*-linux*): New target.
14894         * cse.c (canon_hash): Compare rtx pointers instead of register
14895         numbers.  This is required for the Xtensa port.
14896         * integrate.c (copy_insn_list): Handle case where the static
14897         chain is in memory and the memory address has to be copied to
14898         a register.
14899         * doc/invoke.texi (Option Summary): Add Xtensa options.
14900         (Xtensa Options): New node.
14901         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14902
14903 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14904
14905         * diagnostic.c (internal_error): Do ICE suppression only
14906         when ENABLE_CHECKING is not defined.
14907
14908         * c-typeck.c (require_complete_type): Return error_mark_node
14909         if type is error_mark_node.
14910
14911 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
14912
14913         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14914         -Os and issue a warning.
14915
14916 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14917
14918         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14919         current (lack of) need for host configuration by hand.
14920
14921         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14922         references.  Documentation of some target macros moved from
14923         hostconfig.texi to tm.texi.
14924
14925 2002-01-23  Will Cohen  <wcohen@redhat.com>
14926
14927         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14928         defined.
14929
14930 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14931
14932         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14933         operand[3].
14934
14935 2002-01-23  Jason Merrill  <jason@redhat.com>
14936
14937         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14938
14939         * function.c (assign_parms): Don't put args of inline functions
14940         into registers when not optimizing.
14941
14942 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
14943
14944         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14945         (prologue_use): New pattern.
14946         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14947         preference to gen_rtx_USE.
14948         (thumb_expand_prologue): Use gen_prologue_use in preference to
14949         gen_rtx_USE.
14950         (thumb_expand_epilogue): Use gen_prologue_use in preference to
14951         gen_rtx_USE.
14952
14953 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
14954
14955         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14956
14957 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14958
14959         PR c/3504
14960         * doc/extend.texi: Correct documentation of __alignof__.
14961
14962 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
14963
14964         * params.h: Rename arguments of DEFPARAM so that it will be
14965         recognized as a translation keyword.
14966
14967 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14968
14969         * extend.texi: Document altivec functions.
14970         Fix N-bit adjectives in X86 builtin documentation.
14971
14972 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14973
14974         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14975         auto_inc_dec values.
14976
14977 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
14978
14979         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14980         after backslash.
14981         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14982
14983 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14984
14985         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14986
14987 2002-01-22  Richard Henderson  <rth@redhat.com>
14988
14989         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14990         copy_insn not copy_rtx.
14991
14992 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
14993
14994         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14995         "nonzero" as that might add "1" bits.  Ensure "constop" is
14996         properly sign extened.
14997         (force_to_mode): Tweak for sign extended constop.
14998
14999 2002-01-22  Richard Henderson  <rth@redhat.com>
15000
15001         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
15002         for_each_rtx instead of assuming we're already looking at the MEM.
15003         (split_small_symbolic_mem_operand): Likewise.
15004         * config/alpha/alpha.h (PREDICATE_CODES): Update.
15005         * config/alpha/alpha.md (small symbolic memory splitters): Update.
15006
15007 2002-01-22  Richard Henderson  <rth@redhat.com>
15008
15009         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
15010         sequence number for the literal.
15011         (divmoddi_internal_er): Likewise.
15012
15013 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15014
15015         PR java/4972
15016         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
15017         in LIBICONV variable.
15018         * configure: Regenerated.
15019
15020 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
15021
15022         * dependence.c (build_def_use): Remove array_idx.
15023
15024         * dwarfout.c (last_filename): Remove.
15025         (output_compile_unit_die): Remove last_filename.
15026
15027 2002-01-22  Roger Sayle  <roger@eyesopen.com>
15028             Richard Henderson  <rth@redhat.com>
15029
15030         PR opt/3640
15031         * fold-const.c (fold): Optimize unsigned comparisons against
15032         UINT_MAX (and similar unsigned constants).
15033
15034 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
15035
15036         * Makefile.in (loop.o): Depend on OPTABS_H.
15037         * loop.c (emit_prefetch_instructions): Check the prefetch operand
15038         against the predicate.
15039
15040         PR target/5379
15041         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
15042         for the address operand.
15043
15044 2002-01-22  Richard Henderson  <rth@redhat.com>
15045
15046         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
15047
15048 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15049
15050         PR other/5450
15051         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
15052         preprocessor flags.
15053
15054 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
15055
15056         * config.gcc (x86_64-*-netbsd*): New target.
15057         * config/i386/netbsd64.h: New file.
15058
15059 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15060
15061         * regrename.c (kill_value): Fix typo.
15062
15063 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
15064
15065         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
15066
15067         * config/rs6000/rs6000.h: Same.
15068
15069         * function.c (instantiate_virtual_regs): Remove
15070         STARTING_FRAME_PHASE.
15071         (assign_stack_local_1): Same.
15072         Calculate frame phase.
15073
15074 2002-01-22  Nick Clifton  <nickc@redhat.com>
15075
15076         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
15077         variable declaration to outer scope in order to simplify
15078         future extensions.
15079         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
15080         arm_hard_regno_mode_ok.
15081         * config/arm/arm-protos.h: Add a prototype for
15082         arm_hard_regno_mode_ok.
15083         * config/arm/arm.c (soft_df_operand): Remove now redundant
15084         check for DImode values using IP_REGNUM.
15085         (nonimmediate_soft_df_operand): Remove now redundant check for
15086         DImode values using IP_REGNUM.
15087         (arm_hard_regno_mode_ok): New function. New check: make sure
15088         that DImode values are not stored in IP_REGNUM.
15089
15090         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
15091         note with a USE.
15092         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
15093
15094 2002-01-22  Jason Merrill  <jason@redhat.com>
15095
15096         * c-semantics.c (genrtl_compound_stmt): Only check nesting
15097         consistency if this COMPOUND_STMT is scoped.
15098
15099 2002-01-22  Kazu Hirata  <kazu@hxi.com>
15100
15101         * predict.c: Fix formatting.
15102         * print-tree.c: Likewise.
15103         * protoize.c: Likewise.
15104         * real.h: Likewise.
15105         * rtl.h: Likewise.
15106         * sbitmap.h: Likewise.
15107         * scan.c: Likewise.
15108         * sched-deps.c: Likewise.
15109         * sched-vis.c: Likewise.
15110         * sdbout.c: Likewise.
15111         * sibcall.c: Likewise.
15112         * ssa.c: Likewise.
15113         * ssa-ccp.c: Likewise.
15114         * ssa-dce.c: Likewise.
15115         * stmt.c: Likewise.
15116         * stor-layout.c: Likewise.
15117         * system.h: Likewise.
15118
15119 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15120
15121         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
15122         if fits in bounds of base type.
15123
15124         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
15125         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
15126         (add_bound_info, default): If can't find a context, make a
15127         SAVE_EXPR.
15128         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
15129
15130 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
15131
15132         * c-typeck.c (parser_build_binary_op): If result from
15133         build_binary_op is ERROR_MARK just return error_mark_node without
15134         further processing.
15135
15136 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
15137
15138         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
15139         Split a.out-specific bits into...
15140         * config/netbsd-aout.h: ...this.
15141         * config/netbsd-elf.h: New file.
15142         * config/alpha/netbsd-elf.h: Remove.
15143         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
15144         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
15145         (STARTFILE_SPEC): Remove redundant definition.
15146         (ENDFILE_SPEC): Likewise.
15147         (LINK_SPEC): Likewise.
15148         (CPP_SPEC): Likewise.
15149         (ASM_SPEC): Likewise.
15150         (LIB_SPEC): Likewise.
15151         (SWITCH_TAKES_ARG): Likewise.
15152         (TARGET_MEM_FUNCTIONS): Likewise.
15153         (CPP_PREDEFINES): Redefine.
15154         (ASM_FINAL_SPEC): Remove redefinition.
15155         (ASM_COMMENT_START): Redefine.
15156         (FUNCTION_PROFILER): Define.
15157         (TARGET_VERSION): Redefine.
15158         Comment and formatting cleanup.
15159         * config/i386/netbsd.h: Include <netbsd-aout.h>.
15160         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
15161         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
15162         big- or little-endian.
15163         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
15164         * config.gcc (*-*-netbsd*): Add definitions common to all
15165         NetBSD configs.
15166         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
15167         gnu_ld definitions.  Add netbsd-elf.h to and remove
15168         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
15169         tmake_file, and don't lose previous tmake_file contents.
15170         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
15171         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
15172         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
15173         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
15174         (mipsel-*-netbsd*): Rename this to...
15175         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
15176         mips/little.h to tm_file for mips*el-*.
15177         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
15178         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
15179         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
15180
15181 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15182
15183         * pa-protos.h (reg_before_reload_operand): New function prototype.
15184         * pa.c (reg_before_reload_operand): New function implementation.
15185         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
15186         contraints to "*m".
15187
15188 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15189
15190         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
15191
15192 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15193
15194         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
15195         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
15196         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
15197         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
15198         (ENDFILE_SPEC): Undefine.
15199         (STARTFILE_SPEC): Redefine for PA.
15200
15201 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
15202
15203         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
15204
15205 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
15206
15207         * config.gcc: Add entries to supported PowerPC --with-cpu
15208         types.
15209
15210 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
15211
15212         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
15213         true for 64-bit mode only SSE registers in 32-bit mode.
15214
15215 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15216
15217         * unwind-dw2.c: Fix formatting.
15218         * unwind-dw2-fde.c: Likewise.
15219         * unwind-dw2-fde.h: Likewise.
15220         * unwind-pe.h: Likewise.
15221         * varasm.c: Likewise.
15222         * varray.h: Likewise.
15223
15224 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
15225
15226         Remove workaround for register stack overwrite bug in mmix.
15227         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
15228         support for TARGET_REG_STACK_FILL_BUG.
15229         * config/mmix/mmix.h: Remove member has_call_without_parameters.
15230         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
15231         Delete.
15232         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
15233         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
15234         -mno-reg-stack-fill-bug-workaround.
15235         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
15236         machine member has_call_without_parameters.
15237         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
15238         -mreg-stack-fill-bug-workaround and
15239         -mno-reg-stack-fill-bug-workaround.
15240         (MMIX Options): Ditto.
15241
15242 2002-01-21  Kazu Hirata  <kazu@hxi.com>
15243
15244         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
15245         as appropriate.
15246         Remove redundant code.
15247
15248 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
15249
15250         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
15251         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
15252         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
15253         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
15254         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
15255         out target macro definitions and non-target-specific comments
15256         mostly taken from old versions of the manual.
15257
15258 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15259
15260         * config/h8300/h8300.h: Fix comment formatting.
15261         * config/ia64/aix.h: Likewise.
15262         * config/ia64/ia64-protos.h: Likewise.
15263         * config/ia64/ia64.c: Likewise.
15264         * config/ia64/ia64.h: Likewise.
15265         * config/ia64/ia64intrin.h: Likewise.
15266         * config/ia64/linux.h: Likewise.
15267         * config/ia64/unwind-aix.c: Likewise.
15268         * config/ia64/unwind-ia64.c: Likewise.
15269
15270 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15271
15272         * config/h8300/h8300.c: Revise comments about shift code.
15273
15274 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15275
15276         * config/h8300/h8300.c (function_arg): Update a comment.
15277
15278 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15279
15280         * config/h8300/h8300.md: Update the comments at the beginning
15281         of the file.
15282
15283 2002-01-20  Kazu Hirata  <kazu@hxi.com>
15284
15285         * config/i370/i370.c: Fix comment formatting.
15286         * config/i370/i370.h: Likewise.
15287         * config/i370/i370.md: Likewise.
15288         * config/i370/linux.h: Likewise.
15289
15290 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15291
15292         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
15293
15294         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
15295         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
15296         in incomplete case.
15297
15298 2002-01-20  Graham Stott  <grahams@redhat.com>
15299
15300         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
15301
15302 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15303
15304         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
15305
15306 2002-01-19  Tom Rix  <trix@redhat.com>
15307
15308         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
15309
15310 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
15311
15312         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
15313
15314         * function.c (assign_stack_local_1): Adjust x_frame_offset with
15315         STARTING_FRAME_PHASE.
15316         (STARTING_FRAME_PHASE): New.
15317         (instantiate_virtual_regs): Check saneness of
15318         STARTING_FRAME_PHASE.
15319
15320         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
15321
15322 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
15323
15324         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
15325
15326 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15327
15328         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
15329         be used for bootstrapping GCC 3.0.
15330
15331 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15332
15333         * config/h8300/h8300.md: Fix an insn length.
15334
15335 2002-01-18  Kazu Hirata  <kazu@hxi.com>
15336
15337         * bitmap.h: Fix comment formatting.
15338         * combine.c: Likewise.
15339         * cppfiles.c: Likewise.
15340         * c-pragma.h: Likewise.
15341         * c-typeck.c: Likewise.
15342         * df.c: Likewise.
15343         * dwarf2out.c: Likewise.
15344         * function.c: Likewise.
15345         * gcc.c: Likewise.
15346         * genattrtab.c: Likewise.
15347         * gthr-win32.h: Likewise.
15348         * haifa-sched.c: Likewise.
15349         * predict.c: Likewise.
15350         * rtlanal.c: Likewise.
15351         * rtl.h: Likewise.
15352         * unwind-dw2-fde.h: Likewise.
15353         * unwind-pe.h: Likewise.
15354         * vmsdbgout.c: Likewise.
15355
15356 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15357
15358         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
15359         if type_required and passed decl.
15360
15361 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
15362
15363         * config.gcc (cpu_type): Include altivec.h in powerpc
15364         extra_headers.
15365         Same for darwin.
15366
15367         * config/rs6000/altivec.h: New.
15368
15369 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
15370
15371         * doc/install.texi (*-ibm-aix*): Update assembler and exception
15372         handling information.
15373         * doc/trouble.texi (Interoperation): Add libstdc++ information
15374         for AIX.
15375         (Misunderstandings): Add template instantiation and static template
15376         member information for AIX.
15377
15378 2002-01-17  Jason Merrill  <jason@redhat.com>
15379
15380         * dbxout.c (dbxout_type): Support const and volatile.
15381
15382         * except.c (add_partial_entry): Remove backwards compatibility code.
15383         (end_protect_partials): Likewise.
15384
15385 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
15386
15387         * config/ia64/ia64.md (prologue_use): New.
15388         * config/ia64/ia64.c (ia64_expand_prologue): Use
15389         gen_prologue_use instead of gen_rtx_USE.
15390         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
15391         as CODE_FOR_pred_rel_mutex.
15392         (ia64_sched_reorder2): Likewise.
15393
15394 2002-01-16  Eric Christopher  <echristo@redhat.com>
15395
15396         * config/mips/r3900.h: Reformat.
15397         (SUBTARGET_CPP_SIZE_SPEC): Remove.
15398         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
15399         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
15400         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
15401         * config/mips/t-elf: Remove mips3 multilib.
15402
15403 2002-01-16  H.J. Lu <hjl@gnu.org>
15404
15405         * config/mips/linux.h: Include "mips/abi64.h".
15406
15407 2002-01-16  H.J. Lu <hjl@gnu.org>
15408
15409         * config/mips/t-linux: New.
15410
15411         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
15412
15413         * config/mips/linux.h: Don't include "gofast.h".
15414         (INIT_SUBTARGET_OPTABS): Removed.
15415
15416 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15417
15418         * config/h8300/h8300-protos.h: Replace emit_a_shift with
15419         output_a_shift.
15420         * config/h8300/h8300.c: Likewise.
15421         * config/h8300/h8300.md: Likewise.
15422
15423 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15424
15425         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
15426         spaces after an opcode name.
15427         (pushqi1_h8300hs): Likewise.
15428         (pushhi1_h8300hs): Likewise.
15429
15430 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15431
15432         * doc/extend.texi: Replace "option" with "attribute"
15433         appropriately.
15434
15435 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15436
15437         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
15438         (and:DI () (const_int -8)).
15439         (split_small_symbolic_mem_operand): Split
15440         (mem (and:DI () (const_int -8)).
15441
15442 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15443
15444         PR target/5309:
15445         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
15446         same way as TYPE_IMUL.
15447         (ultrasparc_sched_reorder): Likewise.
15448         * config/sparc/sparc.md (type): Add comment to update
15449         ultrasparc_sched_reorder when making changes.
15450
15451 2002-01-16  Kazu Hirata  <kazu@hxi.com>
15452
15453         * doc/invoke.texi: Change the dump file name of block
15454         reordering pass from 28.bbro to 29.bbro.
15455         Mention -dk option.
15456
15457 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
15458
15459         * i386.md (minsf splitter): Fix pasto.
15460
15461 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15462
15463         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
15464         to frame pointer initialisation instruction.
15465         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
15466         initialisation instruction.
15467         (soft_df_operand): Do not accept the IP register.
15468         (nonimmediate_soft_df_operand): Do not accept the IP register.
15469
15470 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
15471
15472         PR target/5357:
15473         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
15474         MASK_V8 being both set.
15475
15476 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
15477
15478         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
15479         insn for GOT register; add REG_MAYBE_DEAD notes instead.
15480         config/s390/s390.md (call, call_value): Add GOT register to
15481         CALL_INSN_FUNCTION_USAGE where needed.
15482         (call_exp, call_value_exp): New.
15483
15484 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
15485
15486         * config/arm/arm.c: General formatting tidy up.
15487
15488 2002-01-16  Graham Stott  <grahams@redhat.com>
15489
15490         * calls.c (try_to_integrate): Use "(size_t)" intermediate
15491         cast and when casting an integer literal to "rtx" pointer.
15492         (expand_call): Likewise.
15493         * flow.c (try_pre_increment): Likewise.
15494         (find_use_as_address): Likewise.
15495         * integrate.c (expand_iline_function): Likewise.
15496         * regmove.c (try_auto_increment): Likewise.
15497
15498 2002-01-16  Graham Stott  <grahams@redhat.com>
15499
15500         * sched-rgn.c (passed): Use sbitmap_free.
15501         (header): Likewise.
15502         (inner): Likewise.
15503         (in_queue): Likewise.
15504         (in_stack): Likewise.
15505
15506 2002-01-15  Eric Christopher  <echristo@redhat.com>
15507
15508         * flow.c (propagate_one_insn): Change to use fatal_insn.
15509
15510 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15511
15512         * expmed.c (extract_fixed_bit_field): Remove unused code.
15513         * system.h: Poison SLOW_ZERO_EXTEND.
15514         * doc/tm.texi: Remove.
15515         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
15516         * config/arm/arm.h: Likewise.
15517         * config/avr/avr.h: Likewise.
15518         * config/clipper/clipper.h: Likewise.
15519         * config/convex/convex.h: Likewise.
15520         * config/d30v/d30v.h: Likewise.
15521         * config/dsp16xx/dsp16xx.h: Likewise.
15522         * config/elxsi/elxsi.h: Likewise.
15523         * config/fr30/fr30.h: Likewise.
15524         * config/h8300/h8300.h: Likewise.
15525         * config/i370/i370.h: Likewise.
15526         * config/i386/i386.h: Likewise.
15527         * config/m68k/m68k.h: Likewise.
15528         * config/mips/mips.h: Likewise.
15529         * config/ns32k/ns32k.h: Likewise.
15530         * config/pdp11/pdp11.h: Likewise.
15531         * config/pj/pj.h: Likewise.
15532         * config/s390/s390.h: Likewise.
15533         * config/sh/sh.h: Likewise.
15534         * config/stormy16/stormy16.h: Likewise.
15535         * config/v850/v850.h: Likewise.
15536         * config/vax/vax.h: Likewise.
15537         * config/we32k/we32k.h: Likewise.
15538
15539 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15540
15541         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
15542         (altivec_lvsl): Change constraint to b.
15543         (altivec_lvsr): Same.
15544         (altivec_lvebx): Same.
15545         (altivec_lvehx): Same.
15546         (altivec_lvewx): Same.
15547         (altivec_lvxl): Same.
15548         (altivec_lvx): Same.
15549         (altivec_stvx): Add parallel.
15550         (altivec_stvxl): Same.
15551         (altivec_stvehx): Same.
15552         (altivec_stvebx): Same.
15553         (altivec_stvebx): Same.
15554
15555 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
15556
15557         * config.gcc: Change altivec.h to altivec-defs.h.
15558
15559         * config/rs6000/altivec.h: Delete.
15560
15561         * config/rs6000/altivec-defs.h: Add.
15562
15563 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15564
15565         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
15566         and UMOD modes.
15567
15568         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
15569         less than or equal to eight bytes.
15570
15571         * vax.md (andsi3): Remove constraints and change SET destination
15572         operand type to nonimmediate_operand.
15573         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
15574         when it is a CONST_INT.
15575
15576 2002-01-15  Jason Merrill  <jason@redhat.com>
15577
15578         * c-common.def (FILE_STMT): New code.
15579         * c-common.c (statement_code_p): It's a statement.
15580         * c-common.h (stmt_tree_s): Add x_last_filename.
15581         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15582         (last_expr_filename): New macro.
15583         * c-semantics.c (begin_stmt_tree): Initialize it.
15584         (add_stmt): If the filename changed, also insert a
15585         FILE_STMT.
15586         (expand_stmt): Handle seeing one.
15587
15588 2002-01-15  Eric Christopher  <echristo@redhat.com>
15589
15590         * flow.c (propagate_one_insn): Add error message and print out
15591         insn for debugging.
15592
15593 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15594
15595         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15596         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15597         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15598         TRAMPOLINE_ALIGNMENT.
15599         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15600         to be in bits.
15601         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15602         PCC_BITFIELD_TYPE_MATTERS.
15603         * config/interix.h (STDC_VALUE): Remove.  Use
15604         STDC_0_IN_SYSTEM_HEADERS.
15605         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15606         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15607         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15608
15609 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15610
15611         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15612         not work on this platform currently.
15613
15614 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15615
15616         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15617         readonly_warning in _().
15618
15619 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15620
15621         * gcc.c (delete_if_ordinary): Backout previous change.
15622
15623 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15624
15625         * config/h8300/h8300.c (print_operand): Remove support for
15626         unused operand characters.
15627
15628         * read-rtl.c: Fix formatting.
15629         * real.c: Likewise.
15630         * recog.c: Likewise.
15631         * regclass.c: Likewise.
15632         * regmove.c: Likewise.
15633         * reg-stack.c: Likewise.
15634         * reload1.c: Likewise.
15635         * rtlanal.c: Likewise.
15636
15637 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15638
15639         * config/i386/i386.c: Fix formatting.
15640
15641 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15642
15643         * c-typeck.c (process_init_element): Don't save_expr
15644         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15645
15646 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15647
15648         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15649         emit optional traceback table if optimize_size or TARGET_ELF.
15650         * config/rs6000/rs6000.md (prefetch): New.
15651
15652 2002-01-15  Andreas Jaeger  <aj@suse.de>
15653
15654         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15655
15656 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15657
15658         * mips-tfile.c: Fix formatting.
15659
15660 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15661
15662         * unroll.c (final_reg_note_copy): Fix previous commit.
15663
15664 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15665
15666         * config/h8300/h8300-protos.h: Remove the prototype for
15667         eq_operator.
15668         * config/h8300/h8300.c (eq_operator): Remove.
15669
15670 2002-01-14  Richard Henderson  <rth@redhat.com>
15671
15672         * config/i386/i386.md (prefetch): Tidy.
15673         (prefetch_3dnow): Fix locality operand.
15674
15675 2002-01-14  Richard Henderson  <rth@redhat.com>
15676
15677         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15678         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15679
15680 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15681
15682         * reload1.c (reload_combine): Pass reg_sum replacement through
15683         copy_rtx in loop performing multiple changes.
15684
15685 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15686
15687         * except.c (remove_unreachable_regions): New.
15688         (free_eh_status): Clear exception_handler_labels.
15689         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15690         (find_exception_handler_labels): Don't add the same label more than
15691         once.
15692         (remove_exception_handler_label): Don't die if
15693         find_exception_handler_labels hasn't been called for the current
15694         function yet.
15695
15696 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15697
15698         * toplev.c (rest_of_compilation): Rebuild jump labels after
15699         gcse.
15700
15701 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15702
15703         * doc/extend.texi: Move documentation of X86 built-in functions
15704         here.
15705         * doc/invoke.texi: From here.
15706         * doc/sourcebuild.texi: Document location of documentation for
15707         machine built-in functions.
15708
15709 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15710
15711         * cppfiles.c (TEST_THRESHOLD): New macro.
15712         (SHOULD_MMAP): Ditto.
15713         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15714         be used.
15715
15716 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15717
15718         * unroll.c (final_reg_note_copy): Properly handle
15719         REG_LABEL
15720         (unroll_loops): Fix LOOP_CONDITION heuristics.
15721
15722 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15723
15724         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15725         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15726
15727 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15728
15729         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15730         threaded loop.
15731
15732 2002-01-14  Tom Rix  <trix@redhat.com>
15733
15734         * config/rs6000/rs6000.md: Fix typo with sradi.
15735
15736 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15737
15738         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15739         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15740         (clrstrdi, clrstrsi): Adapt callers.
15741
15742         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15743
15744         (movti splitter): Never use register 0 as base register.
15745
15746 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15747
15748         * combine.c (simplify_shift_const): Always generate new rtx
15749         for shift expression instead of reusing given expression.
15750
15751 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15752
15753         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15754         alpha_legitimize_address unless mode is Pmode.
15755
15756 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15757
15758         * doc/md.texi (Modifiers): Document the '*' constraint for the
15759         user.
15760
15761         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15762         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15763         for xstormy16 too.
15764
15765 2002-01-13  Richard Henderson  <rth@redhat.com>
15766
15767         * reload.c (find_reloads): Use a hard reg destination as reload reg
15768         for an input reload of the source.
15769
15770 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15771
15772         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15773         more generic.
15774
15775 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15776
15777         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15778         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15779
15780         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15781
15782 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15783
15784         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15785
15786 2002-01-12  Tom Rix  <trix@redhat.com>
15787
15788         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15789         TARGET_POWERPC64.
15790
15791 2002-01-12  Richard Henderson  <rth@redhat.com>
15792
15793         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15794
15795         * doc/invoke.texi: Update Alpha options.
15796
15797         * doc/invoke.texi: Update i386 built-in function lists.
15798
15799 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15800
15801         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15802         referencing outside.
15803
15804 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15805
15806         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15807         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15808         offsets, and change line folding.
15809         * optabs.c (expand_binop): Remove warnings.
15810         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15811
15812 2002-01-12  Graham Stott <grahams@redhat.com>
15813
15814         * attribs.c (handle_deprecated_attribute): constify WHAT.
15815         * diagnostic.c (warn_deprecated_use): Add braces, fixes
15816         dangling else warning and constify WHAT.
15817         * except.h (struct function, struct inline_remap): Move
15818         struct tag forward defs before all prototypes.
15819         (duplicate_eh_regions): Whitespace.
15820
15821 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
15822
15823         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15824         MODE_BASE_REG_CLASS.
15825         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15826
15827 2002-01-12  Richard Henderson  <rth@redhat.com>
15828
15829         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15830         (ix86_expand_vector_move): New.
15831         (bdesc_2arg): Remove andps, andnps, orps, xorps.
15832         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
15833         Remove old prefetch builtins.  Special case the logicals removed above.
15834         (ix86_expand_builtin): Likewise.
15835         (safe_vector_operand): Use V4SFmode, not TImode.
15836         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
15837         (ix86_expand_timode_binop_builtin): New.
15838         * config/i386/i386-protos.h: Update.
15839         * config/i386/i386.h (enum ix86_builtins): Update.
15840         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15841         Use ix86_expand_vector_move in vector move expanders.
15842         (movti_internal, movti_rex64): Add xorps alternative.
15843         (sse_clrv4sf): Rename and adjust from sse_clrti.
15844         (prefetch): Don't work so hard.
15845         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15846         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15847         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15848
15849 2002-01-11  Richard Henderson  <rth@redhat.com>
15850
15851         * config/i386/mmintrin.h: New file.
15852         * config/i386/xmmintrin.h: New file.
15853         * config.gcc (i?86-*-*): Add extra_headers.
15854         * simplify-rtx.c (simplify_unary_operation): Handle saturating
15855         truncation codes.
15856         (simplify_binary_operation): Handle saturating arithmetic codes.
15857         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15858         not the lowpart subreg.
15859         (ix86_expand_builtin): Return a TImode dummy register instead of 0
15860         on error.
15861         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15862
15863 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15864
15865         * conflict.c (conflict_graph_compute): Free regsets when finished.
15866         * ssa.c (compute_coalesced_reg_partition): Likewise.
15867
15868 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15869
15870         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15871         every where we allocate a register.
15872
15873 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15874
15875         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15876         * lcm.c (compute_earliest, compute_farthest): Likewise.
15877
15878 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15879
15880         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15881
15882 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15883
15884         * doc/rtl.texi (Insns): Fix 2 typos.
15885
15886 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
15887
15888         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
15889         options.  Use @table @gcctabopt for MMIX options.  Add index
15890         entries for MMIX options.  Start new paragraph with first
15891         heading of the machine-dependent options.
15892
15893 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15894
15895         PR other/5299
15896         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15897         * combine.c (force_to_mode): Same.
15898         * reload1.c (clear_reload_reg_in_use): Same.
15899
15900 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
15901
15902         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15903         and 'subtargets'.
15904
15905 2002-01-11  Andreas Jaeger  <aj@suse.de>,
15906             Brad Lucier <lucier@math.purdue.edu>
15907
15908         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15909         mcpu.
15910
15911 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
15912
15913         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15914         Protect with IN_LIBGCC.
15915         (LINK_EH_SPEC): Add required trailing space.
15916
15917 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15918
15919         * c-tree.h: Move function declarations so that they are listed
15920         under the filename which contains them.
15921         (check_identifier, finish_decl_top_level,
15922         lookup_name_current_level_global, shadow_record_fields): Remove.
15923
15924 2002-01-11  Andreas Jaeger  <aj@suse.de>
15925
15926         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15927         march.
15928
15929 2002-01-10  Richard Henderson  <rth@redhat.com>
15930
15931         * config/alpha/alpha.c (print_operand): Add 'J'.
15932         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15933         new operand with the sequence number for the lituse.  When splitting
15934         the insns, use gen_movdi_er_high_g and generate a sequence number.
15935         (gen_movdi_er_high_g): Print the sequence number if non-zero.
15936
15937 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
15938
15939         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15940         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15941         stvxl.
15942         (altivec_expand_builtin): Same.
15943         (altivec_expand_stv_builtin): New.
15944
15945         * config/rs6000/rs6000.h (rs6000_builtins): Same.
15946
15947         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15948         ("altivec_lvehx"): New.
15949         ("altivec_lvewx"): New.
15950         ("altivec_lvxl"): New.
15951         ("altivec_lvx"): New.
15952         ("altivec_stvx"): New.
15953         ("altivec_stvebx"): New.
15954         ("altivec_stvehx"): New.
15955         ("altivec_stvewx"): New.
15956         ("altivec_stvxl"): New.
15957
15958 2002-01-10  Richard Henderson  <rth@redhat.com>
15959
15960         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15961         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
15962         care not to delete instructions twice.
15963
15964 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15965
15966         * toplev.c: Don't declare environ (it's not used anywhere).
15967         * configure.in: Don't check for declaration of environ.
15968         * config/i386/xm-mingw32.h: Don't #define environ.
15969         * config.in, configure: Regenerate.
15970
15971 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15972
15973         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15974         * configure: Regenerate.
15975
15976         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15977         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15978         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15979         alpha/xm-vms.h.
15980         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15981         LIMITS_H_TEST here, not in m68k/x-next.
15982         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15983         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15984
15985         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15986         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15987         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
15988
15989         * config/i386/x-djgpp: Renamed i386/t-djgpp.
15990         * config/m88k/x-dolph: Renamed m88k/t-dolph.
15991         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15992         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
15993         replacement of quadlib.asm with quadlib.c.
15994
15995         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15996         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15997         config/rs6000/xm-beos.h: Delete file.
15998
15999         * config.gcc: Update to match above changes.
16000
16001 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16002
16003         * config/h8300/h8300.h: Fix comment typos.
16004         * config/h8300/h8300.md: Likewise.
16005         * config/h8300/lib1funcs.asm: Likewise.
16006
16007 2002-01-10  Dale Johannesen  <dalej@apple.com>
16008
16009         PR optimization/5269
16010         * unroll.c (precondition_loop_p): Make *increment be the correct
16011         sign when n_iterations known, to avoid confusing caller.
16012
16013 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16014
16015         * doc/extend.texi (deprecated): Fix a typo.
16016
16017 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
16018
16019         * basic-block.h (update_br_prob_note): Declare.
16020         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
16021         (try_forward_edges): Care negative frequencies and update note.
16022         (outgoing_edges_match): Tweek conditional merging heuristics.
16023         (try_crossjump_to_edge): use update_br_prob_note.
16024         * cfglayout.c (fixup_reorder_chain): Likewise.
16025         * cfrtl.c (update_br_prob_note): New.
16026         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
16027
16028         * i386.c (ix86_decompose_address): Return -1 if address contains
16029         shift.
16030         (legitimate_address_p): Require ix86_decompose_address to return 1.
16031
16032         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
16033         (cprop_insn): Likewise.
16034
16035 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16036
16037         * toplev.c: Fix formatting.
16038         * tree.c: Likewise.
16039         * tree-dump.c: Likewise.
16040         * unroll.c: Likewise.
16041         * unwind-dw2.c: Likewise.
16042         * unwind-dw2-fde.c: Likewise.
16043         * unwind-dw2-fde-glibc.c: Likewise.
16044         * unwind-sjlj.c: Likewise.
16045
16046 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16047
16048         * doc/invoke.texi: Document PDP-11 options.
16049
16050 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16051
16052         * config/h8300/h8300.h: Fix formatting.
16053
16054 2002-01-10  Ira Ruben   <ira@apple.com>
16055
16056         Add __attribute__ ((deprecated)).
16057         * extend.texi: Document __attribute__ ((deprecated)).
16058         * invoke.texi: Document -Wno-deprecated-declarations.
16059         * testsuite/g++.dg/other/deprecated.C: New C++ test.
16060         * testsuite/gcc.dg/deprecated.c: New C test.
16061         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
16062         (c_common_attribute_table): Add "deprecated" entry.
16063         (handle_deprecated_attribute): New function.
16064         * c-decl.c (deprecated_states): New enum.
16065         deprecated_state: State of "deprecated" handling.
16066         (start_decl): Set deprecated_state based on attributes.
16067         (grokdeclarator): Test for deprecated uses, propagate attribute.
16068         * c-typeck.c (build_component_ref): Test for deprecated fields.
16069         (build_external_ref): Test for deprecated primaries.
16070         * diagnostic.c (warn_deprecated_use) New function to issue
16071         warnings about __attribute__ ((depricated)) references.
16072         * flags.h (warn_deprecated_decl): Extern declared for
16073         -W[no-]deprecated-declarations option.
16074         * print-tree.c (print_node): Show deprecated flag status.
16075         * toplev.c (warn_deprecated_decl): Defined.
16076         (W_options): Added "deprecated-declaration".
16077         * toplev.h (warn_deprecated_use): Extern declared.
16078         * tree.h (struct tree_common): Define deprecated_flag.
16079         (TREE_DEPRECATED): New macro to access flag.
16080         * cp/call.c (build_call): Test for deprecated calls.
16081         * cp/class.c (add_implicitly_declared_members): Set global
16082         flag to tell grokdeclarator to not issue deprecated warnings.
16083         * cp/cp-tree.h: Add extern for adding_implicit_members.
16084         * cp/decl.c (deprecated_states): New enum.
16085         (start_decl): Set deprecated_state based on attributes.
16086         (grokdeclarator): Test for deprecated uses, propagate attribute.
16087         * cp/lex.c (do_identifier): Test for deprecated primaries.
16088         * cp/typeck.c (build_component_ref): Test for deprecated fields.
16089
16090 2002-01-10  Ira Ruben   <ira@apple.com>
16091
16092         Fix to assign attributes to inline member functions.
16093         * cp/decl.c (start_method): Handle attrlist.
16094
16095 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16096
16097         * combine.c (expand_field_assignment): Use subreg_lsb().
16098
16099 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
16100
16101         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
16102         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
16103         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
16104         Recurse for any operand of AND as long as constant is non-zero.
16105
16106 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16107
16108         * config/h8300/h8300.md: Remove constraints from expanders.
16109
16110 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16111
16112         * varasm.c: Fix formatting.
16113         * varray.c: Likewise.
16114         * vmsdbgout.c: Likewise.
16115         * xcoffout.c: Likewise.
16116
16117 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
16118
16119         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
16120         update edge probabilities to match.
16121
16122 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
16123
16124         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
16125         dependencies.
16126         * doc/languages.texi, doc/sourcebuild.texi: New files.
16127         * doc/configfiles.texi: Make a subsubsection.  Update.
16128         * doc/configterms.texi: Add @node.  Remove warning that this isn't
16129         instructions for building GCC.
16130         * doc/makefile.texi: Make a subsection.
16131         * doc/gccint.texi: Update.
16132
16133 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
16134
16135         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
16136
16137 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
16138
16139         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
16140
16141 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
16142
16143         * optabs.c (expand_fix): Look for wider integer modes first.
16144
16145         * i386.md (mov?f): Avoid the fake const double trick for medium
16146         memory model.
16147         (min?f*/max?f*): Prohibit memory operands for i387 variant.
16148         (fop_df_4): Disable for SSE compilation.
16149
16150 2002-01-10  Graham Stott  <grahams@redhat.com>
16151
16152         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
16153         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
16154
16155 2002-01-10  Richard Henderson  <rth@redhat.com>
16156
16157         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
16158
16159 2002-01-10  Richard Henderson  <rth@redhat.com>
16160
16161         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
16162         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
16163
16164 2002-01-10  Kazu Hirata  <kazu@hxi.com>
16165
16166         * combine.c (can_combine_p): Fix a comment typo.
16167
16168 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
16169
16170         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
16171         empty list correctly.  Change loop index $t to $f for
16172         consistency with rest of Makefile.
16173
16174 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
16175
16176         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
16177         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16178
16179         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
16180         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
16181         (altivec_init_builtins): Same.
16182         (altivec_expand_unop_builtin): Return NULL_RTX on error.
16183         (altivec_expand_binop_builtin): Same.
16184         (altivec_expand_ternop_builtin): Same.
16185         (bdesc_dst): New.
16186
16187         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
16188         ("altivec_vctuxs"): Fix typo.
16189         ("altivec_vnmsubfp"): Same.
16190         ("altivec_dssall"): New.
16191         ("altivec_mfvscr"): New.
16192         ("altivec_dss"): New.
16193         ("altivec_lvsl"): New.
16194         ("altivec_lvsr"): New.
16195         ("altivec_dstt"): New.
16196         ("altivec_dstst"): New.
16197         ("altivec_dststt"): New.
16198         ("altivec_dst"): New.
16199
16200         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
16201         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
16202
16203 2002-01-09  Richard Henderson  <rth@redhat.com>
16204
16205         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
16206
16207 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
16208
16209         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
16210         function.
16211         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
16212         prototype.
16213         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
16214
16215 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16216
16217         * read-rtl.c: Fix formatting.
16218         * real.c: Likewise.
16219         * regclass.c: Likewise.
16220         * regrename.c: Likewise.
16221         * reg-stack.c: Likewise.
16222         * reload1.c: Likewise.
16223         * reload.c: Likewise.
16224         * rtl.c: Likewise.
16225
16226 2002-01-09  Kazu Hirata  <kazu@hxi.com>
16227
16228         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
16229         to extract items in the expr_list chain.
16230
16231 2002-01-09  Richard Henderson  <rth@redhat.com>
16232
16233         * config/vax/vax.c (vax_rtx_cost): Never abort.
16234
16235         * config/vax/vax.h (REAL_ARITHMETIC): Define.
16236
16237 2002-01-09  Jan Hubicka  <jh@suse.cz>
16238
16239         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
16240
16241 2002-01-09  Richard Henderson  <rth@redhat.com>
16242
16243         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
16244         Unify code from various alternatives.
16245
16246 2002-01-09  Richard Henderson  <rth@redhat.com>
16247
16248         * regrename.c (copy_value): Ignore the copy if the source register
16249         is present in the value chain with a narrower mode.
16250
16251 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
16252
16253         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
16254         for the c4x target. Also improve layout.
16255
16256 2002-01-09  Richard Henderson  <rth@redhat.com>
16257
16258         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
16259         * config/m32r/m32r.md (and ior xor splitters): Swap operands
16260         to match insn patterns.
16261
16262 2002-01-09  Richard Henderson  <rth@redhat.com>
16263
16264         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
16265         (copyprop_hardreg_forward_1): Likewise.
16266
16267 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16268
16269         * pa.md (decrement_and_branch_until_zero): Change predicate for
16270         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
16271
16272 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
16273
16274         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
16275         gets undefined. For Darwin.
16276
16277 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
16278
16279         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
16280
16281 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
16282
16283         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
16284
16285 2002-01-08  Richard Henderson  <rth@redhat.com>
16286
16287         * regrename.c (copy_value): Ignore overlapping copies.
16288
16289 2002-01-08  Richard Henderson  <rth@redhat.com>
16290
16291         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
16292         as needed to avoid shared structure.
16293
16294 2002-01-08  Kazu Hirata  <kazu@hxi.com>
16295
16296         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
16297         H8/300H and H8/S.
16298
16299 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16300
16301         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
16302         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
16303         documentation of obsolete macros.
16304         * system.h: Poison these macros.
16305         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
16306         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
16307         config/c4x/c4x.h, config/clipper/clipper.h,
16308         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
16309         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
16310         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
16311         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
16312         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
16313         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
16314         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
16315         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
16316         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
16317         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
16318         config/sparc/sparc.h, config/stormy16/stormy16.h,
16319         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
16320         definitions and commented out definitions of obsolete macros.
16321         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
16322         of MAX_INT_TYPE_SIZE.
16323
16324 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16325
16326         * config/s390/s390.c (s390_preferred_reload_class): Never
16327         return ADDR_REGS if it isn't a subset of the given class.
16328         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
16329         FP_REGS, but all superclasses as well.
16330
16331         * config/s390/s390.c (s390_function_profiler): Fix thinko.
16332
16333         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
16334         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
16335         must not be a const_int.
16336
16337 2002-01-08  Richard Henderson  <rth@redhat.com>
16338
16339         * Makefile.in (toplev.o): Depend on options.h.
16340         (gcc.o): Depend on specs.h.
16341
16342 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
16343
16344         * expr.c (store_expr): Convert VOIDmode constants back to target's
16345         mode.
16346
16347 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16348
16349         * doc/invoke.texi: Markup gcc as @command.  Refer to
16350         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
16351         of http://gcc.gnu.org/thanks.html.
16352
16353 2002-01-08  Dale Johannesen  <dalej@apple.com>
16354
16355         * config/rs6000/rs6000.md: Add missing int register
16356         target case to movdf_low.
16357
16358 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
16359
16360         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
16361         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
16362         (cppinit.o): Depend on except.h.
16363         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
16364         s-specs): New rules.
16365
16366         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
16367         Don't create specs.h/options.h/gencheck.h here.  Remove
16368         unnecessary variable settings from last argument of AC_OUTPUT.
16369         * config.in, configure: Regenerate.
16370         * intl.c: Hardcode package name as "gcc".
16371
16372         * cppinit.c: Include except.h.
16373         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
16374         appropriate.
16375         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
16376         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
16377         (!)USING_SJLJ_EXCEPTIONS.
16378         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
16379
16380 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16381
16382         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
16383         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
16384         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
16385         documentation of obsolete macros.
16386         * system.h: Poison these macros.
16387         * config/d30v/d30v.h, config/ns32k/encore.h,
16388         config/stormy16/stormy16.h: Remove definitions and commented out
16389         definitions of obsolete macros.
16390
16391 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
16392
16393         * objc/objc-act.c (handle_class_ref): Mark the declaration of
16394         %sobjc_class_ref_%s as used - to prevent unwanted compiler
16395         warnings.
16396
16397 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
16398
16399         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
16400         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
16401         to insn adjusting stack/frame pointer.
16402         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
16403         accept operands that cause the insn to be non-splittable.
16404
16405 2002-01-08  Graham Stott  <grahams@redhat.com>
16406
16407         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
16408         (C_TYPE_FIELDS_VOLATILE): Likewise.
16409         (C_TYPE_BEING_DEFINED): Likewise.
16410         (C_IS_RESERVED_WORD): Likewise.
16411         (C_TYPE_VARIABLE_SIZE): Likewise.
16412         (C_DECL_VARIABLE_SIZE): Likewise.
16413         (C_MISSING_PROTOTYPE_WARNED): Likewise.
16414         (C_SET_EXP_ORIGINAL_CODE): Likewise.
16415         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
16416         parenthesis.
16417         (C_DECL_ANTICIPATED): Likewise.
16418         (c_build_type_variant): Add parenthesis.
16419
16420 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
16421
16422         * gcc.c (option_map): Remove --version.
16423         (process_command): Handle -fversion following the GNU Coding
16424         Standards.  Partially addresses PR other/704.
16425
16426 2002-01-08  Graham Stott  <grahams@redhat.com>
16427
16428         * combine.c (combine_instructions): Fix typo.
16429
16430 2002-01-08  Graham Stott  <grahams@redhat.com>
16431
16432         * debug.h: Use "tree" and "rtx" throughout.
16433
16434         * debug.c: Likewise.
16435
16436 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
16437
16438         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
16439         constant pool, use the pool's version of the symbol instead.
16440
16441 2002-01-07  Richard Henderson  <rth@redhat.com>
16442
16443         * regrename.c (find_oldest_value_reg): Ignore the value chain if
16444         the original register was copied in a mode with a fewer number of
16445         hard registers than the desired mode.
16446         (copyprop_hardreg_forward_1): Likewise.
16447         (debug_value_data): Fix loop test.
16448         * toplev.c (parse_options_and_default_flags): Reenable
16449         -fcprop-registers at -O1.
16450
16451 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16452
16453         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
16454         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
16455
16456         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
16457         predicates.
16458
16459         * config/rs6000/rs6000.md: Add altivec predicate patterns.
16460
16461 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16462
16463         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
16464         (pa_output_function_prologue): Output local label at the beginning of
16465         the prologue when profiling.
16466         (hppa_profile_hook): Use the local label rather than the function label.
16467         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
16468
16469 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16470
16471         * config/rs6000/rs6000.c (print_operand): Remove extra space.
16472         (altivec_expand_unop_builtin): Fix thinko.
16473         (altivec_expand_binop_builtin): Same.
16474         (altivec_expand_ternop_builtin): Same.
16475         (altivec_expand_builtin): Same.
16476
16477 2002-01-07  Richard Henderson  <rth@redhat.com>
16478
16479         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
16480
16481 2002-01-07  Jason Merrill  <jason@redhat.com>
16482
16483         * unwind-dw2.c (execute_cfa_program): Use < again.
16484
16485 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16486
16487         * predict.c (combine_predictions_for_insn): Avoid division by zero.
16488
16489 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
16490
16491         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
16492         Don't allow -1 - x -> ~x simplifications in the first pass.
16493
16494 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
16495
16496         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
16497         arguments.
16498         (altivec_expand_binop_builtin): Same.
16499         (altivec_expand_unop_builtin): Same.
16500         (print_operand): Fix typo.
16501         (bdesc_1arg): Add vupk* variants.
16502
16503         * rs6000.h (rs6000_builtins): Add vupk* enums.
16504
16505         * rs6000.md: Add altivec_vupk* variants.
16506
16507 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
16508
16509         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
16510         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
16511         and last update dates.
16512
16513 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
16514
16515         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
16516
16517 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
16518
16519         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
16520         * config/avr/avr.h (CPP_SPEC): Likewise.
16521         (LINK_SPEC): Likewise.
16522         (CRT_BINUTILS_SPECS): Likewise.
16523         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
16524         * doc/invoke.texi (AVR Options): Document them.
16525
16526 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
16527
16528         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
16529         LABEL_NUSES.
16530
16531 2002-01-07  Graham Stott  <grahams@redhat.com>
16532
16533         * config/i386/i386.h: Update copyright date.
16534         (HALF_PIC_PTR): Add parenthesis.
16535         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
16536         (CONSTANT_ALIGNMENT): Add parenthesis.
16537         (DATA_ALIGNMENT): Likewise.
16538         (LOCAL_ALIGNMENT): Likewise.
16539         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
16540         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
16541         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
16542         (HARD_REGNO_NREGS): Add paranethesis.
16543         (VALID_SSE_REG_MODE): Whitespace.
16544         (VALID_MMX_REG_MODE): Whitespace.
16545         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
16546         (ix86_hard_regno_mode_ok): Add parenthesis.
16547         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
16548         (RETURN_IN_MEMORY): Whitespace.
16549         (N_REG_CLASSES): Add parenthesis.
16550         (INTEGER_CLASS_P): Add parenthesis and wrap.
16551         (FLOAT_CLASS_P): Likewise.
16552         (SSE_CLASS_P): Likewise.
16553         (MMX_CLASS_P): Likewise.
16554         (MAYBE_INTEGER_CLASS_P): Likewise.
16555         (MAYBE_FLOAT_CLASS_P): Likewise.
16556         (MAYBE_SSE_CLASS_P): Likewise.
16557         (MAYBE_MMX_CLASS_P): Likewise.
16558         (Q_CLASS_P): Likewise.
16559         (GENERAL_REGNO_P): Uppercase macro parameter.
16560         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
16561         (FP_REGNO_P): Likewise.
16562         (ANY_FP_REGNO_P): Uppercase macro parameter.
16563         (SSE_REGNO_P): Likewise.
16564         (SSE_REGNO): Likewise.
16565         (SSE_REG_P): Likewise.
16566         (SSE_FLOAT_MODE_P): Likewise.
16567         (MMX_REGNO_P): Likewise.
16568         (MMX_REG_P):Likewise.
16569         (STACK_REG_P): Likewise.
16570         (NON_STACK_REG_P): Likewise.
16571         (STACK_TOP_P): Likewise.
16572         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
16573         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
16574         (SECONDARY_MEMORY_NEEDED): Likewise.
16575         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
16576         (MD_ASM_CLOBBERS): Whitespace and wrap.
16577         (MUST_PASS_IN_STACK): Whitespace and wrap.
16578         (RETURN_POPS_ARGS): Add parenthesis.
16579         (INIT_CUMULATIVE_ARGS): Likewise.
16580         (FUNCTION_ARG): Likewise.
16581         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16582         (SETUP_INCOMING_VARARGS): Likewise.
16583         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16584         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16585         parenthsis.
16586         (EXPAND_BUILTIN_VA_ARG): Likewise.
16587         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16588         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16589         (INITIAL_ELIMINATION_OFFSET): Likewise.
16590         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16591         (REGNO_OK_FOR_BASE_P): Likewise.
16592         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16593         (REGNO_OK_FOR_DIREG_P): Likewise.
16594         (REG_OK_FOR_INDEX_P): Whitespace.
16595         (REG_OK_FOR_BASE_P): Whitespace.
16596         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16597         parenthesis.
16598         (FIND_BASE_TERM): Fix typo.
16599         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16600         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16601         (SYMBOLIC_CONST; Whitespace.
16602         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16603         (ENCODE_SECTION_INFO): Whitespace.
16604         (FINALIZE_PIC): Remove do { ... } while (0).
16605         (PROMOTE_MODE): Wrap in do { ... } while (0).
16606         (CONST_COSTS): Whitespace.
16607         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16608         (REGISTER_MOVE_COST): Add parenthesis.
16609         (MEMORY_MOVE_COST): Likewise.
16610         (EXTRA_CC_MODES): Whitespace.
16611         (SELECT_CC_MODE): Add parenthesis and whitespace.
16612         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16613         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16614         (ASM_OUTPUT_LABEL): Add paramethesis.
16615         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16616         (ASM_OUTPUT_REG_POP): Likewise.
16617         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16618         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16619
16620         * config/i386/i386.c: Update copyright.
16621         (CHECK_STACK_LIMIT): Add parenthesis.
16622         (AT_BP): Uppercase macro parameter.
16623         (x86_64_int_parameter_registers): Constify.
16624         (x86_64_int_return_registers): Likewise.
16625         (ix86_compare_op0): Use rtx.
16626         (construct_container): Constify INTREG parameter.
16627         (function_arg): Use rtx.
16628
16629         * diagnostic.h: Update copyright date.
16630         (output_buffer_state): Add parenthesis.
16631         (output_buffer_format_args): Likewise.
16632
16633         * combine.c (combine_instructions): Replace XEXP (links, 0)
16634         with link.
16635
16636 2002-01-06  H.J. Lu <hjl@gnu.org>
16637
16638         * cfgcleanup.c (thread_jump): Fix 2 typos.
16639
16640 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16641
16642         * config.gcc: Add support for --enable-altivec.
16643
16644 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16645
16646         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16647
16648 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16649
16650         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16651         __objc_class_name_*.
16652
16653 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16654
16655         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16656
16657 2002-01-06  Richard Henderson  <rth@redhat.com>
16658
16659         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16660         nop them out.  Increment label reference count for REG_LABEL.
16661         (fill_slots_from_thread): Frob label reference count around
16662         delete_related_insns.
16663
16664 2002-01-05  Richard Henderson  <rth@redhat.com>
16665
16666         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16667         jump threading.
16668
16669 2002-01-05  Richard Henderson  <rth@redhat.com>
16670
16671         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16672         * integrate.c (output_inline_function): Likewise.
16673         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16674         to remove_unnecessary_notes after emitting abstract instance.
16675         Force an emitted nested function to have its parent emited as well.
16676         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16677         for null.
16678         (rtl_for_decl_location): Do not look at reload data structures
16679         before reload has run.
16680
16681 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16682
16683         * cse.c: Fix formatting.
16684         * dwarf2asm.c: Likewise.
16685         * dwarf2out.c: Likewise.
16686         * explow.c: Likewise.
16687         * expmed.c: Likewise.
16688         * function.c: Likewise.
16689         * gcov.c: Likewise.
16690         * gencheck.c: Likewise.
16691         * genrecog.c: Likewise.
16692         * ggc-common.c: Likewise.
16693         * ggc-page.c: Likewise.
16694         * global.c: Likewise.
16695
16696 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16697
16698         * combine.c: Fix formatting.
16699
16700 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16701
16702         PR middle-end/1557
16703         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16704
16705 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16706
16707         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16708         as 1 for __powerpc64__ as well.
16709
16710         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16711
16712         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16713         return it.
16714
16715 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16716
16717         * lcm.c: Revert change, due to performance regression it causes on
16718         SPEC because it's slightly more conservative (sigh, I hate
16719         edge-based LCM).
16720
16721 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16722
16723         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16724
16725 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16726
16727         * doc/cppinternals.texi: Update.
16728
16729 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16730
16731         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16732         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16733         negatives.
16734         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16735         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16736         kludge for pre-october-14th mmix versions to handle new-found bug
16737         with PUSHJ/PUSHGO and the register stack.
16738         * config/mmix/mmix.h (struct machine_function): Rename member
16739         has_call_value_without_parameters to has_call_without_parameters.
16740         All referers changed.
16741         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16742         TARGET_MASK_BRANCH_PREDICT): New macros.
16743         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16744         -mno-reg-stack-fill-bug-workaround.
16745         * config/mmix/mmix.md ("call"): Set struct machine member
16746         has_call_without_parameters.
16747
16748 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16749
16750         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16751
16752 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16753
16754         * cfgcleanup.c: Include tm_p.h
16755         (mark_effect): Fix handling of hard register; fix handling of SET
16756
16757 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16758
16759         * config/h8300/h8300.md (anonymous patterns): Check that
16760         operands are registers before using REGNO on them.
16761
16762 2002-01-03  Roland McGrath  <roland@frob.com>
16763
16764         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16765
16766 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16767
16768         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16769         * c-common.h (genrtl_expr_stmt_value): Likewise.
16770         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16771         (expand_expr_stmt_value): Add maybe_last argument.
16772         Don't warn about statement with no effect if it is the last statement
16773         in expression statement.
16774         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16775         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16776         expand_expr_stmt_value.
16777         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16778         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16779         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16780         as maybe_last to expand_expr_stmt_value.
16781
16782 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16783
16784         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16785         be passed in, do not build it.
16786         (c_begin_if_stmt): New function.
16787         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16788         * c-common.h (c_expand_start_cond): Update prototype.
16789         (c_begin_if_stmt): Prototype new function.
16790         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16791         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16792         c_begin_while_stmt and c_finish_while_stmt_cond.
16793
16794 2002-01-04  William Cohen  <wcohen@redhat.com>
16795
16796         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16797         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16798         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16799         * config/pa/som.h (ASM_FILE_START): Likewise.
16800
16801 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16802
16803         * lcm.c: Include df.h.
16804         Add available_transfer_function prototype.
16805         (compute_available): Rework to use iterative dataflow framework.
16806         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16807         with bb_info in df.h
16808         (available_transfer_function): New function.
16809
16810         * Makefile.in (lcm.o): add df.h to dependencies.
16811
16812 2002-01-04  Richard Henderson  <rth@redhat.com>
16813
16814         * config/alpha/alpha.c (some_operand): Accept HIGH.
16815         (input_operand): Likewise; accept simple references to globals.
16816         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16817         (alpha_const_double_ok_for_letter_p): Likewise.
16818         (alpha_extra_constraint): Likewise.
16819         (alpha_preferred_reload_class): Likewise.  Do not force
16820         symbolic constants to memory.
16821         (alpha_legitimate_address_p): Accept simple references
16822         to small_symbolic_operand.
16823         (alpha_legitimize_address): New arg scratch.  Be prepared to be
16824         called when no_new_pseudos.  Emit simple symbolic references.
16825         Split integers into low, high, and rest.
16826         (alpha_expand_mov): Use alpha_legitimize_address.
16827         (some_small_symbolic_mem_operand): New.
16828         (split_small_symbolic_mem_operand): New.
16829         * config/alpha/alpha-protos.h: Update.
16830         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16831         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16832         (EXTRA_CONSTRAINT): Likewise.
16833         (PREFERRED_RELOAD_CLASS): Likewise.
16834         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16835         (PREDICATE_CODES): Update.
16836         * config/alpha/alpha.md: New post-reload splitters to convert
16837         simplfied symbolic operands to the form that references $29.
16838         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16839         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16840
16841 2002-01-03  Richard Henderson  <rth@redhat.com>
16842
16843         * local-alloc.c (function_invariant_p): Update commentary.
16844
16845 2002-01-04  H.J. Lu <hjl@gnu.org>
16846
16847         * toplev.c (rest_of_compilation): Fix a typo when calling
16848         cleanup_cfg.
16849
16850 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16851
16852         * c-common.c: Fix formatting.
16853         * diagnostic.c: Likewise.
16854         * doloop.c: Likewise.
16855         * dwarf2out.c: Likewise.
16856
16857 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16858
16859         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16860         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16861
16862 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16863
16864         * cpperror.c: Update comments and copyright.
16865         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16866         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16867
16868 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16869
16870         * collect2.c (main): Use strcmp when testing for "-shared".
16871
16872 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16873
16874         * cppmacro.c: Don't include intl.h.  Update comments.
16875         (new_number_token): Allocate enough buffer for 64-bit unsigned
16876         integers; update prototype.
16877         * cppmain.c: Update comments.
16878
16879 2002-01-03  William Cohen  <wcohen@redhat.com>
16880
16881         * function.h (struct function): Add profile.
16882         (current_function_profile): New.
16883         doc/extend.texi: Update documentation.
16884         * final.c (final_start_function): Use current_function_profile
16885         instead of profile_flag.
16886         (profile_after_prologue): Likewise.
16887         * function.c (expand_function_start): Likewise.
16888         (expand_function_start): Likewise.
16889         * config/alpha/alpha.c (direct_call_operand):
16890         (alpha_does_function_need_gp): Likewise.
16891         (alpha_expand_prologue): Likewise.
16892         * config/arm/arm.c (arm_expand_prologue): Likewise.
16893         thumb_expand_prologue: Likewise.
16894         * config/d30v/d30v.c (d30v_stack_info): Likewise.
16895         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16896         (fr30_expand_prologue): Likewise.
16897         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16898         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16899         * config/i386/i386.h (FINALIZE_PIC): Likewise.
16900         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16901         * config/i960/i960.c (i960_output_function_prologue): Likewise.
16902         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16903         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16904         (m32r_expand_prologue): Likewise.
16905         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16906         (m88k_expand_prologue): Likewise.
16907         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16908         * config/mips/mips.c (compute_frame_size): Likewise.
16909         (mips_expand_prologue): Likewise.
16910         (mips_can_use_return_insn): Likewise.
16911         * config/pa/elf.h (ASM_FILE_START): Likewise.
16912         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16913         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16914         * config/pa/som.h (ASM_FILE_START): Likewise.
16915         * config/romp/romp.c (romp_using_r14): Likewise.
16916         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16917         (rs6000_stack_info): Likewise.
16918         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16919         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16920         * config/v850/v850.c (compute_register_save_size): Likewise.
16921
16922 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
16923
16924         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16925         gen_lowpart_common fails, use gen_lowpart_SUBREG.
16926
16927 2002-01-03  Turly O'Connor  <turly@apple.com>
16928
16929         * darwin.c (machopic_output_possible_stub_label): Don't generate
16930         stub routines for pseudo-stubs which we've just defined.
16931
16932 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16933
16934         * builtins.c: Fix formatting.
16935         * c-typeck.c: Likewise.
16936         * combine.c: Likewise.
16937         * expr.c: Likewise.
16938         * loop.c: Likewise.
16939
16940 2002-01-03  Andreas Schwab  <schwab@suse.de>
16941
16942         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16943         and return true if _cpp_push_next_buffer pushed a new include
16944         file.
16945         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16946         _cpp_pop_file_buffer did not push a new file.
16947         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16948
16949 2002-01-02  Eric Christopher  <echristo@redhat.com>
16950
16951         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16952         FIND_REG_INC_NOTE call. Update copyright.
16953         * loop.c (canonicalize_condition): Ditto.
16954         * reorg.c (delete_scheduled_jump): Ditto.
16955
16956 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16957
16958         * gcse.c: Fix formatting.
16959
16960 2002-01-03  Graham Stott  <grahams@redhat.com>
16961
16962         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16963         forward defs for struct tags rtx_def, union_tree, rtvec_def
16964         also output corresponding typedefs for rtx, tree, and rtvec.
16965
16966         * system.h: Move forward defs for struct tags rtx_def, union_tree,
16967         rtvec_def along with corresponding typedefs for rtx, tree, and
16968         rtvec to config.h, hconfig.h, tconfig.h.
16969
16970 2002-01-03  Graham Stott  <grahams@redhat.com>
16971
16972         * tree.h: Update copyright date.
16973         (IS_EXPR_CODE_CLASS): Add parenthesis.
16974         (TREE_SET_CODE): Add whitespace.
16975         (TREE_CHECK): Add parenthesis.
16976         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16977         (CST_OR_CONSTRUCTOR_CHECK):
16978         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16979         (TREE_SYMBOL_REFERENCED): Whitespace.
16980         (INT_CST_LT): Likewise.
16981         (INT_CST_LT_UNSIGNED): Likewise.
16982         (tree_real_cst): Unwrap comment.
16983         (tree_string): Likewise.
16984         (tree_complex): Likewise.
16985         (IDENTIFIER_POINTER): correct cast.
16986         (SAVE_EXPR_CONTEXT): Whitespace.
16987         (EXPR_WFL_FILENAME_NODE): Likewise.
16988         (EXPR_WFL_FILENAME): Remove parenthesis.
16989         (DECL_ORIGIN): Add parenthesis.
16990         (DECL_FROM_INLINE): Use NULL_TREE.
16991         (build_int_2): Whitespace.
16992         (build_type_variant): Add parenthesis.
16993
16994         * gcc/jcf-parse.c: Update copyright date.
16995         (yyparse): Constify resource_filename.
16996
16997 2002-01-03  Graham Stott  <grahams@redhat.com>
16998
16999         * rtl.h: Update copyright date.
17000         (RTL_CHECK1): Wrap long line.
17001         (RTL_CHECK2): Likewise.
17002         (RTL_CHECKC1): Wrap long line and whitespace.
17003         (RTL_CHECKC2): Likewise.
17004         (XWINT): Whitespace.
17005         (XINT): Likewise.
17006         (XSTR): Likewise.
17007         (XEXP): Likewise.
17008         (XVEC): Likewise.
17009         (XMODE): Likewise.
17010         (XBITMAP): Likewise.
17011         (XTREE): Likewise.
17012         (XBBDEF): Likewise.
17013         (XTMPL): Likewise.
17014         (X0WINT): Likewise.
17015         (X0INT):Likewise.
17016         (X0UINT): Likewise.
17017         (X0STR): Likewise.
17018         (X0EXP): Likewise.
17019         (X0VEC): Likewise.
17020         (X0MODE): Likewise.
17021         (X0BITMAP): Likewise.
17022         (X0TREE): Likewise.
17023         (X0BBDEF): Likewise.
17024         (X0ADVFLAGS): Likewise.
17025         (X0CSELIB): Likewise.
17026         (X0MEMATTR): Likewise.
17027         (XCWINT): Likewise.
17028         (XCINT): Likewise.
17029         (XCUINT): Likewise.
17030         (XCSTR): Likewise.
17031         (XCEXP): Likewise.
17032         (XCVEC): Likewise.
17033         (XCMODE): Likewise.
17034         (XCBITMAP): Likewise.
17035         (XCTREE): Likewise.
17036         (XCBBDEF): Likewise.
17037         (XCADVFLAGS): Likewise.
17038         (XCCSELIB): Likewise.
17039         (XC2EXP): Likewise.
17040         (INSN_UID): Likewise.
17041         (PREV_INSN): Likewise.
17042         (PATTERN): Likewise.
17043         (INSN_CODE): Likewise.
17044         (PUT_REG_NOTE_KIND): Likewise.
17045         (CODE_LABEL_NUMBER): Likewise.
17046         (NOTE_SOURCE_FILE): Likewise.
17047         (NOTE_BLOCK): Likewise.
17048         (NOTE_EH_HANDLER): Likewise.
17049         (NOTE_RANGE_INFO): Likewise.
17050         (NOTE_LIVE_INFO): Likewise.
17051         (NOTE_BASIC_BLOCK): Likewise.
17052         (NOTE_EXPECTED_VALUE): Likewise.
17053         (NOTE_LINE_NUMBER): Likewise.
17054         (LABEL_NAME): Likewise.
17055         (LABEL_NUSES): Likewise.
17056         (LABEL_ALTERNATE_NAME): Likewise.
17057         (ADDRESSOF_DECL): Likewise.
17058         (JUMP_LABEL): Likewise.
17059         (LABEL_NEXTREF): Likewise.
17060         (REGNO): Likewise.
17061         (ORIGINAL_REGNO: Likewise.
17062         (HARD_REGISTER_NUM_P): Add parenthesis.
17063         (SUBREG_REG): Whitespace.
17064         (SUBREG_BYTE): Likewise.
17065         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
17066         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
17067         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
17068         (ASM_OPERANDS_INPUT_VEC): Likewise.
17069         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
17070         (ASM_OPERANDS_INPUT): Likewise.
17071         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
17072         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
17073         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
17074         (ASM_OPERANDS_INPUT_MODE): Likewise.
17075         (ASM_OPERANDS_SOURCE_FILE): Likewise.
17076         (ASM_OPERANDS_SOURCE_LINE): Likewise.
17077         (MEM_SET_IN_STRUCT_P): Minor reformat.
17078         (TRAP_CONDITION): Whitespace.
17079         (TRAP_CODE): Likewise.
17080         (COND_EXEC_TEST): Likewise.
17081         (COND_EXEC_CODE): Likewise.
17082         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
17083         (PHI_NODE_P): Add parenthesis.
17084         (plus_constant): Whitespace and add parenthesis.
17085
17086 2002-01-03  Kazu Hirata  <kazu@hxi.com>
17087
17088         * config/avr/avr.c: Fix comment typos.
17089         * config/c4x/c4x.md: Likewise.
17090         * config/dsp16xx/dsp16xx.h: Likewise.
17091         * config/dsp16xx/dsp16xx.md: Likewise.
17092         * config/i386/i386.md: Likewise.
17093         * config/ia64/ia64.c: Likewise.
17094         * config/m32r/m32r.h: Likewise.
17095         * config/m68hc11/m68hc11.md: Likewise.
17096         * config/mmix/mmix.c: Likewise.
17097         * config/mn10200/mn10200.c: Likewise.
17098         * config/romp/romp.c: Likewise.
17099         * config/sh/sh.c: Likewise.
17100         * config/stormy16/stormy16.c: Likewise.
17101         * config/stormy16/stormy16.h: Likewise.
17102         * config/stormy16/stormy16.md: Likewise.
17103
17104 2002-01-03  Graham Stott  <grahams@redhat.com>
17105
17106         * loop.h: Update copyright date.
17107         (LOOP_MOVABLES): Fix typo.
17108         (LOOP_REGS): Likewise.
17109         (LOOP_IVS): Likewise.
17110
17111 2002-01-03  Graham Stott  <grahams@redhat.com>
17112
17113         * cppinit.c: Update copyright date.
17114         Don't include output.h
17115         * Makefile.in: Update copyright date.
17116         Update dependency.
17117
17118 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
17119
17120         PR c/5226
17121         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
17122         (-pthread) Add to RS/6000 options.
17123
17124 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17125
17126         * except.c: Fix comment typos.
17127         * loop.c: Likewise.
17128         * varasm.c: Likewise.
17129         * doc/tm.texi: Fix a typo.
17130
17131 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
17132
17133         * c-typeck.c (output_init_element): Allow initializing static storage
17134         duration objects with compound literals.
17135
17136 2002-01-02  Richard Henderson  <rth@redhat.com>
17137
17138         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
17139         after abusing it.
17140
17141 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
17142
17143         * gcc.c (default_compilers): Const-ify.
17144         * mips-tdump.c (stab_names): Likewise.
17145         * mips-tfile.c (map_coff_types, map_coff_storage,
17146         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
17147         pseudo_ops_t, pseudo_ops): Likewise.
17148         * protoize.c (default_include): Likewise
17149
17150         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
17151         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
17152         Add array size in declaration.
17153         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
17154         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
17155         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
17156         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
17157         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
17158         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
17159         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
17160         emtens, make_nan): Const-ify.
17161         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
17162         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
17163
17164 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
17165
17166         * config.gcc (ia64-*-*): Set extra_headers.
17167         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
17168         * config/alpha/t-osf: Remove.
17169         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
17170
17171 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
17172
17173         * config/rs6000/t-aix43: Revert previous change.
17174
17175 2002-01-02  Jason Merrill  <jason@redhat.com>
17176
17177         * c-decl.c (c_expand_body): Call outlining_inline_function when
17178         emitting an inline function out of line.
17179
17180 2002-01-02  Richard Henderson  <rth@redhat.com>
17181
17182         * dwarf2out.c (limbo_die_node): Add created_for member.
17183         (new_die): New argument created_for.  Update all callers.
17184         (mark_limbo_die_list): New.
17185         (dwarf2out_init): Register limbo_die_list as a root.
17186         (dwarf2out_finish): Force insert limbo dies into their function
17187         context.
17188
17189 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
17190
17191         PR c++/5089
17192         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
17193
17194 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17195
17196         * config/h8300/fixunssfsi.c: Update copyright.
17197         Fix comment typos.
17198         Fix formatting.
17199         * config/h8300/h8300.c: Update copyright.
17200         Eliminate warnings.
17201
17202 2002-01-02  Kazu Hirata  <kazu@hxi.com>
17203
17204         * config/romp/romp.c: Fix comment formatting.
17205         * config/romp/romp.h: Likewise.
17206         * config/romp/romp.md: Likewise.
17207         * config/s390/s390.c: Likewise.
17208         * config/stormy16/stormy16.c: Likewise.
17209         * config/stormy16/stormy16.h: Likewise.
17210
17211 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
17212
17213         * c-common.h (genrtl_expr_stmt_value): Declare.
17214         * c-semantics.c (genrtl_goto_stmt): Redirect to...
17215         (genrtl_goto_stmt_value): ... this new function.  Pass new
17216         argument down to expand_expr_stmt_value, taking
17217         TREE_ADDRESSABLE into account.
17218         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
17219         STMT_EXPR as addressable, i.e., one whose result we want.
17220         * expr.c (expand_expr): Don't save expression statement value
17221         of labeled_blocks or loop_exprs.
17222         * stmt.c (expand_expr_stmt): Redirect to...
17223         (expand_expr_stmt_value): ... this new function.  Use new
17224         argument to tell whether to save expression value.
17225         (expand_end_stmt_expr): Reset last_expr_type and
17226         last_expr_value if we don't have either.
17227         * tree-inline.c (declare_return_variable): Mark its use
17228         statement as addressable.
17229         * tree.h: Document new use of TREE_ADDRESSABLE.
17230         (expand_expr_stmt_value): Declare.
17231
17232 2002-01-01  Tom Rix  <trix@redhat.com>
17233
17234         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
17235         rs6000_emit_allocate_stack.
17236
17237 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
17238
17239         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
17240         ${srcdir}/ginclude/ to every entry in extra_headers.
17241         * configure: Regenerate.
17242         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
17243         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
17244         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
17245         * ginclude/proto.h: Rename to config/convex/proto.h.
17246
17247 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
17248
17249         * attribs.c (handle_vector_size_attribute): Use host_integerp
17250         and tree_int_cst; remove warnings.
17251         * caller-save.c (insert_restore): Add cast to get rid of warning.
17252         (insert_save): Likewise.
17253         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
17254         * regmove.c (find_matches): Add temporary var to kill a warning.
17255
17256 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
17257
17258         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
17259         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
17260         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
17261         (vms-dwarf2eh.o): Add Makefile rule.
17262         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
17263         * config/alpha/vms-dwarf2eh.asm: New file.
17264
17265         * gcc.c (delete_if_ordinary): Delete all versions.
17266
17267 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
17268
17269         * config/mmix/mmix.md: Update FIXME to not mention
17270         define_constants.
17271         (MMIX_rJ_REGNUM): New define_constants constant.
17272         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
17273         "*movdicc_real"): Adjust contraints formatting.
17274         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
17275         for branch prediction.
17276         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
17277         output template.
17278         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
17279         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
17280         number.  Delete related FIXMEs.
17281         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
17282         from number to MMIX_rJ_REGNUM.
17283         (TARGET_MASK_BRANCH_PREDICT): New.
17284         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
17285         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
17286         value.  Add -mbranch-predict and -mno-branch-predict.
17287         (TARGET_VERSION): Drop date.
17288         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
17289         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
17290         for finding out global symbols.
17291         (mmix_asm_output_labelref): Revert condition for global symbol.
17292         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
17293         (mmix_print_operand_punct_valid_p): A '+' is valid.
17294
17295 See ChangeLog.6 for earlier changes.