OSDN Git Service

14069a7f6b16227c55dfa3ee1b9cf3aa0c633ef8
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2002-05-29  Richard Henderson  <rth@redhat.com>
2
3         * config/i386/i386.c (ix86_compute_frame_layout): Do add bottom
4         alignment for alloca.
5
6 2002-05-29  Richard Henderson  <rth@redhat.com>
7
8         * config/i386/i386.c (output_pic_addr_const): Lowercase rip.
9         (print_operand_address): Only add rip for symbolic addresses
10         for which we do not have another relocation type.
11
12 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
13
14         * config/m68k/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
15         (EXTRA_SPECS): Add netbsd_cpp_spec.
16         (CPP_SPEC): Use %(netbsd_cpp_spec).
17         (CPP_PREDEFINES): Remove.
18         * config/m68k/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
19         (EXTRA_SPECS): Define.
20         (CPP_SPEC): Use %(netbsd_cpp_spec).
21         (CPP_PREDEFINES): Remove.
22
23 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
24
25         PR preprocessor/6844
26         * cppmacro.c (cpp_macro_definition): Reserve space for terminating
27         NUL.
28
29 2002-05-29  Eric Christopher  <echristo@redhat.com>
30
31         * config/mips/linux.h (SUBTARGET_CPP_SPEC): Add support for
32         mips5/mips32/mips64 and _MIPS_ISA_MIPSXX.
33
34 2002-05-29  Nick Clifton  <nickc@cambridge.redhat.com>
35
36         * config/fr30/fr30.md: Remove previous restriction on splits.
37         Enforce conformance through gen_lowpart and cont_int_operand.
38         * config/fr30/fr30.h (BSS_SECTION_ASM_OP): Use ".section .bss"
39         as the assembler does not support ".bss".
40
41 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
42
43         * config/i386/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Define.
44         (CPP_PREDEFINES): Remove.
45         (SUBTARGET_EXTRA_SPECS): Define.
46         (CPP_SPEC): Use %(netbsd_cpp_spec).
47         * config/i386/netbsd.h (TARGET_OS_CPP_BUILTINS): Define.
48         (CPP_PREDEFINES): Remove.
49         (SUBTARGET_EXTRA_SPECS): Define.
50         (CPP_SPEC): Use %(netbsd_cpp_spec).
51         * config/i386/netbsd64.h (TARGET_OS_CPP_BUILTINS): Define.
52         (CPP_PREDEFINES, CPP_LP64_SPEC, CPP_SUBTARGET_SPEC): Remove.
53         (SUBTARGET_EXTRA_SPECS): Remove cpp_lp64 and cpp_subtarget.
54         Add netbsd_cpp_spec.
55         (CPP_SPEC): Remove %(cpp_subtarget), add %(netbsd_cpp_spec).
56
57 2002-05-29  Neil Booth  <neil@daikokuya.demon.co.uk>
58             Zack Weinberg <zack@codesourcery.com>
59
60         * cppexp.c (cpp_num): Move to cpplib.h.
61         (CPP_ERROR): Remove.
62         (interpret_float_suffix, interpret_int_suffix): New.
63         (struct suffix, vsuf_1, vsuf_2, vsuf_3): Remove.
64         (cpp_classify_number, cpp_interpret_integer): New.
65         (interpret_number): Remove.
66         (eval_token): Update to use new routines.
67         * cpphash.h (cpp_num_part): Move to cpplib.h.
68         * cppinit.c (cpp_post_options): Set warn_long_long.
69         * cpplib.h (struct cpp_options): Add warn_long_long.
70         (cpp_num, cpp_num_part, CPP_N_CATEGORY, CPP_N_INVALID,
71         CPP_N_INTEGER, CPP_N_FLOATING, CPP_N_WIDTH, CPP_N_SMALL,
72         CPP_N_MEDIUM, CPP_N_LARGE, CPP_N_RADIX, CPP_N_DEC, CPP_N_HEX,
73         CPP_N_OCTAL, CPP_N_UNSIGNED, CPP_N_IMAGINARY, cpp_classify_number,
74         cpp_interpret_integer): New.
75
76 2002-05-29  Joel Sherrill <joel@OARcorp.com>
77
78         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Use -m403 and -m405.
79
80 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
81
82         * config/alpha/netbsd.h (TARGET_OS_CPP_BUILTINS): Use
83         NETBSD_OS_CPP_BUILTINS_ELF and NETBSD_OS_CPP_BUILTINS_LP64.
84         (CPP_SUBTARGET_SPEC): Define.
85         (SUBTARGET_EXTRA_SPECS): Define.
86         (CPP_SPEC): Remove.
87
88 2002-05-29  Chris Lattner  <sabre@nondot.org>
89
90         * ssa.c (rename_insn_1): Rename uses of undefined registers to
91         prevent confusion if/when the register is defined.
92
93 2002-05-29  Hans-Peter Nilsson  <hp@axis.com>
94
95         PR target/6838
96         * config/cris/cris.md: Fix typos and thinkos in comments.
97         ("*mov_sideqi_biap_mem"): Remove '*' in constraint for operand 4,
98         second alternative.
99         ("*mov_sidehi_biap_mem", "*mov_sidesi_biap_mem"): Ditto.
100         ("*mov_sideqi_mem"): Similar, but for operand 3.
101         ("*mov_sidehi_mem", "*mov_sidesi_mem"): Ditto.
102         (splitter for mov_sideqi_mem, mov_sidehi_mem, mov_sidesi_mem):
103         Remove spurious mode specifier on operand 2.
104
105 2002-05-29  Kazu Hirata  <kazu@cs.umass.edu>
106
107         * config/h8300/h8300-protos.h: Remove the prototype for
108         o_operand.
109         Add prototypes for single_one_operand and single_zero_operand.
110         * config/h8300/h8300.c (o_operand): Remove.
111         (single_one_operand): New.
112         (single_zero_operand): Likewise.
113         (print_operand): For 'V' operand, and the operand with 0xff.
114         For 'V' and 'W' operands, do not and the bit position with 7.
115         * config/h8300/h8300.md (various anonymous patterns): Replace
116         use of exact_log2 with single_one_operand/single_zero_operand.
117
118 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
119
120         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
121
122 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
123
124         * config/s390/s390.c (legitimate_pic_operand_p): Do not
125         accept symbolic LARL operands.
126         (s390_emit_epilogue): Do not set FRAME_RELATED_P on
127         epilogue insns.
128
129 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
130
131         * config/s390/s390.md (cmpstr_64/31): Mark whole
132         input registers as used.
133
134 2002-05-28  Richard Henderson  <rth@redhat.com>
135
136         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
137         not current_function_uses_pic_offset_table and
138         current_function_uses_const_pool; examine current_function_profile.
139         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
140         input to blockage if needed.
141         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
142         (legitimize_pic_address): Likewise.  Set regs_ever_live for
143         pic_offset_table_rtx when invoked during reload.
144         * config/i386/i386.h (FINALIZE_PIC): Remove.
145         * config/i386/i386.md (tablejump): Reformat.  Do not set
146         current_function_uses_pic_offset_table.
147         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
148         (blockage): Accept anything as operand 0.
149
150 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
151
152         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
153         common CPP built-ins for all NetBSD a.out targets.
154         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
155         common CPP built-ins for all NetBSD ELF targets.
156         * config/netbsd.h: Add missing notice.
157         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
158         for all NetBSD targets.
159         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
160         for all NetBSD targets using an LP64 code model.
161         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
162         NetBSD targets.
163
164 2002-05-28  Richard Henderson  <rth@redhat.com>
165
166         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
167         update if UPDATE_LIFE_LOCAL.
168
169 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
170
171         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
172
173 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
174                           Jason R. Thorpe <thorpej@wasabisystems.com>
175
176         config/sh reorganization to factor out endianness and coff:
177
178         * config/sh/little.h: New file.
179         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
180         defined, define to 0 to select big-endian.
181         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
182         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
183         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
184         * config/sh/t-be: New file.
185         * config/sh/t-le: New file.
186
187         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
188         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
189         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
190         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
191         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
192         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
193         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
194         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
195         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
196         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
197         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
198         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
199         (LINK_SPEC): Define to SH_LINK_SPEC.
200         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
201         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
202         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
203         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
204         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
205         * config/sh/coff.h: New file.
206         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
207         (TARGET_OBJFMT_CPP_BUILTINS): Define.
208         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
209         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
210         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
211         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
212         (PTRDIFF_TYPE): Likewise.
213         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
214         (CPP_PREDEFINES): Don't define.
215         (TARGET_OBJFMT_CPP_BUILTINS): Define.
216         (LINK_SPEC): Define to SH_LINK_SPEC.
217         (LINK_EMUL_PREFIX): Redefine.
218         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
219         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
220         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
221         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
222         (TARGET_OS_CPP_BUILTINS): Define.
223         (TARGET_DEFAULT): Redefine.
224         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
225         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
226         (LINK_SPEC): Don't redefine.
227         (LINK_DEFAULT_CPU_EMUL): Redefine.
228         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
229         * sh.c (sh_asm_named_section): Don't declare / define.
230         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
231         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
232         (sh64-*-elf* tm_file): Likewise.
233         (sh-*-rtemself* tm_file): Likewise.
234         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
235         (sh-*-linux* tmake_file): Add sh/t-le.
236         (sh-*-rtems* tm_file): Add sh/coff.h
237         (sh-*-* tm_file): Likewise.
238
239 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
240
241         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
242         CONSTANT_POOL_ADDRESS_P.
243
244         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
245
246 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
247             Jeff Law <law@redhat.com>
248
249         * optabs.c (expand_binop): Fix nwords sign warnings.
250         generate pseudo for add_optab.
251
252         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
253         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
254
255 2002-05-28      Marc Espie <espie@openbsd.org>
256
257         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove,
258         inherited from gas.h.
259         (ASM_QUAD):  Undef.  OpenBSD does not support it.
260
261 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
262
263         * doc/install.texi (binaries): Change mingw binaries
264         link to www.mingw.org.
265
266 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
267
268         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
269
270 2002-05-28  Richard Henderson  <rth@redhat.com>
271
272         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
273         bottom alignment for leaf functions.
274
275 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
276
277         * config/pa/milli32.S, config/pa/lib1funcs.asm,
278         config/sparc/sol2-g1.asm: Delete unused files.
279
280 2002-05-28  Richard Henderson  <rth@redhat.com>
281
282         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
283
284         * flow.c (calculate_global_regs_live): Rename call_used to
285         invalidated_by_call.  Initialize from regs_invalidated_by_call
286         instead of call_used_regs.
287
288         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
289         DECL_EXTERNAL.
290
291 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
292
293         * tree.h: Forward-declare struct realvaluetype.
294         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
295         contain it.
296         (TREE_REAL_CST_PTR): New accessor.
297         (TREE_REAL_CST): Update.
298         * real.h: Include machmode.h.
299         (realvaluetype): Make it struct realvaluetype, not a typedef.
300         (build_real): Prototype here.
301
302         * tree.c: Include real.h.
303         (build_real): Allocate the REAL_VALUE_TYPE as a separate
304         object in GC memory, set TREE_REAL_CST_PTR to point to it.
305         (build_real_from_int_cst): Use build_real.
306         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
307         REAL_CST.
308
309         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
310         fold-const.c, print-tree.c, real.c: Include real.h.
311         * Makefile.in: Update dependency lists.
312
313 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
314
315         * basic-block.h (last_basic_block): Declare.
316         (expunge_block_nocompact): Declaration removed.
317         (compact_blocks): Declare.
318         * cfg.c (last_basic_block): New variable.
319         (expunge_block_nocompact): Removed.
320         (expunge_block): Do not compact basic blocks.
321         (compact_blocks): New.
322         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
323         longer change.
324         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
325         last_basic_block.
326         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
327         real positions of blocks.
328         (delete_unreachable_blocks): Simplified -- quadratic behavior now
329         cannot occur.
330         (cleanup_cfg): Compact blocks.
331         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
332         basic_block_info varray.
333         (flow_delete_block): Comment update.
334         (back_edge_of_syntactic_loop_p): Modify position check code.
335         (verify_flow_info): Update checking.
336         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
337         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
338         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
339         indices no longer change.
340         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
341         last_basic_block.
342         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
343         * profile.c (branch_prob): Compact blocks.
344         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
345         last_basic_block.
346
347 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
348
349         * config/h8300/h8300.md (two anonymous patterns): New.
350
351 2002-05-28  David S. Miller  <davem@redhat.com>
352
353         * config/sparc/sparc.md (cpu): Tidy.
354         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
355         'trap'.
356         (in_call_delay): Delete reference to 'return' type.
357         (eligible_for_return_delay, in_return_delay, define_delay
358         referencing those): Delete.
359         (rest of file): Use new type attributes as appropriate.
360         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
361         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
362         * config/sparc/ultra1_2.md (us1_single): New reservation.
363         (us1_ialuX): Likewise.
364         * config/sparc/ultra3.md (us3_single): Likewise.
365         (us3_ialuX): Likewise.
366         (us3_imul, us3_idiv): Tweak.
367
368 2002-05-28  Richard Henderson  <rth@redhat.com>
369
370         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
371         STRING_CST.
372
373 2002-05-28  Richard Henderson  <rth@redhat.com>
374
375         * config.gcc: Obsolete mn10200.
376
377 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
378
379         * cppexp.c (interpret_number): Optimize for single-digit
380         and less-than-half-precision cases.
381         (num_trim, num_positive, num_div_op): Cast constants.
382
383 2002-05-27  Bo Thorsen  <bo@suse.de>
384
385         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
386         3.1 branch. The file was made by Jakub Jelinek.
387         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
388         support so multilib doesn't break. And don't define this at all
389         when -Dinhibit_libc is used.
390         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
391         * config/i386/t-linux64: Implement full multilib support. Patch
392         originally done by Andreas Jaeger and Jakub Jelinek.
393
394 2002-05-27  Roger Sayle  <roger@eyesopen.com>
395
396         * c-common.c: Add support for __attribute__((nothrow)) to specify
397         that a function cannot throw an exception (using TREE_NOTHROW).
398         (handle_nothrow_attribute): New function to process this attribute.
399
400         * doc/extend.texi: Document the new nothrow function attribute.
401
402 2002-05-27  H.J. Lu  (hjl@gnu.org)
403
404         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
405         (num_positive): Likewise.
406         (num_div_op): Likewise.
407
408 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
409
410         * c-common.c (c_common_init): Always use intmax_t.
411
412 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
413
414         * c-common.c (c_common_init): Use intmax_t for now.
415
416 2002-05-24  Andrew Haley  <aph@redhat.com>
417
418         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
419         if T is a boolean type.
420
421 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
422
423         * basic-block.h (last_basic_block): Defined as synonym for
424         n_basic_blocks.
425         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
426         flow_depth_first_order_compute, flow_preorder_transversal_compute,
427         flow_dfs_compute_reverse_init): Replaced relevant occurences of
428         n_basic_blocks with last_basic_block.
429         * cfgbuild.c (make_edges): Likewise.
430         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
431         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
432         * combine.c (combine_instructions): Likewise.
433         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
434         iterative_dataflow_bitmap): Likewise.
435         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
436         calc_idoms, idoms_to_doms): Likewise.
437         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
438         Likewise.
439         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
440         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
441         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
442         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
443         delete_null_pointer_checks, compute_code_hoist_vbeinout,
444         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
445         compute_store_table, build_store_vectors): Likewise.
446         * haifa-sched.c (sched_init): Likewise.
447         * ifcvt.c (if_convert): Likewise.
448         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
449         pre_edge_lcm, compute_available, compute_nearerout,
450         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
451         Likewise.
452         * predict.c (estimate_probability, process_note_prediction,
453         note_prediction_to_br_prob): Likewise.
454         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
455         * recog.c (split_all_insns, peephole2_optimize): Likewise.
456         * regrename.c (copyprop_hardreg_forward): Likewise.
457         * resource.c (init_resource_info): Likewise.
458         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
459         init_regions, schedule_insns): Likewise.
460         * ssa-ccp.c (ssa_const_prop): Likewise.
461         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
462         * ssa.c (compute_dominance_frontiers,
463         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
464
465         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
466         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
467         sizes consistently.
468
469 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
470
471         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
472         new.
473         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
474         hoist_insn_after, hoist_insn_to_edge): New.
475
476 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
477
478         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
479         (PROP_FINAL): Include.
480         * flow.c (life_analysis, update_life_info,
481         init_propagate_block_info, mark_set_1, mark_used_rgs):
482         Support SCAN_DEAD_STORE.
483
484 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
485
486         * c-common.c (c_common_init): Set CPP arithmetic precision.
487         * cppexp.c (cpp_num_part): Move typedef ...
488         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
489         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
490         (sanity_checks): Update.
491
492 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
493
494         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
495         (mkheaders): New rule.
496         (install-mkheaders): New rule.
497         * configure.in (all_outputs): Add mkheaders.
498         * configure: Regenerate.
499         * mkheaders.in: New file.
500
501 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
502
503         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
504
505 2002-05-26  Andreas Jaeger  <aj@suse.de>
506
507         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
508
509 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
510
511         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
512         right_shift): Remove.
513         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
514         HIGH_PART): New.
515         (struct op): Use cpp_num.
516         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
517         num_part_mul, num_unary_op, num_binary_op, num_negate,
518         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
519         num_div_op, num_lshift, num_rshift, append_digit): New.
520         (interpret_number, parse_defined, eval_token, reduce): Update
521         for two-integer arithmetic.
522         (binary_handler): New typedef.
523         (optab): Update.
524         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
525         (_cpp_parse_expr, reduce): Update to handle two-integers.
526         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
527
528 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
529
530         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
531         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
532         branch insn into account, do not assume 1.
533         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
534         over single word insn.  Handle upper half of I/O space too.
535         * config/avr/avr.md (*sbrx_branch): Use it.
536         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
537         (*sbix_branch, *sbix_branch_bit7): Likewise.
538         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
539         Use RTL peepholes to optimize register operand sign tests.
540
541 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
542
543         * config/avr/avr.c (avr_asm_only_p): New variable.
544         (avr_override_options): Set it here if AVR1.
545         (asm_file_start): Test it here, report an error if set.
546
547 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
548
549         * alias.c: Fix formatting.
550         * attribs.c: Likewise.
551         * bb-reorder.c: Likewise.
552         * bitmap.c: Likewise.
553         * bitmap.h: Likewise.
554         * builtins.c: Likewise.
555
556 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
557
558         * reload.c (find_valid_class): Accept new argument DEST,
559         choose class accordingly.
560         (push_reload): Update callers.
561
562 2002-05-26  Andreas Jaeger  <aj@suse.de>
563
564         * combine.c (combine_instructions): Do not indent #if for
565         traditional C.
566
567 2002-05-25  Richard Henderson  <rth@redhat.com>
568
569         * c-pragma.c (apply_pragma_weak): Convert value identifier to
570         string for decl_attributes.
571         (handle_pragma_weak): Call assemble_alias if we're modifying
572         an existing decl.
573
574 2002-05-25  Richard Henderson  <rth@redhat.com>
575
576         PR target/6788
577         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
578         using rtl instead of fprintf.
579         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
580         * config/sparc/sparc-protos.h: Update.
581
582 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
583
584         * Makefile.in (C_COMMON_H): Fix.
585         Update other targets.
586         * c-common.c: Don't include c-lex.h.
587         (builtin_define_with_value): Make static and prototype.
588         (builtin_define_std): Move from c-lex.h.
589         * c-common.h (init_c_lex): Move from c-lex.h.
590         * c-decl.c: Don't include c-lex.h.
591         (make_pointer_declarator): Move from c-parse.in.
592         * c-lex.c: Don't include c-lex.h.
593         * c-lex.h: Remove.
594         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
595         (make_pointer_declarator): Move to c-decl.c.
596         * c-pragma.c: Don't include c-lex.h.
597         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
598         * c-tree.h (make_pointer_declarator): New.
599 doc:
600         * passes.texi, tm.texi: Update.
601 objc:
602         * Make-lang.in: Update and correct.
603         * objc-act.c: Don't include c-lex.h or cpplib.h.
604 treelang:
605         * treetree.c: Don't include c-lex.h.
606 config:
607         * darwin-c.c: Don't include c-lex.h.
608         * c4x/c4x-c.c: Don't include c-lex.h.
609         * c4x/t-c4x: Update.
610         * i370/i370-c.c: Don't include c-lex.h.
611         * i370/t-i370: Update.
612         * i960/i960-c.c: Don't include c-lex.h.
613         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
614         * i960/t-960bare: Update.
615         * i960/t-vxworks: Update.
616         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
617         * rs6000/t-darwin: Update.
618         * rs6000/t-rs6000-c-rule: Update.
619         * v850/v850-c.c: Don't include c-lex.h.
620         * v850/v850.c: Don't include c-lex.h or cpplib.h.
621
622
623 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
624
625         * tree.def: Fix typos.
626         * doc/install.texi: Likewise.
627
628 2002-05-25  Richard Henderson  <rth@redhat.com>
629
630         * configure.in (HAVE_AS_TLS): Add ia64 test.
631         * configure: Rebuild.
632         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
633         (override_options): Set it.
634         (TARGET_HAVE_TLS): New.
635         (sdata_symbolic_operand): Look for 's'.
636         (tls_symbolic_operand): New.
637         (ia64_expand_load_address): Abort for tls symbols.
638         (gen_tls_get_addr): New.
639         (gen_thread_pointer): New.
640         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
641         (rtx_needs_barrier): Add new unspecs.
642         (ia64_encode_section_info): Handle tls symbols.
643         (ia64_strip_name_encoding): Strip two encoding chars.
644         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
645         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
646         (TARGET_OPTIONS): Add tls-size.
647         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
648         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
649         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
650         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
651         (movsf, movdf): Likewise.
652         (movdi_symbolic): Use match_scratch.  Don't split if we won't
653         have a scratch availiable.
654         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
655         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
656         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
657         * config/ia64/ia64-protos.h: Update.
658         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
659         sdata_symbolic_operand.
660         (ASM_OUTPUT_LABELREF): Strip two characters.
661
662 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
663
664         * combine.c (simplify_set): Remove an unnecessary subreg.
665
666 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
667
668         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
669
670         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
671
672 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
673
674         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
675
676 2002-05-25  Roger Sayle  <roger@eyesopen.com>
677
678         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
679         (cond (compare x y) 0) into the equivalent (cond x y).
680
681 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
682
683         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
684
685 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
686
687         * config.gcc: Remove all stanzas for previously obsoleted
688         systems.  Where necessary, add explicit error stanzas to
689         prevent removed systems from being misidentified as something
690         else.  Begin a fresh obsoletions list, with the systems that
691         were reprieved last round.
692         * doc/install.texi: Remove all mention of dead targets.
693         * fixinc/mkfixinc.sh: Likewise.
694
695         * config/arm/arm.h: Bit 31 of target_flags is no longer
696         reserved.
697
698         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
699         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
700         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
701         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
702         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
703         config/alpha/osf12.h, config/alpha/osf2or3.h,
704         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
705         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
706         config/clipper/clipper-protos.h, config/clipper/clipper.c,
707         config/clipper/clipper.h, config/clipper/clipper.md,
708         config/clipper/clix.h, config/convex/convex-protos.h,
709         config/convex/convex.c, config/convex/convex.h,
710         config/convex/convex.md, config/convex/fixinc.convex,
711         config/convex/proto.h, config/elxsi/elxsi-protos.h,
712         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
713         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
714         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
715         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
716         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
717         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
718         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
719         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
720         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
721         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
722         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
723         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
724         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
725         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
726         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
727         config/m68k/altos3068.h, config/m68k/apollo68.h,
728         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
729         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
730         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
731         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
732         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
733         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
734         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
735         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
736         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
737         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
738         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
739         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
740         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
741         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
742         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
743         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
744         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
745         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
746         config/mips/dec-osf1.h, config/mips/elflorion.h,
747         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
748         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
749         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
750         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
751         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
752         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
753         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
754         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
755         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
756         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
757         config/ns32k/sequent.h, config/ns32k/tek6000.h,
758         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
759         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
760         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
761         config/sparc/rtems.h, config/we32k/we32k-protos.h,
762         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
763         Delete file.
764
765 2002-05-24  Richard Henderson  <rth@redhat.com>
766
767         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
768         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
769         * config/i386/i386.c (tls_model_chars): Add leading space.
770         (tls_symbolic_operand): Don't bias by 1.
771         (legitimize_address): Don't unbias by 1.
772
773 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
774
775         * lcm.c (optimize_mode_switching): Change bb used as indices
776         to bb->index.
777
778 2002-05-24  Richard Henderson  <rth@redhat.com>
779
780         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
781         of update_life_info_in_dirty_blocks.
782
783 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
784
785         PR other/6782
786         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
787
788 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
789
790         PR preprocessor/6780
791         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
792
793 2002-05-24  Jim Blandy  <jimb@redhat.com>
794
795         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
796         entry with a type code of zero, marking the end of the compilation
797         unit's macro info.
798
799 2002-05-24  Richard Henderson  <rth@redhat.com>
800
801         * varasm.c (asm_output_bss): Always output one byte.
802         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
803
804 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
805
806         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
807         namespace.
808
809 2002-05-24  Andreas Jaeger  <aj@suse.de>
810
811         * ggc-page.c (alloc_page): Cast variables of type size_t to
812         unsigned long, adjust printf format string.
813         (ggc_alloc): Likewise.
814         (ggc_print_statistics): Likewise.
815         (ggc_print_statistics): Correct printf format string for SCALE to
816         use unsigned long.
817
818 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
819
820         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
821
822 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
823             Zack Weinberg     <zack@codesourcery.com>
824
825         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
826         quoted strings.
827         * dwarf2out.c (lookup_filename): Properly quote filename in .file
828         directive in assembly file.
829         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
830         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
831         * config/pj/pj.h (ASM_FILE_START): Likewise.
832         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
833         * config/avr/avr.c (asm_file_end): Likewise.
834         * toplev.c (output_quoted_string): Handle possibly signed plain
835         char.
836         * toplev.h (output_clean_symbol_name): Declare
837         * toplev.c (output_clean_symbol_name): Define.
838         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
839         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
840
841 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
842
843         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
844
845 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
846
847         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
848         of size of unsigned.
849
850 2002-05-23  Richard Henderson  <rth@redhat.com>
851
852         * configure.in (HAVE_AS_TLS): New test.
853         * config.in, configure: Rebuild.
854         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
855         (ix86_tls_dialect_string, ix86_tls_dialect): New.
856         (override_options): Set it.
857         (tls_model_chars, tls_symbolic_operand): New.
858         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
859         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
860         (local_exec_symbolic_operand): New.
861         (get_pic_label_name): Merge into output_set_got.
862         (ix86_asm_file_end): Emit pic_label_name if defined.
863         (legitimate_constant_p, constant_address_p): New.
864         (legitimate_pic_operand_p): New.
865         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
866         (legitimate_address_p): Likewise.
867         (ix86_encode_section_info): Rename from i386_; handle tls decls.
868         (ix86_strip_name_encoding): New.
869         (get_thread_pointer): New.
870         (legitimize_address): Handle tls symbols.
871         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
872         Remove UNSPEC_PLT.
873         (struct machine_function): Add some_ld_name.
874         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
875         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
876         (output_addr_const_extra): New.
877         (maybe_get_pool_constant): New.
878         (ix86_split_to_parts): Use it.
879         (ix86_expand_move): Handle tls symbols.
880         (ix86_tls_get_addr): New.
881         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
882         (TARGET_OPTIONS): Add tls-dialect.
883         (CONSTANT_ADDRESS_P): Use new out-of-line function.
884         (LEGITIMATE_CONSTANT_P): Likewise.
885         (LEGITIMATE_PIC_OPERAND_P): Likewise.
886         (TARGET_STRIP_NAME_ENCODING): New.
887         (ASM_OUTPUT_LABELREF): New.
888         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
889         (OUTPUT_ADDR_CONST_EXTRA): New.
890         (PREDICATE_CODES): Update.
891         (ix86_tls_dialect, ix86_tls_dialect_string): New.
892         * config/i386/i386.md: Regroup and renumber unspec constants.
893         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
894         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
895         (tls_global_dynamic, tls_local_dynamic_base): New.
896         (tls_local_dynamic_once): New.
897         * config/i386/i386-protos.h: Update.
898
899 2002-05-23  Richard Henderson  <rth@redhat.com>
900
901         * genemit.c (gen_insn): Print file:lineno comment before function.
902         (main): likewise.
903         * gensupport.c (struct queue_elem): Add filename member.
904         (queue_pattern): Initialize it; update all callers.
905         (process_include): Don't free filename.
906         (read_md_rtx): Set read_rtx_filename.
907
908 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
909
910         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
911
912 2002-05-23  Richard Henderson  <rth@redhat.com>
913
914         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
915
916 2002-05-23  Richard Henderson  <rth@redhat.com>
917
918         * doc/extend.texi (C++98 Thread-Local Edits): Update with
919         commentary from Mark.
920
921 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
922
923         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
924         Use FOR_EACH_BB macros to iterate over basic block chain.
925         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
926         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
927         Likewise.
928         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
929         find_unreachable_blocks, create_edge_list, verify_edge_list,
930         remove_fake_edges, add_noreturn_fake_exit_edges,
931         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
932         Likewise.
933         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
934         find_sub_basic_blocks): Likewise.
935         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
936         Likewise.
937         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
938         Likewise.
939         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
940         Likewise.
941         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
942         commit_edge_insertions, commit_edge_insertions_watch_calls,
943         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
944         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
945         * conflict.c (conflict_graph_compute): Likewise.
946         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
947         df_modified_p, df_refs_unlink, df_dump): Likewise.
948         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
949         * final.c (compute_alignments): Likewise.
950         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
951         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
952         count_or_remove_death_notes): Likewise.
953         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
954         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
955         classic_gcse, compute_transp, cprop, compute_pre_data,
956         compute_transpout, invalidate_nonnull_info,
957         delete_null_pointer_checks_1, delete_null_pointer_checks,
958         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
959         compute_store_table, build_store_vectors, store_motion): Likewise.
960         * global.c (global_conflicts, mark_elimination): Likewise.
961         * graph.c (print_rtl_graph_with_bb): Likewise.
962         * haifa-sched.c (sched_init): Likewise.
963         * ifcvt.c (if_convert): Likewise.
964         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
965         compute_available, compute_nearerout, compute_rev_insert_delete,
966         optimize_mode_switching): Likewise.
967         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
968         * predict.c (estimate_probability, note_prediction_to_br_prob,
969         propagate_freq, counts_to_freqs, expensive_function_p,
970         estimate_bb_frequencies): Likewise.
971         * profile.c (instrument_edges, get_exec_counts,
972         compute_branch_probabilities, compute_checksum, branch_prob,
973         find_spanning_tree): Likewise.
974         * recog.c (split_all_insns, peephole2_optimize): Likewise.
975         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
976         Likewise.
977         * regclass.c (scan_one_insn, regclass): Likewise.
978         * regmove.c (mark_flags_life_zones, regmove_optimize,
979         record_stack_memrefs): Likewise.
980         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
981         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
982         * resource.c (find_basic_block): Likewise.
983         * sched-ebb.c (schedule_ebbs): Likewise.
984         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
985         find_single_block_region, find_rgns, schedule_insns)
986         * sibcall.c (optimize_sibling_and_tail_recursive_call)
987         * ssa-ccp.c (optimize_unexecutable_edges,
988         ssa_ccp_df_delete_unreachable_insns): Likewise.
989         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
990         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
991         rename_block, convert_to_ssa, compute_conservative_reg_partition,
992         compute_coalesced_reg_partition, rename_equivalent_regs,
993         convert_from_ssa): Likewise.
994         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
995         process_for_unwind_directive): Likewise.
996
997         * df.c (FOR_ALL_BBS): Removed.
998         * gcse.c (struct null_pointer_info): Type of current_block field
999         changed.
1000         (struct reg_avail_info): Type of last_bb field changed.
1001         * config/ia64/ia64.c (block_num): Removed.
1002         (need_copy_state): Type changed.
1003         (last_block): New.
1004
1005 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1006
1007         * cppinit.c (mark_named_operators): Split out from init_builtins.
1008         (cpp_finish_options): Call it from here instead.
1009
1010 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1011
1012         * builtin-attrs.def: Update copyright years.
1013         (ATTR_NONNULL): New attribute identifier.
1014         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
1015         attribute tree lists.
1016         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
1017         format operand.
1018         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
1019         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
1020         attribute lists.  Chain the appropriate nonnull attribute.
1021         * c-format.c (check_format_arg): Remove null format string
1022         warning.
1023         * testsuite/gcc.dg/format/null-1.c: New test.
1024
1025 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1026
1027         * Makefile.in (ADAC): Define.
1028         (SYSLIBS): Define.
1029         (.SUFFIXES): Move before language makefile fragments.
1030         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
1031
1032 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
1033
1034         * varasm.c (make_decl_rtl): Don't allow weak variables to be
1035         placed in common.
1036
1037 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
1038
1039         * cfg.c (dump_flow_info): Print results of
1040         maybe_hot/probably_never_executed predicates.
1041         * toplev.c (open_dump_file): Print function frequency.
1042
1043 2002-05-23  David S. Miller  <davem@redhat.com>
1044
1045         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
1046         regsets.
1047
1048 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
1049
1050         * c-common.c (warn_nonnull): Declare.
1051         (c_common_attribute_table): Add "nonnull" attribute.
1052         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
1053         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
1054         check_function_arguments_recurse): New functions.
1055         * c-common.h (warn_nonnull): Declare extern.
1056         (check_function_arguments, check_function_arguments_recurse): New
1057         prototypes.
1058         * c-decl.c (c_decode_option): Add -Wnonnull option.
1059         * c-format.c (set_Wformat): Set warn_nonnull if enabling
1060         format checking.
1061         (format_check_context): New structure.
1062         (check_format_info_recurse): Remove recursion and rename to...
1063         (check_format_arg): ...this.  Update comment.
1064         (check_format_info): Use check_function_arguments_recurse.
1065         * c-typeck.c (build_function_call): Call check_function_arguments
1066         instead of check_function_format.
1067         * doc/extend.texi: Document "nonnull" attribute.
1068         * doc/invoke.texi: Docuemnt -Wnonnull option.
1069         * testsuite/gcc.dg/nonnull-1.c: New test.
1070         * testsuite/gcc.dg/nonnull-2.c: New test.
1071
1072 2002-05-23  David S. Miller  <davem@redhat.com>
1073
1074         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
1075         * cfgcleanup.c (cleanup_cfg): If it is set do not
1076         attempt to delete trivially dead insns.
1077         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
1078         * toplev.c (rest_of_compilation): Document non-trivial aspect
1079         the RTL before optimize_save_area_alloca is run.
1080
1081 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1082
1083         * c-lex.c (indent_level): Remove.
1084         (cb_file_change, c_lex): Remove indent level handling.
1085         * c-lex.h (indent_level): Remove.
1086         * input.h (struct file_stack): Remove indent_level.
1087         * toplev.c (push_srcloc): Remove indent_level handling.
1088
1089 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1090
1091         PR target/6753
1092         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
1093         of x in constraints for clarity.
1094         (sse_mov?fcc split): abort if op2 == op3.
1095         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
1096         sse_movsfcc_const0_4): Add earlyclobber.
1097         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
1098         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
1099         Use Y instead of x in constraints.
1100
1101 2002-05-23  Richard Henderson  <rth@redhat.com>
1102
1103         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
1104         (C++98 Thread-Local Edits): New subsection.
1105
1106         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
1107         (ix86_arch): Set type to enum processor_type.
1108
1109         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
1110         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
1111
1112 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
1113
1114         * configure.in: Fix as version test for binutils 2.12.1 releases
1115         (without dates).
1116         * configure: Rebuilt.
1117
1118 2002-05-23  Richard Henderson  <rth@redhat.com>
1119
1120         * config/i386/i386.c (get_pic_label_name): New.
1121         (load_pic_register): Remove.
1122         (output_set_got): New.
1123         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1124         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1125         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1126         (prologue_set_got, prologue_get_pc): Remove.
1127         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1128         (builtin_setjmp_receiver): Use gen_set_got.
1129         * config/i386/i386-protos.h: Update.
1130
1131 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1132
1133         * gcse.c (hash_expr): Do not use alias set for hashing.
1134
1135 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1136
1137         * dbxout.c (dbxout_class_name_qualifiers): New function.
1138         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1139
1140 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1141
1142         * cpperror.c (_cpp_begin_message): No special casing
1143         of CPP_FATAL_LIMIT.
1144         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1145         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1146         * cpplib.c (do_include_common): Use DL_ERROR.
1147         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1148         (DL_ICE): Renumber.
1149         * fix-header.c (read_scan_file): Update.
1150
1151 2002-05-22  Richard Henderson  <rth@redhat.com>
1152
1153         * config/i386/i386.c (ix86_expand_call): New function, extracted
1154         from md call patterns.  Add pic_offset_table_rtx to
1155         CALL_INSN_FUNCTION_USAGE when needed.
1156         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1157         (call_value_pop, call_value, untyped_call): Likewise.
1158         (call_exp, call_value_exp): Remove.
1159         * config/i386/i386-protos.h: Update.
1160
1161 2002-05-22  Richard Henderson  <rth@redhat.com>
1162
1163         * varasm.c (default_section_type_flags): Check for VAR_DECL
1164         before using DECL_THREAD_LOCAL.
1165
1166 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1167
1168         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1169         (STARTFILE_SPEC): Delete PE crt0.o.
1170         * config/rs6000/aix51.h: Same.
1171         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1172         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1173         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1174         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1175         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1176
1177 2002-05-22  Richard Henderson  <rth@redhat.com>
1178
1179         * varasm.c (default_section_type_flags): Handle tls data and
1180         default sections.
1181         (default_unique_section): Handle tls sections.
1182
1183 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1184
1185         * configure.in (CROSS): Define NATIVE_CROSS.
1186         * configure: Regenerate.
1187         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1188         (startfile_prefix_spec): New var.
1189         (static_specs): Add startfile_prefix_spec.
1190         (do_spec_2): Split out from..
1191         (do_spec): ..here.
1192         (main): Process startfile_prefix_spec.
1193         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1194         dynamic linker.
1195         (STARTFILE_PREFIX_SPEC): Define.
1196         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1197         absolute paths.
1198
1199 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1200
1201         * cpperror.c: Fix formatting.
1202         * cppexp.c: Likewise.
1203         * cppfiles.c: Likewise.
1204         * cpphash.c: Likewise.
1205         * cpphash.h: Likewise.
1206         * cppinit.c: Likewise.
1207         * cpplex.c: Likewise.
1208         * cpplib.c: Likewise.
1209         * cppmacro.c: Likewise.
1210         * cppmain.c: Likewise.
1211         * cppspec.c: Likewise.
1212
1213 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1214
1215         * combine.c (force_to_mode): Use gen_int_mode.
1216         Don't clear CONST_INT bits outside of mode.
1217
1218 2002-05-22  Richard Henderson  <rth@redhat.com>
1219
1220         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1221         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1222
1223 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1224
1225         PR c/6643
1226         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1227         if DECL_SIZE_UNIT is INTEGER_CST.
1228
1229 2002-05-22  Richard Henderson  <rth@redhat.com>
1230
1231         * flow.c (life_analysis): Delete broken reg_label check.
1232
1233 2002-05-22  Richard Henderson  <rth@redhat.com>
1234
1235         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1236         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1237
1238 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1239
1240         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1241         (embed-bb.c): New rule.
1242         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1243         * config/sh/embed_bb.c: Delete.
1244
1245 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1246
1247         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1248
1249 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1250
1251         * config/h8300/h8300.md (*andorqi3): New.
1252
1253 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1254
1255         PR preprocessor/6517
1256         * Makefile.in: Update.
1257         * c-common.c (c_common_post_options): Add preprocessor
1258         errors to the error count.
1259         * c-lang.c (c_post_options): Kill.
1260         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1261         * hooks.h: Add header guards.
1262         * langhooks-def.h: Include hooks.h.
1263         (LANG_HOOKS_POST_OPTIONS): Update.
1264         * langhooks.h (struct lang_hooks): Update post_options.
1265         * toplev.c (parse_options_and_default_flags): Update.
1266 objc:
1267         * objc-lang.c (objc_post_options): Kill.
1268         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1269
1270 2002-05-21  Bruce Korb  <bkorb@gnu.org>
1271
1272         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1273         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1274         * fixinc/fixincl.x: regen.
1275
1276 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
1277
1278         * cfgbuild.c: Fix formatting.
1279         * cfg.c: Likewise.
1280         * cfgcleanup.c: Likewise.
1281         * cfglayout.c: Likewise.
1282         * cfgloop.c: Likewise.
1283         * cfgrtl.c: Likewise.
1284
1285 2002-05-21  Richard Henderson  <rth@redhat.com>
1286
1287         * c-common.h (enum rid): Add RID_THREAD.
1288         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1289         (grokdeclarator): Grok __thread.
1290         * c-parse.in (reswords): Add __thread.
1291         (rid_to_yy): Add RID_THREAD.
1292
1293         * tree.h (DECL_THREAD_LOCAL): New.
1294         (struct tree_decl): Add thread_local_flag.
1295         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1296         * tree.c (staticp): TLS variables are not static.
1297
1298         * target-def.h (TARGET_HAVE_TLS): New.
1299         * target.h (have_tls): New.
1300         * output.h (SECTION_TLS): New.
1301         * varasm.c (assemble_variable): TLS variables can't be common for now.
1302         (default_section_type_flags): Handle .tdata and .tbss.
1303         (default_elf_asm_named_section): Handle SECTION_TLS.
1304         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1305
1306         * flags.h (flag_tls_default): Declare.
1307         * toplev.c (flag_tls_default): Define.
1308         (display_help): Display help for it.
1309         (decode_f_option): Set it.
1310
1311         * doc/extend.texi (Thread-Local): New node describing language-level
1312         thread-local storage.
1313         * doc/invoke.texi (-ftls-model): Document.
1314
1315         * fixinc/inclhack.def (thread_keyword): New.
1316         * fixinc/fixincl.x: Rebuild.
1317
1318 2002-05-21  Jeffrey A Law  <law@redhat.com>
1319
1320         * optabs.c (expand_binop): For double-word integer multiplies,
1321         do not compute intermediate results into something that is
1322         not a register (such as a SUBREG or MEM).
1323
1324         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1325         (ix86_sched_reorder): Make sure to initialize scheduling
1326         data even when there's only one insn in the ready queue.
1327
1328 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1329
1330         * genautomata.c (reserv_sets_hash_value): Fix a typo.
1331
1332 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1333
1334         * genautomata.c (reserv_sets_hash_value): Define hash_value as
1335         set_el_t.  Transform the hash value into unsigned.
1336         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1337         (transform_3): Add code to process `(A,B)+(D,E)'.
1338
1339 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
1340
1341         * reload1.c (do_output_reload): Run delete_output_reload
1342         only if optimizing.
1343
1344 2002-05-21  Roger Sayle  <roger@eyesopen.com>
1345
1346         PR middle-end/6600
1347         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1348         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
1349         (can_store_by_pieces): ... and here to limit the largest mode used.
1350         Add a comment to document this function.
1351
1352 2002-05-21  Richard Henderson  <rth@redhat.com>
1353
1354         * flow.c (life_analysis): Fix test for deleted label.
1355
1356 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1357
1358         * doc/tm.texi: Fix typo.
1359
1360 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
1361
1362         * c-common.c (c_common_init): Set options->unsigned_char from
1363         flag_signed_char.
1364         (cb_register_builtins): Define __STRICT_ANSI__ and
1365         __CHAR_UNSIGNED__ here...
1366         * cppinit.c (init_builtins): Not here.
1367         (cpp_create_reader): unsigned_char option defaults to 0, not
1368         !DEFAULT_SIGNED_CHAR.
1369         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1370         and -funsigned-char.
1371
1372         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1373         * cpphash.c (_cpp_init_hashtable): Don't set it.
1374         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1375         directly.  Clarify comment.
1376
1377 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1378
1379         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1380         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
1381         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
1382         BASIC_BLOCK (n_basic_blocks - 1).
1383         * cfganal.c (can_fallthru, flow_call_edges_add,
1384         flow_preorder_transversal_compute): Too.
1385         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1386         find_sub_basic_blocks): Too.
1387         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1388         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1389         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1390         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1391         * combine.c (this_basic_block): Type changed to basic_block.
1392         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1393         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1394         get_last_value, distribute_notes, distribute_links): Too.
1395         * final.c (compute_alignments): Too.
1396         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1397         * function.c (thread_prologue_and_epilogue_insns): Too.
1398         * gcse.c (compute_code_hoist_vbeinout): Too.
1399         * global.c (build_insn_chain): Too.
1400         * ifcvt.c (find_if_block, find_cond_trap): Too.
1401         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1402         * regmove.c (regmove_optimize): Too.
1403         * resource.c (find_basic_block): Too.
1404         * sched-ebb.c (schedule_ebbs): Too.
1405         * ssa-dce.c (find_control_dependence, find_pdom): Too.
1406
1407 2002-05-21  Andreas Jaeger  <aj@suse.de>
1408
1409         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1410
1411 2002-05-21  Richard Henderson  <rth@redhat.com>
1412
1413         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1414         unspec names, not numbers.
1415
1416 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1417
1418         * doc/sourcebuild.texi: Mention snapshot-README and
1419         snapshot-index.html as needing updating for new front ends.
1420
1421 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1422
1423         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1424         disabling checking, and avoid multiple evaluation of RTX.
1425
1426 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
1427
1428         * bitmap.c (bitmap_find_bit): Return early if we have the correct
1429         element cached.
1430
1431 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1432
1433         * profile.c (gen_edge_profiler):  Set alias set before the memory is
1434         used.
1435
1436 2002-05-20  David S. Miller  <davem@redhat.com>
1437
1438         * cselib.c (max_value_regs): New.
1439         (cselib_lookup, cselib_invalidate_regno): Initialize it when
1440         adding new entries to the REG_VALUES table and we are dealing with
1441         a hard register.
1442         (clear_table): Initialize it.
1443         (cselib_invalidate_regno): Use it to determine which hard
1444         registers to scan when mode is not VOIDmode.
1445
1446 2002-05-20  Duraid Madina   <duraid@fl.net.au>
1447
1448         * tradcpp.c (fixup_newlines): Use old-style function header.
1449
1450 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
1451
1452         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1453
1454 2002-05-20  H.J. Lu  (hjl@gnu.org)
1455
1456         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1457
1458         * config/mips/mips.h (DFMODE_NAN): Defined.
1459         (SFMODE_NAN): Likewise.
1460
1461 2002-05-20  Dale Johannesen  <dalej@apple.com>
1462
1463         * combine.c (cant_combine_insn_p):  Back out my
1464         previous patch.
1465
1466 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
1467
1468         * params.c: Fix formatting.
1469         * params.h: Likewise.
1470         * predict.c: Likewise.
1471         * prefix.c: Likewise.
1472         * print-rtl.c: Likewise.
1473         * print-tree.c: Likewise.
1474         * profile.c: Likewise.
1475
1476 2002-05-20  H.J. Lu  (hjl@gnu.org)
1477
1478         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1479
1480 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
1481
1482         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1483         switches straight on to the assembler, do not abbreviate them.
1484         * config/arm/elf.h (ASM_SPEC): As above.
1485         * config/arm/semi.h (ASM_SPEC): As above.
1486         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1487         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1488         -mcpu=xscale on to the assembler by default.
1489         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1490
1491 2002-05-20  Richard Henderson  <rth@redhat.com>
1492
1493         * cse.c (canon_hash): Reorder do_not_record test.  Always
1494         allow pic_offset_table_rtx.
1495
1496 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
1497
1498         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1499         (expand_binop): Ditto (3 times).
1500
1501 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
1502
1503         * Makefile.in (distclean): Remove QMTest stuff.
1504         (QMTEST_PATH): New variable.
1505         (QMTESTFLAGS): Likewise.
1506         (QMTESTRUNFLAGS): Likewise.
1507         (QMTEST): Likewise.
1508         (QMTEST_GPP_TESTS): Likewise.
1509         (QMTEST_DIR): Likewise.
1510         (QMTEST_DIR/context): New target.
1511         (qmtest-g++): Likeise.
1512         (qmtest-gui): Likewise.
1513         (QMTEST_DIR/gpp-expected.qmr): Likewise.
1514
1515 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
1516
1517         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1518         an altivec register if TARGET_ALTIVEC.
1519
1520         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1521         to ALTIVEC_VECTOR_MODE.
1522         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1523         (rs6000_va_arg): Vectors may go in registers if they are not
1524         altivec vectors.
1525
1526 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
1527
1528         * protoize.c: Fix formatting.
1529
1530 2002-05-19  Richard Henderson  <rth@redhat.com>
1531
1532         * gensupport.c (init_include_reader): Merge into ...
1533         (process_include): ... here.  Simplify composite path creation.
1534         Plug memory leaks.  Fix file/line number tracking.  Do not
1535         process_define_cond_exec.  Return void.
1536         (process_rtx): Don't check process_include return value.
1537
1538 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1539
1540         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1541         fields.
1542         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1543         traversing basic block chain.
1544         (create_basic_block_structure, create_basic_block): Declaration changed.
1545         (link_block, unlink_block): Declare.
1546         * cfg.c (entry_exit_blocks): Initialize new fields.
1547         (link_block, unlink_block): New.
1548         (expunge_block_nocompact): Unlink basic block.
1549         (dump_flow_info): Print prev_bb/next_bb fields.
1550         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1551         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1552         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1553         * cfgrtl.c (create_basic_block_structure, create_basic_block,
1554         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1555         (verify_flow_info): Check that list agrees with numbering.
1556
1557 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1558
1559         * c-common.c (preprocessing_asm): New macro.
1560         * c-lex.h (builtin_define, builtin_assert): Use pfile.
1561 doc:
1562         * tm.texi: Update.
1563 config/alpha:
1564         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1565         (CPP_SPEC): Simplify.
1566         (TARGET_CPU_CPP_BUILTINS): Update.
1567         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1568         (CPP_SPEC): Simplify.
1569         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1570         (TARGET_OS_CPP_BUILTINS): Update.
1571         * osf.h (CPP_XFLOAT_SPEC): Kill.
1572         (TARGET_OS_CPP_BUILTINS): Update.
1573         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1574         * osf5.h (CPP_XFLOAT_SPEC): Kill.
1575         * vms.h (CPP_SUBTARGET_SPEC): Kill.
1576         (TARGET_OS_CPP_BUILTINS): Update.
1577
1578 2002-05-19  Richard Henderson  <rth@redhat.com>
1579
1580         * varasm.c (default_binds_local_p): Fix typo.
1581
1582 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1583
1584         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1585         CONST_INT operand to the correct mode after adding 1 to it.
1586
1587 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
1588
1589         * config.gcc (powerpc-wrs-windiss*): New target.
1590
1591 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1592
1593         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1594         (ashrdi3): Use it.
1595
1596 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
1597
1598         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1599         alphasort.
1600         * config.in: Regenerated.
1601         * configure: Regenerated.
1602
1603 2002-05-19  Richard Henderson  <rth@redhat.com>
1604
1605         * target-def.h (TARGET_BINDS_LOCAL_P): New.
1606         * target.h (struct gcc_target): Move boolean fields to the end.
1607         Add binds_local_p.
1608         * varasm.c (default_binds_local_p): New.
1609         * output.h: Declare it.
1610
1611         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1612         * config/cris/cris.c (cris_encode_section_info): Likewise.
1613         * config/i386/i386.c (i386_encode_section_info): Likewise.
1614         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1615         * config/sh/sh.c (sh_encode_section_info): Likewise.
1616
1617         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1618         (TARGET_BINDS_LOCAL_P): New.
1619
1620 2002-05-19  Richard Henderson  <rth@redhat.com>
1621
1622         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1623         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1624         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1625
1626         * toplev.c (display_help): Kill -a -ax help.
1627
1628         * config/1750a/1750a.h, config/alpha/alpha.h,
1629         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1630         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1631         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1632         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1633
1634         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1635         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1636
1637         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1638         (ix86_output_function_block_profiler): Kill.
1639         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1640         (m68hc11_function_block_profiler): Kill.
1641         * config/m68hc11/m68hc11-protos.h: Update.
1642         * config/m88k/m88k.c (output_block_profiler): Kill.
1643         (output_function_block_profiler): Kill.
1644         * config/m88k/m88k-protos.h: Update.
1645
1646 2002-05-19  Richard Henderson  <rth@redhat.com>
1647
1648         * system.h (STRIP_NAME_ENCODING): Poison it.
1649         * output.h (STRIP_NAME_ENCODING): Remove.
1650         (default_strip_name_encoding): Declare.
1651         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1652         * target.h (strip_name_encoding): New.
1653         * varasm.c (default_strip_name_encoding): New.
1654
1655         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1656         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1657         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1658         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1659         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1660         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1661         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1662         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1663         config/v850/v850.h: Use the hook, not the macro.
1664
1665         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1666         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1667         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1668         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1669         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1670         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1671         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1672         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1673         config/v850/v850.c, config/v850/v850.h:
1674         Move STRIP_NAME_ENCODING to out-of-line function and add
1675         TARGET_STRIP_NAME_ENCODING.
1676
1677         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1678         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1679         with TARGET_STRIP_NAME_ENCODING referencing existing function;
1680         make function static.
1681
1682         * xcoffout.c: Include target.h
1683         * Makefile.in (xcoffout.o): Update.
1684
1685         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1686         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1687         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1688         reloc argument unused.
1689         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1690
1691         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1692         STRIP_NAME_ENCODING docs.
1693
1694 2002-05-19  Andreas Jaeger  <aj@suse.de>
1695
1696         * gengenrtl.c: Add prototype for excluded_rtx.
1697
1698         * real.h: Add prototype for exact_real_truncate.
1699
1700 2002-05-18  Richard Henderson  <rth@redhat.com>
1701
1702         * system.h (ENCODE_SECTION_INFO): Poison it.
1703         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1704         * target.h (encode_section_info): New.
1705         * varasm.c (make_decl_rtl, output_constant_def): Use it.
1706         * hooks.c (hook_tree_int_void): New.
1707         * hooks.h: Declare it.
1708
1709         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1710         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1711         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1712         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1713         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1714         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1715         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1716         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1717         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1718         config/mcore/mcore-protos.h, config/mcore/mcore.c,
1719         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1720         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1721         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1722         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1723         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1724         referencing existing function.  Make function static.
1725
1726         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
1727         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
1728         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
1729         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
1730         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
1731         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
1732         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
1733         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
1734         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
1735         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
1736         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
1737         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
1738         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
1739         Move ENCODE_SECTION_INFO to out-of-line function and add
1740         TARGET_ENCODE_SECTION_INFO.
1741
1742         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
1743         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1744
1745         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
1746         from SUBTARGET_*
1747         (switch_to_section): Replace in_rdata case with in_readonly_data.
1748
1749         * config/h8300/h8300.c (h8300_encode_label): Make static.
1750         * config/h8300/h8300-protos.h: Update.
1751
1752         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
1753         from rs6000_encode_section_info; make static.
1754         (rs6000_xcoff_encode_section_info): New.
1755
1756         * config/v850/v850.c (v850_encode_data_area): Make static.
1757         * config/v850/v850-protos.h: Update.
1758
1759         * config/vax/vax.c: Include flags.h.
1760         (vms_select_section): Fix typo.
1761
1762         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
1763         ENCODE_SECTION_INFO docs.
1764
1765 2002-05-18  Richard Henderson  <rth@redhat.com>
1766
1767         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
1768         REGISTER_TARGET_PRAGMAS.
1769         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
1770
1771         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
1772
1773 2002-05-18  Richard Henderson  <rth@redhat.com>
1774
1775         * system.h (SELECT_RTX_SECTION): Poison.
1776         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
1777         * target.h (select_rtx_section): New.
1778         * varasm.c (output_constant_pool): Use it.
1779         (default_select_rtx_section, default_elf_select_rtx_section): New.
1780         * output.h: Declare them.
1781
1782         * config/darwin.h (SELECT_RTX_SECTION): Move ...
1783         * config/darwin.c (machopic_select_rtx_section): ... here.
1784         * config/darwin-protos.h: Update.
1785
1786         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
1787         * config/nextstep.c (machopic_select_rtx_section): ... here.
1788         (nextstep_select_section): Rename variable to avoid macro clash.
1789         * config/nextstep-protos.h: Update.
1790
1791         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
1792         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
1793         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
1794         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
1795         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
1796         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
1797         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
1798         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
1799         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
1800         (SELECT_RTX_SECTION): Remove.
1801
1802         * config/darwin.h, config/elfos.h, config/nextstep.h,
1803         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
1804         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
1805         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
1806         config/sparc/lynx.h, config/xtensa/xtensa.c
1807         (TARGET_ASM_SELECT_RTX_SECTION): New.
1808
1809         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
1810         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
1811         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
1812         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
1813         (ia64_aix_select_rtx_section): New.
1814         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
1815         redefining.
1816         * config/mips/mips.c (mips_select_rtx_section): Make static.
1817         Support ELF SHF_MERGE features.
1818         * config/mips/mips-protos.h: Update.
1819         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
1820         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
1821         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
1822         make static, fall back to default_elf_select_rtx_section.
1823         * config/rs6000/rs6000-protos.h: Update.
1824         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
1825         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
1826         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
1827         * config/romp/romp.c (romp_select_rtx_section): New.
1828         * config/s390/s390.c (s390_select_rtx_section): New.
1829         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
1830         declarations before target macro definition.
1831         (xtensa_emit_call): Use static buffer.
1832         (xtensa_select_rtx_section): New.
1833         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
1834         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
1835         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
1836
1837         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
1838         SELECT_RTX_SECTION docs.
1839
1840 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1841
1842         * i386.md (movsi/movdi): Fix template.
1843         (sse2 patterns): Set attributes consistently.
1844
1845         * i386.md (pushqi2, ashrqi_*): Fix constraint.
1846
1847 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
1848
1849         * optabs.c (complex_part_zero_p): New.
1850         * (expand_cmplxdiv_straight): Use it.
1851         * (expand_cmplxdiv_wide): Ditto.
1852         * (expand_binop): Ditto.
1853
1854 2002-05-18  Richard Henderson  <rth@redhat.com>
1855
1856         * final.c (HAVE_READONLY_DATA_SECTION): New.
1857         (shorten_branches): Use it instead of ifdefs.
1858         * varasm.c (enum in_section): Add in_readonly_data.
1859         (text_section, data_section): Tidy.
1860         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
1861
1862         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
1863         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
1864         (READONLY_DATA_SECTION): Don't undef.
1865
1866         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
1867         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
1868         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
1869
1870         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
1871         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
1872         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
1873         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
1874
1875         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
1876         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
1877         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1878         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
1879         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
1880         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
1881         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
1882         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
1883         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
1884
1885         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
1886         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
1887         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
1888         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
1889         config/pa/pa64-hpux.h, config/sparc/litecoff.h
1890         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1891
1892         * config/elfos.h, config/netware.h, config/svr3.h,
1893         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1894         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1895         config/h8300/h8300.h, config/i386/i386-interix.h,
1896         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1897         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
1898
1899         * config/elfos.h, config/netware.h, config/svr3.h,
1900         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1901         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
1902         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1903         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
1904
1905         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
1906         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
1907         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
1908         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
1909         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
1910         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
1911         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
1912         config/rs6000/sysv4.h, config/v850/v850.h
1913         (EXTRA_SECTIONS): Remove in_const/in_rdata.
1914         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
1915
1916         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
1917         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
1918         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
1919         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
1920         * config/alpha/alpha.c (alpha_start_function): Likewise.
1921         (alpha_write_linkage): Likewise.
1922         * config/m32r/m32r.c (m32r_select_section): Likewise.
1923         * config/m88k/m88k.c (m88k_select_section): Likewise.
1924         * config/mips/mips.c (mips_select_rtx_section): Likewise.
1925         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
1926         (rs6000_elf_select_section): Likewise.
1927         * config/v850/v850.c (v850_select_section): Likewise.
1928
1929         * config/1750a/1750a.h, config/i860/sysv3.h
1930         (READONLY_DATA_SECTION_ASM_OP): New.
1931         READONLY_DATA_SECTION_ASM_OP.
1932         * config/i386/interix.c, config/i386/winnt.c
1933         (i386_pe_unique_section): Always use .rdata prefix.
1934         * config/pa/som.h (readonly_data): Always switch to read-only section.
1935         (READONLY_DATA_SECTION): Predicate on flag_pic.
1936         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
1937         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
1938         (READONLY_DATA_SECTION): Update.
1939
1940 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
1941
1942         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
1943         is used without -Wformat.
1944         * c-common.h (warn_format_zero_length): Declare extern.
1945         * c-decl.c (warn_options): Add "format-zero-length".
1946         * c-format.c (warn_format_zero_length): Declare.
1947         (set_Wformat): Set warn_format_zero_length for -Wformat.
1948         (check_format_info): Only warn about zero-length formats if
1949         warn_format_zero_length is true.  Include the format type
1950         name in the warning message.
1951         * doc/invoke.texi: Document -Wformat-zero-length.
1952         * testsuite/gcc.dg/format/zero-length-1.c: New test.
1953
1954 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
1955
1956         * timevar.c: Fix formatting.
1957         * tlink.c: Likewise.
1958         * toplev.c: Likewise.
1959         * tree-dump.c: Likewise.
1960         * tree-inline.c: Likewise.
1961
1962 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1963
1964         * cppinit.c (cpp_post_options): If preprocessed, turn off
1965         traditional.  If traditional, turn off column numbers.
1966         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
1967         * cpptrad.c (handle_newline): Update line_base.
1968         (skip_comment): Handle -Wcomment.
1969
1970 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
1971
1972         * cppinit.c (struct builtin): Remove unused fields.
1973         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
1974         (operator_array): New - was second half of builtin_array.
1975         (init_builtins): Simplify loop over builtin_array/operator_array.
1976
1977 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1978
1979         * defaults.h (UNIQUE_SECTION): Remove.
1980         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
1981
1982 2002-05-17  Richard Henderson  <rth@redhat.com>
1983
1984         * expr.c (init_expr_once): Don't use start/end_sequence.
1985         Use rtx_alloc instead of emit_insn.
1986         * toplev.c (lang_dependent_init): Run init_expr_once here ...
1987         (lang_independent_init): ... not here.
1988
1989 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
1990
1991         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
1992
1993 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1994
1995         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
1996         for fixed registers, possibly used for global register variables.
1997         (initial_elimination_offset, avr_output_function_prologue,
1998         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
1999
2000 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2001
2002         * Makefile.in: Update for cpptrad.c.
2003         * cpphash.h (struct cpp_buffer): New members for buffer
2004         overlays.
2005         (struct cpp_reader): New members for traditional output.
2006         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
2007         * cppinit.c (cpp_create_reader): Set trad_line.
2008         (cpp_destroy): Free trad_out_base if used.
2009         (cpp_read_main_file): Overlay an empty buffer if traditional.
2010         (cpp_finish_options): Don't do builtins.
2011         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
2012         (cpp_handle_option): Handle it.
2013         * cpplex.c (continue_after_nul): New.
2014         (_cpp_lex_direct): Use handle_nul.
2015         * cpplib.h (struct cpp_options): New traditional option.
2016         * cpptrad.c: New file.
2017
2018 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2019
2020         * c-common.c (c_common_init_options): Use C89 for Objective-C,
2021         and set the options flag.
2022         * cppinit.c (lang_flags): Remove objc.
2023         (lang_defaults): Remove OBJC and OBJCXX.
2024         (set_lang): Update.
2025         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
2026         (cpp_handle_option): Remove -+ and -lang-objc++.
2027         For ObjC, just set a flag.
2028         (print_help): Update.
2029         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
2030
2031 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2032
2033         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
2034         bootstrap with -mips3.
2035
2036 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
2037
2038         * final.c: Fix formatting.
2039         * fix-header.c: Likewise.
2040         * flow.c: Likewise.
2041         * fold-const.c: Likewise.
2042         * function.c: Likewise.
2043
2044 2002-05-17  David S. Miller  <davem@redhat.com>
2045
2046         PR c/6689, PR optimization/6615
2047         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
2048         and make it a pointer to rtx.  Update comments.
2049         (update_equiv_regs): When scanning for equivalences, record
2050         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
2051         it while making the equiv replacements.
2052
2053 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2054
2055         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
2056
2057 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
2058
2059         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
2060         when encoding visibility into SYMBOL_REF_FLAG.
2061
2062 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
2063
2064         * expr.c (force_operand): Fix reversed move.
2065
2066 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
2067
2068         * doc/install.texi (Testing): Mention two common DejaGnu warnings
2069         that can be ignored.
2070
2071 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2072
2073         * doc/install.texi (Final install): Recommend to install into a
2074         "clean" target directory.
2075
2076 2002-05-17  Richard Henderson  <rth@redhat.com>
2077
2078         * config/ia64/ia64.md: Use braced strings instead of quoted strings
2079         for code blocks.  Tidy whitespace.
2080
2081 2002-05-17  Richard Henderson  <rth@redhat.com>
2082
2083         * hooks.c (hook_tree_bool_false): New.
2084         * hooks.h: Declare it.
2085         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
2086         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
2087         * target.h (select_section, unique_section): New.
2088         (in_small_data_p): New.
2089         * varasm.c (resolve_unique_section): Use hooks instead of macros.
2090         (variable_section, output_constant_def_contents): Likewise.
2091         (default_select_section, default_unique_section): New.
2092         (categorize_decl_for_section, default_elf_select_section): New.
2093         * output.h: Declare them.
2094
2095         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
2096         (TARGET_ASM_SELECT_SECTION): New.
2097         (SELECT_SECTION): Move ...
2098         * config/darwin.c (machopic_select_section): ... here.
2099         * config/darwin-protos.h: Update.
2100
2101         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
2102         (SELECT_SECTION): Move ...
2103         * config/nextstep.c (nextstep_select_section): ... here.
2104         * config/nextstep-protos.h: Update.
2105
2106         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
2107         (TARGET_ASM_SELECT_SECTION): New.
2108         * config/svr3.h (SELECT_SECTION): Remove.
2109
2110         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
2111         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
2112         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
2113         (alpha_encode_section_info): Use it.
2114         * config/alpha/alpha-protos.h: Update.
2115         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
2116         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2117         (TARGET_ASM_SELECT_SECTION): New.
2118         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2119
2120         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2121         (TARGET_ASM_UNIQUE_SECTION): New.
2122
2123         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2124         (avr_unique_section): Rename from unique_section; make static.
2125         * config/avr/avr-protos.h: Update.
2126         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2127
2128         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2129
2130         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2131         (TARGET_ASM_UNIQUE_SECTION): New.
2132         * config/i386/i386-interix.h: Likewise.
2133         * config/i386/win32.h: Likewise.
2134         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2135         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2136         * config/i386/sco5.h (SELECT_SECTION): Remove.
2137         (TARGET_ASM_SELECT_SECTION): New.
2138         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2139
2140         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2141         instead of SELECT_SECTION.
2142         * config/m68k/dpx2.h: Likewise.
2143         * config/rs6000/lynx.h: Likewise.
2144
2145         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2146         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2147         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2148         (ia64_in_small_data_p): New.
2149         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2150         (ia64_aix_select_section, ia64_aix_unique_section): New.
2151         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2152         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2153
2154         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2155         (TARGET_ASM_SELECT_SECTION): New.
2156         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2157         * config/m32r/m32r-protos.h: Update.
2158
2159         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2160         (SELECT_SECTION): Move ...
2161         * config/m88k/m88k.c (m88k_select_section): ... here.
2162
2163         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2164         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2165         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2166         (mcore_unique_section): Make static.
2167         * config/mcore/mcore-protos.h: Update.
2168
2169         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2170         (TARGET_ASM_UNIQUE_SECTION): New.
2171         * config/mips/elf64.h: Likewise.
2172         * config/mips/iris6gld.h: Likewise.
2173         * config/mips/linux.h: Likewise.
2174         * config/mips/mips-protos.h: Update.
2175         * config/mips/mips.c (mips_select_section): Add align argument.
2176         * config/mips/mips.h (SELECT_SECTION): Remove.
2177         (TARGET_ASM_SELECT_SECTION): New.
2178
2179         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2180         * config/mmix/mmix.c (mmix_select_section): Remove.
2181         (mmix_unique_section): Remove.
2182         * config/mmix/mmix-protos.h: Update.
2183
2184         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2185         (SELECT_SECTION): Move ...
2186         * config/pa/pa.c (pa_select_section): ... here.
2187         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2188
2189         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2190         from rs6000_select_section and make static.
2191         (rs6000_elf_unique_section): Similarly.
2192         (rs6000_xcoff_select_section): From xcoff.h.
2193         (rs6000_xcoff_unique_section): Likewise.
2194         * config/rs6000/rs6000-protos.h: Update.
2195         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2196         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2197         * config/rs6000/xcoff.h: Likewise.
2198
2199         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2200         (SELECT_SECTION): Move ...
2201         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2202
2203         * config/v850/v850.h (SELECT_SECTION): Move ...
2204         * config/v850/v850.c (v850_select_section): ... here.
2205         (TARGET_ASM_SELECT_SECTION): New.
2206
2207         * config/vax/vms.h (SELECT_SECTION): Move ...
2208         * config/vax/vax.c (vms_select_section): ... here.
2209         (TARGET_ASM_SELECT_SECTION): New.
2210
2211         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2212         for the target hooks.
2213
2214 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2215
2216         * config/arm/arm.c (emit_multi_reg_push): Do not set
2217         RTX_FRAME_RELATED_P on the SEQUENCE.
2218
2219 2002-05-16  Richard Henderson  <rth@redhat.com>
2220
2221         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2222         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2223
2224 2002-05-16  Richard Henderson  <rth@redhat.com>
2225
2226         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2227
2228         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2229
2230 2002-05-16  Richard Henderson  <rth@redhat.com>
2231
2232         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2233         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2234         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2235         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2236         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2237         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2238         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2239         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2240         Revert "Basic block renumbering removal", and two followup patches.
2241
2242 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2243
2244         * lcm.c (optimize_mode_switching): Revert previous change.
2245
2246 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2247
2248         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2249         with only extant block numbers.
2250
2251 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2252
2253         * lcm.c (optimize_mode_switching): Fix typo.
2254
2255 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2256
2257         * flow.c (calculate_global_regs_live): Queue blocks in program order.
2258
2259 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2260
2261         * doc/install.texi (Configuration): Document PWDCMD.
2262
2263 2002-05-16  Dale Johannesen  <dalej@apple.com>
2264
2265         * combine.c (cant_combine_insn_p):  Reenable combinations
2266         involving hard regs unless CLASS_LIKELY_SPILLED_P.
2267
2268 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2269
2270         * c-common.c (cb_register_builtins): Handle more built-ins
2271         here rather than in gcc.c specs.
2272         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2273         (cpp_options): Pass -O flags even when only preprocessing.
2274         * toplev.c (set_fast_math_flags): New prototype.
2275         (fast_math_flags_set_p): New.
2276         (set_no_fast_math_flags): Remove.
2277         (decode_f_option): Update.
2278         * toplev.h (set_fast_math_flags): Update.
2279         (fast_math_flags_set_p): New.
2280         (set_no_fast_math_flags): Remove.
2281 config:
2282         * c4x/c4x.c (c4x_override_options): Update.
2283
2284 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
2285
2286         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2287         Default-define here.
2288         (builtin_define_with_value): Can now wrap the expansion in
2289         quotation marks if such is wanted.
2290         (cb_register_builtins): Update calls to builtin_define_with_value.
2291         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2292         here.
2293         (c_common_init): Set options->stdc_0_in_system_headers.
2294         * c-lex.h: Update prototype of builtin_define_with_value.
2295         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2296         and REGISTER_PREFIX.
2297
2298         * cppinit.c (VERS, ULP, C, X): Kill.
2299         (builtin_array): Remove entries for __VERSION__,
2300         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2301         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
2302         a constant.
2303         (init_builtins): Kill off a bunch of now-dead code.
2304         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2305         -fno-leading-underscore.
2306         (cpp_handle_option): Remove code to set user_label_prefix.
2307         (cpp_post_options): Likewise.
2308
2309         * cpplib.h (struct cpp_options): Remove user_label_prefix.
2310         (stdc_0_in_system_headers): New.
2311         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2312         stdc_0_in_system_headers) too to decide the value of __STDC__.
2313
2314         * tradcpp.c (user_label_prefix): Kill.
2315         (main): Remove code handling -f(no-)leading-underscore.
2316         (initialize_builtins): Don't define __REGISTER_PREFIX__
2317         or __USER_LABEL_PREFIX__.
2318         (install_value): Wrap compound statement in dummy loop so the
2319         macro works properly in an if statement.
2320
2321
2322 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
2323
2324         * loop.h (struct loop_info): Add member has_prefetch.
2325         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2326         (prescan_loop): Initialize has_prefetch.
2327         (struct prefetch_info): Change prefetch_in_loop and
2328         prefetch_before_loop from bit fields to ints.
2329         (emit_prefetch_instructions): Several small fixes.
2330         (check_dbra_loop): Don't reverse loop that uses prefetch.
2331
2332 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2333
2334         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2335         * configure.in: Likewise.
2336         * fixinc/check.tpl: Likewise.
2337         * fixinc/fixinc.dgux: Likewise.
2338         * fixinc/fixinc.svr4: Likewise.
2339         * fixinc/fixinc.winnt: Likewise.
2340         * fixinc/fixincl.sh: Likewise.
2341         * fixproto: Likewise.
2342         * configure: Regenerate.
2343
2344 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2345
2346         Basic block renumbering removal:
2347         * basic_block.h (struct basic_block_def): Renamed index to sindex,
2348         added prev_bb and next_bb fields.
2349         (n_basic_blocks): Renamed to num_basic_blocks.
2350         (last_basic_block): New, index of last basic block.
2351         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2352         traversing basic block chain.
2353         (BLOCK_NUM): index -> sindex.
2354         (create_basic_block_structure, create_basic_block): Declaration changed.
2355         (debug_num2bb): Declare.
2356         (expunge_block_nocompact): Declaration removed.
2357         (link_block, unlink_block, compact_blocks): Declare.
2358         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2359         * cfg.c (entry_exit_blocks): Initialize new fields.
2360         (clear_edges, alloc_block, expunge_block, cached_make_edge,
2361         redirect_edge_pred, dump_flow_info, dump_edge_info,
2362         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2363         free_aux_for_edges): Modified.
2364         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2365         (expunge_block_nocompact): Removed.
2366         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2367         find_unreachable_blocks, create_edge_list, print_edge_list,
2368         verify_edge_list, flow_edge_list_print, remove_fake_successors,
2369         remove_fake_edges, flow_reverse_top_sort_order_compute,
2370         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2371         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2372         flow_dfs_compute_reverse_execute): Modified.
2373         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2374         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2375         Modified.
2376         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2377         merge_blocks_move_predecessor_nojumps,
2378         merge_blocks_move_successor_nojumps, merge_blocks,
2379         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2380         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2381         * cfglayout.c (skip_insns_after_block, label_for_bb,
2382         record_effective_endpoints, scope_to_insns_finalize,
2383         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2384         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2385         cfg_layout_duplicate_bb): Modified.
2386         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2387         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2388         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2389         flow_loops_find, flow_loop_outside_edge_p): Modified.
2390         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2391         flow_delete_block, compute_bb_for_insn, split_block,
2392         try_redirect_by_replacing_jump, redirect_edge_and_branch,
2393         force_nonfallthru_and_redirect, tidy_fallthru_edge,
2394         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2395         commit_edge_insertions, commit_edge_insertions_watch_calls,
2396         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2397         purge_all_dead_edges): Modified.
2398         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2399         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2400         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2401         Modified.
2402         * conflict.c (conflict_graph_compute): Modified.
2403         * df.c (FOR_ALL_BBS): Removed.
2404         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2405         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2406         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2407         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2408         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2409         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2410         * final.c (compute_alignments, final_scan_insn): Modified.
2411         * flow.c (verify_local_live_at_start, update_life_info,
2412         update_life_info_in_dirty_blocks, free_basic_block_vars,
2413         delete_noop_moves, calculate_global_regs_live,
2414         initialize_uninitialized_subregs, allocate_bb_life_data,
2415         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2416         mark_used_reg, count_or_remove_death_notes): Modified.
2417         * function.c (thread_prologue_and_epilogue_insns): Modified.
2418         * gcse.c (struct null_pointer_info): Change typo of current_block
2419         to basic_block.
2420         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2421         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2422         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2423         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2424         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2425         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2426         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2427         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2428         pre_delete, one_pre_gcse_pass, compute_transpout,
2429         invalidate_nonnull_info, delete_null_pointer_checks_1,
2430         free_code_hoist_mem, compute_code_hoist_vbeinout,
2431         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2432         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2433         compute_store_table, build_store_vectors, insert_insn_start_bb,
2434         insert_store, replace_store_insn, free_store_memory, store_motion):
2435         Modified.
2436         * global.c (global_alloc, global_conflicts, mark_elimination,
2437         build_insn_chain): Modified.
2438         * graph.c (print_rtl_graph_with_bb): Modified.
2439         * haifa-sched.c (sched_init): Modified.
2440         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2441         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2442         if_convert): Modified.
2443         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2444         compute_insert_delete, pre_edge_lcm, compute_available,
2445         compute_farthest, compute_nearerout, compute_rev_insert_delete,
2446         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2447         Modified.
2448         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2449         * loop.c (loop_dump_aux): Modified.
2450         * predict.c (combine_predictions_for_insn, estimate_probability,
2451         last_basic_block_p, process_note_prediction, process_note_predictions,
2452         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2453         expensive_function_p, estimate_bb_frequencies,
2454         compute_function_frequency): Modified.
2455         * print-rtl.c (print_rtx): Modified.
2456         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2457         get_exec_counts, compute_branch_probabilities, compute_checksum,
2458         branch_prob, find_spanning_tree): Modified.
2459         * recog.c (split_all_insns, peephole2_optimize): Modified.
2460         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2461         convert_regs_1, convert_regs_2, convert_regs): Modified.
2462         * regclass.c (scan_one_insn, regclass): Modified.
2463         * regmove.c (mark_flags_life_zones, regmove_optimize,
2464         combine_stack_adjustments): Modified.
2465         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2466         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2467         * reorg.c (dbr_schedule): Modified.
2468         * resource.c (find_basic_block, init_resource_info): Modified.
2469         * sbitmap.c (sbitmap_intersection_of_succs,
2470         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2471         sbitmap_union_of_preds): Modified.
2472         * sched-deps.c (init_dependency_caches): Modified.
2473         * sched-ebb.c (schedule_ebbs): Modified.
2474         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2475         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2476         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2477         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2478         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2479         ssa_const_prop): Modified.
2480         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2481         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2482         * ssa.c (remove_phi_alternative, find_evaluations,
2483         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2484         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2485         make_regs_equivalent_over_bad_edges,
2486         make_equivalent_phi_alternatives_equival,
2487         compute_conservative_reg_partition,
2488         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2489         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2490         Modified.
2491
2492 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
2493
2494         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2495
2496 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
2497
2498         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2499         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2500         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2501         calling CONSTANT_POOL_ADDRESS_P.
2502         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2503         to decide whether to define __arm__ or __thumb.
2504         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2505         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2506
2507 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2508
2509         * config/arc/arc.h (CPP_PREDEFINES): Remove.
2510         (CPP_SPEC): Update.
2511         (TARGET_CPU_CPP_BUILTINS): New.
2512
2513 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2514
2515         * cpphash.h (cpp_macro): Move here, and make expansion a union.
2516         * cppmacro.c (cpp_macro): Remove.
2517         (enter_macro_context, replace_args, warn_of_redefinition,
2518         _cpp_create_definition, cpp_macro_definition): Update.
2519
2520 2002-05-16  Jason Merrill  <jason@redhat.com>
2521
2522         * config/mips/mips.c (mips_output_external): Don't do sdata
2523         optimization for a variable with DECL_COMDAT set.
2524
2525 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2526
2527         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2528         Cleanups for accepting modifiers on pointers.
2529         Fix predicate typos.
2530         Allow long pointers as well as int pointers.
2531
2532 2002-05-15  Richard Henderson  <rth@redhat.com>
2533
2534         * varasm.c (merge_weak): Remove special case for extern and common.
2535
2536 2002-05-15  Matt Hiller  <hiller@redhat.com>
2537
2538         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2539         XFAILing.
2540         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2541         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2542         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2543         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2544         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2545         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2546
2547 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2548
2549         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2550
2551 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2552
2553         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2554         ("altivec_mfvscr"): Read from VSCR.
2555
2556         Add vscr sets for the following insns: altivec_vctuxs,
2557         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2558         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2559         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2560         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2561         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2562         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2563         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2564         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2565         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2566         altivec_vsum2sws, altivec_vsumsws.
2567
2568         * config/rs6000/rs6000.h: Add VSCR fixed register.
2569         (CALL_REALLY_USED_REGISTERS): Add vscr.
2570         (CALL_USED_REGISTERS): Same.
2571         (FIXED_REGISTERS): Same.
2572         (REG_ALLOC_ORDER): Same.
2573         (reg_class): Add VSCR_REGS.
2574         (REG_CLASS_NAMES): Same.
2575         (REG_CLASS_CONTENTS): Same.
2576         (VSCR_REGNO): New.
2577         (REGISTER_NAMES): Add vscr.
2578         (DEBUG_REGISTER_NAMES): Same.
2579         (ADDITIONAL_REGISTER_NAMES): Same.
2580         (FIRST_PSEUDO_REGISTER): Increment.
2581         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2582
2583 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
2584
2585         * fold-const.c (fold): Fix a typo.
2586
2587 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
2588
2589         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2590         comparison against the highest or lowest integer value before
2591         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2592         transformation and that of an unsigned comparison against 0
2593         right after.
2594
2595 2002-05-15  Richard Henderson  <rth@redhat.com>
2596
2597         * varasm.c (merge_weak): Error for any weakening after definition.
2598         Adjust weakening after use warning to catch more cases.
2599         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2600         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2601
2602 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
2603
2604         * invoke.texi (-malign-double): Re-add lost warning.
2605
2606         * i386-protos.h (x86_output_mi_thunk): Declare.
2607         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2608         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2609
2610         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2611         when flag_asynchronous_unwind_tables is set.
2612
2613         * flags.h (flag_reorder_functions): Declare.
2614         * function.c (prepare_function_start): Initialize frequnecy.
2615         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2616         * Makefile.in (predict.o): Add dependency on target.h and params.h
2617         * defaults.h (HOT_TEXT_SECTION_NAME,
2618         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2619         * predict.c (choose_function_section): New function.
2620         (estimate_bb_frequencies): Use it.
2621         * toplev.c (flag_reorder_functions): New global variable.
2622         (lang_independent_options): New.
2623         (parse_options_and_default_flags): Set.
2624         * varasm.c (assemble_start_function): Bypass functdion alignment
2625         for never executed functions.
2626         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2627         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2628         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2629         Document.
2630
2631         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
2632
2633         * predict.c: Inlude profile.h
2634         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2635         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2636         Use the information about maximal counter in the program.
2637
2638         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
2639
2640         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2641         probably_never_executed_bb_p): New functions.
2642         * cfgcleanup.c (outgoing_edges_match): Use them.
2643         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2644         (maybe_hot_bb_p, probably_cold_bb_p,
2645         probably_never_executed_bb_p): New functions.
2646
2647         * function.h (function): Add new field function_frequency.
2648         * predict.c (compute_function_frequency): New function.
2649         (estimate_probability): Call it.
2650
2651 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
2652
2653         PR optimization/5172, optimization/5200
2654         * gcse.c (gcse_main): Disable store_motion.
2655
2656 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
2657
2658         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2659         (c_common_nodes_and_builtins): Use it.
2660         (builtin_define_with_value): New function.
2661         (cb_register_builtins): Define __SIZE_TYPE__,
2662         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2663         using builtin_define_with_value.  Use consistent notation when
2664         defining __GXX_WEAK__.
2665         (WCHAR_TYPE_SIZE): Don't redefine.
2666         (combine_strings): Don't use WCHAR_TYPE_SIZE.
2667
2668         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2669         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2670         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2671         * tradcpp.c (initialize_builtins): Likewise.
2672         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2673
2674         * c-lex.h (builtin_define_with_value): Prototype.
2675         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2676         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2677         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2678
2679         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2680         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2681         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2682         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2683         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2684         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2685         config/sparc/sol2-bi.h, config/sparc/sparc.h:
2686         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
2687         to __SIZE_TYPE__ etc from all spec strings. When this makes
2688         extra specs empty, delete them.
2689
2690 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2691
2692         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2693         for PA8000 or generating dwarf2 call frame information.
2694         (output_call): Remove DO_FRAME_NOTES check from return pointer
2695         optimization.
2696         (following_call): Return 0 when scheduling for PA8000 or generating
2697         dwarf2 call frame information.  Revise comment.
2698
2699 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2700
2701 config/alpha:
2702         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2703         and __IEEE_FP_INEXACT as appropriate.
2704         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2705         (CPP_SPEC): Remove ieee defines.
2706         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2707
2708 2002-05-14  Richard Henderson  <rth@redhat.com>
2709
2710         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2711         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2712
2713 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2714
2715         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2716         (CPP_SPEC): Update.
2717         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2718         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2719         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2720         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2721         (EXTRA_SPECS): Update.
2722         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2723         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2724         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2725         define TARGET_OS_CPP_BUILTINS if necessary.
2726
2727 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2728
2729         * gcc.c (cpp_options): Must pass -m* and -f* options
2730         to the front end even when only preprocessing.
2731         (cc1_options): Remove redundant -lang-c.
2732         * tradcpp.c (main): Ignore -m options.
2733 objc:
2734         * lang-specs.h: Similarly.
2735
2736 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
2737
2738         * genautomata.c (transform_3): Add code for transformation
2739         `(A,B,...)+C -> A+C,B,...'.
2740
2741 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
2742
2743         * final.c (end_final): Do not output profile_arcs constructor, when
2744         no functions are instrumented.
2745
2746 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
2747
2748         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
2749
2750 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2751
2752         * doc/install.texi: Remove special markup originally required for
2753         HTML generation with texi2html.
2754
2755 2002-05-14  Andreas Schwab  <schwab@suse.de>
2756
2757         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
2758         SELECT_SECTION.
2759         (UNIQUE_SECTION): Define to get small data correctly.
2760
2761         * varasm.c (resolve_unique_section): Add third parameter
2762         flag_function_or_data_sections and use it instead of
2763         flag_function_sections.
2764         (assemble_start_function): Pass flag_function_sections.
2765         (asm_emit_uninitialised): Pass flag_data_sections.
2766         (assemble_variable): Likewise.
2767
2768 2002-05-14  Richard Henderson  <rth@redhat.com>
2769
2770         * config/i386/i386.md: Use define_constants for unspec numbers.
2771         * config/i386/i386.c: Likewise.
2772
2773 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2774
2775         * doc/contrib.texi: Update my entry.
2776
2777 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
2778
2779         * fixinc/inclhack.def (winidss_valist): Limit applicability.
2780         * fixinc/fixincl.x: Regenerated.
2781         * fixinc/tests/base/math.h: Update.
2782         * fixinc/tests/base/testing.h: Likewise.
2783
2784 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
2785
2786         * genattr.c (gen_attr): Don't emit a comma after the last
2787         enumerator.
2788
2789 2002-05-13  Richard Henderson  <rth@redhat.com>
2790
2791         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
2792         by non-local gotos.
2793         * recog.c (peephole2_optimize): Likewise.
2794
2795 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
2796
2797         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
2798         input to O_BINARY.
2799
2800 2002-05-13  Jeffrey A Law  (law@redhat.com)
2801
2802         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
2803         Update prototype and callers.
2804         (propagate_one_insn): Stack pointer adjustments kill MEMs on
2805         the mem_set_list which reference the stack pointer, as do
2806         calls to constant functions as they may clobber outgoing
2807         argument space.
2808
2809         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
2810
2811         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2812         (ia32_multipass_dfa_lookahead): New function.
2813
2814 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2815
2816         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
2817         (translate_options): Remove 'V'.
2818         (process_command): Similarly.
2819 doc:
2820         * invoke.texi: Remove documentation of 'V'.
2821
2822 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
2823
2824         * config/s390/linux.h: Revert 2002-04-22 changes.
2825
2826 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
2827
2828         * config/fr30/fr30.md: Only allow splits of immediate loads
2829         if the destination is a register.
2830
2831 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2832
2833         * Makefile.in (c-common.o, cppinit.o): Update.
2834         * c-common.c: Include except.h.
2835         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
2836         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
2837         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
2838         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
2839         CPP_PREDEFINES): Handle here.
2840 config:
2841         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
2842         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
2843         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
2844         TARGET_OS_CPP_BUILTINS.
2845         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
2846         (CPP_SPEC, EXTRA_SPECS): Update.
2847         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
2848         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
2849         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
2850         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
2851         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
2852 doc:
2853         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
2854         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
2855
2856 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
2857
2858         * emit-rtl.c (global_rtl): Update comment.
2859         (const_double_htab, const_double_htab_hash,
2860         const_double_htab_hash, lookup_const_double): New.
2861         (const_int_htab_hash, const_int_htab_eq): Remove const
2862         qualifiers, which cause tons of warnings with RTL checking on.
2863         (gen_rtx_CONST_DOUBLE): Deleted.
2864         (const_double_from_real_value): New function - bears some
2865         resemblance to the former immed_real_const_1.
2866         (immed_double_const): Moved here from varasm.c and
2867         simplified.
2868         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
2869         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
2870         (gen_rtx): Use immed_double_const.
2871         (init_emit_once): Initialize the const_double_htab.  Use
2872         REAL_VALUE_FROM_INT where possible.  Can now use
2873         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
2874         * varasm.c (struct varasm_status): Remove x_const_double_chain.
2875         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
2876         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
2877         (init_varasm_status, mark_varasm_status): Don't touch
2878         x_const_double_chain.
2879
2880         * output.h: Delete prototype for clear_const_double_mem.
2881         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
2882         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
2883         const_double_from_real_value, not immed_real_const_1, and use
2884         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
2885         CONST_DOUBLE_ATOF.
2886         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
2887         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
2888         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
2889         (gen_rtx_REG): Second arg is unsigned.
2890
2891         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
2892         (excluded_rtx): New, return true for CONST_DOUBLE.
2893         (genmacro): Write nothing for excluded codes.
2894         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
2895         * expr.c (expand_expr): Likewise.
2896         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
2897         CONST_DOUBLE_CHAIN.
2898         * toplev.c (rest_of_compilation): Don't call
2899         clear_const_double_mem.
2900
2901         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
2902         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
2903         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
2904         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
2905         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
2906         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
2907         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
2908         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
2909
2910 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2911
2912         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
2913
2914 2002-05-12  Tom Tromey  <tromey@redhat.com>
2915
2916         * tree.h (copy_node): Don't mention TREE_PERMANENT.
2917
2918 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
2919
2920         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
2921         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
2922         * gensupport.h: Prototype new routines.
2923         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
2924         use of printf.
2925         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
2926         (next_comma_elt): Use scan_comma_elt.
2927
2928         * config/i386/i386.md: Use new attribute notation to break up
2929         long lines in define_attr forms.
2930
2931 2002-05-12  Richard Henderson  <rth@redhat.com>
2932
2933         * expr.c (compress_float_constant): New.
2934         (emit_move_insn): Use it.
2935         (float_extend_from_mem): New.
2936         (init_expr_once): Initialize it.
2937         * real.c (exact_real_truncate): New.
2938
2939         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
2940         dropped into memory; penalize for size.
2941         (RTX_COSTS): FLOAT_EXTEND is free.
2942         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
2943         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
2944
2945 2002-05-12  Richard Henderson  <rth@redhat.com>
2946
2947         * profile.h (profile_info): Add missing extern to declaration.
2948         * profile.c (profile_info): Define it.
2949
2950 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2951
2952         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
2953         used for DImode and TImode.
2954
2955 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2956
2957         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
2958         fake a newline.
2959
2960 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
2961
2962         * config/rs6000/rs6000.c (rs6000_default_long_calls,
2963         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
2964         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
2965         (rs6000_override_options): Handle -m(no-)longcall.
2966         (init_cumulative_args, output_mi_thunk): Check for both
2967         longcall and shortcall attributes on the function.
2968         (rs6000_attribute_table): Add "shortcall".
2969         (rs6000_handle_longcall_attribute): Update comment.
2970         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
2971         altivec_expand_ternop_builtin): Add default clauses to switches
2972         to silence warnings.
2973
2974         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
2975         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
2976         (TARGET_OPTIONS): Add longcall and no-longcall.
2977
2978         * config/rs6000/rs6000.md (call_nonlocal_sysv,
2979         call_value_nonlocal_sysv): Split by alternatives.  One pair
2980         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
2981         the call cookie.  The other pair accepts only LR/CTR and has
2982         no restriction.
2983
2984         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
2985         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
2986         tmake_file.
2987         * config/rs6000/rs6000-c.c: New file.
2988         * config/rs6000/t-rs6000-c-rule: New file.
2989         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
2990         Prototype rs6000_pragma_longcall.
2991
2992         * doc/extend.texi: Document shortcall attribute.
2993         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
2994
2995 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2996
2997         * reorg.c (dbr_schedule): Remove unnecessary test.
2998
2999 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
3000
3001         * i386.md (testsi to testqi spliters): New.
3002
3003         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
3004
3005         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
3006
3007         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
3008
3009         * basic-block.h: New flag EDGE_CAN_FALLTHRU
3010         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
3011         that can be made fallthru.
3012
3013         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
3014
3015         * cfglayout.c (cleanup_unconditional_jumps): New static function.
3016         (cfg_layout_initialize): Use it.
3017
3018 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3019
3020         * config/avr/avr.c (avr_mcu_types): Update supported devices.
3021         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
3022         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
3023
3024 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
3025
3026         * dbxout.c: Fix formatting.
3027         * dependence.c: Likewise.
3028         * df.c: Likewise.
3029         * diagnostic.c: Likewise.
3030         * doloop.c: Likewise.
3031         * dominance.c: Likewise.
3032         * doschk.c: Likewise.
3033         * dwarf2asm.c: Likewise.
3034         * dwarf2out.c: Likewise.
3035         * dwarfout.c: Likewise.
3036
3037 2002-05-10  Richard Henderson  <rth@redhat.com>
3038
3039         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
3040         Convert integers constants as needed.  Replace "nwords" field with
3041         "sizeof_bb".
3042         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
3043         * function.h: Fix typo in comment.
3044         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
3045
3046 2002-05-10  Roger Sayle  <roger@eyesopen.com>
3047
3048         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
3049         into the equivalent (signed char)c > 0.
3050
3051 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
3052
3053         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
3054         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
3055         (struct prefetch_info): Fix spelling of member bytes_accessed.
3056         (emit_prefetch_instructions): Make dump messages more regular;
3057         restructure code to add more dump messages; use new macros for
3058         heuristics. (There are no code generation changes in any of this).
3059
3060 2002-05-10  David S. Miller  <davem@redhat.com>
3061
3062         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
3063         (struct rtx_def): Update unchanging flag comment.
3064         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
3065         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
3066         to be handled to INSN too.
3067         (dbr_schedule): Likewise.
3068         * resource.c (next_insn_no_annul): Likewise.
3069
3070         * cse.c (rtx_cost): Remove multiplication by power of 2 special
3071         casing.
3072
3073 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3074
3075         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
3076         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
3077         (possibly) work around broken /bin/sh.
3078
3079 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3080
3081         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
3082         . as N64/N32 libgcc_s.so subdirs.
3083
3084 2002-05-10  David S. Miller  <davem@redhat.com>
3085
3086         * config/sparc/sparc.md: Use define_constants for unspec numbers.
3087
3088         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
3089         more accurately.
3090         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
3091         comment.
3092         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
3093         * doc/rtl.texi: Document these macros more accurately.
3094         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
3095         JUMP_INSNs and CALL_INSNs.
3096         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
3097         or INSN_FROM_TARGET_P if the code is appropriate.
3098
3099 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
3100
3101         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
3102         before using SYMBOL_REF_FLAG (addr).
3103
3104         * config/avr/avr-protos.h (avr_io_address_p): Declare.
3105         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
3106         Make non-static.  Update all callers.
3107         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
3108         New insns to clear/set/test a single bit in I/O address space.
3109
3110 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3111
3112         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
3113
3114 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3115
3116         * Makefile.in: Update.
3117         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3118         builtin_define_std): New.
3119         (c_common_init): Register CPP builtins callback.
3120         * c-common.h (flag_iso, flag_undef): New.
3121         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3122         * c-lex.c: Don't include target.h.
3123         (cb_register_builtins): Move to c-common.c.
3124         (init_c_lex): Don't register hook here.
3125         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3126         (cpp_define, cpp_assert): Remove.
3127         * gcc.c (cc1_options): Pass -undef to front end.
3128         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3129         (TARGET_INITIALIZER): Update.
3130         * target.h (struct cpp_reader): Don't predeclare.
3131         (struct gcc_target): Remove cpp builtin hook.
3132         * tree.c (default_register_cpp_builtins): Remove.
3133 doc:
3134         * tm.texi: Update.
3135
3136 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3137
3138         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3139
3140 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3141
3142         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3143         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3144
3145 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3146
3147         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3148         * config/sparc/libgcc-sparc-glibc.ver: New file.
3149         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3150         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3151
3152 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3153
3154         PR target/6429
3155         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3156         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3157         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3158         base multilibs.
3159         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3160         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3161         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3162         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3163
3164 2002-05-09  Richard Henderson  <rth@redhat.com>
3165
3166         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3167         * config/ia64/ia64.c: Likewise.
3168
3169 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3170
3171         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3172         (save_restore_insns): Likewise.
3173         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3174         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3175
3176 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@redhat.com)
3177
3178         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3179         * i386.md: Move scheduling information into new files.
3180
3181         * i386.md (type attribute): Add "rotate" for rotate insns.
3182         (rotate insns): Set type to "rotate".
3183         (various attributes and function units): Treat rotate like shift.
3184         (pent_pair attribute): Only rotates by one bit position are
3185         pairable.
3186         (sbb insns): Explicitly set pent_pair attribute on a couple
3187         that were missing it.
3188
3189 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3190
3191         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3192         make sure that buffer starts on odd word address.
3193         (sh_va_arg): Skip odd fp registers when reading a double precision
3194         value.
3195
3196 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3197
3198         * tree.h (preserve_data, object_permanent_p, type_precision):
3199         Remove.
3200
3201 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3202
3203         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3204         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3205 doc:
3206         * cpp.texi: Update for removal of obsolete features.
3207
3208 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3209                           Jeffrey A Law  (law@redhat.com)
3210
3211         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3212         the DFA interface for Pentium processors.
3213         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3214         (attr_pent_pair, ix86_pent_find_pair): Remove.
3215         (ix86_sched_reorder_pentium): Remove.
3216         (ix86_sched_reorder): Remove reordering for Pentium.
3217         * i386.md (Pentium scheduling): Rewrite using DFA description.
3218
3219 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3220
3221         * cfganal.c (can_fallthru): Fix fast path.
3222         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3223         with edges to the next block.
3224
3225 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3226                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3227
3228         * final.c (end_final): Use C trees to output data structures for profiling.
3229
3230         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3231         (profile.o): New dependency profile.h
3232         (final.o): New dependency profile.h
3233         * profile.h: New file. New global structure profile_info.
3234         * final.h (count_edges_instrumented_now): Declare.
3235         (current_function_cfg_checksum): Declare.
3236         (function_list): New structure.
3237         (functions_head, functions_tail): New static variables.
3238         (end_final): Emits more data, removed some -ax stuff.
3239         (final): Stores function names and chcksums.
3240         * gcov-io.h (__write_gcov_string): New function.
3241         (__read_gcov_string): New function.
3242         * gcov.c (read_profile): New function.
3243         (create_program_flow_graph): Uses read_profile instead of reading
3244         da_file.
3245         (read_files): Removed da_file checking, it's done by read_profile now.
3246         * libgcc2.c (bb_function_info): New structure.
3247         (bb): New field in structure, removed some -ax stuff.
3248         (__bb_exit_func): Changed structure of da_file.
3249         * profile.c (count_edges_instrumented_now): New global variable.
3250         (current_function_cfg_checksum): New global variable.
3251         (max_counter_in_program): New global variable.
3252         (get_exec_counts): New function.
3253         (compute_checksum): New function.
3254         (instrument_edges): Sets count_edges_instrumented_now.
3255         (compute_branch_probabilities): Uses get_exec_counts instead of
3256         reading da_file.
3257         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3258         (init_branch_prob): Removed da_file checking, done in get_exec_counts
3259         now.
3260         (end_branch_prob): Removed da_file checking, done in get_exec_counts
3261         now.
3262         * gcov.texi: Updated information about gcov file format.
3263
3264 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3265
3266         * sbitmap.c: Fix formatting.
3267         * scan.c: Likewise.
3268         * scan-decls.c: Likewise.
3269         * sched-deps.c: Likewise.
3270         * sched-ebb.c: Likewise.
3271         * sched-rgn.c: Likewise.
3272         * sched-vis.c: Likewise.
3273         * sdbout.c: Likewise.
3274         * sibcall.c: Likewise.
3275         * simplify-rtx.c: Likewise.
3276         * ssa.c: Likewise.
3277         * ssa-ccp.c: Likewise.
3278         * ssa-dce.c: Likewise.
3279         * stmt.c: Likewise.
3280         * stor-layout.c: Likewise.
3281         * stringpool.c: Likewise.
3282
3283 2002-05-09  David S. Miller  <davem@redhat.com>
3284
3285         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3286
3287 2002-05-07  David S. Miller  <davem@redhat.com>
3288
3289         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3290         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3291         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3292         library implementation clobbers the output before the inputs
3293         are fully consumed, use stack temporary for the output.
3294
3295 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
3296
3297         * config/netbsd.h (CPP_SPEC): Remove.
3298         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3299         * config/i386/netbsd.h (CPP_SPEC): Define.
3300         * config/ns32k/netbsd.h (CPP_SPEC): Define.
3301         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3302         * config/sparc/netbsd.h (CPP_SPEC): Define.
3303         * config/vax/netbsd.h (CPP_SPEC): Define.
3304
3305 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3306
3307         * read-rtl.c: Fix formatting.
3308         * real.c: Likewise.
3309         * recog.c: Likewise.
3310         * regclass.c: Likewise.
3311         * regmove.c: Likewise.
3312         * reg-stack.c: Likewise.
3313         * reload1.c: Likewise.
3314         * reload.c: Likewise.
3315         * resource.c: Likewise.
3316         * rtlanal.c: Likewise.
3317         * rtl.c: Likewise.
3318         * rtl-error.c: Likewise.
3319
3320 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3321
3322         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3323         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3324
3325 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
3326
3327         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3328         use __SSE2__ macro instead.
3329         * config/i386/xmmintrin.h: Likewise.
3330
3331 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
3332
3333         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3334         and use it in all invocations of these macros.  Clean up comments.
3335         * rtl.c (rtl_check_failed_flag): Add an argument for the name
3336         of the flag access macro whose check failed.
3337         * doc/rtl.texi (Flags): Document additional flag uses.
3338
3339 2002-05-08  Robert Spier <rspier@pobox.com>
3340             Neil Booth  <neil@daikokuya.demon.co.uk>
3341
3342         PR preprocessor/6521
3343         * cppfiles.c (handle_missing_header): Don't do anything
3344         different for <> includes.
3345 doc:
3346         * cppopts.texi: Update documentation for -MG.
3347
3348 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3349
3350         * cpplex.c (cpp_interpret_charconst): Truncate as well as
3351         sign-extend.
3352 doc:
3353         * cpp.texi: Clarify multichar charconst valuation.
3354
3355 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3356
3357         * doc/invoke.texi: Document -mwindiss option.
3358
3359 2002-05-08  Jason Merrill  <jason@redhat.com>
3360
3361         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3362
3363         * dwarf2out.c (gen_type_die): Abort on broken recursion.
3364
3365         PR c++/6381
3366         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3367         REAL_CST.
3368
3369 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
3370
3371         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3372         little-endian multilibs to override arm/thumb multilibs.
3373         Do not build hardware floating point multilibs, nor apcs-26
3374         multilibs for the Thumb.
3375
3376 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3377
3378         PR c/6569.
3379         * varasm.c (mark_weak): New function.
3380         (merge_weak): Use it.  Do not call declare_weak.
3381         (declare_weak): Use merge_weak.
3382
3383 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3384
3385         * cse.c (dead_libcall_p): Update counts.
3386         (delete_trivially_dead_insns): Update call of dead_libcall_p.
3387
3388 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3389
3390         * cfglayout.c (function_tail_eff_head): Rename to ...
3391         (function_footer): ... this one.
3392         (unlink_insn_chain): New functions.
3393         (label_for_bb): Only call block_label and emit debug message.
3394         (record_effective_endpoints): Actually unlink the headers and footers.
3395         (fixup_reorder_cahin): Re-insert the unlinked sequences.
3396         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3397         * cfglayout.h (struct reorder_block_def): New fields footer/header;
3398         remove eff_head/eff_end.
3399         * rtl.h (set_first_insn): Declare.
3400         * emit-rtl.c (set_first_insn): New function.
3401
3402         * cfglayout.c (fixup_reorder_chain): Dump duplicated
3403         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3404         cfg_layout_duplicate_bb): New global function.
3405         (duplicate_insn_chain): New static function.
3406         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3407         cfg_layout_duplicate_bb): Declare.
3408         (struct reorder_block_def): Add "original" field.
3409         * emit-rtl.c (emit_copy_of_insn_after): New function.
3410         * rtl.h (emit_copy_of_insn_after): Declare.
3411
3412         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3413         (fixup_reorder_chain): properly handle edges to exit block.
3414
3415 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3416                                Jan Hubicka  <jh@suse.cz>
3417
3418         * basic-block.h (note_prediction_to_br_prob): declare.
3419         * c-semantics.c: Inlucde predit.h
3420         (expand_stmt): predict GOTO_STMT as not taken.
3421         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3422         (cleanup_cfg): Do not free tail_recursion_list.
3423         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3424         (flow_delete_block): Kill predictions past end of basic block.
3425         * output.h (delete_unreachable_blocks): Declare.
3426         * predict.c (predicted_by_p, process_note_predictions,
3427         process_note_prediction, last_block_p): New function.
3428         (estimate_probability): Bypass loop on PRED_CONTINUE;
3429         do not handle noreturn heuristics; kill PRED_RETURN; add
3430         PRED_EARLY_RETURN.
3431         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3432         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3433         * predict.h (IS_TAKEN): New constant.
3434         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3435         * rtl.c (NOTE_INSN_PREDICTION): New.
3436         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3437         New macro.
3438         (insn_note): add NOTE_INSN_PREDICTION.
3439         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3440         CFG; free tail_recursion_label_list.
3441         * stmt.c: Include predict.h;
3442         (return_prediction): New.
3443         (expand_value_return): Use it.
3444         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3445
3446 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
3447
3448         * config/mips/mips.md: Name the unspecs with define_constant.
3449         (*HILO_delay): Rename to 'hilo_delay' (no star).
3450         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3451         (reload_outdi, reload_outsi): Likewise.
3452
3453 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
3454
3455         * toplev.c: Fix formatting.
3456
3457 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
3458
3459         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3460         * configure.in (ac_rtlflag_checking): New.
3461         * doc/install.texi (--enable-checking): Document RTL flag checking.
3462
3463 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3464
3465         * c-common.c (c_common_init): Set options->unsigned_wchar.
3466         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3467         group target dependencies.
3468         (init_builtins, cpp_handle_option): Update.
3469         * cpplex.c (cpp_interpret_charconst): Update.
3470         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3471         signed_char to unsigned_char, group target dependencies.
3472         * defaults.h (WCHAR_UNSIGNED): Remove.
3473         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3474 config:
3475         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3476         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3477         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3478         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3479         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3480 doc:
3481         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3482
3483 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3484
3485         * fixinc/inclhack.def (windiss_math1): New fix.
3486         (windiss_math2): Likewise.
3487         (windiss_valist): Likewise.
3488         * fixinc/fixincl.x: Regenerated.
3489
3490 2002-05-07  Andreas Jaeger  <aj@suse.de>
3491
3492         * genautomata.c (output_internal_min_issue_delay_func): Add
3493         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3494         (output_internal_trans_func): Likewise.
3495
3496 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
3497
3498         * pa.c (hppa_profile_hook): Use force_reg to get the address
3499         of the profile hook into an appropriate pseudo register.
3500
3501 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3502
3503         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3504         (LINK_START_SPEC): Handle it.
3505         (LINK_OS_SPEC): Likewise.
3506         (CPP_SPEC): Likewise.
3507         (STARTFILE_SPEC): Likewise.
3508         (LIB_SPEC): Likewise.
3509         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
3510         all platforms.
3511         (CRTSAVRES_DEFAULT_SPEC): New macro.
3512         (LIB_WINDISS_SPEC): New macro.
3513         (CPP_OS_WINDISS_SPEC): Likewise.
3514         (STARTFILE_WINDISS_SPEC): Likewise.
3515         (ENDFILE_WINDISS_SPEC): Likewise.
3516         (LINK_START_WINDISS_SPEC): Likewise.
3517         (LINK_OS_WINDISS_SPEC): Likewise.
3518         * config/rs6000/windiss.h: New file.
3519
3520 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
3521
3522         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3523
3524 2002-05-06  David S. Miller  <davem@redhat.com>
3525
3526         * config/sparc/sparc.md (shift insns): Do not mask off
3527         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3528         take care of it.
3529
3530 2002-05-06  Richard Henderson  <rth@redhat.com>
3531
3532         PR c++/6212
3533         * expr.c (highest_pow2_factor_for_type): New.
3534         (expand_assignment): Use it.
3535
3536 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
3537
3538         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3539         unspec_volatile.
3540         ("altivec_mfvscr"): Same.
3541
3542 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3543
3544         * rtl.h (struct rtx_def): Update comments.
3545         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
3546         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
3547         RTL_FLAG_CHECK macros with list of expected RTL codes.
3548         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3549         (rtl_check_failed_flag): New.
3550         * reload1.c (reload): Use REG macro before changing rtx to MEM.
3551         (reload_cse_noop_set_p): Check rtx code before using access macro.
3552         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3553         before using access macro.
3554
3555 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3556
3557         * doc/rtl.texi (Flags): Update to reflect current usage.
3558
3559 2002-05-06  Roger Sayle  <roger@eyesopen.com>
3560
3561         PR opt/3995
3562         * fold-const.c (sign_bit_p): New function.
3563         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3564         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3565         Reapply fold when converting (A & C) == C into (A & C) != 0.
3566         (fold_binary_op_with_conditional_arg): Fix typo in comment.
3567
3568 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3569
3570         * c-common.c (warn_multichar): New.
3571         (c_common_init): Set CPP's warn_multichar.
3572         * c-common.h (warn_multichar): New.
3573         * c-decl.c (warn_multichar): Remove.
3574         * c-lex.c (lex_charconst): Update.
3575         * c-tree.h (warn_multichar): Remove.
3576         * cppexp.c (eval_token): Sign-extend charconst value.
3577         * cppinit.c (cpp_create_reader): Set warn_multichar.
3578         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3579         each character.  Update prototype.  Sign-extend the result.
3580         * cpplib.h: Fix conditions.
3581         (struct cpp_options): Add new warning flag.
3582         (cpp_interpret_charconst): Update prototype.
3583 doc:
3584         * cpp.texi: Update documentation.
3585
3586 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
3587
3588         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3589         Fix typo in usage of allof instead of unit.
3590
3591 2002-05-06  Richard Henderson  <rth@redhat.com>
3592
3593         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3594         and any jump or call for IN.
3595
3596 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
3597
3598         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3599         -msse2.
3600         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3601
3602 2002-05-06  Roger Sayle  <roger@eyesopen.com>
3603
3604         * fold-const.c (lshift-double): Cast the high word to an unsigned
3605         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3606         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3607         avoid compiler warning.  (fold): Remove redundant code from
3608         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3609
3610 2002-05-06  Jeff Law  <law@redhat.com>
3611
3612         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3613         * pa.c (pa_adjust_cost): Remove all true dependency cost
3614         adjustments.  Also remove support for non-DFA scheduling.
3615         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3616         to adjust true dependency costs.  Update various comments.
3617         (7100lc, 7200, 7300 scheduling): Simplify by combining the
3618         FP ALU & MPY units into a single unit.
3619
3620 2002-05-06  Catherine Moore  <clm@redhat.com>
3621
3622         * config/v850/v850.c (compute_register_save_size): Make sure
3623         to count all of the registers that will be saved.
3624
3625 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3626
3627         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3628
3629 2002-05-06  David S. Miller  <davem@redhat.com>
3630
3631         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3632         allow result to overlap input operands in memory.
3633
3634 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3635
3636 doc:
3637         * cpp.texi: Update multichar charconst docs.
3638
3639 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3640
3641         * cpplex.c (cpp_interpret_charconst): Sign-extend each
3642         character.  Don't ignore excess characters.  Treat
3643         multicharacter character constants as signed.
3644         (cpp_parse_escape): Clarify diagnostic.
3645
3646 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
3647
3648         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3649         use add instead of shift.
3650         (ashldi3_sp64): Likewise.
3651         (ashlsi3_const1, ashldi3_const1): Remove.
3652         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3653         * config/sparc/sparc.c (const1_operand): New.
3654
3655 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
3656
3657         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3658
3659 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
3660
3661         PR target/6561
3662         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3663
3664 2002-05-05  Richard Henderson  <rth@redhat.com>
3665
3666         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3667         memory latency adjustments.
3668         (alpha_variable_issue): Remove.
3669         (alpha_use_dfa_pipeline_interface): New.
3670         (alpha_multipass_dfa_lookahead): New.
3671         * config/alpha/alpha.md: Remove define_function_unit scheduling;
3672         include new dfa scheduling.
3673         (attr type): Add none.
3674         (blockage): Use it.
3675         * config/alpha/ev4.md: New.
3676         * config/alpha/ev5.md: New.
3677         * config/alpha/ev6.md: New.
3678
3679 2002-05-05  David S. Miller  <davem@redhat.com>
3680
3681         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3682
3683 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
3684
3685         * cse.c: Fix formatting.
3686         * emit-rtl.c: Likewise.
3687
3688 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
3689
3690         * genautomata.c (initiate_states): Add additional guard to
3691         initialize `units_array'.
3692
3693 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
3694
3695         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3696         process_unit_to_form_the_same_automaton_unit_lists,
3697         form_the_same_automaton_unit_lists
3698         check_unit_distributions_to_automata): New prototypes and
3699         functions.
3700         (check_automata): Rename it into `check_automata_insn_issues'.
3701         (unit_decl): New fields `the_same_automaton_unit' and
3702         `the_same_automaton_message_reported_p'.
3703         (unit_decl_t): New typedef.
3704         (the_same_automaton_lists): New gloval variable.
3705         (unit_regexp, unit_set_el, units_array, units_cmp,
3706         output_get_cpu_unit_code_func): Use the typedef.
3707         (evaluate_max_reserv_cycles): Increment
3708         `description->max_insn_reserv_cycles'.
3709         (initiate_states): Don't increment `max_cycles_num'.
3710         (transform_insn_regexps): Move code around transformation of
3711         regexps from `generate'.
3712         (generate): Remove call of `transform_insn_regexps'.
3713         (expand_automata): Call `transform_insn_regexps' and
3714         `check_unit_distributions_to_automata'.  Check errors before
3715         `generate'.
3716
3717         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3718         automaton `ultrasparc3_1'.
3719
3720 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3721
3722         * c-common.c (c_common_init): Set up CPP arithmetic.
3723         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3724         something reasonable for the host.
3725         (sanity_checks): Add checks.
3726         (cpp_read_main_file): Call sanity_checks() from here...
3727         (cpp_post_options): ... not here.
3728         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
3729         * cpplib.h (struct cpp_options): New member int_precision.
3730
3731 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3732
3733         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
3734
3735 2002-05-04  David S. Miller  <davem@redhat.com>
3736
3737         * config/sparc/linux.h, config/sparc/linux64.h
3738         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
3739
3740         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
3741         more RTX codes.
3742         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
3743
3744         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
3745         of SETs.
3746
3747 2002-05-05  Tim Josling  <tej@melbpc.org.au>
3748
3749         * treelang; New directory for new sample language treelang.
3750
3751 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3752
3753         * Makefile.in (c-lex.o): Update.
3754         * c-lex.c: Include target.h.
3755         (cb_register_builtins): New.
3756         (init_c_lex): Set builtins callback.
3757         * c-lex.h (cpp_define, cpp_assert): New prototypes.
3758         * cppinit.c (init_builtins): Use callback, including for
3759         GXX_WEAK.
3760         * cpplib.h (struct cpp_callbacks): New member.
3761         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
3762         (TARGET_INITIALIZER): Update.
3763         * target.h (struct gcc_target): New hook.
3764         * tree.c (default_register_cpp_builtins): New.
3765         * tree.h (default_register_cpp_builtins): New.
3766 doc:
3767         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
3768
3769 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3770
3771         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
3772         (cpp_post_options): Move sanity checks to...
3773         (sanity_checks): New.
3774         * cpplex.c (maybe_read_ucs): Fix prototype.
3775         (parse_string, cpp_parse_escape): Cast for %c format specifier.
3776         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
3777         if necessary.
3778
3779 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
3780
3781         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
3782         builtins.  Use V2DI patterns instead of TI for logical operations.
3783         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
3784         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
3785         (ix86_expand_builtins): Change the pattern used for movntdq.
3786         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
3787         sse2_nandv2di3): New patterns.
3788         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
3789         on operands.
3790         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
3791         (cvtdq2pd): Correct mode on operand 1.
3792         (sse2_umulsidi3): Describe without unspec.
3793         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
3794         machine modes.
3795         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
3796         (ashlv2di3): Likewise, from sse2_ashlv2di3.
3797         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
3798         ashlv4si3, ashlv2di3): Use SImode for shift count.
3799         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
3800         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
3801         New patterns.
3802         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
3803         New typedefs.
3804         (__m128i, __m128d): New macros.
3805         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
3806         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
3807         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
3808         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
3809         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
3810         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
3811         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
3812         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
3813         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
3814         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
3815         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
3816         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
3817         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
3818         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
3819         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
3820         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
3821         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
3822         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
3823         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
3824         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
3825         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
3826         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
3827         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
3828         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
3829         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
3830         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
3831         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
3832         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
3833         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
3834         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
3835         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
3836         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
3837         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
3838         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
3839         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
3840         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
3841         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
3842         functions.
3843         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
3844         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
3845
3846 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
3847
3848         * dwarf2out.c: Fix formatting.
3849         * varasm.c: Likewise.
3850
3851 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
3852
3853         PR c/6543
3854         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
3855         clobber and use result as temporary value.
3856
3857 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
3858
3859         * expr.c (force_operand): Use expand_simple_* to handle more
3860         cases.
3861
3862 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3863
3864         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
3865         and sign-extension.
3866         (lex_charconst): Update for change in prototype of
3867         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
3868         appropriately.
3869         * cpphash.h (BITS_PER_CPPCHAR_T): New.
3870         * cppinit.c (cpp_create_reader): Initialize them for no
3871         change in semantics.
3872         (cpp_post_options): Add sanity checks.
3873         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
3874         and truncation issues.  Calculate in type cppchar_t.
3875         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
3876         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
3877         run-time dependent precision correctly.  Return whether the
3878         result is signed or not.
3879         * cpplib.c (dequote_string): Use cppchar_t; update.
3880         * cpplib.h (cppchar_signed_t): New.
3881         struct cpp_options): New precision members.
3882         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
3883         * cppexp.c (eval_token): Update.
3884
3885 2002-05-03  David S. Miller  <davem@redhat.com>
3886
3887         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
3888         * config/sparc/sparc.c (sparc_rtx_costs): New function
3889         implementing RTX_COSTS and CONST_COSTS.
3890         * config/sparc/sparc.h (CONST_COSTS): Delete.
3891         (RTX_COSTS_CASES): Define.
3892         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
3893         the work.
3894
3895         * config/sparc/sparc.md (DFA schedulers): Split out...
3896         * config/sparc/cypress.md, config/sparc/hypersparc.md,
3897         config/sparc/sparclet.md, config/sparc/supersparc.md,
3898         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
3899
3900         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
3901         checks on it, always defined for Sparc.
3902
3903         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
3904         Tweak, and add more detailed comments.
3905
3906 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
3907
3908         * Re-apply patch accidentally reverted with
3909         DFA scheduler merge: remove all rules and variables to slurp
3910         source files out of libiberty and rebuild them with HOST_CC.
3911         ($(HOST_PREFIX_1)varray.o): New rule.
3912         (genattrtab rule): Word wrap.
3913
3914 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
3915
3916         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
3917         (CPP_SUBTARGET_SPEC): Define.
3918         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
3919         cpp_subtarget specs.
3920         (CPP_SPEC): Redefine to include %(cpp_subtarget).
3921
3922 2002-05-03  David S. Miller  <davem@redhat.com>
3923
3924         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
3925         * target.h (struct gcc_target): Delete cycle_display member.
3926
3927         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
3928         (rtx_needs_barrier): Delete reference to cycle_display unspec.
3929         (ia64_sched_reorder2): Mention need for cycle display handling
3930         once such notes exist.
3931
3932 2002-05-03  Richard Henderson  <rth@redhat.com>
3933
3934         * real.c (etoasc): Strip most trailing zeros for clarity.
3935         * sched-vis.c: Include real.h.
3936         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
3937         * Makefile.in (sched-vis.o): Add real.h.
3938
3939 2002-05-03  David S. Miller  <davem@redhat.com>
3940
3941         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
3942         no longer needed.
3943
3944 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
3945
3946         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
3947         when we get an out of range literal.
3948         (altivec_expand_ternop_builtin): Same.
3949         (altivec_expand_unop_builtin): Same.
3950         (altivec_expand_builtin): Same, for dss.
3951         (altivec_expand_builtin): Use trees instead of rtl when
3952         determining literal argument validity.
3953
3954 2002-05-03  David S. Miller  <davem@redhat.com>
3955
3956         Delete cycle display scheduling hook.
3957         * config/ia64/ia64.c (ia64_cycle_display,
3958         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
3959         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
3960         and use emit_insn_before instead of ia64_emit_insn_before.
3961         * config/ia64/ia64.md (unspec usage): Delete cycle display.
3962         (cycle_display): Delete insn pattern.
3963         * config/sparc/sparc.md (unspec usage): Delete cycle display.
3964         (cycle_display): Delete insn pattern.
3965         * config/sparc/sparc.c (sparc_cycle_display,
3966         TARGET_SCHED_CYCLE_DISPLAY): Delete.
3967         * doc/md.texi (cycle_display): Don't mention.
3968         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
3969
3970 2002-05-03  Richard Henderson  <rth@redhat.com>
3971
3972         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
3973         * recog.h: Declare them.
3974
3975         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
3976         * config/sparc/sparc.md: Use store_data_bypass_p instead.
3977         * config/sparc/sparc-protos.h: Update.
3978
3979 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
3980
3981         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
3982         -D__arch64__.  Add -D_LP64.
3983         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
3984         from sparc.h.
3985         (CPP_ARCH64_SPEC): Likewise.
3986         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
3987         (NO_BUILTIN_SIZE_TYPE): Undef.
3988
3989 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
3990
3991         * genautomata.c (min_issue_delay_pass_states): Change return type
3992         in the prototype.
3993         (min_issue_delay_pass_states): Change the algorithm.
3994         (min_issue_delay): Set up min_insn_issue_delay for the state.
3995         (output_min_issue_delay_table): Interchange the nested loops and
3996         and initiate min_insn_issue_delay for states.
3997
3998 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
3999
4000         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
4001         jump is simplejump.
4002
4003 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
4004
4005         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
4006         sequence.
4007
4008 2002-05-03  Richard Henderson  <rth@redhat.com>
4009
4010         PR opt/6534
4011         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
4012         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
4013         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
4014         code before JUMP, not EARLIEST.
4015
4016 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4017
4018         * c-format.c (check_format_info_main): Don't check for presence of
4019         parameter for * width until after operand number has been read,
4020         and only check for it if format parameters are available.
4021         Fixes PR c/6547.
4022
4023 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
4024
4025         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
4026         (LINK_SPEC): Undef before defining.
4027
4028 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4029
4030         PR preprocessor/6489
4031         * tradcpp.c (fixup_newlines): New.
4032         (main, finclude): Use it.
4033
4034 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
4035
4036         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
4037         * config/mips/mips.c (mips_unique_section): Strip encoding from
4038         decl name.
4039
4040 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4041
4042         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
4043         mode.
4044
4045 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4046
4047         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
4048         (Specific): Removed buildstats references.
4049         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
4050         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
4051         Accomodate Solaris versions beyond 8.
4052         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
4053         (Specific, *-*-solaris2.8): Removed, obsolete.
4054
4055 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
4056
4057         PR target/6542
4058         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
4059         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
4060         fill leaf_reg_remap with identity.
4061         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
4062
4063 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4064
4065         * config/h8300/crti.asm: Remove trailing spaces.
4066         * config/h8300/h8300.c: Likewise.
4067         * config/h8300/lib1funcs.asm: Likewise.
4068
4069 2002-05-02  Jason Merrill  <jason@redhat.com>
4070
4071         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
4072         * c-decl.c (c_init_decl_processing): Use it.
4073         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
4074         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
4075         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
4076
4077 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
4078
4079         * regrename.c: Fix formatting.
4080         * tree.c: Likewise.
4081
4082 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
4083
4084         * i386.md (attribute memory): Handle compares properly.
4085
4086 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
4087
4088         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
4089         to none.
4090
4091 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
4092
4093         * function.c: Fix formatting.
4094
4095 2002-05-02  Jan Hubicka  <jh@suse.cz>
4096
4097         * haifa-sched.c (schedule_insn): Print table of instructions and
4098         reservations.
4099         (sched_block): Do not print ready list at verbosity level 1.
4100         * sched-vis.c (print_insn): Make global.
4101         * sched-ebb.c (ebb_print_insn): Rename from...
4102         (print_insn): ... this one.
4103         * sched-int.h (print_insn): Declare
4104
4105 2002-05-02  Richard Henderson  <rth@redhat.com>
4106
4107         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
4108         emitted by cycle_display.
4109
4110 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
4111
4112         * doc/install.texi (*-*-freebsd*): Update to latest status.
4113
4114 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
4115
4116         PR target/6540
4117         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4118         * config/float-sparc.h: Assume 128-bit long double if
4119         __LONG_DOUBLE_128__ is defined.
4120
4121 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4122
4123         * genattrtab.c (write_function_unit_info): Add a dummy element
4124         when num_units == 0.
4125
4126 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4127
4128         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4129         TYPE_MODE (double_type_node) instead of DFmode.
4130
4131 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4132
4133         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4134         jumps post reload.
4135         * toplev.c (rest_of_compilation): Revert Richard's patch.
4136
4137 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4138
4139         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4140
4141 2002-05-02  Catherine Moore  <clm@redhat.com>
4142
4143         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4144
4145 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4146
4147         * combine.c: Fix comment typos.
4148         * expr.c: Likewise.
4149         * genautomata.c: Likewise.
4150         * stmt.c: Likewise.
4151         * tree.h: Likewise.
4152
4153 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4154
4155         * doc/install.texi: State GNAT version requirements.
4156
4157 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4158
4159         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4160         of the frame pointer or arg pointer register which strict register
4161         checking is not enabled.
4162
4163 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4164
4165         * gcc.dg/altivec-8.c: New.
4166
4167         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4168         PRE_INC and PRE_DEC for altivec modes.
4169
4170 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4171
4172         * fixinc/check.tpl(set-writable): make sure the function exists first
4173         * fixinc/inclhack.def(alpha_assert): fix test_text
4174         * fixinc/tests/base/assert.h: add in missing result
4175
4176 2002-05-01  Jeff Law  <law@redhat.com>
4177
4178         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4179         'T' constraint.
4180
4181 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4182
4183         * dbxout.c (dbxout_type): Emit size information for range types,
4184         as well, but only when using GDB extensions.
4185
4186 2002-05-01  Richard Henderson  <rth@redhat.com>
4187
4188         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4189         target-independent gnu binutils date test.
4190
4191 2002-05-01  Richard Henderson  <rth@redhat.com>
4192
4193         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4194         info before expunging the block.
4195
4196 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4197
4198         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4199         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4200         -M -or -MM is in effect.
4201
4202 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4203
4204         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4205         A29k configurations.
4206         * doc/install.texi: Update to match.
4207
4208 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4209
4210         PR bootstrap/6514
4211         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4212         for duplicates. Always loop over whole list.
4213
4214 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4215
4216         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4217
4218 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4219
4220         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4221         support routines.
4222
4223 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4224
4225         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4226
4227 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4228
4229         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4230         (nabs_nopower): Same.
4231         (floatdisf2): New pattern.
4232         (absdi2): Convert to define_insn_and_split.
4233         (nabsdi2): Same.
4234         (trunctfsf2): Same.
4235         (floatditf2): Same.
4236         (floatsitf2): Same.
4237         (fix_trunctfdi2): Same.
4238         (fix_trunctfsi2): Same.
4239
4240 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4241
4242         * doc/install.texi: Update Texinfo version requirement
4243         documentation.
4244
4245 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4246
4247         PR target/6512, PR target/5628
4248         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4249         when memory is not aligned.
4250         (movdf_insn_v9only_vis): Likewise.
4251         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4252         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4253         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4254
4255 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
4256
4257         * gcc.dg/altivec-7.c: New.
4258
4259         * config/rs6000/altivec.h: Cleanup.
4260
4261 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
4262
4263         * doc/invoke.texi (Option Summary): Add -mvrsave=.
4264         (RS/6000 and PowerPC Options): Document -mvrsave=.
4265
4266         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4267         (rs6000_altivec_vrsave_string): Same.
4268         (rs6000_override_options): Call rs6000_parse_vrsave_option.
4269         (rs6000_parse_vrsave_option): New.
4270         (rs6000_stack_info): Only generate vrsave instructions when
4271         TARGET_ALTIVEC_VRSAVE.
4272
4273         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4274         (rs6000_altivec_vrsave_string): Define extern.
4275         (rs6000_altivec_vrsave): Same.
4276         (TARGET_ALTIVEC_VRSAVE): New.
4277
4278 2002-04-30  Richard Henderson  <rth@redhat.com>
4279
4280         PR opt/6516
4281         * toplev.c (rest_of_compilation): Don't run cross-jump before
4282         bb-reorder.
4283
4284 2002-04-30  Tom Rix  <trix@redhat.com>
4285
4286         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4287         check which_alternative.
4288
4289 2002-04-30  Kazu Hirata  <kazu@hxi.com>
4290
4291         * cpplex.c: Fix comment formatting.
4292         * function.c: Likewise.
4293         * integrate.c: Likewise.
4294         * regrename.c: Likewise.
4295         * sibcall.c: Likewise.
4296         * simplify-rtx.c: Likewise.
4297         * tree-inline.c: Likewise.
4298
4299 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4300
4301         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4302         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4303         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4304         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4305         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4306         * pa/x-ada: New file.  Define ADA_CFLAGS.
4307
4308 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
4309
4310         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4311         from MMIX_LAST_REGISTER_FILE_REGNUM.
4312         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4313         (struct machine_function): New member highest_saved_stack_register
4314         previously static variable in mmix.c.
4315         (MACHINE_DEPENDENT_REORG): Define.
4316         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4317         (MMIX_OUTPUT_REGNO): New.
4318         (mmix_target_asm_function_prologue): Move calculation of last used
4319         saved-stack-register into...
4320         (mmix_machine_dependent_reorg): New function.  Update to also handle
4321         !TARGET_ABI_GNU.
4322         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4323         register names, simplify somewhat by new variable regno.
4324         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
4325         register.
4326         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4327         emitting register names.
4328         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4329         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4330         Remove fixed FIXME.
4331         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4332         Declare.
4333
4334         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4335
4336 2002-04-30  Richard Henderson  <rth@redhat.com>
4337
4338         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4339         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4340         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4341         emit_tfmode_cvt): New.
4342         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4343         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4344         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4345         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4346         * config/sparc/sparc-protos.h: Update.
4347
4348 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
4349
4350         * install.texi (Final install): Add to the list of info to include
4351         in a report of a successful bootstrap, and add link to 3.1 list.
4352
4353 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
4354
4355         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4356         (mode): Add vector modes
4357         (i387): Kill attribute.
4358         (unit): New attribute.
4359         (length_immediate): Grok new types.
4360         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4361         (modrm): Use "unit".
4362         (memory): Handle MMX/SSE properly.
4363         (scheduling descriptions): Kill uses of fop1.
4364         (sse, mmx, fp patterns): Set type and mode properly.
4365
4366 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@redhat.com)
4367
4368         * pa.c (override_options): Default to PA8000 scheduling.
4369         * doc/invoke.texi (HP-PA options): Mention newly added 7300
4370         scheduling parameter.
4371
4372         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4373         handling of double precision multiplies.
4374
4375         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4376         fpdiv and fpsqrt instructions.
4377         (7200 & 7300 scheduling): Fix typo in handling of
4378         store-load and store-store penalties.
4379
4380 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4381
4382         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4383         mips.  Add two missing commas.
4384
4385 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
4386
4387         * doc/contrib.texi (Contributors): Update Paolo Carlini's
4388         and Benjamin Kosnik's entries.
4389
4390 2002-04-29  David S. Miller  <davem@redhat.com>
4391
4392         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4393         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4394         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4395         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4396
4397 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4398
4399         * combine.c (find_split_point): Use gen_int_mode.
4400
4401 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4402
4403         Merging code from dfa-branch:
4404
4405         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4406
4407         * genautomata.c (output_reserv_sets): Fix typo.
4408
4409         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
4410
4411         * genautomata.c (output_reserv_sets): Remove
4412         next_cycle_output_flag.
4413
4414         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
4415
4416         * sched-rgn.c (init_ready_list): Make the DFA code handle
4417         USE/CLOBBER insns in the same way as the traditional
4418         scheduler.
4419         (new_ready): Similarly..
4420
4421         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
4422
4423         * haifa-sched.c (schedule_block): Change the DFA state only after
4424         issuing insn.
4425
4426         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
4427
4428         * pa.c (hppa_use_dfa_pipeline_interface): New function.
4429         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4430         (override_options): Add PA7300 scheduling support.
4431         (pa_adjust_cost): Update various comments.  Properly
4432         handle anti and output dependencies when using the
4433         DFA scheduler.
4434         (pa_issue_rate): Add PA7300 scheduling support.
4435         (pa_can_combine_p): Call extract_insn before calling
4436         constrain_operands (taken from mainline tree).
4437         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4438         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
4439         descriptions using DFA descriptions.  Add PA7300
4440         scheduling support.
4441
4442         2002-03-30  David S. Miller  <davem@redhat.com>
4443
4444         Add UltraSPARC-III DFA scheduling support.
4445         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4446         Update FP conditional move on register insn patterns to use it, as
4447         appropriate.
4448         (define_attr cpu): Add ultrasparc3.
4449         (define_attr us3load_type): New, update integer load patterns to
4450         set it, as appropriate.
4451         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4452         (rest): Add UltraSPARC3 scheduling description.
4453         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4454         (PROCESSOR_ULTRASPARC3): New.
4455         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4456         ({ASM,CPP}_CPU_SPEC): Likewise.
4457         (REGISTER_MOVE_COST): Likewise.
4458         (RTX_COSTS): Likewise.
4459         * config/sparc/sparc.c (sparc_override_options,
4460         sparc_initialize_trampoline, sparc64_initialize_trampoline,
4461         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4462         sparc_issue_rate): Likewise.
4463         * config/sparc/sol2.h: Likewise.
4464         * config/sparc/sol2-sld-64.h: Likewise.
4465         * config/sparc/linux64.h: Likewise.
4466
4467         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
4468
4469         * doc/md.texi: Add comments about usage the latency time for the
4470         different dependencies and about case when two or more conditions
4471         in different define_insn_reservations returns TRUE for an insn.
4472
4473         * doc/md.texi: Add reference for automaton based pipeline
4474         description.
4475
4476         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
4477
4478         * doc/passes.texi: Add missed information about genattrtab.
4479
4480         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
4481
4482         * genautomata.c (output_automata_list_transition_code): Check
4483         automata_list on NULL.
4484
4485         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
4486
4487         * genautomata.c (output_insn_code_cases,
4488         output_automata_list_min_issue_delay_code,
4489         output_automata_list_transition_code,
4490         output_automata_list_state_alts_code): Comment the functions.
4491
4492         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
4493
4494         * genautomata.c (automata_list_el_t): New typedef.
4495         (get_free_automata_list_el,free_automata_list_el,
4496         free_automata_list, automata_list_hash, automata_list_eq_p,
4497         initiate_automata_lists, automata_list_start, automata_list_add,
4498         automata_list_finish, finish_automata_lists,
4499         output_insn_code_cases, output_automata_list_min_issue_delay_code,
4500         output_automata_list_transition_code,
4501         output_automata_list_state_alts_code, add_automaton_state,
4502         form_important_insn_automata_lists): New functions and prototypes.
4503         (insn_reserv_decl): Add members important_automata_list and
4504         processed_p.
4505         (ainsn): Add members important_p.
4506         (automata_list_el): New structure.
4507         (first_free_automata_list_el, current_automata_list,
4508         automata_list_table): New global variables.
4509         (create_ainsns): Initiate member important_p.
4510         (output_internal_min_issue_delay_func): Generate the switch and
4511         call output_insn_code_cases.
4512         (output_internal_trans_func, output_internal_state_alts_func):
4513         Ditto.
4514         (generate): Call initiate_automata_lists.
4515         (automaton_states): New global variable.
4516         (expand_automata): Call form_important_insn_automata_lists.
4517         (write_automata): Call finish_automata_lists.
4518
4519         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
4520
4521         * genautomata.c (add_excls, add_presence_absence): Check that
4522         cpu units in the sets belong the same automaton.
4523
4524         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4525         about that cpu units in the sets belong the same automaton.
4526
4527         * doc/md.texi: Ditto.
4528
4529         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
4530                     Nitin Gupta  <niting@noida.hcltech.com>
4531
4532         * config/sh/sh.c (sh_use_dfa_interface): New function.
4533
4534         (sh_issue_rate): New Function.
4535         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4536         TARGET_SCHED_ISSUE_RATE: define.
4537
4538         * config/sh/sh.md: Add DFA based pipeline description for SH4.
4539
4540         (define_attr insn_class): New attribute used for DFA
4541          scheduling.
4542         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4543         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4544          cmpeqdi_t): Likewise.
4545
4546         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4547          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4548          ex_group.
4549         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4550
4551         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
4552
4553         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4554         break.
4555
4556         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
4557
4558         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4559         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4560         necessary.
4561         (output_dfa_start_func): Initiate new variable insn_codes_length,
4562         (write_automata): Output definition of the new variable.
4563
4564         2001-10-02  David S. Miller  <davem@redhat.com>
4565
4566         * haifa-sched.c (advance_one_cycle): New function.
4567         (schedule_block): Use it.
4568         (queue_to_ready): Use it, and also make sure to advance the DFA
4569         state on all stall cycles, not just those where insn_queue links
4570         are found.
4571
4572         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
4573
4574         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
4575         non-zero if the highest-priority instruction could be scheduled.
4576         (choose_ready): Remove last argument from max_issue call.
4577
4578         2001-09-28  David S. Miller  <davem@redhat.com>
4579
4580         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4581         ultrasparc and 3 for other multi-issue sparcs.
4582
4583         2001-09-27  David S. Miller  <davem@redhat.com>
4584
4585         * config/sparc/sparc.md (cycle_display): New pattern.
4586         * config/sparc/sparc.c (sparc_cycle_display): New.
4587         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4588
4589         2001-09-25  David S. Miller  <davem@redhat.com>
4590
4591         Convert all of Sparc scheduling to DFA
4592         * config/sparc/sparc.md: Kill all define_function_unit
4593         directives and replace with DFA equivalent.
4594         * config/sparc/sparc.c (ultrasparc_adjust_cost,
4595         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4596         ultra_fpmode_conflict_exists, ultra_find_type,
4597         ultra_build_types_avail, ultra_flush_pipeline,
4598         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4599         ultrasparc_variable_issue, ultrasparc_sched_init,
4600         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4601         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4602         ultra_cur_hist, ultra_cycles_elapsed): Kill.
4603         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4604         ultrasparc_store_bypass_p): New.
4605         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4606         Declare.
4607
4608         2001-09-24  David S. Miller  <davem@redhat.com>
4609
4610         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4611         ready->vec[foo] not ready[foo].
4612
4613         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
4614
4615         * doc/md.texi: Correct examples for define_insn_reservations
4616         `mult' and `div'.
4617
4618         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
4619
4620         * genautomata.c (create_automata): Print message about creation of
4621         each automaton.
4622         (generate): Remove printing meease about creation of
4623         automata.
4624
4625         2001-09-05  David S. Miller  <davem@redhat.com>
4626
4627         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4628         * config/sparc/linux64.h: Likewise.
4629
4630         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
4631
4632         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4633         schedule_block, sched_init, sched_finish): Add missed calls of
4634         use_dfa_pipeline_interface.
4635
4636         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4637         Ditto.
4638
4639         * sched-vis.c (get_visual_tbl_length): Ditto.
4640
4641         2001-08-27  Richard Henderson  <rth@redhat.com>
4642
4643         * genattr.c (main): Emit state_t even when not doing scheduling.
4644
4645         2001-08-27  Richard Henderson  <rth@redhat.com>
4646
4647         * genautomata.c (expand_automata): Always create a description.
4648
4649         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
4650
4651         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4652         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4653         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4654         RTL constructions.
4655
4656         * genattr.c (main): New variable num_insn_reservations.  Increase
4657         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
4658         pipeline hazard recognizer interface.
4659
4660         * genattrtab.h: New file.
4661
4662         * genattrtab.c: Include genattrtab.h.
4663         (attr_printf, check_attr_test, make_internal_attr,
4664         make_numeric_value): Move protypes into genattrtab.h.  Define them
4665         as external.
4666         (num_dfa_decls): New global variable.
4667         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4668         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4669         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4670         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
4671
4672         * genautomata.c: New file.
4673
4674         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4675
4676         * sched-int.h: (curr_state): Add the external definition for
4677         automaton pipeline interface.
4678         (haifa_insn_data): Add comments for members blockage and units.
4679
4680         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4681         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4682         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4683         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4684         TARGET_SCHED_DFA_POST_CYCLE_INSN,
4685         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4686         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4687         macros.
4688         (TARGET_SCHED): Use the new macros.
4689
4690         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4691         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4692         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4693         dfa_bubble): New members in gcc_target.sched.
4694
4695         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4696         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4697         (insn_queue): Redefine it as pointer to array.
4698         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4699         INSN_QUEUE_SIZE.
4700         (max_insn_queue_index_macro_value): New variable.
4701         (curr_state, dfa_state_size, ready_try): New varaibles for
4702         automaton interface.
4703         (ready_element, ready_remove, max_issue): New function prototypes
4704         for automaton interface.
4705         (choose_ready): New function prototype.
4706         (insn_unit, blockage_range): Add comments.
4707         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4708         FUNCTION_UNITS_SIZE == 0.
4709         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4710         actual_hazard, potential_hazard): Add comments.
4711         (insn_cost): Use cost -1 as undefined value.  Remove
4712         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
4713         pipeline interface.
4714         (ready_element, ready_remove): New functions for automaton
4715         interface.
4716         (schedule_insn): Add new code for automaton pipeline interface.
4717         (queue_to_ready): Add new code for automaton pipeline interface.
4718         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4719         (debug_ready_list): Print newline when the queue is empty.
4720         (max_issue): New function for automaton pipeline interface.
4721         (choose_ready): New function.
4722         (schedule_block): Add new code for automaton pipeline interface.
4723         Print ready list before scheduling each insn.
4724         (sched_init): Add new code for automaton pipeline interface.
4725         Initiate insn cost by -1.
4726         (sched_finish): Free the current automaton state and finalize
4727         automaton pipeline interface.
4728
4729         * sched-rgn.c: Include target.h.
4730         (init_ready_list, new_ready, debug_dependencies): Add new code for
4731         automaton pipeline interface.
4732
4733         * sched-vis.c: Include target.h.
4734         (get_visual_tbl_length): Add code for automaton interface.
4735         (target_units, print_block_visualization):  Add comments.
4736
4737         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
4738         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
4739         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
4740         (getruntime.o, genautomata.o): New entries.
4741         (genattrtab.o): Add new dependency file genattrtab.h.
4742         (genattrtab): Add new dependencies.  Link it with `libm.a'.
4743         (getruntime.o, hashtab.o): New entries for canadian cross.
4744
4745         * doc/md.texi: Description of automaton based model.
4746
4747         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
4748         Add comments.
4749         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4750         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4751         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4752         TARGET_SCHED_DFA_POST_CYCLE_INSN,
4753         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4754         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4755         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
4756         hook descriptions.
4757         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
4758         MAX_DFA_ISSUE_RATE): New macro descriptions.
4759
4760         * doc/contrib.texi: Add dfa based scheduler contribution.
4761
4762         * doc/gcc.texi: Add more information about genattrtab.
4763
4764 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4765
4766         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
4767         adjust_address_nv call.
4768
4769 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
4770
4771         * doc/install.texi (Testing): Provide additional information, and
4772         a stronger encouragement, for running the testsuites.
4773
4774 2002-04-29  DJ Delorie  <dj@redhat.com>
4775
4776         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
4777         given in upper case.
4778
4779 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4780
4781         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
4782         Solaris 2 <widec.h> if missing.
4783         * fixinc/fixincl.x: Regenerate.
4784         * fixinc/tests/base/widec.h: New file.
4785
4786 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
4787
4788         * toplev.c (f_options): Add "profile" switch so that
4789         -fno-profile can be used to disable -p.
4790
4791 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
4792
4793         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
4794         UV2DImode.
4795         * tree.c (build_common_tree_nodes_2): Likewise.
4796         * tree.h (enum tree_index): Likewise.
4797         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
4798
4799         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
4800         entries.
4801         (init_mmx_sse_builtins): Initialize SSE2 builtins.
4802         (ix86_expand_builtin): Add support for SSE2 builtins.
4803         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
4804         (VALID_SSE_REG_MODE): Use it.
4805         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
4806         (enum ix86_builtins): Add SSE2 builtins.
4807         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
4808         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
4809         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
4810         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
4811         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
4812         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
4813         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
4814         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
4815         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
4816         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
4817         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
4818         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
4819         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
4820         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
4821         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
4822         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
4823         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
4824         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
4825         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
4826         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
4827         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
4828         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
4829         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
4830         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
4831         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
4832         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
4833         lfence_insn): New patterns.
4834         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
4835         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
4836
4837 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
4838
4839         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
4840
4841 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4842
4843         * doc/contrib.texi (Contributors): Add Paolo Carlini and
4844         Janis Johnson.
4845         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
4846         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
4847         and CPU instead of cpu.
4848
4849 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
4850
4851         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
4852         variables.
4853         (lang_independent_options): Add -fif-conversion, -fif-conversion2
4854         (rest_of_compilation): Do if conversion only when asked for.
4855         (parse_options_and_default_flags): Set new variables to 1 for -O1
4856         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
4857
4858 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
4859
4860         * i386.c (dbx64_register_map): Fix typo.
4861
4862 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
4863
4864         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
4865         real_one_half, real_bb_freq_max): New static variables.
4866         (debug_profile_bbauxs): Kill.
4867         (process_note_predictions): Kill unused variable.
4868         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
4869         volatile double.
4870         (propagate_freq): Use REAL_ARITHMETICS.
4871         (estimate_bb_frequencies): Likevise; init new static variables.
4872         * Makefile.in (predict.o): Add dependency on real.h
4873
4874 2002-04-28  David S. Miller  <davem@redhat.com>
4875
4876         PR target/6500
4877         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
4878         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
4879         several {reads,writes} instead.
4880         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
4881         Define.
4882
4883 2002-04-27  David S. Miller  <davem@redhat.com>
4884
4885         PR target/6494
4886         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
4887         of the stack bias.
4888
4889         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
4890         including signal.h and sys/ucontext.h, not needed.
4891
4892 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
4893
4894         * varasm.c (output_constant_def): Correct test for not calling
4895         ENCODE_SECTION_INFO for INTEGER_CST.
4896
4897 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4898
4899         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
4900         keep most cases as function eval_token.
4901         (eval_token): New function.
4902         (_cpp_parse_expr): Read token here for improved diagnostics.
4903         Don't use op_as_text.  Detect bad ':' here.
4904         (reduce): Don't detect bad ':' here.
4905         (op_as_text): Remove.
4906         * cpphash.h (_cpp_test_assertion): Change prototype.
4907         * cpplib.c (_cpp_test_assertion): Change prototype.
4908
4909 2002-04-28  Richard Henderson  <rth@redhat.com>
4910
4911         PR c/5154
4912         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
4913         (ggc_mark_rtx_children): New.
4914
4915 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
4916
4917         PR target/6496
4918         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
4919         after call peepholes for UltraSPARC.
4920         (call + jump 64-bit peepholes): Remove.
4921
4922 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4923
4924         PR c/6497
4925         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
4926         result as temporary value.
4927
4928 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
4929
4930         PR c++/6396
4931         * toplev.c (rest_of_compilation): Only run regrename and copy
4932         propagation if optimizing.
4933
4934 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
4935
4936         PR optimization/6475
4937         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
4938         register of REGNO_DECL (i).
4939         * Makefile.in (reload1.o): Add $(TREE_H).
4940
4941 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4942
4943         * cppexp.c (lex): Update to use state.skip_eval.
4944         (struct op): Remove prio and flags members.
4945         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
4946         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
4947         (LEFT_ASSOC): New macro.
4948         (optab): New table of operator priorities and flags.
4949         (SHIFT): Update.
4950         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
4951         malloc-ed parser stack.
4952         (reduce): New; reduce the operator stack.
4953         (_cpp_expand_op_stack): Expand the operator stack as necessary.
4954         * cpphash.h (struct op): Predeclare.
4955         (struct cpp_reader): New members op_stack, op_limit.
4956         (struct lexer_state): New member skip_eval.
4957         (_cpp_parse_expr): Update.
4958         (_cpp_expand_op_stack): New.
4959         * cpplib.c (do_if): Update.
4960         * cppinit.c (cpp_create_reader): Create op stack.
4961         (cpp_destroy): And destroy it.
4962         * cpplib.h (CPP_LAST_CPP_OP): Correct.
4963         (TTYPE_TABLE): Correct.
4964
4965 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4966
4967         PR c/6343
4968         * c-decl.c (duplicate_decls): Call merge_weak.
4969         * c-pragma.c (apply_pragma_weak): Warn about misuse.
4970         * output.h (merge_weak): Prototype merge_weak.
4971         * varasm.c (merge_weak): New function.
4972         (declare_weak): Make sure we don't give an error on VAR_DECLs.
4973         Mark RTL with SYMBOL_REF_WEAK.
4974
4975 2002-04-27  Kurt Garloff <garloff@suse.de>
4976
4977         * tree-inline.c (inlinable_function_p): Improve heuristics
4978         by using a smoother function to cut down allowable inlinable size.
4979         * param.def: Add parameters max-inline-insns-single,
4980         max-inline-slope, min-inline-insns that determine the exact
4981         shape of the above function.
4982         * param.h: Likewise.
4983
4984 2002-04-26  Richard Henderson  <rth@redhat.com>
4985
4986         * c-parse.in (malloced_yyss, malloced_yyvs): New.
4987         (yyoverflow): Re-add.  Set them.
4988         (free_parser_stacks): New.
4989         * c-common.h: Declare it.
4990         * c-lex.c (c_common_parse_file): Call it.
4991
4992 2002-04-26  Richard Henderson  <rth@redhat.com>
4993
4994         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
4995         for fallthru search.
4996
4997 2002-04-26  Eric Christopher  <echristo@redhat.com>
4998
4999         PR optimization/3700
5000         * config/mips/mips.c (mips_issue_rate): Define.  New function.
5001         (TARGET_SCHED_ISSUE_RATE): Use.
5002
5003 2002-04-25  David S. Miller  <davem@redhat.com>
5004
5005         PR target/6422
5006         * reorg.c (optimize_skip): Do not allow exception causing
5007         instructions to be considered for delay slots.
5008         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
5009         (relax_delay_slots): Do not try to consider exception causing
5010         instructions as redundant.
5011
5012 2002-04-26  Richard Henderson  <rth@redhat.com>
5013
5014         PR c/5225
5015         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
5016
5017 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
5018
5019         PR bootstrap/6445
5020         * config/i386/i386.md (untyped_call): Return the value in a float
5021         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
5022         TARGET_80387.
5023
5024 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
5025
5026         * tree.c (tree_int_cst_lt): Compare constants whose types differ
5027         in unsigned-ness correctly.
5028
5029 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5030
5031         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
5032         portable runtime model.
5033
5034 2002-04-26  Richard Henderson  <rth@redhat.com>
5035
5036         * c-parse.in (yyoverflow): Revert.
5037
5038 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
5039             Richard Henderson  <rth@redhat.com>
5040
5041         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
5042         result as temporary value.
5043
5044 2002-04-26  Richard Henderson  <rth@redhat.com>
5045
5046         PR c/3581
5047         * c-common.c (fix_string_type): Split out of ...
5048         (combine_strings): ... here.  Take a varray, not a tree list.
5049         (c_expand_builtin_printf): Use fix_string_type.
5050         * c-common.h: Update decls.
5051         * c-parse.in (string): Remove.  Update all uses to use STRING
5052         instead, and not call combine_strings.
5053         (yylexstring): New.
5054         (_yylex): Use it.
5055         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
5056         (build_asm_stmt): Likewise.
5057         * objc/objc-act.c (my_build_string): Use fix_string_type.
5058         (build_objc_string_object): Build varray for combine_strings.
5059
5060 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
5061
5062         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
5063         x86-64.
5064
5065 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
5066
5067         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
5068         (HAVE_NO_R_OPERAND): Remove.
5069         (HAVE_VALUE): Remove.
5070         (op_to_prio): Update.
5071         (UNARY): Don't alter flags.
5072         (_cpp_parse_expr): want_value used to indicate whether
5073         a number or unary operator is expected next.  Distinguish
5074         unary and binary +/-.
5075         (op_as_text): Update for unary operators.
5076
5077 2002-04-25  Richard Henderson  <rth@redhat.com>
5078
5079         PR c/2161
5080         * c-parse.in (yyoverflow): New.
5081
5082 2002-04-25  Richard Henderson  <rth@redhat.com>
5083
5084         PR c/2098
5085         * c-common.c (shorten_compare): Simplfy conditions leading to
5086         the generation of a warning.
5087
5088 2002-04-25  Richard Henderson  <rth@redhat.com>
5089
5090         PR c/2035
5091         * expmed.c (extract_bit_field): Fall through to generic code rather
5092         than aborting on subreg special case.
5093
5094 2002-04-25  David S. Miller  <davem@redhat.com>
5095
5096         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
5097         for DECL being NULL.
5098
5099 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
5100
5101         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
5102
5103 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
5104
5105         * c-decl.c (grokdeclarator): Remove outdated ??? note
5106         on invalid declaration of flexible array members.
5107
5108 2002-04-25  Richard Henderson  <rth@redhat.com>
5109
5110         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
5111
5112 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5113
5114         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
5115         needed by the compiler, even if they are used as global regs.
5116
5117 2002-04-25  Matt Hiller  <hiller@redhat.com>
5118
5119         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5120         functions.
5121         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5122         of the corresponding functions.
5123         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5124         New prototypes.
5125
5126 2002-04-25  Matt Hiller  <hiller@redhat.com>
5127
5128         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5129
5130         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5131         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5132         registers, adjust comment accordingly.
5133         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5134         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5135         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5136         for coprocessor registers.
5137         (ADDITIONAL_REGISTER_NAMES): Include
5138         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5139
5140         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5141         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5142         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5143         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5144         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5145
5146         (mips_char_to_class): Adjust comment to include coprocessor
5147         constraint letters.
5148
5149         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5150         New functions.
5151         (mips_reg_names, mips_regno_to_class): Include coprocessor
5152         information.
5153         (mips_sw_reg_names): Ditto, make non-static.
5154         (mips_move_1word): Handle moves to and from coprocessor registers.
5155         (mips_move_2words): Handle moves to and from coprocessor
5156         registers.
5157         (mips_class_max_nregs, mips_register_move_cost): Handle
5158         coprocessor register classes.
5159         (override_options): Initialize mips_char_to_class and
5160         mips_hard_regno_mode_ok properly for coprocessor registers.
5161
5162         * config/mips/mips.md (movdi_internal, movdi_internal2,
5163         movsi_internal1, movsi_internal2): Add constraint-sets for
5164         coprocessor registers.
5165         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5166         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5167         isn't mips.
5168         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5169         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5170         isn't mips.
5171         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5172         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5173         isn't mips.
5174         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5175         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5176         isn't mips.
5177
5178         * doc/tm.texi: Document feature.
5179
5180 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5181
5182         * integrate.c (function_attribute_inlinable_p): Simplify.
5183         Check the table pointer is not NULL.
5184
5185 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5186
5187         * doc/c-tree.texi: Fix typo in introduction.
5188
5189 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5190
5191         * c-common.h (c_common_parse_file): Update.
5192         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5193         * c-lex.c (YYDEBUG): Get from c-lex.h.
5194         (c_common_parse_file): Update.
5195         * c-lex.h (YYDEBUG, yydebug): New.
5196         * c-parse.in (YYDEBUG): Get from c-lex.h.
5197         (c_set_yydebug): Remove.
5198         * c-tree.h (c_set_yydebug): Remove.
5199         * langhooks-def.h (lhd_do_nothing_i): New.
5200         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5201         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5202         * langhooks.c  (lhd_do_nothing_i): New.
5203         (lhd_set_yydebug): Remove.
5204         * langhooks.h (struct lang_hooks): Update.
5205         * toplev.c (set_yydebug): New.
5206         (compile_file): Update call to parse_file hook.
5207         (decode_d_option): Update.
5208 objc:
5209         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5210
5211 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5212
5213         * loop.c (load_mems): Don't change the interface of called functions.
5214
5215         * calls.c (expand_call): Take current_function_pretend_args_size
5216         into account when setting argblock for sibcalls.
5217
5218 2002-04-24  Matt Hiller  <hiller@redhat.com>
5219
5220         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5221         * c-lex.c: Ditto.
5222
5223         * cpplex.c (skip_line_comment): Process comment one multibyte
5224         character at a time rather than one char at a time, if
5225         appropriate.
5226         (parse_string): Process string one multibyte character at a time
5227         rather than one char at a time, if appropriate.
5228         * c-lex.c (lex_string): Lex and copy multibyte strings
5229         appropriately.
5230         * cpplib.h (cppchar_t): Change to unsigned.
5231
5232 2002-04-24  Richard Henderson  <rth@redhat.com>
5233
5234         PR c/3467
5235         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5236         for c99.
5237
5238 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
5239
5240         * sh.c (sh_va_arg): If argument was passed by reference,
5241         dereference the pointer.
5242
5243         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5244
5245         * sh.md (divsi3_i4_media): Use match_operand for input values
5246         rather than hard registers.
5247         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5248         unnecessarily through hard registers.  Keep copies of pseudo
5249         registers outside of the libcall sequence.
5250
5251         * sh.md (casesi_shift_media): Add modes.
5252
5253         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5254         values in memory.
5255
5256 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5257
5258         * attribs.c (c_common_attribute_table): Move table and handlers
5259         to c-common.c.
5260         (format_attribute_table, lang_attribute_table,
5261         lang_attribute_common): Remove.
5262         (init_attributes): Replace NULL pointers with pointers to the
5263         empty table.
5264         (handle_packed_attribute, handle_nocommon_attribute,
5265         handle_common_attribute, handle_noreturn_attribute,
5266         handle_noinline_attribute, handle_always_inline_attribute,
5267         handle_used_attribute, handle_unused_attribute,
5268         handle_const_attribute, handle_transparent_union_attribute,
5269         handle_constructor_attribute, handle_destructor_attribute,
5270         handle_mode_attribute, handle_section_attribute,
5271         handle_aligned_attribute, handle_weak_attribute,
5272         handle_alias_attribute, handle_visibility_attribute,
5273         handle_no_instrument_function_attribute, handle_malloc_attribute,
5274         handle_no_limit_stack_attribute, handle_pure_attribute,
5275         handle_deprecated_attribute, handle_vector_size_attribute,
5276         vector_size_helper): Move to c-common.c.
5277         * c-common.c (c_common_attribute_table,
5278         handle_packed_attribute, handle_nocommon_attribute,
5279         handle_common_attribute, handle_noreturn_attribute,
5280         handle_noinline_attribute, handle_always_inline_attribute,
5281         handle_used_attribute, handle_unused_attribute,
5282         handle_const_attribute, handle_transparent_union_attribute,
5283         handle_constructor_attribute, handle_destructor_attribute,
5284         handle_mode_attribute, handle_section_attribute,
5285         handle_aligned_attribute, handle_weak_attribute,
5286         handle_alias_attribute, handle_visibility_attribute,
5287         handle_no_instrument_function_attribute, handle_malloc_attribute,
5288         handle_no_limit_stack_attribute, handle_pure_attribute,
5289         handle_deprecated_attribute, handle_vector_size_attribute,
5290         vector_size_helper): Move from attribs.c.
5291         * c-common.h (c_common_attribute_table,
5292         c_common_format_attribute_table): New.
5293         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5294         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5295         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5296         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5297         (LANG_HOOKS_INITIALIZER): Update.
5298         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5299         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5300         * target.h: Update comment.
5301         * tree.c (default_target_attribute_table): Remove.
5302         * tree.h (default_target_attribute_table, format_attribute_table,
5303         lang_attribute_table, lang_attribute_common): Remove.
5304 objc:
5305         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5306         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5307
5308 2002-04-24  Jason Merrill  <jason@redhat.com>
5309
5310         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5311         * dwarf2out.c (dwarf_attr_name): Support it.
5312         (gen_array_type_die): Emit it.
5313         (lookup_type_die): No special handling for VECTOR_TYPE.
5314         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5315
5316 2002-04-24  Richard Henderson  <rth@redhat.com>
5317
5318         * config/mips/mips.md (movdi_usd): Renumber.
5319
5320 2002-04-24  David S. Miller  <davem@redhat.com>
5321
5322         PR target/6420
5323         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5324         32-bit Sparc and current_function_returns_struct is true.
5325
5326 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5327
5328         * loop.c (canonicalize_condition): Use gen_int_mode.
5329
5330 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
5331
5332         * config/rs6000/altivec.h: Cleanup file.  Add non individual
5333         variants.
5334         (vec_vaddubm): New.
5335         (vec_vadduhm): New.
5336         (vec_vadduwm): New.
5337         (vec_vaddfp): New.
5338         (vec_vaddcuw): New.
5339         (vec_vaddubs): New.
5340         (vec_vaddsbs): New.
5341         (vec_vadduhs): New.
5342         (vec_vadduws): New.
5343         (vec_vaddsws): New.
5344         (vec_vand): New.
5345         (vec_vandc): New.
5346         (vec_vavgub): New.
5347         (vec_vavgsb): New.
5348         (vec_vavguh): New.
5349         (vec_vavgsh): New.
5350         (vec_vavguw): New.
5351         (vec_vavgsw): New.
5352         (vec_vrfip): New.
5353         (vec_vcmpbfp): New.
5354         (vec_vcmpequb): New.
5355         (vec_vcmpequh): New.
5356         (vec_vcmpequw): New.
5357         (vec_vcmpeqfp): New.
5358         (vec_vcmpgefp): New.
5359         (vec_vcmpgtub): New.
5360         (vec_vcmpgtsb): New.
5361         (vec_vcmpgtuh): New.
5362         (vec_vcmpgtsh): New.
5363         (vec_vcmpgtuw): New.
5364         (vec_vcmpgtsw): New.
5365         (vec_vcmpgtfp): New.
5366         (vec_vcmpgefp): New.
5367         (vec_vcfux): New.
5368         (vec_vcfsx): New.
5369         (vec_vctsxs): New.
5370         (vec_vctuxs): New.
5371         (vec_vexptefp): New.
5372         (vec_vrfim): New.
5373         (vec_lvx): New.
5374         (vec_lvebx): New.
5375         (vec_lvehx): New.
5376         (vec_lde): Add vector float variant.
5377         (vec_lvewx): New.
5378         (vec_lvxl): New.
5379         (vec_vlogefp): New.
5380         (vec_vmaddfp): New.
5381         (vec_vmhaddshs): New.
5382         (vec_vmaxub): New.
5383         (vec_vmaxsb): New.
5384         (vec_vmaxuh): New.
5385         (vec_vmaxsh): New.
5386         (vec_vmaxuw): New.
5387         (vec_vmaxsw): New.
5388         (vec_vmaxsw): New.
5389         (vec_vmaxfp): New.
5390         (vec_vmrghb): New.
5391         (vec_vmrghh): New.
5392         (vec_vmrghw): New.
5393         (vec_vmrglb): New.
5394         (vec_vmrglh): New.
5395         (vec_vmrglw): New.
5396         (vec_vminub): New.
5397         (vec_vminsb): New.
5398         (vec_vminuh): New.
5399         (vec_vminsh): New.
5400         (vec_vminuw): New.
5401         (vec_vminsw): New.
5402         (vec_vminfp): New.
5403         (vec_vmladduhm): New.
5404         (vec_vmhraddshs): New.
5405         (vec_msumubm): New.
5406         (vec_vmsummbm): New.
5407         (vec_vmsumuhm): New.
5408         (vec_vmsumshm): New.
5409         (vec_vmsumuhs): New.
5410         (vec_vmsumshs): New.
5411         (vec_vmuleub): New.
5412         (vec_vmulesb): New.
5413         (vec_vmuleuh): New.
5414         (vec_vmulesh): New.
5415         (vec_vmuloub): New.
5416         (vec_mulosb): New.
5417         (vec_vmulouh): New.
5418         (vec_vmulosh): New.
5419         (vec_vnmsubfp): New.
5420         (vec_vnor): New.
5421         (vec_vor): New.
5422         (vec_vpkuhum): New.
5423         (vec_vpkuwum): New.
5424         (vec_vpkpx): New.
5425         (vec_vpkuhus): New.
5426         (vec_vpkshss): New.
5427         (vec_vpkuwus): New.
5428         (vec_vpkswss): New.
5429         (vec_vpkshus): New.
5430         (vec_vpkswus): New.
5431         (vec_vperm): New.
5432         (vec_vrefp): New.
5433         (vec_vrlb): New.
5434         (vec_vrlh): New.
5435         (vec_vrlw): New.
5436         (vec_vrfin): New.
5437         (vec_vrsqrtefp): New.
5438         (vec_vsel): New.
5439         (vec_vslb): New.
5440         (vec_vslh): New.
5441         (vec_vslw): New.
5442         (vec_vsldoi): New.
5443         (vec_vsl): New.
5444         (vec_vslo): New.
5445         (vec_vspltb): New.
5446         (vec_vsplth): New.
5447         (vec_vspltw): New.
5448         (vec_vspltisb): New.
5449         (vec_vspltish): New.
5450         (vec_vspltisw): New.
5451         (vec_vsrb): New.
5452         (vec_vsrh): New.
5453         (vec_vsrw): New.
5454         (vec_vsrab): New.
5455         (vec_vsrah): New.
5456         (vec_vsraw): New.
5457         (vec_vsr): New.
5458         (vec_vsro): New.
5459         (vec_stvx): New.
5460         (vec_stvebx): New.
5461         (vec_stvehx): New.
5462         (vec_stvewx): New.
5463         (vec_stvxl): New.
5464         (vec_vsububm): New.
5465         (vec_vsubuhm): New.
5466         (vec_vsubuwm): New.
5467         (vec_vsubfp): New.
5468         (vec_vsubcuw): New.
5469         (vec_vsububs): New.
5470         (vec_vsubsbs): New.
5471         (vec_vsubuhs): New.
5472         (vec_vsubshs): New.
5473         (vec_vsubuws): New.
5474         (vec_vsubsws): New.
5475         (vec_vsum4ubs): New.
5476         (vec_vsum4sbs): New.
5477         (vec_vsum4shs): New.
5478         (vec_vsum2sws): New.
5479         (vec_vsumsws): New.
5480         (vec_vrfiz): New.
5481         (vec_vupkhsb): New.
5482         (vec_vupkhpx): New.
5483         (vec_vupkhsh): New.
5484         (vec_vupklsb): New.
5485         (vec_vupklpx): New.
5486         (vec_vupklsh): New.
5487         (vec_vxor): New.
5488
5489 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
5490
5491         PR c/5430
5492         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5493         added literals from substracted literals.
5494         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5495         (fold) [associate]: Preserve MINUS_EXPR if needed.
5496
5497 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
5498
5499         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5500         are obsoleted.
5501
5502 2002-04-23  Tom Tromey  <tromey@redhat.com>
5503
5504         * gcc.c: Added --resource.  For PR java/6314.
5505
5506 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5507
5508         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5509         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5510         these libraries.
5511
5512 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5513
5514         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5515
5516 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5517
5518         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5519         workaround.
5520         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5521         (ix86_expand_clrstr): Fix typo.
5522         * loop.c (gen_load_of_final_value): New.
5523         (loop_givs_rescan, strength_reduce, check_dbra_loop):
5524         Use it.
5525
5526 2002-04-23  Roger Sayle  <roger@eyesopen.com>
5527
5528         * builtins.c (builtin_memset_gen_str): New function.
5529         (expand_builtin_memset): Optimize the case of constant length, but
5530         unknown value.
5531
5532 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
5533
5534         * config/rs6000/altivec.h (vec_step): Remove extraneous
5535         parentheses.
5536         (vec_ctu): Cast return.
5537
5538 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
5539
5540         PR target/6413
5541         * function.h: (struct function): Add profile_label_no field.
5542         (current_function_profile_label_no): Define.
5543         * function.c: (profile_label_no): New static var.
5544         (expand_function_start): Increment it, and copy to
5545         current_function_profile_label_no.
5546         * output.h (profile_label_no): Delete.
5547         * final.c (profile_label_no): Delete.
5548         (profile_function): Use current_function_profile_label_no.
5549         (final_end_function): Don't increment profile_label_no here.
5550         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5551         profile_label_no with current_function_profile_label_no.
5552         * config/pa/pa.c (current_function_number): Delete.
5553         (pa_output_function_prologue): Don't output profile label here.
5554         (hppa_profile_hook): Use label_no param rather than
5555         current_function_number.
5556         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5557         * config/pa/pa.h: .. here.
5558         (FUNCTION_PROFILER): Output profile label here.
5559
5560 2002-04-22  Eric Christopher  <echristo@redhat.com>
5561
5562         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5563         patch of 2002-04-09 due to binutils issues.
5564         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5565
5566 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
5567
5568         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5569         constraint to 'o' for m=r and r=m alternatives.
5570         ("*movv8hi_internal1"): Same.
5571         ("*movv16qi_internal1"): Same.
5572         ("*movv4sf_internal1"): Same.
5573
5574 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
5575
5576         * rtl.h (RTX_FLAG): New macro.
5577         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5578         * final.c (alter_subreg): Use macro to access rtx flag.
5579         * integrate.c (copy_rtx_and_substitute): Use new access macro.
5580         * print-rtl.c (print_rtx): Use new access macro.
5581
5582         * cse.c (insert): Check rtx code before accessing flag.
5583
5584         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5585         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5586         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5587         convert_const_symbol_ref, make_canonical, make_alternative_compare,
5588         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5589         simplify_test_exp, optimize_attrs, simplify_by_exploding,
5590         find_and_mark_used_attributes, unmark_used_attributes,
5591         add_values_to_cover, simplify_with_current_value,
5592         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5593         copy_rtx_unchanging, main): Use new access macros.
5594
5595 2002-04-22  Tom Rix  <trix@redhat.com>
5596
5597         * expmed.c (init_expmed): Generate shifted constant once.
5598
5599 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
5600
5601         * c-lex.c (lex_charconst): Call convert to get constant in
5602         proper type; don't just smash the type field.
5603         Fixes PR c/6300.
5604
5605         * config.gcc: Add list of obsolete configurations.  Disallow
5606         building these without --enable-obsolete.
5607         * doc/install.texi: Document --enable-obsolete and obsoletion
5608         policy.  Mention obsoletion of individual targets in
5609         appropriate places.
5610
5611 2002-04-22  Richard Henderson  <rth@redhat.com>
5612
5613         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5614
5615 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
5616
5617         PR f/6138.
5618         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5619         (walk_fixup_memory_subreg): Likewise.
5620         (fixup_var_refs_insn): Adjust accordingly.
5621         (fixup_var_refs_1): Likewise.
5622
5623 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
5624
5625         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5626         LIBPATH_ARCH64_SPEC): Define.
5627         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5628         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5629         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5630         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5631
5632 2002-04-22      Joel Sherrill <joel@OARcorp.com>
5633
5634         * gthr-rtems.h: Correct prototypes to remove warnings.
5635
5636 2002-04-22  Richard Henderson  <rth@redhat.com>
5637
5638         PR c/6344
5639         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5640
5641         * gcse.c (free_insn_expr_list_list): New.
5642         (clear_modify_mem_tables): Use it.  Fix bit set usage.
5643         (canon_list_insert): Use EXPR_LISTs for expressions.
5644         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5645
5646 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5647
5648         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
5649         file change and include code to _cpp_pop_buffer.
5650         * cpphash.h (struct pending_option): Predeclare.
5651         (struct cpp_reader): New member next_include_file.
5652         (_cpp_pop_file_buffer): Update.
5653         (_cpp_push_next_buffer): Update, rename.
5654         * cppinit.c (cpp_destroy): Free include chain and pending here.
5655         (cpp_finish_options): Simplify.
5656         (_cpp_push_next_buffer): Rename and clean up.
5657         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5658         Clarify.
5659         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5660
5661 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
5662
5663         * config/rs6000/altivec.h (vec_xor): Add variant for both args
5664         being vector signed int.
5665         (vec_andc): Same.
5666         (vec_xor): Add variant for both args being vector signed char.
5667         Remove redundant variant.
5668         (vec_andc): Same.
5669
5670 2002-04-21  David S. Miller  <davem@redhat.com>
5671
5672         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5673         compare mode in output RTL.
5674
5675 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
5676
5677         * config/rs6000/rs6000.c (rs6000_override_options): Correct
5678         style and formatting of previous patch.
5679
5680 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
5681
5682         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5683         flag_pic for ABI_AIX.
5684
5685 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5686
5687         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5688         * cppfiles.c (read_include_file): Similarly.
5689         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5690         uxstrdup ustrchr, ufputs): Similarly.
5691         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5692         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5693         cpp_ideq, parse_identifier, parse_number): Similarly.
5694         * cpplib.c (struct directive, dequote_string, D, run_directive,
5695         cpp_push_buffer): Similarly.
5696         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5697         _cpp_create_definition, check_trad_stringification,
5698         cpp_macro_definition): Similarly.
5699
5700 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5701
5702         * cppmacro.c (funlike_invocation_p): Don't step back
5703         over CPP_EOF.
5704
5705 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
5706
5707         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5708         labelno.
5709
5710 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5711
5712         * doc/invoke.texi: Remove Chill references.
5713         * doc/gcc.texi: Update last modified date.
5714
5715 2002-04-20  Kazu Hirata  <kazu@hxi.com>
5716
5717         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5718         push and pop.  Replace add.l with add.w.
5719
5720 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5721
5722         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5723         multiply instructions for H8/300H case.
5724
5725 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5726
5727         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
5728         Bum three instructions from each routine.
5729
5730 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5731
5732         * Makefile.in: Update.
5733         * decl.c (push_c_function_context, pop_c_function_context,
5734         mark_c_function_context): Rename for consistency.
5735         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
5736         * c-tree.h (push_c_function_context, pop_c_function_context,
5737         mark_c_function_context): Rename for consistency.
5738         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5739         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5740         * function.c (init_lang_status, save_lang_status,
5741         restore_lang_status, mark_lang_status, free_lang_status):
5742         Move to langhooks.h.
5743         (push_function_context_to, pop_function_context_from,
5744         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
5745         Update.
5746         * function.h (init_lang_status, save_lang_status,
5747         restore_lang_status, mark_lang_status, free_lang_status):
5748         Move to langhooks.h.
5749         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
5750         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
5751         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
5752         LANG_HOOKS_FUNCTION_INITIALIZER): New.
5753         (LANG_HOOKS_INITIALIZER): Update.
5754         (lhd_do_nothing_f): New.
5755         * langhooks.h (struct lang_hooks_for_functions): New.
5756         (struct lang_hooks): New hooks.
5757         * langhooks.c (lhd_do_nothing_f): New.
5758 objc:
5759         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5760         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5761
5762 2002-04-19  David S. Miller  <davem@redhat.com>
5763
5764         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
5765         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
5766
5767 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
5768
5769         PR optimization/3756
5770         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
5771         x = ((int) y < 0) ? cst1 : cst2.
5772
5773 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
5774
5775         PR c/6358
5776         * function.c: Reapply patch for c/6358.
5777         (expand_function_end): Copy decl_rtl's mode, not
5778         current_function_return_rtx mode.
5779
5780 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
5781
5782         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
5783         targets.
5784
5785 2002-04-19  Tom Tromey  <tromey@redhat.com>
5786
5787         * doc/install.texi (Specific): Update status of Solaris 2.8.
5788         For PR libgcj/6158.
5789
5790 2002-04-19  Andreas Schwab  <schwab@suse.de>
5791
5792         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
5793         (PUT_REAL): Restore old definition.
5794
5795 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
5796             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5797
5798         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
5799         binutils 2.11.2 and higher generate smaller binaries than Sun's
5800         native tools.
5801
5802 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
5803
5804         PR c++/6352
5805         * toplev.c (rest_of_compilation): Do not defer functions for which
5806         TREE_SYMBOL_REFERENCED has already been set.
5807
5808 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
5809
5810         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
5811         alternative.
5812
5813 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5814
5815         * builtins.c: Include langhooks.h.
5816         (lang_type_promotes_to): Remove.
5817         (expand_builtin_va_arg): Use new hook.
5818         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
5819         (simple_type_promotes_to): Move to c-typeck.c.
5820         * c-common.h (simple_type_promotes_to): Remove.
5821         * c-decl.c (duplicate_decls, grokdeclarator): Update.
5822         * c-format.c: Include langhooks.h.
5823         (check_format_types): Update.
5824         * c-tree.h (c_type_promotes_to): New.
5825         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
5826         (type_lists_compatible_p): Update.
5827         * langhooks-def.h (lhd_type_promotes_to): New.
5828         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
5829         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5830         * langhooks.c (lhd_type_promotes_to): New.
5831         * langhooks.h (struct lang_hooks_for_types): New hook.
5832         * tree.h (lang_type_promotes_to): Remove.
5833 objc:
5834         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
5835
5836 2002-04-18  Richard Henderson  <rth@redhat.com>
5837
5838         * function.c: Revert patch for c/6358.
5839
5840 2002-04-18  Richard Henderson  <rth@redhat.com>
5841
5842         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
5843         blocks.  Handle multiple references to the TRAP block.  Handle
5844         non-adjacent THEN and OTHER blocks.
5845
5846 2002-04-18  Richard Henderson  <rth@redhat.com>
5847
5848         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
5849         crash with no type for by-mode libcalls.
5850
5851         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
5852
5853 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
5854
5855         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
5856         __xtensa_nonlocal_goto): Use a syscall instructions to flush
5857         the register windows.
5858
5859 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
5860
5861         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
5862         appropriate.  Document need for extended precision even when
5863         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
5864         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
5865         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
5866         instead of relying on later syntax error when REAL_WIDTH > 5.
5867         * real.c: Define NE based only on whether or not we have a
5868         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
5869         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
5870         define GET_REAL and PUT_REAL as simple memcpy operations; no
5871         need to byteswap or round.
5872         Use #error instead of #ifdef-ing out the entire file, for
5873         prompt error detection.
5874
5875         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
5876
5877 2002-04-18  David S. Miller  <davem@redhat.com>
5878
5879         * config/sparc/sparc.h (BRANCH_COST): Define.
5880
5881         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
5882         does it.
5883
5884 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
5885
5886         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
5887         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
5888         propagate_block calls after relaxation loop using new variable
5889         stabilized_prop_flags.
5890
5891 2002-04-18  Richard Henderson  <rth@redhat.com>
5892
5893         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
5894         (ia64_va_arg): Expect variable sized types by reference.
5895         * config/ia64/ia64-protos.h: Update.
5896         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
5897         ia64_function_arg_pass_by_reference.
5898
5899 2002-04-18  Richard Henderson  <rth@redhat.com>
5900
5901         * ifcvt.c: Include except.h.
5902         (block_has_only_trap): Break out from find_cond_trap.
5903         (find_cond_trap): Use it.  Always delete the trap block.
5904         (merge_if_block): Allow then block null.  Be less simplistic about
5905         what insns can end a block.
5906         * Makefile.in (ifcvt.o): Depend on except.h.
5907
5908         * config/ia64/ia64.md (trap, conditional_trap): New.
5909
5910 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
5911
5912         PR c/6358
5913         * function.c (assign_parms): Assign hard current_function_return_rtx
5914         register here...
5915         (expand_function_end): ...not here.
5916
5917 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
5918
5919         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5920         * c-tree.h (c_incomplete_type_error): New.
5921         * c-typeck.c (require_complete_type, build_component_ref): Update.
5922         (incomplete_type_error): Rename.
5923         * langhooks-def.h (lhd_incomplete_type_error): New.
5924         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
5925         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5926         * langhooks.c (lhd_incomplete_type_error): New.
5927         * langhooks.h (struct lang_hooks_for_types): New hook.
5928         * tree.c (size_in_bytes): Use new hook.
5929         * tree.h (incomplete_type_error): Remove.
5930 objc:
5931         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5932
5933 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
5934
5935         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
5936         TARGET_FLOAT_FORMAT blocks.
5937
5938 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5939
5940         * doc/install.texi (Downloading the source): Do not mention Chill
5941         any longer, but mention Ada.
5942         (Configuration): Do not mention Chill any longer.
5943
5944 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
5945
5946         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
5947
5948 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
5949
5950         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
5951         in last patch.
5952
5953 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
5954
5955         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
5956         instead of unsigned_type.
5957
5958 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5959
5960         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
5961         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
5962         later.
5963
5964 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
5965
5966         * attribs.c (vector_type_node_list): New static variable.
5967         (handle_vector_size_attribute): Use it to avoid generating a
5968         new type node each time we are called.
5969
5970         * combine.c (subst): Avoid trying to make a vector mode subreg of
5971         an integer constant.
5972         (gen_lowpart_for_combine): Likewise.
5973
5974 2002-04-18  Roger Sayle  <roger@eyesopen.com>
5975             Jakub Jelinek  <jakub@redhat.com>
5976
5977         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
5978         for integer constant c (if x has unsigned type or sign bit is not
5979         set in c).  This folds the zero/sign extension into the bit-wise and
5980         operation.
5981
5982 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
5983
5984         PR middle-end/6205
5985         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
5986         otherwise xorps.
5987
5988 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
5989
5990         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
5991
5992 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
5993
5994         * gcc.c (read_specs): Detect and fail if an attempt is made to
5995         rename a spec string to an already existing string.
5996
5997 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5998
5999         * config/s390/s390.c (legitimize_pic_address): Do not generate
6000         illegal address constant without CONST.
6001
6002 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6003
6004         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
6005         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
6006
6007 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
6008
6009         PR optimization/6305
6010         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
6011         to make sure previous reloads are taken into account.  Generate
6012         better code if one operand is an in-range immediate constant.
6013
6014 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
6015
6016         * doc/install.texi (Building): libgcj requires GNU make.
6017
6018 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
6019
6020         PR bootstrap/6315
6021         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
6022         even if hard quad and register is not floating.
6023         (movtf reg<-mem split): Disallow splitting if hard quad and
6024         register is floating.
6025         (movtf mem<-reg split): Likewise.
6026         * config/sparc/sparc.c (fp_register_operand): New predicate.
6027         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
6028
6029 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
6030
6031         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
6032         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
6033         (unprotoize.o): Ditto.  Build from protoize.c.  Define
6034         UNPROTOIZE on command line.
6035         * protoize.c: Include cppdefault.h.  Delete include_defaults.
6036         (in_system_include_dir): Use cpp_include_defaults (defined in
6037         cppdefault.o).
6038         * unprotoize.c: Delete file.
6039
6040 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
6041
6042         * config/rs6000/altivec.h (vec_ld): Add array variants.
6043         (vec_lde): Same.
6044         (vec_ldl): Same.
6045
6046 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
6047             Aldy Hernandez <aldyh@redhat.com>
6048
6049         * config/rs6000/altivec.h: Define __ALTIVEC__.
6050         (bool): New.
6051         (__pixel): New.
6052         (pixel): New.
6053         (vec_cfux): New.
6054         (vec_vmaddfp): New.
6055         (vec_vsldoi): New.
6056         Add parentheses to all macro arguments.
6057
6058 2002-04-16  Richard Henderson  <rth@redhat.com>
6059
6060         PR c++/6320
6061         * except.c (remove_eh_handler): Insert inner regions at beginning
6062         of sibling chain.  Refactor expressions.
6063
6064 2002-04-16  Richard Henderson  <rth@redhat.com>
6065
6066         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
6067         * config/sparc/sol2-gas-bi.h: New file.
6068         * config.gcc (sparc*-solaris): Add it as needed.
6069         * configure.in (AS_SPARC64_FLAG): Remove check.
6070         * config.in, configure: Regenerate.
6071
6072         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
6073
6074 2002-04-16  Richard Henderson  <rth@redhat.com>
6075
6076         * config/mips/mips.c (override_options): Don't override N32 for
6077         a 64-bit ISA.
6078
6079         PR 6202
6080         * config/mips/mips.md (can_delay): Split out of existing define_delays.
6081         (HILO_delay): Set can_delay false.
6082
6083 2002-04-16  Dale Johannesen <dalej@apple.com>
6084
6085         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
6086         instruction addresses.
6087         (rs6000_output_function_epilogue): Likewise.
6088
6089 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
6090
6091         * c-parse.in (poplevel, compstmt_start,
6092         compstmt_primary_start): Add ending ';', in accordance
6093         with POSIX.
6094
6095 2002-04-16  Richard Henderson  <rth@redhat.com>
6096
6097         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
6098         Adjust tm_file order to get TARGET_DEFAULT set properly.
6099         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
6100         * doc/install.texi (sparc-solaris): Update.
6101
6102 2002-04-16  Dale Johannesen <dalej@apple.com>
6103
6104         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
6105         comparison operands do not match each other or if modes of
6106         conditions do not match result.
6107
6108 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
6109
6110         PR target/6305
6111         * config/s390/s390.md (mulsidi3): Set both subregs of the
6112         multiword register.
6113
6114 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
6115
6116         * config/rs6000/altivec.h (vec_addc): Type check.
6117
6118 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6119
6120         PR middle-end/6279
6121         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6122
6123         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6124
6125 2002-04-15  Richard Henderson  <rth@redhat.com>
6126
6127         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6128         call_really_used_regs too.
6129
6130 2002-04-15  Richard Henderson  <rth@redhat.com>
6131
6132         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6133
6134 2002-04-15  David S. Miller  <davem@redhat.com>
6135
6136         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6137         as being CLOBBERed.
6138
6139 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6140
6141         PR c/6290
6142         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6143         CONST_VECTOR is { 0, ... 0 }.
6144
6145 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6146
6147         * doc/install.texi (Installing GCC: Configuration): Clarify
6148         the only supported ways to configure gcc.
6149
6150 2002-04-15  Roland McGrath  <roland@frob.com>
6151
6152         * config.gcc (alpha*-*-gnu*): New target configuration.
6153         * config/alpha/gnu.h: New file for it.
6154         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6155
6156 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6157
6158         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6159         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6160         * tree.h (expand_start_stmt_expr): Update prototype.
6161         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6162         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6163         on the STMT_EXPR created for the inline function.
6164
6165 2002-04-15  Richard Henderson  <rth@redhat.com>
6166
6167         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6168         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6169         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6170         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6171         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6172         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6173         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6174         Define __gnu_linux__, not gnu_linux.
6175         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6176
6177 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6178
6179         Remove Chill front end.
6180         * gcc.c (default_compilers): Remove Chill entries.
6181         * ch: Remove directory.
6182         * doc/frontends.texi: Remove information about Chill.
6183         * doc/sourcebuild.texi: Likewise.
6184         * doc/standards.texi: Likewise.
6185
6186 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6187
6188         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6189         (LONGLONG_STANDALONE): Define.
6190
6191 2002-04-15  David S. Miller  <davem@redhat.com>
6192
6193         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6194         Call emit_library_call with LCT_NORMAL.
6195         (sparc_initialize_trampoline): Use LCT_foo instead of
6196         magic constant in emit_library_call invocations.
6197         (sparc64_initialize_trampoline): Likewise.
6198         (sparc_profile_hook): Likewise.
6199         * config/sparc/sparc.md: Likewise.
6200
6201         * config/sparc/sparc.c (sparc_extra_constraint_check):
6202         Fix type of argument 'c'.
6203         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6204         Likewise.
6205
6206 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6207
6208         * diagnostic.h (output_buffer_state): Redefine.
6209         (output_format_decoder): New macro.
6210         (output_prefixing_rule): Likewise.
6211         (output_line_cutoff): Likewise.
6212         (diagnostic_format_decoder): Adjust.
6213         (diagnostic_prefixing_rule): Likewise.
6214         (diagnostic_line_cutoff): Likewise.
6215         (diagnostic_state): Likewise.
6216         (diagnostic_kind_count): Likewise.
6217         (diagnostic_buffer): Now a macro.
6218
6219         * diagnostic.c (diagnostic_buffer): Remove definition.
6220         (output_is_line_wrapping): Adjust.
6221         (set_real_maximum_length): Likewise.
6222         (output_set_maximum_length): Likewise.
6223         (init_output_buffer): Likewise.
6224         (lhd_print_error_function): Likewise.
6225         (output_do_verbatim): Likewise.
6226
6227 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6228
6229         * cpperror.c (print_location): Don't print include chain
6230         if line == 0.
6231         (cpp_begin_message): Update to use DL_ macros.
6232         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6233         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6234         cpp_notice, cpp_notice_from_errno): Remove.
6235         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6236         level.
6237         (cpp_errno): New.
6238         * cppexp.c (CPP_ICE): Remove.
6239         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6240         lex, integer_overflow, _cpp_parse_expr): Update.
6241         * cppfiles.c (read_include_file, find_include_file,
6242         handle_missing_header, _cpp_read_file, remap_filename): Update.
6243         * cpphash.h (enum error_type): Remove.
6244         (_cpp_begin_message): Update.
6245         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6246         cpp_handle_option, cpp_post_options): Update.
6247         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6248         skip_whitespace, parse_identifier, parse_slow, parse_string,
6249         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6250         cpp_interpret_charconst): Update.
6251         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6252         lex_macro_node, do_undef, glue_header_name, parse_include,
6253         do_include_common, read_flag, do_line, do_linemarker, do_ident,
6254         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6255         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6256         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6257         _cpp_pop_buffer, do_diagnostic): Update.
6258         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6259         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6260         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6261         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6262         cpp_notice, cpp_notice_from_errno): Remove.
6263         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6264         level.
6265         (cpp_errno): New.
6266         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6267         collect_args, enter_macro_context, save_parameter, parse_params,
6268         _cpp_create_definition, check_trad_stringification,
6269         cpp_macro_definition): Update.
6270         * cppmain.c (cpp_preprocess_file): Update.
6271         * fix-header.c (read_scan_file): Update.
6272
6273 2002-04-14  Andreas Schwab  <schwab@suse.de>
6274
6275         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6276
6277 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6278
6279         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6280
6281 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6282
6283         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6284         not gnu_hurd.
6285
6286 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
6287
6288         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6289
6290 2002-04-13      Joel Sherrill <joel@OARcorp.com>
6291
6292         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
6293         sparc-elf and sparc-rtems targets.
6294
6295 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6296
6297         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6298         defined, and __gnu_hurd__ wherever __GNU__ is defined.
6299         * arm/linux-elf.h: Likewise.
6300         * cris/aout.h: Likewise.
6301         * cris/linux.h: Likewise.
6302         * i370/linux.h: Likewise.
6303         * i386/gnu.h: Likewise.
6304         * i386/linux-aout.h: Likewise.
6305         * i386/linux-oldld.h: Likewise.
6306         * i386/linux.h: Likewise.
6307         * i386/linux64.h: Likewise.
6308         * ia64/linux.h: Likewise.
6309         * m68k/linux-aout.h: Likewise.
6310         * m68k/linux.h: Likewise.
6311         * mips/linux.h: Likewise.
6312         * pa/pa-linux.h: Likewise.
6313         * pj/linux.h: Likewise.
6314         * rs6000/sysv4.h: Likewise.
6315         * s390/linux.h: Likewise.
6316         * sh/linux.h: Likewise.
6317         * sparc/linux-aout.h: Likewise.
6318         * sparc/linux.h: Likewise.
6319         * sparc/linux64.h: Likewise.
6320         * xtensa/linux.h: Likewise.
6321
6322 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
6323
6324         * stmt.c (check_unique_operand_names): Expect operand names to
6325         be strings rather than identifiers.  Use simple_cst_equal to
6326         compare them.
6327         (resolve_operand_name_1): Make same identifier to string change here.
6328         * c-parse.in (asm_operand): Convert a named operand into a string.
6329         * cp/parse.y (asm_operand): Likewise.
6330
6331 2002-04-13  Andreas Schwab  <schwab@suse.de>
6332
6333         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6334
6335 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
6336
6337         Revert these changes:
6338
6339         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6340
6341         PR c++/5571
6342         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6343
6344 2002-04-12  Richard Henderson  <rth@redhat.com>
6345
6346         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6347         (sparc*-*-solaris): Clean up header files.
6348         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6349         and plan on generating 64-bit code.
6350         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6351         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6352         * config/sparc/sol2-sld-64.h: Rename ...
6353         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
6354         for AS_SPARC64_FLAG not defined.
6355         * config/sparc/sol2-gld-bi.h: New.
6356         * config/sparc/sol2-sld.h: Remove.
6357         * config/sparc/sol26-sld.h: New.
6358         * config/sparc/sol2.h: Tidy comments.
6359         * doc/install.texi: Document sparc-solaris configury changes.
6360
6361 2002-04-12  Richard Henderson  <rth@redhat.com>
6362
6363         * recog.c (offsettable_address_p): Match the logic in adjust_address.
6364
6365         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6366         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
6367
6368 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6369
6370         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6371
6372 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
6373
6374         * pa.c (pa_can_combine_p): Call extract_insn before calling
6375         constrain_operands.
6376
6377 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
6378
6379         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6380         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6381         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6382         (CPP_PREDEFINES): Handle __declspec.
6383         * config/i386/t-interix (USER_H): Remove.
6384
6385 2002-04-12  DJ Delorie  <dj@redhat.com>
6386
6387         * integrate.c (compare_blocks): Make comparisons safe for when
6388         sizeof(int) < sizeof(char *).
6389         (find_block): Likewise.
6390
6391 2002-04-12  Jan Hubicka  <jh@suse.cz>
6392             David Edelsohn  <edelsohn@gnu.org>
6393
6394         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6395         registers.
6396         (symbol_ref_operand): New.
6397         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6398         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6399
6400 2002-04-12  Andreas Schwab  <schwab@suse.de>
6401
6402         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6403         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6404         overrides the definition in config/svr4.h.
6405
6406 2002-04-12      Eric Norum <eric.norum@usask.ca>
6407
6408         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6409         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6410         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6411         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6412         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6413         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6414         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6415         definitions to config/rtems.h and make the targets more similar.
6416
6417 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6418
6419         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6420         POINTERS_EXTEND_UNSIGNED.
6421         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6422         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6423
6424         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6425         not specified.
6426
6427 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
6428
6429         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6430         depends on TARGET_SHMEDIA, not TARGET_SH5.
6431
6432 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
6433
6434         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6435         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6436
6437 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6438
6439         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6440         no r0 clobber.
6441
6442 2002-04-12  Andreas Schwab  <schwab@suse.de>
6443
6444         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6445
6446 2002-04-12  Richard Henderson  <rth@redhat.com>
6447
6448         PR bootstrap/4191
6449         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6450
6451         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6452         modes spanning multiple hard regs.
6453
6454         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6455
6456 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6457
6458         * pa.c (pa_output_function_prologue): Don't accumulate the total
6459         number of code bytes when using TARGET_64BIT, or gas, SOM and not
6460         the portable runtime.
6461         (output_deferred_plabels): Handle 64bit plabels.
6462         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6463         generating pic code using the GAS assembler for object formats that
6464         are not SOM (ie., ELF32 and ELF64).
6465         (output_millicode_call): Check attribute type if attribute length is 28.
6466         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
6467         dbr_sequence_length once.
6468         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6469         dbr_sequence_length once.
6470         * pa.h (TARGET_SOM): Define if not defined.
6471         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6472         with GAS and not SOM.
6473         (jump, call_internal_reg, call_value_internal_reg): Likewise.
6474         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
6475
6476 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6477
6478         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6479         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6480         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6481         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6482         elfos.h and dbxelf.h values are fine now.
6483         * config/i386/freebsd.h, config/alpha/freebsd.h
6484         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6485
6486 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6487
6488         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6489         or set Acpu or Amachine.  Reformat.
6490         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6491         define.
6492         (LINK_SPEC): Do not need to undef.
6493         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6494         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6495         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6496         define.
6497         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6498         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6499         (LINK_SPEC): Do not need to undef.
6500         (DONT_USE_BUILTIN_SETJMP): Do not define.
6501         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6502         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
6503         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6504         Remove trailing spaces.
6505         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6506         __ELF__, or set Acpu or Amachine.  Reformat.
6507         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6508         define.
6509
6510 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6511
6512         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6513         all other *-*-freebsd* targets.
6514
6515 2002-04-11  Richard Henderson  <rth@redhat.com>
6516
6517         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6518
6519 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6520
6521         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6522         Include {cpu}/{cpu}.h thru tm_file.
6523         (alpha*-*-linux*ecoff): Remove target.
6524         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6525         (LINK_SPEC): Remove, is not OS independent.
6526         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6527         (LINK_SPEC): Do not need to #undef any longer.
6528         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6529         any longer.
6530         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6531         __ELF__.
6532         (LINK_SPEC): Moved here from alpha/elf.h.
6533         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6534         SUB_CPP_PREDEFINES.
6535         * config/alpha/linux-ecoff.h: Remove.
6536         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6537         (CPP_SPEC): Define _POSIX_SOURCE as needed.
6538         (CPP_SUBTARGET_SPEC): Do not define.
6539         (LINK_SPEC): Do not need to #undef any longer.
6540         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6541         * config/alpha/vms.h: Likewise.
6542
6543 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
6544
6545         * doc/extend.texi: Remove old claim that typedefs cannot have
6546         an alignment attribute.
6547
6548 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6549
6550         PR optimization/6177
6551         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6552         bitpos is 0 and bitsize CONCAT size.
6553
6554 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6555
6556         PR c/6223
6557         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6558
6559 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
6560
6561         * config/alpha/freebsd.h: Minor reformatting.
6562         (CPP_SPEC): Define ELF and add cpp_subtarget.
6563         (ASM_SPEC): No longer needed.
6564
6565 2002-04-11  Richard Henderson  <rth@redhat.com>
6566
6567         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6568         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
6569         (dimode mem/zero splitter): New.
6570
6571 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
6572
6573         * config/cris/cris.c (cris_override_options): Tweak error message
6574         for PIC not implemented.
6575
6576         * config/cris/cris.h: Tweak comments related to parameter-passing.
6577
6578         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6579
6580 2002-04-10  Richard Henderson  <rth@redhat.com>
6581
6582         * except.c (add_ehl_entry): Allow duplicates after landing pad
6583         creation.
6584
6585 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
6586
6587         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6588
6589 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
6590
6591         * c-decl.c (c_init_decl_processing): Move generation of
6592         decls for g77_integer_type_node and friends from here ...
6593         * c-common.c (c_common_nodes_and_builtins): ... to here.
6594
6595 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
6596
6597         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6598         is only used as frame pointer when frame_pointer_needed is true.
6599
6600 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
6601
6602         PR target/817
6603         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6604         for the fact that the pool entry uses two words.
6605         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
6606         1k bytes.
6607         (movdf_soft_insn): Similarly.
6608         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6609         for the fact that the pool entry uses three words.
6610
6611 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
6612
6613         * config/mips/mips.c (mips_va_arg): When using the struct version
6614         of the EABI va_list, allow arguments in the register save area to
6615         take up less room than a stack argument.
6616
6617 2002-04-10  Richard Henderson  <rth@redhat.com>
6618
6619         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6620         if EXPAND_INITIALIZER.
6621
6622 2002-04-09  Richard Henderson  <rth@redhat.com>
6623
6624         * config/alpha/alpha.md (movdi_er_maybe_g): New.
6625         * config/alpha/alpha.c (alpha_expand_mov): Use it.
6626
6627 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
6628
6629         PR optimization/6233
6630         * rtlanal.c (pure_call_p): New function.
6631         * rtl.h (pure_call_p): Declare.
6632         * loop.c (prescan_loop): Use it to set has_nonconst_call.
6633         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6634
6635 2002-04-09  Eric Christopher  <echristo@redhat.com>
6636
6637         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6638         information to .comm directive.
6639
6640 2002-04-09  Richard Henderson  <rth@redhat.com>
6641
6642         PR c/5078
6643         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6644
6645 2002-04-09  Richard Henderson  <rth@redhat.com>
6646
6647         * basic-block.h (flow_delete_block_noexpunge): Declare.
6648         (expunge_block_nocompact): Declare.
6649         * cfg.c (expunge_block_nocompact): Split out from ...
6650         (expunge_block): ... here.
6651         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6652         (flow_delete_block_noexpunge): Split out from ...
6653         (flow_delete_block): ... here.
6654         * cfgcleanup.c (delete_unreachable_blocks): Compact while
6655         removing dead blocks.
6656         * except.c (exception_handler_labels): Remove.
6657         (exception_handler_label_map): New.
6658         (struct eh_region): Add aka member.
6659         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6660         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6661         (for_each_eh_label, for_each_eh_label_1): New.
6662         (init_eh): Register exception_handler_label_map.
6663         (free_eh_status): Use free_region.
6664         (find_exception_handler_labels): Use the map, not the list.
6665         (remove_exception_handler_label): Likewise.
6666         (maybe_remove_eh_handler): Likewise.
6667         (remove_eh_handler): Use the region aka bitmap.
6668         * except.h (exception_handler_labels): Remove.
6669         (for_each_eh_label): Declare.
6670         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6671         * loop.c (invalidate_loops_containing_label): New.
6672         (find_and_verify_loops): Use it.  Use for_each_eh_label.
6673         * sched-rgn.c (is_cfg_nonregular): Use
6674         current_function_has_exception_handlers.
6675
6676 2002-04-09  Richard Henderson  <rth@redhat.com>
6677
6678         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6679         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6680         Do not return changed status.
6681         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6682         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6683         New functions that do return changed status.
6684         * sbitmap.h: Update decls.
6685         * gcse.c, lcm.c: Use _cg functions as needed.
6686
6687 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6688
6689         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6690         (sh64-*-elf*, sh-*-rtemself*): Likewise.
6691         * config/sh/embed_bb.c: New file.
6692         * config/sh/embed-elf.h: New file.
6693         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6694         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
6695         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6696         __PTRDIFF_TYPE__ .
6697         (SUBTARGET_CPP_PTR_SPEC): Don't define.
6698         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6699         Add subtarget_asm_endian_spec.
6700         (ASM_SPEC): Use subtarget_asm_endian_spec.
6701         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6702         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6703         (WCHAR_UNSIGNED): Define.
6704         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6705         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6706         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6707         Fix value.
6708         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6709         (sh_adjust_cost): Likewise.
6710         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6711         __PTRDIFF_TYPE__ .
6712         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6713         (WCHAR_TYPE_SIZE): Likewise.
6714         (ASM_SPEC): Use subtarget_asm_endian_spec.
6715         (SH_ELF_WCHAR_TYPE): #undef/ #define.
6716         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6717         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6718         (MAX_WCHAR_TYPE_SIZE): Don't #define .
6719         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6720         (USER_LABEL_PREFIX): Don't #undef /#define .
6721         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6722         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6723         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6724         (ASM_SPEC): Likewise.
6725         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6726         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
6727         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
6728         (LIB2FUNCS_EXTRA): Define.
6729         * t-sh64 (LIB2FUNCS_EXTRA): Define.
6730         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
6731         (LIB1ASMFUNCS_CACHE): Define.
6732         (LIB2FUNCS_EXTRA): Redefine empty.
6733
6734 2002-04-08  Richard Henderson  <rth@redhat.com>
6735
6736         * reorg.c (get_branch_condition): Use reversed_comparison_code.
6737
6738 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6739
6740         * config/m68hc11/larith.asm (__map_data_section): Fix condition
6741         and optimize for size.
6742         (__do_global_ctors): Fix pointer comparison.
6743         (__do_global_dtors): Likewise.
6744
6745 2002-04-09  David S. Miller  <davem@redhat.com>
6746
6747         * config/sparc/sparc.c (sparc_extra_constraint_check): New
6748         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
6749         allow reloading pseudos.
6750         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
6751         * config/sparc/sparc-protos.h: Declare it.
6752
6753         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
6754         unsigned comparison warning.
6755         (output_restore_regs): Mark leaf_function as unused.
6756
6757 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6758
6759         * expr.c (is_aligning_offset): New function.
6760         (expand_expr, case COMPONENT_EXPR): Call it.
6761
6762 2002-04-08  David S. Miller  <davem@redhat.com>
6763
6764         PR target/6082
6765         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
6766
6767         Make init_priority work on Sparc when using GNU ld.
6768         * config/sparc/linux.h, config/sparc/linux64.h,
6769         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
6770         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
6771         * config/sparc/sol2-gld.h: New file to do the same.
6772         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
6773         sparc/sol2-gld.h to tm_file.
6774
6775         PR optimization/4328
6776         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
6777         * doc/md.texi: Document it.
6778         * config/sparc/sparc.md (movdi_insn_sp64_novis,
6779         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
6780         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
6781         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
6782         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
6783
6784 2002-04-08  Andreas Jaeger  <aj@suse.de>
6785
6786         * stmt.c (expand_asm_operands): Revert last patch from Richard
6787         Henderson.
6788
6789 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6790
6791         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
6792         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
6793
6794 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6795
6796         * doc/contrib.texi (Contributors): Add David O'Brien.
6797
6798 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
6799
6800         * configure.in (auto-build.h): Use target_alias and build_alias
6801         when running configure.
6802         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
6803         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
6804         * configure: Regenerate.
6805
6806 2002-04-07  David S. Miller  <davem@redhat.com>
6807
6808         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
6809
6810 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6811
6812         PR 5933
6813         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
6814         generating 32-bit pic code.
6815
6816 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
6817
6818         * cppinit.c (cpp_create_reader): Initialize
6819         discard_comments_in_macro_exp.
6820         (COMMAND_LINE_OPTIONS): Add "-CC" option.
6821         (cpp_handle_option): Handle "-CC" option.
6822         * cpplex.c (save_comment): If saving a C++ comment in
6823         a directive, convert it to a C comment.
6824         (_cpp_lex_direct): Pass second comment start character to
6825         save_comment to indicate comment type.
6826         * cpplib.c (_cpp_handle_directive): If processing
6827         a "#define" directive and discard_comments_in_macro_exp
6828         is false,  re-enable saving of comments.
6829         (lex_macro_node): If discard_comments_in_macro_exp is false,
6830         discard any comments before the macro identifier.
6831         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
6832         member.
6833         * cppmacro.c (cpp_get_token): If expanding a macro while
6834         processing a directive, discard any comments we might encounter.
6835         (parse_params): If discard_comments_in_macro_exp is false,
6836         ignore comments in the macro parameter list.
6837         * gcc.c (cpp_unique_options): Add "-CC" option.
6838         (option_map): Map "--comments-in-macros" to "-CC".
6839         * doc/cppopts.texi: Document "-CC" option.
6840         * f/lang-specs.h: Add "-CC" option.
6841         * testsuite/gcc.dg/cpp/maccom1.c: New test.
6842         * testsuite/gcc.dg/cpp/maccom2.c: New test.
6843         * testsuite/gcc.dg/cpp/maccom3.c: New test.
6844         * testsuite/gcc.dg/cpp/maccom4.c: New test.
6845         * testsuite/gcc.dg/cpp/maccom5.c: New test.
6846         * testsuite/gcc.dg/cpp/maccom6.c: New test.
6847
6848 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6849
6850         PR middle-end/6180
6851         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
6852
6853 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6854
6855         PR c++/5571
6856         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6857
6858         PR opt/5120
6859         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
6860         RTX_UNCHANGING_P for the functions arguments when a tail call
6861         is made.
6862
6863 2002-04-06  Jason Merrill  <jason@redhat.com>
6864
6865         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
6866         (parse_options_and_default_flags): Set them appropriately.
6867         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
6868
6869 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
6870
6871         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
6872         here.
6873
6874         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
6875         semicolon.
6876
6877         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
6878         types come in by-reference.  Fix typo in comment.
6879
6880 2002-04-05  David S. Miller  <davem@redhat.com>
6881
6882         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
6883         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
6884         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
6885         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
6886
6887 2002-04-05  David S. Miller  <davem@redhat.com>
6888
6889         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
6890         are not going to emit return instructions, emit at least a nop
6891         for the sake of sane backtraces.
6892
6893 2002-04-05  Richard Henderson  <rth@redhat.com>
6894
6895         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
6896
6897 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
6898
6899         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
6900
6901 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
6902
6903         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
6904         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
6905         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
6906
6907 2002-04-05  Andreas Schwab  <schwab@suse.de>
6908
6909         * c-convert.c: Include c-common.h.
6910         * Makefile.in (c-convert.o): Updated.
6911
6912 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
6913
6914         * mklibgcc.in: Use separate libgcc.map for each multilib.
6915         * Makefile.in (distclean): Don't remove libgcc.map here.
6916
6917 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
6918
6919         * Makefile.in (s-mlib): Handle --disable-multilib by separate
6920         genmultilib invocation.
6921
6922 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
6923
6924         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
6925         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
6926         to num_gprs for symmetry.
6927         * config/mips/mips.c: Adjust accordingly.
6928
6929 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6930
6931         * c-common.c (truthvalue_conversion): Rename, update.
6932         * c-common.h (c_common_truthvalue_conversion): New.
6933         * c-convert.c (convert): Update.
6934         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6935         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
6936         * c-typeck.c (build_binary_op, build_unary_op,
6937         build_conditional_expr): Update.
6938         * fold-const.c (constant_boolean_node, fold): Use langhook.
6939         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
6940         * langhooks.h (struct lang_hooks): New hook.
6941         * stmt.c (expand_decl_cleanup): Use langhook.
6942         * tree.h (truthvalue_conversion): Remove.
6943 objc:
6944         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6945
6946 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
6947
6948         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
6949         Add rules to make null object file.
6950
6951 2002-04-04  Jim Blandy  <jimb@redhat.com>
6952
6953         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
6954         macro formal parameter names.
6955
6956 2002-04-04  David S. Miller  <davem@redhat.com>
6957
6958         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
6959
6960 2002-04-04  Richard Henderson  <rth@redhat.com>
6961
6962         PR middle-end/5099
6963         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
6964         Support copies into and out of memory.  Don't accept allows_reg
6965         and allows_mem as gospel.
6966
6967 2002-04-04  Richard Henderson  <rth@redhat.com>
6968
6969         PR opt/6165
6970         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
6971         (write_dependence_p): Likewise.
6972
6973 2002-04-04  Richard Henderson  <rth@redhat.com>
6974
6975         * predict.c (estimate_bb_frequencies): Do frequency calculation
6976         with a volatile temporary.
6977
6978 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
6979
6980         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
6981
6982 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
6983
6984         PR c++/6119
6985         * final.c (final_start_function): Don't bump profile_label_no here...
6986         (final_end_function): ...but here.
6987
6988 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
6989
6990         * config/sparc/sparc.md (pic): New attribute.
6991         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
6992         into stack slots.
6993         (split after do_builtin_setjmp_setup): New.
6994
6995 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
6996
6997         PR fortran/6106
6998         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
6999         change.
7000
7001 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
7002
7003         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
7004         UNITS_PER_WORD for zero sized aggregates.
7005
7006 2002-04-03  David S. Miller  <davem@redhat.com>
7007
7008         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
7009         one-character spec for this, just use %(link_gcc_c_sequence).
7010
7011 2002-04-03  David S. Miller  <davem@redhat.com>
7012
7013         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
7014         handling.
7015
7016 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7017
7018         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
7019         (DWARF_FRAME_RETURN_COLUMN): Move.
7020         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
7021         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
7022         * pa.c (except.h, predict.h): Include.
7023         (FRP): Delete.
7024         (store_reg_modify, set_reg_plus_d): Revise prototypes.
7025         (output_ascii): Add cast.
7026         (store_reg_modify): Revise to add frame notes.
7027         (set_reg_plus_d): Likewise.
7028         (compute_frame_size): Include space for eh data registers in frame if
7029         the current function calls eh_return.
7030         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
7031         function calls eh_return.  Save eh data registers if the current
7032         function calls eh_return.  Fix code to add frame notes.  Emit
7033         blockage to prevent insns with frame notes being scheduled in the
7034         delay slot of calls.
7035         (hppa_expand_epilogue): Restore eh data registers and do final stack
7036         adjustment if the current function calls eh_return.  Don't add frame
7037         notes.
7038         (output_call): Revise for change in length of call insn.  Don't do
7039         return pointer adjustment for an unconditional jump in the delay slot
7040         of a call when using frame notes.
7041         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
7042         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
7043         (ARG_POINTER_CFA_OFFSET): Define.
7044         * pa.md (return_external_pic): New pattern.
7045         (prologue): Correct formatting.  Use return_external_pic if current
7046         function calls eh_return.
7047         (call_internal_symref, call_value_internal_symref,
7048         sibcall_internal_symref, sibcall_value_internal_symref): Change default
7049         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
7050         respectively.
7051         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
7052
7053         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
7054         list of targets to check using "nop" insn.
7055         * configure: Rebuilt.
7056
7057 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
7058
7059         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
7060
7061 2002-04-03  David S. Miller  <davem@redhat.com>
7062
7063         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
7064         library sequence passed to the linker.
7065         (LINK_COMMAND_SPEC): Use it.
7066         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
7067         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
7068         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
7069
7070 2002-04-03  Jason Merrill  <jason@redhat.com>
7071
7072         * except.c (struct eh_status): Remove protect_list.
7073         (begin_protect_partials, end_protect_partials): Remove.
7074         (add_partial_entry): Remove.
7075         * except.h: Remove prototypes.
7076
7077         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
7078         expand_decl_cleanup_eh.
7079
7080         PR c++/5636
7081         * tree.h (CLEANUP_EH_ONLY): New macro.
7082         * stmt.c (expand_decl_cleanup_eh): New fn.
7083         (expand_cleanups): Check CLEANUP_EH_ONLY.
7084         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
7085         Use expand_decl_cleanup_eh.
7086         (expand_stmt): Adjust.
7087         * c-common.h: Adjust prototype.
7088
7089 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
7090
7091         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
7092         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
7093         (cris_target_asm_function_epilogue): Ditto.
7094         (cris_initial_frame_pointer_offset): Ditto.
7095         (cris_simple_epilogue): Ditto.
7096         (cris_expand_builtin_va_arg): Variable-size types come in
7097         by-reference.
7098
7099 2002-04-03  David S. Miller  <davem@redhat.com>
7100
7101         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
7102         little-endian.
7103         (set_fast_math): Correct 'fsr' type.
7104
7105 2002-04-03  Richard Henderson  <rth@redhat.com>
7106
7107         PR opt/3569
7108         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
7109         * toplev.c (check_global_declarations): Use it.
7110         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
7111         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7112         (LANG_HOOKS_DECLS): Add it.
7113         * langhooks.c (lhd_warn_unused_global_decl): New.
7114         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7115         * c-objc-common.c (c_warn_unused_global_decl): New.
7116         * c-tree.h (c_warn_unused_global_decl): Declare.
7117         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7118
7119 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7120
7121         * langhooks-def.h (lhd_set_decl_assembler_name,
7122         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7123         (LANG_HOOKS_INITIALIZER): Update.
7124         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7125         * langhooks.h (struct lang_hooks): New hook.
7126         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7127         (lang_set_decl_assembler_name): Remove.
7128         (init_obstacks): Don't set hook.
7129         (decl_assembler_name): New function.
7130         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7131         (decl_assembler_name): New.
7132         (lang_set_decl_assembler_name): Remove.
7133
7134 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7135
7136         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7137         works properly with .hidden symbols.
7138         * configure: Rebuilt.
7139         * config.in: Rebuilt.
7140         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7141         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7142         properly with .hidden symbols.
7143
7144 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7145
7146         PR middle-end/6102
7147         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7148         USE argument.
7149
7150 2002-04-03  Richard Henderson  <rth@redhat.com>
7151
7152         PR opt/4120
7153         * sched-rgn.c (sets_likely_spilled): New.
7154         (sets_likely_spilled_1): New.
7155         (add_branch_dependences): Use it.
7156
7157 2002-04-02  Richard Henderson  <rth@redhat.com>
7158
7159         PR opt/4311
7160         * loop.h (LOOP_FIRST_PASS): New.
7161         * loop.c (strength_reduce): Mind it when deciding to unroll.
7162         * toplev.c (rest_of_compilation): Set it.
7163
7164 2002-04-02  David S. Miller  <davem@redhat.com>
7165
7166         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7167         mems_ok_for_ldd_peep when the order of the loads being examined
7168         is reversed.
7169         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7170         existing comment to increase comprehension of this situation.
7171
7172 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7173
7174         * config/sh/sh.md: Don't use union real_extract.
7175
7176 2002-04-02  Richard Henderson  <rth@redhat.com>
7177
7178         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7179
7180 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7181
7182         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7183         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7184         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7185         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7186         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7187         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7188         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7189         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7190         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7191         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7192         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7193         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7194         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7195         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7196         Include as many configury headers via tm_file as possible.  This
7197         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7198         * config/openbsd-oldgas.h: New file.
7199         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7200         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7201         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7202         config/i386/i386-coff.h, config/i386/i386-interix.h,
7203         config/i386/iscdbx.h, config/i386/linux-aout.h,
7204         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7205         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7206         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7207         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7208         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7209         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7210         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7211         config/i386/vxi386.h: Do not directly include configury headers.
7212         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7213         Directly include configury headers that are no longer automatically
7214         included by the above headers.
7215         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7216         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7217         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7218         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7219         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7220         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7221         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7222         (TARGET_VERSION): Define.
7223         * config/i386/beos-elf.h, config/i386/freebsd.h,
7224         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7225         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7226         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7227         config/i386/sco5.h, config/i386/sysv4.h
7228         (TARGET_VERSION): Do not need to protect.
7229         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7230         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7231         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7232         config/i386/i386-interix.h, config/i386/linux-aout.h,
7233         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7234         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7235         (YES_UNDERSCORES): Do not define - not needed.
7236         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7237         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7238         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7239         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7240         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7241         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7242         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7243         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7244
7245 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
7246             Richard Henderson  <rth@redhat.com>
7247
7248         PR c/5484
7249         * function.c (assign_temp): Accept either type or decl argument.
7250         Detect variables whose size is too large to fit into an integer.
7251         * stmt.c (expand_decl): Pass the decl, not the type.
7252
7253 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7254
7255         * protoize.c: Match include directory usage with cppdefault.c.
7256
7257 2002-04-03  Jeffrey A Law  (law@redhat.com)
7258             Hans-Peter Nilsson  <hp@bitrange.com>
7259
7260         * combine.c (simplify_comparison): Avoid narrowing a comparison
7261         with a paradoxical subreg when doing so would drop signficant bits.
7262
7263 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
7264
7265         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7266         if POINTERS_EXTEND_UNSIGNED is defined.
7267
7268 2002-04-02  Richard Henderson  <rth@redhat.com>
7269
7270         PR opt/3967
7271         * local-alloc.c (contains_replace_regs): LO_SUM may contain
7272         replace regs.
7273
7274 2002-04-02  Richard Henderson  <rth@redhat.com>
7275
7276         * doc/standards.texi: Document required freestanding libc entry points.
7277
7278 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
7279
7280         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7281         associated splitter.  Remove MQ constraint.
7282         (ctrdi_internal4): Correct CCmode clobber.
7283
7284 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7285
7286         * milli64.S ($$dyncall): New function.
7287         * t-linux (LIB1ASMFUNCS): Revise module list.
7288         (LIB1ASMSRC): Use pa/milli64.S.
7289
7290 2002-04-02  Richard Henderson  <rth@redhat.com>
7291
7292         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7293         rename solaris_sys_varargs_h.
7294
7295 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7296
7297         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7298         the same mode as its component.
7299
7300 2002-04-02  Richard Henderson  <rth@redhat.com>
7301
7302         PR opt/190
7303         * final.c (this_is_asm_operands): Export.
7304         * output.h (this_is_asm_operands): Declare.
7305         * config/i386/i386.c (print_operand): Error odd asm operands.
7306
7307 2002-04-02  Richard Henderson  <rth@redhat.com>
7308
7309         PR opt/420
7310         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7311
7312 2002-04-01  Richard Henderson  <rth@redhat.com>
7313
7314         PR target/1538
7315         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7316         * fixinc/fixincl.x: Rebuild.
7317
7318 2002-04-01  Richard Henderson  <rth@redhat.com>
7319
7320         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7321         (atomic_alloc, atomic_free): New.
7322         (SIZE, MASK_FOR, PTR_IN): New.
7323         (emergency_reg_state, emergency_reg_state_free): New.
7324         (emergency_labeled_state, emergency_labeled_state_free): New.
7325         (reg_state_alloced, labeled_state_alloced): New.
7326         (alloc_reg_state, free_reg_state): New.
7327         (alloc_label_state, free_label_state, free_label_states): New.
7328         (push, pop, dup_state_stack, free_state_stack): Use them.
7329         (desc_label_state): Likewise.
7330         (uw_frame_state_for): Free label states and state stack.
7331         (uw_update_reg_address): Eliminate warnings.
7332
7333 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
7334
7335         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7336         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7337
7338 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7339
7340         * c-decl.c (grokdeclarator): Update.
7341         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7342         * c-tree.h (c_mark_addressable): New.
7343         * c-typeck.c (default_function_array_conversion, build_unary_op,
7344         build_array_ref, convert_for_assignment): Update.
7345         (mark_addressable): Rename.
7346         * calls.c (try_to_integrate, expand_call): Use langhook.
7347         * expr.c (expand_expr): Use langhook.
7348         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7349         * langhooks.h (struct lang_hooks): New hook.
7350         * stmt.c (expand_asm_operands): Use langhook.
7351         * tree.h (mark_addressable): Remove.
7352 objc:
7353         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7354
7355 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7356
7357         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7358         in previous change.
7359
7360 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7361
7362         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7363         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7364
7365 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7366
7367         * c-common.c (unsigned_conversion_warning, convert_and_check,
7368         unsigned_type, signed_type, shorten_compare,
7369         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7370         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7371         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7372         New.
7373         * c-decl.c (grokdeclarator): Update.
7374         * c-format.c (check_format_types): Update.
7375         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7376         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7377         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7378         * convert.c (convert_to_integer): Use new hooks.
7379         * expmed.c (make_tree): Use new hooks.
7380         * expr.c (store_expr): Use new hooks.
7381         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7382         all_ones_mask_p, unextend, fold): Use new hooks.
7383         * langhooks.h (struct lang_hooks_for_types): New hooks.
7384         * tree.h (signed_or_unsigned_type, signed_type,
7385         unsigned_type): Remove.
7386 objc:
7387         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7388         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7389
7390 2002-03-31  Richard Henderson  <rth@redhat.com>
7391
7392         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7393         (desc_frgr_mem): Fix reference to f16-f31.
7394
7395 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7396
7397         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7398         RTVEC_ELT): Const-ify.
7399         * varray.h (VARRAY_CHECK): Const-ify.
7400         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7401         ggc_mark_rtvec, ggc_mark): Const-ify.
7402
7403 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7404
7405         * diagnostic.c: Include langhooks-def.h.
7406         * Makefile.in (diagnostic.o): Update.
7407
7408 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7409
7410         * c-common.c (c_unsafe_for_reeval): Rename.
7411         * c-common.h (c_unsafe_for_reeval): Rename.
7412         * c-decl.c (finish_incomplete_decl): Rename.
7413         (c_init_decl_processing): Don't set langhook.
7414         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7415         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7416         * c-objc-common.c (c_objc_common_init): Don't set langhook.
7417         * c-tree.h (finish_incomplete_decl): Rename.
7418         * langhooks-def.h (lhd_unsafe_for_reeval): New.
7419         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7420         (LANG_HOOKS_INITIALIZER): Update.
7421         * langhooks.c (lhd_unsafe_For_reeval): New.
7422         * langhooks.h (struct langhooks): New hooks.
7423         * toplev.c (incomplete_decl_finalize_hook): Remove.
7424         (wrapup_global_declarations): Update.
7425         * tree.c (lang_unsafe_for_reeval): Remove.
7426         (unsafe_for_reeval): Update.
7427         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7428         Remove.
7429 objc:
7430         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7431         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7432
7433 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7434
7435         * diagnostic.c (print_error_function): Remove.
7436         (default_print_error_function): Rename.
7437         (report_error_function): Update.
7438         * diagnostic.h (print_error_function): Remove.
7439         (default_print_error_function): Remove.
7440         * langhooks-def.h (struct diagnostic_context): Predeclare.
7441         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7442         (LANG_HOOKS_INITIALIZER): Update.
7443         * langhooks.h (struct diagnostic context): Predeclare.
7444         (struct lang_hooks): New hook.
7445
7446 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7447
7448         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7449         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7450         !flag_pic.
7451         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7452         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7453         of PIC_OFFSET_TABLE_REGNUM thruout.
7454         * config/rs6000/rs6000.md: Likewise.
7455         * config/rs6000/darwin.h: Likewise.
7456
7457 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7458
7459         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7460         unsigned HOST_WIDE_INT, not unsigned int.
7461
7462 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7463
7464         PR middle-end/6096, middle-end/6098, middle-end/6099
7465         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7466         CODE_LABELs.
7467         (fill_slots_from_thread): Likewise.
7468
7469 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7470
7471         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7472         floating fields in float regs.
7473         (function_arg_record_value_2): Likewise.
7474
7475 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7476
7477         * config/mmix/mmix.md (define_constants): Remove misleading
7478         FIXME.  Add MMIX_fp_rO_OFFSET.
7479         ("nonlocal_goto_receiver"): Don't have stack-frame address of
7480         saved rO as part of the pattern.  Remove FIXME.
7481         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
7482         here, at output-time.
7483
7484 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7485
7486         PR middle-end/6100
7487         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7488         REG_BR_PRED.
7489         (output_v9branch): Likewise.
7490
7491 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7492
7493         * gcc.c: Revert previous patch for now.
7494         * config/i386/djgpp.h: Likewise.
7495
7496 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7497
7498         * config/mmix/crti.asm (_init): Register _fini with atexit.
7499         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7500
7501 2002-03-31  Richard Henderson  <rth@redhat.com>
7502
7503         PR target/3997
7504         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7505         (ASM_OUTPUT_DEF_FROM_DECLS): New.
7506
7507 2002-03-31  Richard Henderson  <rth@redhat.com>
7508
7509         * libgcc2.c (__bb_exit_func): Make static.
7510
7511         * config/alpha/alpha.md (trap): New.
7512
7513 2002-03-31  Richard Henderson  <rth@redhat.com>
7514
7515         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7516         promoted argument types; build trap.
7517         (expand_builtin_trap): New.
7518         (expand_builtin): Use it.
7519         * stmt.c (expand_nl_goto_receivers): Likewise.
7520         * expr.h (expand_builtin_trap): Declare.
7521         * libfuncs.h (LTI_abort, abort_libfunc): New.
7522         * optabs.c (init_optabs): Init abort_libfunc.
7523
7524 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7525
7526         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7527         (LINK_COMMAND_SPEC): ... from here.
7528         (init_gcc_specs): Duplicate it here too, omitting
7529         shared_name in the second copy.
7530         (init_spec): Test for duplicate
7531         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7532
7533 2002-03-30  David S. Miller  <davem@redhat.com>
7534
7535         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7536         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7537
7538 2002-03-30  Roger Sayle <roger@eyesopen.com>
7539             Richard Henderson  <rth@redhat.com>
7540
7541         * regmove.c (combine_stack_adjustments_for_block): Avoid
7542         emitting a stack adjustment of zero bytes.  Let delete_insn
7543         update bb->head.
7544
7545 2002-03-30  Richard Henderson  <rth@redhat.com>
7546
7547         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7548         (sparc_emitting_epilogue): New.
7549         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7550         * config/sparc/sparc-protos.h: Update.
7551         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7552         (TARGET_SWITCHES): Update.
7553         * config/sparc/sparc.md (return): Remove.
7554         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7555         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7556         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7557         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7558         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7559         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7560         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7561         Remove MASK_EPILOGUE.
7562         * doc/invoke.texi: Update.
7563
7564 2002-03-30  Daniel Berlin  <dan@dberlin.org>
7565
7566         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7567         CPP will start the file for us.
7568
7569 2002-03-30  Richard Henderson  <rth@redhat.com>
7570
7571         PR target/5446
7572         * config/ia64/ia64.c (group_barrier_needed_p): Special case
7573         prologue_allocate_stack.
7574         (ia64_single_set): Use insn codes for recognition of special
7575         cases, not rtl matching.
7576         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7577
7578 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
7579
7580         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7581
7582 2002-03-30  Richard Henderson  <rth@redhat.com>
7583
7584         PR target/6032
7585         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7586         or -fomit-frame-pointer with profiling.
7587         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7588         (FUNCTION_PROFILER): Do nothing.
7589         (PROFILE_HOOK): New.
7590         * config/sparc/sparc.c (sparc_override_options): Don't check
7591         code models for profiling.
7592         (sparc_function_profiler): Remove.
7593         (sparc_profile_hook): New.
7594         * config/sparc/sparc-protos.h: Update.
7595
7596 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7597
7598         PR optimization/6086
7599         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7600         of SUBREG of volatile MEM or because the MEM was mode dependent,
7601         return CLOBBER instead of unmodified SUBREG.
7602
7603 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7604
7605         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7606         when not optimizing.
7607
7608         * toplev.c (rest_of_compilation): Cann mark_constant_function
7609         only when optimizing.
7610
7611         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7612         are NULL.
7613
7614         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7615         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7616         (try_optimize_cfg): clear all AUX fields.
7617
7618         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7619         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7620         (ix86_address_cost): Be prepared for SUBREGed registers.
7621         (legitimate_address_p): Accept SUBREGed registers.
7622
7623 2002-03-29  Richard Henderson  <rth@redhat.com>
7624
7625         PR target/5672
7626         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7627
7628 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7629
7630         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7631         for aggregate and TFmode types.
7632
7633 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
7634
7635         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7636
7637 2002-03-29  Richard Henderson  <rth@redhat.com>
7638
7639         PR target/5886
7640         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7641         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7642
7643 2002-03-29  Richard Henderson  <rth@redhat.com>
7644
7645         PR target/6041
7646         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7647         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7648         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7649         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7650         conditional.
7651         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7652
7653 2002-03-29  Dale Johannesen <dalej@apple.com>
7654
7655         * loop.c (combine_movables): Do allow combination of pseudos.
7656
7657 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
7658
7659         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7660         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7661         No functional change except ...
7662         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
7663         * doc/install.texi (*-*-freebsd*): Document port configuration.
7664
7665 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7666
7667         * Makefile.in (convert.o, calls.o, expmed.o): Update.
7668         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7669         Use new hooks.
7670         * builtin-types.def (BT_PTRMODE): Update.
7671         * c-common.c (type_for_size): Rename c_common_type_for_size.
7672         (type_for_mode): Similarly.
7673         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7674         Use new hook.
7675         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7676         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7677         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7678         Redefine.
7679         * c-typeck.c (common_type, comptypes, default_conversion):
7680         Use new hooks.
7681         * calls.c: Include langhooks.h.
7682         (emit_library_call_value_1): Use new hooks.  Avoid redundant
7683         calls.
7684         * convert.c: Include langhooks.h
7685         (convert_to_pointer, convert_to_integer): Use new hooks.
7686         * except.c (init_eh): Similarly.
7687         * expmed.c: Include langhooks.h.
7688         (expand_mult_add): Use new hooks.
7689         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7690         try_casesi): Similarly.
7691         * fold-const.c (optimize_bit_field_compare, make_range,
7692         decode_field_reference, fold_truthop, fold): Similarly.
7693         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7694         put_var_into_stack): Similarly.
7695         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7696         LANG_HOOKS_TYPE_FOR_SIZE): New.
7697         (LANG_HOOKS_TYPES_INITIALIZER): Update.
7698         * langhooks.h (lang_hooks_for_types): New hooks.
7699         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7700         * tree.c (get_unwidened, get_narrower): Similarly.
7701         * tree.h (type_for_mode, type_for_size): Remove.
7702         * varasm.c (force_const_mem): Use new hooks.
7703         * utils2.c (nonbinary_modular_operation): Update.
7704 objc:
7705         * objc-act.c (handle_impent): Update.
7706         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7707         Redefine.
7708
7709 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
7710
7711         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7712         * config/ia64/ia64.c (basereg_operand): New.
7713         * config/ia64/ia64-protos.h (basereg_operand): Declare.
7714         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7715
7716 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
7717
7718         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7719         unwind information when frame_pointer_needed.
7720         (mmix_assemble_integer): Tweak wording in comment.
7721
7722 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7723
7724         * Makefile.in (except.o): Update.
7725         * except.c: Include langhooks.h.
7726         (init_eh): Use langhook.
7727         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
7728         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
7729         (LANG_HOOKS_INITIALIZER): Update.
7730         * langhooks.h (lang_hooks_for_types): New.
7731         (struct lang_hooks): Add it.
7732         * tree.c (make_lang_type_fn, make_lang_type): Remove.
7733         * tree.h (make_lang_type_fn, make_lang_type): Remove.
7734 config:
7735         * alpha/alpha.c: Include langhooks.h.
7736         (alpha_build_va_list): Use langhook.
7737         * d30v/d30v.c: Include langhooks.h.
7738         (d30v_build_va_list): Use langhook.
7739         * i386/i386.c: Include langhooks.h.
7740         (ix86_build_va_list): Use langhook.
7741         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
7742         * s390/s390.c: Include langhooks.h.
7743         (s390_build_va_list): Use langhook.
7744         * stormy16/stormy16.c: Include langhooks.h.
7745         (stormy16_build_va_list): Use langhook.
7746
7747 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7748
7749         PR c++/5964
7750         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
7751         attributes.
7752         (length): Compute variable length for branches/calls/jumps here.
7753         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
7754         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
7755         define branch_type attribute.
7756         (divsi3_sp32): Maximum length is 6 not 7.
7757         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
7758         call_address_untyped_struct_value_sp32,
7759         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
7760         * config/sparc/sparc.c (empty_delay_slot): New function.
7761         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
7762         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
7763
7764 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7765
7766         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
7767         nonzero_bits if not needed.
7768         (nonzero_bits) [XOR]: Likewise.
7769         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
7770         reg_last_set_mode and mode are both MODE_INT, but not equal.
7771         (record_value_for_reg): Compute reg_last_set_nonzero_bits
7772         in nonzero_bits_mode for MODE_INT modes.
7773
7774 2002-03-28  Richard Henderson  <rth@redhat.com>
7775
7776         PR target/5715
7777         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
7778         to GAS.  Correct drift between alternatives.
7779
7780 2002-03-28  Richard Henderson  <rth@redhat.com>
7781
7782         PR target/6087
7783         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
7784
7785 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
7786
7787         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
7788         emulation to the linker.
7789
7790 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
7791
7792         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
7793         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
7794
7795 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
7796
7797         * combine.c (simplify_and_const_int): Make sure to apply mask
7798         when force_to_mode returns a constant integer.  PR3311.
7799
7800 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7801
7802         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
7803
7804 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7805
7806         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
7807         and Objective-C Dialect Options.
7808
7809 2002-03-28  Richard Henderson  <rth@redhat.com>
7810
7811         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
7812         comparison should be done vs !=0 not >0 return code.  Tidy cases.
7813
7814 2002-03-28  Richard Henderson  <rth@redhat.com>
7815
7816         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
7817         on to c_expand_body.
7818         * c-tree.h (finish_function): Update decl.
7819         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
7820
7821 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
7822
7823         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
7824
7825 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
7826
7827         * rtlanal.c: Include flags.h
7828         (may_trap_p): Do not mark FP operations if trapping
7829         if !flag_trapping_math
7830         * Makefile.in (rtlanal.o): Add dependency on flag.h
7831         * ifcvt.c (noce_operand_ok): Avoid the lameness.
7832
7833 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
7834
7835         * mips.md: Use dconst1, not 1.0, as first argument of
7836         REAL_VALUE_LDEXP.  Don't use union real_extract.
7837
7838 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
7839
7840         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
7841         rather than $target.  Heed program_prefix and
7842         program_transform_name.  Search for gas in cross-compiler case too.
7843         "test -x" rather than "test -f".
7844         (gcc_cv_ld): Likewise.
7845         (gcc_cv_nm): Heed program_prefix and program_transform_name.
7846         (gcc_cv_objdump): Likewise.
7847         * configure: Regenerate.
7848
7849 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7850
7851         * Makefile.in (attribs.o): Update.
7852         * attribs.c: Include langhooks.h.
7853         (decl_attributes): Use langhook.
7854         * c-decl.c (insert_default_attributes): Rename.
7855         * c-tree.h (c_insert_default_attributes): New.
7856         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
7857         (LANG_HOOKS_INITIALIZER): Update.
7858         * langhooks.h (struct lang_hooks): New hook.
7859         * tree.h (insert_default_attributes): Remove.
7860 objc:
7861         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
7862
7863 2002-03-27  Andreas Schwab  <schwab@suse.de>
7864
7865         * config/i386/i386.c (classify_argument): Also check for
7866         QUAL_UNION_TYPE.
7867
7868 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7869
7870         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
7871         any more.
7872
7873 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7874
7875         * i960.md (ret): Set PC.
7876         (nonlocal_goto): Fix expander.
7877         * builtins.c (epxand_builin_longjmp): Check that we've emitted
7878         some jump or call.
7879
7880 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
7881
7882         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
7883         of libcall regions.
7884
7885 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7886
7887         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
7888         assigning to BLOCK_FOR_INSN directly.
7889
7890 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
7891
7892         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
7893
7894 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7895
7896         * c-common.c (c_expand_expr): Fix prototype.
7897         * c-common.h (c_expand_expr): Always declare, update.
7898         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7899         * c-objc-common.c (c_objc_common_init): No global hook.
7900         * expr.c (expand_expr): Use langhook.
7901         * expr.h (enum expand_modifier): Conditionally declare.
7902         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
7903         (LANG_HOOKS_INITIALIZER): Update.
7904         * langhooks.c (lhd_expand_expr): New.
7905         * langhooks.h (struct lang_hooks): New hook.
7906         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
7907         (lang_independent_init): Don't default hook.
7908 objc:
7909         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7910
7911 2002-03-27  Richard Henderson  <rth@redhat.com>
7912
7913         PR target/6054
7914         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
7915         TARGET_CONST_GP.  Simplify conditions.
7916
7917 2002-03-27  Richard Henderson  <rth@redhat.com>
7918
7919         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7920         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
7921         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
7922
7923 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
7924
7925         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
7926         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
7927         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
7928         Remove unnecessary masks.
7929         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
7930         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
7931         -mwindows, -mdll switches and their negations.
7932
7933 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7934
7935         * gcc-common.c (lang_mark_false_label_stack): Remove.
7936         * ggc.h (lang_mark_false_label_stack): Similarly.
7937
7938 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
7939
7940         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
7941
7942         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
7943         or __rtems_ is defined.
7944
7945 2002-03-26  Richard Henderson  <rth@redhat.com>
7946
7947         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
7948         if a non-trivial load was emitted.
7949         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
7950         in high+extra+low case.
7951
7952 2002-03-26  Richard Henderson  <rth@redhat.com>
7953
7954         * config.gcc (sparc*-solaris): Use float_format=sparc.
7955
7956 2002-03-26  Richard Henderson  <rth@redhat.com>
7957
7958         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7959         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
7960         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
7961         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
7962         (WINT_TYPE_SIZE): Fix at 32.
7963
7964 2002-03-26  Richard Henderson  <rth@redhat.com>
7965
7966         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
7967         until after eh landing pad generation.
7968         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
7969         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
7970
7971 2002-03-26  Richard Henderson  <rth@redhat.com>
7972
7973         * expr.h (ADD_PARM_SIZE): One more convert for INC.
7974
7975 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
7976
7977         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
7978         and warning switches.
7979         (cc1_options):  Likewise.
7980
7981 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
7982
7983         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
7984         Restore more of the signal context.  Set no_reg_stack_frame.
7985         * config/ia64/unwind-ia64.c (unw_state_record):
7986         Add no_reg_stack_frame, comments.
7987         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
7988         (uw_update_context): Adjust bsp when unwinding from leaf,
7989         but not signal frame.
7990
7991 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
7992
7993         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
7994
7995 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
7996
7997         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
7998
7999 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8000
8001         PR target/5621
8002         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
8003         "Add a pool_range attribute", which was lost during the ARM/Thumb
8004         merge.
8005
8006 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
8007
8008         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
8009         a register into the MAC16 accumulator.
8010
8011 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
8012
8013         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
8014         (Warning Options): Document -Wswitch-enum.
8015         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
8016         -Wswitch.
8017         (warn_switch_enum): Define variables.
8018         * flags.h (warn_switch_enum): Declare variables.
8019         * stmt.c (expand_end_case_type): When warn_switch_enum /
8020         -Wswitch-enum, perform switch checks.
8021         Fix PR c/5044.
8022
8023 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
8024
8025         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
8026         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
8027         (reload_muladdsi_compare0_scratch): Delete.
8028
8029 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
8030
8031         * doc/install.texi (*-*-freebsd*): Update.
8032
8033 2002-03-26  Richard Henderson  <rth@redhat.com>
8034
8035         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
8036         (SUB_PARM_SIZE): Cast DEC to ssizetype.
8037
8038         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
8039         types from the normal argument frame.
8040
8041         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
8042         variable sized objects by reference.
8043         (sparc_va_arg): Receive them by reference too.
8044
8045 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
8046
8047         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
8048         code to not restoring global registers.
8049
8050 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
8051
8052         * Makefile.in (ggc-common.o): Update.
8053         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
8054         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8055         * c-tree.h (c_mark_tree): New.
8056         * ggc-common.c: Include langhooks.h.
8057         (gcc_mark_trees): Use new langhook.
8058         * ggc-callbacks.c: Delete file.
8059         * ggc.h (lang_mark_tree): Remove.
8060         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
8061         (LANG_HOOKS_INITIALIZER): Update.
8062         * langhooks.h (struct lang_hooks): New hook.
8063 objc:
8064         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
8065
8066 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8067
8068         * doc/cpp.texi: Exclude entire Top node from printed manual.
8069         Move option index after directive index.  Insert page breaks
8070         before GFDL and concept index.  Index environment variables
8071         with command line options.
8072         * doc/cppenv.texi: Use @vtable for environment variable list.
8073         Add paragraph explaining semantics of empty elements in path
8074         variables.  Exclude a cross-reference to Fishkill from the
8075         manpage.  Remove an unnecessary cross-reference of the entry
8076         right above the referer.  Don't use @anchor in text that goes
8077         into manpage.
8078         * doc/cppopts.texi: Cross-reference the environment variables
8079         section, not the specific environment variable, for consistency.
8080
8081 2002-03-25  Richard Henderson  <rth@redhat.com>
8082
8083         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
8084         anywhere in the block.  Don't refer to insns that have been
8085         removed from the chain.  Iterate backward through the new insns.
8086         Don't refer to edges that have been removed.
8087
8088 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
8089
8090         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
8091         test for overflow of constant.
8092
8093 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
8094
8095         PR target/2623
8096         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
8097         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
8098         these patterns on arm_archv4.
8099
8100 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
8101
8102         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
8103         int".
8104
8105 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
8106
8107         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
8108         float_handled, float_handler, float_signal, set_float_handler,
8109         and do_float_handler.  Set handler for SIGFPE to crash_signal.
8110         * toplev.h: Don't prototype do_float_handler.
8111
8112         * c-lex.c: Fold parse_float into lex_number.  Make warning
8113         about portability of hex float constants more informative, and
8114         don't issue it on top of a syntax error.
8115         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
8116         their callers.
8117         * real.h: Define REAL_VALUE_ABS here...
8118         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8119         simplify_unary_real, simplify_binary_real, and
8120         simplify_binary_is2orm1 into their callers.
8121         * tree.c: Fold build_real_from_int_cst_1 into caller.
8122
8123         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8124
8125         * tsystem.h: Include float.h here...
8126         * libgcc2.c: ... not here.
8127
8128 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8129
8130         Fixes for: PR bootstrap/3591, target/5676
8131         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8132         defined.  Do not disable exceptions or rtti.
8133         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8134         mcore.h.  Disable exceptions and rtti, since they are not
8135         supported by EPOC.
8136
8137 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8138
8139         * c-decl.c (maybe_build_cleanup): Remove.
8140         * expr.c (expand_expr): Use langhook.
8141         * langhooks-def.h (lhd_return_null_tree,
8142         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8143         (LANGHOOKS_INITIALIZER): Update.
8144         * langhooks.c (lhd_return_null_tree): New.
8145         * langhooks.h (struct lang_hooks): New hook.
8146         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8147         * tree.h (maybe_build_cleanup): Remove.
8148
8149 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8150
8151         * regrename.c (build_def_use): Move recog_memoized
8152         before extract_insn.
8153
8154 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8155
8156         PR target/6043
8157         * expr.c (emit_group_store): Handle storing into CONCAT.
8158
8159 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8160
8161         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8162         corresponding MATCH_DUP.
8163
8164 2002-03-24  Richard Henderson  <rth@redhat.com>
8165
8166         * unroll.c (unroll_loop): Zero label_map.
8167
8168         * gcse.c: Include except.h.
8169         * Makefile.in (gcse.o): Update.
8170
8171 2002-03-24  Richard Henderson  <rth@redhat.com>
8172
8173         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8174         Do resolve_unique_section before shared data clause.
8175
8176 2002-03-24  Richard Henderson  <rth@redhat.com>
8177
8178         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8179
8180 2002-03-24  Richard Henderson  <rth@redhat.com>
8181
8182         * recog.c (peephole2_optimize): Split blocks when EH insns are
8183         generated in the middle of a block.  Do global life update if
8184         zapped EH edges.
8185
8186 2002-03-24  Richard Henderson  <rth@redhat.com>
8187
8188         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8189
8190 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8191
8192         preprocessor/3951
8193         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8194         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8195         (init_dependency_output): Don't make no_output decision here.
8196
8197 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8198
8199         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8200         warn_switch.  Update description.
8201         (expand_end_case_type): Call check_for_full_enumeration_handling
8202         when warn_switch.
8203
8204 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8205
8206         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8207         (m68hc11_split_move): Call it to see if the source and destination
8208         operands use the same direction auto inc/dec mode, otherwise make the
8209         source an offsetable memory operand and generate an add.
8210
8211 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8212
8213         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8214         register for operand 2.
8215         ("*subsi3_zero_extendqi"): Likewise.
8216         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8217         bits so that it is compatible with a pop.
8218         ("*andhi3_gen"): Likewise.
8219         ("xorhi3"): Likewise.
8220
8221 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8222
8223         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8224         -pedantic here...
8225         (cpp_post_options): ... not here.
8226
8227 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8228             Aldy Hernandez  <aldyh@redhat.com>
8229
8230         Removal of separate preprocessor cpp0.
8231
8232         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8233         cpp0, install-common): Update.
8234         * c-common.c (flag_preprocess_only): New.
8235         (c_common_init): Preprocess for -E.
8236         * c-common.h (flag_preprocess_only): New.
8237         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8238         * c-objc-common.c (c_init_decl_processing): Exit quickly
8239         for NULL return from c_common_init.
8240         * cpplib.h (cpp_preprocess_file): New.
8241         * cppmain.c (main, general_init, pfile, progname): Remove.
8242         (do_preprocessing): Rename cpp_preprocess_file, don't call
8243         cpp_finish.  Don't close stdout here.
8244         (setup_callbacks): Update prototype.
8245         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8246         Update.
8247         * tradcpp.c (main): Ignore -quiet.
8248 objc:
8249         * lang-specs.h (default_compilers): Preprocess with cc1obj.
8250
8251 2002-03-24  Richard Henderson  <rth@redhat.com>
8252
8253         PR optimization/5742
8254         * machmode.def: Add inner mode field to complex modes.
8255         * config/mips/mips.c (mips_function_value): Always define.  Add
8256         new argument to handle libcalls.
8257         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8258         (FUNCTION_VALUE): Likewise.
8259         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8260         * config/mips/mips-protos.h: Update.
8261
8262 2002-03-23  Richard Henderson  <rth@redhat.com>
8263
8264         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8265         * config/sparc/sparc-protos.h: Update.
8266         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8267
8268 2002-03-23  Richard Henderson  <rth@redhat.com>
8269
8270         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8271         _start or _init begins the text segment.
8272
8273 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
8274
8275         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
8276         not HOST_WIDEST_INT.
8277         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8278
8279 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
8280
8281         PR java/5489
8282         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8283         operand argument to output_return_instruction.
8284         * arm.c (arm_print_operand, case 'd'): If the operand is
8285         const_true_rtx then just return.
8286         (arm_print_operand, case 'D'): If the operand is const_true_rtx
8287         then abort.
8288
8289 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8290
8291         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8292         (Warning Options): Document -Wswitch-default.
8293         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
8294         -Wswitch.
8295         (warn_switch_default): Define variable.
8296         (warn_switch): Update comment.
8297         * flags.h (warn_switch_default): Declare variable.
8298         (warn_switch): Update comment.
8299         * stmt.c (expand_end_case): Check for and, when
8300         warn_switch_no_default, warn of a missing default case.
8301
8302 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
8303
8304         * real.h (N): Special case 128 bit doubles.
8305
8306         * combine.c (simplify_comparison): When widening modes, ignore
8307         sign extension on CONST_INTs.
8308
8309 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8310
8311         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8312         passed to adjust_address.  Fix comment formatting.
8313
8314
8315 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
8316
8317         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8318         Always make REAL_VALUE_TYPE a struct containing an array of
8319         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
8320         big it is.  Don't declare or use union real_extract.
8321
8322         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8323         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8324         (print_operand), config/arm/arm.c (output_move_double),
8325         config/arm/arm.md (consttable_4, consttable_8),
8326         config/romp/romp.c (output_fpops), config/s390/s390.h
8327         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8328         (xtensa_output_literal): Don't use union real_extract.
8329
8330         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8331         (sfmode_constant_to_ulong), config/ns32k/merlin.h
8332         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8333         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8334         (PRINT_OPERAND): Don't use local version of union
8335         real_extract.
8336
8337         * config/convex/convex.c (check_float_value), config/vax/vax.c
8338         (vax_float_literal), config/m88k/m88k.md (divdf3),
8339         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8340         config/pdp11/pdp11.c (output_move_quad): Don't do host
8341         arithmetic on target floating point quantities.
8342
8343         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8344         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8345
8346         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8347         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8348
8349         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8350         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8351         INFINITY.
8352         * print-rtl.c (print_rtx): Disable code which needs
8353         floating-point emulator.
8354         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8355         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8356         depending on HOST_FLOAT_FORMAT to be defined properly.
8357
8358         * config/1750a/1750a.c (get_double, float_label): Delete.
8359         (print_operand): Delete huge commented-out chunk.  Use
8360         REAL_VALUE_TO_DECIMAL.
8361         * config/1750a/1750a-protos.h: Delete prototypes of deleted
8362         functions.
8363         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8364         IEEE_FLOAT_FORMAT.
8365         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8366         Use REAL_VALUE_TO_DECIMAL as ELF version does.
8367         * config/m88k/m88k.c (real_power_of_2_operand,
8368         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8369         real_extract out of the union; run the input through
8370         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8371         from that into the union.
8372         * config/pdp11/pdp11.c (output_move_double): Rearrange
8373         parentheses to make automatic indenter happy.
8374
8375         * doc/tm.texi (Cross-compilation): Rename node to "Floating
8376         Point" and rewrite to describe current situation.  Also adjust
8377         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8378         match code.
8379         * doc/rtl.texi: Adjust cross reference.
8380
8381 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8382
8383         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8384         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8385         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8386         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8387         prevent use of sp as a reload register.
8388         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8389         non_acc_reg_operand.
8390         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8391         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8392         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8393         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8394
8395 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8396
8397         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8398         * cpplex.c (unterminated): Delete.
8399         (parse_string): No string literal may extend over multiple
8400         lines.  Suppress the error when preprocessing assembly.
8401         * cppmain.c (scan_translation_unit): Strings are single-line.
8402
8403         * doc/cpp.texi: Update to match.
8404
8405 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8406
8407         PR optimization/5854
8408         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8409         Shut up warnings.
8410         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8411         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8412         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8413         const0 if scratch register was not allocated.
8414         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8415         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8416         with GEN_INT (...).
8417         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8418         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8419         with GEN_INT (...) everywhere.  Remove constraints in define_split
8420         patterns.
8421         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8422         require scratch register for setting 0 into regs/non-pushable memory.
8423
8424 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8425
8426         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8427         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8428
8429 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
8430
8431         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
8432         * cppinit.c (cpp_create_reader):  On by default.
8433         (cpp_handle_option):  Handle -W[no-]endif-labels.
8434         (cpp_post_options):  Also enable if -pedantic.
8435         * cpplib.c (do_else):  Use it.
8436         (do_endif):  Likewise.
8437         * doc/cppopts.texi:  Document new option.
8438         * doc/invoke.texi:  Document new option.
8439
8440 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
8441
8442         * config/i386/i386.c, config/i386/i386.md: Change all occurences
8443         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8444
8445 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8446
8447         * flow.c (calculate_global_regs_live): Clear aux fields of
8448         ENTRY and EXIT.
8449
8450 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8451
8452         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8453         REG or MEM subregs, pass rtx * instead of rtx to it.
8454         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8455         rtx * instead of rtx to alter_subreg.
8456         * config/m32r/m32r.c (gen_split_move_double): Likewise.
8457         * config/pj/pj.c (pj_output_rval): Likewise.
8458
8459 2002-03-22  Richard Henderson  <rth@redhat.com>
8460
8461         PR target/3177
8462         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8463         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8464         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8465         (ia64_expand_prologue): Look at int_regs, not words, for number
8466         of incomming int regs.
8467
8468 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
8469
8470         * expr.c (expand_expr): A RESULT_DECL is part of a call.
8471
8472 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
8473
8474         * toplev.c (flag_loop_optimize, flag_crossjumping):
8475         New static variables.
8476         (rest_of_compilation): Conditionalize crossjumping and
8477         loop optimizer.
8478         (parse_options_and_default_flags): Default loop_optimize and
8479         crossjumping.
8480         (lang_independent_options): Add -fcrossjumping and -floop-optimize
8481         * invoke.texi (crossjumping, loop-optimize): Document.
8482
8483 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8484
8485         * real.c (eiisneg): Move outside #ifdef NANS.
8486
8487 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8488
8489         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8490         frequencies match; avoid match on different loop depths.
8491         (try_crossjump_to_bb): Kill tests that no longer brings time
8492         savings.
8493         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8494         updating code.
8495         (split_edge): Likewise.
8496
8497         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8498         variable.
8499
8500         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8501         * cfgrtl.c: Include insn-config.h
8502         (split_block) Dirtify block in presence of conditional execution
8503
8504 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8505
8506         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8507         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8508         (function_arg): Constify CUMULATIVE_ARGS.
8509         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8510         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8511         (UNITS_PER_DOUBLE): New macro.
8512         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
8513         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
8514         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
8515         fp_regs and stack_words.
8516         (EABI_FLOAT_VARARGS_P): New macro.
8517         * config/mips/mips.c (struct mips_arg_info): New.
8518         (mips_arg_info): New function.
8519         (function_arg_advance): Use it.  Add adjustment instructions here
8520         rather than in function_arg.
8521         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
8522         for VOIDmode at the beginning of the function.
8523         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
8524         (function_arg_pass_by_reference): Likewise.
8525         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8526         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8527         (mips_va_start): Likewise.  Use the new stack_words field of
8528         CUMULATIVE_ARGS to set up overflow area.  Reformat.
8529         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
8530         doubles and other types, aligning the overflow pointer for non-doubles
8531         too.  Remove some code duplication.  Replace hard-coded constants.
8532
8533 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8534
8535         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8536         (CLASS_UNITS): Undefine.
8537         (CLASS_MAX_NREGS): Use FP_INC.
8538         * config/mips/mips.c (compute_frame_size): Likewise.
8539         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8540
8541 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8542
8543         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8544         prototype, and handle lexing numbers and identifiers.
8545         (parse_identifier): Update to new form of parse_slow.
8546         (parse_number): Fast path only, use parse_slow otherwise.
8547         (_cpp_lex_direct): Update calls to parse_number.
8548
8549 2002-03-21  DJ Delorie  <dj@redhat.com>
8550
8551         * bb-reorder.c (make_reorder_chain_1): Protect against
8552         when redundant edges are omitted.
8553         * predict.c (dump_prediction): Likewise.
8554
8555 2002-03-21  Richard Henderson  <rth@redhat.com>
8556
8557         PR target/5996
8558         * fixinc/inclhack.def (solaris_stdio_tag): New.
8559         * fixinc/fixincl.x: Regenerate.
8560
8561 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
8562
8563         PR c/5597
8564         * c-typeck.c (process_init_element): Flag non-static
8565         initialization of a flexible array member as illegal.
8566
8567 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
8568
8569         * config/rs6000/t-linux64: New.
8570         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8571         t-ppccomm.  Use t-rs6000 and t-linux64.
8572         (powerpc64-*-gnu* <tmake_file>): Likewise.
8573         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8574         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8575         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8576
8577 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
8578
8579         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8580         flag_really_no_inline instead of optimize == 0.
8581
8582         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8583
8584         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8585
8586         * flags.h (flag_really_no_inline): New.
8587
8588         * c-common.c (c_common_post_options): Initialize
8589         flag_really_no_inline.
8590
8591         * toplev.c (flag_really_no_inline): New.
8592
8593 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
8594
8595         * config/avr/avr.md (length): Fix length computation for
8596         conditional branches.
8597
8598 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8599
8600         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8601         sdbout.o, profile.o): Update.
8602         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8603         langhook.
8604         * c-common.h (gettags): Move here from tree.h.
8605         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8606         insert_block, getdecls, kept_level_p, global_bindings_p): New.
8607         * dbxout.c (dbxout_init): Use getdecls langhook.
8608         * expr.c (expand_expr): Use insert_block langhook.
8609         * fold-const.c: Include langhooks.h.
8610         (fold_range_test, fold_binary_op_with_conditional_arg,
8611         fold): Use global_bindings_p langhook.
8612         * integrate.c (expand_inline_function): Use insert_block langhook.
8613         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8614         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8615         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8616         LANG_HOOKS_GETDECLS): New.
8617         (LANG_HOOKS_INITIALIZER): Update.
8618         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8619         langhook.
8620         * langhooks.h (struct lang_hooks_for_decls): New.
8621         (struct lang_hooks): Update.
8622         * profile.c: Include langhooks.h.
8623         (output_func_start_profiler): Use new langhooks.
8624         * sdbout.c: Include langhooks.h.
8625         (sdbout_init, sdbout_finish): Use getdecls langhook.
8626         * stmt.c: Include langhooks.h.
8627         (expand_fixup, fixup_gotos): Use new langhooks.
8628         * stor-layout.c: Include langhooks.h.
8629         (variable_size): Use global_bindings_p langhook.
8630         * toplev.c (compile_file): Use getdecls langhook.
8631         * tree-inline.c (remap_block): Use insert_block langhook.
8632         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8633         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8634
8635 2002-03-21  Richard Henderson  <rth@redhat.com>
8636
8637         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8638         constants in .data when -fpic.
8639
8640 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8641
8642         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8643         where appropriate.
8644
8645 2002-03-21  Tom Tromey  <tromey@redhat.com>
8646
8647         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
8648
8649 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8650
8651         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8652
8653         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8654
8655 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
8656             Richard Henderson  <rth@redhat.com>
8657
8658         PR c/5354
8659         * c-common.c (c_expand_expr): Preserve result of a statement
8660         expression if needed.
8661
8662 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
8663
8664         PR bootstrap/4195
8665         * genrecog.c (maybe_both_true_mode): Remove.
8666         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8667         * machmode.def (Pmode): Likewise.
8668
8669 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
8670
8671         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8672         (nonlocal_mentioned_p_1): New function.
8673         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8674         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8675         (mark_constant_function): Recognize pure functions.
8676         * rtl.h (global_reg_mentioned_p): New prototype.
8677         * rtlanal.c (global_reg_mentioned_p,
8678         global_reg_mentioned_p_1): New function.
8679
8680 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8681
8682         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8683         UNIX assert.h.
8684         * fixinc/fixincl.x: Regenerate.
8685
8686 2002-03-20  Jason Merrill  <jason@redhat.com>
8687
8688         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8689
8690 2002-03-20  Michael Meissner  <meissner@redhat.com>
8691
8692         * doc/invoke.texi (Optimize Options): Document that -O2 sets
8693         -fstrict-aliasing.
8694
8695 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
8696
8697         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8698         ".literal_position" directive before the constant pool.
8699
8700 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8701
8702         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8703         Add Craig Rodrigues.
8704         Add Brad Lucier to testers.
8705
8706 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
8707
8708         PR target/4792
8709         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8710         to if_then_else.
8711         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8712         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8713         instead of insn_extract.
8714
8715 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
8716
8717         PR bootstrap/4192
8718         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8719
8720         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8721         stmt if some case has been output.
8722
8723 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
8724
8725         PR c/5972
8726         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
8727         movsfcc_1, movdfcc_1): Add %O2.
8728         * config/i386/i386.c (print_operand): Handle %ON.
8729         Print . before float condition codes in Sun as cmov syntax.
8730         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
8731         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
8732         no longer true.
8733
8734 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
8735
8736         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
8737         return instruction if PC was popped.
8738
8739 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
8740
8741         * config/xtensa/xtensa.md: Remove unused type attributes.
8742         (adddi_carry, subddi_carry): Change type attribute to "multi".
8743
8744 2002-03-19  Dale Johannesen  <dalej@apple.com>
8745
8746         PR optimization/5999, middle-end/5731
8747         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
8748         multiplications by reciprocals.
8749
8750 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
8751
8752         * Makefile.in: Update.
8753         * c-common.c: Include langhooks.h.
8754         (inline_forbidden_p): Use new hook.
8755         * diagnostic.c: Include langhooks.h.
8756         (format_with_decl, announce_function,
8757         default_print_error_function): Use new hook.
8758         * dwarf2out.c (dwarf2_name): Use new hook.
8759         * function.c: Include langhooks.h.
8760         (init_function_start): Use new hook.
8761         * langhooks-def.h (lhd_decl_printable_name): New.
8762         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
8763         (LANGHOOKS_INITIALIZER): Update.
8764         * langhooks.c (lhd_decl_printable_name): New.
8765         * langhooks.h (struct lang_hooks): New hook.
8766         * toplev.c (decl_name, decl_printable_name): Remove.
8767         (open_dump_file): Use new hook.
8768         (process_options): Remove old hook.
8769         * tree.h (decl_printable_name): Remove.
8770 objc:
8771         * objc-act.c (objc_init): Remove old hook.
8772         (objc_printable_name): Export.
8773         * objc-act.h (objc_printable_name): New.
8774         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
8775
8776 2002-03-19  Jim Blandy  <jimb@redhat.com>
8777
8778         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
8779         the start_source_file debug hook, not the current line number.
8780
8781 2002-03-19  Richard Henderson  <rth@redhat.com>
8782
8783         * flow.c (EH_USES): Provide default.
8784         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
8785         * doc/tm.texi (EH_USES): New.
8786
8787         * config/ia64/ia64.c (ia64_eh_uses): New.
8788         * config/ia64/ia64-protos.h: Update.
8789         * config/ia64/ia64.h (EH_USES): New.
8790
8791 2002-03-19  Richard Henderson  <rth@redhat.com>
8792
8793         * varasm.c (output_constant_def): Fix stupid typo.
8794
8795 2002-03-19  Richard Henderson  <rth@redhat.com>
8796
8797         PR 5879
8798         * except.c (current_function_has_exception_handlers): New.
8799         * except.h: Declare it.
8800         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
8801         Combine tests that disable all sibcalls for the function.
8802
8803 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
8804
8805         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
8806         for INTEGER_CST.
8807
8808 2002-03-19  Richard Henderson  <rth@redhat.com>
8809
8810         PR 5977, 5991
8811         * config/ia64/ia64.c: Revert 2002-03-01 patch.
8812         * config/ia64/ia64.h (INIT_EXPANDERS): New.
8813
8814 2002-03-19  Jim Blandy  <jimb@redhat.com>
8815
8816         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
8817         name, even if the replacement list contains no tokens, as required
8818         by Dwarf.
8819
8820 2002-03-19  Jason Merrill  <jason@redhat.com>
8821
8822         * varasm.c (globalize_decl): Get the name from the RTL, not
8823         DECL_ASSEMBLER_NAME.
8824
8825         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
8826
8827 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
8828
8829         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
8830         subdi_carry): Define.
8831
8832 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
8833
8834         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
8835         about -fpic/-fPIC if extra_warnings set.
8836
8837 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
8838
8839         * expr.c (expand_expr): Sign-extend CONST_INT generated from
8840         TREE_STRING_POINTER.
8841         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
8842
8843 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8844
8845         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
8846         in favor of SP if FRAME_POINTER_REQUIRED is false.
8847
8848 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
8849
8850         * emit-rtl.c (gen_int_mode): New function.
8851         * rtl.h: Prototype for it.
8852         * combine.c (make_extraction, simplify_comparison), expmed.c
8853         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
8854         (convert_modes, store_field), optabs.c (expand_fix),
8855         simplify-rtx.c (neg_const_int, simplify_unary_real),
8856
8857         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
8858         Use it instead of GEN_INT (trunc_int_for_mode (...)).
8859
8860 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
8861
8862         PR c/5656
8863         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
8864         convert_parm_for_inlining.
8865         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
8866         Define.
8867         * langhooks-def.h: Likewise.
8868         * objc/objc-lang.c: Likewise.
8869         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
8870         function.
8871         * tree-inline.c (initialize_inlined_parameters):
8872         Call convert_parm_for_inlining lang hook if needed.
8873         * c-typeck.c (c_convert_parm_for_inlining): New function.
8874         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
8875
8876 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
8877
8878         * calls.c (precompute_arguments): Do not assume that temporaries
8879         can be destroyed after expanding the argument.
8880         (expand_call): Likewise.
8881
8882 2002-03-15  Eric Christopher  <echristo@redhat.com>
8883
8884         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
8885         Fix register preference on last change.
8886         * config/mips/mips.c (mips_return_in_memory): New function.
8887         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
8888         * config/mips/mips-protos.h: Declare.
8889         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
8890         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
8891
8892 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
8893
8894         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
8895         a register too.
8896         (anddi3, iorsi3): Likewise.
8897
8898         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
8899         use %gprel for symbols that are going to be placed in linkonce
8900         sections.
8901
8902         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
8903         RETURN_ADDRESS_POINTER_REGNUM to $ra.
8904         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
8905         not needed.  Disregard leaf_function_p().
8906         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
8907         mips16 frame pointer.
8908         * config/mips/mips.md (store ra): Only to small SP offsets.
8909         2001-08-22  Graham Stott  <grahams@redhat.com>
8910         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
8911         return a REG rtx for the return address register.
8912
8913 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
8914
8915         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
8916         constant-pool addresses as "mode-dependent".
8917         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
8918
8919 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
8920
8921         PR target/5740
8922         * expr.c (emit_group_load): Use extract_bit_field if
8923         needed for CONCAT arguments.
8924
8925 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
8926
8927         PR target/4863
8928         * arm.md (tablejump): Make this a define_expand.  For PIC add the
8929         offset to the base of the table.
8930         (thumb_tablejump): Matcher for Thumb tablejump insn.
8931         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
8932         as the difference of two labels.
8933         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8934         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
8935         tables in the code.
8936         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
8937         * arm.c (get_jump_table_size): If the table is not in the text
8938         section, return zero.
8939
8940 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
8941
8942         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
8943         of gen_rtx_SUBREG.
8944         (arm_reload_out_hi): Use gen_lowpart instead of
8945         gen_rtx_SUBREG to access QImode components.
8946         * config/arm/arm.md: Disable zero_extend split for QImode
8947         subregs in BIG_ENDIAN mode.
8948         (storehi_bigend): Match use of least significant byte.
8949         (storeinthi): Remove extraneous SUBREG.
8950         Add missing construction of operands[2].
8951         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
8952         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
8953         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
8954
8955 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
8956
8957         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
8958         any_operand.
8959
8960 2002-03-17  Richard Henderson  <rth@redhat.com>
8961
8962         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
8963         explicitly.
8964
8965 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
8966
8967         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
8968         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
8969
8970 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8971
8972         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
8973
8974         * predict.c (estimate_bb_frequencies): Delete unused variables.
8975
8976 2002-03-17  Richard Henderson  <rth@redhat.com>
8977
8978         * config/ia64/ia64.c (ia64_attribute_table): Move before
8979         targetm definition.  Make static.
8980
8981 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8982
8983         * c-common.h (yyparse, c_common_parse_file): New.
8984         * c-lang.c: Include c-common.h.
8985         (LANG_HOOKS_PARSE_FILE): Redefine.
8986         * c-lex.c: Include c-common.h.
8987         (yyparse): Rename c_common_parse_file.  Call yyparse.
8988         * c-parse.in (yyparse): Remove macro.
8989         * c-tree.h (yyparse_1): Remove.
8990         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
8991         (LANG_HOOKS_INITIALIZER): Update.
8992         * langhooks.h (struct lang_hoooks): New hook parse_file.
8993         * toplev.c (compile_file): Use parse_file hook.
8994         * tree.h (yyparse): Remove.
8995         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
8996
8997 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
8998
8999         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
9000         float_truncate, not fix.
9001         ("*truncdfsf2_real"): Ditto.
9002         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
9003
9004         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
9005
9006 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
9007
9008         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
9009         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
9010         where appropriate.  Make the second reference to
9011         leaf_function_p a function call, as intended.  Reindented.
9012
9013         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
9014         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
9015
9016         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
9017         add register to non-constant into sp.
9018
9019         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
9020         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
9021         (mips16_gp_pseudo_rtx): Lose.
9022         (INIT_EXPANDERS): Deleted.
9023         * config/mips/mips.c (mips_init_machine_status): New.
9024         (mips_free_machine_status): New.
9025         (mips_mark_machine_status): New.
9026         (override_options): Set them.
9027         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
9028         (struct machine_function): ... new.  Replaced all references.
9029         (mips_add_gc_roots): Don't mark them.
9030         (embedded_pic_fnaddr_reg): New, extracted from...
9031         (embedded_pic_offset): ... here.
9032         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
9033         (movsi): Likewise.
9034
9035 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9036
9037         * cppinit.c: Revert -MD removal.
9038
9039 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9040
9041         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
9042         soft registers by default for 68HC12.
9043         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
9044         when compiling with -fomit-frame-pointer.
9045         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
9046         (expand_epilogue): Likewise.
9047         (m68hc11_gen_rotate): Use exg when rotating by 8.
9048
9049 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9050
9051         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
9052         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
9053         (splits): Remove unused add splits.
9054         ("*addhi3_68hc12"): Tune constraints.
9055         ("addhi_sp"): Try to use X instead of Y in all cases and if the
9056         constant fits in 8-bits and D is dead use abx/aby instructions.
9057         ("*addhi3"): Remove extern declaration of ix_reg.
9058         ("*subsi3"): Optimize and provide new split.
9059         ("subhi3"): Cleanup.
9060         ("*subhi3_sp"): Avoid saving X if we know it is dead.
9061         (arith splits): For 68hc12 save the address register on the stack
9062         and do the arithmetic operation with a pop.
9063
9064 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9065
9066         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
9067         allocating QImode in address registers.
9068         ("*movqi_m68hc11"): Likewise.
9069
9070 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
9071
9072         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
9073
9074 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
9075
9076         * cppinit.c (print_help): Display -MD and -MMD.
9077         Don't display usage string.  Update assertion syntax and
9078         typo.
9079         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
9080         (cpp_handle_option): Update.
9081
9082 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
9083
9084         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
9085         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
9086         and define it so that regardless of target CPU size,
9087         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
9088         of "int" rather than "long."
9089
9090 2002-03-15  Richard Henderson  <rth@redhat.com>
9091
9092         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
9093         size as a tree.
9094
9095 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9096
9097         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
9098         ("tstqi" split): Avoid using memory for tstqi on address register.
9099         (splits): Remove constraints.
9100         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
9101         ("cmpdf", "cmpsf"): Remove since not used.
9102         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
9103         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
9104
9105 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9106
9107         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
9108         ("neghi2"): Tighten constraints.
9109         ("one_cmplsi2"): Optimize and simplify split.
9110         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
9111
9112 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9113
9114         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
9115         and split of AND operation to clear the upper bits.
9116         ("*logicalsi3_zextqi"): Likewise.
9117         ("*logicallhi3_zexthi_ashift8"): Likewise.
9118         ("*logicalsi3_silshr16"): Likewise.
9119         ("logicalsi3_silshl16"): Likewise.
9120         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9121
9122 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9123
9124         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9125         (m68hc11_indirect_p): New function.
9126         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9127         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9128         TARGET_M6812.
9129         (asm_print_register): Likewise.
9130         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9131         (m68hc11_indirect_p): Declare.
9132         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9133         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9134         (TARGET_SWITCHES): New option -mrelax.
9135         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9136         destination.
9137         ("iorsi3", "xorsi3"): Likewise.
9138         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9139         ("*andhi3_mem"): New to handle destination in memory with bclr
9140         and a scratch register.
9141         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9142         ("*andhi3_const"): New when operand2 is constant.
9143         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9144         ("*andhi3_gen"): Cleanup of the old "andhi3".
9145         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9146         ("xorqi3"): Update constraints.
9147
9148 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9149
9150         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9151         for reg_equiv_memory_loc when the operand is a register that does
9152         not get a hard register (stack location).
9153         (tst_operand): After reload, accept all memory operand.
9154         (symbolic_memory_operand): Fix detection of symbolic references.
9155         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9156         accept symbols and any constant.
9157
9158 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9159
9160         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9161         note on the insn that sets the soft frame register.
9162         (must_parenthesize): ix and iy are also reserved names.
9163         (print_operand_address): One more place where parenthesis are required
9164         to avoid confusion with register names.
9165         (m68hc11_gen_movhi): Allow push of stack pointer.
9166         (m68hc11_check_z_replacement): Fix handling of parallel with a
9167         clobber.
9168         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9169         the replacement register is.
9170         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9171         and D8_REGS classes.
9172         (MODES_TIEABLE_P): All modes are tieable except QImode.
9173
9174 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9175
9176         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9177         (___subdi3): Likewise.
9178         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9179         (__map_data_section): Optimize 68hc11 case.
9180
9181 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9182
9183         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9184         than a shift to avoid adding a register with itself.
9185         (m68hc11_memory_move_cost): Take into account NO_REGS.
9186         (m68hc11_register_move_cost): Update and use memory move cost
9187         for soft registers.
9188         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9189         it gives more opportunities to cse to optimize.
9190         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9191         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9192
9193 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9194
9195         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9196         * c-common.def (CLEANUP_STMT): New tree node.
9197         * c-common.h (CLEANUP_DECL): New macro.
9198         (CLEANUP_EXPR): Likewise.
9199         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9200         * expr.c (expand_expr): Tidy.
9201         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9202         * tree-inline.c (initialize_inlined_parameters): Clean up
9203         new local variables.
9204
9205 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9206
9207         PR bootstrap/4128
9208         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9209         before movrXX only, use reg_overlap_mentioned_p.
9210         Only special case NE if just one insn can be generated.
9211
9212 2002-03-15  Jason Merrill  <jason@redhat.com>
9213
9214         * varasm.c (assemble_variable): Call resolve_unique_section before
9215         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9216         of error_mark_node.
9217
9218 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9219
9220         PR target/5170
9221         * arm.md (split pattern for thumb shiftable immediates): Add comment
9222         explaining non-obvious test.
9223
9224 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9225
9226         PR target/5712
9227         * arm.md (movaddr, movaddr_insn): Delete.
9228
9229 2002-03-15  Jason Merrill  <jason@redhat.com>
9230
9231         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9232         -fkeep-static-consts doesn't apply to comdats.
9233
9234 2002-03-14  Richard Henderson  <rth@redhat.com>
9235
9236         * c-decl.c: Include c-pragma.h.
9237         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9238         (finish_function): Tidy.
9239         * c-pragma.c: Include c-common.h.
9240         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9241         (handle_pragma_weak): Use them.
9242         (init_pragma): Register pending_weaks.
9243         * c-pragma.h (maybe_apply_pragma_weak): Declare.
9244         * print-tree.c (print_node): Print DECL_WEAK.
9245         * varasm.c (mark_weak_decls): Remove.
9246         (remove_from_pending_weak_list): Remove.
9247         (add_weak): Remove.
9248         (asm_emit_uninitialised): Call globalize_decl for weak commons.
9249         (weak_decls): Make a tree_list.
9250         (declare_weak): Cons weak_decls directly.
9251         (globalize_decl): Remove weak_decls elements directly.
9252         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
9253         symbols.  Don't pretend to handle aliases.
9254         (init_varasm_once): Update weak_decls registry.
9255         * Makefile.in: Update dependencies.
9256
9257 2002-03-14  Richard Henderson  <rth@redhat.com>
9258
9259         PR target/5312
9260         * config/ia64/ia64.c: Include tm_p.h last.
9261         (gen_nop_type): Remove duplicate definition.
9262         (cycle_end_fill_slots): Set sched_data for second L slot.
9263         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9264         (nop_cycles_until): Fix typos.
9265
9266 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9267
9268         PR optimization/5891
9269         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9270
9271 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9272
9273         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9274           descriptors correctly.
9275
9276 2002-03-14  Michael Meissner  <meissner@redhat.com>
9277
9278         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9279         100, allowing MAX_UNROLLED_INSNS to be overridden.
9280
9281         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9282         --param.
9283
9284         * unroll.c (params.h): Include.
9285         (MAX_UNROLLED_INSNS): Delete, now in params.h.
9286
9287         * doc/invoke.texi (--param max-unroll-insns): Document.
9288
9289         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9290
9291 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9292
9293         * arm.md: Fix warnings about constraints in peepholes and splits.
9294
9295 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
9296
9297         * cpphash.h (struct lexer_state): Remove line_extension member.
9298         * cpplib.c (dequote_string, do_linemarker): New functions.
9299         (linemarker_dir): New data object.
9300         (DIRECTIVE_TABLE): No longer need to interpret #line in
9301         preprocessed source.  Delete obsolete comment about return
9302         values of handlers.
9303         (end_directive, directive_diagnostics, _cpp_handle_directive):
9304         Don't muck with line_extension.
9305         (directive_diagnostics): No need to issue warnings for
9306         linemarkers here.
9307         (_cpp_handle_directive): Issue warnings for linemarkers here,
9308         when appropriate.  Dispatch linemarkers to do_linemarker, not
9309         do_line.
9310         (do_line): Code to handle linemarkers split out to do_linemarker.
9311         Convert escape sequences in filename argument, both places.
9312
9313         * cppmacro.c (quote_string): Rename cpp_quote_string and
9314         export.  All callers changed.
9315         * cpplib.h (cpp_quote_string): Prototype.
9316         * cppmain.c (print_line): Call cpp_quote_string on to_file
9317         before printing it.
9318
9319         * doc/cpp.texi: Document that escapes are now interpreted in
9320         #line and in linemarkers, and that non-printing characters are
9321         converted to octal escapes when linemarkers are generated.
9322
9323 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9324
9325         * emit-rtl.c (try_split): Use delete_insns.
9326         * recog.c (split_all_insns): Fix terminating condition.
9327
9328 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9329             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9330
9331         PR target/5828
9332         * arm.c (arm_output_epilogue): Fix floating-point register save
9333         adjustment when using a frame pointer.
9334
9335 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
9336
9337         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9338         * config/mips/mips.c (compute_frame_size): Retrofit them here.
9339         (save_restore_insns, mips_expand_epilogue): And here.
9340         (build_mips16_call_stub): And here.
9341         (mips_function_value): Use the new macros to decide whether a single
9342         or complex float can be returned in floating-point registers.  Return
9343         a parallel rtx in the complex case.
9344
9345 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9346
9347         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9348         call after liveness analysis.
9349
9350         * recog.c (split_insn): Use delete_insn_and_edges.
9351
9352         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9353         instructions to have branch prediction notes.
9354         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9355
9356 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
9357
9358         * configure.in: Don't pass -Wno-long-long to a ADA compiler
9359         that doesn't support it.
9360         * configure: Regenerate.
9361
9362 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9363
9364         PR target/5626
9365         * config/sparc/sparc.md (normal_branch, inverted_branch,
9366         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9367         inverted_fp_branch): Adjust calls to output_cbranch.
9368         Set length attribute.
9369         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9370         output_v9branch.  Set length attribute.
9371         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9372         predicates.
9373         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9374         (output_cbranch): Likewise.  Handle far branches.
9375         (output_v9branch): Handle far branches.
9376         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9377         Adjust prototypes.
9378         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9379         noov_compare64_op predicates.
9380
9381 2002-03-13  Jason Merrill  <jason@redhat.com>
9382
9383         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9384         into the function and constify it.
9385         * gthr-dce.h, gthr-solaris.h: Likewise.
9386
9387 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
9388
9389         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9390         * config/rs6000/rs6000.c (rs6000_va_arg): Use
9391         std_expand_builtin_va_arg if not ABI_V4.
9392
9393 2002-03-13  Jason Merrill  <jason@redhat.com>
9394
9395         * varasm.c (globalize_decl): New fn.
9396         (assemble_start_function): Use it.
9397         (asm_emit_uninitialized): Use it.
9398         (assemble_alias): Use it.
9399         (assemble_variable): Use it.
9400
9401 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
9402
9403         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9404         2002-03-12 internal visibility change.
9405         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9406         visibility into SYMBOL_REF_FLAG.
9407
9408 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
9409
9410         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9411         VOIDmode operand.  Add compile-time optimization for constant results.
9412
9413 2002-03-12  Jason Merrill  <jason@redhat.com>
9414
9415         * c-typeck.c (convert_for_assignment): Don't allow conversions
9416         between pointers and references.  Only allow lvalues to convert to
9417         reference.
9418
9419 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
9420
9421         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9422         before prologue, to avoid scheduling problems.
9423
9424 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9425
9426         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9427         (ELIMINABLE_REGS): Add sfp->sp.
9428         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9429
9430 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9431
9432         PR optimization/5892
9433         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9434
9435 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9436
9437         * loop.c (basic_induction_var): Don't call convert_modes if mode
9438         classes are different.
9439
9440 2002-03-12  Richard Henderson  <rth@redhat.com>
9441
9442         PR optimization/5901
9443         * function.c (reposition_prologue_and_epilogue_notes): Position
9444         the markers after/before the last/first insn not deleted.
9445
9446 2002-03-12  Richard Henderson  <rth@redhat.com>
9447
9448         PR optimization/5878
9449         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9450         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9451         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9452
9453         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9454         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9455         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9456
9457         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9458         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9459         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9460         also.  Don't set it if not flag_pic.
9461         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9462         to be INVALID_REGNUM when not used.
9463
9464 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
9465
9466         * expmed.c (store_bit_field): Reset alias set for memory.
9467         (extract_bit_field): Same.
9468
9469 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9470
9471         * c-common.c (c_tree_code_type, c_tree_code_length,
9472         c_tree_code_name, add_c_tree_codes): Delete.
9473         * c-common.h (add_c_tree_codes): Delete.
9474         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9475         Define.
9476         * c-objc-common.c (c_objc_common_init): Don't call
9477         add_c_tree_codes, instead set lang_unsafe_for_reeval.
9478         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9479         objc_tree_code_name, add_objc_tree_codes): Delete.
9480         (objc_init): Don't call add_objc_tree_codes.
9481         * objc/objc-lang.c (tree_code_type, tree_code_length,
9482         tree_code_name): Define.
9483         * toplev.c (lang_independent_init): Don't set
9484         tree_code_length[IDENTIFIER_NODE].
9485         * tree.c (tree_code_type, tree_code_length, tree_code_name):
9486         Delete definitions, moved to language front-ends.
9487         * tree.def (IDENTIFIER_NODE): Hardwire the length.
9488         * tree.h (tree_code_type, tree_code_length, tree_code_name):
9489         Const-ify.
9490         (tree_code_length): Change type to unsigned char.
9491
9492 2002-03-12  Richard Henderson  <rth@redhat.com>
9493
9494         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9495         internal visibility change.
9496
9497 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9498
9499         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9500         validize_mem() instead of change_address to avoid clobbering
9501         memory attributes.
9502
9503 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
9504
9505         * c-lex.h (position_after_whitespace): Remove.
9506
9507 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
9508
9509         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9510         (lex_string): Use unsigned char pointers.
9511
9512 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9513
9514         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9515         is not a valid memory_operand.
9516
9517 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9518
9519         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9520         * config/xtensa/lib1funcs.asm: Fix copyright to include
9521         special case for libgcc files.
9522         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9523         (__divsi3): Likewise.
9524         (__umodsi3): Likewise.
9525         (__modsi3): Likewise.
9526         * config/xtensa/lib2funcs.S: Fix copyright to include
9527         special case for libgcc files.
9528
9529 2002-03-12  Tom Rix  <trix@redhat.com>
9530
9531         * collect2.c (resolve_lib_name): Move outside of
9532         OBJECT_FORMAT_COFF ifdef.
9533         (ignore_library): Same.
9534
9535 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9536
9537         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9538
9539 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9540
9541         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9542         to function_section before writing out the constant pool.
9543
9544 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
9545
9546         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9547         zero_constant.
9548         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9549
9550 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
9551
9552         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9553         (adddi3): Likewise.
9554         (movdf): Likewise.
9555         (movdi): Likewise.
9556         (cmpsi splitter): Likewise.
9557         (modsi3): Fail if <= 0.
9558         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9559         redundant test when HOST_BITS_PER_WIDE_INT != 32.
9560         (reg_or_sub_cint64_operand): Likewise.
9561         (num_insns_constant_wide): Optimize sign extension.
9562         (rs6000_legitimize_address): Likewise.
9563
9564 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
9565
9566         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9567         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9568
9569 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
9570
9571         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9572         address calculation.
9573
9574 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9575
9576         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9577         scratch register to DImode / TImode.
9578         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9579         register used does not overlap the target.
9580
9581 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9582
9583         * Makefile.in (debug.o): Depend on debug.h.
9584         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9585         * debug.c (do_nothing_debug_hooks): Likewise.
9586         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9587         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9588         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9589         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9590         * dwarfout.c (dwarf_debug_hooks): Likewise.
9591         * integrate.c (output_inline_function): Likewise.
9592         * objc/objc-act.c (synth_module_prologue): Likewise.
9593         * sdbout.c (sdb_debug_hooks): Likewise.
9594         * toplev.c (debug_hooks): Likewise.
9595         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9596
9597 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9598
9599         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9600         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9601         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9602         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9603         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9604         * defaults.h (POINTER_SIZE): Define.
9605         * doc/tm.texi (POINTER_SIZE): Document default.
9606
9607 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9608
9609         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9610
9611 2002-03-11  Richard Henderson  <rth@redhat.com>
9612
9613         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9614         if rebuild_label_notes_after_reload.
9615
9616 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
9617
9618         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
9619         emit pic register load if "internal" visibility.
9620         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9621         (cris_expand_builtin_va_arg): Do all computations on trees.
9622
9623 2002-03-11  Richard Henderson  <rth@redhat.com>
9624
9625         * rtlanal.c: Include recog.h.
9626         (keep_with_call_p): Fix thinko.
9627         * Makefile.in (rtlanal.o): Update dependencies.
9628
9629 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
9630
9631         * genflags.c (gen_insn): Use IS_VSPACE.
9632         * genoutput.c (output_insn_data): Likewise.
9633         (process_template): Likewise.
9634
9635 2002-03-11  Richard Henderson  <rth@redhat.com>
9636
9637         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9638
9639 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9640
9641         * Makefile.in: Update.
9642         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9643         Update documentation.
9644         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9645         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9646
9647 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
9648
9649         * Makefile.in: Give texi2pod its input file as a command line
9650         argument, not on stdin.
9651
9652 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
9653             Daniel Berlin  <dan@dberlin.org>
9654
9655         C++ alias analysis improvement.
9656         * alias.c (record_component_aliases): Record aliases for base
9657         classes too.
9658
9659 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
9660
9661         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9662
9663 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
9664
9665         * toplev.c (vms_fopen): Remove, not needed.
9666
9667         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9668
9669         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9670
9671         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9672         for FP, already done later.
9673
9674         * toplev.c (debug_args): Add entry for VMS_DEBUG.
9675         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9676
9677 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
9678
9679         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9680         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9681         LARGEST_EXPONENT_IS_NORMAL for the given mode.
9682         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9683         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9684         (ediv, emul, eldexp, esqrt): Likewise.
9685         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9686         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9687         (saturate): New function.
9688         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9689         (make_nan): Use a saturation value instead of a NaN if
9690         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
9691         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9692         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
9693         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
9694         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9695         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9696         !ROUND_TOWARDS_ZERO.
9697         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9698         (ROUND_TOWARDS_ZERO): Document.
9699
9700 2002-03-11  Andreas Jaeger  <aj@suse.de>
9701
9702         * cfg.c (dump_flow_info): Remove unused variable.
9703
9704 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
9705
9706         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9707         computations on trees.
9708
9709 2002-03-10  Richard Henderson  <rth@redhat.com>
9710
9711         PR 5693:
9712         * reload.c (copy_replacements_1): New.
9713         (copy_replacements): Use it to recurse through the rtx.
9714
9715 2002-03-10  Richard Henderson  <rth@redhat.com>
9716
9717         * loop.c (strength_reduce): Compute number of iterations as
9718         unsigned HOST_WIDE_INT.
9719
9720 2002-03-10  Richard Henderson  <rth@redhat.com>
9721
9722         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9723         to move away from the end of the block.
9724
9725 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9726
9727         PR preprocessor/5899
9728         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
9729
9730 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9731
9732         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
9733
9734         * attribs.c (decl_attributes): Fix signed/unsigned warning.
9735
9736 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
9737
9738         * config/mmix/mmix.c: Improve comments.
9739         (mmix_target_asm_function_prologue): Drop variable
9740         empty_stack_frame.  Don't allocate unused slot above fp.
9741         (mmix_target_asm_function_epilogue): Mirror prologue changes.
9742         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
9743         brace in first column.
9744         (enum reg_class): Ditto.
9745         (FIRST_PARM_OFFSET): Now 0.
9746         (USER_LABEL_PREFIX): Remove #if 0:d definition.
9747
9748 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9749
9750         * combine.c (make_extraction): Fix error in last change.
9751
9752 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9753
9754         * c4x.c (c4x_fp_reglist): Const-ify.
9755         * cris.c (cris_print_operand): Likewise.
9756         * i386.c (ix86_va_arg): Likewise.
9757         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
9758         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
9759         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
9760         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
9761         * mcore.h (regno_reg_class): Likewise.
9762         * mips.c (gen_int_relational): Likewise.
9763         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
9764         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
9765         * pdp11.c (move_costs): Likewise.
9766         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
9767         * s390.c (s390_branch_condition_mnemonic, regclass_map):
9768         Likewise.
9769         * s390.h (regclass_map): Likewise.
9770         * sh.c (shift_amounts): Likewise.
9771         * sh.md (rotlsi3): Likewise.
9772
9773 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
9774
9775         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
9776         (ne0+5): Use new clobber to generate proper shift pattern.
9777         Patch by Michael Matz <matz@kde.org>.
9778
9779 2002-03-09  Andreas Schwab  <schwab@suse.de>
9780
9781         * gcc.c (validate_all_switches): Also handle `%W{...}'.
9782
9783 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
9784
9785         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
9786
9787 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
9788
9789         PR middle-end/5877
9790         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
9791         even for non-representable constants.
9792
9793 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9794
9795         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
9796         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
9797         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
9798         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
9799         (pop_function_context): Compute MAY_SHARE parameter for
9800         fixup_var_refs.
9801         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
9802         (gen_mem_addressof): Call fixup_var_refs with new parm.
9803
9804         * combine.c (make_extraction): Don't make extension of CONST_INT.
9805
9806 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
9807
9808         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
9809         in o32 and o64 ABIs.
9810         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
9811         but getting fixed-size structs passed in registers regardless of
9812         padding in o32 and o64 ABIs.
9813
9814         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
9815         offset before loading address of argument passed by transparent
9816         reference.
9817
9818 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9819
9820         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
9821
9822 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
9823
9824         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
9825         marker such that registers after it are saved.
9826
9827 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9828
9829         * sparc.c (arith_4096_operand): Fix error in last change.
9830
9831 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
9832
9833         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
9834         defaults for MEABI.
9835
9836 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
9837
9838         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
9839         vectors.
9840
9841 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
9842
9843         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
9844
9845 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
9846
9847         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
9848         removed; fix return value.
9849         * combine.c (combine_instructions): Dirtify blocks where we failed to
9850         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
9851         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
9852
9853 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9854
9855         * gcse.c (insert_insn_end_bb): Fix typo in last change.
9856
9857 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
9858
9859         * recog.c (peephole2_optimize): Re-distribute EH edges.
9860
9861 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
9862
9863         * expr.c (expand_expr): Use unsave lang hook.
9864         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
9865         (LANG_HOOKS_INITIALIZER): Update.
9866         * langhooks.h (struct lang_hooks): New hook unsave.
9867         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
9868         (unsave_expr_1): Remove unused lang_unsave_expr_now.
9869         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
9870         (unsave_expr_now): Remove.
9871         * tree.h (unsave_expr_now, lang_unsave,
9872         lang_unsave_expr_now): Remove.
9873         (lhd_unsave): New.
9874
9875 2002-03-08  Andreas Jaeger  <aj@suse.de>
9876
9877         * flow.c (propagate_block_delete_insn): Remove unused variable.
9878
9879 2002-03-08  Kazu Hirata  <kazu@hxi.com>
9880
9881         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
9882         insn length for memory load/store.
9883
9884 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9885
9886         * doc/install.texi (--with-libiconv-prefix): Document.
9887
9888 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
9889
9890         * doc/sourcebuild.texi: Fix typo.
9891
9892 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
9893
9894         PR c/3711
9895         * builtins.c (std_expand_builtin_va_arg): Do all computations on
9896         trees.
9897
9898 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9899
9900         * rtl.c (copy_most_rtx): Move from here ...
9901         * emit-rtl.c (copy_most_rtx): ... to here.
9902
9903 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
9904
9905         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
9906         SUBTARGET_CPP_SIZE_SPEC.
9907         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
9908
9909         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
9910
9911 2002-03-07  Matt Hiller  <hiller@redhat.com>
9912
9913         * gensupport.c (first_dir_md_include): Renamed from include;
9914         change all references.
9915         (last_dir_md_include): Renamed from last_include; change all
9916         references.
9917         (init_md_reader): Unconditionally initialize base_dir whether or
9918         not filename is a relative path.
9919
9920 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
9921
9922         * config/fp-bit.c (_unord_f2): Compile it in even if
9923         US_SOFTWARE_GOFAST is enabled.
9924
9925         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
9926         NULL_RTX.  Set all HFmode operations as NULL_RTX.
9927         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
9928         NULL_RTX, try reversing the comparison and the operands.
9929
9930 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
9931
9932         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
9933         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
9934         and MATCH_OP_DUP.
9935
9936 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
9937
9938         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
9939
9940 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9941
9942         * basic-block.h (fixup_abnormal_edges): Declare.
9943         * reload1.c (fixup_abnormal_edges): New function.
9944         * reg-stack.c (convert_regs): Use it.
9945
9946         * gcse.c (insert_insn_end_bb): Handle trapping insns.
9947
9948         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
9949
9950 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
9951
9952         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
9953         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
9954         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
9955         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
9956         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
9957         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
9958         unless x and y could be infinite.
9959         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
9960         Check that the common type of both arguments is a real, even for
9961         targets without unordered comparisons.  Allow an integer argument
9962         to be compared against a real.
9963         (expand_tree_builtin): Use expand_unordered_cmp.
9964         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
9965         * cse.c (fold_rtx): Likewise.  Fix indentation.
9966         * fold-const.c (fold_real_zero_addition_p): New.
9967         (fold): Use it, and the new HONOR_... macros.
9968         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
9969         * jump.c (reversed_comparison_code_parts): After searching for
9970         the true comparison mode, use HONOR_NANS to decide whether it
9971         can be safely reversed.
9972         (reverse_condition_maybe_unordered): Remove IEEE check.
9973         * simplify-rtx.c (simplify_binary_operation): Use the new macros
9974         to decide which simplifications are valid.  Allow the following
9975         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
9976         and (a - -b) to (a + b).
9977         (simplify_relational_operation): Use HONOR_NANS.
9978         * doc/tm.texi: Document the MODE_HAS_... macros.
9979
9980 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
9981
9982         * combine.c (simplify_comparison): If simplifying a logical shift
9983         right and compare with constant, force the comparison to unsigned.
9984
9985 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
9986
9987         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
9988
9989         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
9990         -mabi=no-altivec
9991         (alt_reg_names): Remove % for vrsave.
9992
9993 2002-03-06  Richard Henderson  <rth@redhat.com>
9994
9995         PR optimization/5844
9996         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
9997         if used indicates we've already emitted one copy of an operand.
9998         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
9999         (gen_split): Supply a non-null used.
10000
10001 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
10002
10003         * reload1.c (reload): Unshare all rtl after reload is done.
10004
10005         * simplify-rtx.c (simplify_plus_minus): Do not abort,
10006         but simply fail if the expression is too complex to simplify.
10007         (simplify_gen_binary): Handle simplify_plus_minus failures.
10008
10009 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
10010
10011         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
10012         consistently call delete_trivially_dead_insns after CSE and GCSE;
10013         fix DFI_life dumping; do jump threading after liveness; do crossjumping
10014         after liveness2; update comment in last crossjumping.
10015         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
10016
10017 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
10018
10019         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
10020         after completing fast dead code elimination.
10021
10022         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
10023         COMPARE operator.
10024
10025 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
10026
10027         * version.c:  Fix misplaced leading blanks on first line.
10028
10029 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
10030
10031         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
10032
10033 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
10034
10035         * cfgcleanup.c (mentions_nonequal_regs): New function.
10036         (thread_jump): Use it.
10037         * toplev.c (rest_of_compilation): Run jump threading after
10038         liveness.
10039
10040 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
10041
10042         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
10043         patch.
10044
10045 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10046
10047         * predict.c (estimate_bb_frequencies): Do not reload the
10048         frequencies from notes.
10049
10050 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
10051
10052         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
10053         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
10054
10055         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
10056         delete_noop_moves): Return indeger.
10057         * flow.c (ndead): New variable.
10058         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
10059         BB argument; update callers.
10060         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
10061         (life_analysis): Do not call purge_all_dead_edges.
10062         (update_life_info): Return number of deleted insns; print statistics.
10063         (update_life_info_in_dirty_blocks): likewise.
10064         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
10065         return number of insns deleted.
10066
10067         * cse.c: Include timevar.h
10068         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
10069         iterate until stabilizes; print statistics; return number of killed
10070         insns.
10071         * Makefile.in: (cse.o): Add timevar.h dependency
10072         * rtl.h (delete_trivially_dead_insns): New.
10073         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
10074         * toplev.c (rest_of_compilation): Update callers.
10075
10076         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
10077         (try_optimize_cfg): Do not update liveness.
10078         (cleanup-cfg): Loop until try_optimize_cfg and dead code
10079         removal stabilizes; use delete_trivially_dead_insns.
10080
10081         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
10082
10083 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
10084
10085         * cppmain.c (setup_callbacks): Disable #pragma and #ident
10086         callbacks when processing assembly language.
10087
10088 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10089
10090         * pa.h (ASM_FILE_END): Define.
10091         * som.h (ASM_FILE_END): Delete.
10092
10093         * pa.c (function_arg): Don't pass floats in general registers in
10094         indirect calls if TARGET_ELF32.
10095
10096 2002-03-05  Richard Henderson  <rth@redhat.com>
10097
10098         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
10099
10100 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
10101
10102         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
10103
10104 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10105
10106         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
10107         -r command line.  Don't hide any symbols if not building
10108         shared libgcc.
10109
10110 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
10111
10112         * cfg.c (dump_flow_info): Warn about profile mismatches.
10113         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
10114         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
10115
10116 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10117
10118         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10119         wide volatile memory by parts.
10120
10121 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10122
10123         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10124         is NULL.
10125
10126 2002-03-05  Richard Henderson  <rth@redhat.com>
10127
10128         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10129
10130 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10131
10132         * toplev.c (documented_lang_options): Document more
10133         language-specific options.
10134         * doc/invoke.texi (Warning Options): Correct documentation for
10135         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10136         * c-decl.c (c_decode_option): Use a table to handle warning options.
10137
10138 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10139
10140         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10141         parameter to mmix_encode_section_info.
10142         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10143         relocatably.  Always produce ELF, not mmo if linking relocatably.
10144         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10145         first is non-zero, don't add symbol prefix.
10146         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10147         prototype accordingly.
10148
10149 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10150
10151         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10152
10153 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10154
10155         * configure.in: Increase required makeinfo version to 4.1.
10156         * configure: Regenerate.
10157
10158 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10159
10160         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10161         elsewhere now.
10162
10163 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10164
10165         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10166         * doc/invoke.texi: Fix @math uses.
10167
10168 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10169
10170         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10171         removal
10172
10173 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10174
10175         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10176         (powerpc-*-eabisimaltivec*): Same.
10177
10178         * config/rs6000/t-ppcendian: New.
10179
10180 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10181
10182         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10183         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10184         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10185
10186 2002-03-03  Richard Henderson  <rth@redhat.com>
10187
10188         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10189
10190 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10191
10192         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10193         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10194         tree.c, config/m68k/m68k.c:
10195         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10196         REAL_ARITHMETIC blocks unconditional.  Delete some further
10197         #ifdef blocks predicated on REAL_ARITHMETIC.
10198         * flags.h, toplev.c: Delete remaining references to
10199         flag_pretend_float.
10200
10201         * doc/invoke.texi: Remove documentation of -fpretend-float.
10202         * doc/tm.texi: Describe the various REAL_* macros as provided by
10203         real.h, not by the target configuration files.
10204
10205         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10206         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10207         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10208         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10209         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10210         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10211         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10212         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10213         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10214         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10215         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10216         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10217         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10218         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10219         config/xtensa/xtensa.h:
10220         Do not define, undefine, or mention in comments any of
10221         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10222         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10223         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10224         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10225         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10226         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10227         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10228         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10229         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10230
10231 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10232
10233         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10234         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10235         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10236         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10237         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10238         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10239         Delete.
10240         * defaults.h (BITS_PER_WORD): Define.
10241         * doc/tm.texi (BITS_PER_WORD): Document default value.
10242
10243         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10244         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10245         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10246
10247 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10248
10249         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10250         lieu of explicit sizeof/sizeof.
10251         * i386.c (override_options, ix86_init_mmx_sse_builtins,
10252         ix86_expand_builtin): Likewise.
10253         * mips.c (mips_add_gc_roots): Likewise.
10254         * mmix.c (mmix_output_condition): Likewise.
10255         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10256         altivec_init_builtins): Likewise.
10257         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10258         * cppexp.c (Nsuff, parse_number): Likewise.
10259         * cppinit.c (builtin_array_end): Likewise.
10260         * gcc.c (n_default_compilers, process_command): Likewise.
10261         * genpreds.c (output_predicate_decls): Likewise.
10262         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10263         * lcm.c (N_ENTITIES): Likewise.
10264         * stor-layout.c (set_sizetype): Likewise.
10265
10266 2002-03-03  Richard Henderson  <rth@redhat.com>
10267
10268         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10269         for types or labels.
10270
10271 2002-03-03  Richard Henderson  <rth@redhat.com>
10272
10273         * c-decl.c (start_decl): Initialized variables are not common.
10274
10275 2002-03-02  Per Bothner  <per@bothner.com>
10276
10277         * gcc.c (option_map):  Suport new --bootclasspath option.
10278         --CLASSPATH is now just an alias for --classpath.
10279
10280 2002-03-02  Richard Henderson  <rth@redhat.com>
10281
10282         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10283         load if "internal" visibility.
10284         * doc/extend.texi: Document visibility meanings.
10285
10286 2002-03-02  Richard Henderson  <rth@redhat.com>
10287
10288         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10289         to functions as well.
10290
10291 2002-03-02  Richard Henderson  <rth@redhat.com>
10292
10293         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10294         (handle_visibility_attribute): Don't call assemble_visibility.
10295         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10296         without asmspec.  Invoke assemble_alias when needed.
10297         * varasm.c (maybe_assemble_visibility): New.
10298         (assemble_start_function, assemble_variable, assemble_alias): Use it.
10299
10300 2002-03-02  Richard Henderson  <rth@redhat.com>
10301
10302         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10303         invoke ENCODE_SECTION_INFO with first call flag.
10304
10305         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10306         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10307         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10308         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10309         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10310         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10311         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10312         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10313         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10314         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10315         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10316         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10317         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10318         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10319         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10320         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10321         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10322         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10323         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10324         config/sh/sh.h, config/sparc/sparc.h,
10325         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10326         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10327         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10328         FIRST argument.  As needed, examine it and do nothing.
10329
10330         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10331         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10332         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10333
10334         * config/arm/t-pe (pe.o): Add dependencies.
10335
10336 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10337
10338         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10339         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10340         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10341         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10342         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10343         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10344         * defaults.h (BITS_PER_UNIT): Define.
10345         * doc/tm.texi (BITS_PER_UNIT): Document default value.
10346
10347 2002-03-02  Kazu Hirata  <kazu@hxi.com>
10348
10349         * config/h8300/h8300-protos.h: Add a prototype for
10350         compute_a_shift_length.
10351         * config/h8300/h8300.c (h8300_asm_insn_count): New.
10352         (compute_a_shift_length): Likewise.
10353         (h8300_adjust_insn_length): Do not adjust insn length of shift
10354         insns.
10355         * config/h8300/h8300.md (anonymous shift patterns): Use
10356         compute_a_shift_length.
10357
10358 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10359
10360         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10361         trunc_int_for_mode.
10362
10363         * emit-rtl.c (offset_address): Call update_temp_slot_address.
10364
10365 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10366
10367         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10368         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10369         * flags.h (flag_zero_initialized_in_bss): Declare.
10370         * toplev.c (flag_zero_initialized_in_bss): New flag.
10371         (lang_independent_options): Add flag_zero_initialized_in_bss.
10372         * tree.c (initializer_zerop): New function.
10373         * tree.h (initializer_zerop): Declare.
10374         * varasm.c (assemble_variable): If we can emit bss, put zero
10375         initializers in the bss section.
10376
10377 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
10378
10379         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10380         like more than one symbol per .weak directive.
10381
10382 2002-03-01  Richard Henderson  <rth@redhat.com>
10383
10384         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10385         adjust argument_pointer by pretend_args_size.
10386         (ia64_va_start): Adjust va_start address by -pretend_args_size.
10387
10388 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10389
10390         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10391
10392 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
10393
10394         * toplev.c (rest_of_compilation): Delete dead jumptables before
10395         loop.
10396         * flow.c (delete_dead_jumptables): Make global.
10397         * rtl.h (delete_dead_jumptables): Declare.
10398
10399 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
10400
10401         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10402         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10403         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10404
10405 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10406
10407         * config/h8300/h8300-protos.h: Fix formatting.
10408         * config/h8300/h8300.c: Likewise.
10409         * config/h8300/h8300.h: Likewise.
10410
10411 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10412
10413         * config/h8300/h8300.c (print_operand): Support 16-bit
10414         constant addresses.
10415         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10416
10417 2002-02-28  Richard Henderson  <rth@redhat.com>
10418
10419         * expmed.c (store_bit_field): Prevent generation of CONCATs;
10420         pun complex values as integers; use gen_lowpart instead of
10421         gen_rtx_SUBREG.
10422         (extract_bit_field): Likewise.
10423
10424 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
10425             David Edelsohn  <edelsohn@gnu.org>
10426
10427         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10428         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10429         (SUPPORTS_WEAK): Likewise.
10430         * output.h (add_weak): Add tree param.
10431         * varasm.c (add_weak): Likewise.  Save decl.
10432         (struct weak_syms): Add decl field.
10433         (mark_weak_decls): New function.
10434         (init_varasm_once): ggc_add_root mark_weak_decls.
10435         (assemble_start_function): Use ASM_WEAKEN_DECL.
10436         (assemble_variable): Likewise.
10437         (assemble_alias): Likewise.
10438         (declare_weak): Pass decl to add_weak.
10439         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10440         (remove_from_pending_weak_list): Declare and define for
10441         ASM_WEAKEN_DECL.
10442         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10443         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10444         * defaults.h (SUPPORTS_WEAK): Likewise.
10445         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10446         .weak for code sym.  Do emit .size for descriptor sym.
10447         (ASM_DECLARE_FUNCTION_SIZE): Define.
10448         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10449         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
10450         .lglobl unless TARGET_XCOFF.  Formatting fixes.
10451         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10452         .weak for code sym.
10453         (HANDLE_PRAGMA_WEAK): Remove.
10454         (ASM_WEAKEN_LABEL): Remove.
10455         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10456
10457 2002-03-01  Jason Merrill  <jason@redhat.com>
10458
10459         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10460         (TARGET_EXPR_CLEANUP): New macro.
10461
10462 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
10463
10464         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10465         to take ptr_extend into account as third type of extension.
10466         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10467         fields used by SUBREG_PROMOTED_UNSIGNED_P.
10468         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10469         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10470         * calls.c (precompute_arguments): Use new macro.
10471         (expand_call): Ditto.
10472         * combine.c (nonzero_bits): Ditto.
10473         (record_promoted_value): Ditto.
10474         * expr.c (store_expr): Ditto.
10475         (expand_expr): Ditto.
10476         * function.c (assign_parms): Ditto.
10477
10478 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
10479
10480         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10481         override -shared and -shared-libgcc.
10482
10483 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
10484
10485         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10486         of "ultrasparc".
10487         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
10488         to be broken.
10489
10490 2002-02-28  Richard Henderson  <rth@redhat.com>
10491
10492         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10493         4 cycle latency from MM producers.
10494         (ia64_internal_sched_reorder): Likewise with pipeline flush.
10495
10496 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
10497
10498         * mklibgcc.in: Don't use GNU make extension.
10499
10500 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10501
10502         * c-parse.in (STATIC): New terminal.
10503         (scspec): New non-terminal.  Update productions accordingly.
10504         (program): Remove bogus ifc / end ifc.
10505         (array_declarator): Simplify production using STATIC.
10506
10507 2002-02-28  Jim Meyering  <meyering@lucent.com>
10508
10509         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10510         \a still means TARGET_BELL.
10511
10512 2002-02-28  Richard Henderson  <rth@redhat.com>
10513
10514         * haifa-sched.c (sched_emit_insn): New.
10515         (schedule_block): Use last_scheduled_insn to track last insn.
10516         * sched-int.h (sched_emit_insn): Prototype.
10517         * config/ia64/ia64.c (last_issued): Remove.
10518         (ia64_variable_issue): Don't set it.
10519         (nop_cycles_until): Use sched_emit_insn.
10520
10521 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
10522
10523         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10524         extended constants.
10525
10526 2002-02-28  Kazu Hirata  <kazu@hxi.com>
10527
10528         * config/h8300/h8300.c: Fix formatting.
10529         * config/h8300/h8300.h: Likewise.
10530
10531 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10532
10533         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10534         which may overwrite the high byte of the frame pointer.
10535
10536 2002-02-28  Bo Thorsen  <bo@suse.de>
10537
10538         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10539         (STARTFILE_SPEC): Add 64 bit files.
10540         (ENDFILE_SPEC): Likewise.
10541
10542 2002-02-28  Jason Merrill  <jason@redhat.com>
10543
10544         * c-decl.c (finish_function): Only warn about missing return
10545         statement with -Wreturn-type.
10546
10547 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10548
10549         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10550
10551         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10552         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10553
10554 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10555
10556         * basic-block.h (BB_REACHABLE): Renumber.
10557         (BB_DIRTY, BB_NEW): New flags.
10558         (clear_bb_flags): Declare.
10559         (update_life_info_in_dirty_blocks): Declare.
10560         * cfg.c (clear_bb_flags): New function.
10561         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10562         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10563         reorder_insns, emit_insn_after): Mark block as dirty.
10564         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10565         (update_life_info_in_dirty_blocks): New function.
10566         * recog.c (apply_change_group): Dirtify block.
10567
10568         * cse.c (cse_insn): Reorder emitting of jump insn to keep
10569         cfg consistent.
10570         * gcse.c (delete_null_pointer_checks): Likewise.
10571
10572         * toplev.c (dump_file_index): Move cse2 after bp,
10573         add DFI_null
10574         (dump_file_info): Similary.
10575         (rest_of_compilation): Avoid most of CFG rebuilds;
10576         do first if converision after null pointer checks, do cse2
10577         after branch prediction; avoid full liveness rebuild after
10578         initializing subregs.
10579         * invoke.texi (-d options): Document -du, renumber.
10580
10581         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10582         (notice_new_block): Do not set BB_UPDATE_LIFE.
10583         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10584          merge_blocks_move_successor_nojumps, merge_blocks,
10585          try_crossjump_to_edge): Likewise.
10586         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10587         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10588         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10589         (merge_of_block): Do not use life_data_ok.
10590         (find_if_case_1): Do not use SET_UPDATE_LIFE.
10591         (if_convert): Use BB_DIRTY mechanizm to update life.
10592         * lcm.c (optimize_mode_switching): Update
10593         update_life_info_in_dirty_blocks
10594
10595 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10596
10597         * Makefile.in (integrate.o): Update.
10598         * c-decl.c (copy_lang_decl): Rename.
10599         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10600         * integrate.c: Include langhooks.h.
10601         (copy_decl_for_inlining): Update to use langhook.
10602         * langhooks-def.h (lhd_do_nothing_t,
10603         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10604         (LANG_HOOKS_INITIALIZER): Update.
10605         * langhooks.c (lhd_do_nothing_t): New.
10606         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10607         * tree.h (copy_lang_decl): Remove.
10608 objc:
10609         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10610
10611 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
10612
10613         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10614         POST_DEC, and POST_MODIFY.
10615
10616 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10617
10618         * c-typeck.c (digest_init): Remove unused parameter; all
10619         callers changed.
10620
10621 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
10622
10623         * expmed.c (expand_shift): Correctly test for low part of a
10624         subreg.
10625
10626 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
10627
10628         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10629         insn UIDs with insn addresses.
10630
10631 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10632
10633         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10634         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10635         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10636         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10637         gcc.c, toplev.c: Delete code implementing -traditional mode.
10638
10639         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10640         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10641         Document removal of -traditional mode for compilation, and
10642         remove documentation only relevant to that mode.
10643
10644         * config/nextstep.h, config/ptx4.h, config/svr4.h,
10645         config/convex/convex.h, config/d30v/d30v.h,
10646         config/i386/dgux.h, config/i386/osf1elf.h,
10647         config/i386/osfelf.h, config/i386/osfrose.h,
10648         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10649         config/m68k/hp310.h, config/m88k/dgux.h,
10650         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10651         config/m88k/m88k.h, config/m88k/openbsd.h,
10652         config/mips/abi64.h, config/mips/osfrose.h,
10653         config/mips/svr4-5.h, config/mips/svr4-t.h,
10654         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10655         config/stormy16/stormy16.h: Remove all references to
10656         -traditional from target specs.  Delete all mention of the
10657         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
10658         delete a couple of commented-out definitions of
10659         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10660         to -traditional.
10661
10662         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10663         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10664
10665 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10666
10667         * mklibgcc.in: Don't use \n in a line subject to
10668         interpretation by echo.
10669
10670 2002-02-27  Graham Stott  <grahams@redhat.com>
10671
10672         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10673         Constify NAME.
10674
10675         * loop.c (prescan_loop): Handle PARALLEL.
10676
10677         * unroll.c (loop_iterations): Return 0 if the add_val for
10678         a BIV is REG.
10679
10680         * final.c (output_operand_lossage): Constify PFX_STR.
10681
10682         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10683
10684 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10685
10686         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10687         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10688
10689 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
10690
10691         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10692
10693 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10694
10695         * cpplex.c (_cpp_lex_token): Handle directives in macro
10696         arguments.
10697         * cpplib.c (_cpp_handle_directive): Save and restore state
10698         if parsing macro args when entering a directive.
10699         * cppmacro.c (collect_args): No need to handle directives
10700         in macro arguments.
10701         (enter_macro_context, replace_args): Use the original macro
10702         definition in case it was redefined whilst collecting arguments.
10703 doc:
10704         * cpp.texi: Update.
10705
10706 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
10707
10708         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10709         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10710         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10711         method on AIX.
10712         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10713         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10714         (load_toc_v4_PIC_2): Same.
10715
10716 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
10717
10718         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10719
10720 2002-02-26  Richard Henderson  <rth@redhat.com>
10721
10722         * config/alpha/alpha.md (ashldi_se): Re-enable.
10723
10724 2002-02-26  Richard Henderson  <rth@redhat.com>
10725
10726         * config/alpha/alpha.c (alpha_encode_section_info): Examine
10727         MODULE_LOCAL_P; improve commentary.
10728
10729 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
10730
10731         * doc/cpp.texi: Clarify documentation of relationship between
10732         #line and #include.
10733
10734 2002-02-26  Kazu Hirata  <kazu@hxi.com>
10735
10736         * config/h8300/h8300-protos.h: Update the prototype for
10737         compute_logical_op_length.  Add the prototype for
10738         compute_logical_op_cc.
10739         * config/h8300/h8300.c (compute_logical_op_length): Figure out
10740         code from operands.
10741         (compute_logical_op_cc): New.
10742         * config/h8300/h8300.md: Combine all the logical op patterns
10743         in HImode and SImode.  Use compute_logical_op_cc.
10744
10745 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
10746
10747         * config/i386/i386.c (print_operand): Don't append ATT-style
10748         length suffixs to x87 opcodes when in Intel mode.
10749
10750 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
10751
10752         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
10753         (init_emit_once): Update calls.
10754         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
10755         (init_syntax_once): Prototype.
10756
10757 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10758
10759         * pa-linux.h (LIB_SPEC): Update definition.
10760         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10761
10762 2002-02-26  Richard Henderson  <rth@redhat.com>
10763
10764         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
10765         if we emitted a stop bit.
10766
10767 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
10768
10769         * configure.in (libgcc_visibility): Substitute.
10770         * configure: Rebuilt.
10771         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
10772         defined symbols .hidden.
10773
10774 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
10775
10776         * attribs.c (c_common_attribute_table): Add visibility.
10777         (handle_visibility_attribute): New function.
10778         * varasm.c (assemble_visibility): New function.
10779         * output.h (assemble_visibility): Add prototype.
10780         * tree.h (MODULE_LOCAL_P): Define.
10781         * crtstuff.c (__dso_handle): Use visibility attribute.
10782         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
10783         for MODULE_LOCAL_P symbols too.
10784         * config/ia64/ia64.c (ia64_encode_section_info): Handle
10785         MODULE_LOCAL_P symbols the same way as local symbols.
10786         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
10787         into .sdata/.sbss by the user.
10788         * doc/extend.texi (Function Attributes): Document visibility
10789         attribute.
10790
10791 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
10792
10793         PR debug/5770
10794         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
10795         STRING_CST initializer spanning the whole variable without
10796         embedded zeros.
10797         If expand_expr returned MEM, don't use it.
10798
10799 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
10800
10801         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
10802         generate a die for the lexical block.
10803
10804 2002-02-26  Kazu Hirata  <kazu@hxi.com>
10805
10806         * config/h8300/h8300-protos.h: Add a prototype for
10807         compute_logical_op_length.
10808         * config/h8300/h8300.c (compute_logical_op_length): New.
10809         * config/h8300/h8300.md (anonymous logical patterns): Use
10810         compute_logical_op_length for length.
10811
10812 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
10813
10814         * dwarf2out.c (modified_type_die): Do not call type_main_variant
10815         for vectors.
10816         (gen_type_die): Same.
10817
10818         * attribs.c (handle_vector_size_attribute): Set debug information.
10819
10820 2002-02-26  Daniel Egger  <degger@fhm.edu>
10821
10822         * config/rs6000/rs6000.md: Swap define_insn attributes to
10823         fix incorrect generation of merge high instructions instead
10824         of merge low.
10825
10826 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
10827
10828         * c-typeck.c (really_start_incremental_init): Use
10829         bitsize_zero_node for vectors.
10830
10831 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
10832
10833         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
10834         ("*set_vrsave_internal"): Same.
10835
10836 2002-02-25  Richard Henderson  <rth@redhat.com>
10837
10838         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
10839         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
10840
10841 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
10842
10843         PR target/5755
10844         * config/i386/i386.c (ix86_return_pops_args): Only pop
10845         fake structure return argument if it was passed on the stack.
10846
10847 2002-02-25  Jason Merrill  <jason@redhat.com>
10848
10849         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
10850         RESULT_DECL.
10851
10852 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
10853
10854         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
10855         link with shared_name only.
10856         * doc/invoke.texi (Link Options): Document new behavior.
10857
10858 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
10859
10860         * c-typeck.c (push_init_level): Handle vectors.
10861
10862 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
10863
10864         * config/sparc/sparc.c (const64_high_operand): Zero-extend
10865         operands of SPARC_SETHI_P.
10866         (input_operand): Likewise.
10867         (sparc_emit_set_const32): Likewise.
10868         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
10869         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
10870         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
10871         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
10872         (movdi_insn_sp64_vis): Likewise.
10873         (movdi split, movdf split): Use SETHI32.
10874         * doc/md.texi: Document SPARC constraints L, M and N.
10875
10876 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
10877
10878         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
10879         ("*set_vrsave_internal"): use mfspr for Darwin.
10880
10881         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
10882         gen_get_vrsave_internal.
10883
10884 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10885
10886         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
10887
10888 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10889
10890         * cpplex.c (cpp_interpret_charconst): Get signedness or
10891         otherwise of wide character constants correct.
10892         * cppexp.c (lex): Get signedness of wide charconsts correct.
10893
10894 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10895
10896         * optabs.c (widen_operand): Only call convert_modes for
10897         promoted SUBREG if signedness matches.
10898         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
10899
10900 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10901
10902         * cpplib.c (glue_header_name): Use local buffer to build up
10903         header name.
10904
10905 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10906
10907         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
10908
10909 2002-02-23  Kazu Hirata  <kazu@hxi.com>
10910
10911         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
10912         H8/300[HS] separately.
10913         * config/h8300/h8300.md: Remove the early clobber constraint
10914         from bit field patterns.
10915
10916 2002-02-23  Kazu Hirata  <kazu@hxi.com>
10917
10918         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
10919         register_operand.
10920         (mulhisi3): Likewise.
10921         (umulqisi3): Likewise.
10922         (umulhisi3): Likewise.
10923
10924 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10925
10926         * cppinit.c (output_deps): Correct test for stdout output.
10927         (init_dependency_output): Cure warning.
10928
10929 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10930
10931         * expr.c (store_expr): When converting expression to promoted
10932         equivalent type, allow using SUBREG_REG of TARGET as the target
10933         of the expansion of EXP.
10934         * loop.c (basic_induction_var, case SUBREG): Always look inside.
10935         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
10936         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
10937         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
10938         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
10939
10940 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
10941
10942         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
10943         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
10944         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
10945
10946 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
10947
10948         PR optimization/5747
10949         * loop.c (scan_loop): Update reg info if move_movables created new
10950         pseudos.
10951
10952 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
10953
10954         * gcc.c (init_gcc_spec): Revert last change.
10955
10956 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
10957
10958         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
10959         gpc_reg_operand constraint.
10960
10961 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
10962
10963         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
10964         Simplify comparison of `low'.
10965         (add_operand): Fix formatting.
10966         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
10967         (mask_operand): Disallow mask to wrap in 64-bit mode.
10968         (rs6000_stack_info): Remove redundant test setting push_p.
10969         (output_toc): Fix formatting.
10970         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
10971         cc_reg_not_cr0_operand constraint.
10972         (booldi3, boolcdi3 splitters): Same.
10973
10974 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
10975
10976         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
10977
10978 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
10979
10980         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
10981         gcc invoked with -shared-libgcc.
10982
10983 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
10984
10985         PR c++/5748
10986         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
10987         decl if any of elements was TREE_USED.
10988
10989 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
10990
10991         * config/sparc/sol2.h: Don't include sys/mman.h.
10992         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
10993         (arith_4096_operand): Don't throw high bits away.
10994         (const64_operand): Take sign extension of CONST_INTs into account.
10995         (const64_high_operand, sparc_emit_set_const32): Likewise.
10996         (GEN_HIGHINT64): Likewise.
10997         (sparc_emit_set_const64_quick1): Likewise.
10998         (const64_is_2insns): Likewise.
10999         (print_operand): Use trunc_int_for_mode for sign extension.
11000         * config/sparc/sparc.h (SMALL_INT32): Likewise.
11001         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
11002         chars.  Assume CONST_INT is already properly sign-extended.
11003         (movdi split): Sign-extend each SImode part.
11004         (andsi3 split): Don't mask high bits off, so that result
11005         remains properly sign-extend.
11006         (iorsi3 split): Likewise.
11007         (xorsi3 split): Likewise.
11008
11009 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
11010
11011         * fold-const.c (fold): Fix typo in comments.
11012
11013 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11014
11015         * Makefile.in (langhooks.o): Update dependencies.
11016
11017 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
11018
11019         * langhooks.c: Include flags.h.
11020
11021 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
11022
11023         * testsuite/gcc.dg/attr-alwaysinline.c: New.
11024
11025         * c-common.c (c_common_post_options): Set inline trees by
11026         default.
11027
11028         * doc/extend.texi (Function Attributes): Document always_inline
11029         attribute.
11030         Update documentation about inlining when not optimizing.
11031
11032         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
11033
11034         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
11035         unless DECL_ALWAYS_INLINE.
11036
11037         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
11038         unless DECL_ALWAYS_INLINE.
11039         (c_disregard_inline_limits): Disregard if always_inline set.
11040
11041         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
11042         Disregard if always_inline set.
11043         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
11044         unless DECL_ALWAYS_INLINE.
11045
11046         * attribs.c (handle_always_inline_attribute): New.
11047         (c_common_attribute_table): Add always_inline.
11048
11049         * config/rs6000/altivec.h: Add prototypes for builtins
11050         requiring the always_inline attribute.
11051
11052 2002-02-21  Eric Christopher  <echristo@redhat.com>
11053
11054         * expmed.c (store_bit_field): Try to simplify the subreg
11055         before generating a new one when when the mode size of
11056         value is less than maxmode.
11057
11058 2002-02-21  Richard Henderson  <rth@redhat.com>
11059
11060         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
11061         than gen_rtx_PLUS to form the sum.
11062         * explow.c (force_reg): Rearrange to not allocate new pseudo
11063         when force_operand returns a register.
11064         * expr.c (expand_assignment): Allow offset_rtx expansion to
11065         return a sum.  Do not force addresses into registers.
11066         (expand_expr): Likewise.
11067         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
11068         to canonicalize arithmetic that didn't simpify.
11069         (simplify_plus_minus): New argument force; update
11070         all callers.  Don't split CONST unless we can do something with it,
11071         and wouldn't lose the constness of the operands.
11072
11073         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
11074         that we generated earlier.
11075
11076 2002-02-21  Tom Tromey  <tromey@redhat.com>
11077
11078         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11079         (output_line_info): Use constant `1', with a long explanatory
11080         comment.
11081         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
11082
11083 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
11084
11085         * jump.c (redirect_jump): If old label has no UID, don't try to
11086         delete it.
11087
11088 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
11089
11090         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
11091         If input is constant, do shifts at compile time.
11092
11093 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
11094
11095         * doc/extend.texi: Fix some more overfull hboxes.
11096
11097 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11098
11099         PR optimization/4994
11100         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
11101         register moves.
11102
11103 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11104
11105         PR c++/4574
11106         * expr.h (expand_and): Add mode argument.
11107         * expmed.c (expand_and): Add mode argument.
11108         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
11109         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
11110         * except.c (expand_builtin_extract_return_addr): Likewise.
11111         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
11112         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
11113         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
11114         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
11115         * config/c4x/c4x.md: Use GEN_INT (x) instead of
11116         gen_rtx (CONST_INT, VOIDmode, x).
11117
11118 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11119
11120         PR c/4697:
11121         * stmt.c (warn_if_unused_value): Move side effects test once more.
11122
11123 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11124
11125         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11126         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11127
11128 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11129
11130         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11131         SUBREG or ZERO_EXTEND.
11132
11133 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11134
11135         * sh.h (current_function_anonymous_args): Remove.
11136         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11137         of current_function_varargs and current_function_stdarg is set.
11138         * sh.c (sh_expand_prologue): Check current_function_varargs /
11139         current_function_stdarg / TARGET_SH5 instead of
11140         current_function_anonymous_args.
11141
11142         * sh64.h (TARGET_VERSION): Define.
11143
11144 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11145
11146         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11147         VRSAVE_REGNO on TARGET_ALTIVEC.
11148
11149 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11150
11151         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11152         bits of SImode const_int.
11153         (includes_rshift_p): Likewise.
11154         (print_operand): Call mask_operand and mask64_operand with correct
11155         mode.
11156         (rs6000_output_function_epilogue): Pad traceback table to word.
11157         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11158         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11159         mask64_operand with correct mode.
11160         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11161
11162 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11163
11164         PR debug/4461
11165         * varasm.c (get_pool_constant_mark): New.
11166         * rtl.h (get_pool_constant_mark): Add prototype.
11167         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11168         be represented if it has not been output.
11169
11170 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11171
11172         * combine.c (do_SUBST): Sanity check substitutions of
11173         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11174         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11175         CONST_INT into its operand.
11176         (known_cond): Likewise, for ZERO_EXTEND.
11177         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11178         allow for simplification of wide modes.  Reject CONST_INTs in
11179         ZERO_EXTEND when their actual mode is not given.
11180
11181 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11182
11183         * c-decl.c (pushdecl): If no global declaration is found for an
11184         extern declaration in block scope, try a limbo one.
11185
11186 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11187
11188         PR c++/4401
11189         * c-common.c (pointer_int_sum): Moved from...
11190         * c-typeck.c (pointer_int_sum): ...here.
11191         * c-common.h (pointer_int_sum): Add prototype.
11192
11193 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11194
11195         PR c++/5713
11196         * c-decl.c (duplicate_decls): Return 0 if issued error about
11197         redeclaration.
11198
11199 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11200             Jakub Jelinek  <jakub@redhat.com>
11201
11202         PR c/4389
11203         * tree.c (host_integerp): Ensure that the constant integer is
11204         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11205         when pos is zero or non-zero respectively.  Clarify comment.
11206         * c-format.c (check_format_info_recurse): Fix host_integerp
11207         usage; the pos argument should be zero when assigning to a
11208         signed HOST_WIDE_INT.
11209
11210 2002-02-20  Richard Henderson  <rth@redhat.com>
11211
11212         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11213         of the operand, rather than assuming TImode.
11214         (ix86_expand_binop_builtin): Cope with commutative patterns
11215         using nonimmediate_operand for both operands.
11216         (ix86_expand_timode_binop_builtin): Likewise.
11217         (ix86_expand_store_builtin): Validate operand 1.
11218         (ix86_expand_unop1_builtin): Likewise.
11219
11220 2002-02-20  Philip Blundell  <philb@gnu.org>
11221
11222         PR 5705
11223         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11224
11225 2002-02-20  Richard Henderson  <rth@redhat.com>
11226
11227         PR c/5615
11228         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11229
11230 2002-02-20  Tom Tromey  <tromey@redhat.com>
11231
11232         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11233         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11234         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11235         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11236         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11237         unconditionally.
11238
11239 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11240
11241         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11242           for (const_int 0) in X not just INTVAL.
11243
11244 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11245
11246         * doc/extend.texi: Avoid or reduce overfull hboxes.
11247
11248 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
11249
11250         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11251         operations if the field does not start at a mode boundary.
11252
11253 2001-02-20      Joel Sherrill <joel@OARcorp.com>
11254
11255         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11256         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11257         Also done for -Acpu and -Amachine.
11258
11259 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11260
11261         * cppinit.c (init_dependency_output): Take deps output file
11262         from -o if none given with -MF.  Suppress normal output.
11263         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11264         * doc/cpp.texi, doc/invoke.texi: Update.
11265
11266 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11267
11268         * toplev.c (output_quoted_string): Write unprintable
11269         characters with octal escapes.
11270
11271 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11272
11273         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11274         really_call_used[VRSAVE_REGNO] if not Altivec.
11275
11276 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
11277
11278         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11279         MODE_MASK.
11280         (constant_pool_expr_1): Fix formatting.
11281         (rs6000_legitimize_reload_address): Likewise.
11282
11283 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11284
11285         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11286         now that we have one.
11287
11288 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11289
11290         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
11291         end of first block of bitfields (which was only seven bits);
11292         rename dummy to unused_1; remove comment which is no longer true.
11293
11294 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11295
11296         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11297
11298 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11299
11300         PR 5399
11301         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11302         if generating PIC.
11303
11304         PR 5054
11305         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11306         arm_is_longcall_p rather than inspecting call-type cookie
11307         directly.
11308         (call_value_insn) [TARGET_THUMB]: Likewise.
11309
11310 2002-02-19  Graham Stott  <grahams@redhat.com>
11311
11312         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11313
11314 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11315
11316         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11317         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11318         (FP_SAVE_INLINE): Delete.
11319
11320         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11321         * config/rs6000/eabi.asm: Remove ABI save restore routines.
11322         * config/rs6000/t-ppccomm: Build crtsavres.o.
11323         * config/rs6000/crtsavres.asm: New file.
11324
11325 2002-02-19  Philip Blundell  <philb@gnu.org>
11326
11327         * config/arm/arm.c (use_return_insn): Don't reject interrupt
11328         functions.
11329         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11330         (output_return_instruction): Allow interrupt functions to return with
11331         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
11332         (arm_expand_prologue): Subtract 4 before stacking LR in an
11333         interrupt function.
11334
11335 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11336
11337         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11338         decl, not just FUNCTION_DECL.
11339         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11340         (arm_assemble_integer): Likewise.
11341         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11342         marked local.
11343
11344 2002-02-19  matthew green  <mrg@eterna.com.au>
11345
11346         * config.gcc (sparc-*-netbsdelf*): Enable target.
11347         (sparc64-*-netbsd*): New target.
11348         * config/sparc/netbsd-elf.h: New file.
11349         * config/sparc/t-netbsd64: New file.
11350
11351 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11352
11353         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11354
11355 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
11356
11357         * doc/invoke.texi: explicitly list the style guidelines that
11358         -Weffc++ checks for.
11359
11360 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
11361
11362         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11363
11364 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11365
11366         PR other/5718
11367         * gcc.c (cpp_unique_options): Treat -o as indicating object file
11368         only if not -E.  If -E, pass -o through to the preprocessor.
11369
11370 2002-02-19  Kazu Hirata  <kazu@hxi.com>
11371
11372         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11373         register number with an appropriate macro.
11374
11375 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11376
11377         * doc/rtl.texi (Constants): Close @code tag.
11378
11379 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
11380
11381         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11382         ("mmx_uavgv4hi3"): Same.
11383         ("pmulhrwv4hi3"): Same.
11384
11385         * tree-inline.c (walk_tree): Handle vectors.
11386
11387         * c-common.c (constant_expression_warning): Handle vectors.
11388         (overflow_warning): Same.
11389
11390         * sched-deps.c (sched_analyze_2): Handle vectors.
11391
11392         * rtlanal.c (rtx_unstable_p): Handle vectors.
11393         (rtx_varies_p): Same.
11394         (count_occurrences): Same.
11395         (regs_set_between_p): Same.
11396         (modified_between_p): Same.
11397         (modified_in_p): Same.
11398         (volatile_insn_p): Same.
11399         (volatile_refs_p): Same.
11400         (side_effects_p): Same.
11401         (may_trap_p): Same.
11402         (inequality_comparisons_p): Same.
11403         (replace_regs): Same.
11404         (computed_jump_p_1): Same.
11405
11406         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11407         argument.
11408         (inner_mode_array): New.
11409         (copy_rtx): Handle vectors.
11410         (copy_most_rtx): Same.
11411         (rtx_equal_p): Same.
11412         (get_mode_alignment): Adjust for vectors.
11413
11414         * resource.c (mark_referenced_resources): Handle vectors.
11415         (mark_set_resources): Same.
11416
11417         * reload1.c (eliminate_regs): Handle vectors.
11418         (elimination_effects): Same.
11419         (scan_paradoxical_subregs): Same.
11420
11421         * reload.c (subst_reg_equivs): Handle vectors.
11422
11423         * regrename.c (scan_rtx): Handle vectors.
11424
11425         * regclass.c (reg_scan_mark_refs): Handle vectors.
11426
11427         * recog.c (find_single_use_1): Handle vectors.
11428
11429         * local-alloc.c (equiv_init_varies_p): Handle vectors.
11430         (contains_replace_regs): Same.
11431         (memref_referenced_p): Same.
11432
11433         * integrate.c (copy_rtx_and_substitute): Handle vectors.
11434         (subst_constants): Same.
11435
11436         * genattrtab.c (attr_copy_rtx): Handle vectors.
11437         (encode_units_mask): Same.
11438         (clear_struct_flag): Same.
11439         (count_sub_rtxs): Same.
11440
11441         * gcse.c (want_to_gcse_p): Handle vectors.
11442         (oprs_unchanged_p): Same.
11443         (hash_expr_1): Same.
11444         (oprs_not_set_p): Same.
11445         (expr_killed_p): Same.
11446         (compute_transp): Same.
11447         (store_ops_ok): Same.
11448
11449         * function.c (purge_addressof_1): Do not allow paradoxical subregs
11450         of vectors.
11451         (fixup_var_refs_1): Same.
11452         (instantiate_virtual_regs_1): Same.
11453
11454         * fold-const.c (operand_equal_p): Handle vectors.
11455         (fold): Same.
11456         (rtl_expr_nonnegative_p): Same.
11457
11458         * flow.c (mark_used_regs): Handle vectors.
11459
11460         * df.c (df_uses_record): Handle vectors.
11461
11462         * cselib.c (cselib_subst_to_values): Handle vectors.
11463         (cselib_mem_conflict_p): Same.
11464         (hash_rtx): Same.
11465
11466         * cse.c (canon_reg): Handle vectors.
11467         (fold_rt): Same.
11468         (cse_process_notes): Same.
11469         (count_reg_usage): Same.
11470         (canon_hash): Same.
11471
11472         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11473
11474         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11475
11476         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11477         (gen_rtx): Handle CONST_VECTOR.
11478         (gen_const_vector_0): New.
11479         (copy_rtx_if_shared): CONST_VECTORs can be shared.
11480         (reset_used_flags): Same.
11481         (copy_insn_1): Same.
11482         (initializer_constant_valid_p): Handle VECTOR_CST.
11483
11484         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11485
11486         * doc/rtl.texi (Constants): Document const_vector.
11487         (CONST0_RTX): Update for vectors.
11488         (RTL sharing): Same.
11489
11490         * print-tree.c (print_node): Add case for VECTOR_CST.
11491
11492         * tree.h (TREE_VECTOR_CST_ELTS): New.
11493         (struct tree_vector): New.
11494         (union tree_node): Add vector node.
11495         (build_vector): Add prototype.
11496
11497         * tree.def (VECTOR_CST): New.
11498
11499         * tree.c (build_vector): New.
11500
11501         * expmed.c (make_tree): Handle CONST_VECTOR.
11502
11503         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11504         (CONST_VECTOR_ELT): New.
11505         (CONST_VECTOR_NUNITS): New.
11506
11507         * machmode.h (GET_MODE_INNER): New.
11508         (DEF_MACHMODE): Accept 8th arg.
11509
11510         * machmode.def: Add 8th argument for vector inner mode.
11511         Add inner vector modes for vectors.
11512
11513         * rtl.def (VEC_CONST): Remove.
11514         (CONST_VECTOR): New.
11515
11516         * expr.c (clear_storage): Allow vectors.
11517         (is_zeros_p): Handle VECTOR_CST.
11518
11519         * varasm.c (output_constant_pool): Handle vectors.
11520         (rtx_const): Add veclo and vechi fields.
11521         (kind): Add RTX_VECTOR.
11522         (decode_rtx_const): Add case for vector.
11523
11524         * config/rs6000/rs6000-protos.h: Add zero_constant.
11525
11526         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11527         constants.  Force easy vector constants into memory.
11528         (easy_vector_constant): New.
11529         (emit_easy_vector_constant): New.
11530         (rs6000_legitimize_reload_address): Do not generate bad reloads on
11531         darwin.
11532
11533         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11534         instruction does.
11535         ("altivec_lvxl"): Same.
11536         (altivec_lvebx): Same.
11537         (altivec_lvehx): Same.
11538         (altivec_lvewx): Same.
11539         ("*movv4si_const0"): New.
11540         ("*movv4sf_const0"): New.
11541         ("*movv8hi_const0"): New.
11542         ("*movv16qi_const0"): New.
11543
11544 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11545
11546         * config/h8300/h8300.c (notice_update_cc): Use
11547         cc_status.value2.
11548
11549 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11550
11551         * config/h8300/h8300.md (divmod patterns): Change the
11552         constraints for operands[1] to register_operand.
11553
11554 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11555
11556         * config/h8300/h8300-protos.h: Remove the prototype for
11557         p_operand.
11558         * config/h8300/h8300.c (p_operand): Remove.
11559         * config/h8300/h8300.md: Replace p_operand with
11560         const_int_operand.
11561
11562 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11563
11564         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11565         comment.
11566         (output_return_instruction): Allow use of LDR to unstack
11567         return addresss even for interrupt handlers or when
11568         interworking.  If compiling for ARMv5, use interworking-safe
11569         return instructions by default.  Remove duplicated code and
11570         lengthy "strcat" sequences.
11571
11572 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11573
11574         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11575         (LINK_EH_SPEC): Define.
11576         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11577
11578 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
11579
11580         * config/s390/s390.c (s390_emit_prologue): Do not set the
11581         frame_related flag for call-clobbered registers.
11582
11583 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
11584
11585         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11586         (construct_container): Fix handling of SSE operands.
11587         (ix86_expand_builtin): Fix handling of 64bit pointers.
11588         (mmx_maskmovq_rex): New pattern.
11589
11590 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
11591
11592         * regrename.c (kill_set_value): Handle subregs properly.
11593
11594 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
11595
11596         * objc/objc-act.c (handle_impent): Remove leading '*'
11597         from objc_class_name.
11598
11599 2002-02-17  Richard Henderson  <rth@redhat.com>
11600
11601         * config/alpha/alpha.c (some_small_symbolic_operand,
11602         some_small_symbolic_operand_1, split_small_symbolic_operand,
11603         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11604         Handle small SYMBOL_REFs anywhere, not just inside memories.
11605         * config/alpha/alpha-protos.h: Update.
11606         * config/alpha/alpha.h (PREDICATE_CODES): Update.
11607         * config/alpha/alpha.md (small symbolic operand splitter): Update.
11608
11609 2002-02-17  Roland McGrath  <roland@frob.com>
11610
11611         * config.gcc (powerpc-*-gnu-gnualtivec*,
11612         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11613         * config/rs6000/gnu.h: New file.
11614         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11615         Grok "gnu" in rs6000_abi_name.
11616         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11617         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11618         Grok -mcall-gnu analogous to -mcall-linux et al.
11619         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11620         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11621         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11622
11623 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
11624
11625         PR c/3444:
11626         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11627         shortening.
11628
11629 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11630
11631         * config/cris/cris.h: Undefine STARTFILE_SPEC and
11632         ENDFILE_SPEC before (re)defining them.
11633
11634 2002-02-17  Kazu Hirata  <kazu@hxi.com>
11635
11636         * config/h8300/h8300.c: Fix formatting.
11637         * config/h8300/h8300.h: Likewise.
11638
11639 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11640
11641         * doc/tm.texi: Explain why empty strings should not be
11642         marked for translation.
11643
11644 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11645
11646         * final.c (output_operand_lossage): Changed to accept
11647         printf style arguments. Change calls where necessary.
11648         * output.h (output_operand_lossage): Change declaration
11649         accordingly. Update copyright.
11650         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11651         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11652         Update copyright date where necessary.
11653
11654         * config/i386/i386.c (print_operand): Likewise. Remove use of
11655         sprintf.
11656
11657         * config/cris/cris.c (cris_operand_lossage): Likewise.
11658         Rename parameter so that exgettext recognizes it as
11659         translatable message.
11660         (LOSE_AND_RETURN): Rename parameter to msgid.
11661
11662 2002-02-17  Kazu Hirata  <kazu@hxi.com>
11663
11664         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11665         hard coded register number with an appropriate macro.
11666         (HARD_REGNO_MODE_OK): Likewise.
11667         (ARG_POINTER_REGNUM): Likewise.
11668         (STATIC_CHAIN_REGNUM): Likewise.
11669         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11670         * config/h8300/h8300.md (define_constants): Define more
11671         register numbers.
11672
11673 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11674
11675         * config/i386/i386.h: Don't mark empty strings for translation.
11676
11677 2002-02-16  H.J. Lu <hjl@gnu.org>
11678
11679         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11680
11681 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
11682
11683         * cppinit.c (merge_include_chains): Check for brack being
11684         NULL before attempting to merge it with qtail.
11685
11686 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
11687
11688         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11689         DBX_DEBUG.
11690
11691 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11692
11693         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11694
11695 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11696
11697         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11698         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11699         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11700
11701 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11702
11703         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11704         now only if !TARGET_FIX.
11705         (*movsi_nt_vms_fix): New pattern.
11706
11707 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
11708
11709         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11710         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11711         (alpha_sa_mask, alpha_sa_size): Reflect above change.
11712         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11713         (alpha_start_function, alpha_expand_epilogue): Likewise.
11714         (unicosmk_gen_dsib): Likewise.
11715
11716 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11717
11718         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11719
11720 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
11721
11722         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11723         check_and_change_labels, s390_final_chunkify): Delete.
11724         (s390_split_branches, s390_chunkify_pool): New functions.
11725         (s390_function_prologue): Call them.
11726
11727         * config/s390/s390.h (S390_REL_MAX): Delete.
11728         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
11729
11730         * config/s390/s390.md (cjump, icjump, jump): Fix length
11731         attribute calculation.
11732
11733
11734 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
11735
11736         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
11737         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
11738
11739 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11740
11741         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
11742         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
11743         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
11744
11745 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
11746
11747         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
11748
11749 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
11750
11751         * reload.c (find_dummy_reload): Check that an output register
11752         is valid for its mode.
11753
11754 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
11755
11756         * combine.c (known_cond): After replacing the REG of a SUBREG, try
11757         to simplify it.
11758
11759         * function.c (assign_parms): Demote promoted argument passed by
11760         transparent reference.
11761
11762 2001-02-14      Joel Sherrill <joel@OARcorp.com>
11763
11764         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
11765         -Acpu() and -Amachine() to eliminate warnings.
11766
11767 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
11768
11769         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
11770
11771 2002-02-14  Kazu Hirata  <kazu@hxi.com>
11772
11773         * config/h8300/h8300-protos.h: Update the prototype for
11774         const_costs.
11775         * config/h8300/h8300.c (const_costs): Treat SET as a little
11776         more expensive operation.
11777         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
11778         reference to const_costs.
11779
11780 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
11781
11782         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
11783
11784 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
11785
11786         PR c/5503:
11787         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
11788         use arguments from newtype.
11789
11790 2002-02-13  Eric Christopher  <echristo@redhat.com>
11791
11792         * config/mips/mips.c (override_options): Add check for march/mipsX
11793         on the same command line. Fix error message in cpu processing.
11794         Remove architecture and ISA checks.
11795
11796 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
11797
11798         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
11799
11800         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
11801
11802 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
11803
11804         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
11805         alternatives.
11806         ("*movv8hi_internal1"): Same.
11807         ("*movv16qi_internal1"): Same.
11808         ("*movv4sf_internal1"): Same.
11809
11810         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
11811         not push_reload for altivec modes.
11812
11813 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
11814
11815         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
11816         all RTEMS targets including removal of #includes from config/*/rtems*.h
11817         file and adding them to tm_file setting. Added xm_defines=POSIX to
11818         many targets.
11819         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
11820         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
11821         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
11822         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
11823         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
11824         config/m68k/rtemself.h: Ditto.
11825         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
11826         config/mips/rtems64.h: Ditto.
11827         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
11828         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
11829         Ditto.
11830         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
11831         config/sparc/rtemself.h: Ditto.
11832         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
11833         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
11834         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
11835         more like arm-elf.
11836         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
11837         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
11838         target made more similar to i386-elf.
11839         * config/i386/t-rtems-i386: Added soft float support and multilibs.
11840         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
11841         be similar to config/m68k/t-m68kelf.
11842         * gthr-rtems.h: Encapsulate with extern "C" for C++.
11843
11844 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
11845
11846         * regmove.c (kill_value): Handle subregs.
11847
11848 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11849
11850         * i386.md (mul patterns): Allow memory operand to be first;
11851         add expanders where needed; fix constraints.
11852         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
11853         Allow memory operand to be the first.
11854
11855         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
11856         operands.
11857
11858 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
11859
11860         PR c/5681:
11861         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
11862         GET_MODE (x).
11863
11864 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
11865
11866         PR optimization/5547:
11867         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
11868         all valid IA-32 address modes involving non-scaled %ebx and
11869         GOT/GOTOFF as displacement.
11870
11871 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
11872
11873         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
11874         after emitting ltorg insns.
11875
11876         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
11877         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
11878         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
11879         *abssf2): Fix "op_type" attribute.
11880
11881 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
11882
11883         * mkconfig.sh: Avoid using a subshell redirect.
11884         ($output.T): Change to $(output)T.
11885         (ENABLE_NLS): Remove unneeded undef.
11886
11887         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
11888         * config/alpha/x-vms (libsubdir): Define.
11889
11890         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
11891         register frame procedures. Optimize retrieving context.
11892
11893         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
11894         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
11895         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
11896
11897 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11898
11899         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
11900         Make same change as for find_base_value.
11901
11902 2002-02-13  Kazu Hirata  <kazu@hxi.com>
11903
11904         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
11905         of QImode and SImode.
11906
11907 2002-02-13  Kazu Hirata  <kazu@hxi.com>
11908
11909         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
11910         length computation of movsi.
11911         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
11912
11913 2002-02-13  Kazu Hirata  <kazu@hxi.com>
11914
11915         * config/h8300/h8300.md (subqi3): Tighten the predicate for
11916         operands[2] to register_operand.
11917
11918 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
11919
11920         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
11921
11922 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
11923
11924         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
11925         for altivec_lvx* and altivec_stvx*.
11926         ("*movv4si_internal"): Add constraint for loading from GPRs.
11927         ("*movv8hi_internal1"): Same.
11928         ("*movv16qi_internal1"): Same.
11929         ("*movv4sf_internal1"): Same.
11930
11931         * config/rs6000/rs6000.c (altivec_register_operand): New.
11932
11933         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
11934         altivec_register_operand.
11935
11936 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
11937
11938         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
11939         handle SYMBOL_REF.
11940
11941 2002-02-13  Stan Shebs  <shebs@apple.com>
11942
11943         * c-typeck.c (digest_init): Handle vectors.
11944         (really_start_incremental_init): Same.
11945         (pop_init_level): Same.
11946         (process_init_element): Same.
11947
11948         * varasm.c (output_constant): Same.
11949
11950         * expr.c (clear_storage): Same.
11951         (store_constructor): Same.
11952
11953 2002-02-12  Eric Christopher  <echristo@redhat.com>
11954
11955         * explow.c (hard_function_value): Add comment explaining
11956         signed/unsigned comparison.
11957
11958 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
11959
11960         * jump.c (never_reached_warning): Add finish argument.
11961         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
11962         real insn after end.
11963         * rtl.h (never_reached_warning): Adjust prototype.
11964         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
11965         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
11966         never_reached_warning.
11967
11968 2002-02-12  Graham Stott  <grahams@redhat.com>
11969
11970         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
11971
11972 2002-02-12  Kazu Hirata  <kazu@hxi.com>
11973
11974         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
11975         logical shifts on H8/300.
11976         (shift_alg_si): Improve several shifts on H8/300.
11977         (get_shift_alg): Likewise.
11978
11979 2002-02-12  Graham Stott  <grahams@redhat.com>
11980
11981         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
11982
11983 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11984
11985         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
11986         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
11987
11988 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
11989
11990         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
11991         non-CONST_INT through default_assemble_integer.
11992         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
11993         <case 8>: Abort for CONST_DOUBLE.
11994
11995 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11996
11997         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
11998         is specified.
11999         * config/pa/pa-linux.h (LIB_SPEC): Delete.
12000         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
12001
12002 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
12003
12004         * config/stormy16/stormy16.md (zero_extendqihi2): New.
12005
12006 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
12007
12008         * regrename.c (regrename_optimize): Don't accept a
12009         part-clobbered register if the replaced register is not part
12010         clobbered.
12011
12012         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
12013         take padding into account when computing the argument value.
12014
12015         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
12016
12017         * combine.c (try_combine): Apply substitutions in
12018         CALL_INSN_FUNCTION_USAGE too.
12019
12020 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
12021
12022         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
12023         __builtin_altivec_abs*.
12024         (bdesc_abs): New.
12025
12026         * config/rs6000/rs6000.h (rs6000_builtins): Add
12027         ALTIVEC_BUILTIN_ABS*.
12028
12029         * config/rs6000/altivec.h: Use const char for builtins expecting
12030         literals.
12031         (vec_abs): New versions for C and C++.
12032         (vec_abss): Same.
12033
12034 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12035
12036         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
12037         using Pmode.
12038
12039 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12040
12041         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
12042         constant definition from h8300.md.
12043         (FRAME_POINTER_REGNUM): Likewise.
12044         * config/h8300/h8300.md (define_constants): Add FP_REG.
12045
12046 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12047
12048         * config/h8300/h8300.c (print_operand): Remove redundant code.
12049
12050 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12051
12052         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
12053         * config/h8300/h8300.c (byte_reg): Make it static.
12054
12055 2002-02-10  Richard Henderson  <rth@redhat.com>
12056
12057         PR c/5623
12058         * c-typeck.c (incomplete_type_error): Handle flexible array members.
12059
12060 2002-02-10  Richard Henderson  <rth@redhat.com>
12061
12062         PR c++/5624
12063         * tree.c (append_random_chars): Don't abort if main_input_filename
12064         does not exist.
12065
12066 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
12067
12068         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
12069
12070 2002-02-10  Kazu Hirata  <kazu@hxi.com>
12071
12072         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
12073         (pushhi1): Likewise.
12074
12075 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12076
12077         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
12078         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
12079
12080 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
12081
12082         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
12083         remove MASK_VIS.
12084         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
12085
12086 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12087
12088         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
12089         a half of an SImode register on H8/300.
12090
12091 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
12092
12093         * i386.md (movdi_2): Add missing '!'.
12094
12095 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12096
12097         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
12098         definitions.
12099
12100 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12101
12102         * config/h8300/h8300.md (length): Correct the distance valid
12103         for the short branch.
12104
12105 2002-02-09  Kazu Hirata  <kazu@hxi.com>
12106
12107         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
12108
12109 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12110
12111         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
12112         registers in SImode.
12113         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
12114         part-clobbered.
12115
12116         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12117         patch.
12118
12119         Contribute sh64-elf.
12120         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12121         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12122         (sh_cannot_modify_jumps_p): New function.
12123         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12124         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12125         (sh_ms_bitfield_layout_p): New function.
12126         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12127                     Zack Weinberg  <zack@codesourcery.com>
12128         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12129         expand_simple_binop instead of expand_binop.
12130         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12131         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12132         use of .quad and .uaquad.
12133         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12134         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12135         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12136         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12137         movdi_const_16bit): Make sure all CONSTs have modes.
12138         (sym2PIC): Ditto, but by adjusting all callers.
12139         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12140         if the prologue calls the SHmedia argument decoder or register
12141         saver.
12142         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12143         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12144         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12145         (sh_expand_epilogue): Don't emit USE of return target register.
12146         (prepare_move_operands): Legitimize DImode PIC addresses.
12147         (sh_media_register_for_return): Skip tr0, used to initialize the
12148         PIC register.
12149         (sh_expand_prologue): Remove explicit USE of return register.
12150         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12151         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12152         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12153         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12154         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12155         EXTRA_CONSTRAINT_T.
12156         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12157         (MOVI_SHORI_BASE_OPERAND_P): New.
12158         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12159         (EXTRA_CONSTRAINT_T): Define in terms of them.
12160         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12161         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12162         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12163         alternatives supporting TARGET_REGS.
12164         (UNSPEC_GOTPLT): New constant.
12165         (movdi split): Move incrementing of LABEL_NUSES...
12166         (movdi_const, movdi_const_32bit): Here.  Use
12167         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12168         (movdi_const_16bit): New.
12169         (call, call_value) [flag_pic]: Use GOTPLT.
12170         (call_pop, call_value_pop): New expands.
12171         (call_pop_compact, call_pop_rettramp): New insns.
12172         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12173         (sibcall) [flag_pic]: Use GOT.
12174         (builtint_setjmp_receiver): Remove bogus, unused expand.
12175         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12176         (*pt, *ptb, ptrel): New insns.
12177         (sym2GOT): Handle DImode GOT.
12178         (sym2GOTPLT, symGOTPLT2reg): New expands.
12179         (sym2PIC): New expand.
12180         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12181         (shcompact_return_tramp_i): Use return register explicitly.
12182         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12183         disable flag_reorder_blocks.
12184         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12185         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12186         clobbers, for clarity.
12187         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12188         restoring of r0 in macl as MAYBE_DEAD.
12189         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12190         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12191         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12192         alter_subreg all over.
12193         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12194         reload, instead of emitting instructions that would require
12195         reloading.
12196         (casesi_load_media): Add missing modes.
12197         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12198         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12199         as used if the argument decoder is called.
12200         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12201         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12202         Pmode, then extend it to DImode if necessary.
12203         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12204         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12205         constants in FPU-enabled SHmedia, let them be loaded from memory.
12206         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12207         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12208         Adjust whitespace in assembly output templates.
12209         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12210         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12211         mode of if_then_else.
12212         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12213         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12214         sh.h.
12215         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12216                     Joern Rennecke <amylaar@redhat.com>
12217         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12218         (SUBTARGET_CPP_PTR_SPEC): New.
12219         (SUBTARGET_CPP_SPEC): Remove.
12220         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12221         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12222         Fix typo in previous checkin.
12223         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12224         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12225         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12226                     Alexandre Oliva  <aoliva@redhat.com>
12227         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12228         what single FP register can hold for SHmedia target.
12229         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12230                     Alexandre Oliva  <aoliva@redhat.com>
12231         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12232         Do not split into SUBREG.
12233         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12234         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12235         and added new functions as specified in SH5 ABI r9.
12236         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
12237         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12238         8-byte boundary.
12239         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
12240         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12241         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
12242         and consttable_window_ends.
12243         2001-06-03  Graham Stott  <grahams@redhat,com>
12244         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12245         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
12246         * config/sh/sh.c (print_operand): Handle floating-point pair,
12247         vector and matrix registers.
12248         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12249         vector modes into account.
12250         * config/sh/sh.md (movv2sf): Split move between registers into
12251         movdf.
12252         (movv4sf, movv16sf): Introduce insns that get split only after
12253         reload.
12254         * config/sh/shmedia.h: Fix Copyright dates.
12255         * config/sh/ushmedia.h: Likewise.  Move loop counter
12256         declarations into conditionals that uses them.
12257         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12258         loop boundary.
12259         * config/sh/sshmedia.h: Fix Copyright dates.
12260         (sh_media_PUTCFG): Fix constraints.
12261         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
12262         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12263         ptrmemfunc_vbit_in_delta for SH5.
12264         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
12265         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12266         * invoke.texi: Likewise.
12267         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12268         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12269         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12270         GCC_pop_shmedia_regs_nofpu): New global symbols.
12271         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12272         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12273         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12274         compact function with nonlocal labels.
12275         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12276         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12277         (initial_elimination_offset): Account for their stack space.
12278         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12279         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12280         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12281         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12282         least one of the operands to be a register.
12283         (movv2sf): Likewise.  Renamed to movv2sf_i.
12284         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12285         prepare_move_operands() before emitting SHmedia insns.
12286         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
12287         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12288         Don't save nor initialize r12.  Don't mis-align the stack.
12289         Pad the code with a nop.
12290         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
12291         stack.
12292         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12293         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12294         [__SHMEDIA__]: Implement.
12295         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
12296         * config/sh/sh.md: Set latency of `pt' closer to reality.
12297         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12298         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12299         Set move, load and store type attributes.
12300         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12301         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12302         profiling.
12303         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12304         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12305         * config/sh/sh.c (sh_media_register_for_return): New function.
12306         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12307         branch-target register.
12308         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12309         * config/sh/sh.md (return_media_i): Use any call-clobbered
12310         branch-target register.
12311         (return_media): If r18 wasn't copied in the prologue, copy it
12312         here.
12313         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12314         Clear class FP0_REGS.
12315         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12316         from elf.h.
12317         2001-03-08  DJ Delorie  <dj@redhat.com>
12318         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12319         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
12320         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12321         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
12322         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12323         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
12324         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12325         return value correctly for call_cookie.
12326         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12327         * config/sh/crt1.asm (start): Modified so as to call
12328         ___setup_argv_and_call_main.
12329         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
12330         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12331         SHmedia mode.
12332         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
12333         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12334         (STRIP_NAME_ENCODING): Use it.
12335         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
12336         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
12337         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12338         prepare_scc_operands().
12339         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12340         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12341         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
12342         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12343         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
12344         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12345         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12346         used in shcompact_incoming_args.
12347         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12348         change.
12349         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12350         mode.
12351         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12352         Adjust accordingly.
12353         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12354         Simplify.  Adjust.  Add sanity check.
12355         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12356         FPU_SINGLE_BIT.
12357         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12358         TARGET_SHCOMPACT.
12359         (udivsi3, divsi3): Use them.
12360         (force_mode_for_call): New insn.
12361         (call, call_value, sibcall_value): Emit it before SHcompact
12362         calls.
12363         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
12364         * config/sh/sh.md (call, call_value, sibcall): Make sure the
12365         call cookie is non-NULL before taking its value.
12366         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
12367         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12368         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
12369         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12370         block.
12371         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12372         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12373         temporary for stack adjusts.  Use MACL and MACH to pass
12374         arguments to shcompact_incoming_args.
12375         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
12376         clobber r1.
12377         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12378         (nested_trampoline): Load static chain address into r1.
12379         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12380         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
12381         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12382         fp_arith_reg_operand().
12383         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
12384         * config/sh/sh.md (casesi): Sign-extend the first two operands,
12385         and use signed compares for them.
12386         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12387         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
12388         ones properly aligned.
12389         (find_barrier): Account for extra alignment needed for 8-byte wide
12390         constants.
12391         (machine_dependent_reorg): Require a label for the second 4-byte
12392         constant after an 8-byte one.
12393         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12394         change.
12395         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12396         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12397         last_float when switching float modes.
12398         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12399         auto-increment for general-purpose registers.
12400         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12401         result.
12402         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12403         for stack adjust.
12404         * config/sh/sh.c (sh_builtin_saveregs): Support using all
12405         registers for varargs.
12406         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
12407         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12408         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12409         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12410         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12411         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
12412         call_cookie accordingly.
12413         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12414         (SHCOMPACT_BYREF): Likewise.
12415         (SHCOMPACT_FORCE_ON_STACK): New macro.
12416         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12417         (sh_builtin_saveregs): Likewise.
12418         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12419         shcompact_incoming_args): Use new shift values.  Support
12420         sequences of consecutive and non-consecutive pushes/pops.
12421         * config/sh/sh.md (return): Don't explicitly use PR_REG.
12422         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
12423         * config/sh/sh.h (TEXT_SECTION): Define.
12424         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12425         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12426         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12427         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12428         return values on FPU-enabled SHmedia.
12429         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12430         FPU-enabled SHmedia.
12431         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12432         value is returned in a non-FP reg and is not returned by
12433         reference.
12434         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12435         jump_ind.
12436         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
12437         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12438         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12439         quad-aligned to be passed by callee-copy reference.
12440         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
12441         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12442         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12443         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
12444         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12445         copying low-numbered FP regs to r7 and r8.
12446         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12447         FP regs to general-purpose regs only if the copy was passed on the
12448         stack.
12449         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12450         copying FP reg to r9.
12451         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12452         copy FP regs to general-purpose regs only in outgoing calls.
12453         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12454         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
12455         HOST_WIDE_INT.
12456         * config/sh/sh.h (struct sh_args): Document all fields.
12457         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12458         passed partially on the stack should not consider making
12459         sibcalls.
12460         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12461         stack_regs only for incoming calls.  When passing FP args,
12462         make sure there are FP regs available before modifying
12463         call_cookie.
12464         (SHCOMPACT_BYREF): Pass double args in general-purpose
12465         registers by reference.
12466         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
12467         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12468         attempt to generate sibcalls if the caller got any arguments
12469         by reference.
12470         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12471         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12472         to 8-byte boundaries.
12473         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12474         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12475         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12476         stored in the stack.
12477         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12478         for the offsets to have the ISA bit set.
12479         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
12480         invocation.  Use beq instead of bgt to mark end of sequence of
12481         loads.
12482         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
12483         bgt to mark end of sequence of stores.
12484         * config/sh/sh.c (arith_operand): Don't check whether
12485         CONST_OK_FOR_J for now.
12486         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12487         instead of long for conversion.
12488         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
12489         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12490         before passing it to fprintf.
12491         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
12492         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12493         Call set_fpscr before reading/writing SR.
12494         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12495         Call set_fpscr.
12496         * config/sh/lib1funcs.asm: Add `.align 2' directives before
12497         SHmedia code.
12498         (FMOVD_WORKS): Define on SH5 with FPU.
12499         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
12500         setting.
12501         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12502         _fpscr_values.
12503         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
12504         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12505         address.
12506         (ia_main_table): Ditto.
12507         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
12508         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12509         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12510         the definitions from sh.h.
12511         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12512         TARGET_SH5.
12513         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12514         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12515         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12516         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
12517         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12518         Increment LABEL_NUSES.
12519
12520         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12521         TARGET_SH5.
12522         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12523         defined.
12524         * config/sh/elf.h (SIZE_TYPE): Likewise.
12525         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12526         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12527         shcompact_incoming_args): Load switch table addresses using
12528         datalabel.
12529         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12530         (NO_BUILTIN_SIZE_TYPE): Define.
12531         (SIZE_TYPE): Don't define.
12532         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12533         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12534         definition of __SH5__=32 for -m5-compact-nofpu.
12535         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12536         ADDR_DIFF_VEC.
12537         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
12538         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12539         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
12540         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12541         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12542         (INSN_LENGTH_ALIGNMENT): Likewise.
12543         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12544         * config/sh/sh.md (call, call_value, sibcall): Simplify
12545         copying of non-branch-target register.
12546         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12547         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
12548         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12549         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12550         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12551         floating-point values as structs.
12552         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12553         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12554         general-purpose register.
12555         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12556         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
12557         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12558         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12559         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12560         (ENCODE_SECTION_INFO): Enclose variables and constants in
12561         DATALABEL unspecs.
12562         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12563         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12564         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12565         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12566         only for LABEL_REFs.  For SYMBOL_REFs, prepend
12567         SH_DATALABEL_ENCODING to the symbol name.
12568         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12569         convert_mode().
12570         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
12571         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12572         UNSPEC_DATALABEL.
12573         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12574         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12575         (DATALABEL_REF_P): Don't require CONST.
12576         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12577         REL label.
12578         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
12579         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12580         right.
12581         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
12582         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12583         Use shallow_copy_rtx and PUT_MODE to change the mode of
12584         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12585         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12586         on SHmedia using GENERAL_REGs.
12587         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12588         bltu_media_i): Fix reversion of conditions.
12589         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
12590         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12591         * config/sh/sh.c (output_far_jump): Save r13 in macl.
12592         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
12593         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12594         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
12595         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12596         (GCC_nested_trampoline): Likewise.
12597         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12598         * config/sh/sh.c (gen_datalabel_ref): Define.
12599         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12600         (INITIALIZE_TRAMPOLINE): Likewise.
12601         (TRAMPOLINE_ADJUST_ADDRESS): Define.
12602         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12603         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12604         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12605         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12606         (ic_invalidate): Adjust for SH5.
12607         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12608         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12609         _nested_trampoline.
12610         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
12611         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12612         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12613         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
12614         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12615         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12616         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
12617         * config/sh/sh.c (target_reg_operand): Match only target-branch
12618         registers and pseudos that aren't virtual registers.
12619         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12620         Copy operands that don't match target_reg_operand to pseudos.
12621         (call_media, call_value_media, sibcall_media): Use
12622         target_reg_operand instead of target_operand.
12623         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
12624         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12625         * config/sh/sh.c (target_reg_operand): Match hardware registers
12626         other than branch-target registers.
12627         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12628         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12629         (fpscr_values) [SH5 == 32]: Define.
12630         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12631         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12632         Handle function addresses coming in SUBREGs.
12633         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
12634         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12635         shcompact_return_trampoline): Use datalabel where appropriate.
12636         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
12637         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12638         general-purpose register to copy one branch-target register to
12639         another.
12640         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
12641         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12642         SYMBOL_REFs with VOIDmode.
12643         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12644         bltu_media_i): New insns.
12645         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
12646         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12647         (INIT_CUMULATIVE_ARGS): Likewise.
12648         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
12649         * machmode.def (V16SFmode): New mode.
12650         * c-common.c (type_for_mode): Support V2SF and V16SF.
12651         * tree.c (build_common_tree_nodes_2): Likewise.
12652         * tree.h (tree_index): Likewise.
12653         * calls.c (emit_call_1): Take args_so_far.  Adjust all
12654         callers.  Introduce CALL_POPS_ARGS.
12655         * tm.texi (CALL_POPS_ARGS): Document.
12656         * config/sh/crt1.asm: Implement in SHmedia mode.
12657         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12658         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12659         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12660         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12661         Implement divsi and udivsi in SHmedia mode.  Introduce
12662         SHcompact trampolines.
12663         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12664         only in SHmedia64.
12665         (regno_reg_class): Rewrite.
12666         (fp_reg_names): Remove.
12667         (sh_register_names, sh_additional_register_names): New.
12668         (print_operand): Added `u'.  Support SUBREGs in addresses.
12669         Add parentheses around shifted CONSTs.
12670         (output_file_start): Output .mode and .abi directives.
12671         (shiftcosts, addsubcosts, multcosts): Adjust.
12672         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
12673         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
12674         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
12675         bytes, not registers.  Take into account the need for the
12676         SHcompact incoming args trampoline.  Adjust all callers.
12677         (sh_expand_prologue): Take stack_regs into account.  Call
12678         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
12679         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
12680         stack aligned as per SH5 ABI.
12681         (sh_builtin_saveregs): Support SH5 ABI.
12682         (sh_build_va_list, sh_va_start): Likewise.
12683         (initial_elimination_offset): Take alignment into account.
12684         Compute location of PR according to the SH5 stack frame.
12685         (arith_reg_operand): Reject branch-target registers.
12686         (shmedia_6bit_operand): New.
12687         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12688         (target_reg_operand): Match DImode only.  Accept SUBREGs.
12689         (target_operand): New.
12690         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12691         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
12692         SIBCALL_REGS for SHmedia.
12693         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12694         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12695         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12696         (TARGET_SWITCHES): New SH5 flags.
12697         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
12698         VALID_REGISTER_P to disable unsupported registers.
12699         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12700         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12701         (FUNCTION_ARG_PADDING): Define.
12702         (FASTEST_ALIGNMENT): Adjust.
12703         (SH_REGISTER_NAMES_INITIALIZER): New.
12704         (sh_register_names): Declare.
12705         (DEBUG_REGISTER_NAMES): Define.
12706         (REGISTER_NAMES): Define based on sh_register_names.
12707         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12708         (sh_additional_register_names): Declare.
12709         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12710         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12711         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12712         (REGISTER_NATURAL_MODE): Define.
12713         (FIRST_PSEUDO_REGISTER): Adjust.
12714         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12715         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12716         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12717         (VECTOR_MODE_SUPPORTED_P): Define.
12718         (REG_CLASS_CONTENTS): Adjust.
12719         (SMALL_REGISTER_CLASSES): Adjust.
12720         (REG_ALLOC_ORDER): Adjust.
12721         (INDEX_REG_CLASS): Adjust.
12722         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12723         (CONST_OK_FOR_LETTER_P): Adjust.
12724         (PREFERRED_RELOAD_CLASS): Adjust.
12725         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12726         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
12727         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
12728         (FIRST_FP_PARM_REG): Adjust.
12729         (CALL_POPS_ARGS): Define.
12730         (FUNCTION_ARG_REGNO_P): Adjust.
12731         (struct sh_args): New fields.
12732         (GET_SH_ARG_CLASS): Adjust.
12733         (INIT_CUMULATIVE_ARGS): Adjust.
12734         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
12735         (FUNCTION_ARG_ADVANCE): Adjust.
12736         (FUNCTION_ARG): Adjust.
12737         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
12738         (FUNCTION_ARG_CALLEE_COPIES): Define.
12739         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
12740         (STRICT_ARGUMENT_NAMING): Define.
12741         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
12742         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
12743         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
12744         (SETUP_INCOMING_VARARGS): Adjust.
12745         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
12746         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
12747         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
12748         (SUBREG_OK_FOR_INDEX_P): Adjust.
12749         (EXTRA_CONSTRAINT_S): Update.
12750         (EXTRA_CONSTRAINT_T): New.
12751         (EXTRA_CONSTRAINT): Adjust.
12752         (GO_IF_LEGITIMATE_INDEX): Adjust.
12753         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
12754         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
12755         (MOVE_MAX): Adjust.
12756         (MAX_MOVE_MAX): Define.
12757         (Pmode): Adjust.
12758         (CONST_COSTS): Adjust.
12759         (REGISTER_MOVE_COST): Adjust.
12760         (BRANCH_COST): Adjust.
12761         (TEXT_SECTION_ASM_OP): Adjust.
12762         (DBX_REGISTER_NUMBER): Adjust.
12763         (ASM_OUTPUT_DOUBLE_INT): New.
12764         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
12765         (PREDICATE_CODES): Adjust.
12766         (PROMOTE_MODE): Adjust.
12767         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
12768         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
12769         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
12770         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
12771         (DR0_REG, DR2_REG, DR4_REG): Renumber.
12772         (TR0_REG, TR1_REG, TR2_REG): New.
12773         (XD0_REG): Renumber.
12774         (UNSPEC_COMPACT_ARGS): New.
12775         (type): Added pt and ptabs.
12776         (length): Default to 4 on SHmedia.  Default pt length to 12
12777         and     20 on SHmedia32 and SHmedia64, respectively.
12778         (pt): New function unit.
12779         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
12780         Add whitespace between operands of SHmedia instructions.
12781         (movdicc): Fix.
12782         (adddi3_media, addsi3_media): Adjust constraints.
12783         (subsi3) [SHmedia]: Force operand 1 into a register.
12784         (udivsi3_i1_media, udivsi3_i4_media): New.
12785         (udivsi3): Support SHmedia.
12786         (divsi3_i1_media, divsi3_i4_media): New.
12787         (divsi3): Support SHmedia.
12788         (anddi3, iordi3, xordi3): Adjust constraints.
12789         (zero_extendhidi2, zero_extendqidi2): New.
12790         (extendsidi2, extendhidi2, extendqidi2): New.
12791         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
12792         (pop_e, pop_fpul, pop_4): Likewise.
12793         (movsi_media): Support FP and BT registers.
12794         (movsi_media_nofpu): New.  Adjust splits to DImode.
12795         (lduw, ldub): Renamed to zero_extend* above.
12796         (movqi_media): Fix typo.
12797         (movdi_media): Support FP and BT registers.
12798         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
12799         (movdi_const_32bit): New.
12800         (shori_media): Require immediate operand.  Use `u' for output.
12801         (movdf_media, movsf_media): Simplified.
12802         (movdf_media_nofpu, movsf_media_nofpu): New.
12803         (movdf, movsf): Adjust
12804         (movv2sf, movv2sf, movv16sf): New.
12805         (beq_media, beq_media_i): Adjust constraints.  Don't use
12806         scratch BT register.
12807         (bne_media, bne_media_i): Likewise.
12808         (bgt_media, bgt_media_i): Likewise.
12809         (bge_media, bge_media_i): Likewise.
12810         (bgtu_media, bgtu_media_i): Likewise.
12811         (bgeu_media, bgeu_media_i): Likewise.
12812         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
12813         bunordered): Emit jump insn.  Force operands to registers when
12814         needed.
12815         (jump_media, jump): Simplify.
12816         (call_compact, call_compact_rettramp): New.
12817         (call_value_compact, call_value_compact_rettramp): New.
12818         (call_media, call_value_media): Simplify.
12819         (sibcall_compact, sibcall_media): New.
12820         (call, call_value): Adjust for SHmedia and SHcompact.
12821         (sibcall, sibcall_value, untyped_call): Likewise.
12822         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
12823         (indirect_jump): Adjust for SHmedia.
12824         (casesi_jump_media): New.
12825         (nop): Re-enable for SHmedia.
12826         (call_site): Restrict to SH1.
12827         (casesi): Adjust for SHmedia.
12828         (casesi_shift_media, casesi_load_media): New.
12829         (return): Explicitly use PR register.  Call return trampoline
12830         on SHcompact.
12831         (return_i): Explicitly use PR register.
12832         (shcompact_return_tramp, shcompact_return_tramp_i): New.
12833         (return_media): Adjust.
12834         (shcompact_incoming_args): New.
12835         (epilogue): Adjust.
12836         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12837         (movstrsi): Disable on SH5.
12838         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
12839         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
12840         (subsf3, subsf3_media): Likewise.
12841         (mulsf3, mulsf3_media, mac_media): Likewise.
12842         (divsf3, divsf3_media): Likewise.
12843         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
12844         (floatsisf2, fux_truncsfsi2): Likewise.
12845         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
12846         constraints.
12847         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
12848         (cmpunsf_media, cmpsf): Likewise.
12849         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
12850         (abssf2, abssf2_media): Likewise.
12851         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
12852         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
12853         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
12854         (floatsidf2, fix_truncdfsi2): Likewise.
12855         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
12856         constraints.
12857         (cmpeqdf_media, cmpgtdf_media): Likewise.
12858         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
12859         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
12860         (absdf2, absdf2_media): Likewise.
12861         (extendsfdf2, extendsfdf2_media): Likewise.
12862         (truncsfdf2, truncsfdf2_media): Likewise.
12863         * config/sh/sh64.h: New file.
12864         * config/sh/t-sh64: New file.
12865         * config/sh/shmedia.h: New file.
12866         * config/sh/ushmedia.h: New file.
12867         * config/sh/sshmedia.h: New file.
12868         * configure.in: Added sh64-*-elf.
12869         * configure: Rebuilt.
12870         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
12871         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
12872         (reg_class_from_letter): Use `b' for TARGET_REGS.
12873         (print_operand): Support `%M', `%m', `AND' and
12874         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
12875         (andcosts): Adjust for SHmedia.
12876         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
12877         Likewise.
12878         (target_reg_operand): New function.
12879         * config/sh/sh-protos.h (target_reg_operand): Declare.
12880         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
12881         FP registers on SH5.
12882         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
12883         on SH4.
12884         (TARGET_REGISTER_P): New macro.
12885         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
12886         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
12887         (EXTRA_CONSTRAINT_S): New macro.
12888         (EXTRA_CONSTRAINT): Adjust.
12889         (FLOAT_TYPE_SIZE): Define to 32.
12890         (Pmode): DImode on SHmedia.
12891         (CONST_COSTS): Adjust for SHmedia literals.
12892         (PREDICATE_CODES): Added target_reg_operand.
12893         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
12894         * config/sh/sh.md: Remove all attrs from SHmedia insns.
12895         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
12896         (cmpdi): Accept SHmedia.
12897         (movdicc_false, movdicc_true): New insns.
12898         (movdicc): New expand.
12899         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
12900         no_new_pseudos.
12901         (addsi3_media): Match `S' constraint.
12902         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
12903         (negdi2): Expand for SHmedia.
12904         (one_cmpldi2): New expand.
12905         (zero_extendsidi2): Change from expand to insn.
12906         (extendsidi2): Add constraints.
12907         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
12908         LD/ST address.  Fix SI immediate loading split.
12909         (movhi_media, movqi_media, lduw, ldub): New insns.
12910         (movhi, movqi): Accept SHmedia.
12911         (shori_media, movdi_media): Relax input constraints.  Split
12912         symbolic constants.
12913         (movdf_media, movsf_media): New insn.  New split to movdi.
12914         (movdf, movsf): Match on SHmedia.
12915         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
12916         bgeu_media): New insns and splits.  New insns with `_i' suffix.
12917         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
12918         (bunordered): New expand.
12919         (jump_compact): Renamed from `jump'.
12920         (jump_media): New insn.
12921         (jump): New expand.
12922         (call_media, call_value_media): New insns.
12923         (call, call_value): Adjust.
12924         (indirect_jump_compact): Renamed from `indirect_jump'.
12925         (indirect_jump_media): New insn.
12926         (indirect_jump): New expand.
12927         (untyped_call, return): Accept SHmedia.
12928         (return_media): New insn.
12929         (prologue, epilogue, blockage): Accept SHmedia.
12930         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12931         (sunordered): New expand.
12932         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
12933         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
12934         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
12935         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
12936         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
12937         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
12938         abssf2_media): New insns.
12939         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
12940         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
12941         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
12942         floatdidf2, floatsidf2_media, fix_truncdfdi2,
12943         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
12944         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
12945         absdf2_media): New insns.
12946         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
12947         (extendsfdf2_media, truncdfsf2_media): New insns.
12948         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
12949         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
12950         * config/sh/sh.h (CONST_OK_FOR_J): Document.
12951         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
12952         * config/sh/sh.md (adddi3): New expand.
12953         (adddi3_media, adddi3z_media): New insns.
12954         (adddi3_compact): Renamed from adddi3.
12955         (addsi3_media): Use add.l r63 to add constant zero.
12956         (subdi3): New expand.
12957         (subdi3_media): New insn.
12958         (subdi3_compact): Renamed from subdi3.
12959         (mulsidi3): New expand.
12960         (mulsidi3_media): New insn.
12961         (mulsidi3_compact): Renamed from mulsidi3.
12962         (umulsidi3): New expand.
12963         (umulsidi3_media): New insn.
12964         (umulsidi3_compact): Renamed from umulsidi3.
12965         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
12966         (ashlsi3, ashrsi3, lshrsi3): Use them.
12967         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
12968         (ashldi3, ashrdi3, lshrdi3): Use them.
12969         (zero_extendsidi2): New expand.
12970         (extendsidi2): New insn.
12971         (movsi_media): New insn.  Split to movdi to load constants.
12972         (movsi): Enable for shmedia.
12973         (movdi_media): New insn.  Use shori_media to load wide constants.
12974         (short_media): New insn.
12975         (movdi): Enable for shmedia.
12976         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
12977         * config/sh/sh.h (CPP_SPEC): Added `m5'.
12978         (SUBTARGET_CPP_SPEC): Added `!m5'.
12979         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
12980         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
12981         to all other SH variants.
12982         (TARGET_DEFAULT): Set to SH1_BIT.
12983         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
12984         (BITS_PER_WORD): Raise to 64 on shmedia.
12985         (MAX_BITS_PER_WORD): Change to 64.
12986         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
12987         (INT_TYPE_SIZE): Keep as 32.
12988         (UNITS_PER_WORD): Raise to 8 on shmedia.
12989         (MIN_UNITS_PER_WORD): Keep as 4.
12990         (POINTER_SIZE): Raise to 64 on shmedia.
12991         (CONST_OK_FOR_J): New macro.
12992         (CONST_OK_FOR_LETTER_P): Use it.
12993         (processor_type): Add PROCESSOR_SH5.
12994         * config/sh/sh.md: Conditionalize all expands, insns and
12995         splits to TARGET_SH1.
12996         (cpu): Added sh5.
12997         (addsi3_compact): Renamed from...
12998         (addsi3): Now an expand.
12999         (addsi3_media, subsi3_media): New insns.
13000         (subsi3): Don't negate constants with SHmedia.
13001
13002         * hooks.c: New file.
13003         * hooks.h: New file.
13004         * Makefile.in (HOOKS_H): New.
13005         (TARGET_DEF_H): Added $(HOOKS_H).
13006         (OBJS): Added hooks.o.
13007         (cfgcleanup.o, bb-reorder.o): Added target.h.
13008         (hooks.o): Added dependencies.
13009         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
13010         (TARGET_INITIALIZER): this.
13011         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
13012         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
13013         * bb-reorder.c: Include target.h.
13014         (reorder_basic_blocks): Skip if cannot modify jumps.
13015         * cfgcleanup.c: Include target.h.
13016         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
13017
13018 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13019
13020         * config/mips/mips.md (casesi_internal, casesi_internal_di):
13021         Protect jump delay slot instructions with .set noreorder and
13022         .set nomacro.
13023
13024 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
13025
13026         * config/mips/mips.md (casesi_internal_di): Calculate
13027         the index into the target offset table correctly.
13028
13029 2002-02-08  Richard Henderson  <rth@redhat.com>
13030
13031         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
13032         * final.c (output_addr_const): Accept and discard SUBREG.
13033         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
13034         mark them unknown instead.
13035         (simplify_subtraction): Handle RTX_UNKNOWN.
13036         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
13037
13038 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
13039
13040         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
13041
13042 2002-02-08  Richard Henderson  <rth@redhat.com>
13043
13044         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
13045
13046 2002-02-08  Andreas Jaeger  <aj@suse.de>
13047
13048         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
13049         * config/i386/t-linux64: New file.
13050
13051 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
13052
13053         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
13054         * c-parse.in (compstmt): Clear last_expr_type.
13055
13056 2002-02-07  Richard Henderson  <rth@redhat.com>
13057
13058         * loop.c (strength_reduce): Sink final_value when not
13059         eliminating a biv.
13060
13061 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
13062
13063         * config/sparc/freebsd.h: Fix mismatched spec {.
13064
13065 2002-02-07  Richard Henderson  <rth@redhat.com>
13066
13067         * cfgrtl.c: Include recog.h and insn-config.h.
13068         (keep_with_call_p): Fix general_operand invocation.
13069         * Makefile.in (cfgrtl.o): Update dependencies.
13070
13071 2002-02-07  Kazu Hirata  <kazu@hxi.com>
13072
13073         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
13074         comment.  Accept HImode only if TARGET_H8300.
13075
13076 2002-02-07  Eric Christopher  <echristo@redhat.com>
13077
13078         * config/mips/crtn.asm: Cleanup #ifdefs.
13079
13080 2002-02-07  Eric Christopher  <echristo@redhat.com>
13081
13082         * config/mips/crti.asm: Add changes for mips16. mips16 uses
13083         register 7 as RA instead of $31.
13084         * config/mips/crtn.asm: Ditto.
13085         * config/mips/mips.c (mips_move_2words): Add case for
13086         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
13087         (compute_frame_size): Fix typo.
13088         (save_restore_insns): Ditto.  Make documentation about using
13089         register $7 as return register more precise.
13090         (mips_expand_epilogue): Fix comment. Add code to work around not
13091         being able to add to the stack pointer directly.
13092         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
13093         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
13094         epilogue.
13095
13096 2002-02-07  Tom Rix  <trix@redhat.com>
13097
13098         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
13099         immediates in ldu and stdu DS opcode field.
13100         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
13101         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
13102         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
13103
13104 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
13105
13106         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
13107         offset for stack bias.
13108
13109 2002-02-07  H.J. Lu <hjl@gnu.org>
13110
13111         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
13112
13113 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
13114
13115         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13116
13117 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13118
13119         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13120         * i386.c (x86_order_regs_for_local_alloc): New global function.
13121         * i386.h (REG_ALLOC_ORDER): CLeanup.
13122         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13123
13124 2002-02-07  Richard Henderson  <rth@redhat.com>
13125
13126         PR optimization/2463
13127         * alias.c (find_base_value): Recall base values for fixed hard regs.
13128         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13129
13130 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13131
13132         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13133         length.
13134
13135 2002-02-06  Richard Henderson  <rth@redhat.com>
13136
13137         PR c/5609
13138         * stmt.c (resolve_operand_name_1): Take more care with mixed
13139         named and unnamed operands.
13140
13141 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13142             Jan Hubicka  <jh@suse.cz>
13143
13144         * loop.c (remove_constant_addition): Avoid clobbering a shared
13145         CONST expression.
13146
13147 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13148
13149         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13150         * config/s390/t-linux64: New file.
13151         * config/s390/libgcc-glibc.ver: New file.
13152
13153 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13154
13155         * config/s390/linux64.h: Delete file.
13156         * config/s390/s390x.h: New file.
13157         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13158         as target header file.
13159         * config/s390/linux.h (TARGET_VERSION): Define depending on
13160         DEFAULT_TARGET_64BIT.
13161         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13162         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13163         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13164         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13165         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13166         (EXTRA_SPEC): New define.
13167         * config/s390/s390.h (TARGET_VERSION): Define depending on
13168         DEFAULT_TARGET_64BIT.
13169         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13170
13171 2002-02-06  Jason Merrill  <jason@redhat.com>
13172
13173         * c-decl.c (finish_function): Warn about a non-void function with
13174         no return statement and no abnormal exit.
13175         (current_function_returns_abnormally): New variable.
13176         (start_function): Clear it.
13177         (struct c_language_function): Add returns_abnormally.
13178         (push_c_function_context): Save it.
13179         (pop_c_function_context): Restore it.
13180         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13181         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13182         an explicit return type.
13183         * c-tree.h: Declare current_function_returns_abnormally.
13184         (C_FUNCTION_IMPLICIT_INT): New macro.
13185         * c-typeck.c (build_function_call): Set it.
13186         (c_expand_return): Set current_function_returns_value even if the
13187         value is erroneous.
13188
13189 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13190
13191         PR c/5420:
13192         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13193         unsafe for reevaluation.
13194
13195 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13196
13197         PR c/5482:
13198         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13199         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13200
13201 2002-02-06  Richard Henderson  <rth@redhat.com>
13202
13203         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13204         be a general_operand.  Dest for function value must be a pseudo.
13205
13206 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13207
13208         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13209         as SYMBOL_REFs from the constant pool.
13210
13211 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13212
13213         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13214         passed by invisible reference.
13215
13216 2002-02-05  Richard Henderson  <rth@redhat.com>
13217
13218         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13219
13220 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13221
13222         Implement using "base addresses" in insn operands as default.
13223         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13224         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13225         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13226         used to read the rtx value.
13227         (mmix_target_asm_function_epilogue): Fix spacing.
13228         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13229         (mmix_legitimate_address): Ditto.
13230         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13231         should be loaded with a GETA insn.  Don't allocate needless extra
13232         char for nul termination and fix misleading comment.
13233         (mmix_print_operand_address): Handle constants if
13234         TARGET_BASE_ADDRESSES.
13235         (mmix_output_register_setting): Use base addressing if
13236         TARGET_BASE_ADDRESSES and the number of insns is 3.
13237         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13238         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13239         to use R as constraint, add LDA to match s.
13240         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13241         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13242         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13243         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13244         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13245         order with other fixed registers.
13246         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13247         other parameter/call-clobbered registers.
13248         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13249         -mbase-addresses, -mno-base-addresses.
13250         (MMIX Options): Ditto.
13251
13252 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13253
13254         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13255
13256 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
13257
13258         * config/rs6000/altivec.h: Change elem to _S_elem.
13259
13260 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13261
13262         * config/netbsd.h (WCHAR_TYPE): Define.
13263         (WCHAR_TYPE_SIZE): Ditto.
13264         (WINT_TYPE): Ditto.
13265         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13266         (WCHAR_UNSIGNED): Ditto.
13267         (WCHAR_TYPE_SIZE): Ditto.
13268         (WINT_TYPE): Ditto.
13269         * config/arm/netbsd.h: Likewise.
13270         * config/i386/netbsd-elf.h: Likewise.
13271         * config/i386/netbsd.h: Likewise.
13272         * config/m68k/netbsd-elf.h: Likewise.
13273         * config/m68k/netbsd.h: Likewise.
13274         * config/ns32k/netbsd.h: Likewise.
13275         * config/sparc/netbsd.h: Likewise.
13276         * config/vax/netbsd.: Likewise.
13277
13278 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
13279
13280         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13281         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
13282         (TARGET_INITIALIZER): this.
13283         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13284         (BITFIELD_NBYTES_LIMITED): Markup fix.
13285         * tree.h (default_ms_bitfield_layout_p): Declare.
13286         (record_layout_info): Added prev_field.
13287         * tree.c (default_ms_bitfield_layout_p): New fn.
13288         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13289         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13290         * stor-layout.c: Include target.h.
13291         (start_record_layout): Initialize prev_field.
13292         (place_field): Handle MS bit-field layout, and disregard
13293         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13294         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
13295         * Makefile.in (stor-layout.o): Adjust dependencies.
13296
13297 2002-02-05  Jason Merrill  <jason@redhat.com>
13298
13299         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13300
13301 2002-02-05  Andreas Jaeger  <aj@suse.de>
13302
13303         * crtstuff.c: Fix comments.
13304
13305 2002-02-05  Richard Henderson  <rth@redhat.com>
13306
13307         PR fortran/3393
13308         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13309         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13310
13311         PR fortran/3392
13312         * config/mips/mips.c (function_arg): Handle TImode.
13313         (function_arg_advance): Likewise.
13314
13315 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13316
13317         * config/rs6000/altivec.h (vec_step_help): Rename to
13318         __vec_step_help.
13319
13320 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13321
13322         * config/rs6000/altivec.h: Fix typos.
13323
13324 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13325
13326         * config/arm/netbsd.h: Correct a comment.
13327
13328 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13329
13330         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13331         building void typed builtins.
13332
13333         * config/rs6000/altivec.h (vec_ld*): Fix typos.
13334         (vec_step): Implement for C++.
13335
13336 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13337
13338         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13339
13340 2002-02-04  Richard Henderson  <rth@redhat.com>
13341
13342         * combine.c (nonzero_bits): Re-introduce special case for
13343         sp/fp/ap wrt REGNO_POINTER_ALIGN.
13344
13345 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13346
13347         * doc/extend.texi: Warn about unsupported usage of altivec
13348         builtins.
13349
13350         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13351         (altivec_predicate_*): New.
13352
13353         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13354         Add C++ version of vec_*() functions.
13355
13356         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13357         (bdesc_2arg): Remove altivec predicates.
13358         (altivec_expand_builtin): Handle predicates.
13359         (altivec_init_builtins): Handle predicates.
13360         (altivec_expand_predicate_builtin): New.
13361
13362 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13363
13364         * pa.c (DO_FRAME_NOTES): Move forward.
13365         (store_reg): Revise handling of frame notes.
13366         (load_reg): Likewise.
13367         (set_reg_plus_d): Likewise.
13368         (hppa_expand_prologue): Likewise.
13369         (hppa_expand_epilogue): Likewise.
13370
13371 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13372
13373         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13374
13375 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13376
13377         PR c/4475, c++/3780:
13378         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13379         * c-common.h (SWITCH_TYPE): Define.
13380         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13381         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13382         Rename spareness variable to sparseness.
13383         (expand_end_case_type): Renamed from expand_end_case, use orig_type
13384         if non-NULL instead of TREE_TYPE (orig_index).
13385         * tree.h (expand_end_case_type): Renamed from expand_end_case.
13386         (expand_end_case): Define using expand_end_case_type.
13387         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13388         to expand_end_case_type.
13389         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13390
13391 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13392
13393         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13394         (BIGGEST_ALIGNMENT): Change to 128.
13395
13396 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13397
13398         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13399
13400 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13401
13402         * pa.md (call_internal_reg_64bit): Remove unused variable.
13403
13404 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
13405
13406         * config/arm/arm.h (machine_function): Add uses_anonymous_args
13407         field.
13408         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13409         * config/arm/arm.c (current_function_anonymous_args): Delete,
13410         replace uses with cfun->machine->uses_anonymous_args.
13411         (arm_reorg): Do not reset uses_anonymous_args.
13412
13413         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13414         any geenral register.
13415
13416 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
13417
13418         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13419         the entry block.
13420
13421 2002-02-04  Richard Henderson  <rth@redhat.com>
13422
13423         * combine.c (force_to_mode): Remove STACK_BIAS code.
13424         (nonzero_bits): Likewise.  Replace sp/fp special case with
13425         REGNO_POINTER_ALIGN.
13426
13427         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13428         (HARD_FRAME_POINTER_REGNUM): New.
13429         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13430         (FIXED_REGS, CALL_USED_REGS): Update.
13431         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13432         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13433         (HARD_REGNO_NREGS): Update for SFP.
13434         (STACK_POINTER_OFFSET): Include bias here ...
13435         (FIRST_PARM_OFFSET): ... not here.
13436         (STACK_BIAS): Remove.
13437         (INIT_EXPANDERS): New.
13438         (STARTING_FRAME_OFFSET): Do not include bias.
13439         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13440         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13441         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13442         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13443         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13444         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13445         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13446         (MUST_SAVE_REGISTER): Likewise.
13447         (sparc_flat_function_prologue): Likewise.
13448         (sparc_flat_function_epilogue): Likewise.
13449         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13450         (sparc_init_modes): SFP is GENERAL_REGS.
13451         (sparc_builtin_saveregs): SFP does not have bias applied.
13452
13453 2002-02-04  Richard Henderson  <rth@redhat.com>
13454
13455         * config/alpha/alpha.c (current_function_is_thunk): Don't check
13456         current_function_is_thunk.
13457         (alpha_sa_mask): Distinguish between current_function_is_thunk
13458         called from ASM_OUTPUT_MI_THUNK and not.
13459         (alpha_does_function_need_gp): Thunks always need gp.
13460         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13461         (alpha_output_mi_thunk_osf): New.
13462         * config/alpha/alpha-protos.h: Update.
13463         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13464
13465 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
13466
13467         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13468         function types, not when they're taken away.
13469
13470 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
13471
13472         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13473         CODE_LABEL and jump table when replacing a table jump with a
13474         simple jump.
13475
13476 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13477
13478         * config/s390/s390-protos.h (legitimize_la_operand,
13479         s390_secondary_input_reload_class, s390_plus_operand,
13480         s390_expand_plus_operand): Add prototypes.
13481
13482         config/s390/s390.c (s390_secondary_input_reload_class,
13483         s390_plus_operand, s390_expand_plus_operand): New functions.
13484
13485         (struct s390_address): New member 'pointer'.
13486         (s390_decompose_address): Compute it.
13487         (legitimate_la_operand_p): Use it.
13488         (legitimize_la_operand): New function.
13489         (movti, movdi, movdf splitters): Call it.
13490
13491         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13492         (PREDICATE_CODES): Add s390_plus_operand.
13493
13494         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13495         (la_ccclobber): Allow GENERAL_REGS as output operand.
13496
13497         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13498         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13499         (*la_64, *la_31, reload_indi, reload_insi): ... these.
13500
13501 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13502
13503         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13504         register names for regular asm () construct.
13505
13506 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13507
13508         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13509         registers.
13510
13511 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13512
13513         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13514         pat for recog.
13515
13516 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
13517
13518         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13519         constant pool to be identical by string address and index.
13520
13521 2002-02-04  Anthony Green  <green@redhat.com>
13522
13523         * output.h (SECTION_OVERRIDE): Define.
13524         * varasm.c (named_section): Obey SECTION_OVERRIDE.
13525
13526 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13527
13528         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13529         by existing arm*-*-netbsd* (a.out) target.
13530         (ns32k-*-netbsdelf*): Likewise.
13531         (sparc-*-netbsdelf*): Likewise.
13532         (vax-*-netbsdelf*): Likewise.
13533
13534 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
13535
13536         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13537         headers and libobjc headers.
13538
13539 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
13540
13541         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13542         (_mingw.h): Remove duplicate include.
13543
13544 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13545
13546         * config.gcc: Set cpu_type to m68k for 68010, as well.
13547         (m68010-*-netbsdelf*): New...
13548         (m68k*-*-netbsdelf*): ...targets.
13549         * config/m68k/netbsd-elf.h: New file.
13550
13551 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13552
13553         * config/h8300/h8300.c (hand_list): Move inside function_arg.
13554
13555 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13556
13557         * config/h8300/h8300.c (h8_push_ops): Move inside
13558         h8300_init_once.
13559         (h8_pop_ops): Likewise.
13560         (h8_move_ops): Likewise.
13561
13562 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13563
13564         * config/h8300/h8300.c (os_task): Make it static.
13565         (monitor): Likewise.
13566         (pragma_saveall): Likewise.
13567
13568 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
13569
13570         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13571         constant is a valid sign-extension for Pmode.
13572
13573 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13574
13575         * config/h8300/h8300.c: Fix formatting.
13576
13577 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13578
13579         * config/h8300/h8300.md: Fix formatting.
13580
13581 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13582
13583         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13584         predicates of operands[1].  Split the patterns for each
13585         processor variant.
13586
13587 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13588
13589         * config/h8300/h8300.md (xor patterns): Tighten the predicates
13590         of operands[1] to register_operand.
13591
13592 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
13593
13594         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13595         * cpphash.c (_cpp_init_hashtable): Similarly.
13596         * cppinit.c (cpp_create_reader): Default the signed_char flag.
13597         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13598         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13599         (cpp_handle_option): Handle the new options.
13600         * cpplex.c (cpp_interpret_charconst): Use new flag.
13601         * cpplib.h (struct cpp_options): New member signed_char.
13602         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13603         (cpp_options): Handle -fsigned-char and -funsigned-char.
13604         (static_specs): Remove signed_char_spec.
13605         (do_spec1): Don't handle %c.
13606         * system.h: Poison SIGNED_CHAR_SPEC.
13607         * tradcif.y (yylex): Use flag_signed_char.
13608         * tradcpp.h (flag_signed_char): New.
13609         * tradcpp.c (flag_signed_char): New.
13610         (main): Handle new command-line options.
13611         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13612 config:
13613         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13614         * avr/avr.h: Remove old comments.
13615         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13616         (CC1_SPEC): Pass -fsigned-char if -mic*.
13617         (SIGNED_CHAR_SPEC): Remove.
13618 doc:
13619         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13620
13621 2002-02-01  Eric Christopher  <echristo@redhat.com>
13622
13623         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13624         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13625         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13626         (ASM_OUTPUT_REG_POP): Ditto.
13627
13628 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
13629
13630         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13631         patch.
13632
13633 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
13634
13635         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13636
13637 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
13638
13639         PR c/5304:
13640         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13641         unconditionally.
13642
13643 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
13644
13645         * cfganal.c: Include tm_p.h.
13646         (keep_with_call_p): Fix the test that determines if a register holds
13647         the return value of a call.
13648
13649 2002-02-01  DJ Delorie  <dj@redhat.com>
13650
13651         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13652         we are given conflicting registers, switch to the other one we
13653         had allocated for us.
13654         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13655         as TImode so we know when the "other" register is available.
13656
13657 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
13658
13659         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13660         sparc/sparc_bi.h.
13661
13662 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
13663
13664         * cfganal.c (keep_with_call_p): New function.
13665         (flow_call_edges_add): Prevent splitting a block between a call and
13666         a single-set instruction that should be kept in the same block.
13667
13668 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13669
13670         * doc/install.texi (avr): Update outdated URL.
13671
13672 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
13673
13674         * config/stormy16/stormy16.md (pushqi): New.
13675         (popqi): New.
13676         (pushhi): New.
13677         (pophi): New.
13678         (movhi): Remove stack operands.
13679         (movqi): Likewise.
13680         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13681         nonimmediate_nonstack_operand.
13682         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13683         New.
13684         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13685         New.
13686
13687 2002-01-31  Jason Merrill  <jason@redhat.com>
13688
13689         * Makefile.in (c-parse.c): Handle .output file.
13690         * objc/Make-lang.in (objc-parse.c): Likewise.
13691
13692 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
13693
13694         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13695         the -me[lb] option is given.  Don't output the default flag
13696         twice.
13697
13698 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
13699
13700         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13701         the primary source file; this has not been done yet.
13702         * c-decl.c (c_expand_body): Reset input_filename from
13703         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13704
13705 2002-01-31  Kazu Hirata  <kazu@hxi.com>
13706
13707         * rtlanal.c (subreg_regno_offset): Do not use
13708         SUBREG_REGNO_OFFSET.
13709         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13710         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13711
13712 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
13713
13714         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
13715         version rather than GNATS version in --version output.
13716
13717 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
13718
13719         * ifcvt.c (noce_process_if_block): Make a copy of the destination
13720         when copying back from a temporary.
13721
13722 2002-01-30  Richard Henderson  <rth@redhat.com>
13723
13724         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13725         and new_dest are the same.
13726
13727 2002-01-30  Richard Henderson  <rth@redhat.com>
13728
13729         PR opt/5076
13730         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
13731         * rtl.c (note_insn_name): Update.
13732         * emit-rtl.c (remove_unnecessary_notes): Kill it.
13733         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
13734         to perform loop rotation.
13735         (expand_exit_loop_top_cond): New.
13736         * tree.h (expand_exit_loop_top_cond): Declare it.
13737         * c-semantics.c (genrtl_while_stmt): Use it.
13738         (genrtl_for_stmt): Likewise.
13739
13740 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
13741
13742         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
13743         arguments to 64-bit boundaries on 64-bit ABIs.
13744
13745 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
13746
13747         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
13748
13749 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
13750
13751         * c-decl.c (grokdeclarator): Handle type being a typedef for an
13752         invalid type.
13753
13754 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
13755
13756         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
13757         * config/sparc/sparc_bi.h: Remove file.
13758         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
13759
13760 2002-01-30  Richard Henderson  <rth@redhat.com>
13761
13762         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
13763
13764 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
13765
13766         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
13767
13768 2002-01-30  Jason Merrill  <jason@redhat.com>
13769
13770         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
13771         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
13772         (reg_save): Use DW_CFA_offset_extended_sf instead.
13773
13774         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
13775
13776 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
13777
13778         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
13779         in cselib_lookup.
13780
13781 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
13782
13783         * rs6000.md ("*call_value_local32"): Remove constraints.
13784         ("*call_value_local64"): Same.
13785         ("*call_value_indirect_nonlocal_aix32"): Same.
13786         ("*call_value_nonlocal_aix32"): Same.
13787         ("*call_value_indirect_nonlocal_aix64"): Same.
13788         ("*call_value_nonlocal_aix64"): Same.
13789         ("*call_value_nonlocal_sysv"): Same.
13790
13791 2002-01-29  Richard Henderson  <rth@redhat.com>
13792
13793         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
13794
13795 2002-01-29  Richard Henderson  <rth@redhat.com>
13796
13797         * expr.c (force_operand): Ignore flag_pic for detecting pic
13798         address loads.
13799         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
13800         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
13801         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
13802         instead of open-coded loop.
13803         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
13804         be fixed when in use.
13805
13806 2002-01-29  Richard Henderson  <rth@redhat.com>
13807
13808         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
13809         * sched-rgn.c (propagate_deps): Update them.
13810         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
13811         clobbers list when either gets too long.
13812
13813 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
13814
13815         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
13816         and INDEX_REGS the same as GENERAL_REGS.
13817         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13818
13819 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
13820
13821         * tree.c (build_nonstandard_integer_type): Correct prototype.
13822
13823 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
13824
13825         * config/s390/s390.md (movstrsico, movstrdix_64,
13826         movstrsix_31): Remove, replace by ...
13827         (movstrdi_short, movstrsi_short, movstrdi_long,
13828         movstrsi_long): ... these.  New.
13829         (movstrdi, movstrsi): Adapt.
13830
13831         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
13832         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
13833         Remove unnecessary CC clobber.
13834         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
13835         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
13836
13837         (divmoddi4): Don't partially initialize TImode register.
13838
13839 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
13840
13841         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
13842
13843 2002-01-29  Richard Henderson  <rth@redhat.com>
13844
13845         * flow.c (print_rtl_and_abort): Remove.
13846         (print_rtl_and_abort_fcn): Remove.
13847         (verify_local_live_at_start): Use dump_bb instead.
13848         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
13849         (verify_wide_reg_1): Return 2 on mode test failure.
13850
13851 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
13852
13853         PR c/3325, c/3326, c/2511, c/3347
13854         * c-decl.c (enum_decl_context): Remove BITFIELD.
13855         (grokdeclarator): Take bitfield width as an input.
13856         Ensure bitfields are given the correct type.  Perform
13857         bitfield width validation with build_bitfield_integer_type
13858         rather than waiting for finish_struct.
13859         (grok_typename, grok_typename_in_parm_context, start_decl,
13860         push_parmdecl, grokfield, start_function): Update calls to
13861         grokdeclarator.
13862         (build_bitfield_integer_type): New function.
13863         (finish_struct): Move bitfield validation to grokdeclarator
13864         and build_bitfield_integer_type.
13865         * tree.c (build_nonstandard_integer_type): New function.
13866         * tree.h (build_nonstandard_integer_type): New prototype.
13867 objc:
13868         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
13869
13870 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
13871
13872         PR other/1502:
13873         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
13874         don't ignore unrecognized -W* options.
13875         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
13876         * cpplib.h (cpp_handle_option): Adjust prototype.
13877         * c-decl.c (c_decode_options): Pass 0 as last argument to
13878         cpp_handle_option.
13879
13880         PR c/2896:
13881         * gcc.c (cpp_unique_options): Split from cpp_options.
13882         (cpp_options): Source cpp_unique_options.
13883         (default_compilers): Use cpp_unique_options instead of cpp_options
13884         when used together with cc1_options.
13885         (static_specs): Add cpp_unique_options.
13886         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
13887         when used together with cc1_options.
13888
13889 2002-01-29  Kazu Hirata  <kazu@hxi.com>
13890
13891         * config/h8300/h8300-protos.h: Update the prototype of
13892         output_a_shift.
13893         * config/h8300/h8300.c (output_a_shift): Remove an unused
13894         argument 'insn'.  Remove redundant code.
13895         * config/h8300/h8300.md: Adust to the new prototype of
13896         output_a_shift.
13897
13898 2002-01-29  Kazu Hirata  <kazu@hxi.com>
13899
13900         * config/h8300/h8300-protos.h: Update the prototypes of
13901         emit_a_rotate and expand_a_rotate.
13902         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
13903         first argument to 'enum rtx_code'.
13904         (expand_a_rotate): Likewise.
13905
13906 2002-01-28  Kazu Hirata  <kazu@hxi.com>
13907
13908         * config/h8300/h8300-protos.h: Update the prototype of
13909         output_simode_bld.
13910         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
13911         'log2'.
13912         * config/h8300/h8300.md: Adjust to the new prototype.
13913
13914 2002-01-28  Kazu Hirata  <kazu@hxi.com>
13915
13916         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
13917         redundant code.
13918
13919 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13920
13921         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
13922         is a fixed register before returning pic_offset_table_rtx.
13923         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
13924         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
13925
13926 2002-01-28  Jason Merrill  <jason@redhat.com>
13927
13928         * dwarf2.h: Sync with src version.
13929
13930 2002-01-28  Paul Koning  <pkoning@equallogic.com>
13931
13932         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
13933         BT_FN_VOID_PTR_VAR.
13934         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
13935         * doc/extend.texi (__builtin_prefetch): Update documentation:
13936         first argument is now const void ptr.
13937
13938 2002-01-28  Kazu Hirata  <kazu@hxi.com>
13939
13940         * config/h8300/h8300-protos.h: Remove an unused prototype.
13941
13942 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
13943
13944         * toplev.c (lang_independent_init): Round up identifier size.
13945
13946 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
13947
13948         * config.gcc: Revert previous change.
13949
13950 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
13951
13952         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
13953
13954 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
13955
13956         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
13957         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
13958         other non-elf netbsd config frags.
13959         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
13960         collect2 will does that.
13961         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
13962         shared-lib frobbing will work.
13963
13964 2002-01-28  Kazu Hirata  <kazu@hxi.com>
13965
13966         * config/h8300/h8300.h: Fix formatting.
13967         * config/h8300/h8300.md: Likewise.
13968
13969 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
13970
13971         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
13972         the old, removed AAA_standards fix.
13973         * fixinc/fixincl.x: Rebuilt.
13974
13975 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
13976
13977         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
13978         atexit call in crtbegin, hooked in after call to frame_dummy;
13979         register EH before registering __fini__start.
13980
13981 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
13982
13983         * config/rs6000/altivec.h: Remove spurious semicolons.
13984
13985 2002-01-27  Kazu Hirata  <kazu@hxi.com>
13986
13987         * config/h8300/h8300.md: Replace dead bit extraction patterns
13988         with ones that work.
13989
13990 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13991
13992         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
13993         if not STRICT_ALIGNMENT.
13994         * rtl.h (MEM_ALIGN): Likewise.
13995
13996 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13997
13998         * doc/invoke.texi (-fdump-translation-unit): Revert this
13999         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14000
14001 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14002
14003         * config/h8300/h8300.md (define_constants): New.
14004         (anonymous patterns) Use defined constants appropriately.
14005
14006 2002-01-27  Kazu Hirata  <kazu@hxi.com>
14007
14008         * config/h8300/h8300.c (function_arg): Remove redundant code.
14009
14010 2002-01-26  Richard Henderson  <rth@redhat.com>
14011
14012         * sched-deps.c (reg_pending_uses_head): New.
14013         (reg_pending_barrier): Rename from reg_pending_sets_all.
14014         (find_insn_list): Don't mark inline.
14015         (find_insn_mem_list): Remove.
14016         (add_dependence_list, add_dependence_list_and_free): New.
14017         (flush_pending_lists): Replace only_write param with separate
14018         for_read and for_write parameters.  Update all callers.  Use
14019         add_dependence_list_and_free.
14020         (sched_analyze_1): Do not add reg dependencies here; just set
14021         the pending bits.  Use add_dependence_list.
14022         (sched_analyze_2): Likewise.
14023         (sched_analyze_insn): Replace schedule_barrier_found with
14024         reg_pending_barrier.  Add all dependencies for pending reg
14025         uses, sets, and clobbers.
14026         (sched_analyze): Don't add reg dependencies for calls, just
14027         set pending bits.  Use regs_invalidated_by_call.  Treat
14028         sched_before_next_call as a normal list, not a fake insn.
14029         (init_deps): No funny init for sched_before_next_call.
14030         (free_deps): Free pending mems lists.  Don't zero reg_last.
14031         (init_deps_global): Init reg_pending_uses.
14032         (finish_deps_global): Free it.
14033         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
14034         (find_insn_mem_list): Remove.
14035         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
14036         (propagate_deps): Use them.  Zero temp mem lists.
14037
14038 2002-01-26  Richard Henderson  <rth@redhat.com>
14039
14040         * Makefile.in (CRTSTUFF_CFLAGS): New.
14041         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
14042         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
14043         crtstuff.c instead of alpha assembly version.
14044         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
14045         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
14046         not FORCE_{INIT,FINI}_SECTION_ALIGN.
14047         (__do_global_dtors_aux): Mark used.
14048         (frame_dummy, __do_global_ctors_aux): Mark used.
14049         (fini_dummy, init_dummy): Remove.
14050
14051         * config/alpha/crtbegin.asm: Remove file.
14052         * config/alpha/crtend.asm: Remove file.
14053         * config/alpha/t-crtbe: Remove file.
14054         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
14055         (LINK_EH_SPEC): New.
14056
14057         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
14058         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
14059         calling constructors.
14060         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
14061
14062         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
14063         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
14064         CRT_END_INIT_DUMMY hack.
14065         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
14066         FORCE_{INIT,FINI}_SECTION_ALIGN.
14067
14068         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
14069         FORCE_{INIT,FINI}_SECTION_ALIGN.
14070
14071         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
14072         invocation sequence.
14073         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
14074
14075         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
14076         (FORCE_CODE_SECTION_ALIGN): New.
14077
14078 2002-01-26  Richard Henderson  <rth@redhat.com>
14079
14080         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
14081
14082 2002-01-26  Richard Henderson  <rth@redhat.com>
14083
14084         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
14085         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
14086
14087 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14088
14089         * config/h8300/h8300.md: Remove bit extraction patterns that
14090         cannot be triggered.
14091         Restrict each bit extraction pattern to a variant on which the
14092         pattern is tested.
14093
14094 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
14095
14096         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
14097
14098 2002-01-26  Kazu Hirata  <kazu@hxi.com>
14099
14100         * config/h8300/h8300.md: Remove bit test patterns that cannot
14101         be triggered.
14102         Restrict each bit test pattern to a variant on which the
14103         pattern is tested.
14104
14105 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14106
14107         * builtins.c (expand_builtin_strncat): Remove redundant check for
14108         INTEGER_CST.
14109
14110 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14111
14112         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
14113         default setting.
14114         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
14115         existing setting.
14116
14117 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14118
14119         * dbxout.c (dbxout_init): Use assemble_name rather than just
14120         stripping off the first character.
14121         (dbxout_source_file): Likewise.
14122
14123 2002-01-25  DJ Delorie  <dj@redhat.com>
14124
14125         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14126         using rtx_equal_p, not by comparing pointers.
14127
14128 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14129
14130         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14131         for PIC_OFFSET_TABLE_REGNUM.
14132         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14133
14134 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14135
14136         * config.gcc (x86_64-*-freebsd*): New target.
14137         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14138         value.
14139         (i[34567]86-*-freebsd*): Don't include svr4.h.
14140         * config/i386/freebsd64.h: New file.
14141
14142 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14143
14144         * config/alpha/x-vms (version): Make static.
14145
14146         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14147         in previous checkin.
14148
14149         * Makefile.in (install-headers-cp): New target.
14150         * config.gcc (alpha-dec-*vms*): Install headers with
14151         install-headers-cp
14152
14153 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14154
14155         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14156         avoid it's copies.
14157
14158 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14159
14160         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14161         of compare_tree_int.
14162         (expand_builtin_strncat): Likewise.
14163         * c-decl.c (finish_struct): Use tree_low_cst.
14164         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14165         * tree.c (compare_tree_int): Likewise.
14166
14167 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14168
14169         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14170         adjustments even if they are implemented by more than two insns.
14171
14172 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14173
14174         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14175         * df.h (struct ref): Kill B.
14176         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14177
14178         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14179         * flow.c (propagate_one_insn): Use it.
14180         (mark_used_regs): Handle NIL.
14181
14182 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14183
14184         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14185         to help folding.
14186
14187 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14188
14189         * rs6000.md (prefetch): Make address V4SI mode so that the address
14190         is restricted to legitimate form for instruction.
14191
14192 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14193
14194         * doc/install.texi (xtensa-*-elf): New target.
14195         (xtensa-*-linux*): New target.
14196         * doc/contrib.texi: Add myself.
14197
14198 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14199
14200         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14201         purpose register to hold an SImode (or smaller) value.
14202
14203 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14204
14205         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14206         registry only.
14207         * crtstuff.c: Likewise.
14208
14209 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14210
14211         * config/h8300/h8300.md (negation patterns): Tighten
14212         predicates to register_operand.
14213
14214 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14215
14216         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14217         mode, not Pmode.
14218
14219         * builtins.c (expand_builtin_prefetch): Same.
14220
14221 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14222
14223         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14224         modes.
14225
14226 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14227
14228         * config/h8300/h8300.c (print_operand): Remove support for
14229         operand character 'A'.
14230         * config/h8300/h8300.md (three anonymous patterns): Replace
14231         operand character 'A' with either 'T' or 'S'.
14232
14233 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14234
14235         * config/h8300/h8300.c (print_operand): Remove support for
14236         operand character 'U'.
14237
14238 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
14239
14240         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14241
14242 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
14243
14244         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14245         values to be assigned to the stack pointer.
14246
14247 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
14248
14249         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14250         to const_double needs to be done right for big-endian systems.
14251
14252 2002-01-24  Jason Merrill  <jason@redhat.com>
14253
14254         PR c++/2432
14255         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14256         to can_throw_internal.
14257
14258 2002-01-23  Richard Henderson  <rth@redhat.com>
14259
14260         * fold-const.c (fold): Change UINT_MAX test to check vs precision
14261         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
14262
14263 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14264
14265         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14266         (symGOT2reg): Use them, then set as GOT value as unchanging.
14267         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
14268         as a temporary, if possible.
14269         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
14270         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14271
14272 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14273
14274         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14275         accept to accept 0x80 as operands[2].
14276
14277 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14278
14279         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14280
14281 2002-01-23  Richard Henderson  <rth@redhat.com>
14282
14283         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14284
14285 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
14286
14287         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14288         (parmlist_or_identifiers_1): Verify that only a parmlist follows
14289         an attribute.
14290
14291 2002-01-23  Richard Henderson  <rth@redhat.com>
14292
14293         * expr.c (move_by_pieces_1): Extend size before negation.
14294
14295         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14296         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14297         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14298         * config/m68k/t-m68kelf: Likewise.
14299
14300 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
14301
14302         * config/xtensa/elf.h: New file.
14303         * config/xtensa/lib1funcs.asm: New file.
14304         * config/xtensa/lib2funcs.S: New file.
14305         * config/xtensa/linux.h: New file.
14306         * config/xtensa/t-xtensa: New file.
14307         * config/xtensa/xtensa-config.h: New file.
14308         * config/xtensa/xtensa-protos.h: New file.
14309         * config/xtensa/xtensa.c: New file.
14310         * config/xtensa/xtensa.h: New file.
14311         * config/xtensa/xtensa.md: New file.
14312         * config.gcc (xtensa-*-elf*): New target.
14313         (xtensa-*-linux*): New target.
14314         * cse.c (canon_hash): Compare rtx pointers instead of register
14315         numbers.  This is required for the Xtensa port.
14316         * integrate.c (copy_insn_list): Handle case where the static
14317         chain is in memory and the memory address has to be copied to
14318         a register.
14319         * doc/invoke.texi (Option Summary): Add Xtensa options.
14320         (Xtensa Options): New node.
14321         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14322
14323 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14324
14325         * diagnostic.c (internal_error): Do ICE suppression only
14326         when ENABLE_CHECKING is not defined.
14327
14328         * c-typeck.c (require_complete_type): Return error_mark_node
14329         if type is error_mark_node.
14330
14331 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
14332
14333         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14334         -Os and issue a warning.
14335
14336 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14337
14338         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14339         current (lack of) need for host configuration by hand.
14340
14341         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14342         references.  Documentation of some target macros moved from
14343         hostconfig.texi to tm.texi.
14344
14345 2002-01-23  Will Cohen  <wcohen@redhat.com>
14346
14347         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14348         defined.
14349
14350 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14351
14352         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14353         operand[3].
14354
14355 2002-01-23  Jason Merrill  <jason@redhat.com>
14356
14357         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14358
14359         * function.c (assign_parms): Don't put args of inline functions
14360         into registers when not optimizing.
14361
14362 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
14363
14364         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14365         (prologue_use): New pattern.
14366         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14367         preference to gen_rtx_USE.
14368         (thumb_expand_prologue): Use gen_prologue_use in preference to
14369         gen_rtx_USE.
14370         (thumb_expand_epilogue): Use gen_prologue_use in preference to
14371         gen_rtx_USE.
14372
14373 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
14374
14375         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14376
14377 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14378
14379         PR c/3504
14380         * doc/extend.texi: Correct documentation of __alignof__.
14381
14382 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
14383
14384         * params.h: Rename arguments of DEFPARAM so that it will be
14385         recognized as a translation keyword.
14386
14387 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14388
14389         * extend.texi: Document altivec functions.
14390         Fix N-bit adjectives in X86 builtin documentation.
14391
14392 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14393
14394         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14395         auto_inc_dec values.
14396
14397 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
14398
14399         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14400         after backslash.
14401         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14402
14403 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14404
14405         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14406
14407 2002-01-22  Richard Henderson  <rth@redhat.com>
14408
14409         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14410         copy_insn not copy_rtx.
14411
14412 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
14413
14414         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14415         "nonzero" as that might add "1" bits.  Ensure "constop" is
14416         properly sign extened.
14417         (force_to_mode): Tweak for sign extended constop.
14418
14419 2002-01-22  Richard Henderson  <rth@redhat.com>
14420
14421         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14422         for_each_rtx instead of assuming we're already looking at the MEM.
14423         (split_small_symbolic_mem_operand): Likewise.
14424         * config/alpha/alpha.h (PREDICATE_CODES): Update.
14425         * config/alpha/alpha.md (small symbolic memory splitters): Update.
14426
14427 2002-01-22  Richard Henderson  <rth@redhat.com>
14428
14429         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14430         sequence number for the literal.
14431         (divmoddi_internal_er): Likewise.
14432
14433 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14434
14435         PR java/4972
14436         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14437         in LIBICONV variable.
14438         * configure: Regenerated.
14439
14440 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
14441
14442         * dependence.c (build_def_use): Remove array_idx.
14443
14444         * dwarfout.c (last_filename): Remove.
14445         (output_compile_unit_die): Remove last_filename.
14446
14447 2002-01-22  Roger Sayle  <roger@eyesopen.com>
14448             Richard Henderson  <rth@redhat.com>
14449
14450         PR opt/3640
14451         * fold-const.c (fold): Optimize unsigned comparisons against
14452         UINT_MAX (and similar unsigned constants).
14453
14454 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
14455
14456         * Makefile.in (loop.o): Depend on OPTABS_H.
14457         * loop.c (emit_prefetch_instructions): Check the prefetch operand
14458         against the predicate.
14459
14460         PR target/5379
14461         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14462         for the address operand.
14463
14464 2002-01-22  Richard Henderson  <rth@redhat.com>
14465
14466         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14467
14468 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14469
14470         PR other/5450
14471         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14472         preprocessor flags.
14473
14474 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
14475
14476         * config.gcc (x86_64-*-netbsd*): New target.
14477         * config/i386/netbsd64.h: New file.
14478
14479 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14480
14481         * regrename.c (kill_value): Fix typo.
14482
14483 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14484
14485         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14486
14487         * config/rs6000/rs6000.h: Same.
14488
14489         * function.c (instantiate_virtual_regs): Remove
14490         STARTING_FRAME_PHASE.
14491         (assign_stack_local_1): Same.
14492         Calculate frame phase.
14493
14494 2002-01-22  Nick Clifton  <nickc@redhat.com>
14495
14496         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14497         variable declaration to outer scope in order to simplify
14498         future extensions.
14499         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14500         arm_hard_regno_mode_ok.
14501         * config/arm/arm-protos.h: Add a prototype for
14502         arm_hard_regno_mode_ok.
14503         * config/arm/arm.c (soft_df_operand): Remove now redundant
14504         check for DImode values using IP_REGNUM.
14505         (nonimmediate_soft_df_operand): Remove now redundant check for
14506         DImode values using IP_REGNUM.
14507         (arm_hard_regno_mode_ok): New function. New check: make sure
14508         that DImode values are not stored in IP_REGNUM.
14509
14510         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14511         note with a USE.
14512         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14513
14514 2002-01-22  Jason Merrill  <jason@redhat.com>
14515
14516         * c-semantics.c (genrtl_compound_stmt): Only check nesting
14517         consistency if this COMPOUND_STMT is scoped.
14518
14519 2002-01-22  Kazu Hirata  <kazu@hxi.com>
14520
14521         * predict.c: Fix formatting.
14522         * print-tree.c: Likewise.
14523         * protoize.c: Likewise.
14524         * real.h: Likewise.
14525         * rtl.h: Likewise.
14526         * sbitmap.h: Likewise.
14527         * scan.c: Likewise.
14528         * sched-deps.c: Likewise.
14529         * sched-vis.c: Likewise.
14530         * sdbout.c: Likewise.
14531         * sibcall.c: Likewise.
14532         * ssa.c: Likewise.
14533         * ssa-ccp.c: Likewise.
14534         * ssa-dce.c: Likewise.
14535         * stmt.c: Likewise.
14536         * stor-layout.c: Likewise.
14537         * system.h: Likewise.
14538
14539 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14540
14541         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14542         if fits in bounds of base type.
14543
14544         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14545         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14546         (add_bound_info, default): If can't find a context, make a
14547         SAVE_EXPR.
14548         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14549
14550 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
14551
14552         * c-typeck.c (parser_build_binary_op): If result from
14553         build_binary_op is ERROR_MARK just return error_mark_node without
14554         further processing.
14555
14556 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
14557
14558         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14559         Split a.out-specific bits into...
14560         * config/netbsd-aout.h: ...this.
14561         * config/netbsd-elf.h: New file.
14562         * config/alpha/netbsd-elf.h: Remove.
14563         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14564         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14565         (STARTFILE_SPEC): Remove redundant definition.
14566         (ENDFILE_SPEC): Likewise.
14567         (LINK_SPEC): Likewise.
14568         (CPP_SPEC): Likewise.
14569         (ASM_SPEC): Likewise.
14570         (LIB_SPEC): Likewise.
14571         (SWITCH_TAKES_ARG): Likewise.
14572         (TARGET_MEM_FUNCTIONS): Likewise.
14573         (CPP_PREDEFINES): Redefine.
14574         (ASM_FINAL_SPEC): Remove redefinition.
14575         (ASM_COMMENT_START): Redefine.
14576         (FUNCTION_PROFILER): Define.
14577         (TARGET_VERSION): Redefine.
14578         Comment and formatting cleanup.
14579         * config/i386/netbsd.h: Include <netbsd-aout.h>.
14580         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14581         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14582         big- or little-endian.
14583         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14584         * config.gcc (*-*-netbsd*): Add definitions common to all
14585         NetBSD configs.
14586         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14587         gnu_ld definitions.  Add netbsd-elf.h to and remove
14588         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
14589         tmake_file, and don't lose previous tmake_file contents.
14590         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14591         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14592         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
14593         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14594         (mipsel-*-netbsd*): Rename this to...
14595         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
14596         mips/little.h to tm_file for mips*el-*.
14597         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14598         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14599         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14600
14601 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14602
14603         * pa-protos.h (reg_before_reload_operand): New function prototype.
14604         * pa.c (reg_before_reload_operand): New function implementation.
14605         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
14606         contraints to "*m".
14607
14608 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14609
14610         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14611
14612 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14613
14614         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14615         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14616         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14617         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14618         (ENDFILE_SPEC): Undefine.
14619         (STARTFILE_SPEC): Redefine for PA.
14620
14621 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14622
14623         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14624
14625 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
14626
14627         * config.gcc: Add entries to supported PowerPC --with-cpu
14628         types.
14629
14630 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
14631
14632         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14633         true for 64-bit mode only SSE registers in 32-bit mode.
14634
14635 2002-01-21  Kazu Hirata  <kazu@hxi.com>
14636
14637         * unwind-dw2.c: Fix formatting.
14638         * unwind-dw2-fde.c: Likewise.
14639         * unwind-dw2-fde.h: Likewise.
14640         * unwind-pe.h: Likewise.
14641         * varasm.c: Likewise.
14642         * varray.h: Likewise.
14643
14644 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
14645
14646         Remove workaround for register stack overwrite bug in mmix.
14647         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14648         support for TARGET_REG_STACK_FILL_BUG.
14649         * config/mmix/mmix.h: Remove member has_call_without_parameters.
14650         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14651         Delete.
14652         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14653         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14654         -mno-reg-stack-fill-bug-workaround.
14655         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14656         machine member has_call_without_parameters.
14657         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14658         -mreg-stack-fill-bug-workaround and
14659         -mno-reg-stack-fill-bug-workaround.
14660         (MMIX Options): Ditto.
14661
14662 2002-01-21  Kazu Hirata  <kazu@hxi.com>
14663
14664         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14665         as appropriate.
14666         Remove redundant code.
14667
14668 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
14669
14670         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14671         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14672         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14673         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14674         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14675         out target macro definitions and non-target-specific comments
14676         mostly taken from old versions of the manual.
14677
14678 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14679
14680         * config/h8300/h8300.h: Fix comment formatting.
14681         * config/ia64/aix.h: Likewise.
14682         * config/ia64/ia64-protos.h: Likewise.
14683         * config/ia64/ia64.c: Likewise.
14684         * config/ia64/ia64.h: Likewise.
14685         * config/ia64/ia64intrin.h: Likewise.
14686         * config/ia64/linux.h: Likewise.
14687         * config/ia64/unwind-aix.c: Likewise.
14688         * config/ia64/unwind-ia64.c: Likewise.
14689
14690 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14691
14692         * config/h8300/h8300.c: Revise comments about shift code.
14693
14694 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14695
14696         * config/h8300/h8300.c (function_arg): Update a comment.
14697
14698 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14699
14700         * config/h8300/h8300.md: Update the comments at the beginning
14701         of the file.
14702
14703 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14704
14705         * config/i370/i370.c: Fix comment formatting.
14706         * config/i370/i370.h: Likewise.
14707         * config/i370/i370.md: Likewise.
14708         * config/i370/linux.h: Likewise.
14709
14710 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14711
14712         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14713
14714         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14715         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14716         in incomplete case.
14717
14718 2002-01-20  Graham Stott  <grahams@redhat.com>
14719
14720         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14721
14722 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14723
14724         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14725
14726 2002-01-19  Tom Rix  <trix@redhat.com>
14727
14728         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
14729
14730 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
14731
14732         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
14733
14734         * function.c (assign_stack_local_1): Adjust x_frame_offset with
14735         STARTING_FRAME_PHASE.
14736         (STARTING_FRAME_PHASE): New.
14737         (instantiate_virtual_regs): Check saneness of
14738         STARTING_FRAME_PHASE.
14739
14740         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
14741
14742 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
14743
14744         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
14745
14746 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14747
14748         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
14749         be used for bootstrapping GCC 3.0.
14750
14751 2002-01-18  Kazu Hirata  <kazu@hxi.com>
14752
14753         * config/h8300/h8300.md: Fix an insn length.
14754
14755 2002-01-18  Kazu Hirata  <kazu@hxi.com>
14756
14757         * bitmap.h: Fix comment formatting.
14758         * combine.c: Likewise.
14759         * cppfiles.c: Likewise.
14760         * c-pragma.h: Likewise.
14761         * c-typeck.c: Likewise.
14762         * df.c: Likewise.
14763         * dwarf2out.c: Likewise.
14764         * function.c: Likewise.
14765         * gcc.c: Likewise.
14766         * genattrtab.c: Likewise.
14767         * gthr-win32.h: Likewise.
14768         * haifa-sched.c: Likewise.
14769         * predict.c: Likewise.
14770         * rtlanal.c: Likewise.
14771         * rtl.h: Likewise.
14772         * unwind-dw2-fde.h: Likewise.
14773         * unwind-pe.h: Likewise.
14774         * vmsdbgout.c: Likewise.
14775
14776 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14777
14778         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
14779         if type_required and passed decl.
14780
14781 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
14782
14783         * config.gcc (cpu_type): Include altivec.h in powerpc
14784         extra_headers.
14785         Same for darwin.
14786
14787         * config/rs6000/altivec.h: New.
14788
14789 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
14790
14791         * doc/install.texi (*-ibm-aix*): Update assembler and exception
14792         handling information.
14793         * doc/trouble.texi (Interoperation): Add libstdc++ information
14794         for AIX.
14795         (Misunderstandings): Add template instantiation and static template
14796         member information for AIX.
14797
14798 2002-01-17  Jason Merrill  <jason@redhat.com>
14799
14800         * dbxout.c (dbxout_type): Support const and volatile.
14801
14802         * except.c (add_partial_entry): Remove backwards compatibility code.
14803         (end_protect_partials): Likewise.
14804
14805 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
14806
14807         * config/ia64/ia64.md (prologue_use): New.
14808         * config/ia64/ia64.c (ia64_expand_prologue): Use
14809         gen_prologue_use instead of gen_rtx_USE.
14810         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
14811         as CODE_FOR_pred_rel_mutex.
14812         (ia64_sched_reorder2): Likewise.
14813
14814 2002-01-16  Eric Christopher  <echristo@redhat.com>
14815
14816         * config/mips/r3900.h: Reformat.
14817         (SUBTARGET_CPP_SIZE_SPEC): Remove.
14818         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
14819         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
14820         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
14821         * config/mips/t-elf: Remove mips3 multilib.
14822
14823 2002-01-16  H.J. Lu <hjl@gnu.org>
14824
14825         * config/mips/linux.h: Include "mips/abi64.h".
14826
14827 2002-01-16  H.J. Lu <hjl@gnu.org>
14828
14829         * config/mips/t-linux: New.
14830
14831         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
14832
14833         * config/mips/linux.h: Don't include "gofast.h".
14834         (INIT_SUBTARGET_OPTABS): Removed.
14835
14836 2002-01-16  Kazu Hirata  <kazu@hxi.com>
14837
14838         * config/h8300/h8300-protos.h: Replace emit_a_shift with
14839         output_a_shift.
14840         * config/h8300/h8300.c: Likewise.
14841         * config/h8300/h8300.md: Likewise.
14842
14843 2002-01-16  Kazu Hirata  <kazu@hxi.com>
14844
14845         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
14846         spaces after an opcode name.
14847         (pushqi1_h8300hs): Likewise.
14848         (pushhi1_h8300hs): Likewise.
14849
14850 2002-01-16  Kazu Hirata  <kazu@hxi.com>
14851
14852         * doc/extend.texi: Replace "option" with "attribute"
14853         appropriately.
14854
14855 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
14856
14857         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
14858         (and:DI () (const_int -8)).
14859         (split_small_symbolic_mem_operand): Split
14860         (mem (and:DI () (const_int -8)).
14861
14862 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
14863
14864         PR target/5309:
14865         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
14866         same way as TYPE_IMUL.
14867         (ultrasparc_sched_reorder): Likewise.
14868         * config/sparc/sparc.md (type): Add comment to update
14869         ultrasparc_sched_reorder when making changes.
14870
14871 2002-01-16  Kazu Hirata  <kazu@hxi.com>
14872
14873         * doc/invoke.texi: Change the dump file name of block
14874         reordering pass from 28.bbro to 29.bbro.
14875         Mention -dk option.
14876
14877 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
14878
14879         * i386.md (minsf splitter): Fix pasto.
14880
14881 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
14882
14883         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
14884         to frame pointer initialisation instruction.
14885         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
14886         initialisation instruction.
14887         (soft_df_operand): Do not accept the IP register.
14888         (nonimmediate_soft_df_operand): Do not accept the IP register.
14889
14890 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
14891
14892         PR target/5357:
14893         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
14894         MASK_V8 being both set.
14895
14896 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
14897
14898         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
14899         insn for GOT register; add REG_MAYBE_DEAD notes instead.
14900         config/s390/s390.md (call, call_value): Add GOT register to
14901         CALL_INSN_FUNCTION_USAGE where needed.
14902         (call_exp, call_value_exp): New.
14903
14904 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
14905
14906         * config/arm/arm.c: General formatting tidy up.
14907
14908 2002-01-16  Graham Stott  <grahams@redhat.com>
14909
14910         * calls.c (try_to_integrate): Use "(size_t)" intermediate
14911         cast and when casting an integer literal to "rtx" pointer.
14912         (expand_call): Likewise.
14913         * flow.c (try_pre_increment): Likewise.
14914         (find_use_as_address): Likewise.
14915         * integrate.c (expand_iline_function): Likewise.
14916         * regmove.c (try_auto_increment): Likewise.
14917
14918 2002-01-16  Graham Stott  <grahams@redhat.com>
14919
14920         * sched-rgn.c (passed): Use sbitmap_free.
14921         (header): Likewise.
14922         (inner): Likewise.
14923         (in_queue): Likewise.
14924         (in_stack): Likewise.
14925
14926 2002-01-15  Eric Christopher  <echristo@redhat.com>
14927
14928         * flow.c (propagate_one_insn): Change to use fatal_insn.
14929
14930 2002-01-15  Kazu Hirata  <kazu@hxi.com>
14931
14932         * expmed.c (extract_fixed_bit_field): Remove unused code.
14933         * system.h: Poison SLOW_ZERO_EXTEND.
14934         * doc/tm.texi: Remove.
14935         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
14936         * config/arm/arm.h: Likewise.
14937         * config/avr/avr.h: Likewise.
14938         * config/clipper/clipper.h: Likewise.
14939         * config/convex/convex.h: Likewise.
14940         * config/d30v/d30v.h: Likewise.
14941         * config/dsp16xx/dsp16xx.h: Likewise.
14942         * config/elxsi/elxsi.h: Likewise.
14943         * config/fr30/fr30.h: Likewise.
14944         * config/h8300/h8300.h: Likewise.
14945         * config/i370/i370.h: Likewise.
14946         * config/i386/i386.h: Likewise.
14947         * config/m68k/m68k.h: Likewise.
14948         * config/mips/mips.h: Likewise.
14949         * config/ns32k/ns32k.h: Likewise.
14950         * config/pdp11/pdp11.h: Likewise.
14951         * config/pj/pj.h: Likewise.
14952         * config/s390/s390.h: Likewise.
14953         * config/sh/sh.h: Likewise.
14954         * config/stormy16/stormy16.h: Likewise.
14955         * config/v850/v850.h: Likewise.
14956         * config/vax/vax.h: Likewise.
14957         * config/we32k/we32k.h: Likewise.
14958
14959 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
14960
14961         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
14962         (altivec_lvsl): Change constraint to b.
14963         (altivec_lvsr): Same.
14964         (altivec_lvebx): Same.
14965         (altivec_lvehx): Same.
14966         (altivec_lvewx): Same.
14967         (altivec_lvxl): Same.
14968         (altivec_lvx): Same.
14969         (altivec_stvx): Add parallel.
14970         (altivec_stvxl): Same.
14971         (altivec_stvehx): Same.
14972         (altivec_stvebx): Same.
14973         (altivec_stvebx): Same.
14974
14975 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
14976
14977         * config.gcc: Change altivec.h to altivec-defs.h.
14978
14979         * config/rs6000/altivec.h: Delete.
14980
14981         * config/rs6000/altivec-defs.h: Add.
14982
14983 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14984
14985         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
14986         and UMOD modes.
14987
14988         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
14989         less than or equal to eight bytes.
14990
14991         * vax.md (andsi3): Remove constraints and change SET destination
14992         operand type to nonimmediate_operand.
14993         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
14994         when it is a CONST_INT.
14995
14996 2002-01-15  Jason Merrill  <jason@redhat.com>
14997
14998         * c-common.def (FILE_STMT): New code.
14999         * c-common.c (statement_code_p): It's a statement.
15000         * c-common.h (stmt_tree_s): Add x_last_filename.
15001         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
15002         (last_expr_filename): New macro.
15003         * c-semantics.c (begin_stmt_tree): Initialize it.
15004         (add_stmt): If the filename changed, also insert a
15005         FILE_STMT.
15006         (expand_stmt): Handle seeing one.
15007
15008 2002-01-15  Eric Christopher  <echristo@redhat.com>
15009
15010         * flow.c (propagate_one_insn): Add error message and print out
15011         insn for debugging.
15012
15013 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15014
15015         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
15016         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
15017         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
15018         TRAMPOLINE_ALIGNMENT.
15019         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
15020         to be in bits.
15021         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
15022         PCC_BITFIELD_TYPE_MATTERS.
15023         * config/interix.h (STDC_VALUE): Remove.  Use
15024         STDC_0_IN_SYSTEM_HEADERS.
15025         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
15026         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
15027         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
15028
15029 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15030
15031         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
15032         not work on this platform currently.
15033
15034 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
15035
15036         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
15037         readonly_warning in _().
15038
15039 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
15040
15041         * gcc.c (delete_if_ordinary): Backout previous change.
15042
15043 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15044
15045         * config/h8300/h8300.c (print_operand): Remove support for
15046         unused operand characters.
15047
15048         * read-rtl.c: Fix formatting.
15049         * real.c: Likewise.
15050         * recog.c: Likewise.
15051         * regclass.c: Likewise.
15052         * regmove.c: Likewise.
15053         * reg-stack.c: Likewise.
15054         * reload1.c: Likewise.
15055         * rtlanal.c: Likewise.
15056
15057 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15058
15059         * config/i386/i386.c: Fix formatting.
15060
15061 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
15062
15063         * c-typeck.c (process_init_element): Don't save_expr
15064         COMPOUND_LITERAL_EXPR if just its initializer will be used.
15065
15066 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
15067
15068         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
15069         emit optional traceback table if optimize_size or TARGET_ELF.
15070         * config/rs6000/rs6000.md (prefetch): New.
15071
15072 2002-01-15  Andreas Jaeger  <aj@suse.de>
15073
15074         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
15075
15076 2002-01-15  Kazu Hirata  <kazu@hxi.com>
15077
15078         * mips-tfile.c: Fix formatting.
15079
15080 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15081
15082         * unroll.c (final_reg_note_copy): Fix previous commit.
15083
15084 2002-01-14  Kazu Hirata  <kazu@hxi.com>
15085
15086         * config/h8300/h8300-protos.h: Remove the prototype for
15087         eq_operator.
15088         * config/h8300/h8300.c (eq_operator): Remove.
15089
15090 2002-01-14  Richard Henderson  <rth@redhat.com>
15091
15092         * config/i386/i386.md (prefetch): Tidy.
15093         (prefetch_3dnow): Fix locality operand.
15094
15095 2002-01-14  Richard Henderson  <rth@redhat.com>
15096
15097         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
15098         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
15099
15100 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
15101
15102         * reload1.c (reload_combine): Pass reg_sum replacement through
15103         copy_rtx in loop performing multiple changes.
15104
15105 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
15106
15107         * except.c (remove_unreachable_regions): New.
15108         (free_eh_status): Clear exception_handler_labels.
15109         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
15110         (find_exception_handler_labels): Don't add the same label more than
15111         once.
15112         (remove_exception_handler_label): Don't die if
15113         find_exception_handler_labels hasn't been called for the current
15114         function yet.
15115
15116 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15117
15118         * toplev.c (rest_of_compilation): Rebuild jump labels after
15119         gcse.
15120
15121 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15122
15123         * doc/extend.texi: Move documentation of X86 built-in functions
15124         here.
15125         * doc/invoke.texi: From here.
15126         * doc/sourcebuild.texi: Document location of documentation for
15127         machine built-in functions.
15128
15129 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15130
15131         * cppfiles.c (TEST_THRESHOLD): New macro.
15132         (SHOULD_MMAP): Ditto.
15133         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15134         be used.
15135
15136 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15137
15138         * unroll.c (final_reg_note_copy): Properly handle
15139         REG_LABEL
15140         (unroll_loops): Fix LOOP_CONDITION heuristics.
15141
15142 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15143
15144         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15145         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15146
15147 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15148
15149         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15150         threaded loop.
15151
15152 2002-01-14  Tom Rix  <trix@redhat.com>
15153
15154         * config/rs6000/rs6000.md: Fix typo with sradi.
15155
15156 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15157
15158         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15159         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15160         (clrstrdi, clrstrsi): Adapt callers.
15161
15162         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15163
15164         (movti splitter): Never use register 0 as base register.
15165
15166 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15167
15168         * combine.c (simplify_shift_const): Always generate new rtx
15169         for shift expression instead of reusing given expression.
15170
15171 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15172
15173         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15174         alpha_legitimize_address unless mode is Pmode.
15175
15176 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15177
15178         * doc/md.texi (Modifiers): Document the '*' constraint for the
15179         user.
15180
15181         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15182         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15183         for xstormy16 too.
15184
15185 2002-01-13  Richard Henderson  <rth@redhat.com>
15186
15187         * reload.c (find_reloads): Use a hard reg destination as reload reg
15188         for an input reload of the source.
15189
15190 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15191
15192         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15193         more generic.
15194
15195 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15196
15197         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15198         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15199
15200         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15201
15202 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15203
15204         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15205
15206 2002-01-12  Tom Rix  <trix@redhat.com>
15207
15208         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15209         TARGET_POWERPC64.
15210
15211 2002-01-12  Richard Henderson  <rth@redhat.com>
15212
15213         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15214
15215         * doc/invoke.texi: Update Alpha options.
15216
15217         * doc/invoke.texi: Update i386 built-in function lists.
15218
15219 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15220
15221         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15222         referencing outside.
15223
15224 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15225
15226         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15227         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15228         offsets, and change line folding.
15229         * optabs.c (expand_binop): Remove warnings.
15230         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15231
15232 2002-01-12  Graham Stott <grahams@redhat.com>
15233
15234         * attribs.c (handle_deprecated_attribute): constify WHAT.
15235         * diagnostic.c (warn_deprecated_use): Add braces, fixes
15236         dangling else warning and constify WHAT.
15237         * except.h (struct function, struct inline_remap): Move
15238         struct tag forward defs before all prototypes.
15239         (duplicate_eh_regions): Whitespace.
15240
15241 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
15242
15243         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15244         MODE_BASE_REG_CLASS.
15245         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15246
15247 2002-01-12  Richard Henderson  <rth@redhat.com>
15248
15249         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15250         (ix86_expand_vector_move): New.
15251         (bdesc_2arg): Remove andps, andnps, orps, xorps.
15252         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
15253         Remove old prefetch builtins.  Special case the logicals removed above.
15254         (ix86_expand_builtin): Likewise.
15255         (safe_vector_operand): Use V4SFmode, not TImode.
15256         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
15257         (ix86_expand_timode_binop_builtin): New.
15258         * config/i386/i386-protos.h: Update.
15259         * config/i386/i386.h (enum ix86_builtins): Update.
15260         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15261         Use ix86_expand_vector_move in vector move expanders.
15262         (movti_internal, movti_rex64): Add xorps alternative.
15263         (sse_clrv4sf): Rename and adjust from sse_clrti.
15264         (prefetch): Don't work so hard.
15265         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15266         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15267         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15268
15269 2002-01-11  Richard Henderson  <rth@redhat.com>
15270
15271         * config/i386/mmintrin.h: New file.
15272         * config/i386/xmmintrin.h: New file.
15273         * config.gcc (i?86-*-*): Add extra_headers.
15274         * simplify-rtx.c (simplify_unary_operation): Handle saturating
15275         truncation codes.
15276         (simplify_binary_operation): Handle saturating arithmetic codes.
15277         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15278         not the lowpart subreg.
15279         (ix86_expand_builtin): Return a TImode dummy register instead of 0
15280         on error.
15281         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15282
15283 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15284
15285         * conflict.c (conflict_graph_compute): Free regsets when finished.
15286         * ssa.c (compute_coalesced_reg_partition): Likewise.
15287
15288 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15289
15290         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15291         every where we allocate a register.
15292
15293 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15294
15295         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15296         * lcm.c (compute_earliest, compute_farthest): Likewise.
15297
15298 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15299
15300         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15301
15302 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15303
15304         * doc/rtl.texi (Insns): Fix 2 typos.
15305
15306 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
15307
15308         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
15309         options.  Use @table @gcctabopt for MMIX options.  Add index
15310         entries for MMIX options.  Start new paragraph with first
15311         heading of the machine-dependent options.
15312
15313 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15314
15315         PR other/5299
15316         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15317         * combine.c (force_to_mode): Same.
15318         * reload1.c (clear_reload_reg_in_use): Same.
15319
15320 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
15321
15322         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15323         and 'subtargets'.
15324
15325 2002-01-11  Andreas Jaeger  <aj@suse.de>,
15326             Brad Lucier <lucier@math.purdue.edu>
15327
15328         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15329         mcpu.
15330
15331 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
15332
15333         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15334         Protect with IN_LIBGCC.
15335         (LINK_EH_SPEC): Add required trailing space.
15336
15337 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15338
15339         * c-tree.h: Move function declarations so that they are listed
15340         under the filename which contains them.
15341         (check_identifier, finish_decl_top_level,
15342         lookup_name_current_level_global, shadow_record_fields): Remove.
15343
15344 2002-01-11  Andreas Jaeger  <aj@suse.de>
15345
15346         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15347         march.
15348
15349 2002-01-10  Richard Henderson  <rth@redhat.com>
15350
15351         * config/alpha/alpha.c (print_operand): Add 'J'.
15352         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15353         new operand with the sequence number for the lituse.  When splitting
15354         the insns, use gen_movdi_er_high_g and generate a sequence number.
15355         (gen_movdi_er_high_g): Print the sequence number if non-zero.
15356
15357 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
15358
15359         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15360         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15361         stvxl.
15362         (altivec_expand_builtin): Same.
15363         (altivec_expand_stv_builtin): New.
15364
15365         * config/rs6000/rs6000.h (rs6000_builtins): Same.
15366
15367         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15368         ("altivec_lvehx"): New.
15369         ("altivec_lvewx"): New.
15370         ("altivec_lvxl"): New.
15371         ("altivec_lvx"): New.
15372         ("altivec_stvx"): New.
15373         ("altivec_stvebx"): New.
15374         ("altivec_stvehx"): New.
15375         ("altivec_stvewx"): New.
15376         ("altivec_stvxl"): New.
15377
15378 2002-01-10  Richard Henderson  <rth@redhat.com>
15379
15380         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15381         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
15382         care not to delete instructions twice.
15383
15384 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15385
15386         * toplev.c: Don't declare environ (it's not used anywhere).
15387         * configure.in: Don't check for declaration of environ.
15388         * config/i386/xm-mingw32.h: Don't #define environ.
15389         * config.in, configure: Regenerate.
15390
15391 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15392
15393         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15394         * configure: Regenerate.
15395
15396         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15397         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15398         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15399         alpha/xm-vms.h.
15400         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15401         LIMITS_H_TEST here, not in m68k/x-next.
15402         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15403         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15404
15405         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15406         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15407         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
15408
15409         * config/i386/x-djgpp: Renamed i386/t-djgpp.
15410         * config/m88k/x-dolph: Renamed m88k/t-dolph.
15411         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15412         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
15413         replacement of quadlib.asm with quadlib.c.
15414
15415         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15416         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15417         config/rs6000/xm-beos.h: Delete file.
15418
15419         * config.gcc: Update to match above changes.
15420
15421 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15422
15423         * config/h8300/h8300.h: Fix comment typos.
15424         * config/h8300/h8300.md: Likewise.
15425         * config/h8300/lib1funcs.asm: Likewise.
15426
15427 2002-01-10  Dale Johannesen  <dalej@apple.com>
15428
15429         PR optimization/5269
15430         * unroll.c (precondition_loop_p): Make *increment be the correct
15431         sign when n_iterations known, to avoid confusing caller.
15432
15433 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15434
15435         * doc/extend.texi (deprecated): Fix a typo.
15436
15437 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15438
15439         * basic-block.h (update_br_prob_note): Declare.
15440         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15441         (try_forward_edges): Care negative frequencies and update note.
15442         (outgoing_edges_match): Tweek conditional merging heuristics.
15443         (try_crossjump_to_edge): use update_br_prob_note.
15444         * cfglayout.c (fixup_reorder_chain): Likewise.
15445         * cfrtl.c (update_br_prob_note): New.
15446         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15447
15448         * i386.c (ix86_decompose_address): Return -1 if address contains
15449         shift.
15450         (legitimate_address_p): Require ix86_decompose_address to return 1.
15451
15452         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15453         (cprop_insn): Likewise.
15454
15455 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15456
15457         * toplev.c: Fix formatting.
15458         * tree.c: Likewise.
15459         * tree-dump.c: Likewise.
15460         * unroll.c: Likewise.
15461         * unwind-dw2.c: Likewise.
15462         * unwind-dw2-fde.c: Likewise.
15463         * unwind-dw2-fde-glibc.c: Likewise.
15464         * unwind-sjlj.c: Likewise.
15465
15466 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15467
15468         * doc/invoke.texi: Document PDP-11 options.
15469
15470 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15471
15472         * config/h8300/h8300.h: Fix formatting.
15473
15474 2002-01-10  Ira Ruben   <ira@apple.com>
15475
15476         Add __attribute__ ((deprecated)).
15477         * extend.texi: Document __attribute__ ((deprecated)).
15478         * invoke.texi: Document -Wno-deprecated-declarations.
15479         * testsuite/g++.dg/other/deprecated.C: New C++ test.
15480         * testsuite/gcc.dg/deprecated.c: New C test.
15481         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15482         (c_common_attribute_table): Add "deprecated" entry.
15483         (handle_deprecated_attribute): New function.
15484         * c-decl.c (deprecated_states): New enum.
15485         deprecated_state: State of "deprecated" handling.
15486         (start_decl): Set deprecated_state based on attributes.
15487         (grokdeclarator): Test for deprecated uses, propagate attribute.
15488         * c-typeck.c (build_component_ref): Test for deprecated fields.
15489         (build_external_ref): Test for deprecated primaries.
15490         * diagnostic.c (warn_deprecated_use) New function to issue
15491         warnings about __attribute__ ((depricated)) references.
15492         * flags.h (warn_deprecated_decl): Extern declared for
15493         -W[no-]deprecated-declarations option.
15494         * print-tree.c (print_node): Show deprecated flag status.
15495         * toplev.c (warn_deprecated_decl): Defined.
15496         (W_options): Added "deprecated-declaration".
15497         * toplev.h (warn_deprecated_use): Extern declared.
15498         * tree.h (struct tree_common): Define deprecated_flag.
15499         (TREE_DEPRECATED): New macro to access flag.
15500         * cp/call.c (build_call): Test for deprecated calls.
15501         * cp/class.c (add_implicitly_declared_members): Set global
15502         flag to tell grokdeclarator to not issue deprecated warnings.
15503         * cp/cp-tree.h: Add extern for adding_implicit_members.
15504         * cp/decl.c (deprecated_states): New enum.
15505         (start_decl): Set deprecated_state based on attributes.
15506         (grokdeclarator): Test for deprecated uses, propagate attribute.
15507         * cp/lex.c (do_identifier): Test for deprecated primaries.
15508         * cp/typeck.c (build_component_ref): Test for deprecated fields.
15509
15510 2002-01-10  Ira Ruben   <ira@apple.com>
15511
15512         Fix to assign attributes to inline member functions.
15513         * cp/decl.c (start_method): Handle attrlist.
15514
15515 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15516
15517         * combine.c (expand_field_assignment): Use subreg_lsb().
15518
15519 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
15520
15521         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15522         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15523         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15524         Recurse for any operand of AND as long as constant is non-zero.
15525
15526 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15527
15528         * config/h8300/h8300.md: Remove constraints from expanders.
15529
15530 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15531
15532         * varasm.c: Fix formatting.
15533         * varray.c: Likewise.
15534         * vmsdbgout.c: Likewise.
15535         * xcoffout.c: Likewise.
15536
15537 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
15538
15539         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15540         update edge probabilities to match.
15541
15542 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15543
15544         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15545         dependencies.
15546         * doc/languages.texi, doc/sourcebuild.texi: New files.
15547         * doc/configfiles.texi: Make a subsubsection.  Update.
15548         * doc/configterms.texi: Add @node.  Remove warning that this isn't
15549         instructions for building GCC.
15550         * doc/makefile.texi: Make a subsection.
15551         * doc/gccint.texi: Update.
15552
15553 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
15554
15555         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15556
15557 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15558
15559         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15560
15561 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
15562
15563         * optabs.c (expand_fix): Look for wider integer modes first.
15564
15565         * i386.md (mov?f): Avoid the fake const double trick for medium
15566         memory model.
15567         (min?f*/max?f*): Prohibit memory operands for i387 variant.
15568         (fop_df_4): Disable for SSE compilation.
15569
15570 2002-01-10  Graham Stott  <grahams@redhat.com>
15571
15572         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15573         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15574
15575 2002-01-10  Richard Henderson  <rth@redhat.com>
15576
15577         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15578
15579 2002-01-10  Richard Henderson  <rth@redhat.com>
15580
15581         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15582         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
15583
15584 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15585
15586         * combine.c (can_combine_p): Fix a comment typo.
15587
15588 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
15589
15590         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15591         empty list correctly.  Change loop index $t to $f for
15592         consistency with rest of Makefile.
15593
15594 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
15595
15596         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15597         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15598
15599         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15600         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15601         (altivec_init_builtins): Same.
15602         (altivec_expand_unop_builtin): Return NULL_RTX on error.
15603         (altivec_expand_binop_builtin): Same.
15604         (altivec_expand_ternop_builtin): Same.
15605         (bdesc_dst): New.
15606
15607         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15608         ("altivec_vctuxs"): Fix typo.
15609         ("altivec_vnmsubfp"): Same.
15610         ("altivec_dssall"): New.
15611         ("altivec_mfvscr"): New.
15612         ("altivec_dss"): New.
15613         ("altivec_lvsl"): New.
15614         ("altivec_lvsr"): New.
15615         ("altivec_dstt"): New.
15616         ("altivec_dstst"): New.
15617         ("altivec_dststt"): New.
15618         ("altivec_dst"): New.
15619
15620         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15621         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15622
15623 2002-01-09  Richard Henderson  <rth@redhat.com>
15624
15625         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15626
15627 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
15628
15629         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15630         function.
15631         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15632         prototype.
15633         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15634
15635 2002-01-09  Kazu Hirata  <kazu@hxi.com>
15636
15637         * read-rtl.c: Fix formatting.
15638         * real.c: Likewise.
15639         * regclass.c: Likewise.
15640         * regrename.c: Likewise.
15641         * reg-stack.c: Likewise.
15642         * reload1.c: Likewise.
15643         * reload.c: Likewise.
15644         * rtl.c: Likewise.
15645
15646 2002-01-09  Kazu Hirata  <kazu@hxi.com>
15647
15648         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15649         to extract items in the expr_list chain.
15650
15651 2002-01-09  Richard Henderson  <rth@redhat.com>
15652
15653         * config/vax/vax.c (vax_rtx_cost): Never abort.
15654
15655         * config/vax/vax.h (REAL_ARITHMETIC): Define.
15656
15657 2002-01-09  Jan Hubicka  <jh@suse.cz>
15658
15659         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15660
15661 2002-01-09  Richard Henderson  <rth@redhat.com>
15662
15663         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15664         Unify code from various alternatives.
15665
15666 2002-01-09  Richard Henderson  <rth@redhat.com>
15667
15668         * regrename.c (copy_value): Ignore the copy if the source register
15669         is present in the value chain with a narrower mode.
15670
15671 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
15672
15673         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15674         for the c4x target. Also improve layout.
15675
15676 2002-01-09  Richard Henderson  <rth@redhat.com>
15677
15678         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15679         * config/m32r/m32r.md (and ior xor splitters): Swap operands
15680         to match insn patterns.
15681
15682 2002-01-09  Richard Henderson  <rth@redhat.com>
15683
15684         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15685         (copyprop_hardreg_forward_1): Likewise.
15686
15687 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15688
15689         * pa.md (decrement_and_branch_until_zero): Change predicate for
15690         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15691
15692 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
15693
15694         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15695         gets undefined. For Darwin.
15696
15697 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15698
15699         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15700
15701 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15702
15703         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15704
15705 2002-01-08  Richard Henderson  <rth@redhat.com>
15706
15707         * regrename.c (copy_value): Ignore overlapping copies.
15708
15709 2002-01-08  Richard Henderson  <rth@redhat.com>
15710
15711         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15712         as needed to avoid shared structure.
15713
15714 2002-01-08  Kazu Hirata  <kazu@hxi.com>
15715
15716         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15717         H8/300H and H8/S.
15718
15719 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15720
15721         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15722         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15723         documentation of obsolete macros.
15724         * system.h: Poison these macros.
15725         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15726         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
15727         config/c4x/c4x.h, config/clipper/clipper.h,
15728         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
15729         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
15730         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
15731         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
15732         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15733         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
15734         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15735         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
15736         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
15737         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15738         config/sparc/sparc.h, config/stormy16/stormy16.h,
15739         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
15740         definitions and commented out definitions of obsolete macros.
15741         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
15742         of MAX_INT_TYPE_SIZE.
15743
15744 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
15745
15746         * config/s390/s390.c (s390_preferred_reload_class): Never
15747         return ADDR_REGS if it isn't a subset of the given class.
15748         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
15749         FP_REGS, but all superclasses as well.
15750
15751         * config/s390/s390.c (s390_function_profiler): Fix thinko.
15752
15753         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
15754         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
15755         must not be a const_int.
15756
15757 2002-01-08  Richard Henderson  <rth@redhat.com>
15758
15759         * Makefile.in (toplev.o): Depend on options.h.
15760         (gcc.o): Depend on specs.h.
15761
15762 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
15763
15764         * expr.c (store_expr): Convert VOIDmode constants back to target's
15765         mode.
15766
15767 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15768
15769         * doc/invoke.texi: Markup gcc as @command.  Refer to
15770         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
15771         of http://gcc.gnu.org/thanks.html.
15772
15773 2002-01-08  Dale Johannesen  <dalej@apple.com>
15774
15775         * config/rs6000/rs6000.md: Add missing int register
15776         target case to movdf_low.
15777
15778 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
15779
15780         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
15781         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
15782         (cppinit.o): Depend on except.h.
15783         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
15784         s-specs): New rules.
15785
15786         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
15787         Don't create specs.h/options.h/gencheck.h here.  Remove
15788         unnecessary variable settings from last argument of AC_OUTPUT.
15789         * config.in, configure: Regenerate.
15790         * intl.c: Hardcode package name as "gcc".
15791
15792         * cppinit.c: Include except.h.
15793         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
15794         appropriate.
15795         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
15796         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
15797         (!)USING_SJLJ_EXCEPTIONS.
15798         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
15799
15800 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15801
15802         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
15803         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
15804         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
15805         documentation of obsolete macros.
15806         * system.h: Poison these macros.
15807         * config/d30v/d30v.h, config/ns32k/encore.h,
15808         config/stormy16/stormy16.h: Remove definitions and commented out
15809         definitions of obsolete macros.
15810
15811 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
15812
15813         * objc/objc-act.c (handle_class_ref): Mark the declaration of
15814         %sobjc_class_ref_%s as used - to prevent unwanted compiler
15815         warnings.
15816
15817 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
15818
15819         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
15820         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
15821         to insn adjusting stack/frame pointer.
15822         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
15823         accept operands that cause the insn to be non-splittable.
15824
15825 2002-01-08  Graham Stott  <grahams@redhat.com>
15826
15827         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
15828         (C_TYPE_FIELDS_VOLATILE): Likewise.
15829         (C_TYPE_BEING_DEFINED): Likewise.
15830         (C_IS_RESERVED_WORD): Likewise.
15831         (C_TYPE_VARIABLE_SIZE): Likewise.
15832         (C_DECL_VARIABLE_SIZE): Likewise.
15833         (C_MISSING_PROTOTYPE_WARNED): Likewise.
15834         (C_SET_EXP_ORIGINAL_CODE): Likewise.
15835         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
15836         parenthesis.
15837         (C_DECL_ANTICIPATED): Likewise.
15838         (c_build_type_variant): Add parenthesis.
15839
15840 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15841
15842         * gcc.c (option_map): Remove --version.
15843         (process_command): Handle -fversion following the GNU Coding
15844         Standards.  Partially addresses PR other/704.
15845
15846 2002-01-08  Graham Stott  <grahams@redhat.com>
15847
15848         * combine.c (combine_instructions): Fix typo.
15849
15850 2002-01-08  Graham Stott  <grahams@redhat.com>
15851
15852         * debug.h: Use "tree" and "rtx" throughout.
15853
15854         * debug.c: Likewise.
15855
15856 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
15857
15858         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
15859         constant pool, use the pool's version of the symbol instead.
15860
15861 2002-01-07  Richard Henderson  <rth@redhat.com>
15862
15863         * regrename.c (find_oldest_value_reg): Ignore the value chain if
15864         the original register was copied in a mode with a fewer number of
15865         hard registers than the desired mode.
15866         (copyprop_hardreg_forward_1): Likewise.
15867         (debug_value_data): Fix loop test.
15868         * toplev.c (parse_options_and_default_flags): Reenable
15869         -fcprop-registers at -O1.
15870
15871 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
15872
15873         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
15874         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
15875
15876         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
15877         predicates.
15878
15879         * config/rs6000/rs6000.md: Add altivec predicate patterns.
15880
15881 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15882
15883         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
15884         (pa_output_function_prologue): Output local label at the beginning of
15885         the prologue when profiling.
15886         (hppa_profile_hook): Use the local label rather than the function label.
15887         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
15888
15889 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
15890
15891         * config/rs6000/rs6000.c (print_operand): Remove extra space.
15892         (altivec_expand_unop_builtin): Fix thinko.
15893         (altivec_expand_binop_builtin): Same.
15894         (altivec_expand_ternop_builtin): Same.
15895         (altivec_expand_builtin): Same.
15896
15897 2002-01-07  Richard Henderson  <rth@redhat.com>
15898
15899         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
15900
15901 2002-01-07  Jason Merrill  <jason@redhat.com>
15902
15903         * unwind-dw2.c (execute_cfa_program): Use < again.
15904
15905 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
15906
15907         * predict.c (combine_predictions_for_insn): Avoid division by zero.
15908
15909 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
15910
15911         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
15912         Don't allow -1 - x -> ~x simplifications in the first pass.
15913
15914 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
15915
15916         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
15917         arguments.
15918         (altivec_expand_binop_builtin): Same.
15919         (altivec_expand_unop_builtin): Same.
15920         (print_operand): Fix typo.
15921         (bdesc_1arg): Add vupk* variants.
15922
15923         * rs6000.h (rs6000_builtins): Add vupk* enums.
15924
15925         * rs6000.md: Add altivec_vupk* variants.
15926
15927 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
15928
15929         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
15930         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
15931         and last update dates.
15932
15933 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
15934
15935         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
15936
15937 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15938
15939         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
15940         * config/avr/avr.h (CPP_SPEC): Likewise.
15941         (LINK_SPEC): Likewise.
15942         (CRT_BINUTILS_SPECS): Likewise.
15943         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15944         * doc/invoke.texi (AVR Options): Document them.
15945
15946 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15947
15948         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
15949         LABEL_NUSES.
15950
15951 2002-01-07  Graham Stott  <grahams@redhat.com>
15952
15953         * config/i386/i386.h: Update copyright date.
15954         (HALF_PIC_PTR): Add parenthesis.
15955         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
15956         (CONSTANT_ALIGNMENT): Add parenthesis.
15957         (DATA_ALIGNMENT): Likewise.
15958         (LOCAL_ALIGNMENT): Likewise.
15959         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
15960         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
15961         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
15962         (HARD_REGNO_NREGS): Add paranethesis.
15963         (VALID_SSE_REG_MODE): Whitespace.
15964         (VALID_MMX_REG_MODE): Whitespace.
15965         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
15966         (ix86_hard_regno_mode_ok): Add parenthesis.
15967         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
15968         (RETURN_IN_MEMORY): Whitespace.
15969         (N_REG_CLASSES): Add parenthesis.
15970         (INTEGER_CLASS_P): Add parenthesis and wrap.
15971         (FLOAT_CLASS_P): Likewise.
15972         (SSE_CLASS_P): Likewise.
15973         (MMX_CLASS_P): Likewise.
15974         (MAYBE_INTEGER_CLASS_P): Likewise.
15975         (MAYBE_FLOAT_CLASS_P): Likewise.
15976         (MAYBE_SSE_CLASS_P): Likewise.
15977         (MAYBE_MMX_CLASS_P): Likewise.
15978         (Q_CLASS_P): Likewise.
15979         (GENERAL_REGNO_P): Uppercase macro parameter.
15980         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
15981         (FP_REGNO_P): Likewise.
15982         (ANY_FP_REGNO_P): Uppercase macro parameter.
15983         (SSE_REGNO_P): Likewise.
15984         (SSE_REGNO): Likewise.
15985         (SSE_REG_P): Likewise.
15986         (SSE_FLOAT_MODE_P): Likewise.
15987         (MMX_REGNO_P): Likewise.
15988         (MMX_REG_P):Likewise.
15989         (STACK_REG_P): Likewise.
15990         (NON_STACK_REG_P): Likewise.
15991         (STACK_TOP_P): Likewise.
15992         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
15993         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
15994         (SECONDARY_MEMORY_NEEDED): Likewise.
15995         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
15996         (MD_ASM_CLOBBERS): Whitespace and wrap.
15997         (MUST_PASS_IN_STACK): Whitespace and wrap.
15998         (RETURN_POPS_ARGS): Add parenthesis.
15999         (INIT_CUMULATIVE_ARGS): Likewise.
16000         (FUNCTION_ARG): Likewise.
16001         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
16002         (SETUP_INCOMING_VARARGS): Likewise.
16003         (BUILD_VA_LIST_TYPE):  Add parenthesis.
16004         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
16005         parenthsis.
16006         (EXPAND_BUILTIN_VA_ARG): Likewise.
16007         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
16008         (INITIALIZE_TRAMPOLINE): Add parenthesis.
16009         (INITIAL_ELIMINATION_OFFSET): Likewise.
16010         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
16011         (REGNO_OK_FOR_BASE_P): Likewise.
16012         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
16013         (REGNO_OK_FOR_DIREG_P): Likewise.
16014         (REG_OK_FOR_INDEX_P): Whitespace.
16015         (REG_OK_FOR_BASE_P): Whitespace.
16016         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
16017         parenthesis.
16018         (FIND_BASE_TERM): Fix typo.
16019         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
16020         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
16021         (SYMBOLIC_CONST; Whitespace.
16022         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
16023         (ENCODE_SECTION_INFO): Whitespace.
16024         (FINALIZE_PIC): Remove do { ... } while (0).
16025         (PROMOTE_MODE): Wrap in do { ... } while (0).
16026         (CONST_COSTS): Whitespace.
16027         (RTX_COSTS): Add paramethesis, whitespace and wrap.
16028         (REGISTER_MOVE_COST): Add parenthesis.
16029         (MEMORY_MOVE_COST): Likewise.
16030         (EXTRA_CC_MODES): Whitespace.
16031         (SELECT_CC_MODE): Add parenthesis and whitespace.
16032         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
16033         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
16034         (ASM_OUTPUT_LABEL): Add paramethesis.
16035         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
16036         (ASM_OUTPUT_REG_POP): Likewise.
16037         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
16038         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
16039
16040         * config/i386/i386.c: Update copyright.
16041         (CHECK_STACK_LIMIT): Add parenthesis.
16042         (AT_BP): Uppercase macro parameter.
16043         (x86_64_int_parameter_registers): Constify.
16044         (x86_64_int_return_registers): Likewise.
16045         (ix86_compare_op0): Use rtx.
16046         (construct_container): Constify INTREG parameter.
16047         (function_arg): Use rtx.
16048
16049         * diagnostic.h: Update copyright date.
16050         (output_buffer_state): Add parenthesis.
16051         (output_buffer_format_args): Likewise.
16052
16053         * combine.c (combine_instructions): Replace XEXP (links, 0)
16054         with link.
16055
16056 2002-01-06  H.J. Lu <hjl@gnu.org>
16057
16058         * cfgcleanup.c (thread_jump): Fix 2 typos.
16059
16060 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
16061
16062         * config.gcc: Add support for --enable-altivec.
16063
16064 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16065
16066         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
16067
16068 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
16069
16070         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
16071         __objc_class_name_*.
16072
16073 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16074
16075         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
16076
16077 2002-01-06  Richard Henderson  <rth@redhat.com>
16078
16079         * reorg.c (emit_delay_sequence): Remove death notes, not merely
16080         nop them out.  Increment label reference count for REG_LABEL.
16081         (fill_slots_from_thread): Frob label reference count around
16082         delete_related_insns.
16083
16084 2002-01-05  Richard Henderson  <rth@redhat.com>
16085
16086         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
16087         jump threading.
16088
16089 2002-01-05  Richard Henderson  <rth@redhat.com>
16090
16091         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
16092         * integrate.c (output_inline_function): Likewise.
16093         * toplev.c (rest_of_compilation): Do it here instead.  Move call
16094         to remove_unnecessary_notes after emitting abstract instance.
16095         Force an emitted nested function to have its parent emited as well.
16096         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
16097         for null.
16098         (rtl_for_decl_location): Do not look at reload data structures
16099         before reload has run.
16100
16101 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16102
16103         * cse.c: Fix formatting.
16104         * dwarf2asm.c: Likewise.
16105         * dwarf2out.c: Likewise.
16106         * explow.c: Likewise.
16107         * expmed.c: Likewise.
16108         * function.c: Likewise.
16109         * gcov.c: Likewise.
16110         * gencheck.c: Likewise.
16111         * genrecog.c: Likewise.
16112         * ggc-common.c: Likewise.
16113         * ggc-page.c: Likewise.
16114         * global.c: Likewise.
16115
16116 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16117
16118         * combine.c: Fix formatting.
16119
16120 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16121
16122         PR middle-end/1557
16123         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16124
16125 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16126
16127         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16128         as 1 for __powerpc64__ as well.
16129
16130         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16131
16132         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16133         return it.
16134
16135 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16136
16137         * lcm.c: Revert change, due to performance regression it causes on
16138         SPEC because it's slightly more conservative (sigh, I hate
16139         edge-based LCM).
16140
16141 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16142
16143         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16144
16145 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16146
16147         * doc/cppinternals.texi: Update.
16148
16149 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16150
16151         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16152         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16153         negatives.
16154         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16155         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16156         kludge for pre-october-14th mmix versions to handle new-found bug
16157         with PUSHJ/PUSHGO and the register stack.
16158         * config/mmix/mmix.h (struct machine_function): Rename member
16159         has_call_value_without_parameters to has_call_without_parameters.
16160         All referers changed.
16161         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16162         TARGET_MASK_BRANCH_PREDICT): New macros.
16163         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16164         -mno-reg-stack-fill-bug-workaround.
16165         * config/mmix/mmix.md ("call"): Set struct machine member
16166         has_call_without_parameters.
16167
16168 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16169
16170         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16171
16172 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16173
16174         * cfgcleanup.c: Include tm_p.h
16175         (mark_effect): Fix handling of hard register; fix handling of SET
16176
16177 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16178
16179         * config/h8300/h8300.md (anonymous patterns): Check that
16180         operands are registers before using REGNO on them.
16181
16182 2002-01-03  Roland McGrath  <roland@frob.com>
16183
16184         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16185
16186 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16187
16188         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16189         * c-common.h (genrtl_expr_stmt_value): Likewise.
16190         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16191         (expand_expr_stmt_value): Add maybe_last argument.
16192         Don't warn about statement with no effect if it is the last statement
16193         in expression statement.
16194         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16195         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16196         expand_expr_stmt_value.
16197         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16198         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16199         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16200         as maybe_last to expand_expr_stmt_value.
16201
16202 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16203
16204         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16205         be passed in, do not build it.
16206         (c_begin_if_stmt): New function.
16207         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16208         * c-common.h (c_expand_start_cond): Update prototype.
16209         (c_begin_if_stmt): Prototype new function.
16210         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16211         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16212         c_begin_while_stmt and c_finish_while_stmt_cond.
16213
16214 2002-01-04  William Cohen  <wcohen@redhat.com>
16215
16216         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16217         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16218         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16219         * config/pa/som.h (ASM_FILE_START): Likewise.
16220
16221 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16222
16223         * lcm.c: Include df.h.
16224         Add available_transfer_function prototype.
16225         (compute_available): Rework to use iterative dataflow framework.
16226         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16227         with bb_info in df.h
16228         (available_transfer_function): New function.
16229
16230         * Makefile.in (lcm.o): add df.h to dependencies.
16231
16232 2002-01-04  Richard Henderson  <rth@redhat.com>
16233
16234         * config/alpha/alpha.c (some_operand): Accept HIGH.
16235         (input_operand): Likewise; accept simple references to globals.
16236         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16237         (alpha_const_double_ok_for_letter_p): Likewise.
16238         (alpha_extra_constraint): Likewise.
16239         (alpha_preferred_reload_class): Likewise.  Do not force
16240         symbolic constants to memory.
16241         (alpha_legitimate_address_p): Accept simple references
16242         to small_symbolic_operand.
16243         (alpha_legitimize_address): New arg scratch.  Be prepared to be
16244         called when no_new_pseudos.  Emit simple symbolic references.
16245         Split integers into low, high, and rest.
16246         (alpha_expand_mov): Use alpha_legitimize_address.
16247         (some_small_symbolic_mem_operand): New.
16248         (split_small_symbolic_mem_operand): New.
16249         * config/alpha/alpha-protos.h: Update.
16250         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16251         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16252         (EXTRA_CONSTRAINT): Likewise.
16253         (PREFERRED_RELOAD_CLASS): Likewise.
16254         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16255         (PREDICATE_CODES): Update.
16256         * config/alpha/alpha.md: New post-reload splitters to convert
16257         simplfied symbolic operands to the form that references $29.
16258         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16259         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16260
16261 2002-01-03  Richard Henderson  <rth@redhat.com>
16262
16263         * local-alloc.c (function_invariant_p): Update commentary.
16264
16265 2002-01-04  H.J. Lu <hjl@gnu.org>
16266
16267         * toplev.c (rest_of_compilation): Fix a typo when calling
16268         cleanup_cfg.
16269
16270 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16271
16272         * c-common.c: Fix formatting.
16273         * diagnostic.c: Likewise.
16274         * doloop.c: Likewise.
16275         * dwarf2out.c: Likewise.
16276
16277 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16278
16279         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16280         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16281
16282 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16283
16284         * cpperror.c: Update comments and copyright.
16285         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16286         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16287
16288 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16289
16290         * collect2.c (main): Use strcmp when testing for "-shared".
16291
16292 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16293
16294         * cppmacro.c: Don't include intl.h.  Update comments.
16295         (new_number_token): Allocate enough buffer for 64-bit unsigned
16296         integers; update prototype.
16297         * cppmain.c: Update comments.
16298
16299 2002-01-03  William Cohen  <wcohen@redhat.com>
16300
16301         * function.h (struct function): Add profile.
16302         (current_function_profile): New.
16303         doc/extend.texi: Update documentation.
16304         * final.c (final_start_function): Use current_function_profile
16305         instead of profile_flag.
16306         (profile_after_prologue): Likewise.
16307         * function.c (expand_function_start): Likewise.
16308         (expand_function_start): Likewise.
16309         * config/alpha/alpha.c (direct_call_operand):
16310         (alpha_does_function_need_gp): Likewise.
16311         (alpha_expand_prologue): Likewise.
16312         * config/arm/arm.c (arm_expand_prologue): Likewise.
16313         thumb_expand_prologue: Likewise.
16314         * config/d30v/d30v.c (d30v_stack_info): Likewise.
16315         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16316         (fr30_expand_prologue): Likewise.
16317         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16318         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16319         * config/i386/i386.h (FINALIZE_PIC): Likewise.
16320         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16321         * config/i960/i960.c (i960_output_function_prologue): Likewise.
16322         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16323         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16324         (m32r_expand_prologue): Likewise.
16325         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16326         (m88k_expand_prologue): Likewise.
16327         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16328         * config/mips/mips.c (compute_frame_size): Likewise.
16329         (mips_expand_prologue): Likewise.
16330         (mips_can_use_return_insn): Likewise.
16331         * config/pa/elf.h (ASM_FILE_START): Likewise.
16332         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16333         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16334         * config/pa/som.h (ASM_FILE_START): Likewise.
16335         * config/romp/romp.c (romp_using_r14): Likewise.
16336         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16337         (rs6000_stack_info): Likewise.
16338         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16339         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16340         * config/v850/v850.c (compute_register_save_size): Likewise.
16341
16342 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
16343
16344         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16345         gen_lowpart_common fails, use gen_lowpart_SUBREG.
16346
16347 2002-01-03  Turly O'Connor  <turly@apple.com>
16348
16349         * darwin.c (machopic_output_possible_stub_label): Don't generate
16350         stub routines for pseudo-stubs which we've just defined.
16351
16352 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16353
16354         * builtins.c: Fix formatting.
16355         * c-typeck.c: Likewise.
16356         * combine.c: Likewise.
16357         * expr.c: Likewise.
16358         * loop.c: Likewise.
16359
16360 2002-01-03  Andreas Schwab  <schwab@suse.de>
16361
16362         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16363         and return true if _cpp_push_next_buffer pushed a new include
16364         file.
16365         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16366         _cpp_pop_file_buffer did not push a new file.
16367         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16368
16369 2002-01-02  Eric Christopher  <echristo@redhat.com>
16370
16371         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16372         FIND_REG_INC_NOTE call. Update copyright.
16373         * loop.c (canonicalize_condition): Ditto.
16374         * reorg.c (delete_scheduled_jump): Ditto.
16375
16376 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16377
16378         * gcse.c: Fix formatting.
16379
16380 2002-01-03  Graham Stott  <grahams@redhat.com>
16381
16382         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16383         forward defs for struct tags rtx_def, union_tree, rtvec_def
16384         also output corresponding typedefs for rtx, tree, and rtvec.
16385
16386         * system.h: Move forward defs for struct tags rtx_def, union_tree,
16387         rtvec_def along with corresponding typedefs for rtx, tree, and
16388         rtvec to config.h, hconfig.h, tconfig.h.
16389
16390 2002-01-03  Graham Stott  <grahams@redhat.com>
16391
16392         * tree.h: Update copyright date.
16393         (IS_EXPR_CODE_CLASS): Add parenthesis.
16394         (TREE_SET_CODE): Add whitespace.
16395         (TREE_CHECK): Add parenthesis.
16396         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16397         (CST_OR_CONSTRUCTOR_CHECK):
16398         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16399         (TREE_SYMBOL_REFERENCED): Whitespace.
16400         (INT_CST_LT): Likewise.
16401         (INT_CST_LT_UNSIGNED): Likewise.
16402         (tree_real_cst): Unwrap comment.
16403         (tree_string): Likewise.
16404         (tree_complex): Likewise.
16405         (IDENTIFIER_POINTER): correct cast.
16406         (SAVE_EXPR_CONTEXT): Whitespace.
16407         (EXPR_WFL_FILENAME_NODE): Likewise.
16408         (EXPR_WFL_FILENAME): Remove parenthesis.
16409         (DECL_ORIGIN): Add parenthesis.
16410         (DECL_FROM_INLINE): Use NULL_TREE.
16411         (build_int_2): Whitespace.
16412         (build_type_variant): Add parenthesis.
16413
16414         * gcc/jcf-parse.c: Update copyright date.
16415         (yyparse): Constify resource_filename.
16416
16417 2002-01-03  Graham Stott  <grahams@redhat.com>
16418
16419         * rtl.h: Update copyright date.
16420         (RTL_CHECK1): Wrap long line.
16421         (RTL_CHECK2): Likewise.
16422         (RTL_CHECKC1): Wrap long line and whitespace.
16423         (RTL_CHECKC2): Likewise.
16424         (XWINT): Whitespace.
16425         (XINT): Likewise.
16426         (XSTR): Likewise.
16427         (XEXP): Likewise.
16428         (XVEC): Likewise.
16429         (XMODE): Likewise.
16430         (XBITMAP): Likewise.
16431         (XTREE): Likewise.
16432         (XBBDEF): Likewise.
16433         (XTMPL): Likewise.
16434         (X0WINT): Likewise.
16435         (X0INT):Likewise.
16436         (X0UINT): Likewise.
16437         (X0STR): Likewise.
16438         (X0EXP): Likewise.
16439         (X0VEC): Likewise.
16440         (X0MODE): Likewise.
16441         (X0BITMAP): Likewise.
16442         (X0TREE): Likewise.
16443         (X0BBDEF): Likewise.
16444         (X0ADVFLAGS): Likewise.
16445         (X0CSELIB): Likewise.
16446         (X0MEMATTR): Likewise.
16447         (XCWINT): Likewise.
16448         (XCINT): Likewise.
16449         (XCUINT): Likewise.
16450         (XCSTR): Likewise.
16451         (XCEXP): Likewise.
16452         (XCVEC): Likewise.
16453         (XCMODE): Likewise.
16454         (XCBITMAP): Likewise.
16455         (XCTREE): Likewise.
16456         (XCBBDEF): Likewise.
16457         (XCADVFLAGS): Likewise.
16458         (XCCSELIB): Likewise.
16459         (XC2EXP): Likewise.
16460         (INSN_UID): Likewise.
16461         (PREV_INSN): Likewise.
16462         (PATTERN): Likewise.
16463         (INSN_CODE): Likewise.
16464         (PUT_REG_NOTE_KIND): Likewise.
16465         (CODE_LABEL_NUMBER): Likewise.
16466         (NOTE_SOURCE_FILE): Likewise.
16467         (NOTE_BLOCK): Likewise.
16468         (NOTE_EH_HANDLER): Likewise.
16469         (NOTE_RANGE_INFO): Likewise.
16470         (NOTE_LIVE_INFO): Likewise.
16471         (NOTE_BASIC_BLOCK): Likewise.
16472         (NOTE_EXPECTED_VALUE): Likewise.
16473         (NOTE_LINE_NUMBER): Likewise.
16474         (LABEL_NAME): Likewise.
16475         (LABEL_NUSES): Likewise.
16476         (LABEL_ALTERNATE_NAME): Likewise.
16477         (ADDRESSOF_DECL): Likewise.
16478         (JUMP_LABEL): Likewise.
16479         (LABEL_NEXTREF): Likewise.
16480         (REGNO): Likewise.
16481         (ORIGINAL_REGNO: Likewise.
16482         (HARD_REGISTER_NUM_P): Add parenthesis.
16483         (SUBREG_REG): Whitespace.
16484         (SUBREG_BYTE): Likewise.
16485         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16486         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16487         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16488         (ASM_OPERANDS_INPUT_VEC): Likewise.
16489         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16490         (ASM_OPERANDS_INPUT): Likewise.
16491         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16492         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16493         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16494         (ASM_OPERANDS_INPUT_MODE): Likewise.
16495         (ASM_OPERANDS_SOURCE_FILE): Likewise.
16496         (ASM_OPERANDS_SOURCE_LINE): Likewise.
16497         (MEM_SET_IN_STRUCT_P): Minor reformat.
16498         (TRAP_CONDITION): Whitespace.
16499         (TRAP_CODE): Likewise.
16500         (COND_EXEC_TEST): Likewise.
16501         (COND_EXEC_CODE): Likewise.
16502         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16503         (PHI_NODE_P): Add parenthesis.
16504         (plus_constant): Whitespace and add parenthesis.
16505
16506 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16507
16508         * config/avr/avr.c: Fix comment typos.
16509         * config/c4x/c4x.md: Likewise.
16510         * config/dsp16xx/dsp16xx.h: Likewise.
16511         * config/dsp16xx/dsp16xx.md: Likewise.
16512         * config/i386/i386.md: Likewise.
16513         * config/ia64/ia64.c: Likewise.
16514         * config/m32r/m32r.h: Likewise.
16515         * config/m68hc11/m68hc11.md: Likewise.
16516         * config/mmix/mmix.c: Likewise.
16517         * config/mn10200/mn10200.c: Likewise.
16518         * config/romp/romp.c: Likewise.
16519         * config/sh/sh.c: Likewise.
16520         * config/stormy16/stormy16.c: Likewise.
16521         * config/stormy16/stormy16.h: Likewise.
16522         * config/stormy16/stormy16.md: Likewise.
16523
16524 2002-01-03  Graham Stott  <grahams@redhat.com>
16525
16526         * loop.h: Update copyright date.
16527         (LOOP_MOVABLES): Fix typo.
16528         (LOOP_REGS): Likewise.
16529         (LOOP_IVS): Likewise.
16530
16531 2002-01-03  Graham Stott  <grahams@redhat.com>
16532
16533         * cppinit.c: Update copyright date.
16534         Don't include output.h
16535         * Makefile.in: Update copyright date.
16536         Update dependency.
16537
16538 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16539
16540         PR c/5226
16541         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16542         (-pthread) Add to RS/6000 options.
16543
16544 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16545
16546         * except.c: Fix comment typos.
16547         * loop.c: Likewise.
16548         * varasm.c: Likewise.
16549         * doc/tm.texi: Fix a typo.
16550
16551 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
16552
16553         * c-typeck.c (output_init_element): Allow initializing static storage
16554         duration objects with compound literals.
16555
16556 2002-01-02  Richard Henderson  <rth@redhat.com>
16557
16558         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16559         after abusing it.
16560
16561 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16562
16563         * gcc.c (default_compilers): Const-ify.
16564         * mips-tdump.c (stab_names): Likewise.
16565         * mips-tfile.c (map_coff_types, map_coff_storage,
16566         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16567         pseudo_ops_t, pseudo_ops): Likewise.
16568         * protoize.c (default_include): Likewise
16569
16570         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16571         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16572         Add array size in declaration.
16573         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16574         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16575         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16576         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16577         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16578         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16579         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16580         emtens, make_nan): Const-ify.
16581         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16582         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16583
16584 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
16585
16586         * config.gcc (ia64-*-*): Set extra_headers.
16587         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
16588         * config/alpha/t-osf: Remove.
16589         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16590
16591 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
16592
16593         * config/rs6000/t-aix43: Revert previous change.
16594
16595 2002-01-02  Jason Merrill  <jason@redhat.com>
16596
16597         * c-decl.c (c_expand_body): Call outlining_inline_function when
16598         emitting an inline function out of line.
16599
16600 2002-01-02  Richard Henderson  <rth@redhat.com>
16601
16602         * dwarf2out.c (limbo_die_node): Add created_for member.
16603         (new_die): New argument created_for.  Update all callers.
16604         (mark_limbo_die_list): New.
16605         (dwarf2out_init): Register limbo_die_list as a root.
16606         (dwarf2out_finish): Force insert limbo dies into their function
16607         context.
16608
16609 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
16610
16611         PR c++/5089
16612         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16613
16614 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16615
16616         * config/h8300/fixunssfsi.c: Update copyright.
16617         Fix comment typos.
16618         Fix formatting.
16619         * config/h8300/h8300.c: Update copyright.
16620         Eliminate warnings.
16621
16622 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16623
16624         * config/romp/romp.c: Fix comment formatting.
16625         * config/romp/romp.h: Likewise.
16626         * config/romp/romp.md: Likewise.
16627         * config/s390/s390.c: Likewise.
16628         * config/stormy16/stormy16.c: Likewise.
16629         * config/stormy16/stormy16.h: Likewise.
16630
16631 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
16632
16633         * c-common.h (genrtl_expr_stmt_value): Declare.
16634         * c-semantics.c (genrtl_goto_stmt): Redirect to...
16635         (genrtl_goto_stmt_value): ... this new function.  Pass new
16636         argument down to expand_expr_stmt_value, taking
16637         TREE_ADDRESSABLE into account.
16638         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16639         STMT_EXPR as addressable, i.e., one whose result we want.
16640         * expr.c (expand_expr): Don't save expression statement value
16641         of labeled_blocks or loop_exprs.
16642         * stmt.c (expand_expr_stmt): Redirect to...
16643         (expand_expr_stmt_value): ... this new function.  Use new
16644         argument to tell whether to save expression value.
16645         (expand_end_stmt_expr): Reset last_expr_type and
16646         last_expr_value if we don't have either.
16647         * tree-inline.c (declare_return_variable): Mark its use
16648         statement as addressable.
16649         * tree.h: Document new use of TREE_ADDRESSABLE.
16650         (expand_expr_stmt_value): Declare.
16651
16652 2002-01-01  Tom Rix  <trix@redhat.com>
16653
16654         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16655         rs6000_emit_allocate_stack.
16656
16657 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
16658
16659         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16660         ${srcdir}/ginclude/ to every entry in extra_headers.
16661         * configure: Regenerate.
16662         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16663         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16664         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16665         * ginclude/proto.h: Rename to config/convex/proto.h.
16666
16667 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16668
16669         * attribs.c (handle_vector_size_attribute): Use host_integerp
16670         and tree_int_cst; remove warnings.
16671         * caller-save.c (insert_restore): Add cast to get rid of warning.
16672         (insert_save): Likewise.
16673         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16674         * regmove.c (find_matches): Add temporary var to kill a warning.
16675
16676 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
16677
16678         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16679         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16680         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16681         (vms-dwarf2eh.o): Add Makefile rule.
16682         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16683         * config/alpha/vms-dwarf2eh.asm: New file.
16684
16685         * gcc.c (delete_if_ordinary): Delete all versions.
16686
16687 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
16688
16689         * config/mmix/mmix.md: Update FIXME to not mention
16690         define_constants.
16691         (MMIX_rJ_REGNUM): New define_constants constant.
16692         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16693         "*movdicc_real"): Adjust contraints formatting.
16694         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16695         for branch prediction.
16696         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16697         output template.
16698         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16699         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16700         number.  Delete related FIXMEs.
16701         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16702         from number to MMIX_rJ_REGNUM.
16703         (TARGET_MASK_BRANCH_PREDICT): New.
16704         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16705         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
16706         value.  Add -mbranch-predict and -mno-branch-predict.
16707         (TARGET_VERSION): Drop date.
16708         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16709         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16710         for finding out global symbols.
16711         (mmix_asm_output_labelref): Revert condition for global symbol.
16712         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16713         (mmix_print_operand_punct_valid_p): A '+' is valid.
16714
16715 See ChangeLog.6 for earlier changes.