* config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
[official-gcc.git] / gcc / ChangeLog
blobdf4027ffcda1e10e471d2bd3141d07c8f8210c1f
1 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
3         * config/s390/linux.h (MD_FALLBACK_FRAME_STATE_FOR): New.
5 2002-05-29  Ulrich Weigand  <uweigand@de.ibm.com>
7         * config/s390/s390.c (legitimate_pic_operand_p): Do not
8         accept symbolic LARL operands.
9         (s390_emit_epilogue): Do not set FRAME_RELATED_P on 
10         epilogue insns.
12 2002-05-29  Hartmut Penner  <hpenner@de.ibm.com>
14         * config/s390/s390.md (cmpstr_64/31): Mark whole
15         input registers as used. 
17 2002-05-28  Richard Henderson  <rth@redhat.com>
19         * config/i386/i386.c (ix86_save_reg): Examine regs_ever_live,
20         not current_function_uses_pic_offset_table and
21         current_function_uses_const_pool; examine current_function_profile.
22         (ix86_expand_prologue): Likewise.  Add pic_offset_table_rtx as
23         input to blockage if needed.
24         (ix86_expand_call): Do not set current_function_uses_pic_offset_table.
25         (legitimize_pic_address): Likewise.  Set regs_ever_live for
26         pic_offset_table_rtx when invoked during reload.
27         * config/i386/i386.h (FINALIZE_PIC): Remove.
28         * config/i386/i386.md (tablejump): Reformat.  Do not set
29         current_function_uses_pic_offset_table.
30         (tls_global_dynamic, tls_local_dynamic_base): Likewise.
31         (blockage): Accept anything as operand 0.
33 2002-05-28  Jason Thorpe  <thorpej@wasabisystems.com>
35         * config/netbsd-aout.h (NETBSD_OS_CPP_BUILTINS_AOUT): Define
36         common CPP built-ins for all NetBSD a.out targets.
37         * config/netbsd-elf.h (NETBSD_OS_CPP_BUILTINS_ELF): Define
38         common CPP built-ins for all NetBSD ELF targets.
39         * config/netbsd.h: Add missing notice.
40         (NETBSD_OS_CPP_BUILTINS_COMMON): Define common CPP built-ins
41         for all NetBSD targets.
42         (NETBSD_OS_CPP_BUILTINS_LP64): Define common CPP built-ins
43         for all NetBSD targets using an LP64 code model.
44         (NETBSD_CPP_SPEC): Define CPP_SPEC parts common to all
45         NetBSD targets.
47 2002-05-28  Richard Henderson  <rth@redhat.com>
49         * flow.c (update_life_info_in_dirty_blocks): Only do a partial
50         update if UPDATE_LIFE_LOCAL.
52 2002-05-28  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
54         * config/sh/sh.c: Include real.h for REAL_VALUE_TYPE.
56 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
57                           Jason R. Thorpe <thorpej@wasabisystems.com>
59         config/sh reorganization to factor out endianness and coff:
61         * config/sh/little.h: New file.
62         * config/sh/sh.h (TARGET_ENDIAN_DEFAULT): If not already
63         defined, define to 0 to select big-endian.
64         (SUBTARGET_ASM_ENDIAN_SPEC): Define according to TARGET_ENDIAN_DEFAULT.
65         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
66         * config/sh/sh64.h (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
67         * config/sh/t-be: New file.
68         * config/sh/t-le: New file.
70         * sh.h (SDB_DEBUGGING_INFO, #include "dbxcoff.h"): Moved to sh/coff.h.
71         (SDB_DELIM, MAX_OFILE_ALIGNMENT, IDENT_ASM_OP): Likewise.
72         (TARGET_ASM_NAMED_SECTION, ASM_OUTPUT_SKIP): Likewise.
73         (USER_LABEL_PREFIX, LOCAL_LABEL_PREFIX): Likewise.
74         (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL): Likewise.
75         (ASM_OUTPUT_COMMON, ASM_OUTPUT_LOCAL): Likewise.
76         (ASM_FILE_END, ASM_DECLARE_FUNCTION_NAME): Deleted.
77         (CPP_SPEC, SUBTARGET_CPP_ENDIAN_SPEC): Likewise.
78         (SUBTARGET_CPP_SPEC, CPP_DEFAULT_CPU_SPEC, CPP_PREDEFINES): Likewise.
79         (EXTRA_SPECS): Remove SUBTARGET_CPP_ENDIAN_SPEC and
80         CPP_DEFAULT_CPU_SPEC.  Add LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL,
81         SUBTARGET_LINK_EMUL_SUFFIX and SUBTARGET_LINK_SPEC.
82         (LINK_SPEC): Define to SH_LINK_SPEC.
83         (TARGET_CPU_CPP_BUILTINS, SH_LINK_SPEC): Define.
84         (LINK_EMUL_PREFIX, LINK_DEFAULT_CPU_EMUL): Likewise.
85         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
86         (CPP_SPEC): Reduce to %(subtarget_cpp_spec).
87         (TARGET_ENDIAN_DEFAULT): Define if not already defined.
88         * config/sh/coff.h: New file.
89         (TARGET_ASM_NAMED_SECTION): Now default_coff_asm_named_section
90         (TARGET_OBJFMT_CPP_BUILTINS): Define.
91         * config/sh/elf.h (IDENT_ASM_OP): No need to #undef at the start.
92         (ASM_FILE_END, ASM_OUTPUT_SOURCE_LINE): Likewise.
93         (DBX_OUTPUT_MAIN_SOURCE_FILE_END, TARGET_ASM_NAMED_SECTION): Likewise.
94         (ASM_DECLARE_FUNCTION_NAME, MAX_OFILE_ALIGNMENT, SIZE_TYPE): Likewise.
95         (PTRDIFF_TYPE): Likewise.
96         ("dbxelf.h", "elfos.h", "svr4.h"): Don't #include.
97         (CPP_PREDEFINES): Don't define.
98         (TARGET_OBJFMT_CPP_BUILTINS): Define.
99         (LINK_SPEC): Define to SH_LINK_SPEC.
100         (LINK_EMUL_PREFIX): Redefine.
101         * config/sh/linux.h: (SUBTARGET_CPP_SPEC): Remove -fpic / -fPIC cases.
102         (SUBTARGET_CPP_ENDIAN_SPEC, CPP_DEFAULT_CPU_SPEC): Remove redefinition.
103         (CPP_PREDEFINES, SUBTARGET_ASM_ENDIAN_SPEC): Likewise.
104         (CC1_SPEC, CC1PLUS_SPEC, LINK_SPEC): Likewise.
105         (TARGET_OS_CPP_BUILTINS): Define.
106         (TARGET_DEFAULT): Redefine.
107         (SUBTARGET_LINK_EMUL_SUFFIX, SUBTARGET_LINK_SPEC): Likewise.
108         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Remove.
109         (LINK_SPEC): Don't redefine.
110         (LINK_DEFAULT_CPU_EMUL): Redefine.
111         (TARGET_DEFAULT): Include TARGET_ENDIAN_DEFAULT.
112         * sh.c (sh_asm_named_section): Don't declare / define.
113         * t-linux (MULTILIB_OPTIONS): Rely on pre-set endianness option.
114         * config.gcc (sh-*-elf* tm_file): Add dbxelf.h elfos.h svr4.h.
115         (sh64-*-elf* tm_file): Likewise.
116         (sh-*-rtemself* tm_file): Likewise.
117         (sh-*-linux* tm_file): Likewise.  Add sh/little.h.
118         (sh-*-linux* tmake_file): Add sh/t-le.
119         (sh-*-rtems* tm_file): Add sh/coff.h
120         (sh-*-* tm_file): Likewise.
122 Tue May 28 21:16:18 2002  J"orn Rennecke <joern.rennecke@superh.com>
124         * sh.h (LEGITIMATE_PIC_OPERAND_P): Check for SYMBOL_REF before using
125         CONSTANT_POOL_ADDRESS_P.
127         * coff.h (HAS_INIT_SECTION, INVOKE__MAIN): Define.
129 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
130             Jeff Law <law@redhat.com>
132         * optabs.c (expand_binop): Fix nwords sign warnings.
133         generate pseudo for add_optab.
135         * sched-deps.c (sched_analyze): Do not clear SCHED_GROUP_P.
136         * haifa-sched.c (move_insn): Clear SCHED_GROUP_P after it is used.
138 2002-05-28      Marc Espie <espie@openbsd.org>
140         * config/i386/openbsd.h (HAVE_GAS_MAX_SKIP_P2ALIGN):  Remove, 
141         inherited from gas.h.
142         (ASM_QUAD):  Undef.  OpenBSD does not support it.
144 2002-05-28  Danny Smith  <dannysmith@users.sourceforge.net>
146         * doc/install.texi (binaries): Change mingw binaries
147         link to www.mingw.org.
149 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
151         * cfgloop.c (flow_loops_cfg_dump): Use bb->index, not i.
153 2002-05-28  Richard Henderson  <rth@redhat.com>
155         * config/i386/i386.c (ix86_compute_frame_layout): Do not add
156         bottom alignment for leaf functions.
158 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
160         * config/pa/milli32.S, config/pa/lib1funcs.asm,
161         config/sparc/sol2-g1.asm: Delete unused files.
163 2002-05-28  Richard Henderson  <rth@redhat.com>
165         * cfg.c (dump_flow_info): Print bb->index, not i, for block number.
167         * flow.c (calculate_global_regs_live): Rename call_used to
168         invalidated_by_call.  Initialize from regs_invalidated_by_call
169         instead of call_used_regs.
171         * varasm.c (default_binds_local_p): Check TREE_PUBLIC before
172         DECL_EXTERNAL.
174 2002-05-28  Zack Weinberg  <zack@codesourcery.com>
176         * tree.h: Forward-declare struct realvaluetype.
177         (struct tree_real_cst): Point to the REAL_VALUE_TYPE, do not
178         contain it.
179         (TREE_REAL_CST_PTR): New accessor.
180         (TREE_REAL_CST): Update.
181         * real.h: Include machmode.h.
182         (realvaluetype): Make it struct realvaluetype, not a typedef.  
183         (build_real): Prototype here.
185         * tree.c: Include real.h.
186         (build_real): Allocate the REAL_VALUE_TYPE as a separate  
187         object in GC memory, set TREE_REAL_CST_PTR to point to it. 
188         (build_real_from_int_cst): Use build_real.
189         * ggc-common.c (ggc_mark_trees): Mark TREE_REAL_CST_PTR of a
190         REAL_CST.
192         * builtins.c, c-common.c, c-lex.c, dwarf2out.c, expr.c,
193         fold-const.c, print-tree.c, real.c: Include real.h.
194         * Makefile.in: Update dependency lists.
196 2002-05-28  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
198         * basic-block.h (last_basic_block): Declare.
199         (expunge_block_nocompact): Declaration removed.
200         (compact_blocks): Declare.
201         * cfg.c (last_basic_block): New variable.
202         (expunge_block_nocompact): Removed.
203         (expunge_block): Do not compact basic blocks.
204         (compact_blocks): New.
205         * cfganal.c (flow_call_edges_add): Use the fact that bb indices no
206         longer change.
207         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Set
208         last_basic_block.
209         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Do not change
210         real positions of blocks.
211         (delete_unreachable_blocks): Simplified -- quadratic behavior now
212         cannot occur.
213         (cleanup_cfg): Compact blocks.
214         * cfgrtl.c (create_basic_block): Insert basic blocks to the end of
215         basic_block_info varray.
216         (flow_delete_block): Comment update.
217         (back_edge_of_syntactic_loop_p): Modify position check code.
218         (verify_flow_info): Update checking.
219         * flow.c (calculate_global_regs_live): Use FOR_EACH_BB.
220         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
221         (find_if_case_1, find_if_case_2, if_convert): Use the fact that bb
222         indices no longer change.
223         * lcm.c (optimize_mode_switching): Replace n_basic_blocks with
224         last_basic_block.
225         * predict.c (estimate_bb_frequencies): Remove unneccessary code.
226         * profile.c (branch_prob): Compact blocks.
227         * sched-rgn.c (find_rgns): Replace n_basic_blocks with
228         last_basic_block.
230 2002-05-28  Kazu Hirata  <kazu@cs.umass.edu>
232         * config/h8300/h8300.md (two anonymous patterns): New.
234 2002-05-28  David S. Miller  <davem@redhat.com>
236         * config/sparc/sparc.md (cpu): Tidy.
237         (type): Delete 'return', add 'ialuX', 'flushw', 'iflush', and
238         'trap'.
239         (in_call_delay): Delete reference to 'return' type.
240         (eligible_for_return_delay, in_return_delay, define_delay
241         referencing those): Delete.
242         (rest of file): Use new type attributes as appropriate.
243         * config/sparc/sparc-protos.h (eligible_for_return_delay): Delete.
244         * config/sparc/sparc.c (eligible_for_return_delay): Likewise.
245         * config/sparc/ultra1_2.md (us1_single): New reservation.
246         (us1_ialuX): Likewise.
247         * config/sparc/ultra3.md (us3_single): Likewise.
248         (us3_ialuX): Likewise.
249         (us3_imul, us3_idiv): Tweak.
250         
251 2002-05-28  Richard Henderson  <rth@redhat.com>
253         * config/alpha/alpha.c (alpha_in_small_data_p): Return false for
254         STRING_CST.
256 2002-05-28  Richard Henderson  <rth@redhat.com>
258         * config.gcc: Obsolete mn10200.
260 2002-05-28  Neil Booth  <neil@daikokuya.demon.co.uk>
262         * cppexp.c (interpret_number): Optimize for single-digit
263         and less-than-half-precision cases.
264         (num_trim, num_positive, num_div_op): Cast constants.
266 2002-05-27  Bo Thorsen  <bo@suse.de>
268         * config/i386/libgcc-x86_64-glibc.ver: Copy this file from the
269         3.1 branch. The file was made by Jakub Jelinek.
270         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Add i386
271         support so multilib doesn't break. And don't define this at all
272         when -Dinhibit_libc is used.
273         (MULTILIB_DEFAULTS): Always set default to 64 bit compilation.
274         * config/i386/t-linux64: Implement full multilib support. Patch
275         originally done by Andreas Jaeger and Jakub Jelinek.
277 2002-05-27  Roger Sayle  <roger@eyesopen.com>
279         * c-common.c: Add support for __attribute__((nothrow)) to specify
280         that a function cannot throw an exception (using TREE_NOTHROW).
281         (handle_nothrow_attribute): New function to process this attribute.
283         * doc/extend.texi: Document the new nothrow function attribute.
285 2002-05-27  H.J. Lu  (hjl@gnu.org)
287         * cppexp.c (num_trim): Use 1UL instead of 1 for long int.
288         (num_positive): Likewise.
289         (num_div_op): Likewise.
291 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
293         * c-common.c (c_common_init): Always use intmax_t.
295 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
297         * c-common.c (c_common_init): Use intmax_t for now.
299 2002-05-24  Andrew Haley  <aph@redhat.com>
301         * fold-const.c (fold): Don't convert (T)(x & c) into (T)x & (T)c
302         if T is a boolean type.
304 2002-05-27  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
306         * basic-block.h (last_basic_block): Defined as synonym for
307         n_basic_blocks.
308         * cfganal.c (mark_dfs_back_edges, flow_reverse_top_sort_order_compute,
309         flow_depth_first_order_compute, flow_preorder_transversal_compute,
310         flow_dfs_compute_reverse_init): Replaced relevant occurences of
311         n_basic_blocks with last_basic_block.
312         * cfgbuild.c (make_edges): Likewise.
313         * cfgloop.c (flow_loop_scan, flow_loops_find): Likewise.
314         * cfgrtl.c (verify_flow_info, purge_all_dead_edges): Likewise.
315         * combine.c (combine_instructions): Likewise.
316         * df.c (df_alloc, df_analyse_1, df_analyse, iterative_dataflow_sbitmap,
317         iterative_dataflow_bitmap): Likewise.
318         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
319         calc_idoms, idoms_to_doms): Likewise.
320         * flow.c (update_life_info_in_dirty_blocks, free_basic_block_vars):
321         Likewise.
322         * gcse.c (gcse_main, alloc_gcse_mem, compute_local_properties,
323         compute_hash_table, expr_reaches_here_p, one_classic_gcse_pass,
324         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p,
325         one_pre_gcse_pass, compute_transpout, delete_null_pointer_checks_1,
326         delete_null_pointer_checks, compute_code_hoist_vbeinout,
327         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
328         compute_store_table, build_store_vectors): Likewise.
329         * haifa-sched.c (sched_init): Likewise.
330         * ifcvt.c (if_convert): Likewise.
331         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
332         pre_edge_lcm, compute_available, compute_nearerout,
333         compute_rev_insert_delete, pre_edge_rev_lcm, optimize_mode_switching):
334         Likewise.
335         * predict.c (estimate_probability, process_note_prediction,
336         note_prediction_to_br_prob): Likewise.
337         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX): Likewise.
338         * recog.c (split_all_insns, peephole2_optimize): Likewise.
339         * regrename.c (copyprop_hardreg_forward): Likewise.
340         * resource.c (init_resource_info): Likewise.
341         * sched-rgn.c (build_control_flow, find_rgns, compute_trg_info,
342         init_regions, schedule_insns): Likewise.
343         * ssa-ccp.c (ssa_const_prop): Likewise.
344         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
345         * ssa.c (compute_dominance_frontiers,
346         compute_iterated_dominance_frontiers, convert_to_ssa): Likewise.
348         * df.c (df_refs_unlink): Fix FOR_EACH_BB usage (in #if 0'ed code)
349         * gcse.c (alloc_rd_mem, alloc_avail_expr_mem): Use n_blocks for vector
350         sizes consistently.
352 Mon May 27 14:28:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
354         * basic-block.h (can_hoist_p, hoist_insn_after, hoist_insn_to_edge):
355         new.
356         * rtlanal.c (hoist_test_store, can_hoist_insn_p, hoist_update_store,
357         hoist_insn_after, hoist_insn_to_edge): New.
359 Mon May 27 12:14:02 CEST 2002  Jan Hubicka  <jh@suse.cz>
361         * basic-block.h (PEOP_SCAN_DEAD_STORES): New.
362         (PROP_FINAL): Include.
363         * flow.c (life_analysis, update_life_info,
364         init_propagate_block_info, mark_set_1, mark_used_rgs):
365         Support SCAN_DEAD_STORE.
367 2002-05-27  Neil Booth  <neil@daikokuya.demon.co.uk>
369         * c-common.c (c_common_init): Set CPP arithmetic precision.
370         * cppexp.c (cpp_num_part): Move typedef ...
371         * cpphash.h: ...here; make unsigned HOST_WIDE_INT.
372         * cppinit.c (cpp_create_reader): Default to host long arithmetic.
373         (sanity_checks): Update.
375 2002-05-26  Geoffrey Keating  <geoffk@redhat.com>
377         * Makefile.in (INSTALL_HEADERS): Add 'install-mkheaders'.
378         (mkheaders): New rule.
379         (install-mkheaders): New rule.
380         * configure.in (all_outputs): Add mkheaders.
381         * configure: Regenerate.
382         * mkheaders.in: New file.
384 2002-05-26  Jakub Jelinek  <jakub@redhat.com>
386         * cse.c (fold_rtx): Don't optimize if SUBREG changes mode class.
388 2002-05-26  Andreas Jaeger  <aj@suse.de>
390         * cfg.c (dump_flow_info): Remove extra argument to fprintf.
392 2002-05-26  Neil Booth  <neil@daikokuya.demon.co.uk>
394         * cppexp.c (possible_sum_sign, integer_overflow, left_shift,
395         right_shift): Remove.
396         (cpp_num, cpp_num_part, PART_PRECISION, HALF_MASK, LOW_PART,
397         HIGH_PART): New.
398         (struct op): Use cpp_num.
399         (num_zerop, num_eq, num_positive, num_greater_freq, num_trim,
400         num_part_mul, num_unary_op, num_binary_op, num_negate,
401         num_bitwise_op, num_inequality_op, num_equality_op, num_mul,
402         num_div_op, num_lshift, num_rshift, append_digit): New.
403         (interpret_number, parse_defined, eval_token, reduce): Update
404         for two-integer arithmetic.
405         (binary_handler): New typedef.
406         (optab): Update.
407         (COMPARE, EQUALITY, BITWISE, MINMAX, UNARY, SHIFT): Delete.
408         (_cpp_parse_expr, reduce): Update to handle two-integers.
409         * cpplib.c (_cpp_test_assertion): Back up on CPP_EOF.
411 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
413         * config/avr/avr-protos.h (avr_out_sbxx_branch): Declare.
414         * config/avr/avr.c (jump_over_one_insn_p): Take length of the
415         branch insn into account, do not assume 1.
416         (avr_out_sbxx_branch): New function.  Optimize cases of skipping
417         over single word insn.  Handle upper half of I/O space too.
418         * config/avr/avr.md (*sbrx_branch): Use it.
419         (*sbrx_and_branchhi, *sbrx_and_branchsi): Likewise.
420         (*sbix_branch, *sbix_branch_bit7): Likewise.
421         (*sbix_branch_tmp, *sbix_branch_tmp_bit7): New.
422         Use RTL peepholes to optimize register operand sign tests.
424 2002-05-26  Marek Michalkiewicz  <marekm@amelek.gda.pl>
426         * config/avr/avr.c (avr_asm_only_p): New variable.
427         (avr_override_options): Set it here if AVR1.
428         (asm_file_start): Test it here, report an error if set.
430 2002-05-26  Kazu Hirata  <kazu@cs.umass.edu>
432         * alias.c: Fix formatting.
433         * attribs.c: Likewise.
434         * bb-reorder.c: Likewise.
435         * bitmap.c: Likewise.
436         * bitmap.h: Likewise.
437         * builtins.c: Likewise.
439 Sun May 26 14:00:44 CEST 2002  Jan Hubicka  <jh@suse.cz>
441         * reload.c (find_valid_class): Accept new argument DEST,
442         choose class accordingly.
443         (push_reload): Update callers.
445 2002-05-26  Andreas Jaeger  <aj@suse.de>
447         * combine.c (combine_instructions): Do not indent #if for
448         traditional C.
450 2002-05-25  Richard Henderson  <rth@redhat.com>
452         * c-pragma.c (apply_pragma_weak): Convert value identifier to
453         string for decl_attributes.
454         (handle_pragma_weak): Call assemble_alias if we're modifying
455         an existing decl.
457 2002-05-25  Richard Henderson  <rth@redhat.com>
459         PR target/6788
460         * config/sparc/sparc.c (sparc_output_mi_thunk): New implementation
461         using rtl instead of fprintf.
462         * config/sparc/sparc.h (ASM_OUTPUT_MI_THUNK): Use it.
463         * config/sparc/sparc-protos.h: Update.
465 2002-05-25  Neil Booth  <neil@daikokuya.demon.co.uk>
467         * Makefile.in (C_COMMON_H): Fix.
468         Update other targets.
469         * c-common.c: Don't include c-lex.h.
470         (builtin_define_with_value): Make static and prototype.
471         (builtin_define_std): Move from c-lex.h.
472         * c-common.h (init_c_lex): Move from c-lex.h.
473         * c-decl.c: Don't include c-lex.h.
474         (make_pointer_declarator): Move from c-parse.in.
475         * c-lex.c: Don't include c-lex.h.
476         * c-lex.h: Remove.
477         * c-parse.in: Don't include c-lex.h; include c-pragma.h.
478         (make_pointer_declarator): Move to c-decl.c.
479         * c-pragma.c: Don't include c-lex.h.
480         * c-pragma.h (yydebug, YYDEBUG, parse_in, c_lex): Move from c-lex.h.
481         * c-tree.h (make_pointer_declarator): New.
482 doc:
483         * passes.texi, tm.texi: Update.
484 objc:
485         * Make-lang.in: Update and correct.
486         * objc-act.c: Don't include c-lex.h or cpplib.h.
487 treelang:
488         * treetree.c: Don't include c-lex.h.
489 config:
490         * darwin-c.c: Don't include c-lex.h.
491         * c4x/c4x-c.c: Don't include c-lex.h.
492         * c4x/t-c4x: Update.
493         * i370/i370-c.c: Don't include c-lex.h.
494         * i370/t-i370: Update.
495         * i960/i960-c.c: Don't include c-lex.h.
496         * i960/i960.c: Don't include cpplib.h, c-lex.h or c-pragma.h.
497         * i960/t-960bare: Update.
498         * i960/t-vxworks: Update.
499         * rs6000/rs6000-c.c: Don't include c-lex.h; include c-pragma.h.
500         * rs6000/t-darwin: Update.
501         * rs6000/t-rs6000-c-rule: Update.
502         * v850/v850-c.c: Don't include c-lex.h.
503         * v850/v850.c: Don't include c-lex.h or cpplib.h.
506 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
508         * tree.def: Fix typos.
509         * doc/install.texi: Likewise.
511 2002-05-25  Richard Henderson  <rth@redhat.com>
513         * configure.in (HAVE_AS_TLS): Add ia64 test.
514         * configure: Rebuild.
515         * config/ia64/ia64.c (ia64_tls_size_string, ia64_tls_size): New.
516         (override_options): Set it.
517         (TARGET_HAVE_TLS): New.
518         (sdata_symbolic_operand): Look for 's'.
519         (tls_symbolic_operand): New.
520         (ia64_expand_load_address): Abort for tls symbols.
521         (gen_tls_get_addr): New.
522         (gen_thread_pointer): New.
523         (ia64_expand_move): Split out from movdi.  Handle tls symbols.
524         (rtx_needs_barrier): Add new unspecs.
525         (ia64_encode_section_info): Handle tls symbols.
526         (ia64_strip_name_encoding): Strip two encoding chars.
527         * config/ia64/ia64.h (ia64_tls_size, ia64_tls_size_string): New.
528         (TARGET_TLS14, TARGET_TLS22, TARGET_TLS64): New.
529         (TARGET_OPTIONS): Add tls-size.
530         (ENCODE_SECTION_INFO_CHAR): Rename from SDATA_NAME_FLAG_CHAR.
531         * config/ia64/ia64.md (UNSPEC_LTOFF_DTPMOD, UNSPEC_LTOFF_DTPREL,
532         UNSPEC_DTPREL, UNSPEC_LTOFF_TPREL, UNSPEC_TPREL, UNSPEC_LD_BASE): New.
533         (movqi, movhi, movsi, movdi, movti): Use ia64_expand_move.
534         (movsf, movdf): Likewise.
535         (movdi_symbolic): Use match_scratch.  Don't split if we won't
536         have a scratch availiable.
537         (load_ltoff_dtpmod, load_dtprel, load_dtprel64, load_dtprel22,
538         add_dtprel, add_dtprel14, add_dtprel22, load_ltoff_tprel, load_tprel,
539         load_tprel64, load_tprel22, add_tprel, add_tprel14, add_tprel22): New.
540         * config/ia64/ia64-protos.h: Update.
541         * config/ia64/sysv4.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Use
542         sdata_symbolic_operand.
543         (ASM_OUTPUT_LABELREF): Strip two characters.
545 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
547         * combine.c (simplify_set): Remove an unnecessary subreg.
549 2002-05-25  Marek Michalkiewicz  <marekm@amelek.gda.pl>
551         * config/avr/avr.c (avr_handle_progmem_attribute): Handle TYPE_DECL.
553         * config/avr/avr.h (BSS_SECTION_ASM_OP, ASM_OUTPUT_BSS): New.
555 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
557         * toplev.c (output_clean_symbol_name): Fix another thinko.  Gosh.
559 2002-05-25  Roger Sayle  <roger@eyesopen.com>
561         * simplify-rtx.c (simplify_gen_relational): Simplify the RTX
562         (cond (compare x y) 0) into the equivalent (cond x y).
564 2002-05-25  Gabriel Dos Reis  <gdr@codesourcery.com>
566         * toplev.c (output_clean_symbol_name): Use xstrdup.  Fix thinko.
568 2002-05-24  Zack Weinberg  <zack@codesourcery.com>
570         * config.gcc: Remove all stanzas for previously obsoleted
571         systems.  Where necessary, add explicit error stanzas to
572         prevent removed systems from being misidentified as something
573         else.  Begin a fresh obsoletions list, with the systems that
574         were reprieved last round.
575         * doc/install.texi: Remove all mention of dead targets.
576         * fixinc/mkfixinc.sh: Likewise.
578         * config/arm/arm.h: Bit 31 of target_flags is no longer
579         reserved.
581         * config/1750a/1750a-protos.h, config/1750a/1750a.c,
582         config/1750a/1750a.h, config/1750a/1750a.md, config/1750a/ms1750.inc,
583         config/a29k/a29k-protos.h, config/a29k/a29k.c, config/a29k/a29k.h,
584         config/a29k/a29k.md, config/a29k/rtems.h, config/a29k/t-a29kbare,
585         config/a29k/t-vx29k, config/a29k/unix.h, config/a29k/vx29k.h,
586         config/alpha/osf12.h, config/alpha/osf2or3.h,
587         config/arm/arm-wince-pe.h, config/arm/arm.h, config/arm/riscix.h,
588         config/arm/riscix1-1.h, config/arm/rix-gas.h, config/arm/t-riscix,
589         config/clipper/clipper-protos.h, config/clipper/clipper.c,
590         config/clipper/clipper.h, config/clipper/clipper.md,
591         config/clipper/clix.h, config/convex/convex-protos.h,
592         config/convex/convex.c, config/convex/convex.h,
593         config/convex/convex.md, config/convex/fixinc.convex,
594         config/convex/proto.h, config/elxsi/elxsi-protos.h,
595         config/elxsi/elxsi.c, config/elxsi/elxsi.h, config/elxsi/elxsi.md,
596         config/i386/386bsd.h, config/i386/aix386.h, config/i386/aix386ng.h,
597         config/i386/bsd386.h, config/i386/dgux.h, config/i386/djgpp-rtems.h,
598         config/i386/isc.h, config/i386/iscdbx.h, config/i386/linux-oldld.h,
599         config/i386/next.h, config/i386/osf1-ci.asm, config/i386/osf1-cn.asm,
600         config/i386/osf1elf.h, config/i386/osf1elfgdb.h, config/i386/osfelf.h,
601         config/i386/osfrose.h, config/i386/rtems.h, config/i386/seq-gas.h,
602         config/i386/seq-sysv3.h, config/i386/seq2-sysv3.h,
603         config/i386/sequent.h, config/i386/sun.h, config/i386/sun386.h,
604         config/i386/t-dgux, config/i386/t-next, config/i386/t-osf,
605         config/i386/t-osf1elf, config/i860/bsd-gas.h, config/i860/bsd.h,
606         config/i860/fx2800.h, config/i860/i860-protos.h, config/i860/i860.c,
607         config/i860/i860.h, config/i860/i860.md, config/i860/mach.h,
608         config/i860/paragon.h, config/i860/sysv3.h, config/i860/sysv4.h,
609         config/i860/t-fx2800, config/i860/varargs.asm, config/m68k/a-ux.h,
610         config/m68k/altos3068.h, config/m68k/apollo68.h,
611         config/m68k/aux-crt1.c, config/m68k/aux-crt2.asm,
612         config/m68k/aux-crtn.asm, config/m68k/aux-exit.c,
613         config/m68k/aux-low.gld, config/m68k/aux-mcount.c,
614         config/m68k/auxas.h, config/m68k/auxgas.h, config/m68k/auxgld.h,
615         config/m68k/auxld.h, config/m68k/ctix.h, config/m68k/dpx2.h,
616         config/m68k/dpx2.ifile, config/m68k/dpx2cdbx.h, config/m68k/dpx2g.h,
617         config/m68k/isi-nfp.h, config/m68k/isi.h, config/m68k/lynx-ng.h,
618         config/m68k/lynx.h, config/m68k/math-3300.h, config/m68k/news.h,
619         config/m68k/news3.h, config/m68k/news3gas.h, config/m68k/newsgas.h,
620         config/m68k/next.h, config/m68k/next21.h, config/m68k/rtems.h,
621         config/m68k/t-aux, config/m68k/t-lynx, config/m68k/t-next,
622         config/m68k/x-next, config/m88k/dgux.h, config/m88k/dgux.ld,
623         config/m88k/dguxbcs.h, config/m88k/dolph.h, config/m88k/dolphin.ld,
624         config/m88k/luna.h, config/m88k/m88k-coff.h, config/m88k/sysv3.h,
625         config/m88k/t-bug, config/m88k/t-dgux, config/m88k/t-dgux-gas,
626         config/m88k/t-dguxbcs, config/m88k/t-dolph, config/m88k/t-m88k-gas,
627         config/m88k/t-tekXD88, config/m88k/tekXD88.h, config/m88k/tekXD88.ld,
628         config/mips/bsd-4.h, config/mips/bsd-5.h, config/mips/dec-bsd.h,
629         config/mips/dec-osf1.h, config/mips/elflorion.h,
630         config/mips/iris4loser.h, config/mips/mips-5.h, config/mips/news4.h,
631         config/mips/news5.h, config/mips/nws3250v4.h, config/mips/osfrose.h,
632         config/mips/svr3-4.h, config/mips/svr3-5.h, config/mips/svr4-4.h,
633         config/mips/svr4-5.h, config/mips/svr4-t.h, config/mips/t-bsd,
634         config/mips/t-bsd-gas, config/mips/t-svr3, config/mips/t-svr3-gas,
635         config/mips/t-svr4, config/mips/t-svr4-gas, config/mips/t-ultrix,
636         config/mips/ultrix.h, config/nextstep-protos.h, config/nextstep.c,
637         config/nextstep.h, config/nextstep21.h, config/ns32k/encore.h,
638         config/ns32k/merlin.h, config/ns32k/pc532-mach.h,
639         config/ns32k/pc532-min.h, config/ns32k/pc532.h,
640         config/ns32k/sequent.h, config/ns32k/tek6000.h,
641         config/ns32k/tek6100.h, config/ns32k/tek6200.h, config/pj/lib1funcs.S,
642         config/pj/linux.h, config/pj/pj-protos.h, config/pj/pj.c,
643         config/pj/pj.h, config/pj/pj.md, config/pj/pjl.h, config/pj/t-pj,
644         config/sparc/rtems.h, config/we32k/we32k-protos.h,
645         config/we32k/we32k.c, config/we32k/we32k.h, config/we32k/we32k.md:
646         Delete file.
648 2002-05-24  Richard Henderson  <rth@redhat.com>
650         * flags.h (TLS_MODEL_GLOBAL_DYNAMIC): Set to 1.
651         * toplev.c (flag_tls_default) Set to TLS_MODEL_GLOBAL_DYNAMIC.
652         * config/i386/i386.c (tls_model_chars): Add leading space.
653         (tls_symbolic_operand): Don't bias by 1.
654         (legitimize_address): Don't unbias by 1.
656 2002-05-24  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
658         * lcm.c (optimize_mode_switching): Change bb used as indices
659         to bb->index.
661 2002-05-24  Richard Henderson  <rth@redhat.com>
663         * config/ia64/ia64.c (ia64_reorg): Use update_life_info instead
664         of update_life_info_in_dirty_blocks.
666 2002-05-24  Jakub Jelinek  <jakub@redhat.com>
668         PR other/6782
669         * final.c (get_mem_expr_from_op): Return 0 if op is NULL.
671 2002-05-24  Neil Booth  <neil@daikokuya.demon.co.uk>
673         PR preprocessor/6780
674         * cppmacro.c (enter_macro_context): Clear state.angled_headers.
676 2002-05-24  Jim Blandy  <jimb@redhat.com>
678         * dwarf2out.c (dwarf2out_finish): Don't forget to emit a final
679         entry with a type code of zero, marking the end of the compilation
680         unit's macro info.
682 2002-05-24  Richard Henderson  <rth@redhat.com>
684         * varasm.c (asm_output_bss): Always output one byte.
685         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_LOCAL): Likewise.
687 2002-05-24  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
689         * tree.c (decl_type_context): Return NULL_TREE if decl's context is a
690         namespace.
692 2002-05-24  Andreas Jaeger  <aj@suse.de>
694         * ggc-page.c (alloc_page): Cast variables of type size_t to
695         unsigned long, adjust printf format string.
696         (ggc_alloc): Likewise.
697         (ggc_print_statistics): Likewise.
698         (ggc_print_statistics): Correct printf format string for SCALE to
699         use unsigned long.
701 2002-05-24  Danny Smith  <dannysmith@users.sourceforge.net>
703         * config/i386/mingw32.h (CPP_SPEC): Remove -remap.
705 2002-05-23  Gabriel Dos Reis  <gdr@codesourcery.com>
706             Zack Weinberg     <zack@codesourcery.com>
708         * config/i386/mingw32.h (OUTPUT_QUOTED_STRING): Properly output
709         quoted strings.
710         * dwarf2out.c (lookup_filename): Properly quote filename in .file
711         directive in assembly file.
712         * config/m68k/dpx2.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
713         * config/m88k/m88k.h (ASM_OUTPUT_SOURCE_FILENAME): Likewise.
714         * config/pj/pj.h (ASM_FILE_START): Likewise.
715         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
716         * config/avr/avr.c (asm_file_end): Likewise.
717         * toplev.c (output_quoted_string): Handle possibly signed plain
718         char.
719         * toplev.h (output_clean_symbol_name): Declare
720         * toplev.c (output_clean_symbol_name): Define.
721         * config/alpha/alpha.c (unicosmk_output_module_name): Use it.
722         * config/1750a/1750a.h (ASM_FILE_START): Likewise.
724 2002-05-24  Alan Modra  <amodra@bigpond.net.au>
726         * config/rs6000/rs6000.c (output_toc): Mask longs to 32 bits.
728 2002-05-23  Vladimir Makarov  <vmakarov@redhat.com>
730         * genautomata.c (reserv_sets_hash_value): Use shift equal to 3/4
731         of size of unsigned.
733 2002-05-23  Richard Henderson  <rth@redhat.com>
735         * configure.in (HAVE_AS_TLS): New test.
736         * config.in, configure: Rebuild.
737         * config/i386/i386.c (TARGET_HAVE_TLS): Set if HAVE_AS_TLS.
738         (ix86_tls_dialect_string, ix86_tls_dialect): New.
739         (override_options): Set it.
740         (tls_model_chars, tls_symbolic_operand): New.
741         (tls_symbolic_operand_1, global_dynamic_symbolic_operand): New.
742         (local_dynamic_symbolic_operand, initial_exec_symbolic_operand): New.
743         (local_exec_symbolic_operand): New.
744         (get_pic_label_name): Merge into output_set_got.
745         (ix86_asm_file_end): Emit pic_label_name if defined.
746         (legitimate_constant_p, constant_address_p): New.
747         (legitimate_pic_operand_p): New.
748         (legitimate_pic_address_disp_p): Handle GOTTPOFF, NTPOFF, DTPOFF.
749         (legitimate_address_p): Likewise.
750         (ix86_encode_section_info): Rename from i386_; handle tls decls.
751         (ix86_strip_name_encoding): New.
752         (get_thread_pointer): New.
753         (legitimize_address): Handle tls symbols.
754         (output_pic_addr_const): Handle GOTTPOFF, TPOFF, NTPOFF, DTPOFF.
755         Remove UNSPEC_PLT.
756         (struct machine_function): Add some_ld_name.
757         (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Set it.
758         (print_operand) [&]: Use it.  Handle UNSPEC_TP.
759         (output_addr_const_extra): New.
760         (maybe_get_pool_constant): New.
761         (ix86_split_to_parts): Use it.
762         (ix86_expand_move): Handle tls symbols.
763         (ix86_tls_get_addr): New.
764         * config/i386/i386.h (TARGET_GNU_TLS, TARGET_SUN_TLS): New.
765         (TARGET_OPTIONS): Add tls-dialect.
766         (CONSTANT_ADDRESS_P): Use new out-of-line function.
767         (LEGITIMATE_CONSTANT_P): Likewise.
768         (LEGITIMATE_PIC_OPERAND_P): Likewise.
769         (TARGET_STRIP_NAME_ENCODING): New.
770         (ASM_OUTPUT_LABELREF): New.
771         (PRINT_OPERAND_PUNCT_VALID_P): Add '&'.
772         (OUTPUT_ADDR_CONST_EXTRA): New.
773         (PREDICATE_CODES): Update.
774         (ix86_tls_dialect, ix86_tls_dialect_string): New.
775         * config/i386/i386.md: Regroup and renumber unspec constants.
776         (tls_global_dynamic_gnu, tls_global_dynamic_sun): New.
777         (tls_local_dynamic_base_gnu, tls_local_dynamic_base_sun): New.
778         (tls_global_dynamic, tls_local_dynamic_base): New.
779         (tls_local_dynamic_once): New.
780         * config/i386/i386-protos.h: Update.
782 2002-05-23  Richard Henderson  <rth@redhat.com>
784         * genemit.c (gen_insn): Print file:lineno comment before function.
785         (main): likewise.
786         * gensupport.c (struct queue_elem): Add filename member.
787         (queue_pattern): Initialize it; update all callers.
788         (process_include): Don't free filename.
789         (read_md_rtx): Set read_rtx_filename.
791 2002-05-23  Hans Boehm  <Hans_Boehm@hp.com>
793         * config/ia64/linux.h (IA64_GATE_AREA_END): Adjust for 64K pages.
795 2002-05-23  Richard Henderson  <rth@redhat.com>
797         * config/i386/i386.c (output_set_got): Fix typo in pic no-deep case.
799 2002-05-23  Richard Henderson  <rth@redhat.com>
801         * doc/extend.texi (C++98 Thread-Local Edits): Update with
802         commentary from Mark.
804 2002-05-23  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
806         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1):
807         Use FOR_EACH_BB macros to iterate over basic block chain.
808         * cfg.c (clear_edges, clear_bb_flags, dump_flow_info,
809         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges):
810         Likewise.
811         * cfganal.c (set_edge_can_fallthru_flag, flow_call_edges_add,
812         find_unreachable_blocks, create_edge_list, verify_edge_list,
813         remove_fake_edges, add_noreturn_fake_exit_edges,
814         flow_preorder_transversal_compute, flow_dfs_compute_reverse_execute):
815         Likewise.
816         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
817         find_sub_basic_blocks): Likewise.
818         * cfgcleanup.c (try_optimize_cfg, delete_unreachable_blocks):
819         Likewise.
820         * cfglayout.c (record_effective_endpoints, cleanup_unconditional_jumps):
821         Likewise.
822         * cfgloop.c (flow_loops_cfg_dump, flow_loops_find):
823         Likewise.
824         * cfgrtl.c (compute_bb_for_insn, tidy_fallthru_edges,
825         commit_edge_insertions, commit_edge_insertions_watch_calls,
826         print_rtl_with_bb, verify_flow_info, purge_all_dead_edges): Likewise.
827         * combine.c (combine_instructions, reg_dead_at_p): Likewise.
828         * conflict.c (conflict_graph_compute): Likewise.
829         * df.c (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
830         df_modified_p, df_refs_unlink, df_dump): Likewise.
831         * dominance.c (calc_dfs_tree, calculate_dominance_info): Likewise.
832         * final.c (compute_alignments): Likewise.
833         * flow.c (update_life_info, update_life_info_in_dirty_blocks,
834         delete_noop_moves, calculate_global_regs_live, allocate_bb_life_data,
835         count_or_remove_death_notes): Likewise.
836         * gcse.c (oprs_unchanged_p, record_last_reg_set_info,
837         compute_hash_table, compute_kill_rd, compute_rd, compute_ae_kill,
838         classic_gcse, compute_transp, cprop, compute_pre_data,
839         compute_transpout, invalidate_nonnull_info,
840         delete_null_pointer_checks_1, delete_null_pointer_checks,
841         compute_code_hoist_vbeinout, hoist_code, compute_ld_motion_mems,
842         compute_store_table, build_store_vectors, store_motion): Likewise.
843         * global.c (global_conflicts, mark_elimination): Likewise.
844         * graph.c (print_rtl_graph_with_bb): Likewise.
845         * haifa-sched.c (sched_init): Likewise.
846         * ifcvt.c (if_convert): Likewise.
847         * lcm.c (compute_antinout_edge, compute_laterin, compute_insert_delete,
848         compute_available, compute_nearerout, compute_rev_insert_delete,
849         optimize_mode_switching): Likewise.
850         * local-alloc.c (local_alloc, update_equiv_regs): Likewise.
851         * predict.c (estimate_probability, note_prediction_to_br_prob,
852         propagate_freq, counts_to_freqs, expensive_function_p,
853         estimate_bb_frequencies): Likewise.
854         * profile.c (instrument_edges, get_exec_counts,
855         compute_branch_probabilities, compute_checksum, branch_prob,
856         find_spanning_tree): Likewise.
857         * recog.c (split_all_insns, peephole2_optimize): Likewise.
858         * reg-stack.c (reg_to_stack, convert_regs_entry, convert_regs):
859         Likewise.
860         * regclass.c (scan_one_insn, regclass): Likewise.
861         * regmove.c (mark_flags_life_zones, regmove_optimize,
862         record_stack_memrefs): Likewise.
863         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Likewise.
864         * reload1.c (reload, reload_combine, fixup_abnormal_edges): Likewise.
865         * resource.c (find_basic_block): Likewise.
866         * sched-ebb.c (schedule_ebbs): Likewise.
867         * sched-rgn.c (is_cfg_nonregular, build_control_flow,
868         find_single_block_region, find_rgns, schedule_insns)
869         * sibcall.c (optimize_sibling_and_tail_recursive_call)
870         * ssa-ccp.c (optimize_unexecutable_edges,
871         ssa_ccp_df_delete_unreachable_insns): Likewise.
872         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
873         * ssa.c (find_evaluations, compute_dominance_frontiers_1,
874         rename_block, convert_to_ssa, compute_conservative_reg_partition,
875         compute_coalesced_reg_partition, rename_equivalent_regs,
876         convert_from_ssa): Likewise.
877         * config/ia64/ia64.c (emit_predicate_relation_info, process_epilogue,
878         process_for_unwind_directive): Likewise.
880         * df.c (FOR_ALL_BBS): Removed.
881         * gcse.c (struct null_pointer_info): Type of current_block field
882         changed.
883         (struct reg_avail_info): Type of last_bb field changed.
884         * config/ia64/ia64.c (block_num): Removed.
885         (need_copy_state): Type changed.
886         (last_block): New.
888 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
890         * cppinit.c (mark_named_operators): Split out from init_builtins.
891         (cpp_finish_options): Call it from here instead.
893 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
895         * builtin-attrs.def: Update copyright years.
896         (ATTR_NONNULL): New attribute identifier.
897         (ATTR_NONNULL_1, ATTR_NONNULL_2, ATTR_NONNULL_3): New
898         attribute tree lists.
899         (DEF_FORMAT_ATTRIBUTE): Chain a nonnull attribute for the
900         format operand.
901         (ATTR_FORMAT_ARG_1, ATTR_FORMAT_ARG_2): Use...
902         (DEF_FORMAT_ARG_ATTRIBUTE): ...this to generate format_arg
903         attribute lists.  Chain the appropriate nonnull attribute.
904         * c-format.c (check_format_arg): Remove null format string
905         warning.
906         * testsuite/gcc.dg/format/null-1.c: New test.
908 2002-05-23  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
910         * Makefile.in (ADAC): Define.
911         (SYSLIBS): Define.
912         (.SUFFIXES): Move before language makefile fragments.
913         (STAGE2_FLAGS_TO_PASS): Use stage CC as ADAC.
915 2002-05-23  Mark Mitchell  <mark@codesourcery.com>
917         * varasm.c (make_decl_rtl): Don't allow weak variables to be
918         placed in common.
920 Thu May 23 19:43:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
922         * cfg.c (dump_flow_info): Print results of
923         maybe_hot/probably_never_executed predicates.
924         * toplev.c (open_dump_file): Print function frequency.
926 2002-05-23  David S. Miller  <davem@redhat.com>
928         * cse.c (approx_reg_cost_1, approx_reg_cost): Recode to not use
929         regsets.
931 2002-05-23  Jason Thorpe  <thorpej@wasabisystems.com>
933         * c-common.c (warn_nonnull): Declare.
934         (c_common_attribute_table): Add "nonnull" attribute.
935         (handle_nonnull_attribute, check_function_nonnull, nonnull_check_p,
936         check_nonnull_arg, get_nonnull_operand, check_function_arguments,
937         check_function_arguments_recurse): New functions.
938         * c-common.h (warn_nonnull): Declare extern.
939         (check_function_arguments, check_function_arguments_recurse): New
940         prototypes.
941         * c-decl.c (c_decode_option): Add -Wnonnull option.
942         * c-format.c (set_Wformat): Set warn_nonnull if enabling
943         format checking.
944         (format_check_context): New structure.
945         (check_format_info_recurse): Remove recursion and rename to...
946         (check_format_arg): ...this.  Update comment.
947         (check_format_info): Use check_function_arguments_recurse.
948         * c-typeck.c (build_function_call): Call check_function_arguments
949         instead of check_function_format.
950         * doc/extend.texi: Document "nonnull" attribute.
951         * doc/invoke.texi: Docuemnt -Wnonnull option.
952         * testsuite/gcc.dg/nonnull-1.c: New test.
953         * testsuite/gcc.dg/nonnull-2.c: New test.
955 2002-05-23  David S. Miller  <davem@redhat.com>
957         * basic-block.h (CLEANUP_NO_INSN_DEL): Define it.
958         * cfgcleanup.c (cleanup_cfg): If it is set do not
959         attempt to delete trivially dead insns.
960         * except.c (finish_eh_generation): Pass it to cleanup_cfg.
961         * toplev.c (rest_of_compilation): Document non-trivial aspect
962         the RTL before optimize_save_area_alloca is run.
964 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
966         * c-lex.c (indent_level): Remove.
967         (cb_file_change, c_lex): Remove indent level handling.
968         * c-lex.h (indent_level): Remove.
969         * input.h (struct file_stack): Remove indent_level.
970         * toplev.c (push_srcloc): Remove indent_level handling.
972 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
974         PR target/6753
975         * config/i386/i386.md (sse_movdfcc, sse_movdfcc_eq): Use Y instead
976         of x in constraints for clarity.
977         (sse_mov?fcc split): abort if op2 == op3.
978         (sse_movsfcc_const0_1, sse_movsfcc_const0_2, sse_movsfcc_const0_3,
979         sse_movsfcc_const0_4): Add earlyclobber.
980         (sse_movdfcc_const0_1, sse_movdfcc_const0_2, sse_movdfcc_const0_3,
981         sse_movdfcc_const0_4): Likewise.  Use DFmode, not SFmode.
982         Use Y instead of x in constraints.
984 2002-05-23  Richard Henderson  <rth@redhat.com>
986         * doc/extend.texi (C99 Thread-Local Edits): New subsection.
987         (C++98 Thread-Local Edits): New subsection.
989         * config/i386/i386.c, config/i386/i386.h: Tidy comments and whitespace.
990         (ix86_arch): Set type to enum processor_type.
992         * config/i386/i386.md (movsi_1, movdi_1_rex64): Use
993         LEGITIMATE_PIC_OPERAND_P not SYMBOLIC_CONST.
995 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
997         * configure.in: Fix as version test for binutils 2.12.1 releases
998         (without dates).
999         * configure: Rebuilt.
1001 2002-05-23  Richard Henderson  <rth@redhat.com>
1003         * config/i386/i386.c (get_pic_label_name): New.
1004         (load_pic_register): Remove.
1005         (output_set_got): New.
1006         (ix86_expand_prologue): Use gen_set_got; mark insn REG_MAYBE_DEAD.
1007         * config/i386/i386.md (UNSPEC_SET_GOT): New.
1008         (UNSPECV_PROLOGUE_SET_GOT, UNSPECV_PROLOGUE_GET_PC): Remove.
1009         (prologue_set_got, prologue_get_pc): Remove.
1010         (set_got, set_got_nopic, set_got_deep, set_got_nodeep): New.
1011         (builtin_setjmp_receiver): Use gen_set_got.
1012         * config/i386/i386-protos.h: Update.
1014 Thu May 23 09:22:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1016         * gcse.c (hash_expr): Do not use alias set for hashing.
1018 2002-05-22  Kevin Buettner  <kevinb@redhat.com>
1020         * dbxout.c (dbxout_class_name_qualifiers): New function.
1021         (dbxout_symbol): Output class/struct qualifiers for a .stabs entry.
1023 2002-05-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1025         * cpperror.c (_cpp_begin_message): No special casing
1026         of CPP_FATAL_LIMIT.
1027         * cppinit.c (sanity_checks): s/DL_FATAL/DL_ICE/.
1028         (output_deps, cpp_handle_option, cpp_post_options): Use DL_ERROR.
1029         * cpplib.c (do_include_common): Use DL_ERROR.
1030         * cpplib.h (CPP_FATAL_LIMIT, CPP_FATAL_ERRORS, DL_FATAL): Remove.
1031         (DL_ICE): Renumber.
1032         * fix-header.c (read_scan_file): Update.
1034 2002-05-22  Richard Henderson  <rth@redhat.com>
1036         * config/i386/i386.c (ix86_expand_call): New function, extracted
1037         from md call patterns.  Add pic_offset_table_rtx to
1038         CALL_INSN_FUNCTION_USAGE when needed.
1039         * config/i386/i386.md (call_pop, call): Use ix86_expand_call.
1040         (call_value_pop, call_value, untyped_call): Likewise.
1041         (call_exp, call_value_exp): Remove.
1042         * config/i386/i386-protos.h: Update.
1044 2002-05-22  Richard Henderson  <rth@redhat.com>
1046         * varasm.c (default_section_type_flags): Check for VAR_DECL
1047         before using DECL_THREAD_LOCAL.
1049 2002-05-22  David Edelsohn  <edelsohn@gnu.org>
1051         * config/rs6000/aix43.h (LINK_SPEC): Add PE initializer.
1052         (STARTFILE_SPEC): Delete PE crt0.o.
1053         * config/rs6000/aix51.h: Same.
1054         * config/rs6000/rs6000.c: Use TARGET_XCOFF, not OBJECT_FORMAT_COFF.
1055         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Append [DS] to
1056         function descriptor symbol.  Use RS6000_OUTPUT_BASENAME.
1057         (ASM_OUTPUT_DEF_FROM_DECLS): Use RS6000_OUTPUT_BASENAME.
1058         * config/rs6000/xcoff.h (ASM_OUTPUT_DEF): Define.
1060 2002-05-22  Richard Henderson  <rth@redhat.com>
1062         * varasm.c (default_section_type_flags): Handle tls data and
1063         default sections.
1064         (default_unique_section): Handle tls sections.
1066 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
1068         * configure.in (CROSS): Define NATIVE_CROSS.
1069         * configure: Regenerate.
1070         * gcc.c (STARTFILE_PREFIX_SPEC): Define.
1071         (startfile_prefix_spec): New var.
1072         (static_specs): Add startfile_prefix_spec.
1073         (do_spec_2): Split out from..
1074         (do_spec): ..here.
1075         (main): Process startfile_prefix_spec.
1076         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC) Change name of
1077         dynamic linker.
1078         (STARTFILE_PREFIX_SPEC): Define.
1079         (STARTFILE_LINUX_SPEC, ENDFILE_LINUX_SPEC): Rewrite without
1080         absolute paths.
1082 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1084         * cpperror.c: Fix formatting.
1085         * cppexp.c: Likewise.
1086         * cppfiles.c: Likewise.
1087         * cpphash.c: Likewise.
1088         * cpphash.h: Likewise.
1089         * cppinit.c: Likewise.
1090         * cpplex.c: Likewise.
1091         * cpplib.c: Likewise.
1092         * cppmacro.c: Likewise.
1093         * cppmain.c: Likewise.
1094         * cppspec.c: Likewise.
1096 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1098         * combine.c (force_to_mode): Use gen_int_mode.
1099         Don't clear CONST_INT bits outside of mode.
1101 2002-05-22  Richard Henderson  <rth@redhat.com>
1103         * fixinc/inclhack.def (thread_keyword): Match __thread as last arg.
1104         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1106 2002-05-22  Jakub Jelinek  <jakub@redhat.com>
1108         PR c/6643
1109         * emit-rtl.c (widen_memory_access): Only call compare_tree_int
1110         if DECL_SIZE_UNIT is INTEGER_CST.
1112 2002-05-22  Richard Henderson  <rth@redhat.com>
1114         * flow.c (life_analysis): Delete broken reg_label check.
1116 2002-05-22  Richard Henderson  <rth@redhat.com>
1118         * fixinc/inclhack.def (thread_keyword): Allow as any prototype arg.
1119         * fixinc/fixincl.x, fixinc/tests/base/pthread.h: Rebuild.
1121 Wed May 22 18:39:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
1123         * t-sh (LIB2FUNCS_EXTRA): Now embed-bb.c.
1124         (embed-bb.c): New rule.
1125         * t-sh64 (LIB2FUNCS_EXTRA): Don't change.
1126         * config/sh/embed_bb.c: Delete.
1128 Wed May 22 18:25:29 2002  J"orn Rennecke <joern.rennecke@superh.com>
1130         * c-common.c (cb_register_builtins): Don't indent '#' of #define.
1132 2002-05-22  Kazu Hirata  <kazu@cs.umass.edu>
1134         * config/h8300/h8300.md (*andorqi3): New.
1136 2002-05-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1138         PR preprocessor/6517
1139         * Makefile.in: Update.
1140         * c-common.c (c_common_post_options): Add preprocessor
1141         errors to the error count.
1142         * c-lang.c (c_post_options): Kill.
1143         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1144         * hooks.h: Add header guards.
1145         * langhooks-def.h: Include hooks.h.
1146         (LANG_HOOKS_POST_OPTIONS): Update.
1147         * langhooks.h (struct lang_hooks): Update post_options.
1148         * toplev.c (parse_options_and_default_flags): Update.
1149 objc:
1150         * objc-lang.c (objc_post_options): Kill.
1151         (LANG_HOOKS_POST_OPTIONS): Use c_common_post_options.
1153 2002-05-21  Bruce Korb  <bkorb@gnu.org>
1155         * fixinc/tests/base/pthread.h(THREAD_KEYWORD_CHECK): add fix check
1156         * fixinc/inclhack.def(thread_keyword): use c_fix = format.
1157         * fixinc/fixincl.x: regen.
1159 2002-05-21  Kazu Hirata  <kazu@cs.umass.edu>
1161         * cfgbuild.c: Fix formatting.
1162         * cfg.c: Likewise.
1163         * cfgcleanup.c: Likewise.
1164         * cfglayout.c: Likewise.
1165         * cfgloop.c: Likewise.
1166         * cfgrtl.c: Likewise.
1168 2002-05-21  Richard Henderson  <rth@redhat.com>
1170         * c-common.h (enum rid): Add RID_THREAD.
1171         * c-decl.c (start_decl): Do not set DECL_COMMON for tls variables.
1172         (grokdeclarator): Grok __thread.
1173         * c-parse.in (reswords): Add __thread.
1174         (rid_to_yy): Add RID_THREAD.
1176         * tree.h (DECL_THREAD_LOCAL): New.
1177         (struct tree_decl): Add thread_local_flag.
1178         * print-tree.c (print_node): Dump DECL_THREAD_LOCAL.
1179         * tree.c (staticp): TLS variables are not static.
1181         * target-def.h (TARGET_HAVE_TLS): New.
1182         * target.h (have_tls): New.
1183         * output.h (SECTION_TLS): New.
1184         * varasm.c (assemble_variable): TLS variables can't be common for now.
1185         (default_section_type_flags): Handle .tdata and .tbss.
1186         (default_elf_asm_named_section): Handle SECTION_TLS.
1187         (categorize_decl_for_section): Handle DECL_THREAD_LOCAL.
1189         * flags.h (flag_tls_default): Declare.
1190         * toplev.c (flag_tls_default): Define.
1191         (display_help): Display help for it.
1192         (decode_f_option): Set it.
1194         * doc/extend.texi (Thread-Local): New node describing language-level
1195         thread-local storage.
1196         * doc/invoke.texi (-ftls-model): Document.
1198         * fixinc/inclhack.def (thread_keyword): New.
1199         * fixinc/fixincl.x: Rebuild.
1201 2002-05-21  Jeffrey A Law  <law@redhat.com>
1203         * optabs.c (expand_binop): For double-word integer multiplies,
1204         do not compute intermediate results into something that is
1205         not a register (such as a SUBREG or MEM).
1207         * i386.c (ix86_sched_reorder_ppro): Fix typo/thinko.
1208         (ix86_sched_reorder): Make sure to initialize scheduling
1209         data even when there's only one insn in the ready queue.
1211 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1213         * genautomata.c (reserv_sets_hash_value): Fix a typo.
1215 2002-05-21  Vladimir Makarov  <vmakarov@redhat.com>
1217         * genautomata.c (reserv_sets_hash_value): Define hash_value as
1218         set_el_t.  Transform the hash value into unsigned.
1219         (output_cycle_reservs): Fix bug with output of repeated `nothing'.
1220         (transform_3): Add code to process `(A,B)+(D,E)'.
1222 2002-05-21  NIIBE Yutaka  <gniibe@m17n.org>
1224         * reload1.c (do_output_reload): Run delete_output_reload
1225         only if optimizing.
1227 2002-05-21  Roger Sayle  <roger@eyesopen.com>
1229         PR middle-end/6600
1230         * expr.c (STORE_MAX_PIECES): New macro to avoid immediate constants
1231         larger than INTEGER_CST.  (store_by_pieces_1): Use it here...
1232         (can_store_by_pieces): ... and here to limit the largest mode used.
1233         Add a comment to document this function.
1235 2002-05-21  Richard Henderson  <rth@redhat.com>
1237         * flow.c (life_analysis): Fix test for deleted label.
1239 2002-05-21  Neil Booth  <neil@daikokuya.demon.co.uk>
1241         * doc/tm.texi: Fix typo.
1243 2002-05-21  Zack Weinberg  <zack@codesourcery.com>
1245         * c-common.c (c_common_init): Set options->unsigned_char from
1246         flag_signed_char.
1247         (cb_register_builtins): Define __STRICT_ANSI__ and
1248         __CHAR_UNSIGNED__ here...
1249         * cppinit.c (init_builtins): Not here.
1250         (cpp_create_reader): unsigned_char option defaults to 0, not
1251         !DEFAULT_SIGNED_CHAR.
1252         (COMMAND_LINE_OPTIONS, cpp_handle_option): Lose -fsigned-char
1253         and -funsigned-char.
1255         * cpphash.h (struct spec_nodes): Kill n__STRICT_ANSI__.
1256         * cpphash.c (_cpp_init_hashtable): Don't set it.
1257         * cppmacro.c (builtin_macro) [BT_STDC]: Use the language setting
1258         directly.  Clarify comment.
1260 2002-05-21  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1262         * bb-reorder.c (make_reorder_chain_1): Use prev_bb/next_bb to get to
1263         neighbouring basic blocks.  Use ENTRY_BLOCK_PTR->next_bb instead of
1264         BASIC_BLOCK (0).  Use EXIT_BLOCK_PTR->prev_bb instead of
1265         BASIC_BLOCK (n_basic_blocks - 1).
1266         * cfganal.c (can_fallthru, flow_call_edges_add,
1267         flow_preorder_transversal_compute): Too.
1268         * cfgbuild.c (make_edges, find_basic_blocks, find_many_sub_basic_blocks,
1269         find_sub_basic_blocks): Too.
1270         * cfgcleanup.c (try_simplify_condjump, try_optimize_cfg): Too.
1271         * cfglayout.c (skip_insns_after_block, fixup_reorder_chain,
1272         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge): Too.
1273         * cfgrtl.c (tidy_fallthru_edges, verify_flow_info): Too.
1274         * combine.c (this_basic_block): Type changed to basic_block.
1275         (combine_instructions, set_nonzero_bits_and_sign_copies, try_combine,
1276         nonzero_bits, num_sign_bit_copies, get_last_value_validate,
1277         get_last_value, distribute_notes, distribute_links): Too.
1278         * final.c (compute_alignments): Too.
1279         * flow.c (regno_uninitialized, regno_clobbered_at_setjmp): Too.
1280         * function.c (thread_prologue_and_epilogue_insns): Too.
1281         * gcse.c (compute_code_hoist_vbeinout): Too.
1282         * global.c (build_insn_chain): Too.
1283         * ifcvt.c (find_if_block, find_cond_trap): Too.
1284         * predict.c (last_basic_block_p, note_prediction_to_br_prob): Too.
1285         * regmove.c (regmove_optimize): Too.
1286         * resource.c (find_basic_block): Too.
1287         * sched-ebb.c (schedule_ebbs): Too.
1288         * ssa-dce.c (find_control_dependence, find_pdom): Too.
1290 2002-05-21  Andreas Jaeger  <aj@suse.de>
1292         * cppinit.c (sanity_checks): Avoid printf mismatch warnings.
1294 2002-05-21  Richard Henderson  <rth@redhat.com>
1296         * reg-stack.c (swap_rtx_condition, subst_stack_regs_pat): Use
1297         unspec names, not numbers.
1299 2002-05-21  Joseph S. Myers  <jsm28@cam.ac.uk>
1301         * doc/sourcebuild.texi: Mention snapshot-README and
1302         snapshot-index.html as needing updating for new front ends.
1304 2002-05-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1306         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Avoid warnings when
1307         disabling checking, and avoid multiple evaluation of RTX.
1309 2002-05-21  Richard Earnshaw  <rearnsha@arm.com>
1311         * bitmap.c (bitmap_find_bit): Return early if we have the correct
1312         element cached.
1314 Tue May 21 10:51:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1316         * profile.c (gen_edge_profiler):  Set alias set before the memory is
1317         used.
1319 2002-05-20  David S. Miller  <davem@redhat.com>
1321         * cselib.c (max_value_regs): New.
1322         (cselib_lookup, cselib_invalidate_regno): Initialize it when
1323         adding new entries to the REG_VALUES table and we are dealing with
1324         a hard register.
1325         (clear_table): Initialize it.
1326         (cselib_invalidate_regno): Use it to determine which hard
1327         registers to scan when mode is not VOIDmode.
1329 2002-05-20  Duraid Madina   <duraid@fl.net.au>
1331         * tradcpp.c (fixup_newlines): Use old-style function header.
1333 2002-05-20  Krister Walfridsson  <cato@df.lth.se>
1335         * reload1.c (reload_cse_simplify): Fix typo in rtx code check.
1337 2002-05-20  H.J. Lu  (hjl@gnu.org)
1339         Base on suggestions from Zhang Fuxin <fxzhang@ict.ac.cn>:
1341         * config/mips/mips.h (DFMODE_NAN): Defined.
1342         (SFMODE_NAN): Likewise.
1344 2002-05-20  Dale Johannesen  <dalej@apple.com>
1346         * combine.c (cant_combine_insn_p):  Back out my
1347         previous patch.
1349 2002-05-20  Kazu Hirata  <kazu@cs.umass.edu>
1351         * params.c: Fix formatting.
1352         * params.h: Likewise.
1353         * predict.c: Likewise.
1354         * prefix.c: Likewise.
1355         * print-rtl.c: Likewise.
1356         * print-tree.c: Likewise.
1357         * profile.c: Likewise.
1359 2002-05-20  H.J. Lu  (hjl@gnu.org)
1361         * gcc/config/mips/linux.h (SDB_DEBUGGING_INFO): Undefine.
1363 2002-05-20  Nick Clifton  <nickc@cambridge.redhat.com>
1365         * config/arm/arm-wince-pe.h (ASM_SPEC): Pass -mcpu and -march
1366         switches straight on to the assembler, do not abbreviate them.
1367         * config/arm/elf.h (ASM_SPEC): As above.
1368         * config/arm/semi.h (ASM_SPEC): As above.
1369         * config/arm/unknown-elf-oabi.h (ASM_SPEC): As above.
1370         * config/arm/xscale-coff.h (SUBTARGET_ASM_SPEC): Pass
1371         -mcpu=xscale on to the assembler by default.
1372         * config/arm/xscale-elf.h (SUBTARGET_ASM_SPEC): As above.
1374 2002-05-20  Richard Henderson  <rth@redhat.com>
1376         * cse.c (canon_hash): Reorder do_not_record test.  Always
1377         allow pic_offset_table_rtx.
1379 2002-05-19  Toon Moene  <toon@moene.indiv.nluug.nl>
1381         * optabs.c (expand_cmplxdiv_wide): Use complex_part_zero_p.
1382         (expand_binop): Ditto (3 times).
1384 2002-05-19  Mark Mitchell  <mitchell@doubledemon.codesourcery.com>
1386         * Makefile.in (distclean): Remove QMTest stuff.
1387         (QMTEST_PATH): New variable.
1388         (QMTESTFLAGS): Likewise.
1389         (QMTESTRUNFLAGS): Likewise.
1390         (QMTEST): Likewise.
1391         (QMTEST_GPP_TESTS): Likewise.
1392         (QMTEST_DIR): Likewise.
1393         (QMTEST_DIR/context): New target.
1394         (qmtest-g++): Likeise.
1395         (qmtest-gui): Likewise.
1396         (QMTEST_DIR/gpp-expected.qmr): Likewise.
1398 2002-05-19  Aldy Hernandez  <aldyh@redhat.com>
1400         * config/rs6000/rs6000.h (FUNCTION_VALUE): Only return vectors in
1401         an altivec register if TARGET_ALTIVEC.
1403         * config/rs600/rs6000.c (rs6000_emit_move): Change VECTOR_MODE_P
1404         to ALTIVEC_VECTOR_MODE.
1405         (rs6000_va_arg): Only vectors of type AltiVec are 16 byte aligned.
1406         (rs6000_va_arg): Vectors may go in registers if they are not
1407         altivec vectors.
1409 2002-05-19  Kazu Hirata  <kazu@cs.umass.edu>
1411         * protoize.c: Fix formatting.
1413 2002-05-19  Richard Henderson  <rth@redhat.com>
1415         * gensupport.c (init_include_reader): Merge into ...
1416         (process_include): ... here.  Simplify composite path creation.
1417         Plug memory leaks.  Fix file/line number tracking.  Do not
1418         process_define_cond_exec.  Return void.
1419         (process_rtx): Don't check process_include return value.
1421 2002-05-20  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1423         * basic_block.h (struct basic_block_def): Added prev_bb and next_bb
1424         fields.
1425         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
1426         traversing basic block chain.
1427         (create_basic_block_structure, create_basic_block): Declaration changed.
1428         (link_block, unlink_block): Declare.
1429         * cfg.c (entry_exit_blocks): Initialize new fields.
1430         (link_block, unlink_block): New.
1431         (expunge_block_nocompact): Unlink basic block.
1432         (dump_flow_info): Print prev_bb/next_bb fields.
1433         * cfgbuild.c (find_basic_blocks_1, find_basic_blocks): Modified.
1434         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Modified.
1435         * cfglayout.c (fixup_reorder_chain, cfg_layout_duplicate_bb): Modified.
1436         * cfgrtl.c (create_basic_block_structure, create_basic_block,
1437         split_block, force_nonfallthru_and_redirect, split_edge): Modified.
1438         (verify_flow_info): Check that list agrees with numbering.
1440 2002-05-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1442         * c-common.c (preprocessing_asm): New macro.
1443         * c-lex.h (builtin_define, builtin_assert): Use pfile.
1444 doc:
1445         * tm.texi: Update.
1446 config/alpha:
1447         * alpha.h (CPLUSPLUS_CPP_SPEC): Remove.
1448         (CPP_SPEC): Simplify.
1449         (TARGET_CPU_CPP_BUILTINS): Update.
1450         * freebsd.h (TARGET_OS_CPP_BUILTINS): New.
1451         (CPP_SPEC): Simplify.
1452         * linux.h (CPLUSPLUS_CPP_SPEC): Remove.
1453         (TARGET_OS_CPP_BUILTINS): Update.
1454         * osf.h (CPP_XFLOAT_SPEC): Kill.
1455         (TARGET_OS_CPP_BUILTINS): Update.
1456         (CPP_SUBTARGET_SPEC, SUBTARGET_EXTRA_SPECS): Simplify.
1457         * osf5.h (CPP_XFLOAT_SPEC): Kill.
1458         * vms.h (CPP_SUBTARGET_SPEC): Kill.
1459         (TARGET_OS_CPP_BUILTINS): Update.
1461 2002-05-19  Richard Henderson  <rth@redhat.com>
1463         * varasm.c (default_binds_local_p): Fix typo.
1465 2002-05-19  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1467         * config/avr/avr.c (machine_dependent_reorg): Sign extend the
1468         CONST_INT operand to the correct mode after adding 1 to it.
1470 2002-05-19  Mark Mitchell  <mark@codesourcery.com>
1472         * config.gcc (powerpc-wrs-windiss*): New target.
1474 2002-05-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1476         * config/rs6000/rs6000.md (ashrdi3_no_power): New.
1477         (ashrdi3): Use it.
1479 2002-05-18  Mark Mitchell  <mark@codesourcery.com>
1481         * configure.in (AC_CHECK_FUNCS): Add checks for scandir and
1482         alphasort.
1483         * config.in: Regenerated.
1484         * configure: Regenerated.
1486 2002-05-19  Richard Henderson  <rth@redhat.com>
1488         * target-def.h (TARGET_BINDS_LOCAL_P): New.
1489         * target.h (struct gcc_target): Move boolean fields to the end.
1490         Add binds_local_p.
1491         * varasm.c (default_binds_local_p): New.
1492         * output.h: Declare it.
1494         * config/alpha/alpha.c (alpha_encode_section_info): Use the new hook.
1495         * config/cris/cris.c (cris_encode_section_info): Likewise.
1496         * config/i386/i386.c (i386_encode_section_info): Likewise.
1497         * config/ia64/ia64.c (ia64_encode_section_info): Likewise.
1498         * config/sh/sh.c (sh_encode_section_info): Likewise.
1500         * doc/tm.texi (TARGET_IN_SMALL_DATA_P): New.
1501         (TARGET_BINDS_LOCAL_P): New.
1503 2002-05-19  Richard Henderson  <rth@redhat.com>
1505         * system.h (BLOCK_PROFILER, BLOCK_PROFILER_CODE,
1506         FUNCTION_BLOCK_PROFILER, FUNCTION_BLOCK_PROFILER_EXIT,
1507         MACHINE_STATE_SAVE, MACHINE_STATE_RESTORE): Poison.
1509         * toplev.c (display_help): Kill -a -ax help.
1511         * config/1750a/1750a.h, config/alpha/alpha.h,
1512         config/clipper/clipper.h, config/dsp16xx/dsp16xx.h,
1513         config/h8300/h8300.h, config/i960/i960.h, config/m68k/tower-as.h,
1514         config/m88k/m88k.h, config/vax/vax.h, config/we32k/we32k.h:
1515         (FUNCTION_BLOCK_PROFILER, BLOCK_PROFILER): Kill.
1517         * libgcc2.c [L_bb] (BLOCK_PROFILER_CODE): Kill.
1518         * config/m68k/sun3.h (BLOCK_PROFILER_CODE): Kill.
1520         * config/i386/i386-protos.h (ix86_output_block_profiler): Kill.
1521         (ix86_output_function_block_profiler): Kill.
1522         * config/m68hc11/m68hc11.c (m68hc11_block_profiler): Kill.
1523         (m68hc11_function_block_profiler): Kill.
1524         * config/m68hc11/m68hc11-protos.h: Update.
1525         * config/m88k/m88k.c (output_block_profiler): Kill.
1526         (output_function_block_profiler): Kill.
1527         * config/m88k/m88k-protos.h: Update.
1529 2002-05-19  Richard Henderson  <rth@redhat.com>
1531         * system.h (STRIP_NAME_ENCODING): Poison it.
1532         * output.h (STRIP_NAME_ENCODING): Remove.
1533         (default_strip_name_encoding): Declare.
1534         * target-def.h (TARGET_STRIP_NAME_ENCODING): New.
1535         * target.h (strip_name_encoding): New.
1536         * varasm.c (default_strip_name_encoding): New.
1538         * dwarf2asm.c, varasm.c, config/darwin.c, config/darwin.h,
1539         config/alpha/alpha.c, config/arm/pe.c, config/avr/avr.c,
1540         config/cris/cris.c, config/i386/cygwin.h, config/i386/interix.c,
1541         config/i386/winnt.c, config/m32r/m32r.h, config/mcore/mcore-elf.h,
1542         config/mcore/mcore-pe.h, config/mcore/mcore.c, config/mcore/mcore.h,
1543         config/mips/mips.c, config/mn10200/mn10200.h, config/mn10300/mn10300.h,
1544         config/pa/pa.c, config/pa/pa.h, config/pa/som.h,
1545         config/rs6000/rs6000.c, config/rs6000/sysv4.h, config/rs6000/xcoff.h,
1546         config/v850/v850.h: Use the hook, not the macro.
1548         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
1549         config/alpha/alpha.c, config/alpha/alpha.h, config/h8300/h8300.c,
1550         config/h8300/h8300.h, config/i386/cygwin.h, config/i386/i386-interix.h,
1551         config/i386/i386-protos.h, config/i386/win32.h, config/i386/winnt.c,
1552         config/ia64/ia64.c, config/ia64/ia64.h, config/m32r/m32r.c,
1553         config/m32r/m32r.h, config/mcore/mcore.c, config/mcore/mcore.h,
1554         config/pa/pa.c, config/rs6000/rs6000.c, config/rs6000/sysv4.h,
1555         config/rs6000/xcoff.h, config/sh/sh.c, config/sh/sh.h,
1556         config/v850/v850.c, config/v850/v850.h:
1557         Move STRIP_NAME_ENCODING to out-of-line function and add
1558         TARGET_STRIP_NAME_ENCODING.
1560         * config/arm/arm.c, config/arm/arm.h, config/mmix/mmix-protos.h,
1561         config/mmix/mmix.c, config/mmix/mmix.h: Replace STRIP_NAME_ENCODING
1562         with TARGET_STRIP_NAME_ENCODING referencing existing function;
1563         make function static.
1565         * xcoffout.c: Include target.h
1566         * Makefile.in (xcoffout.o): Update.
1568         * config/avr/avr.c (avr_encode_section_info): Correct prototype.
1569         * config/avr/avr.h (STRIP_NAME_ENCODING): Remove.
1570         * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Mark
1571         reloc argument unused.
1572         * config/sh/sh.c (TARGET_ENCODE_SECTION_INFO): New.
1574         * doc/tm.texi (TARGET_STRIP_NAME_ENCODING): Update from previous
1575         STRIP_NAME_ENCODING docs.
1577 2002-05-19  Andreas Jaeger  <aj@suse.de>
1579         * gengenrtl.c: Add prototype for excluded_rtx.
1581         * real.h: Add prototype for exact_real_truncate.
1583 2002-05-18  Richard Henderson  <rth@redhat.com>
1585         * system.h (ENCODE_SECTION_INFO): Poison it.
1586         * target-def.h (TARGET_ENCODE_SECTION_INFO): New.
1587         * target.h (encode_section_info): New.
1588         * varasm.c (make_decl_rtl, output_constant_def): Use it.
1589         * hooks.c (hook_tree_int_void): New.
1590         * hooks.h: Declare it.
1592         * config/darwin.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
1593         config/alpha/alpha.h, config/arm/pe.h, config/avr/avr-protos.h,
1594         config/avr/avr.c, config/avr/avr.h, config/c4x/c4x-protos.h,
1595         config/c4x/c4x.c, config/c4x/c4x.h, config/cris/cris-protos.h,
1596         config/cris/cris.c, config/cris/cris.h, config/i386/cygwin.h,
1597         config/i386/win32.h, config/ia64/ia64-protos.h, config/ia64/ia64.c,
1598         config/ia64/ia64.h, config/m32r/m32r-protos.h, config/m32r/m32r.c,
1599         config/m32r/m32r.h, config/m68hc11/m68hc11-protos.h,
1600         config/m68hc11/m68hc11.c, config/m68hc11/m68hc11.h,
1601         config/mcore/mcore-protos.h, config/mcore/mcore.c,
1602         config/mcore/mcore.h, config/mmix/mmix-protos.h, config/mmix/mmix.c,
1603         config/mmix/mmix.h, config/rs6000/rs6000-protos.h,
1604         config/rs6000/sysv4.h, config/stormy16/stormy16-protos.h,
1605         config/stormy16/stormy16.c, config/stormy16/stormy16.h:
1606         Replace ENCODE_SECTION_INFO with TARGET_ENCODE_SECTION_INFO
1607         referencing existing function.  Make function static.
1609         * config/a29k/a29k.c, config/a29k/a29k.h, config/arc/arc.c,
1610         config/arc/arc.h, config/arm/arm.c, config/arm/arm.h,
1611         config/h8300/h8300.c, config/h8300/h8300.h, config/i370/i370.c,
1612         config/i370/i370.h, config/i386/i386-interix.h, config/i386/i386.c,
1613         config/i386/i386.h, config/i386/interix.c, config/m88k/m88k.c,
1614         config/m88k/m88k.h, config/mips/mips.c, config/mips/mips.h,
1615         config/ns32k/ns32k.c, config/ns32k/ns32k.h, config/pa/pa.c,
1616         config/pa/pa.h, config/romp/romp.c, config/romp/romp.h,
1617         config/rs6000/linux64.h, config/rs6000/xcoff.h, config/s390/s390.c,
1618         config/s390/s390.h, config/sh/sh.c, config/sh/sh.h,
1619         config/sparc/sparc.c, config/sparc/sparc.h, config/v850/v850.c,
1620         config/v850/v850.h, config/vax/vax.c, config/vax/vms.h,
1621         config/xtensa/xtensa.c, config/xtensa/xtensa.h:
1622         Move ENCODE_SECTION_INFO to out-of-line function and add
1623         TARGET_ENCODE_SECTION_INFO.
1625         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Use hook, not macro.
1626         (ASM_DECLARE_OBJECT_NAME, ASM_OUTPUT_ALIGNED_DECL_LOCAL): Likewise.
1628         * config/arm/pe.h (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Rename
1629         from SUBTARGET_*
1630         (switch_to_section): Replace in_rdata case with in_readonly_data.
1632         * config/h8300/h8300.c (h8300_encode_label): Make static.
1633         * config/h8300/h8300-protos.h: Update.
1635         * config/rs6000/rs6000.c (rs6000_elf_encode_section_info): Rename
1636         from rs6000_encode_section_info; make static.
1637         (rs6000_xcoff_encode_section_info): New.
1639         * config/v850/v850.c (v850_encode_data_area): Make static.
1640         * config/v850/v850-protos.h: Update.
1642         * config/vax/vax.c: Include flags.h.
1643         (vms_select_section): Fix typo.
1645         * doc/tm.texi (TARGET_ENCODE_SECTION_INFO): Update from previous
1646         ENCODE_SECTION_INFO docs.
1648 2002-05-18  Richard Henderson  <rth@redhat.com>
1650         * config/darwin.h (DARWIN_REGISTER_TARGET_PRAGMAS): Rename from
1651         REGISTER_TARGET_PRAGMAS.
1652         * config/rs6000/darwin.h (REGISTER_TARGET_PRAGMAS): Redefine.
1654         * config.gcc: Do not use rs6000-c.c on powerpc-darwin.
1656 2002-05-18  Richard Henderson  <rth@redhat.com>
1658         * system.h (SELECT_RTX_SECTION): Poison.
1659         * target-def.h (TARGET_ASM_SELECT_RTX_SECTION): New.
1660         * target.h (select_rtx_section): New.
1661         * varasm.c (output_constant_pool): Use it.
1662         (default_select_rtx_section, default_elf_select_rtx_section): New.
1663         * output.h: Declare them.
1665         * config/darwin.h (SELECT_RTX_SECTION): Move ...
1666         * config/darwin.c (machopic_select_rtx_section): ... here.
1667         * config/darwin-protos.h: Update.
1669         * config/nextstep.h (SELECT_RTX_SECTION): Move ...
1670         * config/nextstep.c (machopic_select_rtx_section): ... here.
1671         (nextstep_select_section): Rename variable to avoid macro clash.
1672         * config/nextstep-protos.h: Update.
1674         * config/elfos.h, config/svr3.h, config/arm/aof.h, config/c4x/c4x.h,
1675         config/i386/dgux.h, config/i386/osfrose.h, config/i386/sco5.h,
1676         config/i386/svr3gas.h, config/i860/paragon.h, config/ia64/aix.h,
1677         config/m32r/m32r.h, config/m68k/dpx2.h, config/m68k/lynx.h,
1678         config/m68k/m68k.h, config/m68k/tower-as.h, config/m88k/dgux.h,
1679         config/mcore/mcore-pe.h, config/mips/mips.h, config/mmix/mmix.h,
1680         config/pa/pa-linux.h, config/pa/pa.h, config/romp/romp.h,
1681         config/rs6000/lynx.h, config/rs6000/sysv4.h, config/s390/linux.h,
1682         config/sparc/sysv4.h, config/xtensa/elf.h, config/xtensa/linux.h
1683         (SELECT_RTX_SECTION): Remove.
1685         * config/darwin.h, config/elfos.h, config/nextstep.h,
1686         config/ia64/aix.h, config/ia64/sysv4.h, config/alpha/alpha.c,
1687         config/mips/mips.c, config/romp/romp.c, config/rs6000/sysv4.h,
1688         config/rs6000/xcoff.h, config/s390/s390.c, config/sparc/aout.h,
1689         config/sparc/lynx.h, config/xtensa/xtensa.c
1690         (TARGET_ASM_SELECT_RTX_SECTION): New.
1692         * config/alpha/elf.h (SELECT_RTX_SECTION): Move ...
1693         * config/alpha/alpha.c (alpha_elf_select_rtx_section): ... here.
1694         * config/ia64/sysv4.h (SELECT_RTX_SECTION): Move ...
1695         * config/ia64/ia64.c (ia64_select_rtx_section): ... here.
1696         (ia64_aix_select_rtx_section): New.
1697         * config/mips/iris6.h (READONLY_DATA_SECTION_ASM_OP): Undef before
1698         redefining.
1699         * config/mips/mips.c (mips_select_rtx_section): Make static.
1700         Support ELF SHF_MERGE features.
1701         * config/mips/mips-protos.h: Update.
1702         * config/rs6000/xcoff.h (SELECT_RTX_SECTION): Move ...
1703         * config/rs6000/rs6000.c (rs6000_xcoff_select_rtx_section): ... here.
1704         (rs6000_elf_select_rtx_section): Rename from rs6000_select_rtx_section;
1705         make static, fall back to default_elf_select_rtx_section.
1706         * config/rs6000/rs6000-protos.h: Update.
1707         * config/sparc/sparc.h (SELECT_RTX_SECTION): Move ...
1708         * config/sparc/sparc.c (sparc_aout_select_rtx_section): ... here.
1709         * config/sparc/sunos4.h (on_exit): Declare only if IN_LIBGCC2.
1710         * config/romp/romp.c (romp_select_rtx_section): New.
1711         * config/s390/s390.c (s390_select_rtx_section): New.
1712         * config/xtensa/xtensa.c: Include output.h.  Shuffle local function
1713         declarations before target macro definition.
1714         (xtensa_emit_call): Use static buffer.
1715         (xtensa_select_rtx_section): New.
1716         * config/xtensa/xtensa.h (MAX_INT_TYPE_SIZE): Remove.
1717         (IMPLICIT_FIX_EXPR, EASY_DIV_EXPR): Remove.
1718         (ASM_OUTPUT_POOL_PROLOGUE): Update call to resolve_unique_section.
1720         * doc/tm.texi (TARGET_ASM_SELECT_RTX_SECTION): Update from
1721         SELECT_RTX_SECTION docs.
1723 Sun May 19 00:24:23 CEST 2002  Jan Hubicka  <jh@suse.cz>
1725         * i386.md (movsi/movdi): Fix template.
1726         (sse2 patterns): Set attributes consistently.
1728         * i386.md (pushqi2, ashrqi_*): Fix constraint.
1730 2002-05-18  Toon Moene  <toon@moene.indiv.nluug.nl>
1732         * optabs.c (complex_part_zero_p): New.
1733         * (expand_cmplxdiv_straight): Use it.
1734         * (expand_cmplxdiv_wide): Ditto.
1735         * (expand_binop): Ditto.
1737 2002-05-18  Richard Henderson  <rth@redhat.com>
1739         * final.c (HAVE_READONLY_DATA_SECTION): New.
1740         (shorten_branches): Use it instead of ifdefs.
1741         * varasm.c (enum in_section): Add in_readonly_data.
1742         (text_section, data_section): Tidy.
1743         (readonly_data_section): Use READONLY_DATA_SECTION_ASM_OP if present.
1745         * config/darwin.h, config/nextstep.h, config/h8300/elf.h,
1746         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h
1747         (READONLY_DATA_SECTION): Don't undef.
1749         * config/alpha/unicosmk.h, config/h8300/elf.h, config/i386/aix386ng.h,
1750         config/i860/paragon.h, config/m68k/dpx2.h, config/m68k/hp320.h,
1751         config/rs6000/lynx.h (READONLY_DATA_SECTION_ASM_OP): Undef.
1753         * config/elfos.h, config/svr3.h, config/alpha/alpha-interix.h,
1754         config/alpha/elf.h, config/c4x/c4x.h, config/i386/i386-interix.h,
1755         config/i386/sco5.h, config/i386/svr3gas.h, config/i860/sysv3.h,
1756         config/m88k/m88k.h, config/pa/pa64-hpux.h (USE_CONST_SECTION): Remove.
1758         * config/elfos.h, config/netware.h, config/alpha/alpha-interix.h,
1759         config/alpha/elf.h, config/alpha/vms.h, config/arc/arc.h,
1760         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1761         config/i386/dgux.h, config/i386/i386-interix.h, config/i386/sco5.h,
1762         config/ia64/hpux.h, config/m32r/m32r.h, config/m68k/tower-as.h,
1763         config/m88k/m88k.h, config/mcore/mcore-pe.h, config/mips/iris6.h,
1764         config/mips/mips.h, config/mmix/mmix.h, config/pa/pa64-hpux.h,
1765         config/sparc/sysv4.h (READONLY_DATA_SECTION_ASM_OP): Rename from
1766         CONST_SECTION_ASM_OP/READONLY_SECTION_ASM_OP/RDATA_SECTION_ASM_OP.
1768         * config/elfos.h, config/netware.h, config/1750a/1750a.h,
1769         config/a29k/a29k.h, config/alpha/alpha-interix.h, config/alpha/alpha.h,
1770         config/arm/coff.h, config/h8300/h8300.h, config/i386/aix386ng.h,
1771         config/i386/i386-interix.h, config/i386/osfrose.h, config/mmix/mmix.h,
1772         config/pa/pa64-hpux.h, config/sparc/litecoff.h
1773         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): Remove.
1775         * config/elfos.h, config/netware.h, config/svr3.h,
1776         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1777         config/arm/coff.h, config/c4x/c4x.h, config/dsp16xx/dsp16xx.h,
1778         config/h8300/h8300.h, config/i386/i386-interix.h,
1779         config/i386/osfrose.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1780         config/pa/pa64-hpux.h (READONLY_DATA_SECTION): Remove.
1782         * config/elfos.h, config/netware.h, config/svr3.h,
1783         config/alpha/alpha-interix.h, config/alpha/alpha.h, config/alpha/elf.h,
1784         config/c4x/c4x.h, config/i386/aix386ng.h, config/i386/i386-interix.h,
1785         config/i386/sco5.h, config/i386/svr3gas.h, config/mmix/mmix.h,
1786         config/pa/pa64-hpux.h (CONST_SECTION_FUNCTION): Remove.
1788         * config/lynx.h, config/svr3.h, config/alpha/elf.h, config/alpha/vms.h,
1789         config/c4x/c4x.h, config/dsp16xx/dsp16xx.h, config/i386/sco5.h,
1790         config/i386/svr3gas.h, config/i860/sysv3.h, config/i860/sysv4.h,
1791         config/ia64/sysv4.h, config/m32r/m32r.h, config/m88k/m88k.h,
1792         config/mcore/mcore-elf.h, config/mcore/mcore-pe.h, config/mips/elf.h,
1793         config/mips/elf64.h, config/mips/iris6.h, config/mips/linux.h,
1794         config/mips/mips.h, config/mips/rtems64.h, config/mips/vxworks.h,
1795         config/rs6000/sysv4.h, config/v850/v850.h
1796         (EXTRA_SECTIONS): Remove in_const/in_rdata.
1797         (EXTRA_SECTION_FUNCTIONS): Remove accompanying function.
1799         * config/svr3.h, config/c4x/c4x.h, config/i386/dgux.h,
1800         config/i386/sco5.h, config/i386/svr3gas.h, config/ia64/aix.h,
1801         config/m88k/dgux.h, config/mcore/mcore-pe.h, config/mmix/mmix.h,
1802         config/sparc/sysv4.h (SELECT_RTX_SECTION): Use readonly_data_section.
1803         * config/alpha/alpha.c (alpha_start_function): Likewise.
1804         (alpha_write_linkage): Likewise.
1805         * config/m32r/m32r.c (m32r_select_section): Likewise.
1806         * config/m88k/m88k.c (m88k_select_section): Likewise.
1807         * config/mips/mips.c (mips_select_rtx_section): Likewise.
1808         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Likewise.
1809         (rs6000_elf_select_section): Likewise.
1810         * config/v850/v850.c (v850_select_section): Likewise.
1812         * config/1750a/1750a.h, config/i860/sysv3.h
1813         (READONLY_DATA_SECTION_ASM_OP): New.
1814         READONLY_DATA_SECTION_ASM_OP.
1815         * config/i386/interix.c, config/i386/winnt.c
1816         (i386_pe_unique_section): Always use .rdata prefix.
1817         * config/pa/som.h (readonly_data): Always switch to read-only section.
1818         (READONLY_DATA_SECTION): Predicate on flag_pic.
1819         * config/we32k/we32k.h (READONLY_DATA_SECTION): Remove parenthesis.
1820         * doc/tm.texi (READONLY_DATA_SECTION_ASM_OP): New.
1821         (READONLY_DATA_SECTION): Update.
1823 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
1825         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
1826         is used without -Wformat.
1827         * c-common.h (warn_format_zero_length): Declare extern.
1828         * c-decl.c (warn_options): Add "format-zero-length".
1829         * c-format.c (warn_format_zero_length): Declare.
1830         (set_Wformat): Set warn_format_zero_length for -Wformat.
1831         (check_format_info): Only warn about zero-length formats if
1832         warn_format_zero_length is true.  Include the format type
1833         name in the warning message.
1834         * doc/invoke.texi: Document -Wformat-zero-length.
1835         * testsuite/gcc.dg/format/zero-length-1.c: New test.
1837 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
1839         * timevar.c: Fix formatting.
1840         * tlink.c: Likewise.
1841         * toplev.c: Likewise.
1842         * tree-dump.c: Likewise.
1843         * tree-inline.c: Likewise.
1845 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1847         * cppinit.c (cpp_post_options): If preprocessed, turn off
1848         traditional.  If traditional, turn off column numbers.
1849         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
1850         * cpptrad.c (handle_newline): Update line_base.
1851         (skip_comment): Handle -Wcomment.
1853 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
1855         * cppinit.c (struct builtin): Remove unused fields.
1856         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
1857         (operator_array): New - was second half of builtin_array.
1858         (init_builtins): Simplify loop over builtin_array/operator_array.
1860 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1862         * defaults.h (UNIQUE_SECTION): Remove.
1863         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
1865 2002-05-17  Richard Henderson  <rth@redhat.com>
1867         * expr.c (init_expr_once): Don't use start/end_sequence.
1868         Use rtx_alloc instead of emit_insn.
1869         * toplev.c (lang_dependent_init): Run init_expr_once here ...
1870         (lang_independent_init): ... not here.
1872 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
1874         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
1876 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1878         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
1879         for fixed registers, possibly used for global register variables.
1880         (initial_elimination_offset, avr_output_function_prologue,
1881         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
1883 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
1885         * Makefile.in: Update for cpptrad.c.
1886         * cpphash.h (struct cpp_buffer): New members for buffer
1887         overlays.
1888         (struct cpp_reader): New members for traditional output.
1889         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
1890         * cppinit.c (cpp_create_reader): Set trad_line.
1891         (cpp_destroy): Free trad_out_base if used.
1892         (cpp_read_main_file): Overlay an empty buffer if traditional.
1893         (cpp_finish_options): Don't do builtins.
1894         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
1895         (cpp_handle_option): Handle it.
1896         * cpplex.c (continue_after_nul): New.
1897         (_cpp_lex_direct): Use handle_nul.
1898         * cpplib.h (struct cpp_options): New traditional option.
1899         * cpptrad.c: New file.
1901 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
1903         * c-common.c (c_common_init_options): Use C89 for Objective-C,
1904         and set the options flag.
1905         * cppinit.c (lang_flags): Remove objc.
1906         (lang_defaults): Remove OBJC and OBJCXX.
1907         (set_lang): Update.
1908         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
1909         (cpp_handle_option): Remove -+ and -lang-objc++.
1910         For ObjC, just set a flag.
1911         (print_help): Update.
1912         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
1914 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1916         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
1917         bootstrap with -mips3.
1919 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
1921         * final.c: Fix formatting.
1922         * fix-header.c: Likewise.
1923         * flow.c: Likewise.
1924         * fold-const.c: Likewise.
1925         * function.c: Likewise.
1927 2002-05-17  David S. Miller  <davem@redhat.com>
1929         PR c/6689, PR optimization/6615
1930         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
1931         and make it a pointer to rtx.  Update comments.
1932         (update_equiv_regs): When scanning for equivalences, record
1933         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
1934         it while making the equiv replacements.
1936 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1938         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
1940 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
1942         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
1943         when encoding visibility into SYMBOL_REF_FLAG.
1945 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
1947         * expr.c (force_operand): Fix reversed move.
1949 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
1951         * doc/install.texi (Testing): Mention two common DejaGnu warnings
1952         that can be ignored.
1954 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1956         * doc/install.texi (Final install): Recommend to install into a
1957         "clean" target directory.
1959 2002-05-17  Richard Henderson  <rth@redhat.com>
1961         * config/ia64/ia64.md: Use braced strings instead of quoted strings
1962         for code blocks.  Tidy whitespace.
1964 2002-05-17  Richard Henderson  <rth@redhat.com>
1966         * hooks.c (hook_tree_bool_false): New.
1967         * hooks.h: Declare it.
1968         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
1969         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
1970         * target.h (select_section, unique_section): New.
1971         (in_small_data_p): New.
1972         * varasm.c (resolve_unique_section): Use hooks instead of macros.
1973         (variable_section, output_constant_def_contents): Likewise.
1974         (default_select_section, default_unique_section): New.
1975         (categorize_decl_for_section, default_elf_select_section): New.
1976         * output.h: Declare them.
1978         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
1979         (TARGET_ASM_SELECT_SECTION): New.
1980         (SELECT_SECTION): Move ...
1981         * config/darwin.c (machopic_select_section): ... here.
1982         * config/darwin-protos.h: Update.
1984         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
1985         (SELECT_SECTION): Move ...
1986         * config/nextstep.c (nextstep_select_section): ... here.
1987         * config/nextstep-protos.h: Update.
1989         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
1990         (TARGET_ASM_SELECT_SECTION): New.
1991         * config/svr3.h (SELECT_SECTION): Remove.
1993         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
1994         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
1995         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
1996         (alpha_encode_section_info): Use it.
1997         * config/alpha/alpha-protos.h: Update.
1998         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
1999         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2000         (TARGET_ASM_SELECT_SECTION): New.
2001         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
2003         * config/arm/pe.h (UNIQUE_SECTION): Remove.
2004         (TARGET_ASM_UNIQUE_SECTION): New.
2006         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
2007         (avr_unique_section): Rename from unique_section; make static.
2008         * config/avr/avr-protos.h: Update.
2009         * config/avr/avr.h (UNIQUE_SECTION): Remove.
2011         * config/c4x/c4x.h (SELECT_SECTION): Remove.
2013         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
2014         (TARGET_ASM_UNIQUE_SECTION): New.
2015         * config/i386/i386-interix.h: Likewise.
2016         * config/i386/win32.h: Likewise.
2017         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
2018         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
2019         * config/i386/sco5.h (SELECT_SECTION): Remove.
2020         (TARGET_ASM_SELECT_SECTION): New.
2021         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
2023         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
2024         instead of SELECT_SECTION.
2025         * config/m68k/dpx2.h: Likewise.
2026         * config/rs6000/lynx.h: Likewise.
2028         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2029         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2030         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
2031         (ia64_in_small_data_p): New.
2032         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
2033         (ia64_aix_select_section, ia64_aix_unique_section): New.
2034         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
2035         (SELECT_SECTION, UNIQUE_SECTION): Remove.
2037         * config/m32r/m32r.h (SELECT_SECTION): Remove.
2038         (TARGET_ASM_SELECT_SECTION): New.
2039         * config/m32r/m32r.c (m32r_select_section): Take align argument.
2040         * config/m32r/m32r-protos.h: Update.
2042         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
2043         (SELECT_SECTION): Move ...
2044         * config/m88k/m88k.c (m88k_select_section): ... here.
2046         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
2047         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
2048         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
2049         (mcore_unique_section): Make static.
2050         * config/mcore/mcore-protos.h: Update.
2052         * config/mips/elf.h (UNIQUE_SECTION): Remove.
2053         (TARGET_ASM_UNIQUE_SECTION): New.
2054         * config/mips/elf64.h: Likewise.
2055         * config/mips/iris6gld.h: Likewise.
2056         * config/mips/linux.h: Likewise.
2057         * config/mips/mips-protos.h: Update.
2058         * config/mips/mips.c (mips_select_section): Add align argument.
2059         * config/mips/mips.h (SELECT_SECTION): Remove.
2060         (TARGET_ASM_SELECT_SECTION): New.
2062         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2063         * config/mmix/mmix.c (mmix_select_section): Remove.
2064         (mmix_unique_section): Remove.
2065         * config/mmix/mmix-protos.h: Update.
2067         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
2068         (SELECT_SECTION): Move ...
2069         * config/pa/pa.c (pa_select_section): ... here.
2070         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
2072         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
2073         from rs6000_select_section and make static.
2074         (rs6000_elf_unique_section): Similarly.
2075         (rs6000_xcoff_select_section): From xcoff.h.
2076         (rs6000_xcoff_unique_section): Likewise.
2077         * config/rs6000/rs6000-protos.h: Update.
2078         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
2079         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
2080         * config/rs6000/xcoff.h: Likewise.
2082         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
2083         (SELECT_SECTION): Move ...
2084         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
2086         * config/v850/v850.h (SELECT_SECTION): Move ...
2087         * config/v850/v850.c (v850_select_section): ... here.
2088         (TARGET_ASM_SELECT_SECTION): New.
2090         * config/vax/vms.h (SELECT_SECTION): Move ...
2091         * config/vax/vax.c (vms_select_section): ... here.
2092         (TARGET_ASM_SELECT_SECTION): New.
2094         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
2095         for the target hooks.
2097 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
2099         * config/arm/arm.c (emit_multi_reg_push): Do not set
2100         RTX_FRAME_RELATED_P on the SEQUENCE.
2102 2002-05-16  Richard Henderson  <rth@redhat.com>
2104         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
2105         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
2107 2002-05-16  Richard Henderson  <rth@redhat.com>
2109         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
2111         * config/ia64/ia64.c (saveable_obstack): Do not declare.
2113 2002-05-16  Richard Henderson  <rth@redhat.com>
2115         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
2116         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
2117         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
2118         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
2119         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
2120         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
2121         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
2122         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
2123         Revert "Basic block renumbering removal", and two followup patches.
2125 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2127         * lcm.c (optimize_mode_switching): Revert previous change.
2129 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2131         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
2132         with only extant block numbers.
2134 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
2136         * lcm.c (optimize_mode_switching): Fix typo.
2138 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2140         * flow.c (calculate_global_regs_live): Queue blocks in program order.
2142 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2144         * doc/install.texi (Configuration): Document PWDCMD.
2146 2002-05-16  Dale Johannesen  <dalej@apple.com>
2148         * combine.c (cant_combine_insn_p):  Reenable combinations
2149         involving hard regs unless CLASS_LIKELY_SPILLED_P.
2151 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2153         * c-common.c (cb_register_builtins): Handle more built-ins
2154         here rather than in gcc.c specs.
2155         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
2156         (cpp_options): Pass -O flags even when only preprocessing.
2157         * toplev.c (set_fast_math_flags): New prototype.
2158         (fast_math_flags_set_p): New.
2159         (set_no_fast_math_flags): Remove.
2160         (decode_f_option): Update.
2161         * toplev.h (set_fast_math_flags): Update.
2162         (fast_math_flags_set_p): New.
2163         (set_no_fast_math_flags): Remove.
2164 config:
2165         * c4x/c4x.c (c4x_override_options): Update.
2167 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
2169         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
2170         Default-define here.
2171         (builtin_define_with_value): Can now wrap the expansion in
2172         quotation marks if such is wanted.
2173         (cb_register_builtins): Update calls to builtin_define_with_value.
2174         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
2175         here.
2176         (c_common_init): Set options->stdc_0_in_system_headers.
2177         * c-lex.h: Update prototype of builtin_define_with_value.
2178         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
2179         and REGISTER_PREFIX.
2181         * cppinit.c (VERS, ULP, C, X): Kill.
2182         (builtin_array): Remove entries for __VERSION__,
2183         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
2184         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
2185         a constant.
2186         (init_builtins): Kill off a bunch of now-dead code.
2187         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
2188         -fno-leading-underscore.
2189         (cpp_handle_option): Remove code to set user_label_prefix.
2190         (cpp_post_options): Likewise.
2192         * cpplib.h (struct cpp_options): Remove user_label_prefix.
2193         (stdc_0_in_system_headers): New.
2194         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
2195         stdc_0_in_system_headers) too to decide the value of __STDC__.
2197         * tradcpp.c (user_label_prefix): Kill.
2198         (main): Remove code handling -f(no-)leading-underscore.
2199         (initialize_builtins): Don't define __REGISTER_PREFIX__
2200         or __USER_LABEL_PREFIX__.
2201         (install_value): Wrap compound statement in dummy loop so the
2202         macro works properly in an if statement.
2205 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
2207         * loop.h (struct loop_info): Add member has_prefetch.
2208         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
2209         (prescan_loop): Initialize has_prefetch.
2210         (struct prefetch_info): Change prefetch_in_loop and
2211         prefetch_before_loop from bit fields to ints.
2212         (emit_prefetch_instructions): Several small fixes.
2213         (check_dbra_loop): Don't reverse loop that uses prefetch.
2215 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2217         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
2218         * configure.in: Likewise.
2219         * fixinc/check.tpl: Likewise.
2220         * fixinc/fixinc.dgux: Likewise.
2221         * fixinc/fixinc.svr4: Likewise.
2222         * fixinc/fixinc.winnt: Likewise.
2223         * fixinc/fixincl.sh: Likewise.
2224         * fixproto: Likewise.
2225         * configure: Regenerate.
2227 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
2229         Basic block renumbering removal:
2230         * basic_block.h (struct basic_block_def): Renamed index to sindex,
2231         added prev_bb and next_bb fields.
2232         (n_basic_blocks): Renamed to num_basic_blocks.
2233         (last_basic_block): New, index of last basic block.
2234         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
2235         traversing basic block chain.
2236         (BLOCK_NUM): index -> sindex.
2237         (create_basic_block_structure, create_basic_block): Declaration changed.
2238         (debug_num2bb): Declare.
2239         (expunge_block_nocompact): Declaration removed.
2240         (link_block, unlink_block, compact_blocks): Declare.
2241         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
2242         * cfg.c (entry_exit_blocks): Initialize new fields.
2243         (clear_edges, alloc_block, expunge_block, cached_make_edge,
2244         redirect_edge_pred, dump_flow_info, dump_edge_info,
2245         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
2246         free_aux_for_edges): Modified.
2247         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
2248         (expunge_block_nocompact): Removed.
2249         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
2250         find_unreachable_blocks, create_edge_list, print_edge_list,
2251         verify_edge_list, flow_edge_list_print, remove_fake_successors,
2252         remove_fake_edges, flow_reverse_top_sort_order_compute,
2253         flow_depth_first_order_compute, flow_preorder_transversal_compute,
2254         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
2255         flow_dfs_compute_reverse_execute): Modified.
2256         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
2257         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
2258         Modified.
2259         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
2260         merge_blocks_move_predecessor_nojumps,
2261         merge_blocks_move_successor_nojumps, merge_blocks,
2262         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
2263         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
2264         * cfglayout.c (skip_insns_after_block, label_for_bb,
2265         record_effective_endpoints, scope_to_insns_finalize,
2266         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
2267         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
2268         cfg_layout_duplicate_bb): Modified.
2269         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
2270         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
2271         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
2272         flow_loops_find, flow_loop_outside_edge_p): Modified.
2273         * cfgrtl.c (create_basic_block_structure, create_basic_block,
2274         flow_delete_block, compute_bb_for_insn, split_block,
2275         try_redirect_by_replacing_jump, redirect_edge_and_branch,
2276         force_nonfallthru_and_redirect, tidy_fallthru_edge,
2277         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
2278         commit_edge_insertions, commit_edge_insertions_watch_calls,
2279         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
2280         purge_all_dead_edges): Modified.
2281         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
2282         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
2283         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
2284         Modified.
2285         * conflict.c (conflict_graph_compute): Modified.
2286         * df.c (FOR_ALL_BBS): Removed.
2287         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
2288         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
2289         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
2290         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
2291         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
2292         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
2293         * final.c (compute_alignments, final_scan_insn): Modified.
2294         * flow.c (verify_local_live_at_start, update_life_info,
2295         update_life_info_in_dirty_blocks, free_basic_block_vars,
2296         delete_noop_moves, calculate_global_regs_live,
2297         initialize_uninitialized_subregs, allocate_bb_life_data,
2298         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
2299         mark_used_reg, count_or_remove_death_notes): Modified.
2300         * function.c (thread_prologue_and_epilogue_insns): Modified.
2301         * gcse.c (struct null_pointer_info): Change typo of current_block
2302         to basic_block.
2303         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
2304         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
2305         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
2306         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
2307         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
2308         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
2309         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
2310         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
2311         pre_delete, one_pre_gcse_pass, compute_transpout,
2312         invalidate_nonnull_info, delete_null_pointer_checks_1,
2313         free_code_hoist_mem, compute_code_hoist_vbeinout,
2314         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
2315         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
2316         compute_store_table, build_store_vectors, insert_insn_start_bb,
2317         insert_store, replace_store_insn, free_store_memory, store_motion):
2318         Modified.
2319         * global.c (global_alloc, global_conflicts, mark_elimination,
2320         build_insn_chain): Modified.
2321         * graph.c (print_rtl_graph_with_bb): Modified.
2322         * haifa-sched.c (sched_init): Modified.
2323         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
2324         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
2325         if_convert): Modified.
2326         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
2327         compute_insert_delete, pre_edge_lcm, compute_available,
2328         compute_farthest, compute_nearerout, compute_rev_insert_delete,
2329         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
2330         Modified.
2331         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
2332         * loop.c (loop_dump_aux): Modified.
2333         * predict.c (combine_predictions_for_insn, estimate_probability,
2334         last_basic_block_p, process_note_prediction, process_note_predictions,
2335         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
2336         expensive_function_p, estimate_bb_frequencies,
2337         compute_function_frequency): Modified.
2338         * print-rtl.c (print_rtx): Modified.
2339         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
2340         get_exec_counts, compute_branch_probabilities, compute_checksum,
2341         branch_prob, find_spanning_tree): Modified.
2342         * recog.c (split_all_insns, peephole2_optimize): Modified.
2343         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
2344         convert_regs_1, convert_regs_2, convert_regs): Modified.
2345         * regclass.c (scan_one_insn, regclass): Modified.
2346         * regmove.c (mark_flags_life_zones, regmove_optimize,
2347         combine_stack_adjustments): Modified.
2348         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
2349         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
2350         * reorg.c (dbr_schedule): Modified.
2351         * resource.c (find_basic_block, init_resource_info): Modified.
2352         * sbitmap.c (sbitmap_intersection_of_succs,
2353         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
2354         sbitmap_union_of_preds): Modified.
2355         * sched-deps.c (init_dependency_caches): Modified.
2356         * sched-ebb.c (schedule_ebbs): Modified.
2357         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
2358         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
2359         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
2360         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
2361         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
2362         ssa_const_prop): Modified.
2363         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
2364         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
2365         * ssa.c (remove_phi_alternative, find_evaluations,
2366         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
2367         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
2368         make_regs_equivalent_over_bad_edges,
2369         make_equivalent_phi_alternatives_equival,
2370         compute_conservative_reg_partition,
2371         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
2372         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
2373         Modified.
2375 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
2377         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
2379 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
2381         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
2382         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2383         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
2384         calling CONSTANT_POOL_ADDRESS_P.
2385         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
2386         to decide whether to define __arm__ or __thumb.
2387         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
2388         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
2390 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2392         * config/arc/arc.h (CPP_PREDEFINES): Remove.
2393         (CPP_SPEC): Update.
2394         (TARGET_CPU_CPP_BUILTINS): New.
2396 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
2398         * cpphash.h (cpp_macro): Move here, and make expansion a union.
2399         * cppmacro.c (cpp_macro): Remove.
2400         (enter_macro_context, replace_args, warn_of_redefinition,
2401         _cpp_create_definition, cpp_macro_definition): Update.
2403 2002-05-16  Jason Merrill  <jason@redhat.com>
2405         * config/mips/mips.c (mips_output_external): Don't do sdata
2406         optimization for a variable with DECL_COMDAT set.
2408 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2410         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
2411         Cleanups for accepting modifiers on pointers.
2412         Fix predicate typos.
2413         Allow long pointers as well as int pointers.
2415 2002-05-15  Richard Henderson  <rth@redhat.com>
2417         * varasm.c (merge_weak): Remove special case for extern and common.
2419 2002-05-15  Matt Hiller  <hiller@redhat.com>
2421         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
2422         XFAILing.
2423         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
2424         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
2425         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
2426         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
2427         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
2428         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
2430 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2432         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
2434 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
2436         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
2437         ("altivec_mfvscr"): Read from VSCR.
2439         Add vscr sets for the following insns: altivec_vctuxs,
2440         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
2441         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
2442         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
2443         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
2444         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
2445         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
2446         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
2447         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
2448         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
2449         altivec_vsum2sws, altivec_vsumsws.
2451         * config/rs6000/rs6000.h: Add VSCR fixed register.
2452         (CALL_REALLY_USED_REGISTERS): Add vscr.
2453         (CALL_USED_REGISTERS): Same.
2454         (FIXED_REGISTERS): Same.
2455         (REG_ALLOC_ORDER): Same.
2456         (reg_class): Add VSCR_REGS.
2457         (REG_CLASS_NAMES): Same.
2458         (REG_CLASS_CONTENTS): Same.
2459         (VSCR_REGNO): New.
2460         (REGISTER_NAMES): Add vscr.
2461         (DEBUG_REGISTER_NAMES): Same.
2462         (ADDITIONAL_REGISTER_NAMES): Same.
2463         (FIRST_PSEUDO_REGISTER): Increment.
2464         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
2466 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
2468         * fold-const.c (fold): Fix a typo.
2470 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
2472         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
2473         comparison against the highest or lowest integer value before
2474         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
2475         transformation and that of an unsigned comparison against 0
2476         right after.
2478 2002-05-15  Richard Henderson  <rth@redhat.com>
2480         * varasm.c (merge_weak): Error for any weakening after definition.
2481         Adjust weakening after use warning to catch more cases.
2482         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
2483         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
2485 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
2487         * invoke.texi (-malign-double): Re-add lost warning.
2489         * i386-protos.h (x86_output_mi_thunk): Declare.
2490         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
2491         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
2493         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
2494         when flag_asynchronous_unwind_tables is set.
2496         * flags.h (flag_reorder_functions): Declare.
2497         * function.c (prepare_function_start): Initialize frequnecy.
2498         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
2499         * Makefile.in (predict.o): Add dependency on target.h and params.h
2500         * defaults.h (HOT_TEXT_SECTION_NAME,
2501         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
2502         * predict.c (choose_function_section): New function.
2503         (estimate_bb_frequencies): Use it.
2504         * toplev.c (flag_reorder_functions): New global variable.
2505         (lang_independent_options): New.
2506         (parse_options_and_default_flags): Set.
2507         * varasm.c (assemble_start_function): Bypass functdion alignment
2508         for never executed functions.
2509         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
2510         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
2511         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
2512         Document.
2514         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
2516         * predict.c: Inlude profile.h
2517         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
2518         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
2519         Use the information about maximal counter in the program.
2521         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
2523         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
2524         probably_never_executed_bb_p): New functions.
2525         * cfgcleanup.c (outgoing_edges_match): Use them.
2526         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
2527         (maybe_hot_bb_p, probably_cold_bb_p,
2528         probably_never_executed_bb_p): New functions.
2530         * function.h (function): Add new field function_frequency.
2531         * predict.c (compute_function_frequency): New function.
2532         (estimate_probability): Call it.
2534 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
2536         PR optimization/5172, optimization/5200
2537         * gcse.c (gcse_main): Disable store_motion.
2539 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
2541         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
2542         (c_common_nodes_and_builtins): Use it.
2543         (builtin_define_with_value): New function.
2544         (cb_register_builtins): Define __SIZE_TYPE__,
2545         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
2546         using builtin_define_with_value.  Use consistent notation when
2547         defining __GXX_WEAK__.
2548         (WCHAR_TYPE_SIZE): Don't redefine.
2549         (combine_strings): Don't use WCHAR_TYPE_SIZE.
2551         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
2552         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
2553         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
2554         * tradcpp.c (initialize_builtins): Likewise.
2555         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
2557         * c-lex.h (builtin_define_with_value): Prototype.
2558         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
2559         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
2560         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
2562         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
2563         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
2564         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
2565         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
2566         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
2567         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
2568         config/sparc/sol2-bi.h, config/sparc/sparc.h:
2569         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
2570         to __SIZE_TYPE__ etc from all spec strings. When this makes
2571         extra specs empty, delete them.
2573 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2575         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
2576         for PA8000 or generating dwarf2 call frame information.
2577         (output_call): Remove DO_FRAME_NOTES check from return pointer
2578         optimization.
2579         (following_call): Return 0 when scheduling for PA8000 or generating
2580         dwarf2 call frame information.  Revise comment.
2582 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2584 config/alpha:
2585         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
2586         and __IEEE_FP_INEXACT as appropriate.
2587         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
2588         (CPP_SPEC): Remove ieee defines.
2589         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
2591 2002-05-14  Richard Henderson  <rth@redhat.com>
2593         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
2594         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
2596 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2598         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
2599         (CPP_SPEC): Update.
2600         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
2601         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
2602         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
2603         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
2604         (EXTRA_SPECS): Update.
2605         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
2606         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
2607         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
2608         define TARGET_OS_CPP_BUILTINS if necessary.
2610 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
2612         * gcc.c (cpp_options): Must pass -m* and -f* options
2613         to the front end even when only preprocessing.
2614         (cc1_options): Remove redundant -lang-c.
2615         * tradcpp.c (main): Ignore -m options.
2616 objc:
2617         * lang-specs.h: Similarly.
2619 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
2621         * genautomata.c (transform_3): Add code for transformation
2622         `(A,B,...)+C -> A+C,B,...'.
2624 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
2626         * final.c (end_final): Do not output profile_arcs constructor, when
2627         no functions are instrumented.
2629 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
2631         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
2633 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2635         * doc/install.texi: Remove special markup originally required for
2636         HTML generation with texi2html.
2638 2002-05-14  Andreas Schwab  <schwab@suse.de>
2640         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
2641         SELECT_SECTION.
2642         (UNIQUE_SECTION): Define to get small data correctly.
2644         * varasm.c (resolve_unique_section): Add third parameter
2645         flag_function_or_data_sections and use it instead of
2646         flag_function_sections.
2647         (assemble_start_function): Pass flag_function_sections.
2648         (asm_emit_uninitialised): Pass flag_data_sections.
2649         (assemble_variable): Likewise.
2651 2002-05-14  Richard Henderson  <rth@redhat.com>
2653         * config/i386/i386.md: Use define_constants for unspec numbers.
2654         * config/i386/i386.c: Likewise.
2656 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2658         * doc/contrib.texi: Update my entry.
2660 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
2662         * fixinc/inclhack.def (winidss_valist): Limit applicability.
2663         * fixinc/fixincl.x: Regenerated.
2664         * fixinc/tests/base/math.h: Update.
2665         * fixinc/tests/base/testing.h: Likewise.
2667 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
2669         * genattr.c (gen_attr): Don't emit a comma after the last
2670         enumerator.
2672 2002-05-13  Richard Henderson  <rth@redhat.com>
2674         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
2675         by non-local gotos.
2676         * recog.c (peephole2_optimize): Likewise.
2678 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
2680         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
2681         input to O_BINARY.
2683 2002-05-13  Jeffrey A Law  (law@redhat.com)
2685         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
2686         Update prototype and callers.
2687         (propagate_one_insn): Stack pointer adjustments kill MEMs on
2688         the mem_set_list which reference the stack pointer, as do
2689         calls to constant functions as they may clobber outgoing
2690         argument space.
2692         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
2694         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
2695         (ia32_multipass_dfa_lookahead): New function.
2697 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2699         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
2700         (translate_options): Remove 'V'.
2701         (process_command): Similarly.
2702 doc:
2703         * invoke.texi: Remove documentation of 'V'.
2705 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
2707         * config/s390/linux.h: Revert 2002-04-22 changes.
2709 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
2711         * config/fr30/fr30.md: Only allow splits of immediate loads
2712         if the destination is a register.
2714 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
2716         * Makefile.in (c-common.o, cppinit.o): Update.
2717         * c-common.c: Include except.h.
2718         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
2719         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
2720         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
2721         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
2722         CPP_PREDEFINES): Handle here.
2723 config:
2724         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
2725         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
2726         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
2727         TARGET_OS_CPP_BUILTINS.
2728         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
2729         (CPP_SPEC, EXTRA_SPECS): Update.
2730         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
2731         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
2732         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
2733         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
2734         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
2735 doc:
2736         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
2737         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
2739 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
2741         * emit-rtl.c (global_rtl): Update comment.
2742         (const_double_htab, const_double_htab_hash,
2743         const_double_htab_hash, lookup_const_double): New.
2744         (const_int_htab_hash, const_int_htab_eq): Remove const
2745         qualifiers, which cause tons of warnings with RTL checking on.
2746         (gen_rtx_CONST_DOUBLE): Deleted.
2747         (const_double_from_real_value): New function - bears some
2748         resemblance to the former immed_real_const_1.
2749         (immed_double_const): Moved here from varasm.c and
2750         simplified.
2751         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
2752         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
2753         (gen_rtx): Use immed_double_const.
2754         (init_emit_once): Initialize the const_double_htab.  Use
2755         REAL_VALUE_FROM_INT where possible.  Can now use
2756         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
2757         * varasm.c (struct varasm_status): Remove x_const_double_chain.
2758         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
2759         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
2760         (init_varasm_status, mark_varasm_status): Don't touch
2761         x_const_double_chain.
2763         * output.h: Delete prototype for clear_const_double_mem.
2764         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
2765         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
2766         const_double_from_real_value, not immed_real_const_1, and use
2767         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
2768         CONST_DOUBLE_ATOF.
2769         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
2770         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
2771         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
2772         (gen_rtx_REG): Second arg is unsigned.
2774         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
2775         (excluded_rtx): New, return true for CONST_DOUBLE.
2776         (genmacro): Write nothing for excluded codes.
2777         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
2778         * expr.c (expand_expr): Likewise.
2779         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
2780         CONST_DOUBLE_CHAIN.
2781         * toplev.c (rest_of_compilation): Don't call
2782         clear_const_double_mem.
2784         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
2785         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
2786         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
2787         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
2788         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
2789         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
2790         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
2791         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
2793 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2795         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
2797 2002-05-12  Tom Tromey  <tromey@redhat.com>
2799         * tree.h (copy_node): Don't mention TREE_PERMANENT.
2801 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
2803         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
2804         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
2805         * gensupport.h: Prototype new routines.
2806         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
2807         use of printf.
2808         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
2809         (next_comma_elt): Use scan_comma_elt.
2811         * config/i386/i386.md: Use new attribute notation to break up
2812         long lines in define_attr forms.
2814 2002-05-12  Richard Henderson  <rth@redhat.com>
2816         * expr.c (compress_float_constant): New.
2817         (emit_move_insn): Use it.
2818         (float_extend_from_mem): New.
2819         (init_expr_once): Initialize it.
2820         * real.c (exact_real_truncate): New.
2822         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
2823         dropped into memory; penalize for size.
2824         (RTX_COSTS): FLOAT_EXTEND is free.
2825         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
2826         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
2828 2002-05-12  Richard Henderson  <rth@redhat.com>
2830         * profile.h (profile_info): Add missing extern to declaration.
2831         * profile.c (profile_info): Define it.
2833 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2835         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
2836         used for DImode and TImode.
2838 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2840         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
2841         fake a newline.
2843 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
2845         * config/rs6000/rs6000.c (rs6000_default_long_calls,
2846         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
2847         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
2848         (rs6000_override_options): Handle -m(no-)longcall.
2849         (init_cumulative_args, output_mi_thunk): Check for both
2850         longcall and shortcall attributes on the function.
2851         (rs6000_attribute_table): Add "shortcall".
2852         (rs6000_handle_longcall_attribute): Update comment.
2853         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
2854         altivec_expand_ternop_builtin): Add default clauses to switches
2855         to silence warnings.
2857         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
2858         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
2859         (TARGET_OPTIONS): Add longcall and no-longcall.
2861         * config/rs6000/rs6000.md (call_nonlocal_sysv,
2862         call_value_nonlocal_sysv): Split by alternatives.  One pair
2863         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
2864         the call cookie.  The other pair accepts only LR/CTR and has
2865         no restriction.
2867         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
2868         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
2869         tmake_file.
2870         * config/rs6000/rs6000-c.c: New file.
2871         * config/rs6000/t-rs6000-c-rule: New file.
2872         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
2873         Prototype rs6000_pragma_longcall.
2875         * doc/extend.texi: Document shortcall attribute.
2876         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
2878 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2880         * reorg.c (dbr_schedule): Remove unnecessary test.
2882 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
2884         * i386.md (testsi to testqi spliters): New.
2886         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
2888         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
2890         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
2892         * basic-block.h: New flag EDGE_CAN_FALLTHRU
2893         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
2894         that can be made fallthru.
2896         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
2898         * cfglayout.c (cleanup_unconditional_jumps): New static function.
2899         (cfg_layout_initialize): Use it.
2901 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2903         * config/avr/avr.c (avr_mcu_types): Update supported devices.
2904         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
2905         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
2907 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
2909         * dbxout.c: Fix formatting.
2910         * dependence.c: Likewise.
2911         * df.c: Likewise.
2912         * diagnostic.c: Likewise.
2913         * doloop.c: Likewise.
2914         * dominance.c: Likewise.
2915         * doschk.c: Likewise.
2916         * dwarf2asm.c: Likewise.
2917         * dwarf2out.c: Likewise.
2918         * dwarfout.c: Likewise.
2920 2002-05-10  Richard Henderson  <rth@redhat.com>
2922         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
2923         Convert integers constants as needed.  Replace "nwords" field with
2924         "sizeof_bb".
2925         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
2926         * function.h: Fix typo in comment.
2927         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
2929 2002-05-10  Roger Sayle  <roger@eyesopen.com>
2931         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
2932         into the equivalent (signed char)c > 0.
2934 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
2936         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
2937         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
2938         (struct prefetch_info): Fix spelling of member bytes_accessed.
2939         (emit_prefetch_instructions): Make dump messages more regular;
2940         restructure code to add more dump messages; use new macros for
2941         heuristics. (There are no code generation changes in any of this).
2943 2002-05-10  David S. Miller  <davem@redhat.com>
2945         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
2946         (struct rtx_def): Update unchanging flag comment.
2947         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
2948         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
2949         to be handled to INSN too.
2950         (dbr_schedule): Likewise.
2951         * resource.c (next_insn_no_annul): Likewise.
2953         * cse.c (rtx_cost): Remove multiplication by power of 2 special
2954         casing.
2956 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2958         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
2959         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
2960         (possibly) work around broken /bin/sh.
2962 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2964         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
2965         . as N64/N32 libgcc_s.so subdirs.
2967 2002-05-10  David S. Miller  <davem@redhat.com>
2969         * config/sparc/sparc.md: Use define_constants for unspec numbers.
2971         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
2972         more accurately.
2973         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
2974         comment.
2975         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
2976         * doc/rtl.texi: Document these macros more accurately.
2977         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
2978         JUMP_INSNs and CALL_INSNs.
2979         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
2980         or INSN_FROM_TARGET_P if the code is appropriate.
2982 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
2984         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
2985         before using SYMBOL_REF_FLAG (addr).
2987         * config/avr/avr-protos.h (avr_io_address_p): Declare.
2988         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
2989         Make non-static.  Update all callers.
2990         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
2991         New insns to clear/set/test a single bit in I/O address space.
2993 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2995         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
2997 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2999         * Makefile.in: Update.
3000         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
3001         builtin_define_std): New.
3002         (c_common_init): Register CPP builtins callback.
3003         * c-common.h (flag_iso, flag_undef): New.
3004         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
3005         * c-lex.c: Don't include target.h.
3006         (cb_register_builtins): Move to c-common.c.
3007         (init_c_lex): Don't register hook here.
3008         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
3009         (cpp_define, cpp_assert): Remove.
3010         * gcc.c (cc1_options): Pass -undef to front end.
3011         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
3012         (TARGET_INITIALIZER): Update.
3013         * target.h (struct cpp_reader): Don't predeclare.
3014         (struct gcc_target): Remove cpp builtin hook.
3015         * tree.c (default_register_cpp_builtins): Remove.
3016 doc:
3017         * tm.texi: Update.
3019 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3021         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
3023 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3025         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
3026         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
3028 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3030         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
3031         * config/sparc/libgcc-sparc-glibc.ver: New file.
3032         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
3033         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
3035 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
3037         PR target/6429
3038         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
3039         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
3040         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
3041         base multilibs.
3042         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
3043         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
3044         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3045         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
3047 2002-05-09  Richard Henderson  <rth@redhat.com>
3049         * config/ia64/ia64.md: Use define_constants for unspec numbers.
3050         * config/ia64/ia64.c: Likewise.
3052 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
3054         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
3055         (save_restore_insns): Likewise.
3056         (mips_expand_prologue, mips_expand_epilogue): Update callers.
3057         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
3059 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@cygnus.com)
3061         * athlon.md, k6.md, pentium.md, ppro.md): New files.
3062         * i386.md: Move scheduling information into new files.
3064         * i386.md (type attribute): Add "rotate" for rotate insns.
3065         (rotate insns): Set type to "rotate".
3066         (various attributes and function units): Treat rotate like shift.
3067         (pent_pair attribute): Only rotates by one bit position are
3068         pairable.
3069         (sbb insns): Explicitly set pent_pair attribute on a couple
3070         that were missing it.
3072 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
3074         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
3075         make sure that buffer starts on odd word address.
3076         (sh_va_arg): Skip odd fp registers when reading a double precision
3077         value.
3079 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3081         * tree.h (preserve_data, object_permanent_p, type_precision):
3082         Remove.
3084 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3086         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
3087         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
3088 doc:
3089         * cpp.texi: Update for removal of obsolete features.
3091 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
3092                           Jeffrey A Law  (law@redhat.com)
3094         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
3095         the DFA interface for Pentium processors.
3096         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
3097         (attr_pent_pair, ix86_pent_find_pair): Remove.
3098         (ix86_sched_reorder_pentium): Remove.
3099         (ix86_sched_reorder): Remove reordering for Pentium.
3100         * i386.md (Pentium scheduling): Rewrite using DFA description.
3102 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
3104         * cfganal.c (can_fallthru): Fix fast path.
3105         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
3106         with edges to the next block.
3108 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
3109                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
3111         * final.c (end_final): Use C trees to output data structures for profiling.
3113         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
3114         (profile.o): New dependency profile.h
3115         (final.o): New dependency profile.h
3116         * profile.h: New file. New global structure profile_info.
3117         * final.h (count_edges_instrumented_now): Declare.
3118         (current_function_cfg_checksum): Declare.
3119         (function_list): New structure.
3120         (functions_head, functions_tail): New static variables.
3121         (end_final): Emits more data, removed some -ax stuff.
3122         (final): Stores function names and chcksums.
3123         * gcov-io.h (__write_gcov_string): New function.
3124         (__read_gcov_string): New function.
3125         * gcov.c (read_profile): New function.
3126         (create_program_flow_graph): Uses read_profile instead of reading
3127         da_file.
3128         (read_files): Removed da_file checking, it's done by read_profile now.
3129         * libgcc2.c (bb_function_info): New structure.
3130         (bb): New field in structure, removed some -ax stuff.
3131         (__bb_exit_func): Changed structure of da_file.
3132         * profile.c (count_edges_instrumented_now): New global variable.
3133         (current_function_cfg_checksum): New global variable.
3134         (max_counter_in_program): New global variable.
3135         (get_exec_counts): New function.
3136         (compute_checksum): New function.
3137         (instrument_edges): Sets count_edges_instrumented_now.
3138         (compute_branch_probabilities): Uses get_exec_counts instead of
3139         reading da_file.
3140         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
3141         (init_branch_prob): Removed da_file checking, done in get_exec_counts
3142         now.
3143         (end_branch_prob): Removed da_file checking, done in get_exec_counts
3144         now.
3145         * gcov.texi: Updated information about gcov file format.
3147 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
3149         * sbitmap.c: Fix formatting.
3150         * scan.c: Likewise.
3151         * scan-decls.c: Likewise.
3152         * sched-deps.c: Likewise.
3153         * sched-ebb.c: Likewise.
3154         * sched-rgn.c: Likewise.
3155         * sched-vis.c: Likewise.
3156         * sdbout.c: Likewise.
3157         * sibcall.c: Likewise.
3158         * simplify-rtx.c: Likewise.
3159         * ssa.c: Likewise.
3160         * ssa-ccp.c: Likewise.
3161         * ssa-dce.c: Likewise.
3162         * stmt.c: Likewise.
3163         * stor-layout.c: Likewise.
3164         * stringpool.c: Likewise.
3166 2002-05-09  David S. Miller  <davem@redhat.com>
3168         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
3170 2002-05-07  David S. Miller  <davem@redhat.com>
3172         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
3173         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
3174         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
3175         library implementation clobbers the output before the inputs
3176         are fully consumed, use stack temporary for the output.
3178 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
3180         * config/netbsd.h (CPP_SPEC): Remove.
3181         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
3182         * config/i386/netbsd.h (CPP_SPEC): Define.
3183         * config/ns32k/netbsd.h (CPP_SPEC): Define.
3184         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
3185         * config/sparc/netbsd.h (CPP_SPEC): Define.
3186         * config/vax/netbsd.h (CPP_SPEC): Define.
3188 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
3190         * read-rtl.c: Fix formatting.
3191         * real.c: Likewise.
3192         * recog.c: Likewise.
3193         * regclass.c: Likewise.
3194         * regmove.c: Likewise.
3195         * reg-stack.c: Likewise.
3196         * reload1.c: Likewise.
3197         * reload.c: Likewise.
3198         * resource.c: Likewise.
3199         * rtlanal.c: Likewise.
3200         * rtl.c: Likewise.
3201         * rtl-error.c: Likewise.
3203 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3205         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
3206         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
3208 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
3210         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
3211         use __SSE2__ macro instead.
3212         * config/i386/xmmintrin.h: Likewise.
3214 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
3216         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
3217         and use it in all invocations of these macros.  Clean up comments.
3218         * rtl.c (rtl_check_failed_flag): Add an argument for the name
3219         of the flag access macro whose check failed.
3220         * doc/rtl.texi (Flags): Document additional flag uses.
3222 2002-05-08  Robert Spier <rspier@pobox.com>
3223             Neil Booth  <neil@daikokuya.demon.co.uk>
3225         PR preprocessor/6521
3226         * cppfiles.c (handle_missing_header): Don't do anything
3227         different for <> includes.
3228 doc:
3229         * cppopts.texi: Update documentation for -MG.
3231 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3233         * cpplex.c (cpp_interpret_charconst): Truncate as well as
3234         sign-extend.
3235 doc:
3236         * cpp.texi: Clarify multichar charconst valuation.
3238 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3240         * doc/invoke.texi: Document -mwindiss option.
3242 2002-05-08  Jason Merrill  <jason@redhat.com>
3244         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
3246         * dwarf2out.c (gen_type_die): Abort on broken recursion.
3248         PR c++/6381
3249         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
3250         REAL_CST.
3252 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
3254         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
3255         little-endian multilibs to override arm/thumb multilibs.
3256         Do not build hardware floating point multilibs, nor apcs-26
3257         multilibs for the Thumb.
3259 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
3261         PR c/6569.
3262         * varasm.c (mark_weak): New function.
3263         (merge_weak): Use it.  Do not call declare_weak.
3264         (declare_weak): Use merge_weak.
3266 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3268         * cse.c (dead_libcall_p): Update counts.
3269         (delete_trivially_dead_insns): Update call of dead_libcall_p.
3271 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
3273         * cfglayout.c (function_tail_eff_head): Rename to ...
3274         (function_footer): ... this one.
3275         (unlink_insn_chain): New functions.
3276         (label_for_bb): Only call block_label and emit debug message.
3277         (record_effective_endpoints): Actually unlink the headers and footers.
3278         (fixup_reorder_cahin): Re-insert the unlinked sequences.
3279         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
3280         * cfglayout.h (struct reorder_block_def): New fields footer/header;
3281         remove eff_head/eff_end.
3282         * rtl.h (set_first_insn): Declare.
3283         * emit-rtl.c (set_first_insn): New function.
3285         * cfglayout.c (fixup_reorder_chain): Dump duplicated
3286         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3287         cfg_layout_duplicate_bb): New global function.
3288         (duplicate_insn_chain): New static function.
3289         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
3290         cfg_layout_duplicate_bb): Declare.
3291         (struct reorder_block_def): Add "original" field.
3292         * emit-rtl.c (emit_copy_of_insn_after): New function.
3293         * rtl.h (emit_copy_of_insn_after): Declare.
3295         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
3296         (fixup_reorder_chain): properly handle edges to exit block.
3298 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
3299                                Jan Hubicka  <jh@suse.cz>
3301         * basic-block.h (note_prediction_to_br_prob): declare.
3302         * c-semantics.c: Inlucde predit.h
3303         (expand_stmt): predict GOTO_STMT as not taken.
3304         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
3305         (cleanup_cfg): Do not free tail_recursion_list.
3306         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
3307         (flow_delete_block): Kill predictions past end of basic block.
3308         * output.h (delete_unreachable_blocks): Declare.
3309         * predict.c (predicted_by_p, process_note_predictions,
3310         process_note_prediction, last_block_p): New function.
3311         (estimate_probability): Bypass loop on PRED_CONTINUE;
3312         do not handle noreturn heuristics; kill PRED_RETURN; add
3313         PRED_EARLY_RETURN.
3314         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
3315         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
3316         * predict.h (IS_TAKEN): New constant.
3317         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
3318         * rtl.c (NOTE_INSN_PREDICTION): New.
3319         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
3320         New macro.
3321         (insn_note): add NOTE_INSN_PREDICTION.
3322         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
3323         CFG; free tail_recursion_label_list.
3324         * stmt.c: Include predict.h;
3325         (return_prediction): New.
3326         (expand_value_return): Use it.
3327         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
3329 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
3331         * config/mips/mips.md: Name the unspecs with define_constant.
3332         (*HILO_delay): Rename to 'hilo_delay' (no star).
3333         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
3334         (reload_outdi, reload_outsi): Likewise.
3336 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
3338         * toplev.c: Fix formatting.
3340 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
3342         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
3343         * configure.in (ac_rtlflag_checking): New.
3344         * doc/install.texi (--enable-checking): Document RTL flag checking.
3346 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3348         * c-common.c (c_common_init): Set options->unsigned_wchar.
3349         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
3350         group target dependencies.
3351         (init_builtins, cpp_handle_option): Update.
3352         * cpplex.c (cpp_interpret_charconst): Update.
3353         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
3354         signed_char to unsigned_char, group target dependencies.
3355         * defaults.h (WCHAR_UNSIGNED): Remove.
3356         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
3357 config:
3358         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
3359         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
3360         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
3361         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
3362         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
3363 doc:
3364         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
3366 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3368         * fixinc/inclhack.def (windiss_math1): New fix.
3369         (windiss_math2): Likewise.
3370         (windiss_valist): Likewise.
3371         * fixinc/fixincl.x: Regenerated.
3373 2002-05-07  Andreas Jaeger  <aj@suse.de>
3375         * genautomata.c (output_internal_min_issue_delay_func): Add
3376         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
3377         (output_internal_trans_func): Likewise.
3379 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
3381         * pa.c (hppa_profile_hook): Use force_reg to get the address
3382         of the profile hook into an appropriate pseudo register.
3384 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
3386         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
3387         (LINK_START_SPEC): Handle it.
3388         (LINK_OS_SPEC): Likewise.
3389         (CPP_SPEC): Likewise.
3390         (STARTFILE_SPEC): Likewise.
3391         (LIB_SPEC): Likewise.
3392         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
3393         all platforms.
3394         (CRTSAVRES_DEFAULT_SPEC): New macro.
3395         (LIB_WINDISS_SPEC): New macro.
3396         (CPP_OS_WINDISS_SPEC): Likewise.
3397         (STARTFILE_WINDISS_SPEC): Likewise.
3398         (ENDFILE_WINDISS_SPEC): Likewise.
3399         (LINK_START_WINDISS_SPEC): Likewise.
3400         (LINK_OS_WINDISS_SPEC): Likewise.
3401         * config/rs6000/windiss.h: New file.
3403 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
3405         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
3407 2002-05-06  David S. Miller  <davem@redhat.com>
3409         * config/sparc/sparc.md (shift insns): Do not mask off
3410         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
3411         take care of it.
3413 2002-05-06  Richard Henderson  <rth@redhat.com>
3415         PR c++/6212
3416         * expr.c (highest_pow2_factor_for_type): New.
3417         (expand_assignment): Use it.
3419 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
3421         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
3422         unspec_volatile.
3423         ("altivec_mfvscr"): Same.
3425 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3427         * rtl.h (struct rtx_def): Update comments.
3428         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
3429         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
3430         RTL_FLAG_CHECK macros with list of expected RTL codes.
3431         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
3432         (rtl_check_failed_flag): New.
3433         * reload1.c (reload): Use REG macro before changing rtx to MEM.
3434         (reload_cse_noop_set_p): Check rtx code before using access macro.
3435         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
3436         before using access macro.
3438 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
3440         * doc/rtl.texi (Flags): Update to reflect current usage.
3442 2002-05-06  Roger Sayle  <roger@eyesopen.com>
3444         PR opt/3995
3445         * fold-const.c (sign_bit_p): New function.
3446         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
3447         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
3448         Reapply fold when converting (A & C) == C into (A & C) != 0.
3449         (fold_binary_op_with_conditional_arg): Fix typo in comment.
3451 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3453         * c-common.c (warn_multichar): New.
3454         (c_common_init): Set CPP's warn_multichar.
3455         * c-common.h (warn_multichar): New.
3456         * c-decl.c (warn_multichar): Remove.
3457         * c-lex.c (lex_charconst): Update.
3458         * c-tree.h (warn_multichar): Remove.
3459         * cppexp.c (eval_token): Sign-extend charconst value.
3460         * cppinit.c (cpp_create_reader): Set warn_multichar.
3461         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
3462         each character.  Update prototype.  Sign-extend the result.
3463         * cpplib.h: Fix conditions.
3464         (struct cpp_options): Add new warning flag.
3465         (cpp_interpret_charconst): Update prototype.
3466 doc:
3467         * cpp.texi: Update documentation.
3469 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
3471         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
3472         Fix typo in usage of allof instead of unit.
3474 2002-05-06  Richard Henderson  <rth@redhat.com>
3476         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
3477         and any jump or call for IN.
3479 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
3481         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
3482         -msse2.
3483         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
3485 2002-05-06  Roger Sayle  <roger@eyesopen.com>
3487         * fold-const.c (lshift-double): Cast the high word to an unsigned
3488         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
3489         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
3490         avoid compiler warning.  (fold): Remove redundant code from
3491         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
3493 2002-05-06  Jeff Law  <law@redhat.com>
3495         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
3496         * pa.c (pa_adjust_cost): Remove all true dependency cost
3497         adjustments.  Also remove support for non-DFA scheduling.
3498         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
3499         to adjust true dependency costs.  Update various comments.
3500         (7100lc, 7200, 7300 scheduling): Simplify by combining the
3501         FP ALU & MPY units into a single unit.
3503 2002-05-06  Catherine Moore  <clm@redhat.com>
3505         * config/v850/v850.c (compute_register_save_size): Make sure
3506         to count all of the registers that will be saved.
3508 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
3510         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
3512 2002-05-06  David S. Miller  <davem@redhat.com>
3514         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
3515         allow result to overlap input operands in memory.
3517 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3519 doc:
3520         * cpp.texi: Update multichar charconst docs.
3522 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3524         * cpplex.c (cpp_interpret_charconst): Sign-extend each
3525         character.  Don't ignore excess characters.  Treat
3526         multicharacter character constants as signed.
3527         (cpp_parse_escape): Clarify diagnostic.
3529 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
3531         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
3532         use add instead of shift.
3533         (ashldi3_sp64): Likewise.
3534         (ashlsi3_const1, ashldi3_const1): Remove.
3535         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
3536         * config/sparc/sparc.c (const1_operand): New.
3538 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
3540         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
3542 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
3544         PR target/6561
3545         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
3547 2002-05-05  Richard Henderson  <rth@redhat.com>
3549         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
3550         memory latency adjustments.
3551         (alpha_variable_issue): Remove.
3552         (alpha_use_dfa_pipeline_interface): New.
3553         (alpha_multipass_dfa_lookahead): New.
3554         * config/alpha/alpha.md: Remove define_function_unit scheduling;
3555         include new dfa scheduling.
3556         (attr type): Add none.
3557         (blockage): Use it.
3558         * config/alpha/ev4.md: New.
3559         * config/alpha/ev5.md: New.
3560         * config/alpha/ev6.md: New.
3562 2002-05-05  David S. Miller  <davem@redhat.com>
3564         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
3566 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
3568         * cse.c: Fix formatting.
3569         * emit-rtl.c: Likewise.
3571 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
3573         * genautomata.c (initiate_states): Add additional guard to
3574         initialize `units_array'.
3576 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
3578         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
3579         process_unit_to_form_the_same_automaton_unit_lists,
3580         form_the_same_automaton_unit_lists
3581         check_unit_distributions_to_automata): New prototypes and
3582         functions.
3583         (check_automata): Rename it into `check_automata_insn_issues'.
3584         (unit_decl): New fields `the_same_automaton_unit' and
3585         `the_same_automaton_message_reported_p'.
3586         (unit_decl_t): New typedef.
3587         (the_same_automaton_lists): New gloval variable.
3588         (unit_regexp, unit_set_el, units_array, units_cmp,
3589         output_get_cpu_unit_code_func): Use the typedef.
3590         (evaluate_max_reserv_cycles): Increment
3591         `description->max_insn_reserv_cycles'.
3592         (initiate_states): Don't increment `max_cycles_num'.
3593         (transform_insn_regexps): Move code around transformation of
3594         regexps from `generate'.
3595         (generate): Remove call of `transform_insn_regexps'.
3596         (expand_automata): Call `transform_insn_regexps' and
3597         `check_unit_distributions_to_automata'.  Check errors before
3598         `generate'.
3600         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
3601         automaton `ultrasparc3_1'.
3603 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
3605         * c-common.c (c_common_init): Set up CPP arithmetic.
3606         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
3607         something reasonable for the host.
3608         (sanity_checks): Add checks.
3609         (cpp_read_main_file): Call sanity_checks() from here...
3610         (cpp_post_options): ... not here.
3611         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
3612         * cpplib.h (struct cpp_options): New member int_precision.
3614 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3616         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
3618 2002-05-04  David S. Miller  <davem@redhat.com>
3620         * config/sparc/linux.h, config/sparc/linux64.h
3621         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
3623         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
3624         more RTX codes.
3625         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
3627         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
3628         of SETs.
3630 2002-05-05  Tim Josling  <tej@melbpc.org.au>
3632         * treelang; New directory for new sample language treelang.
3634 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3636         * Makefile.in (c-lex.o): Update.
3637         * c-lex.c: Include target.h.
3638         (cb_register_builtins): New.
3639         (init_c_lex): Set builtins callback.
3640         * c-lex.h (cpp_define, cpp_assert): New prototypes.
3641         * cppinit.c (init_builtins): Use callback, including for
3642         GXX_WEAK.
3643         * cpplib.h (struct cpp_callbacks): New member.
3644         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
3645         (TARGET_INITIALIZER): Update.
3646         * target.h (struct gcc_target): New hook.
3647         * tree.c (default_register_cpp_builtins): New.
3648         * tree.h (default_register_cpp_builtins): New.
3649 doc:
3650         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
3652 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3654         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
3655         (cpp_post_options): Move sanity checks to...
3656         (sanity_checks): New.
3657         * cpplex.c (maybe_read_ucs): Fix prototype.
3658         (parse_string, cpp_parse_escape): Cast for %c format specifier.
3659         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
3660         if necessary.
3662 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
3664         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
3665         builtins.  Use V2DI patterns instead of TI for logical operations.
3666         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
3667         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
3668         (ix86_expand_builtins): Change the pattern used for movntdq.
3669         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
3670         sse2_nandv2di3): New patterns.
3671         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
3672         on operands.
3673         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
3674         (cvtdq2pd): Correct mode on operand 1.
3675         (sse2_umulsidi3): Describe without unspec.
3676         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
3677         machine modes.
3678         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
3679         (ashlv2di3): Likewise, from sse2_ashlv2di3.
3680         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
3681         ashlv4si3, ashlv2di3): Use SImode for shift count.
3682         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
3683         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
3684         New patterns.
3685         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
3686         New typedefs.
3687         (__m128i, __m128d): New macros.
3688         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
3689         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
3690         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
3691         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
3692         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
3693         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
3694         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
3695         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
3696         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
3697         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
3698         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
3699         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
3700         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
3701         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
3702         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
3703         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
3704         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
3705         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
3706         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
3707         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
3708         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
3709         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
3710         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
3711         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
3712         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
3713         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
3714         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
3715         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
3716         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
3717         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
3718         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
3719         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
3720         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
3721         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
3722         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
3723         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
3724         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
3725         functions.
3726         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
3727         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
3729 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
3731         * dwarf2out.c: Fix formatting.
3732         * varasm.c: Likewise.
3734 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
3736         PR c/6543
3737         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
3738         clobber and use result as temporary value.
3740 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
3742         * expr.c (force_operand): Use expand_simple_* to handle more
3743         cases.
3745 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
3747         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
3748         and sign-extension.
3749         (lex_charconst): Update for change in prototype of
3750         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
3751         appropriately.
3752         * cpphash.h (BITS_PER_CPPCHAR_T): New.
3753         * cppinit.c (cpp_create_reader): Initialize them for no
3754         change in semantics.
3755         (cpp_post_options): Add sanity checks.
3756         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
3757         and truncation issues.  Calculate in type cppchar_t.
3758         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
3759         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
3760         run-time dependent precision correctly.  Return whether the
3761         result is signed or not.
3762         * cpplib.c (dequote_string): Use cppchar_t; update.
3763         * cpplib.h (cppchar_signed_t): New.
3764         struct cpp_options): New precision members.
3765         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
3766         * cppexp.c (eval_token): Update.
3768 2002-05-03  David S. Miller  <davem@redhat.com>
3770         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
3771         * config/sparc/sparc.c (sparc_rtx_costs): New function
3772         implementing RTX_COSTS and CONST_COSTS.
3773         * config/sparc/sparc.h (CONST_COSTS): Delete.
3774         (RTX_COSTS_CASES): Define.
3775         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
3776         the work.
3778         * config/sparc/sparc.md (DFA schedulers): Split out...
3779         * config/sparc/cypress.md, config/sparc/hypersparc.md,
3780         config/sparc/sparclet.md, config/sparc/supersparc.md,
3781         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
3783         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
3784         checks on it, always defined for Sparc.
3786         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
3787         Tweak, and add more detailed comments.
3789 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
3791         * Re-apply patch accidentally reverted with
3792         DFA scheduler merge: remove all rules and variables to slurp
3793         source files out of libiberty and rebuild them with HOST_CC.
3794         ($(HOST_PREFIX_1)varray.o): New rule.
3795         (genattrtab rule): Word wrap.
3797 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
3799         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
3800         (CPP_SUBTARGET_SPEC): Define.
3801         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
3802         cpp_subtarget specs.
3803         (CPP_SPEC): Redefine to include %(cpp_subtarget).
3805 2002-05-03  David S. Miller  <davem@redhat.com>
3807         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
3808         * target.h (struct gcc_target): Delete cycle_display member.
3810         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
3811         (rtx_needs_barrier): Delete reference to cycle_display unspec.
3812         (ia64_sched_reorder2): Mention need for cycle display handling
3813         once such notes exist.
3815 2002-05-03  Richard Henderson  <rth@redhat.com>
3817         * real.c (etoasc): Strip most trailing zeros for clarity.
3818         * sched-vis.c: Include real.h.
3819         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
3820         * Makefile.in (sched-vis.o): Add real.h.
3822 2002-05-03  David S. Miller  <davem@redhat.com>
3824         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
3825         no longer needed.
3827 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
3829         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
3830         when we get an out of range literal.
3831         (altivec_expand_ternop_builtin): Same.
3832         (altivec_expand_unop_builtin): Same.
3833         (altivec_expand_builtin): Same, for dss.
3834         (altivec_expand_builtin): Use trees instead of rtl when
3835         determining literal argument validity.
3837 2002-05-03  David S. Miller  <davem@redhat.com>
3839         Delete cycle display scheduling hook.
3840         * config/ia64/ia64.c (ia64_cycle_display,
3841         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
3842         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
3843         and use emit_insn_before instead of ia64_emit_insn_before.
3844         * config/ia64/ia64.md (unspec usage): Delete cycle display.
3845         (cycle_display): Delete insn pattern.
3846         * config/sparc/sparc.md (unspec usage): Delete cycle display.
3847         (cycle_display): Delete insn pattern.
3848         * config/sparc/sparc.c (sparc_cycle_display,
3849         TARGET_SCHED_CYCLE_DISPLAY): Delete.
3850         * doc/md.texi (cycle_display): Don't mention.
3851         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
3853 2002-05-03  Richard Henderson  <rth@redhat.com>
3855         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
3856         * recog.h: Declare them.
3858         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
3859         * config/sparc/sparc.md: Use store_data_bypass_p instead.
3860         * config/sparc/sparc-protos.h: Update.
3862 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
3864         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
3865         -D__arch64__.  Add -D_LP64.
3866         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
3867         from sparc.h.
3868         (CPP_ARCH64_SPEC): Likewise.
3869         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
3870         (NO_BUILTIN_SIZE_TYPE): Undef.
3872 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
3874         * genautomata.c (min_issue_delay_pass_states): Change return type
3875         in the prototype.
3876         (min_issue_delay_pass_states): Change the algorithm.
3877         (min_issue_delay): Set up min_insn_issue_delay for the state.
3878         (output_min_issue_delay_table): Interchange the nested loops and
3879         and initiate min_insn_issue_delay for states.
3881 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
3883         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
3884         jump is simplejump.
3886 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
3888         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
3889         sequence.
3891 2002-05-03  Richard Henderson  <rth@redhat.com>
3893         PR opt/6534
3894         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
3895         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
3896         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
3897         code before JUMP, not EARLIEST.
3899 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3901         * c-format.c (check_format_info_main): Don't check for presence of
3902         parameter for * width until after operand number has been read,
3903         and only check for it if format parameters are available.
3904         Fixes PR c/6547.
3906 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
3908         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
3909         (LINK_SPEC): Undef before defining.
3911 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
3913         PR preprocessor/6489
3914         * tradcpp.c (fixup_newlines): New.
3915         (main, finclude): Use it.
3917 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
3919         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
3920         * config/mips/mips.c (mips_unique_section): Strip encoding from
3921         decl name.
3923 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
3925         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
3926         mode.
3928 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3930         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
3931         (Specific): Removed buildstats references.
3932         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
3933         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
3934         Accomodate Solaris versions beyond 8.
3935         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
3936         (Specific, *-*-solaris2.8): Removed, obsolete.
3938 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
3940         PR target/6542
3941         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
3942         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
3943         fill leaf_reg_remap with identity.
3944         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
3946 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
3948         * config/h8300/crti.asm: Remove trailing spaces.
3949         * config/h8300/h8300.c: Likewise.
3950         * config/h8300/lib1funcs.asm: Likewise.
3952 2002-05-02  Jason Merrill  <jason@redhat.com>
3954         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
3955         * c-decl.c (c_init_decl_processing): Use it.
3956         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
3957         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
3958         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
3960 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
3962         * regrename.c: Fix formatting.
3963         * tree.c: Likewise.
3965 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
3967         * i386.md (attribute memory): Handle compares properly.
3969 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
3971         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
3972         to none.
3974 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
3976         * function.c: Fix formatting.
3978 2002-05-02  Jan Hubicka  <jh@suse.cz>
3980         * haifa-sched.c (schedule_insn): Print table of instructions and
3981         reservations.
3982         (sched_block): Do not print ready list at verbosity level 1.
3983         * sched-vis.c (print_insn): Make global.
3984         * sched-ebb.c (ebb_print_insn): Rename from...
3985         (print_insn): ... this one.
3986         * sched-int.h (print_insn): Declare
3988 2002-05-02  Richard Henderson  <rth@redhat.com>
3990         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
3991         emitted by cycle_display.
3993 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
3995         * doc/install.texi (*-*-freebsd*): Update to latest status.
3997 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
3999         PR target/6540
4000         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
4001         * config/float-sparc.h: Assume 128-bit long double if
4002         __LONG_DOUBLE_128__ is defined.
4004 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
4006         * genattrtab.c (write_function_unit_info): Add a dummy element
4007         when num_units == 0.
4009 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
4011         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
4012         TYPE_MODE (double_type_node) instead of DFmode.
4014 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
4016         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
4017         jumps post reload.
4018         * toplev.c (rest_of_compilation): Revert Richard's patch.
4020 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4022         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
4024 2002-05-02  Catherine Moore  <clm@redhat.com>
4026         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
4028 2002-05-02  Kazu Hirata  <kazu@hxi.com>
4030         * combine.c: Fix comment typos.
4031         * expr.c: Likewise.
4032         * genautomata.c: Likewise.
4033         * stmt.c: Likewise.
4034         * tree.h: Likewise.
4036 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
4038         * doc/install.texi: State GNAT version requirements.
4040 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
4042         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
4043         of the frame pointer or arg pointer register which strict register
4044         checking is not enabled.
4046 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
4048         * gcc.dg/altivec-8.c: New.
4050         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
4051         PRE_INC and PRE_DEC for altivec modes.
4053 2002-05-01  Bruce Korb  <bkorb@gnu.org>
4055         * fixinc/check.tpl(set-writable): make sure the function exists first
4056         * fixinc/inclhack.def(alpha_assert): fix test_text
4057         * fixinc/tests/base/assert.h: add in missing result
4059 2002-05-01  Jeff Law  <law@redhat.com>
4061         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
4062         'T' constraint.
4064 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
4066         * dbxout.c (dbxout_type): Emit size information for range types,
4067         as well, but only when using GDB extensions.
4069 2002-05-01  Richard Henderson  <rth@redhat.com>
4071         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
4072         target-independent gnu binutils date test.
4074 2002-05-01  Richard Henderson  <rth@redhat.com>
4076         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
4077         info before expunging the block.
4079 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4081         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
4082         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
4083         -M -or -MM is in effect.
4085 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
4087         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
4088         A29k configurations.
4089         * doc/install.texi: Update to match.
4091 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4093         PR bootstrap/6514
4094         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
4095         for duplicates. Always loop over whole list.
4097 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4099         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
4101 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4103         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
4104         support routines.
4106 2002-05-01      Joel Sherrill <joel@OARcorp.com>
4108         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
4110 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
4112         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
4113         (nabs_nopower): Same.
4114         (floatdisf2): New pattern.
4115         (absdi2): Convert to define_insn_and_split.
4116         (nabsdi2): Same.
4117         (trunctfsf2): Same.
4118         (floatditf2): Same.
4119         (floatsitf2): Same.
4120         (fix_trunctfdi2): Same.
4121         (fix_trunctfsi2): Same.
4123 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
4125         * doc/install.texi: Update Texinfo version requirement
4126         documentation.
4128 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
4130         PR target/6512, PR target/5628
4131         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
4132         when memory is not aligned.
4133         (movdf_insn_v9only_vis): Likewise.
4134         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
4135         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
4136         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
4138 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
4140         * gcc.dg/altivec-7.c: New.
4142         * config/rs6000/altivec.h: Cleanup.
4144 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
4146         * doc/invoke.texi (Option Summary): Add -mvrsave=.
4147         (RS/6000 and PowerPC Options): Document -mvrsave=.
4149         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
4150         (rs6000_altivec_vrsave_string): Same.
4151         (rs6000_override_options): Call rs6000_parse_vrsave_option.
4152         (rs6000_parse_vrsave_option): New.
4153         (rs6000_stack_info): Only generate vrsave instructions when
4154         TARGET_ALTIVEC_VRSAVE.
4156         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
4157         (rs6000_altivec_vrsave_string): Define extern.
4158         (rs6000_altivec_vrsave): Same.
4159         (TARGET_ALTIVEC_VRSAVE): New.
4161 2002-04-30  Richard Henderson  <rth@redhat.com>
4163         PR opt/6516
4164         * toplev.c (rest_of_compilation): Don't run cross-jump before
4165         bb-reorder.
4167 2002-04-30  Tom Rix  <trix@redhat.com>
4169         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
4170         check which_alternative.
4172 2002-04-30  Kazu Hirata  <kazu@hxi.com>
4174         * cpplex.c: Fix comment formatting.
4175         * function.c: Likewise.
4176         * integrate.c: Likewise.
4177         * regrename.c: Likewise.
4178         * sibcall.c: Likewise.
4179         * simplify-rtx.c: Likewise.
4180         * tree-inline.c: Likewise.
4182 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4184         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
4185         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
4186         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
4187         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
4188         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
4189         * pa/x-ada: New file.  Define ADA_CFLAGS.
4191 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
4193         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
4194         from MMIX_LAST_REGISTER_FILE_REGNUM.
4195         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
4196         (struct machine_function): New member highest_saved_stack_register
4197         previously static variable in mmix.c.
4198         (MACHINE_DEPENDENT_REORG): Define.
4199         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
4200         (MMIX_OUTPUT_REGNO): New.
4201         (mmix_target_asm_function_prologue): Move calculation of last used
4202         saved-stack-register into...
4203         (mmix_machine_dependent_reorg): New function.  Update to also handle
4204         !TARGET_ABI_GNU.
4205         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
4206         register names, simplify somewhat by new variable regno.
4207         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
4208         register.
4209         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
4210         emitting register names.
4211         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
4212         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
4213         Remove fixed FIXME.
4214         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
4215         Declare.
4217         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
4219 2002-04-30  Richard Henderson  <rth@redhat.com>
4221         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
4222         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
4223         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
4224         emit_tfmode_cvt): New.
4225         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
4226         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
4227         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
4228         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
4229         * config/sparc/sparc-protos.h: Update.
4231 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
4233         * install.texi (Final install): Add to the list of info to include
4234         in a report of a successful bootstrap, and add link to 3.1 list.
4236 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
4238         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
4239         (mode): Add vector modes
4240         (i387): Kill attribute.
4241         (unit): New attribute.
4242         (length_immediate): Grok new types.
4243         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
4244         (modrm): Use "unit".
4245         (memory): Handle MMX/SSE properly.
4246         (scheduling descriptions): Kill uses of fop1.
4247         (sse, mmx, fp patterns): Set type and mode properly.
4249 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
4251         * pa.c (override_options): Default to PA8000 scheduling.
4252         * doc/invoke.texi (HP-PA options): Mention newly added 7300
4253         scheduling parameter.
4255         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
4256         handling of double precision multiplies.
4258         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
4259         fpdiv and fpsqrt instructions.
4260         (7200 & 7300 scheduling): Fix typo in handling of
4261         store-load and store-store penalties.
4263 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4265         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
4266         mips.  Add two missing commas.
4268 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
4270         * doc/contrib.texi (Contributors): Update Paolo Carlini's
4271         and Benjamin Kosnik's entries.
4273 2002-04-29  David S. Miller  <davem@redhat.com>
4275         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
4276         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
4277         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
4278         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
4280 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4282         * combine.c (find_split_point): Use gen_int_mode.
4284 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
4286         Merging code from dfa-branch:
4288         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
4290         * genautomata.c (output_reserv_sets): Fix typo.
4292         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
4294         * genautomata.c (output_reserv_sets): Remove
4295         next_cycle_output_flag.
4297         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
4299         * sched-rgn.c (init_ready_list): Make the DFA code handle
4300         USE/CLOBBER insns in the same way as the traditional
4301         scheduler.
4302         (new_ready): Similarly..
4304         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
4306         * haifa-sched.c (schedule_block): Change the DFA state only after
4307         issuing insn.
4309         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
4311         * pa.c (hppa_use_dfa_pipeline_interface): New function.
4312         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
4313         (override_options): Add PA7300 scheduling support.
4314         (pa_adjust_cost): Update various comments.  Properly
4315         handle anti and output dependencies when using the
4316         DFA scheduler.
4317         (pa_issue_rate): Add PA7300 scheduling support.
4318         (pa_can_combine_p): Call extract_insn before calling
4319         constrain_operands (taken from mainline tree).
4320         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
4321         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
4322         descriptions using DFA descriptions.  Add PA7300
4323         scheduling support.
4325         2002-03-30  David S. Miller  <davem@redhat.com>
4327         Add UltraSPARC-III DFA scheduling support.
4328         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
4329         Update FP conditional move on register insn patterns to use it, as
4330         appropriate.
4331         (define_attr cpu): Add ultrasparc3.
4332         (define_attr us3load_type): New, update integer load patterns to
4333         set it, as appropriate.
4334         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
4335         (rest): Add UltraSPARC3 scheduling description.
4336         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
4337         (PROCESSOR_ULTRASPARC3): New.
4338         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
4339         ({ASM,CPP}_CPU_SPEC): Likewise.
4340         (REGISTER_MOVE_COST): Likewise.
4341         (RTX_COSTS): Likewise.
4342         * config/sparc/sparc.c (sparc_override_options,
4343         sparc_initialize_trampoline, sparc64_initialize_trampoline,
4344         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4345         sparc_issue_rate): Likewise.
4346         * config/sparc/sol2.h: Likewise.
4347         * config/sparc/sol2-sld-64.h: Likewise.
4348         * config/sparc/linux64.h: Likewise.
4350         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
4352         * doc/md.texi: Add comments about usage the latency time for the
4353         different dependencies and about case when two or more conditions
4354         in different define_insn_reservations returns TRUE for an insn.
4356         * doc/md.texi: Add reference for automaton based pipeline
4357         description.
4359         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
4361         * doc/passes.texi: Add missed information about genattrtab.
4363         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
4365         * genautomata.c (output_automata_list_transition_code): Check
4366         automata_list on NULL.
4368         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
4370         * genautomata.c (output_insn_code_cases,
4371         output_automata_list_min_issue_delay_code,
4372         output_automata_list_transition_code,
4373         output_automata_list_state_alts_code): Comment the functions.
4375         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
4377         * genautomata.c (automata_list_el_t): New typedef.
4378         (get_free_automata_list_el,free_automata_list_el,
4379         free_automata_list, automata_list_hash, automata_list_eq_p,
4380         initiate_automata_lists, automata_list_start, automata_list_add,
4381         automata_list_finish, finish_automata_lists,
4382         output_insn_code_cases, output_automata_list_min_issue_delay_code,
4383         output_automata_list_transition_code,
4384         output_automata_list_state_alts_code, add_automaton_state,
4385         form_important_insn_automata_lists): New functions and prototypes.
4386         (insn_reserv_decl): Add members important_automata_list and
4387         processed_p.
4388         (ainsn): Add members important_p.
4389         (automata_list_el): New structure.
4390         (first_free_automata_list_el, current_automata_list,
4391         automata_list_table): New global variables.
4392         (create_ainsns): Initiate member important_p.
4393         (output_internal_min_issue_delay_func): Generate the switch and
4394         call output_insn_code_cases.
4395         (output_internal_trans_func, output_internal_state_alts_func):
4396         Ditto.
4397         (generate): Call initiate_automata_lists.
4398         (automaton_states): New global variable.
4399         (expand_automata): Call form_important_insn_automata_lists.
4400         (write_automata): Call finish_automata_lists.
4402         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
4404         * genautomata.c (add_excls, add_presence_absence): Check that
4405         cpu units in the sets belong the same automaton.
4407         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
4408         about that cpu units in the sets belong the same automaton.
4410         * doc/md.texi: Ditto.
4412         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
4413                     Nitin Gupta  <niting@noida.hcltech.com>
4415         * config/sh/sh.c (sh_use_dfa_interface): New function.
4417         (sh_issue_rate): New Function.
4418         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
4419         TARGET_SCHED_ISSUE_RATE: define.
4421         * config/sh/sh.md: Add DFA based pipeline description for SH4.
4423         (define_attr insn_class): New attribute used for DFA
4424          scheduling.
4425         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
4426         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
4427          cmpeqdi_t): Likewise.
4429         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
4430          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
4431          ex_group.
4432         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
4434         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
4436         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
4437         break.
4439         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
4441         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
4442         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
4443         necessary.
4444         (output_dfa_start_func): Initiate new variable insn_codes_length,
4445         (write_automata): Output definition of the new variable.
4447         2001-10-02  David S. Miller  <davem@redhat.com>
4449         * haifa-sched.c (advance_one_cycle): New function.
4450         (schedule_block): Use it.
4451         (queue_to_ready): Use it, and also make sure to advance the DFA
4452         state on all stall cycles, not just those where insn_queue links
4453         are found.
4455         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
4457         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
4458         non-zero if the highest-priority instruction could be scheduled.
4459         (choose_ready): Remove last argument from max_issue call.
4461         2001-09-28  David S. Miller  <davem@redhat.com>
4463         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
4464         ultrasparc and 3 for other multi-issue sparcs.
4466         2001-09-27  David S. Miller  <davem@redhat.com>
4468         * config/sparc/sparc.md (cycle_display): New pattern.
4469         * config/sparc/sparc.c (sparc_cycle_display): New.
4470         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
4472         2001-09-25  David S. Miller  <davem@redhat.com>
4474         Convert all of Sparc scheduling to DFA
4475         * config/sparc/sparc.md: Kill all define_function_unit
4476         directives and replace with DFA equivalent.
4477         * config/sparc/sparc.c (ultrasparc_adjust_cost,
4478         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
4479         ultra_fpmode_conflict_exists, ultra_find_type,
4480         ultra_build_types_avail, ultra_flush_pipeline,
4481         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
4482         ultrasparc_variable_issue, ultrasparc_sched_init,
4483         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
4484         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
4485         ultra_cur_hist, ultra_cycles_elapsed): Kill.
4486         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
4487         ultrasparc_store_bypass_p): New.
4488         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
4489         Declare.
4491         2001-09-24  David S. Miller  <davem@redhat.com>
4493         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
4494         ready->vec[foo] not ready[foo].
4496         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
4498         * doc/md.texi: Correct examples for define_insn_reservations
4499         `mult' and `div'.
4501         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
4503         * genautomata.c (create_automata): Print message about creation of
4504         each automaton.
4505         (generate): Remove printing meease about creation of
4506         automata.
4508         2001-09-05  David S. Miller  <davem@redhat.com>
4510         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
4511         * config/sparc/linux64.h: Likewise.
4513         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
4515         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
4516         schedule_block, sched_init, sched_finish): Add missed calls of
4517         use_dfa_pipeline_interface.
4519         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
4520         Ditto.
4522         * sched-vis.c (get_visual_tbl_length): Ditto.
4524         2001-08-27  Richard Henderson  <rth@redhat.com>
4526         * genattr.c (main): Emit state_t even when not doing scheduling.
4528         2001-08-27  Richard Henderson  <rth@redhat.com>
4530         * genautomata.c (expand_automata): Always create a description.
4532         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
4534         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
4535         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
4536         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
4537         RTL constructions.
4539         * genattr.c (main): New variable num_insn_reservations.  Increase
4540         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
4541         pipeline hazard recognizer interface.
4543         * genattrtab.h: New file.
4545         * genattrtab.c: Include genattrtab.h.
4546         (attr_printf, check_attr_test, make_internal_attr,
4547         make_numeric_value): Move protypes into genattrtab.h.  Define them
4548         as external.
4549         (num_dfa_decls): New global variable.
4550         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
4551         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
4552         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
4553         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
4555         * genautomata.c: New file.
4557         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
4559         * sched-int.h: (curr_state): Add the external definition for
4560         automaton pipeline interface.
4561         (haifa_insn_data): Add comments for members blockage and units.
4563         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4564         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4565         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4566         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4567         TARGET_SCHED_DFA_POST_CYCLE_INSN,
4568         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4569         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
4570         macros.
4571         (TARGET_SCHED): Use the new macros.
4573         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
4574         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
4575         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
4576         dfa_bubble): New members in gcc_target.sched.
4578         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
4579         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
4580         (insn_queue): Redefine it as pointer to array.
4581         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
4582         INSN_QUEUE_SIZE.
4583         (max_insn_queue_index_macro_value): New variable.
4584         (curr_state, dfa_state_size, ready_try): New varaibles for
4585         automaton interface.
4586         (ready_element, ready_remove, max_issue): New function prototypes
4587         for automaton interface.
4588         (choose_ready): New function prototype.
4589         (insn_unit, blockage_range): Add comments.
4590         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
4591         FUNCTION_UNITS_SIZE == 0.
4592         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
4593         actual_hazard, potential_hazard): Add comments.
4594         (insn_cost): Use cost -1 as undefined value.  Remove
4595         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
4596         pipeline interface.
4597         (ready_element, ready_remove): New functions for automaton
4598         interface.
4599         (schedule_insn): Add new code for automaton pipeline interface.
4600         (queue_to_ready): Add new code for automaton pipeline interface.
4601         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
4602         (debug_ready_list): Print newline when the queue is empty.
4603         (max_issue): New function for automaton pipeline interface.
4604         (choose_ready): New function.
4605         (schedule_block): Add new code for automaton pipeline interface.
4606         Print ready list before scheduling each insn.
4607         (sched_init): Add new code for automaton pipeline interface.
4608         Initiate insn cost by -1.
4609         (sched_finish): Free the current automaton state and finalize
4610         automaton pipeline interface.
4612         * sched-rgn.c: Include target.h.
4613         (init_ready_list, new_ready, debug_dependencies): Add new code for
4614         automaton pipeline interface.
4616         * sched-vis.c: Include target.h.
4617         (get_visual_tbl_length): Add code for automaton interface.
4618         (target_units, print_block_visualization):  Add comments.
4620         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
4621         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
4622         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
4623         (getruntime.o, genautomata.o): New entries.
4624         (genattrtab.o): Add new dependency file genattrtab.h.
4625         (genattrtab): Add new dependencies.  Link it with `libm.a'.
4626         (getruntime.o, hashtab.o): New entries for canadian cross.
4628         * doc/md.texi: Description of automaton based model.
4630         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
4631         Add comments.
4632         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
4633         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
4634         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
4635         TARGET_SCHED_DFA_POST_CYCLE_INSN,
4636         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
4637         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
4638         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
4639         hook descriptions.
4640         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
4641         MAX_DFA_ISSUE_RATE): New macro descriptions.
4643         * doc/contrib.texi: Add dfa based scheduler contribution.
4645         * doc/gcc.texi: Add more information about genattrtab.
4647 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4649         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
4650         adjust_address_nv call.
4652 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
4654         * doc/install.texi (Testing): Provide additional information, and
4655         a stronger encouragement, for running the testsuites.
4657 2002-04-29  DJ Delorie  <dj@redhat.com>
4659         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
4660         given in upper case.
4662 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4664         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
4665         Solaris 2 <widec.h> if missing.
4666         * fixinc/fixincl.x: Regenerate.
4667         * fixinc/tests/base/widec.h: New file.
4669 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
4671         * toplev.c (f_options): Add "profile" switch so that
4672         -fno-profile can be used to disable -p.
4674 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
4676         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
4677         UV2DImode.
4678         * tree.c (build_common_tree_nodes_2): Likewise.
4679         * tree.h (enum tree_index): Likewise.
4680         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
4682         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
4683         entries.
4684         (init_mmx_sse_builtins): Initialize SSE2 builtins.
4685         (ix86_expand_builtin): Add support for SSE2 builtins.
4686         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
4687         (VALID_SSE_REG_MODE): Use it.
4688         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
4689         (enum ix86_builtins): Add SSE2 builtins.
4690         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
4691         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
4692         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
4693         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
4694         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
4695         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
4696         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
4697         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
4698         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
4699         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
4700         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
4701         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
4702         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
4703         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
4704         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
4705         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
4706         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
4707         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
4708         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
4709         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
4710         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
4711         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
4712         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
4713         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
4714         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
4715         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
4716         lfence_insn): New patterns.
4717         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
4718         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
4720 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
4722         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
4724 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4726         * doc/contrib.texi (Contributors): Add Paolo Carlini and
4727         Janis Johnson.
4728         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
4729         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
4730         and CPU instead of cpu.
4732 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
4734         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
4735         variables.
4736         (lang_independent_options): Add -fif-conversion, -fif-conversion2
4737         (rest_of_compilation): Do if conversion only when asked for.
4738         (parse_options_and_default_flags): Set new variables to 1 for -O1
4739         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
4741 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
4743         * i386.c (dbx64_register_map): Fix typo.
4745 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
4747         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
4748         real_one_half, real_bb_freq_max): New static variables.
4749         (debug_profile_bbauxs): Kill.
4750         (process_note_predictions): Kill unused variable.
4751         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
4752         volatile double.
4753         (propagate_freq): Use REAL_ARITHMETICS.
4754         (estimate_bb_frequencies): Likevise; init new static variables.
4755         * Makefile.in (predict.o): Add dependency on real.h
4757 2002-04-28  David S. Miller  <davem@redhat.com>
4759         PR target/6500
4760         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
4761         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
4762         several {reads,writes} instead.
4763         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
4764         Define.
4766 2002-04-27  David S. Miller  <davem@redhat.com>
4768         PR target/6494
4769         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
4770         of the stack bias.
4772         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
4773         including signal.h and sys/ucontext.h, not needed.
4775 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
4777         * varasm.c (output_constant_def): Correct test for not calling
4778         ENCODE_SECTION_INFO for INTEGER_CST.
4780 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
4782         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
4783         keep most cases as function eval_token.
4784         (eval_token): New function.
4785         (_cpp_parse_expr): Read token here for improved diagnostics.
4786         Don't use op_as_text.  Detect bad ':' here.
4787         (reduce): Don't detect bad ':' here.
4788         (op_as_text): Remove.
4789         * cpphash.h (_cpp_test_assertion): Change prototype.
4790         * cpplib.c (_cpp_test_assertion): Change prototype.
4792 2002-04-28  Richard Henderson  <rth@redhat.com>
4794         PR c/5154
4795         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
4796         (ggc_mark_rtx_children): New.
4798 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
4800         PR target/6496
4801         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
4802         after call peepholes for UltraSPARC.
4803         (call + jump 64-bit peepholes): Remove.
4805 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4807         PR c/6497
4808         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
4809         result as temporary value.
4811 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
4813         PR c++/6396
4814         * toplev.c (rest_of_compilation): Only run regrename and copy
4815         propagation if optimizing.
4817 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
4819         PR optimization/6475
4820         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
4821         register of REGNO_DECL (i).
4822         * Makefile.in (reload1.o): Add $(TREE_H).
4824 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
4826         * cppexp.c (lex): Update to use state.skip_eval.
4827         (struct op): Remove prio and flags members.
4828         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
4829         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
4830         (LEFT_ASSOC): New macro.
4831         (optab): New table of operator priorities and flags.
4832         (SHIFT): Update.
4833         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
4834         malloc-ed parser stack.
4835         (reduce): New; reduce the operator stack.
4836         (_cpp_expand_op_stack): Expand the operator stack as necessary.
4837         * cpphash.h (struct op): Predeclare.
4838         (struct cpp_reader): New members op_stack, op_limit.
4839         (struct lexer_state): New member skip_eval.
4840         (_cpp_parse_expr): Update.
4841         (_cpp_expand_op_stack): New.
4842         * cpplib.c (do_if): Update.
4843         * cppinit.c (cpp_create_reader): Create op stack.
4844         (cpp_destroy): And destroy it.
4845         * cpplib.h (CPP_LAST_CPP_OP): Correct.
4846         (TTYPE_TABLE): Correct.
4848 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4850         PR c/6343
4851         * c-decl.c (duplicate_decls): Call merge_weak.
4852         * c-pragma.c (apply_pragma_weak): Warn about misuse.
4853         * output.h (merge_weak): Prototype merge_weak.
4854         * varasm.c (merge_weak): New function.
4855         (declare_weak): Make sure we don't give an error on VAR_DECLs.
4856         Mark RTL with SYMBOL_REF_WEAK.
4858 2002-04-27  Kurt Garloff <garloff@suse.de>
4860         * tree-inline.c (inlinable_function_p): Improve heuristics
4861         by using a smoother function to cut down allowable inlinable size.
4862         * param.def: Add parameters max-inline-insns-single,
4863         max-inline-slope, min-inline-insns that determine the exact
4864         shape of the above function.
4865         * param.h: Likewise.
4867 2002-04-26  Richard Henderson  <rth@redhat.com>
4869         * c-parse.in (malloced_yyss, malloced_yyvs): New.
4870         (yyoverflow): Re-add.  Set them.
4871         (free_parser_stacks): New.
4872         * c-common.h: Declare it.
4873         * c-lex.c (c_common_parse_file): Call it.
4875 2002-04-26  Richard Henderson  <rth@redhat.com>
4877         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
4878         for fallthru search.
4880 2002-04-26  Eric Christopher  <echristo@redhat.com>
4882         PR optimization/3700
4883         * config/mips/mips.c (mips_issue_rate): Define.  New function.
4884         (TARGET_SCHED_ISSUE_RATE): Use.
4886 2002-04-25  David S. Miller  <davem@redhat.com>
4888         PR target/6422
4889         * reorg.c (optimize_skip): Do not allow exception causing
4890         instructions to be considered for delay slots.
4891         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
4892         (relax_delay_slots): Do not try to consider exception causing
4893         instructions as redundant.
4895 2002-04-26  Richard Henderson  <rth@redhat.com>
4897         PR c/5225
4898         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
4900 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
4902         PR bootstrap/6445
4903         * config/i386/i386.md (untyped_call): Return the value in a float
4904         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
4905         TARGET_80387.
4907 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
4909         * tree.c (tree_int_cst_lt): Compare constants whose types differ
4910         in unsigned-ness correctly.
4912 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4914         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
4915         portable runtime model.
4917 2002-04-26  Richard Henderson  <rth@redhat.com>
4919         * c-parse.in (yyoverflow): Revert.
4921 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
4922             Richard Henderson  <rth@redhat.com>
4924         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
4925         result as temporary value.
4927 2002-04-26  Richard Henderson  <rth@redhat.com>
4929         PR c/3581
4930         * c-common.c (fix_string_type): Split out of ...
4931         (combine_strings): ... here.  Take a varray, not a tree list.
4932         (c_expand_builtin_printf): Use fix_string_type.
4933         * c-common.h: Update decls.
4934         * c-parse.in (string): Remove.  Update all uses to use STRING
4935         instead, and not call combine_strings.
4936         (yylexstring): New.
4937         (_yylex): Use it.
4938         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
4939         (build_asm_stmt): Likewise.
4940         * objc/objc-act.c (my_build_string): Use fix_string_type.
4941         (build_objc_string_object): Build varray for combine_strings.
4943 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
4945         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
4946         x86-64.
4948 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4950         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
4951         (HAVE_NO_R_OPERAND): Remove.
4952         (HAVE_VALUE): Remove.
4953         (op_to_prio): Update.
4954         (UNARY): Don't alter flags.
4955         (_cpp_parse_expr): want_value used to indicate whether
4956         a number or unary operator is expected next.  Distinguish
4957         unary and binary +/-.
4958         (op_as_text): Update for unary operators.
4960 2002-04-25  Richard Henderson  <rth@redhat.com>
4962         PR c/2161
4963         * c-parse.in (yyoverflow): New.
4965 2002-04-25  Richard Henderson  <rth@redhat.com>
4967         PR c/2098
4968         * c-common.c (shorten_compare): Simplfy conditions leading to
4969         the generation of a warning.
4971 2002-04-25  Richard Henderson  <rth@redhat.com>
4973         PR c/2035
4974         * expmed.c (extract_bit_field): Fall through to generic code rather
4975         than aborting on subreg special case.
4977 2002-04-25  David S. Miller  <davem@redhat.com>
4979         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
4980         for DECL being NULL.
4982 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
4984         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
4986 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
4988         * c-decl.c (grokdeclarator): Remove outdated ??? note
4989         on invalid declaration of flexible array members.
4991 2002-04-25  Richard Henderson  <rth@redhat.com>
4993         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
4995 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
4997         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
4998         needed by the compiler, even if they are used as global regs.
5000 2002-04-25  Matt Hiller  <hiller@redhat.com>
5002         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
5003         functions.
5004         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
5005         of the corresponding functions.
5006         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
5007         New prototypes.
5009 2002-04-25  Matt Hiller  <hiller@redhat.com>
5011         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
5013         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
5014         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
5015         registers, adjust comment accordingly.
5016         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
5017         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
5018         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
5019         for coprocessor registers.
5020         (ADDITIONAL_REGISTER_NAMES): Include
5021         ALL_COP_ADDITIONAL_REGISTER_NAMES.
5023         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
5024         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
5025         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
5026         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
5027         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
5029         (mips_char_to_class): Adjust comment to include coprocessor
5030         constraint letters.
5032         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
5033         New functions.
5034         (mips_reg_names, mips_regno_to_class): Include coprocessor
5035         information.
5036         (mips_sw_reg_names): Ditto, make non-static.
5037         (mips_move_1word): Handle moves to and from coprocessor registers.
5038         (mips_move_2words): Handle moves to and from coprocessor
5039         registers.
5040         (mips_class_max_nregs, mips_register_move_cost): Handle
5041         coprocessor register classes.
5042         (override_options): Initialize mips_char_to_class and
5043         mips_hard_regno_mode_ok properly for coprocessor registers.
5045         * config/mips/mips.md (movdi_internal, movdi_internal2,
5046         movsi_internal1, movsi_internal2): Add constraint-sets for
5047         coprocessor registers.
5048         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
5049         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
5050         isn't mips.
5051         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
5052         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
5053         isn't mips.
5054         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
5055         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
5056         isn't mips.
5057         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
5058         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
5059         isn't mips.
5061         * doc/tm.texi: Document feature.
5063 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5065         * integrate.c (function_attribute_inlinable_p): Simplify.
5066         Check the table pointer is not NULL.
5068 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
5070         * doc/c-tree.texi: Fix typo in introduction.
5072 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
5074         * c-common.h (c_common_parse_file): Update.
5075         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5076         * c-lex.c (YYDEBUG): Get from c-lex.h.
5077         (c_common_parse_file): Update.
5078         * c-lex.h (YYDEBUG, yydebug): New.
5079         * c-parse.in (YYDEBUG): Get from c-lex.h.
5080         (c_set_yydebug): Remove.
5081         * c-tree.h (c_set_yydebug): Remove.
5082         * langhooks-def.h (lhd_do_nothing_i): New.
5083         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
5084         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
5085         * langhooks.c  (lhd_do_nothing_i): New.
5086         (lhd_set_yydebug): Remove.
5087         * langhooks.h (struct lang_hooks): Update.
5088         * toplev.c (set_yydebug): New.
5089         (compile_file): Update call to parse_file hook.
5090         (decode_d_option): Update.
5091 objc:
5092         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
5094 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
5096         * loop.c (load_mems): Don't change the interface of called functions.
5098         * calls.c (expand_call): Take current_function_pretend_args_size
5099         into account when setting argblock for sibcalls.
5101 2002-04-24  Matt Hiller  <hiller@redhat.com>
5103         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
5104         * c-lex.c: Ditto.
5106         * cpplex.c (skip_line_comment): Process comment one multibyte
5107         character at a time rather than one char at a time, if
5108         appropriate.
5109         (parse_string): Process string one multibyte character at a time
5110         rather than one char at a time, if appropriate.
5111         * c-lex.c (lex_string): Lex and copy multibyte strings
5112         appropriately.
5113         * cpplib.h (cppchar_t): Change to unsigned.
5115 2002-04-24  Richard Henderson  <rth@redhat.com>
5117         PR c/3467
5118         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
5119         for c99.
5121 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
5123         * sh.c (sh_va_arg): If argument was passed by reference,
5124         dereference the pointer.
5126         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
5128         * sh.md (divsi3_i4_media): Use match_operand for input values
5129         rather than hard registers.
5130         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
5131         unnecessarily through hard registers.  Keep copies of pseudo
5132         registers outside of the libcall sequence.
5134         * sh.md (casesi_shift_media): Add modes.
5136         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
5137         values in memory.
5139 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
5141         * attribs.c (c_common_attribute_table): Move table and handlers
5142         to c-common.c.
5143         (format_attribute_table, lang_attribute_table,
5144         lang_attribute_common): Remove.
5145         (init_attributes): Replace NULL pointers with pointers to the
5146         empty table.
5147         (handle_packed_attribute, handle_nocommon_attribute,
5148         handle_common_attribute, handle_noreturn_attribute,
5149         handle_noinline_attribute, handle_always_inline_attribute,
5150         handle_used_attribute, handle_unused_attribute,
5151         handle_const_attribute, handle_transparent_union_attribute,
5152         handle_constructor_attribute, handle_destructor_attribute,
5153         handle_mode_attribute, handle_section_attribute,
5154         handle_aligned_attribute, handle_weak_attribute,
5155         handle_alias_attribute, handle_visibility_attribute,
5156         handle_no_instrument_function_attribute, handle_malloc_attribute,
5157         handle_no_limit_stack_attribute, handle_pure_attribute,
5158         handle_deprecated_attribute, handle_vector_size_attribute,
5159         vector_size_helper): Move to c-common.c.
5160         * c-common.c (c_common_attribute_table,
5161         handle_packed_attribute, handle_nocommon_attribute,
5162         handle_common_attribute, handle_noreturn_attribute,
5163         handle_noinline_attribute, handle_always_inline_attribute,
5164         handle_used_attribute, handle_unused_attribute,
5165         handle_const_attribute, handle_transparent_union_attribute,
5166         handle_constructor_attribute, handle_destructor_attribute,
5167         handle_mode_attribute, handle_section_attribute,
5168         handle_aligned_attribute, handle_weak_attribute,
5169         handle_alias_attribute, handle_visibility_attribute,
5170         handle_no_instrument_function_attribute, handle_malloc_attribute,
5171         handle_no_limit_stack_attribute, handle_pure_attribute,
5172         handle_deprecated_attribute, handle_vector_size_attribute,
5173         vector_size_helper): Move from attribs.c.
5174         * c-common.h (c_common_attribute_table,
5175         c_common_format_attribute_table): New.
5176         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5177         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5178         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
5179         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
5180         (LANG_HOOKS_INITIALIZER): Update.
5181         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
5182         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
5183         * target.h: Update comment.
5184         * tree.c (default_target_attribute_table): Remove.
5185         * tree.h (default_target_attribute_table, format_attribute_table,
5186         lang_attribute_table, lang_attribute_common): Remove.
5187 objc:
5188         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
5189         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
5191 2002-04-24  Jason Merrill  <jason@redhat.com>
5193         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
5194         * dwarf2out.c (dwarf_attr_name): Support it.
5195         (gen_array_type_die): Emit it.
5196         (lookup_type_die): No special handling for VECTOR_TYPE.
5197         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
5199 2002-04-24  Richard Henderson  <rth@redhat.com>
5201         * config/mips/mips.md (movdi_usd): Renumber.
5203 2002-04-24  David S. Miller  <davem@redhat.com>
5205         PR target/6420
5206         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
5207         32-bit Sparc and current_function_returns_struct is true.
5209 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5211         * loop.c (canonicalize_condition): Use gen_int_mode.
5213 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
5215         * config/rs6000/altivec.h: Cleanup file.  Add non individual
5216         variants.
5217         (vec_vaddubm): New.
5218         (vec_vadduhm): New.
5219         (vec_vadduwm): New.
5220         (vec_vaddfp): New.
5221         (vec_vaddcuw): New.
5222         (vec_vaddubs): New.
5223         (vec_vaddsbs): New.
5224         (vec_vadduhs): New.
5225         (vec_vadduws): New.
5226         (vec_vaddsws): New.
5227         (vec_vand): New.
5228         (vec_vandc): New.
5229         (vec_vavgub): New.
5230         (vec_vavgsb): New.
5231         (vec_vavguh): New.
5232         (vec_vavgsh): New.
5233         (vec_vavguw): New.
5234         (vec_vavgsw): New.
5235         (vec_vrfip): New.
5236         (vec_vcmpbfp): New.
5237         (vec_vcmpequb): New.
5238         (vec_vcmpequh): New.
5239         (vec_vcmpequw): New.
5240         (vec_vcmpeqfp): New.
5241         (vec_vcmpgefp): New.
5242         (vec_vcmpgtub): New.
5243         (vec_vcmpgtsb): New.
5244         (vec_vcmpgtuh): New.
5245         (vec_vcmpgtsh): New.
5246         (vec_vcmpgtuw): New.
5247         (vec_vcmpgtsw): New.
5248         (vec_vcmpgtfp): New.
5249         (vec_vcmpgefp): New.
5250         (vec_vcfux): New.
5251         (vec_vcfsx): New.
5252         (vec_vctsxs): New.
5253         (vec_vctuxs): New.
5254         (vec_vexptefp): New.
5255         (vec_vrfim): New.
5256         (vec_lvx): New.
5257         (vec_lvebx): New.
5258         (vec_lvehx): New.
5259         (vec_lde): Add vector float variant.
5260         (vec_lvewx): New.
5261         (vec_lvxl): New.
5262         (vec_vlogefp): New.
5263         (vec_vmaddfp): New.
5264         (vec_vmhaddshs): New.
5265         (vec_vmaxub): New.
5266         (vec_vmaxsb): New.
5267         (vec_vmaxuh): New.
5268         (vec_vmaxsh): New.
5269         (vec_vmaxuw): New.
5270         (vec_vmaxsw): New.
5271         (vec_vmaxsw): New.
5272         (vec_vmaxfp): New.
5273         (vec_vmrghb): New.
5274         (vec_vmrghh): New.
5275         (vec_vmrghw): New.
5276         (vec_vmrglb): New.
5277         (vec_vmrglh): New.
5278         (vec_vmrglw): New.
5279         (vec_vminub): New.
5280         (vec_vminsb): New.
5281         (vec_vminuh): New.
5282         (vec_vminsh): New.
5283         (vec_vminuw): New.
5284         (vec_vminsw): New.
5285         (vec_vminfp): New.
5286         (vec_vmladduhm): New.
5287         (vec_vmhraddshs): New.
5288         (vec_msumubm): New.
5289         (vec_vmsummbm): New.
5290         (vec_vmsumuhm): New.
5291         (vec_vmsumshm): New.
5292         (vec_vmsumuhs): New.
5293         (vec_vmsumshs): New.
5294         (vec_vmuleub): New.
5295         (vec_vmulesb): New.
5296         (vec_vmuleuh): New.
5297         (vec_vmulesh): New.
5298         (vec_vmuloub): New.
5299         (vec_mulosb): New.
5300         (vec_vmulouh): New.
5301         (vec_vmulosh): New.
5302         (vec_vnmsubfp): New.
5303         (vec_vnor): New.
5304         (vec_vor): New.
5305         (vec_vpkuhum): New.
5306         (vec_vpkuwum): New.
5307         (vec_vpkpx): New.
5308         (vec_vpkuhus): New.
5309         (vec_vpkshss): New.
5310         (vec_vpkuwus): New.
5311         (vec_vpkswss): New.
5312         (vec_vpkshus): New.
5313         (vec_vpkswus): New.
5314         (vec_vperm): New.
5315         (vec_vrefp): New.
5316         (vec_vrlb): New.
5317         (vec_vrlh): New.
5318         (vec_vrlw): New.
5319         (vec_vrfin): New.
5320         (vec_vrsqrtefp): New.
5321         (vec_vsel): New.
5322         (vec_vslb): New.
5323         (vec_vslh): New.
5324         (vec_vslw): New.
5325         (vec_vsldoi): New.
5326         (vec_vsl): New.
5327         (vec_vslo): New.
5328         (vec_vspltb): New.
5329         (vec_vsplth): New.
5330         (vec_vspltw): New.
5331         (vec_vspltisb): New.
5332         (vec_vspltish): New.
5333         (vec_vspltisw): New.
5334         (vec_vsrb): New.
5335         (vec_vsrh): New.
5336         (vec_vsrw): New.
5337         (vec_vsrab): New.
5338         (vec_vsrah): New.
5339         (vec_vsraw): New.
5340         (vec_vsr): New.
5341         (vec_vsro): New.
5342         (vec_stvx): New.
5343         (vec_stvebx): New.
5344         (vec_stvehx): New.
5345         (vec_stvewx): New.
5346         (vec_stvxl): New.
5347         (vec_vsububm): New.
5348         (vec_vsubuhm): New.
5349         (vec_vsubuwm): New.
5350         (vec_vsubfp): New.
5351         (vec_vsubcuw): New.
5352         (vec_vsububs): New.
5353         (vec_vsubsbs): New.
5354         (vec_vsubuhs): New.
5355         (vec_vsubshs): New.
5356         (vec_vsubuws): New.
5357         (vec_vsubsws): New.
5358         (vec_vsum4ubs): New.
5359         (vec_vsum4sbs): New.
5360         (vec_vsum4shs): New.
5361         (vec_vsum2sws): New.
5362         (vec_vsumsws): New.
5363         (vec_vrfiz): New.
5364         (vec_vupkhsb): New.
5365         (vec_vupkhpx): New.
5366         (vec_vupkhsh): New.
5367         (vec_vupklsb): New.
5368         (vec_vupklpx): New.
5369         (vec_vupklsh): New.
5370         (vec_vxor): New.
5372 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
5374         PR c/5430
5375         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
5376         added literals from substracted literals.
5377         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
5378         (fold) [associate]: Preserve MINUS_EXPR if needed.
5380 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
5382         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
5383         are obsoleted.
5385 2002-04-23  Tom Tromey  <tromey@redhat.com>
5387         * gcc.c: Added --resource.  For PR java/6314.
5389 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5391         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
5392         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
5393         these libraries.
5395 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
5397         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
5399 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
5401         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
5402         workaround.
5403         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
5404         (ix86_expand_clrstr): Fix typo.
5405         * loop.c (gen_load_of_final_value): New.
5406         (loop_givs_rescan, strength_reduce, check_dbra_loop):
5407         Use it.
5409 2002-04-23  Roger Sayle  <roger@eyesopen.com>
5411         * builtins.c (builtin_memset_gen_str): New function.
5412         (expand_builtin_memset): Optimize the case of constant length, but
5413         unknown value.
5415 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
5417         * config/rs6000/altivec.h (vec_step): Remove extraneous
5418         parentheses.
5419         (vec_ctu): Cast return.
5421 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
5423         PR target/6413
5424         * function.h: (struct function): Add profile_label_no field.
5425         (current_function_profile_label_no): Define.
5426         * function.c: (profile_label_no): New static var.
5427         (expand_function_start): Increment it, and copy to
5428         current_function_profile_label_no.
5429         * output.h (profile_label_no): Delete.
5430         * final.c (profile_label_no): Delete.
5431         (profile_function): Use current_function_profile_label_no.
5432         (final_end_function): Don't increment profile_label_no here.
5433         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
5434         profile_label_no with current_function_profile_label_no.
5435         * config/pa/pa.c (current_function_number): Delete.
5436         (pa_output_function_prologue): Don't output profile label here.
5437         (hppa_profile_hook): Use label_no param rather than
5438         current_function_number.
5439         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
5440         * config/pa/pa.h: .. here.
5441         (FUNCTION_PROFILER): Output profile label here.
5443 2002-04-22  Eric Christopher  <echristo@redhat.com>
5445         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
5446         patch of 2002-04-09 due to binutils issues.
5447         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
5449 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
5451         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
5452         constraint to 'o' for m=r and r=m alternatives.
5453         ("*movv8hi_internal1"): Same.
5454         ("*movv16qi_internal1"): Same.
5455         ("*movv4sf_internal1"): Same.
5457 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
5459         * rtl.h (RTX_FLAG): New macro.
5460         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
5461         * final.c (alter_subreg): Use macro to access rtx flag.
5462         * integrate.c (copy_rtx_and_substitute): Use new access macro.
5463         * print-rtl.c (print_rtx): Use new access macro.
5465         * cse.c (insert): Check rtx code before accessing flag.
5467         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
5468         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
5469         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
5470         convert_const_symbol_ref, make_canonical, make_alternative_compare,
5471         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
5472         simplify_test_exp, optimize_attrs, simplify_by_exploding,
5473         find_and_mark_used_attributes, unmark_used_attributes,
5474         add_values_to_cover, simplify_with_current_value,
5475         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
5476         copy_rtx_unchanging, main): Use new access macros.
5478 2002-04-22  Tom Rix  <trix@redhat.com>
5480         * expmed.c (init_expmed): Generate shifted constant once.
5482 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
5484         * c-lex.c (lex_charconst): Call convert to get constant in
5485         proper type; don't just smash the type field.
5486         Fixes PR c/6300.
5488         * config.gcc: Add list of obsolete configurations.  Disallow
5489         building these without --enable-obsolete.
5490         * doc/install.texi: Document --enable-obsolete and obsoletion
5491         policy.  Mention obsoletion of individual targets in
5492         appropriate places.
5494 2002-04-22  Richard Henderson  <rth@redhat.com>
5496         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
5498 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
5500         PR f/6138.
5501         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
5502         (walk_fixup_memory_subreg): Likewise.
5503         (fixup_var_refs_insn): Adjust accordingly.
5504         (fixup_var_refs_1): Likewise.
5506 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
5508         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
5509         LIBPATH_ARCH64_SPEC): Define.
5510         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
5511         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
5512         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
5513         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
5515 2002-04-22      Joel Sherrill <joel@OARcorp.com>
5517         * gthr-rtems.h: Correct prototypes to remove warnings.
5519 2002-04-22  Richard Henderson  <rth@redhat.com>
5521         PR c/6344
5522         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
5524         * gcse.c (free_insn_expr_list_list): New.
5525         (clear_modify_mem_tables): Use it.  Fix bit set usage.
5526         (canon_list_insert): Use EXPR_LISTs for expressions.
5527         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
5529 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
5531         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
5532         file change and include code to _cpp_pop_buffer.
5533         * cpphash.h (struct pending_option): Predeclare.
5534         (struct cpp_reader): New member next_include_file.
5535         (_cpp_pop_file_buffer): Update.
5536         (_cpp_push_next_buffer): Update, rename.
5537         * cppinit.c (cpp_destroy): Free include chain and pending here.
5538         (cpp_finish_options): Simplify.
5539         (_cpp_push_next_buffer): Rename and clean up.
5540         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
5541         Clarify.
5542         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
5544 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
5546         * config/rs6000/altivec.h (vec_xor): Add variant for both args
5547         being vector signed int.
5548         (vec_andc): Same.
5549         (vec_xor): Add variant for both args being vector signed char.
5550         Remove redundant variant.
5551         (vec_andc): Same.
5553 2002-04-21  David S. Miller  <davem@redhat.com>
5555         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
5556         compare mode in output RTL.
5558 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
5560         * config/rs6000/rs6000.c (rs6000_override_options): Correct
5561         style and formatting of previous patch.
5563 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
5565         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
5566         flag_pic for ABI_AIX.
5568 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5570         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
5571         * cppfiles.c (read_include_file): Similarly.
5572         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
5573         uxstrdup ustrchr, ufputs): Similarly.
5574         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
5575         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
5576         cpp_ideq, parse_identifier, parse_number): Similarly.
5577         * cpplib.c (struct directive, dequote_string, D, run_directive,
5578         cpp_push_buffer): Similarly.
5579         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
5580         _cpp_create_definition, check_trad_stringification,
5581         cpp_macro_definition): Similarly.
5583 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
5585         * cppmacro.c (funlike_invocation_p): Don't step back
5586         over CPP_EOF.
5588 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
5590         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
5591         labelno.
5593 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
5595         * doc/invoke.texi: Remove Chill references.
5596         * doc/gcc.texi: Update last modified date.
5598 2002-04-20  Kazu Hirata  <kazu@hxi.com>
5600         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
5601         push and pop.  Replace add.l with add.w.
5603 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5605         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
5606         multiply instructions for H8/300H case.
5608 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
5610         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
5611         Bum three instructions from each routine.
5613 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5615         * Makefile.in: Update.
5616         * decl.c (push_c_function_context, pop_c_function_context,
5617         mark_c_function_context): Rename for consistency.
5618         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
5619         * c-tree.h (push_c_function_context, pop_c_function_context,
5620         mark_c_function_context): Rename for consistency.
5621         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5622         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5623         * function.c (init_lang_status, save_lang_status,
5624         restore_lang_status, mark_lang_status, free_lang_status):
5625         Move to langhooks.h.
5626         (push_function_context_to, pop_function_context_from,
5627         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
5628         Update.
5629         * function.h (init_lang_status, save_lang_status,
5630         restore_lang_status, mark_lang_status, free_lang_status):
5631         Move to langhooks.h.
5632         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
5633         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
5634         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
5635         LANG_HOOKS_FUNCTION_INITIALIZER): New.
5636         (LANG_HOOKS_INITIALIZER): Update.
5637         (lhd_do_nothing_f): New.
5638         * langhooks.h (struct lang_hooks_for_functions): New.
5639         (struct lang_hooks): New hooks.
5640         * langhooks.c (lhd_do_nothing_f): New.
5641 objc:
5642         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
5643         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
5645 2002-04-19  David S. Miller  <davem@redhat.com>
5647         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
5648         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
5650 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
5652         PR optimization/3756
5653         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
5654         x = ((int) y < 0) ? cst1 : cst2.
5656 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
5658         PR c/6358
5659         * function.c: Reapply patch for c/6358.
5660         (expand_function_end): Copy decl_rtl's mode, not
5661         current_function_return_rtx mode.
5663 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
5665         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
5666         targets.
5668 2002-04-19  Tom Tromey  <tromey@redhat.com>
5670         * doc/install.texi (Specific): Update status of Solaris 2.8.
5671         For PR libgcj/6158.
5673 2002-04-19  Andreas Schwab  <schwab@suse.de>
5675         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
5676         (PUT_REAL): Restore old definition.
5678 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
5679             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5681         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
5682         binutils 2.11.2 and higher generate smaller binaries than Sun's
5683         native tools.
5685 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
5687         PR c++/6352
5688         * toplev.c (rest_of_compilation): Do not defer functions for which
5689         TREE_SYMBOL_REFERENCED has already been set.
5691 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
5693         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
5694         alternative.
5696 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
5698         * builtins.c: Include langhooks.h.
5699         (lang_type_promotes_to): Remove.
5700         (expand_builtin_va_arg): Use new hook.
5701         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
5702         (simple_type_promotes_to): Move to c-typeck.c.
5703         * c-common.h (simple_type_promotes_to): Remove.
5704         * c-decl.c (duplicate_decls, grokdeclarator): Update.
5705         * c-format.c: Include langhooks.h.
5706         (check_format_types): Update.
5707         * c-tree.h (c_type_promotes_to): New.
5708         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
5709         (type_lists_compatible_p): Update.
5710         * langhooks-def.h (lhd_type_promotes_to): New.
5711         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
5712         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5713         * langhooks.c (lhd_type_promotes_to): New.
5714         * langhooks.h (struct lang_hooks_for_types): New hook.
5715         * tree.h (lang_type_promotes_to): Remove.
5716 objc:
5717         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
5719 2002-04-18  Richard Henderson  <rth@redhat.com>
5721         * function.c: Revert patch for c/6358.
5723 2002-04-18  Richard Henderson  <rth@redhat.com>
5725         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
5726         blocks.  Handle multiple references to the TRAP block.  Handle
5727         non-adjacent THEN and OTHER blocks.
5729 2002-04-18  Richard Henderson  <rth@redhat.com>
5731         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
5732         crash with no type for by-mode libcalls.
5734         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
5736 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
5738         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
5739         __xtensa_nonlocal_goto): Use a syscall instructions to flush
5740         the register windows.
5742 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
5744         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
5745         appropriate.  Document need for extended precision even when
5746         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
5747         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
5748         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
5749         instead of relying on later syntax error when REAL_WIDTH > 5.
5750         * real.c: Define NE based only on whether or not we have a
5751         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
5752         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
5753         define GET_REAL and PUT_REAL as simple memcpy operations; no
5754         need to byteswap or round.
5755         Use #error instead of #ifdef-ing out the entire file, for
5756         prompt error detection.
5758         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
5760 2002-04-18  David S. Miller  <davem@redhat.com>
5762         * config/sparc/sparc.h (BRANCH_COST): Define.
5764         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
5765         does it.
5767 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
5769         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
5770         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
5771         propagate_block calls after relaxation loop using new variable
5772         stabilized_prop_flags.
5774 2002-04-18  Richard Henderson  <rth@redhat.com>
5776         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
5777         (ia64_va_arg): Expect variable sized types by reference.
5778         * config/ia64/ia64-protos.h: Update.
5779         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
5780         ia64_function_arg_pass_by_reference.
5782 2002-04-18  Richard Henderson  <rth@redhat.com>
5784         * ifcvt.c: Include except.h.
5785         (block_has_only_trap): Break out from find_cond_trap.
5786         (find_cond_trap): Use it.  Always delete the trap block.
5787         (merge_if_block): Allow then block null.  Be less simplistic about
5788         what insns can end a block.
5789         * Makefile.in (ifcvt.o): Depend on except.h.
5791         * config/ia64/ia64.md (trap, conditional_trap): New.
5793 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
5795         PR c/6358
5796         * function.c (assign_parms): Assign hard current_function_return_rtx
5797         register here...
5798         (expand_function_end): ...not here.
5800 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
5802         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5803         * c-tree.h (c_incomplete_type_error): New.
5804         * c-typeck.c (require_complete_type, build_component_ref): Update.
5805         (incomplete_type_error): Rename.
5806         * langhooks-def.h (lhd_incomplete_type_error): New.
5807         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
5808         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
5809         * langhooks.c (lhd_incomplete_type_error): New.
5810         * langhooks.h (struct lang_hooks_for_types): New hook.
5811         * tree.c (size_in_bytes): Use new hook.
5812         * tree.h (incomplete_type_error): Remove.
5813 objc:
5814         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
5816 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
5818         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
5819         TARGET_FLOAT_FORMAT blocks.
5821 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5823         * doc/install.texi (Downloading the source): Do not mention Chill
5824         any longer, but mention Ada.
5825         (Configuration): Do not mention Chill any longer.
5827 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
5829         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
5831 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
5833         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
5834         in last patch.
5836 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
5838         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
5839         instead of unsigned_type.
5841 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
5843         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
5844         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
5845         later.
5847 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
5849         * attribs.c (vector_type_node_list): New static variable.
5850         (handle_vector_size_attribute): Use it to avoid generating a
5851         new type node each time we are called.
5853         * combine.c (subst): Avoid trying to make a vector mode subreg of
5854         an integer constant.
5855         (gen_lowpart_for_combine): Likewise.
5857 2002-04-18  Roger Sayle  <roger@eyesopen.com>
5858             Jakub Jelinek  <jakub@redhat.com>
5860         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
5861         for integer constant c (if x has unsigned type or sign bit is not
5862         set in c).  This folds the zero/sign extension into the bit-wise and
5863         operation.
5865 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
5867         PR middle-end/6205
5868         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
5869         otherwise xorps.
5871 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
5873         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
5875 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
5877         * gcc.c (read_specs): Detect and fail if an attempt is made to
5878         rename a spec string to an already existing string.
5880 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5882         * config/s390/s390.c (legitimize_pic_address): Do not generate
5883         illegal address constant without CONST.
5885 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5887         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
5888         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
5890 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
5892         PR optimization/6305
5893         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
5894         to make sure previous reloads are taken into account.  Generate
5895         better code if one operand is an in-range immediate constant.
5897 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
5899         * doc/install.texi (Building): libgcj requires GNU make.
5901 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
5903         PR bootstrap/6315
5904         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
5905         even if hard quad and register is not floating.
5906         (movtf reg<-mem split): Disallow splitting if hard quad and
5907         register is floating.
5908         (movtf mem<-reg split): Likewise.
5909         * config/sparc/sparc.c (fp_register_operand): New predicate.
5910         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
5912 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
5914         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
5915         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
5916         (unprotoize.o): Ditto.  Build from protoize.c.  Define
5917         UNPROTOIZE on command line.
5918         * protoize.c: Include cppdefault.h.  Delete include_defaults.
5919         (in_system_include_dir): Use cpp_include_defaults (defined in
5920         cppdefault.o).
5921         * unprotoize.c: Delete file.
5923 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
5925         * config/rs6000/altivec.h (vec_ld): Add array variants.
5926         (vec_lde): Same.
5927         (vec_ldl): Same.
5929 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
5930             Aldy Hernandez <aldyh@redhat.com>
5932         * config/rs6000/altivec.h: Define __ALTIVEC__.
5933         (bool): New.
5934         (__pixel): New.
5935         (pixel): New.
5936         (vec_cfux): New.
5937         (vec_vmaddfp): New.
5938         (vec_vsldoi): New.
5939         Add parentheses to all macro arguments.
5941 2002-04-16  Richard Henderson  <rth@redhat.com>
5943         PR c++/6320
5944         * except.c (remove_eh_handler): Insert inner regions at beginning
5945         of sibling chain.  Refactor expressions.
5947 2002-04-16  Richard Henderson  <rth@redhat.com>
5949         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
5950         * config/sparc/sol2-gas-bi.h: New file.
5951         * config.gcc (sparc*-solaris): Add it as needed.
5952         * configure.in (AS_SPARC64_FLAG): Remove check.
5953         * config.in, configure: Regenerate.
5955         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
5957 2002-04-16  Richard Henderson  <rth@redhat.com>
5959         * config/mips/mips.c (override_options): Don't override N32 for
5960         a 64-bit ISA.
5962         PR 6202
5963         * config/mips/mips.md (can_delay): Split out of existing define_delays.
5964         (HILO_delay): Set can_delay false.
5966 2002-04-16  Dale Johannesen <dalej@apple.com>
5968         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
5969         instruction addresses.
5970         (rs6000_output_function_epilogue): Likewise.
5972 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
5974         * c-parse.in (poplevel, compstmt_start,
5975         compstmt_primary_start): Add ending ';', in accordance
5976         with POSIX.
5978 2002-04-16  Richard Henderson  <rth@redhat.com>
5980         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
5981         Adjust tm_file order to get TARGET_DEFAULT set properly.
5982         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
5983         * doc/install.texi (sparc-solaris): Update.
5985 2002-04-16  Dale Johannesen <dalej@apple.com>
5987         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
5988         comparison operands do not match each other or if modes of
5989         conditions do not match result.
5991 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
5993         PR target/6305
5994         * config/s390/s390.md (mulsidi3): Set both subregs of the
5995         multiword register.
5997 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
5999         * config/rs6000/altivec.h (vec_addc): Type check.
6001 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6003         PR middle-end/6279
6004         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
6006         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
6008 2002-04-15  Richard Henderson  <rth@redhat.com>
6010         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
6011         call_really_used_regs too.
6013 2002-04-15  Richard Henderson  <rth@redhat.com>
6015         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
6017 2002-04-15  David S. Miller  <davem@redhat.com>
6019         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
6020         as being CLOBBERed.
6022 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
6024         PR c/6290
6025         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
6026         CONST_VECTOR is { 0, ... 0 }.
6028 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
6030         * doc/install.texi (Installing GCC: Configuration): Clarify
6031         the only supported ways to configure gcc.
6033 2002-04-15  Roland McGrath  <roland@frob.com>
6035         * config.gcc (alpha*-*-gnu*): New target configuration.
6036         * config/alpha/gnu.h: New file for it.
6037         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
6039 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
6041         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
6042         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
6043         * tree.h (expand_start_stmt_expr): Update prototype.
6044         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
6045         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
6046         on the STMT_EXPR created for the inline function.
6048 2002-04-15  Richard Henderson  <rth@redhat.com>
6050         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
6051         config/i386/linux-aout.h, config/i386/linux-oldld.h,
6052         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
6053         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
6054         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
6055         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
6056         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
6057         Define __gnu_linux__, not gnu_linux.
6058         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
6060 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
6062         Remove Chill front end.
6063         * gcc.c (default_compilers): Remove Chill entries.
6064         * ch: Remove directory.
6065         * doc/frontends.texi: Remove information about Chill.
6066         * doc/sourcebuild.texi: Likewise.
6067         * doc/standards.texi: Likewise.
6069 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
6071         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
6072         (LONGLONG_STANDALONE): Define.
6074 2002-04-15  David S. Miller  <davem@redhat.com>
6076         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
6077         Call emit_library_call with LCT_NORMAL.
6078         (sparc_initialize_trampoline): Use LCT_foo instead of
6079         magic constant in emit_library_call invocations.
6080         (sparc64_initialize_trampoline): Likewise.
6081         (sparc_profile_hook): Likewise.
6082         * config/sparc/sparc.md: Likewise.
6084         * config/sparc/sparc.c (sparc_extra_constraint_check):
6085         Fix type of argument 'c'.
6086         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
6087         Likewise.
6089 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
6091         * diagnostic.h (output_buffer_state): Redefine.
6092         (output_format_decoder): New macro.
6093         (output_prefixing_rule): Likewise.
6094         (output_line_cutoff): Likewise.
6095         (diagnostic_format_decoder): Adjust.
6096         (diagnostic_prefixing_rule): Likewise.
6097         (diagnostic_line_cutoff): Likewise.
6098         (diagnostic_state): Likewise.
6099         (diagnostic_kind_count): Likewise.
6100         (diagnostic_buffer): Now a macro.
6102         * diagnostic.c (diagnostic_buffer): Remove definition.
6103         (output_is_line_wrapping): Adjust.
6104         (set_real_maximum_length): Likewise.
6105         (output_set_maximum_length): Likewise.
6106         (init_output_buffer): Likewise.
6107         (lhd_print_error_function): Likewise.
6108         (output_do_verbatim): Likewise.
6110 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
6112         * cpperror.c (print_location): Don't print include chain
6113         if line == 0.
6114         (cpp_begin_message): Update to use DL_ macros.
6115         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6116         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6117         cpp_notice, cpp_notice_from_errno): Remove.
6118         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6119         level.
6120         (cpp_errno): New.
6121         * cppexp.c (CPP_ICE): Remove.
6122         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
6123         lex, integer_overflow, _cpp_parse_expr): Update.
6124         * cppfiles.c (read_include_file, find_include_file,
6125         handle_missing_header, _cpp_read_file, remap_filename): Update.
6126         * cpphash.h (enum error_type): Remove.
6127         (_cpp_begin_message): Update.
6128         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
6129         cpp_handle_option, cpp_post_options): Update.
6130         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
6131         skip_whitespace, parse_identifier, parse_slow, parse_string,
6132         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
6133         cpp_interpret_charconst): Update.
6134         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
6135         lex_macro_node, do_undef, glue_header_name, parse_include,
6136         do_include_common, read_flag, do_line, do_linemarker, do_ident,
6137         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
6138         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
6139         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
6140         _cpp_pop_buffer, do_diagnostic): Update.
6141         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
6142         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
6143         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
6144         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
6145         cpp_notice, cpp_notice_from_errno): Remove.
6146         (cpp_error, cpp_error_with_line): Update to take a diagnostic
6147         level.
6148         (cpp_errno): New.
6149         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
6150         collect_args, enter_macro_context, save_parameter, parse_params,
6151         _cpp_create_definition, check_trad_stringification,
6152         cpp_macro_definition): Update.
6153         * cppmain.c (cpp_preprocess_file): Update.
6154         * fix-header.c (read_scan_file): Update.
6156 2002-04-14  Andreas Schwab  <schwab@suse.de>
6158         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
6160 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
6162         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
6164 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6166         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
6167         not gnu_hurd.
6169 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
6171         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
6173 2002-04-13      Joel Sherrill <joel@OARcorp.com>
6175         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
6176         sparc-elf and sparc-rtems targets.
6178 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
6180         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
6181         defined, and __gnu_hurd__ wherever __GNU__ is defined.
6182         * arm/linux-elf.h: Likewise.
6183         * cris/aout.h: Likewise.
6184         * cris/linux.h: Likewise.
6185         * i370/linux.h: Likewise.
6186         * i386/gnu.h: Likewise.
6187         * i386/linux-aout.h: Likewise.
6188         * i386/linux-oldld.h: Likewise.
6189         * i386/linux.h: Likewise.
6190         * i386/linux64.h: Likewise.
6191         * ia64/linux.h: Likewise.
6192         * m68k/linux-aout.h: Likewise.
6193         * m68k/linux.h: Likewise.
6194         * mips/linux.h: Likewise.
6195         * pa/pa-linux.h: Likewise.
6196         * pj/linux.h: Likewise.
6197         * rs6000/sysv4.h: Likewise.
6198         * s390/linux.h: Likewise.
6199         * sh/linux.h: Likewise.
6200         * sparc/linux-aout.h: Likewise.
6201         * sparc/linux.h: Likewise.
6202         * sparc/linux64.h: Likewise.
6203         * xtensa/linux.h: Likewise.
6205 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
6207         * stmt.c (check_unique_operand_names): Expect operand names to
6208         be strings rather than identifiers.  Use simple_cst_equal to
6209         compare them.
6210         (resolve_operand_name_1): Make same identifier to string change here.
6211         * c-parse.in (asm_operand): Convert a named operand into a string.
6212         * cp/parse.y (asm_operand): Likewise.
6214 2002-04-13  Andreas Schwab  <schwab@suse.de>
6216         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
6218 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
6220         Revert these changes:
6222         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6224         PR c++/5571
6225         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6227 2002-04-12  Richard Henderson  <rth@redhat.com>
6229         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
6230         (sparc*-*-solaris): Clean up header files.
6231         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
6232         and plan on generating 64-bit code.
6233         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
6234         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
6235         * config/sparc/sol2-sld-64.h: Rename ...
6236         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
6237         for AS_SPARC64_FLAG not defined.
6238         * config/sparc/sol2-gld-bi.h: New.
6239         * config/sparc/sol2-sld.h: Remove.
6240         * config/sparc/sol26-sld.h: New.
6241         * config/sparc/sol2.h: Tidy comments.
6242         * doc/install.texi: Document sparc-solaris configury changes.
6244 2002-04-12  Richard Henderson  <rth@redhat.com>
6246         * recog.c (offsettable_address_p): Match the logic in adjust_address.
6248         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
6249         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
6251 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6253         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
6255 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
6257         * pa.c (pa_can_combine_p): Call extract_insn before calling
6258         constrain_operands.
6260 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
6262         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
6263         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
6264         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
6265         (CPP_PREDEFINES): Handle __declspec.
6266         * config/i386/t-interix (USER_H): Remove.
6268 2002-04-12  DJ Delorie  <dj@redhat.com>
6270         * integrate.c (compare_blocks): Make comparisons safe for when
6271         sizeof(int) < sizeof(char *).
6272         (find_block): Likewise.
6274 2002-04-12  Jan Hubicka  <jh@suse.cz>
6275             David Edelsohn  <edelsohn@gnu.org>
6277         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
6278         registers.
6279         (symbol_ref_operand): New.
6280         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
6281         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
6283 2002-04-12  Andreas Schwab  <schwab@suse.de>
6285         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
6286         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
6287         overrides the definition in config/svr4.h.
6289 2002-04-12      Eric Norum <eric.norum@usask.ca>
6291         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
6292         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
6293         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
6294         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
6295         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
6296         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
6297         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
6298         definitions to config/rtems.h and make the targets more similar.
6300 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6302         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
6303         POINTERS_EXTEND_UNSIGNED.
6304         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
6305         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
6307         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
6308         not specified.
6310 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
6312         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
6313         depends on TARGET_SHMEDIA, not TARGET_SH5.
6315 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
6317         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
6318         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
6320 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
6322         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
6323         no r0 clobber.
6325 2002-04-12  Andreas Schwab  <schwab@suse.de>
6327         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
6329 2002-04-12  Richard Henderson  <rth@redhat.com>
6331         PR bootstrap/4191
6332         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
6334         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
6335         modes spanning multiple hard regs.
6337         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
6339 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6341         * pa.c (pa_output_function_prologue): Don't accumulate the total
6342         number of code bytes when using TARGET_64BIT, or gas, SOM and not
6343         the portable runtime.
6344         (output_deferred_plabels): Handle 64bit plabels.
6345         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
6346         generating pic code using the GAS assembler for object formats that
6347         are not SOM (ie., ELF32 and ELF64).
6348         (output_millicode_call): Check attribute type if attribute length is 28.
6349         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
6350         dbr_sequence_length once.
6351         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
6352         dbr_sequence_length once.
6353         * pa.h (TARGET_SOM): Define if not defined.
6354         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
6355         with GAS and not SOM.
6356         (jump, call_internal_reg, call_value_internal_reg): Likewise.
6357         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
6359 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6361         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
6362         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
6363         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
6364         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
6365         elfos.h and dbxelf.h values are fine now.
6366         * config/i386/freebsd.h, config/alpha/freebsd.h
6367         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
6369 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6371         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
6372         or set Acpu or Amachine.  Reformat.
6373         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6374         define.
6375         (LINK_SPEC): Do not need to undef.
6376         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
6377         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
6378         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6379         define.
6380         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
6381         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
6382         (LINK_SPEC): Do not need to undef.
6383         (DONT_USE_BUILTIN_SETJMP): Do not define.
6384         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
6385         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
6386         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
6387         Remove trailing spaces.
6388         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
6389         __ELF__, or set Acpu or Amachine.  Reformat.
6390         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
6391         define.
6393 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6395         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
6396         all other *-*-freebsd* targets.
6398 2002-04-11  Richard Henderson  <rth@redhat.com>
6400         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
6402 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
6404         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
6405         Include {cpu}/{cpu}.h thru tm_file.
6406         (alpha*-*-linux*ecoff): Remove target.
6407         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
6408         (LINK_SPEC): Remove, is not OS independent.
6409         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
6410         (LINK_SPEC): Do not need to #undef any longer.
6411         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
6412         any longer.
6413         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
6414         __ELF__.
6415         (LINK_SPEC): Moved here from alpha/elf.h.
6416         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
6417         SUB_CPP_PREDEFINES.
6418         * config/alpha/linux-ecoff.h: Remove.
6419         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
6420         (CPP_SPEC): Define _POSIX_SOURCE as needed.
6421         (CPP_SUBTARGET_SPEC): Do not define.
6422         (LINK_SPEC): Do not need to #undef any longer.
6423         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
6424         * config/alpha/vms.h: Likewise.
6426 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
6428         * doc/extend.texi: Remove old claim that typedefs cannot have
6429         an alignment attribute.
6431 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6433         PR optimization/6177
6434         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
6435         bitpos is 0 and bitsize CONCAT size.
6437 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
6439         PR c/6223
6440         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
6442 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
6444         * config/alpha/freebsd.h: Minor reformatting.
6445         (CPP_SPEC): Define ELF and add cpp_subtarget.
6446         (ASM_SPEC): No longer needed.
6448 2002-04-11  Richard Henderson  <rth@redhat.com>
6450         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
6451         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
6452         (dimode mem/zero splitter): New.
6454 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
6456         * config/cris/cris.c (cris_override_options): Tweak error message
6457         for PIC not implemented.
6459         * config/cris/cris.h: Tweak comments related to parameter-passing.
6461         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
6463 2002-04-10  Richard Henderson  <rth@redhat.com>
6465         * except.c (add_ehl_entry): Allow duplicates after landing pad
6466         creation.
6468 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
6470         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
6472 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
6474         * c-decl.c (c_init_decl_processing): Move generation of
6475         decls for g77_integer_type_node and friends from here ...
6476         * c-common.c (c_common_nodes_and_builtins): ... to here.
6478 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
6480         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
6481         is only used as frame pointer when frame_pointer_needed is true.
6483 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
6485         PR target/817
6486         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
6487         for the fact that the pool entry uses two words.
6488         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
6489         1k bytes.
6490         (movdf_soft_insn): Similarly.
6491         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
6492         for the fact that the pool entry uses three words.
6494 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
6496         * config/mips/mips.c (mips_va_arg): When using the struct version
6497         of the EABI va_list, allow arguments in the register save area to
6498         take up less room than a stack argument.
6500 2002-04-10  Richard Henderson  <rth@redhat.com>
6502         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
6503         if EXPAND_INITIALIZER.
6505 2002-04-09  Richard Henderson  <rth@redhat.com>
6507         * config/alpha/alpha.md (movdi_er_maybe_g): New.
6508         * config/alpha/alpha.c (alpha_expand_mov): Use it.
6510 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
6512         PR optimization/6233
6513         * rtlanal.c (pure_call_p): New function.
6514         * rtl.h (pure_call_p): Declare.
6515         * loop.c (prescan_loop): Use it to set has_nonconst_call.
6516         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
6518 2002-04-09  Eric Christopher  <echristo@redhat.com>
6520         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
6521         information to .comm directive.
6523 2002-04-09  Richard Henderson  <rth@redhat.com>
6525         PR c/5078
6526         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
6528 2002-04-09  Richard Henderson  <rth@redhat.com>
6530         * basic-block.h (flow_delete_block_noexpunge): Declare.
6531         (expunge_block_nocompact): Declare.
6532         * cfg.c (expunge_block_nocompact): Split out from ...
6533         (expunge_block): ... here.
6534         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
6535         (flow_delete_block_noexpunge): Split out from ...
6536         (flow_delete_block): ... here.
6537         * cfgcleanup.c (delete_unreachable_blocks): Compact while
6538         removing dead blocks.
6539         * except.c (exception_handler_labels): Remove.
6540         (exception_handler_label_map): New.
6541         (struct eh_region): Add aka member.
6542         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
6543         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
6544         (for_each_eh_label, for_each_eh_label_1): New.
6545         (init_eh): Register exception_handler_label_map.
6546         (free_eh_status): Use free_region.
6547         (find_exception_handler_labels): Use the map, not the list.
6548         (remove_exception_handler_label): Likewise.
6549         (maybe_remove_eh_handler): Likewise.
6550         (remove_eh_handler): Use the region aka bitmap.
6551         * except.h (exception_handler_labels): Remove.
6552         (for_each_eh_label): Declare.
6553         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
6554         * loop.c (invalidate_loops_containing_label): New.
6555         (find_and_verify_loops): Use it.  Use for_each_eh_label.
6556         * sched-rgn.c (is_cfg_nonregular): Use
6557         current_function_has_exception_handlers.
6559 2002-04-09  Richard Henderson  <rth@redhat.com>
6561         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
6562         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
6563         Do not return changed status.
6564         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
6565         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
6566         New functions that do return changed status.
6567         * sbitmap.h: Update decls.
6568         * gcse.c, lcm.c: Use _cg functions as needed.
6570 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
6572         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
6573         (sh64-*-elf*, sh-*-rtemself*): Likewise.
6574         * config/sh/embed_bb.c: New file.
6575         * config/sh/embed-elf.h: New file.
6576         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
6577         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
6578         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6579         __PTRDIFF_TYPE__ .
6580         (SUBTARGET_CPP_PTR_SPEC): Don't define.
6581         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
6582         Add subtarget_asm_endian_spec.
6583         (ASM_SPEC): Use subtarget_asm_endian_spec.
6584         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
6585         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
6586         (WCHAR_UNSIGNED): Define.
6587         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
6588         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6589         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
6590         Fix value.
6591         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
6592         (sh_adjust_cost): Likewise.
6593         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
6594         __PTRDIFF_TYPE__ .
6595         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
6596         (WCHAR_TYPE_SIZE): Likewise.
6597         (ASM_SPEC): Use subtarget_asm_endian_spec.
6598         (SH_ELF_WCHAR_TYPE): #undef/ #define.
6599         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
6600         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
6601         (MAX_WCHAR_TYPE_SIZE): Don't #define .
6602         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
6603         (USER_LABEL_PREFIX): Don't #undef /#define .
6604         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
6605         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
6606         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
6607         (ASM_SPEC): Likewise.
6608         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
6609         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
6610         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
6611         (LIB2FUNCS_EXTRA): Define.
6612         * t-sh64 (LIB2FUNCS_EXTRA): Define.
6613         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
6614         (LIB1ASMFUNCS_CACHE): Define.
6615         (LIB2FUNCS_EXTRA): Redefine empty.
6617 2002-04-08  Richard Henderson  <rth@redhat.com>
6619         * reorg.c (get_branch_condition): Use reversed_comparison_code.
6621 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6623         * config/m68hc11/larith.asm (__map_data_section): Fix condition
6624         and optimize for size.
6625         (__do_global_ctors): Fix pointer comparison.
6626         (__do_global_dtors): Likewise.
6628 2002-04-09  David S. Miller  <davem@redhat.com>
6630         * config/sparc/sparc.c (sparc_extra_constraint_check): New
6631         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
6632         allow reloading pseudos.
6633         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
6634         * config/sparc/sparc-protos.h: Declare it.
6636         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
6637         unsigned comparison warning.
6638         (output_restore_regs): Mark leaf_function as unused.
6640 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6642         * expr.c (is_aligning_offset): New function.
6643         (expand_expr, case COMPONENT_EXPR): Call it.
6645 2002-04-08  David S. Miller  <davem@redhat.com>
6647         PR target/6082
6648         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
6650         Make init_priority work on Sparc when using GNU ld.
6651         * config/sparc/linux.h, config/sparc/linux64.h,
6652         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
6653         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
6654         * config/sparc/sol2-gld.h: New file to do the same.
6655         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
6656         sparc/sol2-gld.h to tm_file.
6658         PR optimization/4328
6659         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
6660         * doc/md.texi: Document it.
6661         * config/sparc/sparc.md (movdi_insn_sp64_novis,
6662         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
6663         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
6664         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
6665         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
6667 2002-04-08  Andreas Jaeger  <aj@suse.de>
6669         * stmt.c (expand_asm_operands): Revert last patch from Richard
6670         Henderson.
6672 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6674         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
6675         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
6677 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6679         * doc/contrib.texi (Contributors): Add David O'Brien.
6681 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
6683         * configure.in (auto-build.h): Use target_alias and build_alias
6684         when running configure.
6685         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
6686         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
6687         * configure: Regenerate.
6689 2002-04-07  David S. Miller  <davem@redhat.com>
6691         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
6693 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6695         PR 5933
6696         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
6697         generating 32-bit pic code.
6699 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
6701         * cppinit.c (cpp_create_reader): Initialize
6702         discard_comments_in_macro_exp.
6703         (COMMAND_LINE_OPTIONS): Add "-CC" option.
6704         (cpp_handle_option): Handle "-CC" option.
6705         * cpplex.c (save_comment): If saving a C++ comment in
6706         a directive, convert it to a C comment.
6707         (_cpp_lex_direct): Pass second comment start character to
6708         save_comment to indicate comment type.
6709         * cpplib.c (_cpp_handle_directive): If processing
6710         a "#define" directive and discard_comments_in_macro_exp
6711         is false,  re-enable saving of comments.
6712         (lex_macro_node): If discard_comments_in_macro_exp is false,
6713         discard any comments before the macro identifier.
6714         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
6715         member.
6716         * cppmacro.c (cpp_get_token): If expanding a macro while
6717         processing a directive, discard any comments we might encounter.
6718         (parse_params): If discard_comments_in_macro_exp is false,
6719         ignore comments in the macro parameter list.
6720         * gcc.c (cpp_unique_options): Add "-CC" option.
6721         (option_map): Map "--comments-in-macros" to "-CC".
6722         * doc/cppopts.texi: Document "-CC" option.
6723         * f/lang-specs.h: Add "-CC" option.
6724         * testsuite/gcc.dg/cpp/maccom1.c: New test.
6725         * testsuite/gcc.dg/cpp/maccom2.c: New test.
6726         * testsuite/gcc.dg/cpp/maccom3.c: New test.
6727         * testsuite/gcc.dg/cpp/maccom4.c: New test.
6728         * testsuite/gcc.dg/cpp/maccom5.c: New test.
6729         * testsuite/gcc.dg/cpp/maccom6.c: New test.
6731 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6733         PR middle-end/6180
6734         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
6736 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
6738         PR c++/5571
6739         * stor-layout.c (layout_decl): Reset the RTL for the decl.
6741         PR opt/5120
6742         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
6743         RTX_UNCHANGING_P for the functions arguments when a tail call
6744         is made.
6746 2002-04-06  Jason Merrill  <jason@redhat.com>
6748         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
6749         (parse_options_and_default_flags): Set them appropriately.
6750         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
6752 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
6754         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
6755         here.
6757         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
6758         semicolon.
6760         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
6761         types come in by-reference.  Fix typo in comment.
6763 2002-04-05  David S. Miller  <davem@redhat.com>
6765         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
6766         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
6767         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
6768         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
6770 2002-04-05  David S. Miller  <davem@redhat.com>
6772         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
6773         are not going to emit return instructions, emit at least a nop
6774         for the sake of sane backtraces.
6776 2002-04-05  Richard Henderson  <rth@redhat.com>
6778         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
6780 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
6782         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
6784 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
6786         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
6787         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
6788         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
6790 2002-04-05  Andreas Schwab  <schwab@suse.de>
6792         * c-convert.c: Include c-common.h.
6793         * Makefile.in (c-convert.o): Updated.
6795 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
6797         * mklibgcc.in: Use separate libgcc.map for each multilib.
6798         * Makefile.in (distclean): Don't remove libgcc.map here.
6800 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
6802         * Makefile.in (s-mlib): Handle --disable-multilib by separate
6803         genmultilib invocation.
6805 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
6807         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
6808         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
6809         to num_gprs for symmetry.
6810         * config/mips/mips.c: Adjust accordingly.
6812 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6814         * c-common.c (truthvalue_conversion): Rename, update.
6815         * c-common.h (c_common_truthvalue_conversion): New.
6816         * c-convert.c (convert): Update.
6817         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6818         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
6819         * c-typeck.c (build_binary_op, build_unary_op,
6820         build_conditional_expr): Update.
6821         * fold-const.c (constant_boolean_node, fold): Use langhook.
6822         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
6823         * langhooks.h (struct lang_hooks): New hook.
6824         * stmt.c (expand_decl_cleanup): Use langhook.
6825         * tree.h (truthvalue_conversion): Remove.
6826 objc:
6827         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
6829 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
6831         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
6832         Add rules to make null object file.
6834 2002-04-04  Jim Blandy  <jimb@redhat.com>
6836         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
6837         macro formal parameter names.
6839 2002-04-04  David S. Miller  <davem@redhat.com>
6841         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
6843 2002-04-04  Richard Henderson  <rth@redhat.com>
6845         PR middle-end/5099
6846         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
6847         Support copies into and out of memory.  Don't accept allows_reg
6848         and allows_mem as gospel.
6850 2002-04-04  Richard Henderson  <rth@redhat.com>
6852         PR opt/6165
6853         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
6854         (write_dependence_p): Likewise.
6856 2002-04-04  Richard Henderson  <rth@redhat.com>
6858         * predict.c (estimate_bb_frequencies): Do frequency calculation
6859         with a volatile temporary.
6861 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
6863         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
6865 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
6867         PR c++/6119
6868         * final.c (final_start_function): Don't bump profile_label_no here...
6869         (final_end_function): ...but here.
6871 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
6873         * config/sparc/sparc.md (pic): New attribute.
6874         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
6875         into stack slots.
6876         (split after do_builtin_setjmp_setup): New.
6878 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
6880         PR fortran/6106
6881         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
6882         change.
6884 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
6886         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
6887         UNITS_PER_WORD for zero sized aggregates.
6889 2002-04-03  David S. Miller  <davem@redhat.com>
6891         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
6892         one-character spec for this, just use %(link_gcc_c_sequence).
6894 2002-04-03  David S. Miller  <davem@redhat.com>
6896         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
6897         handling.
6899 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
6901         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
6902         (DWARF_FRAME_RETURN_COLUMN): Move.
6903         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
6904         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
6905         * pa.c (except.h, predict.h): Include.
6906         (FRP): Delete.
6907         (store_reg_modify, set_reg_plus_d): Revise prototypes.
6908         (output_ascii): Add cast.
6909         (store_reg_modify): Revise to add frame notes.
6910         (set_reg_plus_d): Likewise.
6911         (compute_frame_size): Include space for eh data registers in frame if
6912         the current function calls eh_return.
6913         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
6914         function calls eh_return.  Save eh data registers if the current
6915         function calls eh_return.  Fix code to add frame notes.  Emit
6916         blockage to prevent insns with frame notes being scheduled in the
6917         delay slot of calls.
6918         (hppa_expand_epilogue): Restore eh data registers and do final stack
6919         adjustment if the current function calls eh_return.  Don't add frame
6920         notes.
6921         (output_call): Revise for change in length of call insn.  Don't do
6922         return pointer adjustment for an unconditional jump in the delay slot
6923         of a call when using frame notes.
6924         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
6925         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
6926         (ARG_POINTER_CFA_OFFSET): Define.
6927         * pa.md (return_external_pic): New pattern.
6928         (prologue): Correct formatting.  Use return_external_pic if current
6929         function calls eh_return.
6930         (call_internal_symref, call_value_internal_symref,
6931         sibcall_internal_symref, sibcall_value_internal_symref): Change default
6932         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
6933         respectively.
6934         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
6936         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
6937         list of targets to check using "nop" insn.
6938         * configure: Rebuilt.
6940 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
6942         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
6944 2002-04-03  David S. Miller  <davem@redhat.com>
6946         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
6947         library sequence passed to the linker.
6948         (LINK_COMMAND_SPEC): Use it.
6949         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
6950         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
6951         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
6953 2002-04-03  Jason Merrill  <jason@redhat.com>
6955         * except.c (struct eh_status): Remove protect_list.
6956         (begin_protect_partials, end_protect_partials): Remove.
6957         (add_partial_entry): Remove.
6958         * except.h: Remove prototypes.
6960         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
6961         expand_decl_cleanup_eh.
6963         PR c++/5636
6964         * tree.h (CLEANUP_EH_ONLY): New macro.
6965         * stmt.c (expand_decl_cleanup_eh): New fn.
6966         (expand_cleanups): Check CLEANUP_EH_ONLY.
6967         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
6968         Use expand_decl_cleanup_eh.
6969         (expand_stmt): Adjust.
6970         * c-common.h: Adjust prototype.
6972 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
6974         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
6975         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
6976         (cris_target_asm_function_epilogue): Ditto.
6977         (cris_initial_frame_pointer_offset): Ditto.
6978         (cris_simple_epilogue): Ditto.
6979         (cris_expand_builtin_va_arg): Variable-size types come in
6980         by-reference.
6982 2002-04-03  David S. Miller  <davem@redhat.com>
6984         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
6985         little-endian.
6986         (set_fast_math): Correct 'fsr' type.
6988 2002-04-03  Richard Henderson  <rth@redhat.com>
6990         PR opt/3569
6991         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
6992         * toplev.c (check_global_declarations): Use it.
6993         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
6994         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6995         (LANG_HOOKS_DECLS): Add it.
6996         * langhooks.c (lhd_warn_unused_global_decl): New.
6997         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
6998         * c-objc-common.c (c_warn_unused_global_decl): New.
6999         * c-tree.h (c_warn_unused_global_decl): Declare.
7000         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
7002 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
7004         * langhooks-def.h (lhd_set_decl_assembler_name,
7005         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
7006         (LANG_HOOKS_INITIALIZER): Update.
7007         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
7008         * langhooks.h (struct lang_hooks): New hook.
7009         * tree.c (set_decl_assembler_name): Move to langhooks.c.
7010         (lang_set_decl_assembler_name): Remove.
7011         (init_obstacks): Don't set hook.
7012         (decl_assembler_name): New function.
7013         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
7014         (decl_assembler_name): New.
7015         (lang_set_decl_assembler_name): Remove.
7017 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7019         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
7020         works properly with .hidden symbols.
7021         * configure: Rebuilt.
7022         * config.in: Rebuilt.
7023         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
7024         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
7025         properly with .hidden symbols.
7027 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
7029         PR middle-end/6102
7030         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
7031         USE argument.
7033 2002-04-03  Richard Henderson  <rth@redhat.com>
7035         PR opt/4120
7036         * sched-rgn.c (sets_likely_spilled): New.
7037         (sets_likely_spilled_1): New.
7038         (add_branch_dependences): Use it.
7040 2002-04-02  Richard Henderson  <rth@redhat.com>
7042         PR opt/4311
7043         * loop.h (LOOP_FIRST_PASS): New.
7044         * loop.c (strength_reduce): Mind it when deciding to unroll.
7045         * toplev.c (rest_of_compilation): Set it.
7047 2002-04-02  David S. Miller  <davem@redhat.com>
7049         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
7050         mems_ok_for_ldd_peep when the order of the loads being examined
7051         is reversed.
7052         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
7053         existing comment to increase comprehension of this situation.
7055 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
7057         * config/sh/sh.md: Don't use union real_extract.
7059 2002-04-02  Richard Henderson  <rth@redhat.com>
7061         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
7063 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7065         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
7066         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
7067         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
7068         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
7069         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
7070         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
7071         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
7072         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
7073         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
7074         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
7075         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
7076         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
7077         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
7078         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
7079         Include as many configury headers via tm_file as possible.  This
7080         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
7081         * config/openbsd-oldgas.h: New file.
7082         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
7083         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
7084         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
7085         config/i386/i386-coff.h, config/i386/i386-interix.h,
7086         config/i386/iscdbx.h, config/i386/linux-aout.h,
7087         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
7088         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
7089         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
7090         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
7091         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
7092         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
7093         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
7094         config/i386/vxi386.h: Do not directly include configury headers.
7095         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
7096         Directly include configury headers that are no longer automatically
7097         included by the above headers.
7098         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
7099         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
7100         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
7101         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
7102         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
7103         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
7104         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
7105         (TARGET_VERSION): Define.
7106         * config/i386/beos-elf.h, config/i386/freebsd.h,
7107         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
7108         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
7109         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
7110         config/i386/sco5.h, config/i386/sysv4.h
7111         (TARGET_VERSION): Do not need to protect.
7112         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
7113         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
7114         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
7115         config/i386/i386-interix.h, config/i386/linux-aout.h,
7116         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
7117         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
7118         (YES_UNDERSCORES): Do not define - not needed.
7119         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
7120         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7121         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
7122         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
7123         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
7124         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
7125         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
7126         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
7128 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
7129             Richard Henderson  <rth@redhat.com>
7131         PR c/5484
7132         * function.c (assign_temp): Accept either type or decl argument.
7133         Detect variables whose size is too large to fit into an integer.
7134         * stmt.c (expand_decl): Pass the decl, not the type.
7136 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
7138         * protoize.c: Match include directory usage with cppdefault.c.
7140 2002-04-03  Jeffrey A Law  (law@redhat.com)
7141             Hans-Peter Nilsson  <hp@bitrange.com>
7143         * combine.c (simplify_comparison): Avoid narrowing a comparison
7144         with a paradoxical subreg when doing so would drop signficant bits.
7146 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
7148         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
7149         if POINTERS_EXTEND_UNSIGNED is defined.
7151 2002-04-02  Richard Henderson  <rth@redhat.com>
7153         PR opt/3967
7154         * local-alloc.c (contains_replace_regs): LO_SUM may contain
7155         replace regs.
7157 2002-04-02  Richard Henderson  <rth@redhat.com>
7159         * doc/standards.texi: Document required freestanding libc entry points.
7161 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
7163         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
7164         associated splitter.  Remove MQ constraint.
7165         (ctrdi_internal4): Correct CCmode clobber.
7167 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7169         * milli64.S ($$dyncall): New function.
7170         * t-linux (LIB1ASMFUNCS): Revise module list.
7171         (LIB1ASMSRC): Use pa/milli64.S.
7173 2002-04-02  Richard Henderson  <rth@redhat.com>
7175         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
7176         rename solaris_sys_varargs_h.
7178 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7180         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
7181         the same mode as its component.
7183 2002-04-02  Richard Henderson  <rth@redhat.com>
7185         PR opt/190
7186         * final.c (this_is_asm_operands): Export.
7187         * output.h (this_is_asm_operands): Declare.
7188         * config/i386/i386.c (print_operand): Error odd asm operands.
7190 2002-04-02  Richard Henderson  <rth@redhat.com>
7192         PR opt/420
7193         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
7195 2002-04-01  Richard Henderson  <rth@redhat.com>
7197         PR target/1538
7198         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
7199         * fixinc/fixincl.x: Rebuild.
7201 2002-04-01  Richard Henderson  <rth@redhat.com>
7203         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
7204         (atomic_alloc, atomic_free): New.
7205         (SIZE, MASK_FOR, PTR_IN): New.
7206         (emergency_reg_state, emergency_reg_state_free): New.
7207         (emergency_labeled_state, emergency_labeled_state_free): New.
7208         (reg_state_alloced, labeled_state_alloced): New.
7209         (alloc_reg_state, free_reg_state): New.
7210         (alloc_label_state, free_label_state, free_label_states): New.
7211         (push, pop, dup_state_stack, free_state_stack): Use them.
7212         (desc_label_state): Likewise.
7213         (uw_frame_state_for): Free label states and state stack.
7214         (uw_update_reg_address): Eliminate warnings.
7216 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
7218         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
7219         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
7221 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7223         * c-decl.c (grokdeclarator): Update.
7224         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7225         * c-tree.h (c_mark_addressable): New.
7226         * c-typeck.c (default_function_array_conversion, build_unary_op,
7227         build_array_ref, convert_for_assignment): Update.
7228         (mark_addressable): Rename.
7229         * calls.c (try_to_integrate, expand_call): Use langhook.
7230         * expr.c (expand_expr): Use langhook.
7231         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
7232         * langhooks.h (struct lang_hooks): New hook.
7233         * stmt.c (expand_asm_operands): Use langhook.
7234         * tree.h (mark_addressable): Remove.
7235 objc:
7236         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
7238 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7240         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
7241         in previous change.
7243 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
7245         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
7246         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
7248 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7250         * c-common.c (unsigned_conversion_warning, convert_and_check,
7251         unsigned_type, signed_type, shorten_compare,
7252         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
7253         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
7254         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
7255         New.
7256         * c-decl.c (grokdeclarator): Update.
7257         * c-format.c (check_format_types): Update.
7258         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7259         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7260         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
7261         * convert.c (convert_to_integer): Use new hooks.
7262         * expmed.c (make_tree): Use new hooks.
7263         * expr.c (store_expr): Use new hooks.
7264         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
7265         all_ones_mask_p, unextend, fold): Use new hooks.
7266         * langhooks.h (struct lang_hooks_for_types): New hooks.
7267         * tree.h (signed_or_unsigned_type, signed_type,
7268         unsigned_type): Remove.
7269 objc:
7270         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
7271         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
7273 2002-03-31  Richard Henderson  <rth@redhat.com>
7275         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
7276         (desc_frgr_mem): Fix reference to f16-f31.
7278 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7280         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
7281         RTVEC_ELT): Const-ify.
7282         * varray.h (VARRAY_CHECK): Const-ify.
7283         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
7284         ggc_mark_rtvec, ggc_mark): Const-ify.
7286 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
7288         * diagnostic.c: Include langhooks-def.h.
7289         * Makefile.in (diagnostic.o): Update.
7291 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7293         * c-common.c (c_unsafe_for_reeval): Rename.
7294         * c-common.h (c_unsafe_for_reeval): Rename.
7295         * c-decl.c (finish_incomplete_decl): Rename.
7296         (c_init_decl_processing): Don't set langhook.
7297         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7298         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7299         * c-objc-common.c (c_objc_common_init): Don't set langhook.
7300         * c-tree.h (finish_incomplete_decl): Rename.
7301         * langhooks-def.h (lhd_unsafe_for_reeval): New.
7302         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
7303         (LANG_HOOKS_INITIALIZER): Update.
7304         * langhooks.c (lhd_unsafe_For_reeval): New.
7305         * langhooks.h (struct langhooks): New hooks.
7306         * toplev.c (incomplete_decl_finalize_hook): Remove.
7307         (wrapup_global_declarations): Update.
7308         * tree.c (lang_unsafe_for_reeval): Remove.
7309         (unsafe_for_reeval): Update.
7310         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
7311         Remove.
7312 objc:
7313         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
7314         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
7316 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
7318         * diagnostic.c (print_error_function): Remove.
7319         (default_print_error_function): Rename.
7320         (report_error_function): Update.
7321         * diagnostic.h (print_error_function): Remove.
7322         (default_print_error_function): Remove.
7323         * langhooks-def.h (struct diagnostic_context): Predeclare.
7324         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
7325         (LANG_HOOKS_INITIALIZER): Update.
7326         * langhooks.h (struct diagnostic context): Predeclare.
7327         (struct lang_hooks): New hook.
7329 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7331         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
7332         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
7333         !flag_pic.
7334         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
7335         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
7336         of PIC_OFFSET_TABLE_REGNUM thruout.
7337         * config/rs6000/rs6000.md: Likewise.
7338         * config/rs6000/darwin.h: Likewise.
7340 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7342         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
7343         unsigned HOST_WIDE_INT, not unsigned int.
7345 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7347         PR middle-end/6096, middle-end/6098, middle-end/6099
7348         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
7349         CODE_LABELs.
7350         (fill_slots_from_thread): Likewise.
7352 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7354         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
7355         floating fields in float regs.
7356         (function_arg_record_value_2): Likewise.
7358 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7360         * config/mmix/mmix.md (define_constants): Remove misleading
7361         FIXME.  Add MMIX_fp_rO_OFFSET.
7362         ("nonlocal_goto_receiver"): Don't have stack-frame address of
7363         saved rO as part of the pattern.  Remove FIXME.
7364         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
7365         here, at output-time.
7367 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
7369         PR middle-end/6100
7370         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
7371         REG_BR_PRED.
7372         (output_v9branch): Likewise.
7374 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7376         * gcc.c: Revert previous patch for now.
7377         * config/i386/djgpp.h: Likewise.
7379 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
7381         * config/mmix/crti.asm (_init): Register _fini with atexit.
7382         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
7384 2002-03-31  Richard Henderson  <rth@redhat.com>
7386         PR target/3997
7387         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
7388         (ASM_OUTPUT_DEF_FROM_DECLS): New.
7390 2002-03-31  Richard Henderson  <rth@redhat.com>
7392         * libgcc2.c (__bb_exit_func): Make static.
7394         * config/alpha/alpha.md (trap): New.
7396 2002-03-31  Richard Henderson  <rth@redhat.com>
7398         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
7399         promoted argument types; build trap.
7400         (expand_builtin_trap): New.
7401         (expand_builtin): Use it.
7402         * stmt.c (expand_nl_goto_receivers): Likewise.
7403         * expr.h (expand_builtin_trap): Declare.
7404         * libfuncs.h (LTI_abort, abort_libfunc): New.
7405         * optabs.c (init_optabs): Init abort_libfunc.
7407 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
7409         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
7410         (LINK_COMMAND_SPEC): ... from here.
7411         (init_gcc_specs): Duplicate it here too, omitting
7412         shared_name in the second copy.
7413         (init_spec): Test for duplicate
7414         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
7416 2002-03-30  David S. Miller  <davem@redhat.com>
7418         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7419         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
7421 2002-03-30  Roger Sayle <roger@eyesopen.com>
7422             Richard Henderson  <rth@redhat.com>
7424         * regmove.c (combine_stack_adjustments_for_block): Avoid
7425         emitting a stack adjustment of zero bytes.  Let delete_insn
7426         update bb->head.
7428 2002-03-30  Richard Henderson  <rth@redhat.com>
7430         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
7431         (sparc_emitting_epilogue): New.
7432         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
7433         * config/sparc/sparc-protos.h: Update.
7434         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
7435         (TARGET_SWITCHES): Update.
7436         * config/sparc/sparc.md (return): Remove.
7437         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
7438         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
7439         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
7440         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
7441         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
7442         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
7443         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
7444         Remove MASK_EPILOGUE.
7445         * doc/invoke.texi: Update.
7447 2002-03-30  Daniel Berlin  <dan@dberlin.org>
7449         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
7450         CPP will start the file for us.
7452 2002-03-30  Richard Henderson  <rth@redhat.com>
7454         PR target/5446
7455         * config/ia64/ia64.c (group_barrier_needed_p): Special case
7456         prologue_allocate_stack.
7457         (ia64_single_set): Use insn codes for recognition of special
7458         cases, not rtl matching.
7459         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
7461 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
7463         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
7465 2002-03-30  Richard Henderson  <rth@redhat.com>
7467         PR target/6032
7468         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
7469         or -fomit-frame-pointer with profiling.
7470         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
7471         (FUNCTION_PROFILER): Do nothing.
7472         (PROFILE_HOOK): New.
7473         * config/sparc/sparc.c (sparc_override_options): Don't check
7474         code models for profiling.
7475         (sparc_function_profiler): Remove.
7476         (sparc_profile_hook): New.
7477         * config/sparc/sparc-protos.h: Update.
7479 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
7481         PR optimization/6086
7482         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
7483         of SUBREG of volatile MEM or because the MEM was mode dependent,
7484         return CLOBBER instead of unmodified SUBREG.
7486 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
7488         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
7489         when not optimizing.
7491         * toplev.c (rest_of_compilation): Cann mark_constant_function
7492         only when optimizing.
7494         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
7495         are NULL.
7497         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
7498         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
7499         (try_optimize_cfg): clear all AUX fields.
7501         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
7502         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
7503         (ix86_address_cost): Be prepared for SUBREGed registers.
7504         (legitimate_address_p): Accept SUBREGed registers.
7506 2002-03-29  Richard Henderson  <rth@redhat.com>
7508         PR target/5672
7509         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
7511 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
7513         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
7514         for aggregate and TFmode types.
7516 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
7518         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
7520 2002-03-29  Richard Henderson  <rth@redhat.com>
7522         PR target/5886
7523         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
7524         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
7526 2002-03-29  Richard Henderson  <rth@redhat.com>
7528         PR target/6041
7529         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
7530         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
7531         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
7532         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
7533         conditional.
7534         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
7536 2002-03-29  Dale Johannesen <dalej@apple.com>
7538         * loop.c (combine_movables): Do allow combination of pseudos.
7540 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
7542         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
7543         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
7544         No functional change except ...
7545         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
7546         * doc/install.texi (*-*-freebsd*): Document port configuration.
7548 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7550         * Makefile.in (convert.o, calls.o, expmed.o): Update.
7551         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
7552         Use new hooks.
7553         * builtin-types.def (BT_PTRMODE): Update.
7554         * c-common.c (type_for_size): Rename c_common_type_for_size.
7555         (type_for_mode): Similarly.
7556         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
7557         Use new hook.
7558         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
7559         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
7560         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
7561         Redefine.
7562         * c-typeck.c (common_type, comptypes, default_conversion):
7563         Use new hooks.
7564         * calls.c: Include langhooks.h.
7565         (emit_library_call_value_1): Use new hooks.  Avoid redundant
7566         calls.
7567         * convert.c: Include langhooks.h
7568         (convert_to_pointer, convert_to_integer): Use new hooks.
7569         * except.c (init_eh): Similarly.
7570         * expmed.c: Include langhooks.h.
7571         (expand_mult_add): Use new hooks.
7572         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
7573         try_casesi): Similarly.
7574         * fold-const.c (optimize_bit_field_compare, make_range,
7575         decode_field_reference, fold_truthop, fold): Similarly.
7576         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
7577         put_var_into_stack): Similarly.
7578         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
7579         LANG_HOOKS_TYPE_FOR_SIZE): New.
7580         (LANG_HOOKS_TYPES_INITIALIZER): Update.
7581         * langhooks.h (lang_hooks_for_types): New hooks.
7582         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
7583         * tree.c (get_unwidened, get_narrower): Similarly.
7584         * tree.h (type_for_mode, type_for_size): Remove.
7585         * varasm.c (force_const_mem): Use new hooks.
7586         * utils2.c (nonbinary_modular_operation): Update.
7587 objc:
7588         * objc-act.c (handle_impent): Update.
7589         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
7590         Redefine.
7592 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
7594         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
7595         * config/ia64/ia64.c (basereg_operand): New.
7596         * config/ia64/ia64-protos.h (basereg_operand): Declare.
7597         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
7599 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
7601         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
7602         unwind information when frame_pointer_needed.
7603         (mmix_assemble_integer): Tweak wording in comment.
7605 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
7607         * Makefile.in (except.o): Update.
7608         * except.c: Include langhooks.h.
7609         (init_eh): Use langhook.
7610         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
7611         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
7612         (LANG_HOOKS_INITIALIZER): Update.
7613         * langhooks.h (lang_hooks_for_types): New.
7614         (struct lang_hooks): Add it.
7615         * tree.c (make_lang_type_fn, make_lang_type): Remove.
7616         * tree.h (make_lang_type_fn, make_lang_type): Remove.
7617 config:
7618         * alpha/alpha.c: Include langhooks.h.
7619         (alpha_build_va_list): Use langhook.
7620         * d30v/d30v.c: Include langhooks.h.
7621         (d30v_build_va_list): Use langhook.
7622         * i386/i386.c: Include langhooks.h.
7623         (ix86_build_va_list): Use langhook.
7624         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
7625         * s390/s390.c: Include langhooks.h.
7626         (s390_build_va_list): Use langhook.
7627         * stormy16/stormy16.c: Include langhooks.h.
7628         (stormy16_build_va_list): Use langhook.
7630 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7632         PR c++/5964
7633         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
7634         attributes.
7635         (length): Compute variable length for branches/calls/jumps here.
7636         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
7637         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
7638         define branch_type attribute.
7639         (divsi3_sp32): Maximum length is 6 not 7.
7640         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
7641         call_address_untyped_struct_value_sp32,
7642         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
7643         * config/sparc/sparc.c (empty_delay_slot): New function.
7644         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
7645         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
7647 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
7649         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
7650         nonzero_bits if not needed.
7651         (nonzero_bits) [XOR]: Likewise.
7652         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
7653         reg_last_set_mode and mode are both MODE_INT, but not equal.
7654         (record_value_for_reg): Compute reg_last_set_nonzero_bits
7655         in nonzero_bits_mode for MODE_INT modes.
7657 2002-03-28  Richard Henderson  <rth@redhat.com>
7659         PR target/5715
7660         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
7661         to GAS.  Correct drift between alternatives.
7663 2002-03-28  Richard Henderson  <rth@redhat.com>
7665         PR target/6087
7666         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
7668 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
7670         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
7671         emulation to the linker.
7673 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
7675         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
7676         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
7678 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
7680         * combine.c (simplify_and_const_int): Make sure to apply mask
7681         when force_to_mode returns a constant integer.  PR3311.
7683 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7685         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
7687 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
7689         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
7690         and Objective-C Dialect Options.
7692 2002-03-28  Richard Henderson  <rth@redhat.com>
7694         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
7695         comparison should be done vs !=0 not >0 return code.  Tidy cases.
7697 2002-03-28  Richard Henderson  <rth@redhat.com>
7699         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
7700         on to c_expand_body.
7701         * c-tree.h (finish_function): Update decl.
7702         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
7704 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
7706         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
7708 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
7710         * rtlanal.c: Include flags.h
7711         (may_trap_p): Do not mark FP operations if trapping
7712         if !flag_trapping_math
7713         * Makefile.in (rtlanal.o): Add dependency on flag.h
7714         * ifcvt.c (noce_operand_ok): Avoid the lameness.
7716 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
7718         * mips.md: Use dconst1, not 1.0, as first argument of
7719         REAL_VALUE_LDEXP.  Don't use union real_extract.
7721 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
7723         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
7724         rather than $target.  Heed program_prefix and
7725         program_transform_name.  Search for gas in cross-compiler case too.
7726         "test -x" rather than "test -f".
7727         (gcc_cv_ld): Likewise.
7728         (gcc_cv_nm): Heed program_prefix and program_transform_name.
7729         (gcc_cv_objdump): Likewise.
7730         * configure: Regenerate.
7732 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7734         * Makefile.in (attribs.o): Update.
7735         * attribs.c: Include langhooks.h.
7736         (decl_attributes): Use langhook.
7737         * c-decl.c (insert_default_attributes): Rename.
7738         * c-tree.h (c_insert_default_attributes): New.
7739         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
7740         (LANG_HOOKS_INITIALIZER): Update.
7741         * langhooks.h (struct lang_hooks): New hook.
7742         * tree.h (insert_default_attributes): Remove.
7743 objc:
7744         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
7746 2002-03-27  Andreas Schwab  <schwab@suse.de>
7748         * config/i386/i386.c (classify_argument): Also check for
7749         QUAL_UNION_TYPE.
7751 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7753         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
7754         any more.
7756 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
7758         * i960.md (ret): Set PC.
7759         (nonlocal_goto): Fix expander.
7760         * builtins.c (epxand_builin_longjmp): Check that we've emitted
7761         some jump or call.
7763 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
7765         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
7766         of libcall regions.
7768 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
7770         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
7771         assigning to BLOCK_FOR_INSN directly.
7773 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
7775         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
7777 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7779         * c-common.c (c_expand_expr): Fix prototype.
7780         * c-common.h (c_expand_expr): Always declare, update.
7781         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7782         * c-objc-common.c (c_objc_common_init): No global hook.
7783         * expr.c (expand_expr): Use langhook.
7784         * expr.h (enum expand_modifier): Conditionally declare.
7785         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
7786         (LANG_HOOKS_INITIALIZER): Update.
7787         * langhooks.c (lhd_expand_expr): New.
7788         * langhooks.h (struct lang_hooks): New hook.
7789         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
7790         (lang_independent_init): Don't default hook.
7791 objc:
7792         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
7794 2002-03-27  Richard Henderson  <rth@redhat.com>
7796         PR target/6054
7797         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
7798         TARGET_CONST_GP.  Simplify conditions.
7800 2002-03-27  Richard Henderson  <rth@redhat.com>
7802         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
7803         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
7804         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
7806 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
7808         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
7809         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
7810         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
7811         Remove unnecessary masks.
7812         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
7813         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
7814         -mwindows, -mdll switches and their negations.
7816 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
7818         * gcc-common.c (lang_mark_false_label_stack): Remove.
7819         * ggc.h (lang_mark_false_label_stack): Similarly.
7821 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
7823         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
7825         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
7826         or __rtems_ is defined.
7828 2002-03-26  Richard Henderson  <rth@redhat.com>
7830         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
7831         if a non-trivial load was emitted.
7832         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
7833         in high+extra+low case.
7835 2002-03-26  Richard Henderson  <rth@redhat.com>
7837         * config.gcc (sparc*-solaris): Use float_format=sparc.
7839 2002-03-26  Richard Henderson  <rth@redhat.com>
7841         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
7842         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
7843         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
7844         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
7845         (WINT_TYPE_SIZE): Fix at 32.
7847 2002-03-26  Richard Henderson  <rth@redhat.com>
7849         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
7850         until after eh landing pad generation.
7851         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
7852         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
7854 2002-03-26  Richard Henderson  <rth@redhat.com>
7856         * expr.h (ADD_PARM_SIZE): One more convert for INC.
7858 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
7860         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
7861         and warning switches.
7862         (cc1_options):  Likewise.
7864 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
7866         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
7867         Restore more of the signal context.  Set no_reg_stack_frame.
7868         * config/ia64/unwind-ia64.c (unw_state_record):
7869         Add no_reg_stack_frame, comments.
7870         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
7871         (uw_update_context): Adjust bsp when unwinding from leaf,
7872         but not signal frame.
7874 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
7876         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
7878 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
7880         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
7882 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
7884         PR target/5621
7885         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
7886         "Add a pool_range attribute", which was lost during the ARM/Thumb
7887         merge.
7889 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
7891         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
7892         a register into the MAC16 accumulator.
7894 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
7896         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
7897         (Warning Options): Document -Wswitch-enum.
7898         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
7899         -Wswitch.
7900         (warn_switch_enum): Define variables.
7901         * flags.h (warn_switch_enum): Declare variables.
7902         * stmt.c (expand_end_case_type): When warn_switch_enum /
7903         -Wswitch-enum, perform switch checks.
7904         Fix PR c/5044.
7906 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
7908         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
7909         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
7910         (reload_muladdsi_compare0_scratch): Delete.
7912 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
7914         * doc/install.texi (*-*-freebsd*): Update.
7916 2002-03-26  Richard Henderson  <rth@redhat.com>
7918         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
7919         (SUB_PARM_SIZE): Cast DEC to ssizetype.
7921         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
7922         types from the normal argument frame.
7924         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
7925         variable sized objects by reference.
7926         (sparc_va_arg): Receive them by reference too.
7928 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
7930         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
7931         code to not restoring global registers.
7933 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
7935         * Makefile.in (ggc-common.o): Update.
7936         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
7937         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
7938         * c-tree.h (c_mark_tree): New.
7939         * ggc-common.c: Include langhooks.h.
7940         (gcc_mark_trees): Use new langhook.
7941         * ggc-callbacks.c: Delete file.
7942         * ggc.h (lang_mark_tree): Remove.
7943         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
7944         (LANG_HOOKS_INITIALIZER): Update.
7945         * langhooks.h (struct lang_hooks): New hook.
7946 objc:
7947         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
7949 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
7951         * doc/cpp.texi: Exclude entire Top node from printed manual.
7952         Move option index after directive index.  Insert page breaks
7953         before GFDL and concept index.  Index environment variables
7954         with command line options.
7955         * doc/cppenv.texi: Use @vtable for environment variable list.
7956         Add paragraph explaining semantics of empty elements in path
7957         variables.  Exclude a cross-reference to Fishkill from the
7958         manpage.  Remove an unnecessary cross-reference of the entry
7959         right above the referer.  Don't use @anchor in text that goes
7960         into manpage.
7961         * doc/cppopts.texi: Cross-reference the environment variables
7962         section, not the specific environment variable, for consistency.
7964 2002-03-25  Richard Henderson  <rth@redhat.com>
7966         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
7967         anywhere in the block.  Don't refer to insns that have been
7968         removed from the chain.  Iterate backward through the new insns.
7969         Don't refer to edges that have been removed.
7971 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
7973         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
7974         test for overflow of constant.
7976 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
7978         PR target/2623
7979         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
7980         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
7981         these patterns on arm_archv4.
7983 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
7985         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
7986         int".
7988 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
7990         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
7991         float_handled, float_handler, float_signal, set_float_handler,
7992         and do_float_handler.  Set handler for SIGFPE to crash_signal.
7993         * toplev.h: Don't prototype do_float_handler.
7995         * c-lex.c: Fold parse_float into lex_number.  Make warning
7996         about portability of hex float constants more informative, and
7997         don't issue it on top of a syntax error.
7998         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
7999         their callers.
8000         * real.h: Define REAL_VALUE_ABS here...
8001         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
8002         simplify_unary_real, simplify_binary_real, and
8003         simplify_binary_is2orm1 into their callers.
8004         * tree.c: Fold build_real_from_int_cst_1 into caller.
8006         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
8008         * tsystem.h: Include float.h here...
8009         * libgcc2.c: ... not here.
8011 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
8013         Fixes for: PR bootstrap/3591, target/5676
8014         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
8015         defined.  Do not disable exceptions or rtti.
8016         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
8017         mcore.h.  Disable exceptions and rtti, since they are not
8018         supported by EPOC.
8020 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
8022         * c-decl.c (maybe_build_cleanup): Remove.
8023         * expr.c (expand_expr): Use langhook.
8024         * langhooks-def.h (lhd_return_null_tree,
8025         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
8026         (LANGHOOKS_INITIALIZER): Update.
8027         * langhooks.c (lhd_return_null_tree): New.
8028         * langhooks.h (struct lang_hooks): New hook.
8029         * tree-inline.c (initialize_inlined_parameters): Use langhook.
8030         * tree.h (maybe_build_cleanup): Remove.
8032 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8034         * regrename.c (build_def_use): Move recog_memoized
8035         before extract_insn.
8037 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8039         PR target/6043
8040         * expr.c (emit_group_store): Handle storing into CONCAT.
8042 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
8044         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
8045         corresponding MATCH_DUP.
8047 2002-03-24  Richard Henderson  <rth@redhat.com>
8049         * unroll.c (unroll_loop): Zero label_map.
8051         * gcse.c: Include except.h.
8052         * Makefile.in (gcse.o): Update.
8054 2002-03-24  Richard Henderson  <rth@redhat.com>
8056         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
8057         Do resolve_unique_section before shared data clause.
8059 2002-03-24  Richard Henderson  <rth@redhat.com>
8061         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
8063 2002-03-24  Richard Henderson  <rth@redhat.com>
8065         * recog.c (peephole2_optimize): Split blocks when EH insns are
8066         generated in the middle of a block.  Do global life update if
8067         zapped EH edges.
8069 2002-03-24  Richard Henderson  <rth@redhat.com>
8071         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
8073 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8075         preprocessor/3951
8076         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
8077         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
8078         (init_dependency_output): Don't make no_output decision here.
8080 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
8082         * stmt.c (check_for_full_enumeration_handling): Remove tests of
8083         warn_switch.  Update description.
8084         (expand_end_case_type): Call check_for_full_enumeration_handling
8085         when warn_switch.
8087 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8089         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
8090         (m68hc11_split_move): Call it to see if the source and destination
8091         operands use the same direction auto inc/dec mode, otherwise make the
8092         source an offsetable memory operand and generate an add.
8094 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8096         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
8097         register for operand 2.
8098         ("*subsi3_zero_extendqi"): Likewise.
8099         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
8100         bits so that it is compatible with a pop.
8101         ("*andhi3_gen"): Likewise.
8102         ("xorhi3"): Likewise.
8104 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8106         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
8107         -pedantic here...
8108         (cpp_post_options): ... not here.
8110 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8111             Aldy Hernandez  <aldyh@redhat.com>
8113         Removal of separate preprocessor cpp0.
8115         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
8116         cpp0, install-common): Update.
8117         * c-common.c (flag_preprocess_only): New.
8118         (c_common_init): Preprocess for -E.
8119         * c-common.h (flag_preprocess_only): New.
8120         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
8121         * c-objc-common.c (c_init_decl_processing): Exit quickly
8122         for NULL return from c_common_init.
8123         * cpplib.h (cpp_preprocess_file): New.
8124         * cppmain.c (main, general_init, pfile, progname): Remove.
8125         (do_preprocessing): Rename cpp_preprocess_file, don't call
8126         cpp_finish.  Don't close stdout here.
8127         (setup_callbacks): Update prototype.
8128         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
8129         Update.
8130         * tradcpp.c (main): Ignore -quiet.
8131 objc:
8132         * lang-specs.h (default_compilers): Preprocess with cc1obj.
8134 2002-03-24  Richard Henderson  <rth@redhat.com>
8136         PR optimization/5742
8137         * machmode.def: Add inner mode field to complex modes.
8138         * config/mips/mips.c (mips_function_value): Always define.  Add
8139         new argument to handle libcalls.
8140         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
8141         (FUNCTION_VALUE): Likewise.
8142         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
8143         * config/mips/mips-protos.h: Update.
8145 2002-03-23  Richard Henderson  <rth@redhat.com>
8147         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
8148         * config/sparc/sparc-protos.h: Update.
8149         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
8151 2002-03-23  Richard Henderson  <rth@redhat.com>
8153         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
8154         _start or _init begins the text segment.
8156 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
8158         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
8159         not HOST_WIDEST_INT.
8160         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
8162 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
8164         PR java/5489
8165         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
8166         operand argument to output_return_instruction.
8167         * arm.c (arm_print_operand, case 'd'): If the operand is
8168         const_true_rtx then just return.
8169         (arm_print_operand, case 'D'): If the operand is const_true_rtx
8170         then abort.
8172 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
8174         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
8175         (Warning Options): Document -Wswitch-default.
8176         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
8177         -Wswitch.
8178         (warn_switch_default): Define variable.
8179         (warn_switch): Update comment.
8180         * flags.h (warn_switch_default): Declare variable.
8181         (warn_switch): Update comment.
8182         * stmt.c (expand_end_case): Check for and, when
8183         warn_switch_no_default, warn of a missing default case.
8185 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
8187         * real.h (N): Special case 128 bit doubles.
8189         * combine.c (simplify_comparison): When widening modes, ignore
8190         sign extension on CONST_INTs.
8192 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8194         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
8195         passed to adjust_address.  Fix comment formatting.
8198 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
8200         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
8201         Always make REAL_VALUE_TYPE a struct containing an array of
8202         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
8203         big it is.  Don't declare or use union real_extract.
8205         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
8206         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
8207         (print_operand), config/arm/arm.c (output_move_double),
8208         config/arm/arm.md (consttable_4, consttable_8),
8209         config/romp/romp.c (output_fpops), config/s390/s390.h
8210         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
8211         (xtensa_output_literal): Don't use union real_extract.
8213         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
8214         (sfmode_constant_to_ulong), config/ns32k/merlin.h
8215         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
8216         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
8217         (PRINT_OPERAND): Don't use local version of union
8218         real_extract.
8220         * config/convex/convex.c (check_float_value), config/vax/vax.c
8221         (vax_float_literal), config/m88k/m88k.md (divdf3),
8222         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
8223         config/pdp11/pdp11.c (output_move_quad): Don't do host
8224         arithmetic on target floating point quantities.
8226         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
8227         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
8229         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
8230         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
8232         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
8233         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
8234         INFINITY.
8235         * print-rtl.c (print_rtx): Disable code which needs
8236         floating-point emulator.
8237         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
8238         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
8239         depending on HOST_FLOAT_FORMAT to be defined properly.
8241         * config/1750a/1750a.c (get_double, float_label): Delete.
8242         (print_operand): Delete huge commented-out chunk.  Use
8243         REAL_VALUE_TO_DECIMAL.
8244         * config/1750a/1750a-protos.h: Delete prototypes of deleted
8245         functions.
8246         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
8247         IEEE_FLOAT_FORMAT.
8248         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
8249         Use REAL_VALUE_TO_DECIMAL as ELF version does.
8250         * config/m88k/m88k.c (real_power_of_2_operand,
8251         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
8252         real_extract out of the union; run the input through
8253         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
8254         from that into the union.
8255         * config/pdp11/pdp11.c (output_move_double): Rearrange
8256         parentheses to make automatic indenter happy.
8258         * doc/tm.texi (Cross-compilation): Rename node to "Floating
8259         Point" and rewrite to describe current situation.  Also adjust
8260         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
8261         match code.
8262         * doc/rtl.texi: Adjust cross reference.
8264 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
8266         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
8267         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
8268         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
8269         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
8270         prevent use of sp as a reload register.
8271         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
8272         non_acc_reg_operand.
8273         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
8274         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
8275         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
8276         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
8278 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8280         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
8281         * cpplex.c (unterminated): Delete.
8282         (parse_string): No string literal may extend over multiple
8283         lines.  Suppress the error when preprocessing assembly.
8284         * cppmain.c (scan_translation_unit): Strings are single-line.
8286         * doc/cpp.texi: Update to match.
8288 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8290         PR optimization/5854
8291         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
8292         Shut up warnings.
8293         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
8294         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
8295         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
8296         const0 if scratch register was not allocated.
8297         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
8298         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
8299         with GEN_INT (...).
8300         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
8301         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
8302         with GEN_INT (...) everywhere.  Remove constraints in define_split
8303         patterns.
8304         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
8305         require scratch register for setting 0 into regs/non-pushable memory.
8307 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8309         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
8310         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
8312 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
8314         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
8315         * cppinit.c (cpp_create_reader):  On by default.
8316         (cpp_handle_option):  Handle -W[no-]endif-labels.
8317         (cpp_post_options):  Also enable if -pedantic.
8318         * cpplib.c (do_else):  Use it.
8319         (do_endif):  Likewise.
8320         * doc/cppopts.texi:  Document new option.
8321         * doc/invoke.texi:  Document new option.
8323 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
8325         * config/i386/i386.c, config/i386/i386.md: Change all occurences
8326         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
8328 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
8330         * flow.c (calculate_global_regs_live): Clear aux fields of
8331         ENTRY and EXIT.
8333 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
8335         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
8336         REG or MEM subregs, pass rtx * instead of rtx to it.
8337         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
8338         rtx * instead of rtx to alter_subreg.
8339         * config/m32r/m32r.c (gen_split_move_double): Likewise.
8340         * config/pj/pj.c (pj_output_rval): Likewise.
8342 2002-03-22  Richard Henderson  <rth@redhat.com>
8344         PR target/3177
8345         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
8346         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
8347         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
8348         (ia64_expand_prologue): Look at int_regs, not words, for number
8349         of incomming int regs.
8351 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
8353         * expr.c (expand_expr): A RESULT_DECL is part of a call.
8355 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
8357         * toplev.c (flag_loop_optimize, flag_crossjumping):
8358         New static variables.
8359         (rest_of_compilation): Conditionalize crossjumping and
8360         loop optimizer.
8361         (parse_options_and_default_flags): Default loop_optimize and
8362         crossjumping.
8363         (lang_independent_options): Add -fcrossjumping and -floop-optimize
8364         * invoke.texi (crossjumping, loop-optimize): Document.
8366 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8368         * real.c (eiisneg): Move outside #ifdef NANS.
8370 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8372         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
8373         frequencies match; avoid match on different loop depths.
8374         (try_crossjump_to_bb): Kill tests that no longer brings time
8375         savings.
8376         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
8377         updating code.
8378         (split_edge): Likewise.
8380         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
8381         variable.
8383         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
8384         * cfgrtl.c: Include insn-config.h
8385         (split_block) Dirtify block in presence of conditional execution
8387 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8389         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
8390         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
8391         (function_arg): Constify CUMULATIVE_ARGS.
8392         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
8393         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
8394         (UNITS_PER_DOUBLE): New macro.
8395         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
8396         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
8397         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
8398         fp_regs and stack_words.
8399         (EABI_FLOAT_VARARGS_P): New macro.
8400         * config/mips/mips.c (struct mips_arg_info): New.
8401         (mips_arg_info): New function.
8402         (function_arg_advance): Use it.  Add adjustment instructions here
8403         rather than in function_arg.
8404         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
8405         for VOIDmode at the beginning of the function.
8406         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
8407         (function_arg_pass_by_reference): Likewise.
8408         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
8409         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
8410         (mips_va_start): Likewise.  Use the new stack_words field of
8411         CUMULATIVE_ARGS to set up overflow area.  Reformat.
8412         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
8413         doubles and other types, aligning the overflow pointer for non-doubles
8414         too.  Remove some code duplication.  Replace hard-coded constants.
8416 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
8418         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
8419         (CLASS_UNITS): Undefine.
8420         (CLASS_MAX_NREGS): Use FP_INC.
8421         * config/mips/mips.c (compute_frame_size): Likewise.
8422         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
8424 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
8426         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
8427         prototype, and handle lexing numbers and identifiers.
8428         (parse_identifier): Update to new form of parse_slow.
8429         (parse_number): Fast path only, use parse_slow otherwise.
8430         (_cpp_lex_direct): Update calls to parse_number.
8432 2002-03-21  DJ Delorie  <dj@redhat.com>
8434         * bb-reorder.c (make_reorder_chain_1): Protect against
8435         when redundant edges are omitted.
8436         * predict.c (dump_prediction): Likewise.
8438 2002-03-21  Richard Henderson  <rth@redhat.com>
8440         PR target/5996
8441         * fixinc/inclhack.def (solaris_stdio_tag): New.
8442         * fixinc/fixincl.x: Regenerate.
8444 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
8446         PR c/5597
8447         * c-typeck.c (process_init_element): Flag non-static
8448         initialization of a flexible array member as illegal.
8450 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
8452         * config/rs6000/t-linux64: New.
8453         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
8454         t-ppccomm.  Use t-rs6000 and t-linux64.
8455         (powerpc64-*-gnu* <tmake_file>): Likewise.
8456         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
8457         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
8458         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
8460 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
8462         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
8463         flag_really_no_inline instead of optimize == 0.
8465         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
8467         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
8469         * flags.h (flag_really_no_inline): New.
8471         * c-common.c (c_common_post_options): Initialize
8472         flag_really_no_inline.
8474         * toplev.c (flag_really_no_inline): New.
8476 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
8478         * config/avr/avr.md (length): Fix length computation for
8479         conditional branches.
8481 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
8483         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
8484         sdbout.o, profile.o): Update.
8485         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
8486         langhook.
8487         * c-common.h (gettags): Move here from tree.h.
8488         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
8489         insert_block, getdecls, kept_level_p, global_bindings_p): New.
8490         * dbxout.c (dbxout_init): Use getdecls langhook.
8491         * expr.c (expand_expr): Use insert_block langhook.
8492         * fold-const.c: Include langhooks.h.
8493         (fold_range_test, fold_binary_op_with_conditional_arg,
8494         fold): Use global_bindings_p langhook.
8495         * integrate.c (expand_inline_function): Use insert_block langhook.
8496         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
8497         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
8498         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
8499         LANG_HOOKS_GETDECLS): New.
8500         (LANG_HOOKS_INITIALIZER): Update.
8501         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
8502         langhook.
8503         * langhooks.h (struct lang_hooks_for_decls): New.
8504         (struct lang_hooks): Update.
8505         * profile.c: Include langhooks.h.
8506         (output_func_start_profiler): Use new langhooks.
8507         * sdbout.c: Include langhooks.h.
8508         (sdbout_init, sdbout_finish): Use getdecls langhook.
8509         * stmt.c: Include langhooks.h.
8510         (expand_fixup, fixup_gotos): Use new langhooks.
8511         * stor-layout.c: Include langhooks.h.
8512         (variable_size): Use global_bindings_p langhook.
8513         * toplev.c (compile_file): Use getdecls langhook.
8514         * tree-inline.c (remap_block): Use insert_block langhook.
8515         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
8516         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
8518 2002-03-21  Richard Henderson  <rth@redhat.com>
8520         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
8521         constants in .data when -fpic.
8523 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8525         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
8526         where appropriate.
8528 2002-03-21  Tom Tromey  <tromey@redhat.com>
8530         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
8532 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8534         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
8536         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
8538 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
8539             Richard Henderson  <rth@redhat.com>
8541         PR c/5354
8542         * c-common.c (c_expand_expr): Preserve result of a statement
8543         expression if needed.
8545 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
8547         PR bootstrap/4195
8548         * genrecog.c (maybe_both_true_mode): Remove.
8549         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
8550         * machmode.def (Pmode): Likewise.
8552 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
8554         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
8555         (nonlocal_mentioned_p_1): New function.
8556         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
8557         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
8558         (mark_constant_function): Recognize pure functions.
8559         * rtl.h (global_reg_mentioned_p): New prototype.
8560         * rtlanal.c (global_reg_mentioned_p,
8561         global_reg_mentioned_p_1): New function.
8563 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
8565         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
8566         UNIX assert.h.
8567         * fixinc/fixincl.x: Regenerate.
8569 2002-03-20  Jason Merrill  <jason@redhat.com>
8571         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
8573 2002-03-20  Michael Meissner  <meissner@redhat.com>
8575         * doc/invoke.texi (Optimize Options): Document that -O2 sets
8576         -fstrict-aliasing.
8578 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
8580         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
8581         ".literal_position" directive before the constant pool.
8583 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8585         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
8586         Add Craig Rodrigues.
8587         Add Brad Lucier to testers.
8589 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
8591         PR target/4792
8592         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
8593         to if_then_else.
8594         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
8595         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
8596         instead of insn_extract.
8598 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
8600         PR bootstrap/4192
8601         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
8603         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
8604         stmt if some case has been output.
8606 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
8608         PR c/5972
8609         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
8610         movsfcc_1, movdfcc_1): Add %O2.
8611         * config/i386/i386.c (print_operand): Handle %ON.
8612         Print . before float condition codes in Sun as cmov syntax.
8613         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
8614         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
8615         no longer true.
8617 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
8619         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
8620         return instruction if PC was popped.
8622 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
8624         * config/xtensa/xtensa.md: Remove unused type attributes.
8625         (adddi_carry, subddi_carry): Change type attribute to "multi".
8627 2002-03-19  Dale Johannesen  <dalej@apple.com>
8629         PR optimization/5999, middle-end/5731
8630         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
8631         multiplications by reciprocals.
8633 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
8635         * Makefile.in: Update.
8636         * c-common.c: Include langhooks.h.
8637         (inline_forbidden_p): Use new hook.
8638         * diagnostic.c: Include langhooks.h.
8639         (format_with_decl, announce_function,
8640         default_print_error_function): Use new hook.
8641         * dwarf2out.c (dwarf2_name): Use new hook.
8642         * function.c: Include langhooks.h.
8643         (init_function_start): Use new hook.
8644         * langhooks-def.h (lhd_decl_printable_name): New.
8645         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
8646         (LANGHOOKS_INITIALIZER): Update.
8647         * langhooks.c (lhd_decl_printable_name): New.
8648         * langhooks.h (struct lang_hooks): New hook.
8649         * toplev.c (decl_name, decl_printable_name): Remove.
8650         (open_dump_file): Use new hook.
8651         (process_options): Remove old hook.
8652         * tree.h (decl_printable_name): Remove.
8653 objc:
8654         * objc-act.c (objc_init): Remove old hook.
8655         (objc_printable_name): Export.
8656         * objc-act.h (objc_printable_name): New.
8657         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
8659 2002-03-19  Jim Blandy  <jimb@redhat.com>
8661         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
8662         the start_source_file debug hook, not the current line number.
8664 2002-03-19  Richard Henderson  <rth@redhat.com>
8666         * flow.c (EH_USES): Provide default.
8667         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
8668         * doc/tm.texi (EH_USES): New.
8670         * config/ia64/ia64.c (ia64_eh_uses): New.
8671         * config/ia64/ia64-protos.h: Update.
8672         * config/ia64/ia64.h (EH_USES): New.
8674 2002-03-19  Richard Henderson  <rth@redhat.com>
8676         * varasm.c (output_constant_def): Fix stupid typo.
8678 2002-03-19  Richard Henderson  <rth@redhat.com>
8680         PR 5879
8681         * except.c (current_function_has_exception_handlers): New.
8682         * except.h: Declare it.
8683         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
8684         Combine tests that disable all sibcalls for the function.
8686 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
8688         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
8689         for INTEGER_CST.
8691 2002-03-19  Richard Henderson  <rth@redhat.com>
8693         PR 5977, 5991
8694         * config/ia64/ia64.c: Revert 2002-03-01 patch.
8695         * config/ia64/ia64.h (INIT_EXPANDERS): New.
8697 2002-03-19  Jim Blandy  <jimb@redhat.com>
8699         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
8700         name, even if the replacement list contains no tokens, as required
8701         by Dwarf.
8703 2002-03-19  Jason Merrill  <jason@redhat.com>
8705         * varasm.c (globalize_decl): Get the name from the RTL, not
8706         DECL_ASSEMBLER_NAME.
8708         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
8710 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
8712         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
8713         subdi_carry): Define.
8715 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
8717         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
8718         about -fpic/-fPIC if extra_warnings set.
8720 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
8722         * expr.c (expand_expr): Sign-extend CONST_INT generated from
8723         TREE_STRING_POINTER.
8724         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
8726 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8728         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
8729         in favor of SP if FRAME_POINTER_REQUIRED is false.
8731 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
8733         * emit-rtl.c (gen_int_mode): New function.
8734         * rtl.h: Prototype for it.
8735         * combine.c (make_extraction, simplify_comparison), expmed.c
8736         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
8737         (convert_modes, store_field), optabs.c (expand_fix),
8738         simplify-rtx.c (neg_const_int, simplify_unary_real),
8740         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
8741         Use it instead of GEN_INT (trunc_int_for_mode (...)).
8743 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
8745         PR c/5656
8746         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
8747         convert_parm_for_inlining.
8748         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
8749         Define.
8750         * langhooks-def.h: Likewise.
8751         * objc/objc-lang.c: Likewise.
8752         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
8753         function.
8754         * tree-inline.c (initialize_inlined_parameters):
8755         Call convert_parm_for_inlining lang hook if needed.
8756         * c-typeck.c (c_convert_parm_for_inlining): New function.
8757         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
8759 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
8761         * calls.c (precompute_arguments): Do not assume that temporaries
8762         can be destroyed after expanding the argument.
8763         (expand_call): Likewise.
8765 2002-03-15  Eric Christopher  <echristo@redhat.com>
8767         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
8768         Fix register preference on last change.
8769         * config/mips/mips.c (mips_return_in_memory): New function.
8770         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
8771         * config/mips/mips-protos.h: Declare.
8772         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
8773         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
8775 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
8777         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
8778         a register too.
8779         (anddi3, iorsi3): Likewise.
8781         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
8782         use %gprel for symbols that are going to be placed in linkonce
8783         sections.
8785         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
8786         RETURN_ADDRESS_POINTER_REGNUM to $ra.
8787         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
8788         not needed.  Disregard leaf_function_p().
8789         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
8790         mips16 frame pointer.
8791         * config/mips/mips.md (store ra): Only to small SP offsets.
8792         2001-08-22  Graham Stott  <grahams@redhat.com>
8793         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
8794         return a REG rtx for the return address register.
8796 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
8798         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
8799         constant-pool addresses as "mode-dependent".
8800         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
8802 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
8804         PR target/5740
8805         * expr.c (emit_group_load): Use extract_bit_field if
8806         needed for CONCAT arguments.
8808 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
8810         PR target/4863
8811         * arm.md (tablejump): Make this a define_expand.  For PIC add the
8812         offset to the base of the table.
8813         (thumb_tablejump): Matcher for Thumb tablejump insn.
8814         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
8815         as the difference of two labels.
8816         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
8817         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
8818         tables in the code.
8819         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
8820         * arm.c (get_jump_table_size): If the table is not in the text
8821         section, return zero.
8823 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
8825         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
8826         of gen_rtx_SUBREG.
8827         (arm_reload_out_hi): Use gen_lowpart instead of
8828         gen_rtx_SUBREG to access QImode components.
8829         * config/arm/arm.md: Disable zero_extend split for QImode
8830         subregs in BIG_ENDIAN mode.
8831         (storehi_bigend): Match use of least significant byte.
8832         (storeinthi): Remove extraneous SUBREG.
8833         Add missing construction of operands[2].
8834         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
8835         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
8836         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
8838 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
8840         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
8841         any_operand.
8843 2002-03-17  Richard Henderson  <rth@redhat.com>
8845         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
8846         explicitly.
8848 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
8850         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
8851         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
8853 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8855         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
8857         * predict.c (estimate_bb_frequencies): Delete unused variables.
8859 2002-03-17  Richard Henderson  <rth@redhat.com>
8861         * config/ia64/ia64.c (ia64_attribute_table): Move before
8862         targetm definition.  Make static.
8864 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
8866         * c-common.h (yyparse, c_common_parse_file): New.
8867         * c-lang.c: Include c-common.h.
8868         (LANG_HOOKS_PARSE_FILE): Redefine.
8869         * c-lex.c: Include c-common.h.
8870         (yyparse): Rename c_common_parse_file.  Call yyparse.
8871         * c-parse.in (yyparse): Remove macro.
8872         * c-tree.h (yyparse_1): Remove.
8873         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
8874         (LANG_HOOKS_INITIALIZER): Update.
8875         * langhooks.h (struct lang_hoooks): New hook parse_file.
8876         * toplev.c (compile_file): Use parse_file hook.
8877         * tree.h (yyparse): Remove.
8878         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
8880 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
8882         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
8883         float_truncate, not fix.
8884         ("*truncdfsf2_real"): Ditto.
8885         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
8887         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
8889 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
8891         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
8892         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
8893         where appropriate.  Make the second reference to
8894         leaf_function_p a function call, as intended.  Reindented.
8896         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
8897         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
8899         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
8900         add register to non-constant into sp.
8902         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
8903         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
8904         (mips16_gp_pseudo_rtx): Lose.
8905         (INIT_EXPANDERS): Deleted.
8906         * config/mips/mips.c (mips_init_machine_status): New.
8907         (mips_free_machine_status): New.
8908         (mips_mark_machine_status): New.
8909         (override_options): Set them.
8910         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
8911         (struct machine_function): ... new.  Replaced all references.
8912         (mips_add_gc_roots): Don't mark them.
8913         (embedded_pic_fnaddr_reg): New, extracted from...
8914         (embedded_pic_offset): ... here.
8915         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
8916         (movsi): Likewise.
8918 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8920         * cppinit.c: Revert -MD removal.
8922 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8924         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
8925         soft registers by default for 68HC12.
8926         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
8927         when compiling with -fomit-frame-pointer.
8928         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
8929         (expand_epilogue): Likewise.
8930         (m68hc11_gen_rotate): Use exg when rotating by 8.
8932 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8934         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
8935         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
8936         (splits): Remove unused add splits.
8937         ("*addhi3_68hc12"): Tune constraints.
8938         ("addhi_sp"): Try to use X instead of Y in all cases and if the
8939         constant fits in 8-bits and D is dead use abx/aby instructions.
8940         ("*addhi3"): Remove extern declaration of ix_reg.
8941         ("*subsi3"): Optimize and provide new split.
8942         ("subhi3"): Cleanup.
8943         ("*subhi3_sp"): Avoid saving X if we know it is dead.
8944         (arith splits): For 68hc12 save the address register on the stack
8945         and do the arithmetic operation with a pop.
8947 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8949         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
8950         allocating QImode in address registers.
8951         ("*movqi_m68hc11"): Likewise.
8953 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
8955         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
8957 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
8959         * cppinit.c (print_help): Display -MD and -MMD.
8960         Don't display usage string.  Update assertion syntax and
8961         typo.
8962         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
8963         (cpp_handle_option): Update.
8965 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
8967         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
8968         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
8969         and define it so that regardless of target CPU size,
8970         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
8971         of "int" rather than "long."
8973 2002-03-15  Richard Henderson  <rth@redhat.com>
8975         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
8976         size as a tree.
8978 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8980         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
8981         ("tstqi" split): Avoid using memory for tstqi on address register.
8982         (splits): Remove constraints.
8983         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
8984         ("cmpdf", "cmpsf"): Remove since not used.
8985         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
8986         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
8988 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8990         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
8991         ("neghi2"): Tighten constraints.
8992         ("one_cmplsi2"): Optimize and simplify split.
8993         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
8995 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
8997         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
8998         and split of AND operation to clear the upper bits.
8999         ("*logicalsi3_zextqi"): Likewise.
9000         ("*logicallhi3_zexthi_ashift8"): Likewise.
9001         ("*logicalsi3_silshr16"): Likewise.
9002         ("logicalsi3_silshl16"): Likewise.
9003         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
9005 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9007         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
9008         (m68hc11_indirect_p): New function.
9009         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
9010         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
9011         TARGET_M6812.
9012         (asm_print_register): Likewise.
9013         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
9014         (m68hc11_indirect_p): Declare.
9015         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
9016         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
9017         (TARGET_SWITCHES): New option -mrelax.
9018         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
9019         destination.
9020         ("iorsi3", "xorsi3"): Likewise.
9021         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
9022         ("*andhi3_mem"): New to handle destination in memory with bclr
9023         and a scratch register.
9024         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
9025         ("*andhi3_const"): New when operand2 is constant.
9026         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
9027         ("*andhi3_gen"): Cleanup of the old "andhi3".
9028         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
9029         ("xorqi3"): Update constraints.
9031 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9033         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
9034         for reg_equiv_memory_loc when the operand is a register that does
9035         not get a hard register (stack location).
9036         (tst_operand): After reload, accept all memory operand.
9037         (symbolic_memory_operand): Fix detection of symbolic references.
9038         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
9039         accept symbols and any constant.
9041 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9043         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
9044         note on the insn that sets the soft frame register.
9045         (must_parenthesize): ix and iy are also reserved names.
9046         (print_operand_address): One more place where parenthesis are required
9047         to avoid confusion with register names.
9048         (m68hc11_gen_movhi): Allow push of stack pointer.
9049         (m68hc11_check_z_replacement): Fix handling of parallel with a
9050         clobber.
9051         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
9052         the replacement register is.
9053         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
9054         and D8_REGS classes.
9055         (MODES_TIEABLE_P): All modes are tieable except QImode.
9057 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9059         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
9060         (___subdi3): Likewise.
9061         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
9062         (__map_data_section): Optimize 68hc11 case.
9064 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
9066         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
9067         than a shift to avoid adding a register with itself.
9068         (m68hc11_memory_move_cost): Take into account NO_REGS.
9069         (m68hc11_register_move_cost): Update and use memory move cost
9070         for soft registers.
9071         (m68hc11_address_cost): Make cost of valid offset not 0 so that
9072         it gives more opportunities to cse to optimize.
9073         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
9074         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
9076 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
9078         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
9079         * c-common.def (CLEANUP_STMT): New tree node.
9080         * c-common.h (CLEANUP_DECL): New macro.
9081         (CLEANUP_EXPR): Likewise.
9082         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
9083         * expr.c (expand_expr): Tidy.
9084         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
9085         * tree-inline.c (initialize_inlined_parameters): Clean up
9086         new local variables.
9088 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9090         PR bootstrap/4128
9091         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
9092         before movrXX only, use reg_overlap_mentioned_p.
9093         Only special case NE if just one insn can be generated.
9095 2002-03-15  Jason Merrill  <jason@redhat.com>
9097         * varasm.c (assemble_variable): Call resolve_unique_section before
9098         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
9099         of error_mark_node.
9101 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9103         PR target/5170
9104         * arm.md (split pattern for thumb shiftable immediates): Add comment
9105         explaining non-obvious test.
9107 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
9109         PR target/5712
9110         * arm.md (movaddr, movaddr_insn): Delete.
9112 2002-03-15  Jason Merrill  <jason@redhat.com>
9114         * toplev.c (wrapup_global_declarations): Clarify variable handling.
9115         -fkeep-static-consts doesn't apply to comdats.
9117 2002-03-14  Richard Henderson  <rth@redhat.com>
9119         * c-decl.c: Include c-pragma.h.
9120         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
9121         (finish_function): Tidy.
9122         * c-pragma.c: Include c-common.h.
9123         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
9124         (handle_pragma_weak): Use them.
9125         (init_pragma): Register pending_weaks.
9126         * c-pragma.h (maybe_apply_pragma_weak): Declare.
9127         * print-tree.c (print_node): Print DECL_WEAK.
9128         * varasm.c (mark_weak_decls): Remove.
9129         (remove_from_pending_weak_list): Remove.
9130         (add_weak): Remove.
9131         (asm_emit_uninitialised): Call globalize_decl for weak commons.
9132         (weak_decls): Make a tree_list.
9133         (declare_weak): Cons weak_decls directly.
9134         (globalize_decl): Remove weak_decls elements directly.
9135         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
9136         symbols.  Don't pretend to handle aliases.
9137         (init_varasm_once): Update weak_decls registry.
9138         * Makefile.in: Update dependencies.
9140 2002-03-14  Richard Henderson  <rth@redhat.com>
9142         PR target/5312
9143         * config/ia64/ia64.c: Include tm_p.h last.
9144         (gen_nop_type): Remove duplicate definition.
9145         (cycle_end_fill_slots): Set sched_data for second L slot.
9146         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
9147         (nop_cycles_until): Fix typos.
9149 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
9151         PR optimization/5891
9152         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
9154 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
9156         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
9157           descriptors correctly.
9159 2002-03-14  Michael Meissner  <meissner@redhat.com>
9161         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
9162         100, allowing MAX_UNROLLED_INSNS to be overridden.
9164         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
9165         --param.
9167         * unroll.c (params.h): Include.
9168         (MAX_UNROLLED_INSNS): Delete, now in params.h.
9170         * doc/invoke.texi (--param max-unroll-insns): Document.
9172         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
9174 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9176         * arm.md: Fix warnings about constraints in peepholes and splits.
9178 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
9180         * cpphash.h (struct lexer_state): Remove line_extension member.
9181         * cpplib.c (dequote_string, do_linemarker): New functions.
9182         (linemarker_dir): New data object.
9183         (DIRECTIVE_TABLE): No longer need to interpret #line in
9184         preprocessed source.  Delete obsolete comment about return
9185         values of handlers.
9186         (end_directive, directive_diagnostics, _cpp_handle_directive):
9187         Don't muck with line_extension.
9188         (directive_diagnostics): No need to issue warnings for
9189         linemarkers here.
9190         (_cpp_handle_directive): Issue warnings for linemarkers here,
9191         when appropriate.  Dispatch linemarkers to do_linemarker, not
9192         do_line.
9193         (do_line): Code to handle linemarkers split out to do_linemarker.
9194         Convert escape sequences in filename argument, both places.
9196         * cppmacro.c (quote_string): Rename cpp_quote_string and
9197         export.  All callers changed.
9198         * cpplib.h (cpp_quote_string): Prototype.
9199         * cppmain.c (print_line): Call cpp_quote_string on to_file
9200         before printing it.
9202         * doc/cpp.texi: Document that escapes are now interpreted in
9203         #line and in linemarkers, and that non-printing characters are
9204         converted to octal escapes when linemarkers are generated.
9206 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
9208         * emit-rtl.c (try_split): Use delete_insns.
9209         * recog.c (split_all_insns): Fix terminating condition.
9211 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
9212             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
9214         PR target/5828
9215         * arm.c (arm_output_epilogue): Fix floating-point register save
9216         adjustment when using a frame pointer.
9218 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
9220         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
9221         * config/mips/mips.c (compute_frame_size): Retrofit them here.
9222         (save_restore_insns, mips_expand_epilogue): And here.
9223         (build_mips16_call_stub): And here.
9224         (mips_function_value): Use the new macros to decide whether a single
9225         or complex float can be returned in floating-point registers.  Return
9226         a parallel rtx in the complex case.
9228 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
9230         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
9231         call after liveness analysis.
9233         * recog.c (split_insn): Use delete_insn_and_edges.
9235         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
9236         instructions to have branch prediction notes.
9237         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
9239 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
9241         * configure.in: Don't pass -Wno-long-long to a ADA compiler
9242         that doesn't support it.
9243         * configure: Regenerate.
9245 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9247         PR target/5626
9248         * config/sparc/sparc.md (normal_branch, inverted_branch,
9249         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
9250         inverted_fp_branch): Adjust calls to output_cbranch.
9251         Set length attribute.
9252         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
9253         output_v9branch.  Set length attribute.
9254         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
9255         predicates.
9256         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
9257         (output_cbranch): Likewise.  Handle far branches.
9258         (output_v9branch): Handle far branches.
9259         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
9260         Adjust prototypes.
9261         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
9262         noov_compare64_op predicates.
9264 2002-03-13  Jason Merrill  <jason@redhat.com>
9266         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
9267         into the function and constify it.
9268         * gthr-dce.h, gthr-solaris.h: Likewise.
9270 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
9272         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
9273         * config/rs6000/rs6000.c (rs6000_va_arg): Use
9274         std_expand_builtin_va_arg if not ABI_V4.
9276 2002-03-13  Jason Merrill  <jason@redhat.com>
9278         * varasm.c (globalize_decl): New fn.
9279         (assemble_start_function): Use it.
9280         (asm_emit_uninitialized): Use it.
9281         (assemble_alias): Use it.
9282         (assemble_variable): Use it.
9284 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
9286         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
9287         2002-03-12 internal visibility change.
9288         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
9289         visibility into SYMBOL_REF_FLAG.
9291 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
9293         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
9294         VOIDmode operand.  Add compile-time optimization for constant results.
9296 2002-03-12  Jason Merrill  <jason@redhat.com>
9298         * c-typeck.c (convert_for_assignment): Don't allow conversions
9299         between pointers and references.  Only allow lvalues to convert to
9300         reference.
9302 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
9304         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
9305         before prologue, to avoid scheduling problems.
9307 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9309         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
9310         (ELIMINABLE_REGS): Add sfp->sp.
9311         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
9313 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9315         PR optimization/5892
9316         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
9318 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
9320         * loop.c (basic_induction_var): Don't call convert_modes if mode
9321         classes are different.
9323 2002-03-12  Richard Henderson  <rth@redhat.com>
9325         PR optimization/5901
9326         * function.c (reposition_prologue_and_epilogue_notes): Position
9327         the markers after/before the last/first insn not deleted.
9329 2002-03-12  Richard Henderson  <rth@redhat.com>
9331         PR optimization/5878
9332         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
9333         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
9334         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
9336         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
9337         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
9338         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
9340         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
9341         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
9342         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
9343         also.  Don't set it if not flag_pic.
9344         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
9345         to be INVALID_REGNUM when not used.
9347 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
9349         * expmed.c (store_bit_field): Reset alias set for memory.
9350         (extract_bit_field): Same.
9352 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9354         * c-common.c (c_tree_code_type, c_tree_code_length,
9355         c_tree_code_name, add_c_tree_codes): Delete.
9356         * c-common.h (add_c_tree_codes): Delete.
9357         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
9358         Define.
9359         * c-objc-common.c (c_objc_common_init): Don't call
9360         add_c_tree_codes, instead set lang_unsafe_for_reeval.
9361         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
9362         objc_tree_code_name, add_objc_tree_codes): Delete.
9363         (objc_init): Don't call add_objc_tree_codes.
9364         * objc/objc-lang.c (tree_code_type, tree_code_length,
9365         tree_code_name): Define.
9366         * toplev.c (lang_independent_init): Don't set
9367         tree_code_length[IDENTIFIER_NODE].
9368         * tree.c (tree_code_type, tree_code_length, tree_code_name):
9369         Delete definitions, moved to language front-ends.
9370         * tree.def (IDENTIFIER_NODE): Hardwire the length.
9371         * tree.h (tree_code_type, tree_code_length, tree_code_name):
9372         Const-ify.
9373         (tree_code_length): Change type to unsigned char.
9375 2002-03-12  Richard Henderson  <rth@redhat.com>
9377         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
9378         internal visibility change.
9380 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9382         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
9383         validize_mem() instead of change_address to avoid clobbering
9384         memory attributes.
9386 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
9388         * c-lex.h (position_after_whitespace): Remove.
9390 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
9392         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
9393         (lex_string): Use unsigned char pointers.
9395 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9397         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
9398         is not a valid memory_operand.
9400 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9402         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
9403         * config/xtensa/lib1funcs.asm: Fix copyright to include
9404         special case for libgcc files.
9405         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
9406         (__divsi3): Likewise.
9407         (__umodsi3): Likewise.
9408         (__modsi3): Likewise.
9409         * config/xtensa/lib2funcs.S: Fix copyright to include
9410         special case for libgcc files.
9412 2002-03-12  Tom Rix  <trix@redhat.com>
9414         * collect2.c (resolve_lib_name): Move outside of
9415         OBJECT_FORMAT_COFF ifdef.
9416         (ignore_library): Same.
9418 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9420         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
9422 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
9424         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
9425         to function_section before writing out the constant pool.
9427 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
9429         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
9430         zero_constant.
9431         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
9433 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
9435         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
9436         (adddi3): Likewise.
9437         (movdf): Likewise.
9438         (movdi): Likewise.
9439         (cmpsi splitter): Likewise.
9440         (modsi3): Fail if <= 0.
9441         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
9442         redundant test when HOST_BITS_PER_WIDE_INT != 32.
9443         (reg_or_sub_cint64_operand): Likewise.
9444         (num_insns_constant_wide): Optimize sign extension.
9445         (rs6000_legitimize_address): Likewise.
9447 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
9449         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9450         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
9452 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
9454         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
9455         address calculation.
9457 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
9459         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
9460         scratch register to DImode / TImode.
9461         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
9462         register used does not overlap the target.
9464 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9466         * Makefile.in (debug.o): Depend on debug.h.
9467         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
9468         * debug.c (do_nothing_debug_hooks): Likewise.
9469         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
9470         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
9471         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
9472         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
9473         * dwarfout.c (dwarf_debug_hooks): Likewise.
9474         * integrate.c (output_inline_function): Likewise.
9475         * objc/objc-act.c (synth_module_prologue): Likewise.
9476         * sdbout.c (sdb_debug_hooks): Likewise.
9477         * toplev.c (debug_hooks): Likewise.
9478         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
9480 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9482         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
9483         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
9484         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
9485         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
9486         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
9487         * defaults.h (POINTER_SIZE): Define.
9488         * doc/tm.texi (POINTER_SIZE): Document default.
9490 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9492         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
9494 2002-03-11  Richard Henderson  <rth@redhat.com>
9496         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
9497         if rebuild_label_notes_after_reload.
9499 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
9501         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
9502         emit pic register load if "internal" visibility.
9503         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
9504         (cris_expand_builtin_va_arg): Do all computations on trees.
9506 2002-03-11  Richard Henderson  <rth@redhat.com>
9508         * rtlanal.c: Include recog.h.
9509         (keep_with_call_p): Fix thinko.
9510         * Makefile.in (rtlanal.o): Update dependencies.
9512 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
9514         * genflags.c (gen_insn): Use IS_VSPACE.
9515         * genoutput.c (output_insn_data): Likewise.
9516         (process_template): Likewise.
9518 2002-03-11  Richard Henderson  <rth@redhat.com>
9520         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
9522 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
9524         * Makefile.in: Update.
9525         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
9526         Update documentation.
9527         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
9528         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
9530 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
9532         * Makefile.in: Give texi2pod its input file as a command line
9533         argument, not on stdin.
9535 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
9536             Daniel Berlin  <dan@dberlin.org>
9538         C++ alias analysis improvement.
9539         * alias.c (record_component_aliases): Record aliases for base
9540         classes too.
9542 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
9544         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
9546 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
9548         * toplev.c (vms_fopen): Remove, not needed.
9550         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
9552         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
9554         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
9555         for FP, already done later.
9557         * toplev.c (debug_args): Add entry for VMS_DEBUG.
9558         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
9560 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
9562         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
9563         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
9564         LARGEST_EXPONENT_IS_NORMAL for the given mode.
9565         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
9566         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
9567         (ediv, emul, eldexp, esqrt): Likewise.
9568         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
9569         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
9570         (saturate): New function.
9571         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
9572         (make_nan): Use a saturation value instead of a NaN if
9573         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
9574         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
9575         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
9576         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
9577         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
9578         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
9579         !ROUND_TOWARDS_ZERO.
9580         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
9581         (ROUND_TOWARDS_ZERO): Document.
9583 2002-03-11  Andreas Jaeger  <aj@suse.de>
9585         * cfg.c (dump_flow_info): Remove unused variable.
9587 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
9589         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
9590         computations on trees.
9592 2002-03-10  Richard Henderson  <rth@redhat.com>
9594         PR 5693:
9595         * reload.c (copy_replacements_1): New.
9596         (copy_replacements): Use it to recurse through the rtx.
9598 2002-03-10  Richard Henderson  <rth@redhat.com>
9600         * loop.c (strength_reduce): Compute number of iterations as
9601         unsigned HOST_WIDE_INT.
9603 2002-03-10  Richard Henderson  <rth@redhat.com>
9605         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
9606         to move away from the end of the block.
9608 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
9610         PR preprocessor/5899
9611         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
9613 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9615         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
9617         * attribs.c (decl_attributes): Fix signed/unsigned warning.
9619 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
9621         * config/mmix/mmix.c: Improve comments.
9622         (mmix_target_asm_function_prologue): Drop variable
9623         empty_stack_frame.  Don't allocate unused slot above fp.
9624         (mmix_target_asm_function_epilogue): Mirror prologue changes.
9625         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
9626         brace in first column.
9627         (enum reg_class): Ditto.
9628         (FIRST_PARM_OFFSET): Now 0.
9629         (USER_LABEL_PREFIX): Remove #if 0:d definition.
9631 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9633         * combine.c (make_extraction): Fix error in last change.
9635 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9637         * c4x.c (c4x_fp_reglist): Const-ify.
9638         * cris.c (cris_print_operand): Likewise.
9639         * i386.c (ix86_va_arg): Likewise.
9640         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
9641         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
9642         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
9643         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
9644         * mcore.h (regno_reg_class): Likewise.
9645         * mips.c (gen_int_relational): Likewise.
9646         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
9647         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
9648         * pdp11.c (move_costs): Likewise.
9649         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
9650         * s390.c (s390_branch_condition_mnemonic, regclass_map):
9651         Likewise.
9652         * s390.h (regclass_map): Likewise.
9653         * sh.c (shift_amounts): Likewise.
9654         * sh.md (rotlsi3): Likewise.
9656 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
9658         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
9659         (ne0+5): Use new clobber to generate proper shift pattern.
9660         Patch by Michael Matz <matz@kde.org>.
9662 2002-03-09  Andreas Schwab  <schwab@suse.de>
9664         * gcc.c (validate_all_switches): Also handle `%W{...}'.
9666 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
9668         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
9670 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
9672         PR middle-end/5877
9673         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
9674         even for non-representable constants.
9676 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9678         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
9679         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
9680         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
9681         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
9682         (pop_function_context): Compute MAY_SHARE parameter for
9683         fixup_var_refs.
9684         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
9685         (gen_mem_addressof): Call fixup_var_refs with new parm.
9687         * combine.c (make_extraction): Don't make extension of CONST_INT.
9689 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
9691         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
9692         in o32 and o64 ABIs.
9693         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
9694         but getting fixed-size structs passed in registers regardless of
9695         padding in o32 and o64 ABIs.
9697         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
9698         offset before loading address of argument passed by transparent
9699         reference.
9701 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9703         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
9705 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
9707         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
9708         marker such that registers after it are saved.
9710 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9712         * sparc.c (arith_4096_operand): Fix error in last change.
9714 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
9716         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
9717         defaults for MEABI.
9719 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
9721         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
9722         vectors.
9724 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
9726         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
9728 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
9730         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
9731         removed; fix return value.
9732         * combine.c (combine_instructions): Dirtify blocks where we failed to
9733         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
9734         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
9736 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9738         * gcse.c (insert_insn_end_bb): Fix typo in last change.
9740 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
9742         * recog.c (peephole2_optimize): Re-distribute EH edges.
9744 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
9746         * expr.c (expand_expr): Use unsave lang hook.
9747         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
9748         (LANG_HOOKS_INITIALIZER): Update.
9749         * langhooks.h (struct lang_hooks): New hook unsave.
9750         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
9751         (unsave_expr_1): Remove unused lang_unsave_expr_now.
9752         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
9753         (unsave_expr_now): Remove.
9754         * tree.h (unsave_expr_now, lang_unsave,
9755         lang_unsave_expr_now): Remove.
9756         (lhd_unsave): New.
9758 2002-03-08  Andreas Jaeger  <aj@suse.de>
9760         * flow.c (propagate_block_delete_insn): Remove unused variable.
9762 2002-03-08  Kazu Hirata  <kazu@hxi.com>
9764         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
9765         insn length for memory load/store.
9767 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
9769         * doc/install.texi (--with-libiconv-prefix): Document.
9771 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
9773         * doc/sourcebuild.texi: Fix typo.
9775 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
9777         PR c/3711
9778         * builtins.c (std_expand_builtin_va_arg): Do all computations on
9779         trees.
9781 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9783         * rtl.c (copy_most_rtx): Move from here ...
9784         * emit-rtl.c (copy_most_rtx): ... to here.
9786 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
9788         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
9789         SUBTARGET_CPP_SIZE_SPEC.
9790         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
9792         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
9794 2002-03-07  Matt Hiller  <hiller@redhat.com>
9796         * gensupport.c (first_dir_md_include): Renamed from include;
9797         change all references.
9798         (last_dir_md_include): Renamed from last_include; change all
9799         references.
9800         (init_md_reader): Unconditionally initialize base_dir whether or
9801         not filename is a relative path.
9803 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
9805         * config/fp-bit.c (_unord_f2): Compile it in even if
9806         US_SOFTWARE_GOFAST is enabled.
9808         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
9809         NULL_RTX.  Set all HFmode operations as NULL_RTX.
9810         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
9811         NULL_RTX, try reversing the comparison and the operands.
9813 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
9815         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
9816         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
9817         and MATCH_OP_DUP.
9819 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
9821         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
9823 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
9825         * basic-block.h (fixup_abnormal_edges): Declare.
9826         * reload1.c (fixup_abnormal_edges): New function.
9827         * reg-stack.c (convert_regs): Use it.
9829         * gcse.c (insert_insn_end_bb): Handle trapping insns.
9831         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
9833 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
9835         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
9836         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
9837         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
9838         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
9839         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
9840         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
9841         unless x and y could be infinite.
9842         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
9843         Check that the common type of both arguments is a real, even for
9844         targets without unordered comparisons.  Allow an integer argument
9845         to be compared against a real.
9846         (expand_tree_builtin): Use expand_unordered_cmp.
9847         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
9848         * cse.c (fold_rtx): Likewise.  Fix indentation.
9849         * fold-const.c (fold_real_zero_addition_p): New.
9850         (fold): Use it, and the new HONOR_... macros.
9851         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
9852         * jump.c (reversed_comparison_code_parts): After searching for
9853         the true comparison mode, use HONOR_NANS to decide whether it
9854         can be safely reversed.
9855         (reverse_condition_maybe_unordered): Remove IEEE check.
9856         * simplify-rtx.c (simplify_binary_operation): Use the new macros
9857         to decide which simplifications are valid.  Allow the following
9858         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
9859         and (a - -b) to (a + b).
9860         (simplify_relational_operation): Use HONOR_NANS.
9861         * doc/tm.texi: Document the MODE_HAS_... macros.
9863 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
9865         * combine.c (simplify_comparison): If simplifying a logical shift
9866         right and compare with constant, force the comparison to unsigned.
9868 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
9870         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
9872         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
9873         -mabi=no-altivec
9874         (alt_reg_names): Remove % for vrsave.
9876 2002-03-06  Richard Henderson  <rth@redhat.com>
9878         PR optimization/5844
9879         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
9880         if used indicates we've already emitted one copy of an operand.
9881         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
9882         (gen_split): Supply a non-null used.
9884 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
9886         * reload1.c (reload): Unshare all rtl after reload is done.
9888         * simplify-rtx.c (simplify_plus_minus): Do not abort,
9889         but simply fail if the expression is too complex to simplify.
9890         (simplify_gen_binary): Handle simplify_plus_minus failures.
9892 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
9894         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
9895         consistently call delete_trivially_dead_insns after CSE and GCSE;
9896         fix DFI_life dumping; do jump threading after liveness; do crossjumping
9897         after liveness2; update comment in last crossjumping.
9898         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
9900 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
9902         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
9903         after completing fast dead code elimination.
9905         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
9906         COMPARE operator.
9908 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
9910         * version.c:  Fix misplaced leading blanks on first line.
9912 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
9914         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
9916 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
9918         * cfgcleanup.c (mentions_nonequal_regs): New function.
9919         (thread_jump): Use it.
9920         * toplev.c (rest_of_compilation): Run jump threading after
9921         liveness.
9923 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
9925         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
9926         patch.
9928 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
9930         * predict.c (estimate_bb_frequencies): Do not reload the
9931         frequencies from notes.
9933 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
9935         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
9936         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
9938         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
9939         delete_noop_moves): Return indeger.
9940         * flow.c (ndead): New variable.
9941         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
9942         BB argument; update callers.
9943         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
9944         (life_analysis): Do not call purge_all_dead_edges.
9945         (update_life_info): Return number of deleted insns; print statistics.
9946         (update_life_info_in_dirty_blocks): likewise.
9947         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
9948         return number of insns deleted.
9950         * cse.c: Include timevar.h
9951         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
9952         iterate until stabilizes; print statistics; return number of killed
9953         insns.
9954         * Makefile.in: (cse.o): Add timevar.h dependency
9955         * rtl.h (delete_trivially_dead_insns): New.
9956         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
9957         * toplev.c (rest_of_compilation): Update callers.
9959         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
9960         (try_optimize_cfg): Do not update liveness.
9961         (cleanup-cfg): Loop until try_optimize_cfg and dead code
9962         removal stabilizes; use delete_trivially_dead_insns.
9964         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
9966 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
9968         * cppmain.c (setup_callbacks): Disable #pragma and #ident
9969         callbacks when processing assembly language.
9971 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9973         * pa.h (ASM_FILE_END): Define.
9974         * som.h (ASM_FILE_END): Delete.
9976         * pa.c (function_arg): Don't pass floats in general registers in
9977         indirect calls if TARGET_ELF32.
9979 2002-03-05  Richard Henderson  <rth@redhat.com>
9981         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
9983 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
9985         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
9987 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
9989         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
9990         -r command line.  Don't hide any symbols if not building
9991         shared libgcc.
9993 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
9995         * cfg.c (dump_flow_info): Warn about profile mismatches.
9996         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
9997         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
9999 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10001         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
10002         wide volatile memory by parts.
10004 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
10006         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
10007         is NULL.
10009 2002-03-05  Richard Henderson  <rth@redhat.com>
10011         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
10013 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10015         * toplev.c (documented_lang_options): Document more
10016         language-specific options.
10017         * doc/invoke.texi (Warning Options): Correct documentation for
10018         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
10019         * c-decl.c (c_decode_option): Use a table to handle warning options.
10021 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
10023         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
10024         parameter to mmix_encode_section_info.
10025         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
10026         relocatably.  Always produce ELF, not mmo if linking relocatably.
10027         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
10028         first is non-zero, don't add symbol prefix.
10029         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
10030         prototype accordingly.
10032 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
10034         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
10036 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
10038         * configure.in: Increase required makeinfo version to 4.1.
10039         * configure: Regenerate.
10041 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
10043         * .cvsignore: Remove *.info* and genrtl*; these files are generated
10044         elsewhere now.
10046 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
10048         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
10049         * doc/invoke.texi: Fix @math uses.
10051 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
10053         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
10054         removal
10056 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
10058         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
10059         (powerpc-*-eabisimaltivec*): Same.
10061         * config/rs6000/t-ppcendian: New.
10063 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
10065         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
10066         nonimmediate_src_operand and nonimmediate_lsrc_operand to
10067         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
10069 2002-03-03  Richard Henderson  <rth@redhat.com>
10071         * toplev.c (rest_of_decl_compilation): Revert last two changes.
10073 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
10075         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
10076         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
10077         tree.c, config/m68k/m68k.c:
10078         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
10079         REAL_ARITHMETIC blocks unconditional.  Delete some further
10080         #ifdef blocks predicated on REAL_ARITHMETIC.
10081         * flags.h, toplev.c: Delete remaining references to
10082         flag_pretend_float.
10084         * doc/invoke.texi: Remove documentation of -fpretend-float.
10085         * doc/tm.texi: Describe the various REAL_* macros as provided by
10086         real.h, not by the target configuration files.
10088         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
10089         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
10090         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
10091         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
10092         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
10093         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
10094         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
10095         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
10096         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
10097         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
10098         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
10099         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
10100         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
10101         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
10102         config/xtensa/xtensa.h:
10103         Do not define, undefine, or mention in comments any of
10104         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
10105         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
10106         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
10107         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
10108         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
10109         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
10110         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
10111         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
10112         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
10114 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10116         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
10117         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
10118         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
10119         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
10120         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
10121         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
10122         Delete.
10123         * defaults.h (BITS_PER_WORD): Define.
10124         * doc/tm.texi (BITS_PER_WORD): Document default value.
10126         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
10127         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
10128         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
10130 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10132         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
10133         lieu of explicit sizeof/sizeof.
10134         * i386.c (override_options, ix86_init_mmx_sse_builtins,
10135         ix86_expand_builtin): Likewise.
10136         * mips.c (mips_add_gc_roots): Likewise.
10137         * mmix.c (mmix_output_condition): Likewise.
10138         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
10139         altivec_init_builtins): Likewise.
10140         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
10141         * cppexp.c (Nsuff, parse_number): Likewise.
10142         * cppinit.c (builtin_array_end): Likewise.
10143         * gcc.c (n_default_compilers, process_command): Likewise.
10144         * genpreds.c (output_predicate_decls): Likewise.
10145         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
10146         * lcm.c (N_ENTITIES): Likewise.
10147         * stor-layout.c (set_sizetype): Likewise.
10149 2002-03-03  Richard Henderson  <rth@redhat.com>
10151         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
10152         for types or labels.
10154 2002-03-03  Richard Henderson  <rth@redhat.com>
10156         * c-decl.c (start_decl): Initialized variables are not common.
10158 2002-03-02  Per Bothner  <per@bothner.com>
10160         * gcc.c (option_map):  Suport new --bootclasspath option.
10161         --CLASSPATH is now just an alias for --classpath.
10163 2002-03-02  Richard Henderson  <rth@redhat.com>
10165         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
10166         load if "internal" visibility.
10167         * doc/extend.texi: Document visibility meanings.
10169 2002-03-02  Richard Henderson  <rth@redhat.com>
10171         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
10172         to functions as well.
10174 2002-03-02  Richard Henderson  <rth@redhat.com>
10176         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
10177         (handle_visibility_attribute): Don't call assemble_visibility.
10178         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
10179         without asmspec.  Invoke assemble_alias when needed.
10180         * varasm.c (maybe_assemble_visibility): New.
10181         (assemble_start_function, assemble_variable, assemble_alias): Use it.
10183 2002-03-02  Richard Henderson  <rth@redhat.com>
10185         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
10186         invoke ENCODE_SECTION_INFO with first call flag.
10188         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
10189         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
10190         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
10191         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
10192         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
10193         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
10194         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
10195         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
10196         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
10197         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
10198         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
10199         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
10200         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
10201         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
10202         config/mcore/mcore-protos.h, config/mcore/mcore.c,
10203         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
10204         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
10205         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
10206         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
10207         config/sh/sh.h, config/sparc/sparc.h,
10208         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
10209         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
10210         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
10211         FIRST argument.  As needed, examine it and do nothing.
10213         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
10214         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
10215         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
10217         * config/arm/t-pe (pe.o): Add dependencies.
10219 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10221         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
10222         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
10223         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
10224         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
10225         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
10226         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
10227         * defaults.h (BITS_PER_UNIT): Define.
10228         * doc/tm.texi (BITS_PER_UNIT): Document default value.
10230 2002-03-02  Kazu Hirata  <kazu@hxi.com>
10232         * config/h8300/h8300-protos.h: Add a prototype for
10233         compute_a_shift_length.
10234         * config/h8300/h8300.c (h8300_asm_insn_count): New.
10235         (compute_a_shift_length): Likewise.
10236         (h8300_adjust_insn_length): Do not adjust insn length of shift
10237         insns.
10238         * config/h8300/h8300.md (anonymous shift patterns): Use
10239         compute_a_shift_length.
10241 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10243         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
10244         trunc_int_for_mode.
10246         * emit-rtl.c (offset_address): Call update_temp_slot_address.
10248 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10250         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
10251         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
10252         * flags.h (flag_zero_initialized_in_bss): Declare.
10253         * toplev.c (flag_zero_initialized_in_bss): New flag.
10254         (lang_independent_options): Add flag_zero_initialized_in_bss.
10255         * tree.c (initializer_zerop): New function.
10256         * tree.h (initializer_zerop): Declare.
10257         * varasm.c (assemble_variable): If we can emit bss, put zero
10258         initializers in the bss section.
10260 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
10262         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
10263         like more than one symbol per .weak directive.
10265 2002-03-01  Richard Henderson  <rth@redhat.com>
10267         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
10268         adjust argument_pointer by pretend_args_size.
10269         (ia64_va_start): Adjust va_start address by -pretend_args_size.
10271 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10273         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
10275 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
10277         * toplev.c (rest_of_compilation): Delete dead jumptables before
10278         loop.
10279         * flow.c (delete_dead_jumptables): Make global.
10280         * rtl.h (delete_dead_jumptables): Declare.
10282 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
10284         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
10285         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
10286         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
10288 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10290         * config/h8300/h8300-protos.h: Fix formatting.
10291         * config/h8300/h8300.c: Likewise.
10292         * config/h8300/h8300.h: Likewise.
10294 2002-03-01  Kazu Hirata  <kazu@hxi.com>
10296         * config/h8300/h8300.c (print_operand): Support 16-bit
10297         constant addresses.
10298         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
10300 2002-02-28  Richard Henderson  <rth@redhat.com>
10302         * expmed.c (store_bit_field): Prevent generation of CONCATs;
10303         pun complex values as integers; use gen_lowpart instead of
10304         gen_rtx_SUBREG.
10305         (extract_bit_field): Likewise.
10307 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
10308             David Edelsohn  <edelsohn@gnu.org>
10310         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
10311         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
10312         (SUPPORTS_WEAK): Likewise.
10313         * output.h (add_weak): Add tree param.
10314         * varasm.c (add_weak): Likewise.  Save decl.
10315         (struct weak_syms): Add decl field.
10316         (mark_weak_decls): New function.
10317         (init_varasm_once): ggc_add_root mark_weak_decls.
10318         (assemble_start_function): Use ASM_WEAKEN_DECL.
10319         (assemble_variable): Likewise.
10320         (assemble_alias): Likewise.
10321         (declare_weak): Pass decl to add_weak.
10322         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
10323         (remove_from_pending_weak_list): Declare and define for
10324         ASM_WEAKEN_DECL.
10325         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
10326         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
10327         * defaults.h (SUPPORTS_WEAK): Likewise.
10328         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10329         .weak for code sym.  Do emit .size for descriptor sym.
10330         (ASM_DECLARE_FUNCTION_SIZE): Define.
10331         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
10332         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
10333         .lglobl unless TARGET_XCOFF.  Formatting fixes.
10334         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
10335         .weak for code sym.
10336         (HANDLE_PRAGMA_WEAK): Remove.
10337         (ASM_WEAKEN_LABEL): Remove.
10338         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
10340 2002-03-01  Jason Merrill  <jason@redhat.com>
10342         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
10343         (TARGET_EXPR_CLEANUP): New macro.
10345 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
10347         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
10348         to take ptr_extend into account as third type of extension.
10349         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
10350         fields used by SUBREG_PROMOTED_UNSIGNED_P.
10351         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
10352         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
10353         * calls.c (precompute_arguments): Use new macro.
10354         (expand_call): Ditto.
10355         * combine.c (nonzero_bits): Ditto.
10356         (record_promoted_value): Ditto.
10357         * expr.c (store_expr): Ditto.
10358         (expand_expr): Ditto.
10359         * function.c (assign_parms): Ditto.
10361 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
10363         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
10364         override -shared and -shared-libgcc.
10366 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
10368         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
10369         of "ultrasparc".
10370         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
10371         to be broken.
10373 2002-02-28  Richard Henderson  <rth@redhat.com>
10375         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
10376         4 cycle latency from MM producers.
10377         (ia64_internal_sched_reorder): Likewise with pipeline flush.
10379 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
10381         * mklibgcc.in: Don't use GNU make extension.
10383 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10385         * c-parse.in (STATIC): New terminal.
10386         (scspec): New non-terminal.  Update productions accordingly.
10387         (program): Remove bogus ifc / end ifc.
10388         (array_declarator): Simplify production using STATIC.
10390 2002-02-28  Jim Meyering  <meyering@lucent.com>
10392         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
10393         \a still means TARGET_BELL.
10395 2002-02-28  Richard Henderson  <rth@redhat.com>
10397         * haifa-sched.c (sched_emit_insn): New.
10398         (schedule_block): Use last_scheduled_insn to track last insn.
10399         * sched-int.h (sched_emit_insn): Prototype.
10400         * config/ia64/ia64.c (last_issued): Remove.
10401         (ia64_variable_issue): Don't set it.
10402         (nop_cycles_until): Use sched_emit_insn.
10404 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
10406         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
10407         extended constants.
10409 2002-02-28  Kazu Hirata  <kazu@hxi.com>
10411         * config/h8300/h8300.c: Fix formatting.
10412         * config/h8300/h8300.h: Likewise.
10414 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
10416         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
10417         which may overwrite the high byte of the frame pointer.
10419 2002-02-28  Bo Thorsen  <bo@suse.de>
10421         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
10422         (STARTFILE_SPEC): Add 64 bit files.
10423         (ENDFILE_SPEC): Likewise.
10425 2002-02-28  Jason Merrill  <jason@redhat.com>
10427         * c-decl.c (finish_function): Only warn about missing return
10428         statement with -Wreturn-type.
10430 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
10432         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
10434         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
10435         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
10437 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
10439         * basic-block.h (BB_REACHABLE): Renumber.
10440         (BB_DIRTY, BB_NEW): New flags.
10441         (clear_bb_flags): Declare.
10442         (update_life_info_in_dirty_blocks): Declare.
10443         * cfg.c (clear_bb_flags): New function.
10444         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
10445         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
10446         reorder_insns, emit_insn_after): Mark block as dirty.
10447         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
10448         (update_life_info_in_dirty_blocks): New function.
10449         * recog.c (apply_change_group): Dirtify block.
10451         * cse.c (cse_insn): Reorder emitting of jump insn to keep
10452         cfg consistent.
10453         * gcse.c (delete_null_pointer_checks): Likewise.
10455         * toplev.c (dump_file_index): Move cse2 after bp,
10456         add DFI_null
10457         (dump_file_info): Similary.
10458         (rest_of_compilation): Avoid most of CFG rebuilds;
10459         do first if converision after null pointer checks, do cse2
10460         after branch prediction; avoid full liveness rebuild after
10461         initializing subregs.
10462         * invoke.texi (-d options): Document -du, renumber.
10464         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
10465         (notice_new_block): Do not set BB_UPDATE_LIFE.
10466         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
10467          merge_blocks_move_successor_nojumps, merge_blocks,
10468          try_crossjump_to_edge): Likewise.
10469         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
10470         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
10471         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
10472         (merge_of_block): Do not use life_data_ok.
10473         (find_if_case_1): Do not use SET_UPDATE_LIFE.
10474         (if_convert): Use BB_DIRTY mechanizm to update life.
10475         * lcm.c (optimize_mode_switching): Update
10476         update_life_info_in_dirty_blocks
10478 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
10480         * Makefile.in (integrate.o): Update.
10481         * c-decl.c (copy_lang_decl): Rename.
10482         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10483         * integrate.c: Include langhooks.h.
10484         (copy_decl_for_inlining): Update to use langhook.
10485         * langhooks-def.h (lhd_do_nothing_t,
10486         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
10487         (LANG_HOOKS_INITIALIZER): Update.
10488         * langhooks.c (lhd_do_nothing_t): New.
10489         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
10490         * tree.h (copy_lang_decl): Remove.
10491 objc:
10492         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
10494 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
10496         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
10497         POST_DEC, and POST_MODIFY.
10499 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10501         * c-typeck.c (digest_init): Remove unused parameter; all
10502         callers changed.
10504 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
10506         * expmed.c (expand_shift): Correctly test for low part of a
10507         subreg.
10509 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
10511         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
10512         insn UIDs with insn addresses.
10514 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10516         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
10517         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
10518         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
10519         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
10520         gcc.c, toplev.c: Delete code implementing -traditional mode.
10522         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
10523         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
10524         Document removal of -traditional mode for compilation, and
10525         remove documentation only relevant to that mode.
10527         * config/nextstep.h, config/ptx4.h, config/svr4.h,
10528         config/convex/convex.h, config/d30v/d30v.h,
10529         config/i386/dgux.h, config/i386/osf1elf.h,
10530         config/i386/osfelf.h, config/i386/osfrose.h,
10531         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
10532         config/m68k/hp310.h, config/m88k/dgux.h,
10533         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
10534         config/m88k/m88k.h, config/m88k/openbsd.h,
10535         config/mips/abi64.h, config/mips/osfrose.h,
10536         config/mips/svr4-5.h, config/mips/svr4-t.h,
10537         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
10538         config/stormy16/stormy16.h: Remove all references to
10539         -traditional from target specs.  Delete all mention of the
10540         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
10541         delete a couple of commented-out definitions of
10542         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
10543         to -traditional.
10545         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
10546         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
10548 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
10550         * mklibgcc.in: Don't use \n in a line subject to
10551         interpretation by echo.
10553 2002-02-27  Graham Stott  <grahams@redhat.com>
10555         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
10556         Constify NAME.
10558         * loop.c (prescan_loop): Handle PARALLEL.
10560         * unroll.c (loop_iterations): Return 0 if the add_val for
10561         a BIV is REG.
10563         * final.c (output_operand_lossage): Constify PFX_STR.
10565         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
10567 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
10569         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
10570         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
10572 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
10574         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
10576 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
10578         * cpplex.c (_cpp_lex_token): Handle directives in macro
10579         arguments.
10580         * cpplib.c (_cpp_handle_directive): Save and restore state
10581         if parsing macro args when entering a directive.
10582         * cppmacro.c (collect_args): No need to handle directives
10583         in macro arguments.
10584         (enter_macro_context, replace_args): Use the original macro
10585         definition in case it was redefined whilst collecting arguments.
10586 doc:
10587         * cpp.texi: Update.
10589 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
10591         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
10592         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
10593         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
10594         method on AIX.
10595         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
10596         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
10597         (load_toc_v4_PIC_2): Same.
10599 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
10601         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
10603 2002-02-26  Richard Henderson  <rth@redhat.com>
10605         * config/alpha/alpha.md (ashldi_se): Re-enable.
10607 2002-02-26  Richard Henderson  <rth@redhat.com>
10609         * config/alpha/alpha.c (alpha_encode_section_info): Examine
10610         MODULE_LOCAL_P; improve commentary.
10612 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
10614         * doc/cpp.texi: Clarify documentation of relationship between
10615         #line and #include.
10617 2002-02-26  Kazu Hirata  <kazu@hxi.com>
10619         * config/h8300/h8300-protos.h: Update the prototype for
10620         compute_logical_op_length.  Add the prototype for
10621         compute_logical_op_cc.
10622         * config/h8300/h8300.c (compute_logical_op_length): Figure out
10623         code from operands.
10624         (compute_logical_op_cc): New.
10625         * config/h8300/h8300.md: Combine all the logical op patterns
10626         in HImode and SImode.  Use compute_logical_op_cc.
10628 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
10630         * config/i386/i386.c (print_operand): Don't append ATT-style
10631         length suffixs to x87 opcodes when in Intel mode.
10633 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
10635         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
10636         (init_emit_once): Update calls.
10637         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
10638         (init_syntax_once): Prototype.
10640 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10642         * pa-linux.h (LIB_SPEC): Update definition.
10643         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10645 2002-02-26  Richard Henderson  <rth@redhat.com>
10647         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
10648         if we emitted a stop bit.
10650 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
10652         * configure.in (libgcc_visibility): Substitute.
10653         * configure: Rebuilt.
10654         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
10655         defined symbols .hidden.
10657 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
10659         * attribs.c (c_common_attribute_table): Add visibility.
10660         (handle_visibility_attribute): New function.
10661         * varasm.c (assemble_visibility): New function.
10662         * output.h (assemble_visibility): Add prototype.
10663         * tree.h (MODULE_LOCAL_P): Define.
10664         * crtstuff.c (__dso_handle): Use visibility attribute.
10665         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
10666         for MODULE_LOCAL_P symbols too.
10667         * config/ia64/ia64.c (ia64_encode_section_info): Handle
10668         MODULE_LOCAL_P symbols the same way as local symbols.
10669         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
10670         into .sdata/.sbss by the user.
10671         * doc/extend.texi (Function Attributes): Document visibility
10672         attribute.
10674 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
10676         PR debug/5770
10677         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
10678         STRING_CST initializer spanning the whole variable without
10679         embedded zeros.
10680         If expand_expr returned MEM, don't use it.
10682 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
10684         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
10685         generate a die for the lexical block.
10687 2002-02-26  Kazu Hirata  <kazu@hxi.com>
10689         * config/h8300/h8300-protos.h: Add a prototype for
10690         compute_logical_op_length.
10691         * config/h8300/h8300.c (compute_logical_op_length): New.
10692         * config/h8300/h8300.md (anonymous logical patterns): Use
10693         compute_logical_op_length for length.
10695 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
10697         * dwarf2out.c (modified_type_die): Do not call type_main_variant
10698         for vectors.
10699         (gen_type_die): Same.
10701         * attribs.c (handle_vector_size_attribute): Set debug information.
10703 2002-02-26  Daniel Egger  <degger@fhm.edu>
10705         * config/rs6000/rs6000.md: Swap define_insn attributes to
10706         fix incorrect generation of merge high instructions instead
10707         of merge low.
10709 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
10711         * c-typeck.c (really_start_incremental_init): Use
10712         bitsize_zero_node for vectors.
10714 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
10716         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
10717         ("*set_vrsave_internal"): Same.
10719 2002-02-25  Richard Henderson  <rth@redhat.com>
10721         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
10722         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
10724 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
10726         PR target/5755
10727         * config/i386/i386.c (ix86_return_pops_args): Only pop
10728         fake structure return argument if it was passed on the stack.
10730 2002-02-25  Jason Merrill  <jason@redhat.com>
10732         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
10733         RESULT_DECL.
10735 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
10737         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
10738         link with shared_name only.
10739         * doc/invoke.texi (Link Options): Document new behavior.
10741 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
10743         * c-typeck.c (push_init_level): Handle vectors.
10745 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
10747         * config/sparc/sparc.c (const64_high_operand): Zero-extend
10748         operands of SPARC_SETHI_P.
10749         (input_operand): Likewise.
10750         (sparc_emit_set_const32): Likewise.
10751         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
10752         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
10753         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
10754         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
10755         (movdi_insn_sp64_vis): Likewise.
10756         (movdi split, movdf split): Use SETHI32.
10757         * doc/md.texi: Document SPARC constraints L, M and N.
10759 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
10761         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
10762         ("*set_vrsave_internal"): use mfspr for Darwin.
10764         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
10765         gen_get_vrsave_internal.
10767 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10769         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
10771 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
10773         * cpplex.c (cpp_interpret_charconst): Get signedness or
10774         otherwise of wide character constants correct.
10775         * cppexp.c (lex): Get signedness of wide charconsts correct.
10777 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10779         * optabs.c (widen_operand): Only call convert_modes for
10780         promoted SUBREG if signedness matches.
10781         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
10783 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10785         * cpplib.c (glue_header_name): Use local buffer to build up
10786         header name.
10788 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10790         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
10792 2002-02-23  Kazu Hirata  <kazu@hxi.com>
10794         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
10795         H8/300[HS] separately.
10796         * config/h8300/h8300.md: Remove the early clobber constraint
10797         from bit field patterns.
10799 2002-02-23  Kazu Hirata  <kazu@hxi.com>
10801         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
10802         register_operand.
10803         (mulhisi3): Likewise.
10804         (umulqisi3): Likewise.
10805         (umulhisi3): Likewise.
10807 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
10809         * cppinit.c (output_deps): Correct test for stdout output.
10810         (init_dependency_output): Cure warning.
10812 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10814         * expr.c (store_expr): When converting expression to promoted
10815         equivalent type, allow using SUBREG_REG of TARGET as the target
10816         of the expansion of EXP.
10817         * loop.c (basic_induction_var, case SUBREG): Always look inside.
10818         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
10819         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
10820         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
10821         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
10823 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
10825         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
10826         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
10827         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
10829 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
10831         PR optimization/5747
10832         * loop.c (scan_loop): Update reg info if move_movables created new
10833         pseudos.
10835 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
10837         * gcc.c (init_gcc_spec): Revert last change.
10839 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
10841         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
10842         gpc_reg_operand constraint.
10844 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
10846         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
10847         Simplify comparison of `low'.
10848         (add_operand): Fix formatting.
10849         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
10850         (mask_operand): Disallow mask to wrap in 64-bit mode.
10851         (rs6000_stack_info): Remove redundant test setting push_p.
10852         (output_toc): Fix formatting.
10853         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
10854         cc_reg_not_cr0_operand constraint.
10855         (booldi3, boolcdi3 splitters): Same.
10857 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
10859         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
10861 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
10863         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
10864         gcc invoked with -shared-libgcc.
10866 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
10868         PR c++/5748
10869         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
10870         decl if any of elements was TREE_USED.
10872 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
10874         * config/sparc/sol2.h: Don't include sys/mman.h.
10875         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
10876         (arith_4096_operand): Don't throw high bits away.
10877         (const64_operand): Take sign extension of CONST_INTs into account.
10878         (const64_high_operand, sparc_emit_set_const32): Likewise.
10879         (GEN_HIGHINT64): Likewise.
10880         (sparc_emit_set_const64_quick1): Likewise.
10881         (const64_is_2insns): Likewise.
10882         (print_operand): Use trunc_int_for_mode for sign extension.
10883         * config/sparc/sparc.h (SMALL_INT32): Likewise.
10884         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
10885         chars.  Assume CONST_INT is already properly sign-extended.
10886         (movdi split): Sign-extend each SImode part.
10887         (andsi3 split): Don't mask high bits off, so that result
10888         remains properly sign-extend.
10889         (iorsi3 split): Likewise.
10890         (xorsi3 split): Likewise.
10892 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
10894         * fold-const.c (fold): Fix typo in comments.
10896 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
10898         * Makefile.in (langhooks.o): Update dependencies.
10900 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
10902         * langhooks.c: Include flags.h.
10904 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
10906         * testsuite/gcc.dg/attr-alwaysinline.c: New.
10908         * c-common.c (c_common_post_options): Set inline trees by
10909         default.
10911         * doc/extend.texi (Function Attributes): Document always_inline
10912         attribute.
10913         Update documentation about inlining when not optimizing.
10915         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
10917         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
10918         unless DECL_ALWAYS_INLINE.
10920         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
10921         unless DECL_ALWAYS_INLINE.
10922         (c_disregard_inline_limits): Disregard if always_inline set.
10924         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
10925         Disregard if always_inline set.
10926         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
10927         unless DECL_ALWAYS_INLINE.
10929         * attribs.c (handle_always_inline_attribute): New.
10930         (c_common_attribute_table): Add always_inline.
10932         * config/rs6000/altivec.h: Add prototypes for builtins
10933         requiring the always_inline attribute.
10935 2002-02-21  Eric Christopher  <echristo@redhat.com>
10937         * expmed.c (store_bit_field): Try to simplify the subreg
10938         before generating a new one when when the mode size of
10939         value is less than maxmode.
10941 2002-02-21  Richard Henderson  <rth@redhat.com>
10943         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
10944         than gen_rtx_PLUS to form the sum.
10945         * explow.c (force_reg): Rearrange to not allocate new pseudo
10946         when force_operand returns a register.
10947         * expr.c (expand_assignment): Allow offset_rtx expansion to
10948         return a sum.  Do not force addresses into registers.
10949         (expand_expr): Likewise.
10950         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
10951         to canonicalize arithmetic that didn't simpify.
10952         (simplify_plus_minus): New argument force; update
10953         all callers.  Don't split CONST unless we can do something with it,
10954         and wouldn't lose the constness of the operands.
10956         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
10957         that we generated earlier.
10959 2002-02-21  Tom Tromey  <tromey@redhat.com>
10961         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
10962         (output_line_info): Use constant `1', with a long explanatory
10963         comment.
10964         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
10966 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
10968         * jump.c (redirect_jump): If old label has no UID, don't try to
10969         delete it.
10971 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
10973         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
10974         If input is constant, do shifts at compile time.
10976 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
10978         * doc/extend.texi: Fix some more overfull hboxes.
10980 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
10982         PR optimization/4994
10983         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
10984         register moves.
10986 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
10988         PR c++/4574
10989         * expr.h (expand_and): Add mode argument.
10990         * expmed.c (expand_and): Add mode argument.
10991         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
10992         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
10993         * except.c (expand_builtin_extract_return_addr): Likewise.
10994         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
10995         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
10996         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
10997         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
10998         * config/c4x/c4x.md: Use GEN_INT (x) instead of
10999         gen_rtx (CONST_INT, VOIDmode, x).
11001 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
11003         PR c/4697:
11004         * stmt.c (warn_if_unused_value): Move side effects test once more.
11006 2002-02-20  Torbjorn Granlund  <tege@swox.com>
11008         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
11009         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
11011 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
11013         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
11014         SUBREG or ZERO_EXTEND.
11016 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
11018         * sh.h (current_function_anonymous_args): Remove.
11019         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
11020         of current_function_varargs and current_function_stdarg is set.
11021         * sh.c (sh_expand_prologue): Check current_function_varargs /
11022         current_function_stdarg / TARGET_SH5 instead of
11023         current_function_anonymous_args.
11025         * sh64.h (TARGET_VERSION): Define.
11027 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
11029         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
11030         VRSAVE_REGNO on TARGET_ALTIVEC.
11032 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
11034         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
11035         bits of SImode const_int.
11036         (includes_rshift_p): Likewise.
11037         (print_operand): Call mask_operand and mask64_operand with correct
11038         mode.
11039         (rs6000_output_function_epilogue): Pad traceback table to word.
11040         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
11041         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
11042         mask64_operand with correct mode.
11043         (FUNCTION_ARG_REGNO_P): Correct parentheses.
11045 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11047         PR debug/4461
11048         * varasm.c (get_pool_constant_mark): New.
11049         * rtl.h (get_pool_constant_mark): Add prototype.
11050         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
11051         be represented if it has not been output.
11053 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11055         * combine.c (do_SUBST): Sanity check substitutions of
11056         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
11057         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
11058         CONST_INT into its operand.
11059         (known_cond): Likewise, for ZERO_EXTEND.
11060         * simplify-rtx.c (simplify_unary_operation): Fix condition to
11061         allow for simplification of wide modes.  Reject CONST_INTs in
11062         ZERO_EXTEND when their actual mode is not given.
11064 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
11066         * c-decl.c (pushdecl): If no global declaration is found for an
11067         extern declaration in block scope, try a limbo one.
11069 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11071         PR c++/4401
11072         * c-common.c (pointer_int_sum): Moved from...
11073         * c-typeck.c (pointer_int_sum): ...here.
11074         * c-common.h (pointer_int_sum): Add prototype.
11076 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
11078         PR c++/5713
11079         * c-decl.c (duplicate_decls): Return 0 if issued error about
11080         redeclaration.
11082 2002-02-20  Roger Sayle  <roger@eyesopen.com>
11083             Jakub Jelinek  <jakub@redhat.com>
11085         PR c/4389
11086         * tree.c (host_integerp): Ensure that the constant integer is
11087         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
11088         when pos is zero or non-zero respectively.  Clarify comment.
11089         * c-format.c (check_format_info_recurse): Fix host_integerp
11090         usage; the pos argument should be zero when assigning to a
11091         signed HOST_WIDE_INT.
11093 2002-02-20  Richard Henderson  <rth@redhat.com>
11095         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
11096         of the operand, rather than assuming TImode.
11097         (ix86_expand_binop_builtin): Cope with commutative patterns
11098         using nonimmediate_operand for both operands.
11099         (ix86_expand_timode_binop_builtin): Likewise.
11100         (ix86_expand_store_builtin): Validate operand 1.
11101         (ix86_expand_unop1_builtin): Likewise.
11103 2002-02-20  Philip Blundell  <philb@gnu.org>
11105         PR 5705
11106         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
11108 2002-02-20  Richard Henderson  <rth@redhat.com>
11110         PR c/5615
11111         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
11113 2002-02-20  Tom Tromey  <tromey@redhat.com>
11115         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11116         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11117         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11118         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
11119         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
11120         unconditionally.
11122 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
11124         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
11125           for (const_int 0) in X not just INTVAL.
11127 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
11129         * doc/extend.texi: Avoid or reduce overfull hboxes.
11131 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
11133         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
11134         operations if the field does not start at a mode boundary.
11136 2001-02-20      Joel Sherrill <joel@OARcorp.com>
11138         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
11139         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
11140         Also done for -Acpu and -Amachine.
11142 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
11144         * cppinit.c (init_dependency_output): Take deps output file
11145         from -o if none given with -MF.  Suppress normal output.
11146         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
11147         * doc/cpp.texi, doc/invoke.texi: Update.
11149 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11151         * toplev.c (output_quoted_string): Write unprintable
11152         characters with octal escapes.
11154 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11156         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
11157         really_call_used[VRSAVE_REGNO] if not Altivec.
11159 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
11161         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
11162         MODE_MASK.
11163         (constant_pool_expr_1): Fix formatting.
11164         (rs6000_legitimize_reload_address): Likewise.
11166 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11168         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
11169         now that we have one.
11171 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
11173         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
11174         end of first block of bitfields (which was only seven bits);
11175         rename dummy to unused_1; remove comment which is no longer true.
11177 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11179         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
11181 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11183         PR 5399
11184         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
11185         if generating PIC.
11187         PR 5054
11188         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
11189         arm_is_longcall_p rather than inspecting call-type cookie
11190         directly.
11191         (call_value_insn) [TARGET_THUMB]: Likewise.
11193 2002-02-19  Graham Stott  <grahams@redhat.com>
11195         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
11197 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
11199         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
11200         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
11201         (FP_SAVE_INLINE): Delete.
11203         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
11204         * config/rs6000/eabi.asm: Remove ABI save restore routines.
11205         * config/rs6000/t-ppccomm: Build crtsavres.o.
11206         * config/rs6000/crtsavres.asm: New file.
11208 2002-02-19  Philip Blundell  <philb@gnu.org>
11210         * config/arm/arm.c (use_return_insn): Don't reject interrupt
11211         functions.
11212         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
11213         (output_return_instruction): Allow interrupt functions to return with
11214         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
11215         (arm_expand_prologue): Subtract 4 before stacking LR in an
11216         interrupt function.
11218 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
11220         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
11221         decl, not just FUNCTION_DECL.
11222         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
11223         (arm_assemble_integer): Likewise.
11224         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
11225         marked local.
11227 2002-02-19  matthew green  <mrg@eterna.com.au>
11229         * config.gcc (sparc-*-netbsdelf*): Enable target.
11230         (sparc64-*-netbsd*): New target.
11231         * config/sparc/netbsd-elf.h: New file.
11232         * config/sparc/t-netbsd64: New file.
11234 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
11236         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
11238 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
11240         * doc/invoke.texi: explicitly list the style guidelines that
11241         -Weffc++ checks for.
11243 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
11245         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
11247 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
11249         PR other/5718
11250         * gcc.c (cpp_unique_options): Treat -o as indicating object file
11251         only if not -E.  If -E, pass -o through to the preprocessor.
11253 2002-02-19  Kazu Hirata  <kazu@hxi.com>
11255         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
11256         register number with an appropriate macro.
11258 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
11260         * doc/rtl.texi (Constants): Close @code tag.
11262 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
11264         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
11265         ("mmx_uavgv4hi3"): Same.
11266         ("pmulhrwv4hi3"): Same.
11268         * tree-inline.c (walk_tree): Handle vectors.
11270         * c-common.c (constant_expression_warning): Handle vectors.
11271         (overflow_warning): Same.
11273         * sched-deps.c (sched_analyze_2): Handle vectors.
11275         * rtlanal.c (rtx_unstable_p): Handle vectors.
11276         (rtx_varies_p): Same.
11277         (count_occurrences): Same.
11278         (regs_set_between_p): Same.
11279         (modified_between_p): Same.
11280         (modified_in_p): Same.
11281         (volatile_insn_p): Same.
11282         (volatile_refs_p): Same.
11283         (side_effects_p): Same.
11284         (may_trap_p): Same.
11285         (inequality_comparisons_p): Same.
11286         (replace_regs): Same.
11287         (computed_jump_p_1): Same.
11289         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
11290         argument.
11291         (inner_mode_array): New.
11292         (copy_rtx): Handle vectors.
11293         (copy_most_rtx): Same.
11294         (rtx_equal_p): Same.
11295         (get_mode_alignment): Adjust for vectors.
11297         * resource.c (mark_referenced_resources): Handle vectors.
11298         (mark_set_resources): Same.
11300         * reload1.c (eliminate_regs): Handle vectors.
11301         (elimination_effects): Same.
11302         (scan_paradoxical_subregs): Same.
11304         * reload.c (subst_reg_equivs): Handle vectors.
11306         * regrename.c (scan_rtx): Handle vectors.
11308         * regclass.c (reg_scan_mark_refs): Handle vectors.
11310         * recog.c (find_single_use_1): Handle vectors.
11312         * local-alloc.c (equiv_init_varies_p): Handle vectors.
11313         (contains_replace_regs): Same.
11314         (memref_referenced_p): Same.
11316         * integrate.c (copy_rtx_and_substitute): Handle vectors.
11317         (subst_constants): Same.
11319         * genattrtab.c (attr_copy_rtx): Handle vectors.
11320         (encode_units_mask): Same.
11321         (clear_struct_flag): Same.
11322         (count_sub_rtxs): Same.
11324         * gcse.c (want_to_gcse_p): Handle vectors.
11325         (oprs_unchanged_p): Same.
11326         (hash_expr_1): Same.
11327         (oprs_not_set_p): Same.
11328         (expr_killed_p): Same.
11329         (compute_transp): Same.
11330         (store_ops_ok): Same.
11332         * function.c (purge_addressof_1): Do not allow paradoxical subregs
11333         of vectors.
11334         (fixup_var_refs_1): Same.
11335         (instantiate_virtual_regs_1): Same.
11337         * fold-const.c (operand_equal_p): Handle vectors.
11338         (fold): Same.
11339         (rtl_expr_nonnegative_p): Same.
11341         * flow.c (mark_used_regs): Handle vectors.
11343         * df.c (df_uses_record): Handle vectors.
11345         * cselib.c (cselib_subst_to_values): Handle vectors.
11346         (cselib_mem_conflict_p): Same.
11347         (hash_rtx): Same.
11349         * cse.c (canon_reg): Handle vectors.
11350         (fold_rt): Same.
11351         (cse_process_notes): Same.
11352         (count_reg_usage): Same.
11353         (canon_hash): Same.
11355         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
11357         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
11359         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
11360         (gen_rtx): Handle CONST_VECTOR.
11361         (gen_const_vector_0): New.
11362         (copy_rtx_if_shared): CONST_VECTORs can be shared.
11363         (reset_used_flags): Same.
11364         (copy_insn_1): Same.
11365         (initializer_constant_valid_p): Handle VECTOR_CST.
11367         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
11369         * doc/rtl.texi (Constants): Document const_vector.
11370         (CONST0_RTX): Update for vectors.
11371         (RTL sharing): Same.
11373         * print-tree.c (print_node): Add case for VECTOR_CST.
11375         * tree.h (TREE_VECTOR_CST_ELTS): New.
11376         (struct tree_vector): New.
11377         (union tree_node): Add vector node.
11378         (build_vector): Add prototype.
11380         * tree.def (VECTOR_CST): New.
11382         * tree.c (build_vector): New.
11384         * expmed.c (make_tree): Handle CONST_VECTOR.
11386         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
11387         (CONST_VECTOR_ELT): New.
11388         (CONST_VECTOR_NUNITS): New.
11390         * machmode.h (GET_MODE_INNER): New.
11391         (DEF_MACHMODE): Accept 8th arg.
11393         * machmode.def: Add 8th argument for vector inner mode.
11394         Add inner vector modes for vectors.
11396         * rtl.def (VEC_CONST): Remove.
11397         (CONST_VECTOR): New.
11399         * expr.c (clear_storage): Allow vectors.
11400         (is_zeros_p): Handle VECTOR_CST.
11402         * varasm.c (output_constant_pool): Handle vectors.
11403         (rtx_const): Add veclo and vechi fields.
11404         (kind): Add RTX_VECTOR.
11405         (decode_rtx_const): Add case for vector.
11407         * config/rs6000/rs6000-protos.h: Add zero_constant.
11409         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
11410         constants.  Force easy vector constants into memory.
11411         (easy_vector_constant): New.
11412         (emit_easy_vector_constant): New.
11413         (rs6000_legitimize_reload_address): Do not generate bad reloads on
11414         darwin.
11416         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
11417         instruction does.
11418         ("altivec_lvxl"): Same.
11419         (altivec_lvebx): Same.
11420         (altivec_lvehx): Same.
11421         (altivec_lvewx): Same.
11422         ("*movv4si_const0"): New.
11423         ("*movv4sf_const0"): New.
11424         ("*movv8hi_const0"): New.
11425         ("*movv16qi_const0"): New.
11427 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11429         * config/h8300/h8300.c (notice_update_cc): Use
11430         cc_status.value2.
11432 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11434         * config/h8300/h8300.md (divmod patterns): Change the
11435         constraints for operands[1] to register_operand.
11437 2002-02-18  Kazu Hirata  <kazu@hxi.com>
11439         * config/h8300/h8300-protos.h: Remove the prototype for
11440         p_operand.
11441         * config/h8300/h8300.c (p_operand): Remove.
11442         * config/h8300/h8300.md: Replace p_operand with
11443         const_int_operand.
11445 2002-02-18 Philip Blundell <pb@nexus.co.uk>
11447         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
11448         comment.
11449         (output_return_instruction): Allow use of LDR to unstack
11450         return addresss even for interrupt handlers or when
11451         interworking.  If compiling for ARMv5, use interworking-safe
11452         return instructions by default.  Remove duplicated code and
11453         lengthy "strcat" sequences.
11455 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11457         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
11458         (LINK_EH_SPEC): Define.
11459         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
11461 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
11463         * config/s390/s390.c (s390_emit_prologue): Do not set the
11464         frame_related flag for call-clobbered registers.
11466 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
11468         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
11469         (construct_container): Fix handling of SSE operands.
11470         (ix86_expand_builtin): Fix handling of 64bit pointers.
11471         (mmx_maskmovq_rex): New pattern.
11473 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
11475         * regrename.c (kill_set_value): Handle subregs properly.
11477 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
11479         * objc/objc-act.c (handle_impent): Remove leading '*'
11480         from objc_class_name.
11482 2002-02-17  Richard Henderson  <rth@redhat.com>
11484         * config/alpha/alpha.c (some_small_symbolic_operand,
11485         some_small_symbolic_operand_1, split_small_symbolic_operand,
11486         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
11487         Handle small SYMBOL_REFs anywhere, not just inside memories.
11488         * config/alpha/alpha-protos.h: Update.
11489         * config/alpha/alpha.h (PREDICATE_CODES): Update.
11490         * config/alpha/alpha.md (small symbolic operand splitter): Update.
11492 2002-02-17  Roland McGrath  <roland@frob.com>
11494         * config.gcc (powerpc-*-gnu-gnualtivec*,
11495         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
11496         * config/rs6000/gnu.h: New file.
11497         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
11498         Grok "gnu" in rs6000_abi_name.
11499         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
11500         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
11501         Grok -mcall-gnu analogous to -mcall-linux et al.
11502         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
11503         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
11504         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
11506 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
11508         PR c/3444:
11509         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
11510         shortening.
11512 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11514         * config/cris/cris.h: Undefine STARTFILE_SPEC and
11515         ENDFILE_SPEC before (re)defining them.
11517 2002-02-17  Kazu Hirata  <kazu@hxi.com>
11519         * config/h8300/h8300.c: Fix formatting.
11520         * config/h8300/h8300.h: Likewise.
11522 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11524         * doc/tm.texi: Explain why empty strings should not be
11525         marked for translation.
11527 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11529         * final.c (output_operand_lossage): Changed to accept
11530         printf style arguments. Change calls where necessary.
11531         * output.h (output_operand_lossage): Change declaration
11532         accordingly. Update copyright.
11533         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
11534         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
11535         Update copyright date where necessary.
11537         * config/i386/i386.c (print_operand): Likewise. Remove use of
11538         sprintf.
11540         * config/cris/cris.c (cris_operand_lossage): Likewise.
11541         Rename parameter so that exgettext recognizes it as
11542         translatable message.
11543         (LOSE_AND_RETURN): Rename parameter to msgid.
11545 2002-02-17  Kazu Hirata  <kazu@hxi.com>
11547         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
11548         hard coded register number with an appropriate macro.
11549         (HARD_REGNO_MODE_OK): Likewise.
11550         (ARG_POINTER_REGNUM): Likewise.
11551         (STATIC_CHAIN_REGNUM): Likewise.
11552         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
11553         * config/h8300/h8300.md (define_constants): Define more
11554         register numbers.
11556 2002-02-17  Philipp Thomas  <pthomas@suse.de>
11558         * config/i386/i386.h: Don't mark empty strings for translation.
11560 2002-02-16  H.J. Lu <hjl@gnu.org>
11562         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
11564 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
11566         * cppinit.c (merge_include_chains): Check for brack being
11567         NULL before attempting to merge it with qtail.
11569 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
11571         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
11572         DBX_DEBUG.
11574 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11576         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
11578 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11580         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
11581         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
11582         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
11584 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11586         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
11587         now only if !TARGET_FIX.
11588         (*movsi_nt_vms_fix): New pattern.
11590 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
11592         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
11593         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
11594         (alpha_sa_mask, alpha_sa_size): Reflect above change.
11595         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
11596         (alpha_start_function, alpha_expand_epilogue): Likewise.
11597         (unicosmk_gen_dsib): Likewise.
11599 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11601         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
11603 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
11605         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
11606         check_and_change_labels, s390_final_chunkify): Delete.
11607         (s390_split_branches, s390_chunkify_pool): New functions.
11608         (s390_function_prologue): Call them.
11610         * config/s390/s390.h (S390_REL_MAX): Delete.
11611         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
11613         * config/s390/s390.md (cjump, icjump, jump): Fix length
11614         attribute calculation.
11617 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
11619         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
11620         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
11622 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11624         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
11625         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
11626         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
11628 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
11630         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
11632 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
11634         * reload.c (find_dummy_reload): Check that an output register
11635         is valid for its mode.
11637 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
11639         * combine.c (known_cond): After replacing the REG of a SUBREG, try
11640         to simplify it.
11642         * function.c (assign_parms): Demote promoted argument passed by
11643         transparent reference.
11645 2001-02-14      Joel Sherrill <joel@OARcorp.com>
11647         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
11648         -Acpu() and -Amachine() to eliminate warnings.
11650 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
11652         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
11654 2002-02-14  Kazu Hirata  <kazu@hxi.com>
11656         * config/h8300/h8300-protos.h: Update the prototype for
11657         const_costs.
11658         * config/h8300/h8300.c (const_costs): Treat SET as a little
11659         more expensive operation.
11660         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
11661         reference to const_costs.
11663 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
11665         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
11667 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
11669         PR c/5503:
11670         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
11671         use arguments from newtype.
11673 2002-02-13  Eric Christopher  <echristo@redhat.com>
11675         * config/mips/mips.c (override_options): Add check for march/mipsX
11676         on the same command line. Fix error message in cpu processing.
11677         Remove architecture and ISA checks.
11679 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
11681         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
11683         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
11685 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
11687         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
11688         alternatives.
11689         ("*movv8hi_internal1"): Same.
11690         ("*movv16qi_internal1"): Same.
11691         ("*movv4sf_internal1"): Same.
11693         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
11694         not push_reload for altivec modes.
11696 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
11698         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
11699         all RTEMS targets including removal of #includes from config/*/rtems*.h
11700         file and adding them to tm_file setting. Added xm_defines=POSIX to
11701         many targets.
11702         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
11703         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
11704         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
11705         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
11706         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
11707         config/m68k/rtemself.h: Ditto.
11708         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
11709         config/mips/rtems64.h: Ditto.
11710         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
11711         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
11712         Ditto.
11713         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
11714         config/sparc/rtemself.h: Ditto.
11715         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
11716         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
11717         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
11718         more like arm-elf.
11719         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
11720         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
11721         target made more similar to i386-elf.
11722         * config/i386/t-rtems-i386: Added soft float support and multilibs.
11723         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
11724         be similar to config/m68k/t-m68kelf.
11725         * gthr-rtems.h: Encapsulate with extern "C" for C++.
11727 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
11729         * regmove.c (kill_value): Handle subregs.
11731 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
11733         * i386.md (mul patterns): Allow memory operand to be first;
11734         add expanders where needed; fix constraints.
11735         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
11736         Allow memory operand to be the first.
11738         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
11739         operands.
11741 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
11743         PR c/5681:
11744         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
11745         GET_MODE (x).
11747 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
11749         PR optimization/5547:
11750         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
11751         all valid IA-32 address modes involving non-scaled %ebx and
11752         GOT/GOTOFF as displacement.
11754 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
11756         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
11757         after emitting ltorg insns.
11759         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
11760         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
11761         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
11762         *abssf2): Fix "op_type" attribute.
11764 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
11766         * mkconfig.sh: Avoid using a subshell redirect.
11767         ($output.T): Change to $(output)T.
11768         (ENABLE_NLS): Remove unneeded undef.
11770         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
11771         * config/alpha/x-vms (libsubdir): Define.
11773         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
11774         register frame procedures. Optimize retrieving context.
11776         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
11777         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
11778         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
11780 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11782         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
11783         Make same change as for find_base_value.
11785 2002-02-13  Kazu Hirata  <kazu@hxi.com>
11787         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
11788         of QImode and SImode.
11790 2002-02-13  Kazu Hirata  <kazu@hxi.com>
11792         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
11793         length computation of movsi.
11794         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
11796 2002-02-13  Kazu Hirata  <kazu@hxi.com>
11798         * config/h8300/h8300.md (subqi3): Tighten the predicate for
11799         operands[2] to register_operand.
11801 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
11803         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
11805 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
11807         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
11808         for altivec_lvx* and altivec_stvx*.
11809         ("*movv4si_internal"): Add constraint for loading from GPRs.
11810         ("*movv8hi_internal1"): Same.
11811         ("*movv16qi_internal1"): Same.
11812         ("*movv4sf_internal1"): Same.
11814         * config/rs6000/rs6000.c (altivec_register_operand): New.
11816         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
11817         altivec_register_operand.
11819 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
11821         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
11822         handle SYMBOL_REF.
11824 2002-02-13  Stan Shebs  <shebs@apple.com>
11826         * c-typeck.c (digest_init): Handle vectors.
11827         (really_start_incremental_init): Same.
11828         (pop_init_level): Same.
11829         (process_init_element): Same.
11831         * varasm.c (output_constant): Same.
11833         * expr.c (clear_storage): Same.
11834         (store_constructor): Same.
11836 2002-02-12  Eric Christopher  <echristo@redhat.com>
11838         * explow.c (hard_function_value): Add comment explaining
11839         signed/unsigned comparison.
11841 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
11843         * jump.c (never_reached_warning): Add finish argument.
11844         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
11845         real insn after end.
11846         * rtl.h (never_reached_warning): Adjust prototype.
11847         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
11848         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
11849         never_reached_warning.
11851 2002-02-12  Graham Stott  <grahams@redhat.com>
11853         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
11855 2002-02-12  Kazu Hirata  <kazu@hxi.com>
11857         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
11858         logical shifts on H8/300.
11859         (shift_alg_si): Improve several shifts on H8/300.
11860         (get_shift_alg): Likewise.
11862 2002-02-12  Graham Stott  <grahams@redhat.com>
11864         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
11866 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11868         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
11869         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
11871 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
11873         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
11874         non-CONST_INT through default_assemble_integer.
11875         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
11876         <case 8>: Abort for CONST_DOUBLE.
11878 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11880         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
11881         is specified.
11882         * config/pa/pa-linux.h (LIB_SPEC): Delete.
11883         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
11885 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
11887         * config/stormy16/stormy16.md (zero_extendqihi2): New.
11889 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
11891         * regrename.c (regrename_optimize): Don't accept a
11892         part-clobbered register if the replaced register is not part
11893         clobbered.
11895         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
11896         take padding into account when computing the argument value.
11898         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
11900         * combine.c (try_combine): Apply substitutions in
11901         CALL_INSN_FUNCTION_USAGE too.
11903 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
11905         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
11906         __builtin_altivec_abs*.
11907         (bdesc_abs): New.
11909         * config/rs6000/rs6000.h (rs6000_builtins): Add
11910         ALTIVEC_BUILTIN_ABS*.
11912         * config/rs6000/altivec.h: Use const char for builtins expecting
11913         literals.
11914         (vec_abs): New versions for C and C++.
11915         (vec_abss): Same.
11917 2002-02-10  Kazu Hirata  <kazu@hxi.com>
11919         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
11920         using Pmode.
11922 2002-02-10  Kazu Hirata  <kazu@hxi.com>
11924         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
11925         constant definition from h8300.md.
11926         (FRAME_POINTER_REGNUM): Likewise.
11927         * config/h8300/h8300.md (define_constants): Add FP_REG.
11929 2002-02-10  Kazu Hirata  <kazu@hxi.com>
11931         * config/h8300/h8300.c (print_operand): Remove redundant code.
11933 2002-02-10  Kazu Hirata  <kazu@hxi.com>
11935         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
11936         * config/h8300/h8300.c (byte_reg): Make it static.
11938 2002-02-10  Richard Henderson  <rth@redhat.com>
11940         PR c/5623
11941         * c-typeck.c (incomplete_type_error): Handle flexible array members.
11943 2002-02-10  Richard Henderson  <rth@redhat.com>
11945         PR c++/5624
11946         * tree.c (append_random_chars): Don't abort if main_input_filename
11947         does not exist.
11949 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
11951         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
11953 2002-02-10  Kazu Hirata  <kazu@hxi.com>
11955         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
11956         (pushhi1): Likewise.
11958 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11960         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
11961         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
11963 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
11965         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
11966         remove MASK_VIS.
11967         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
11969 2002-02-09  Kazu Hirata  <kazu@hxi.com>
11971         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
11972         a half of an SImode register on H8/300.
11974 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
11976         * i386.md (movdi_2): Add missing '!'.
11978 2002-02-09  Kazu Hirata  <kazu@hxi.com>
11980         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
11981         definitions.
11983 2002-02-09  Kazu Hirata  <kazu@hxi.com>
11985         * config/h8300/h8300.md (length): Correct the distance valid
11986         for the short branch.
11988 2002-02-09  Kazu Hirata  <kazu@hxi.com>
11990         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
11992 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
11994         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
11995         registers in SImode.
11996         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
11997         part-clobbered.
11999         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
12000         patch.
12002         Contribute sh64-elf.
12003         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
12004         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
12005         (sh_cannot_modify_jumps_p): New function.
12006         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
12007         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
12008         (sh_ms_bitfield_layout_p): New function.
12009         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
12010                     Zack Weinberg  <zack@codesourcery.com>
12011         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
12012         expand_simple_binop instead of expand_binop.
12013         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
12014         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
12015         use of .quad and .uaquad.
12016         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
12017         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
12018         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12019         * config/sh/sh.md (movdi_const, movdi_const_32bit,
12020         movdi_const_16bit): Make sure all CONSTs have modes.
12021         (sym2PIC): Ditto, but by adjusting all callers.
12022         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
12023         if the prologue calls the SHmedia argument decoder or register
12024         saver.
12025         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12026         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
12027         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
12028         (sh_expand_epilogue): Don't emit USE of return target register.
12029         (prepare_move_operands): Legitimize DImode PIC addresses.
12030         (sh_media_register_for_return): Skip tr0, used to initialize the
12031         PIC register.
12032         (sh_expand_prologue): Remove explicit USE of return register.
12033         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
12034         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
12035         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
12036         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
12037         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
12038         EXTRA_CONSTRAINT_T.
12039         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
12040         (MOVI_SHORI_BASE_OPERAND_P): New.
12041         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
12042         (EXTRA_CONSTRAINT_T): Define in terms of them.
12043         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
12044         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
12045         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
12046         alternatives supporting TARGET_REGS.
12047         (UNSPEC_GOTPLT): New constant.
12048         (movdi split): Move incrementing of LABEL_NUSES...
12049         (movdi_const, movdi_const_32bit): Here.  Use
12050         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
12051         (movdi_const_16bit): New.
12052         (call, call_value) [flag_pic]: Use GOTPLT.
12053         (call_pop, call_value_pop): New expands.
12054         (call_pop_compact, call_pop_rettramp): New insns.
12055         (call_value_pop_compact, call_value_pop_rettramp): New insns.
12056         (sibcall) [flag_pic]: Use GOT.
12057         (builtint_setjmp_receiver): Remove bogus, unused expand.
12058         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
12059         (*pt, *ptb, ptrel): New insns.
12060         (sym2GOT): Handle DImode GOT.
12061         (sym2GOTPLT, symGOTPLT2reg): New expands.
12062         (sym2PIC): New expand.
12063         (shcompact_return_tramp): Use GOTPLT to return trampoline.
12064         (shcompact_return_tramp_i): Use return register explicitly.
12065         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
12066         disable flag_reorder_blocks.
12067         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12068         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
12069         clobbers, for clarity.
12070         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
12071         restoring of r0 in macl as MAYBE_DEAD.
12072         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
12073         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
12074         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
12075         alter_subreg all over.
12076         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
12077         reload, instead of emitting instructions that would require
12078         reloading.
12079         (casesi_load_media): Add missing modes.
12080         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
12081         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
12082         as used if the argument decoder is called.
12083         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12084         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
12085         Pmode, then extend it to DImode if necessary.
12086         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12087         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
12088         constants in FPU-enabled SHmedia, let them be loaded from memory.
12089         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
12090         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
12091         Adjust whitespace in assembly output templates.
12092         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
12093         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
12094         mode of if_then_else.
12095         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
12096         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
12097         sh.h.
12098         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
12099                     Joern Rennecke <amylaar@redhat.com>
12100         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
12101         (SUBTARGET_CPP_PTR_SPEC): New.
12102         (SUBTARGET_CPP_SPEC): Remove.
12103         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12104         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12105         Fix typo in previous checkin.
12106         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
12107         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
12108         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
12109                     Alexandre Oliva  <aoliva@redhat.com>
12110         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
12111         what single FP register can hold for SHmedia target.
12112         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
12113                     Alexandre Oliva  <aoliva@redhat.com>
12114         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
12115         Do not split into SUBREG.
12116         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
12117         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
12118         and added new functions as specified in SH5 ABI r9.
12119         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
12120         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
12121         8-byte boundary.
12122         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
12123         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
12124         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
12125         and consttable_window_ends.
12126         2001-06-03  Graham Stott  <grahams@redhat,com>
12127         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
12128         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
12129         * config/sh/sh.c (print_operand): Handle floating-point pair,
12130         vector and matrix registers.
12131         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
12132         vector modes into account.
12133         * config/sh/sh.md (movv2sf): Split move between registers into
12134         movdf.
12135         (movv4sf, movv16sf): Introduce insns that get split only after
12136         reload.
12137         * config/sh/shmedia.h: Fix Copyright dates.
12138         * config/sh/ushmedia.h: Likewise.  Move loop counter
12139         declarations into conditionals that uses them.
12140         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
12141         loop boundary.
12142         * config/sh/sshmedia.h: Fix Copyright dates.
12143         (sh_media_PUTCFG): Fix constraints.
12144         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
12145         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
12146         ptrmemfunc_vbit_in_delta for SH5.
12147         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
12148         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
12149         * invoke.texi: Likewise.
12150         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
12151         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
12152         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
12153         GCC_pop_shmedia_regs_nofpu): New global symbols.
12154         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
12155         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
12156         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
12157         compact function with nonlocal labels.
12158         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
12159         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
12160         (initial_elimination_offset): Account for their stack space.
12161         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
12162         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
12163         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
12164         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
12165         least one of the operands to be a register.
12166         (movv2sf): Likewise.  Renamed to movv2sf_i.
12167         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
12168         prepare_move_operands() before emitting SHmedia insns.
12169         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
12170         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
12171         Don't save nor initialize r12.  Don't mis-align the stack.
12172         Pad the code with a nop.
12173         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
12174         stack.
12175         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
12176         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
12177         [__SHMEDIA__]: Implement.
12178         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
12179         * config/sh/sh.md: Set latency of `pt' closer to reality.
12180         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
12181         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
12182         Set move, load and store type attributes.
12183         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
12184         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
12185         profiling.
12186         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
12187         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
12188         * config/sh/sh.c (sh_media_register_for_return): New function.
12189         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
12190         branch-target register.
12191         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
12192         * config/sh/sh.md (return_media_i): Use any call-clobbered
12193         branch-target register.
12194         (return_media): If r18 wasn't copied in the prologue, copy it
12195         here.
12196         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
12197         Clear class FP0_REGS.
12198         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
12199         from elf.h.
12200         2001-03-08  DJ Delorie  <dj@redhat.com>
12201         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
12202         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
12203         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
12204         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
12205         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
12206         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
12207         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
12208         return value correctly for call_cookie.
12209         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
12210         * config/sh/crt1.asm (start): Modified so as to call
12211         ___setup_argv_and_call_main.
12212         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
12213         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
12214         SHmedia mode.
12215         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
12216         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
12217         (STRIP_NAME_ENCODING): Use it.
12218         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
12219         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
12220         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
12221         prepare_scc_operands().
12222         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
12223         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
12224         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
12225         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
12226         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
12227         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
12228         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
12229         used in shcompact_incoming_args.
12230         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
12231         change.
12232         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
12233         mode.
12234         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
12235         Adjust accordingly.
12236         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
12237         Simplify.  Adjust.  Add sanity check.
12238         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
12239         FPU_SINGLE_BIT.
12240         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
12241         TARGET_SHCOMPACT.
12242         (udivsi3, divsi3): Use them.
12243         (force_mode_for_call): New insn.
12244         (call, call_value, sibcall_value): Emit it before SHcompact
12245         calls.
12246         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
12247         * config/sh/sh.md (call, call_value, sibcall): Make sure the
12248         call cookie is non-NULL before taking its value.
12249         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
12250         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
12251         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
12252         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
12253         block.
12254         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
12255         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
12256         temporary for stack adjusts.  Use MACL and MACH to pass
12257         arguments to shcompact_incoming_args.
12258         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
12259         clobber r1.
12260         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
12261         (nested_trampoline): Load static chain address into r1.
12262         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
12263         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
12264         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
12265         fp_arith_reg_operand().
12266         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
12267         * config/sh/sh.md (casesi): Sign-extend the first two operands,
12268         and use signed compares for them.
12269         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
12270         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
12271         ones properly aligned.
12272         (find_barrier): Account for extra alignment needed for 8-byte wide
12273         constants.
12274         (machine_dependent_reorg): Require a label for the second 4-byte
12275         constant after an 8-byte one.
12276         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
12277         change.
12278         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12279         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
12280         last_float when switching float modes.
12281         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
12282         auto-increment for general-purpose registers.
12283         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
12284         result.
12285         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
12286         for stack adjust.
12287         * config/sh/sh.c (sh_builtin_saveregs): Support using all
12288         registers for varargs.
12289         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
12290         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
12291         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
12292         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
12293         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
12294         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
12295         call_cookie accordingly.
12296         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
12297         (SHCOMPACT_BYREF): Likewise.
12298         (SHCOMPACT_FORCE_ON_STACK): New macro.
12299         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
12300         (sh_builtin_saveregs): Likewise.
12301         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12302         shcompact_incoming_args): Use new shift values.  Support
12303         sequences of consecutive and non-consecutive pushes/pops.
12304         * config/sh/sh.md (return): Don't explicitly use PR_REG.
12305         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
12306         * config/sh/sh.h (TEXT_SECTION): Define.
12307         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
12308         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
12309         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
12310         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
12311         return values on FPU-enabled SHmedia.
12312         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
12313         FPU-enabled SHmedia.
12314         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
12315         value is returned in a non-FP reg and is not returned by
12316         reference.
12317         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
12318         jump_ind.
12319         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
12320         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
12321         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
12322         quad-aligned to be passed by callee-copy reference.
12323         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
12324         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
12325         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
12326         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
12327         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
12328         copying low-numbered FP regs to r7 and r8.
12329         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
12330         FP regs to general-purpose regs only if the copy was passed on the
12331         stack.
12332         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
12333         copying FP reg to r9.
12334         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
12335         copy FP regs to general-purpose regs only in outgoing calls.
12336         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
12337         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
12338         HOST_WIDE_INT.
12339         * config/sh/sh.h (struct sh_args): Document all fields.
12340         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
12341         passed partially on the stack should not consider making
12342         sibcalls.
12343         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
12344         stack_regs only for incoming calls.  When passing FP args,
12345         make sure there are FP regs available before modifying
12346         call_cookie.
12347         (SHCOMPACT_BYREF): Pass double args in general-purpose
12348         registers by reference.
12349         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
12350         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
12351         attempt to generate sibcalls if the caller got any arguments
12352         by reference.
12353         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
12354         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
12355         to 8-byte boundaries.
12356         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
12357         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
12358         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
12359         stored in the stack.
12360         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
12361         for the offsets to have the ISA bit set.
12362         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
12363         invocation.  Use beq instead of bgt to mark end of sequence of
12364         loads.
12365         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
12366         bgt to mark end of sequence of stores.
12367         * config/sh/sh.c (arith_operand): Don't check whether
12368         CONST_OK_FOR_J for now.
12369         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
12370         instead of long for conversion.
12371         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
12372         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
12373         before passing it to fprintf.
12374         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
12375         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
12376         Call set_fpscr before reading/writing SR.
12377         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
12378         Call set_fpscr.
12379         * config/sh/lib1funcs.asm: Add `.align 2' directives before
12380         SHmedia code.
12381         (FMOVD_WORKS): Define on SH5 with FPU.
12382         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
12383         setting.
12384         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
12385         _fpscr_values.
12386         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
12387         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
12388         address.
12389         (ia_main_table): Ditto.
12390         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
12391         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
12392         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
12393         the definitions from sh.h.
12394         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
12395         TARGET_SH5.
12396         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
12397         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
12398         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12399         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
12400         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
12401         Increment LABEL_NUSES.
12403         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
12404         TARGET_SH5.
12405         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
12406         defined.
12407         * config/sh/elf.h (SIZE_TYPE): Likewise.
12408         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
12409         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12410         shcompact_incoming_args): Load switch table addresses using
12411         datalabel.
12412         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12413         (NO_BUILTIN_SIZE_TYPE): Define.
12414         (SIZE_TYPE): Don't define.
12415         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
12416         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
12417         definition of __SH5__=32 for -m5-compact-nofpu.
12418         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
12419         ADDR_DIFF_VEC.
12420         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
12421         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
12422         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
12423         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
12424         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
12425         (INSN_LENGTH_ALIGNMENT): Likewise.
12426         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12427         * config/sh/sh.md (call, call_value, sibcall): Simplify
12428         copying of non-branch-target register.
12429         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12430         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
12431         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
12432         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
12433         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
12434         floating-point values as structs.
12435         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
12436         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
12437         general-purpose register.
12438         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
12439         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
12440         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
12441         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
12442         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
12443         (ENCODE_SECTION_INFO): Enclose variables and constants in
12444         DATALABEL unspecs.
12445         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
12446         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
12447         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
12448         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
12449         only for LABEL_REFs.  For SYMBOL_REFs, prepend
12450         SH_DATALABEL_ENCODING to the symbol name.
12451         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
12452         convert_mode().
12453         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
12454         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
12455         UNSPEC_DATALABEL.
12456         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
12457         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
12458         (DATALABEL_REF_P): Don't require CONST.
12459         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
12460         REL label.
12461         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
12462         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
12463         right.
12464         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
12465         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
12466         Use shallow_copy_rtx and PUT_MODE to change the mode of
12467         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
12468         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
12469         on SHmedia using GENERAL_REGs.
12470         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12471         bltu_media_i): Fix reversion of conditions.
12472         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
12473         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
12474         * config/sh/sh.c (output_far_jump): Save r13 in macl.
12475         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
12476         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
12477         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
12478         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
12479         (GCC_nested_trampoline): Likewise.
12480         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
12481         * config/sh/sh.c (gen_datalabel_ref): Define.
12482         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
12483         (INITIALIZE_TRAMPOLINE): Likewise.
12484         (TRAMPOLINE_ADJUST_ADDRESS): Define.
12485         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
12486         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
12487         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
12488         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
12489         (ic_invalidate): Adjust for SH5.
12490         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
12491         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
12492         _nested_trampoline.
12493         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
12494         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
12495         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
12496         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
12497         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
12498         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
12499         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
12500         * config/sh/sh.c (target_reg_operand): Match only target-branch
12501         registers and pseudos that aren't virtual registers.
12502         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12503         Copy operands that don't match target_reg_operand to pseudos.
12504         (call_media, call_value_media, sibcall_media): Use
12505         target_reg_operand instead of target_operand.
12506         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
12507         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
12508         * config/sh/sh.c (target_reg_operand): Match hardware registers
12509         other than branch-target registers.
12510         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
12511         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
12512         (fpscr_values) [SH5 == 32]: Define.
12513         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
12514         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
12515         Handle function addresses coming in SUBREGs.
12516         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
12517         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
12518         shcompact_return_trampoline): Use datalabel where appropriate.
12519         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
12520         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
12521         general-purpose register to copy one branch-target register to
12522         another.
12523         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
12524         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
12525         SYMBOL_REFs with VOIDmode.
12526         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
12527         bltu_media_i): New insns.
12528         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
12529         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
12530         (INIT_CUMULATIVE_ARGS): Likewise.
12531         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
12532         * machmode.def (V16SFmode): New mode.
12533         * c-common.c (type_for_mode): Support V2SF and V16SF.
12534         * tree.c (build_common_tree_nodes_2): Likewise.
12535         * tree.h (tree_index): Likewise.
12536         * calls.c (emit_call_1): Take args_so_far.  Adjust all
12537         callers.  Introduce CALL_POPS_ARGS.
12538         * tm.texi (CALL_POPS_ARGS): Document.
12539         * config/sh/crt1.asm: Implement in SHmedia mode.
12540         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
12541         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
12542         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
12543         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
12544         Implement divsi and udivsi in SHmedia mode.  Introduce
12545         SHcompact trampolines.
12546         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
12547         only in SHmedia64.
12548         (regno_reg_class): Rewrite.
12549         (fp_reg_names): Remove.
12550         (sh_register_names, sh_additional_register_names): New.
12551         (print_operand): Added `u'.  Support SUBREGs in addresses.
12552         Add parentheses around shifted CONSTs.
12553         (output_file_start): Output .mode and .abi directives.
12554         (shiftcosts, addsubcosts, multcosts): Adjust.
12555         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
12556         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
12557         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
12558         bytes, not registers.  Take into account the need for the
12559         SHcompact incoming args trampoline.  Adjust all callers.
12560         (sh_expand_prologue): Take stack_regs into account.  Call
12561         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
12562         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
12563         stack aligned as per SH5 ABI.
12564         (sh_builtin_saveregs): Support SH5 ABI.
12565         (sh_build_va_list, sh_va_start): Likewise.
12566         (initial_elimination_offset): Take alignment into account.
12567         Compute location of PR according to the SH5 stack frame.
12568         (arith_reg_operand): Reject branch-target registers.
12569         (shmedia_6bit_operand): New.
12570         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
12571         (target_reg_operand): Match DImode only.  Accept SUBREGs.
12572         (target_operand): New.
12573         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
12574         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
12575         SIBCALL_REGS for SHmedia.
12576         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
12577         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
12578         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
12579         (TARGET_SWITCHES): New SH5 flags.
12580         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
12581         VALID_REGISTER_P to disable unsupported registers.
12582         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
12583         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
12584         (FUNCTION_ARG_PADDING): Define.
12585         (FASTEST_ALIGNMENT): Adjust.
12586         (SH_REGISTER_NAMES_INITIALIZER): New.
12587         (sh_register_names): Declare.
12588         (DEBUG_REGISTER_NAMES): Define.
12589         (REGISTER_NAMES): Define based on sh_register_names.
12590         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
12591         (sh_additional_register_names): Declare.
12592         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
12593         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
12594         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
12595         (REGISTER_NATURAL_MODE): Define.
12596         (FIRST_PSEUDO_REGISTER): Adjust.
12597         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
12598         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
12599         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
12600         (VECTOR_MODE_SUPPORTED_P): Define.
12601         (REG_CLASS_CONTENTS): Adjust.
12602         (SMALL_REGISTER_CLASSES): Adjust.
12603         (REG_ALLOC_ORDER): Adjust.
12604         (INDEX_REG_CLASS): Adjust.
12605         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
12606         (CONST_OK_FOR_LETTER_P): Adjust.
12607         (PREFERRED_RELOAD_CLASS): Adjust.
12608         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
12609         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
12610         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
12611         (FIRST_FP_PARM_REG): Adjust.
12612         (CALL_POPS_ARGS): Define.
12613         (FUNCTION_ARG_REGNO_P): Adjust.
12614         (struct sh_args): New fields.
12615         (GET_SH_ARG_CLASS): Adjust.
12616         (INIT_CUMULATIVE_ARGS): Adjust.
12617         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
12618         (FUNCTION_ARG_ADVANCE): Adjust.
12619         (FUNCTION_ARG): Adjust.
12620         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
12621         (FUNCTION_ARG_CALLEE_COPIES): Define.
12622         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
12623         (STRICT_ARGUMENT_NAMING): Define.
12624         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
12625         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
12626         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
12627         (SETUP_INCOMING_VARARGS): Adjust.
12628         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
12629         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
12630         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
12631         (SUBREG_OK_FOR_INDEX_P): Adjust.
12632         (EXTRA_CONSTRAINT_S): Update.
12633         (EXTRA_CONSTRAINT_T): New.
12634         (EXTRA_CONSTRAINT): Adjust.
12635         (GO_IF_LEGITIMATE_INDEX): Adjust.
12636         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
12637         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
12638         (MOVE_MAX): Adjust.
12639         (MAX_MOVE_MAX): Define.
12640         (Pmode): Adjust.
12641         (CONST_COSTS): Adjust.
12642         (REGISTER_MOVE_COST): Adjust.
12643         (BRANCH_COST): Adjust.
12644         (TEXT_SECTION_ASM_OP): Adjust.
12645         (DBX_REGISTER_NUMBER): Adjust.
12646         (ASM_OUTPUT_DOUBLE_INT): New.
12647         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
12648         (PREDICATE_CODES): Adjust.
12649         (PROMOTE_MODE): Adjust.
12650         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
12651         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
12652         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
12653         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
12654         (DR0_REG, DR2_REG, DR4_REG): Renumber.
12655         (TR0_REG, TR1_REG, TR2_REG): New.
12656         (XD0_REG): Renumber.
12657         (UNSPEC_COMPACT_ARGS): New.
12658         (type): Added pt and ptabs.
12659         (length): Default to 4 on SHmedia.  Default pt length to 12
12660         and     20 on SHmedia32 and SHmedia64, respectively.
12661         (pt): New function unit.
12662         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
12663         Add whitespace between operands of SHmedia instructions.
12664         (movdicc): Fix.
12665         (adddi3_media, addsi3_media): Adjust constraints.
12666         (subsi3) [SHmedia]: Force operand 1 into a register.
12667         (udivsi3_i1_media, udivsi3_i4_media): New.
12668         (udivsi3): Support SHmedia.
12669         (divsi3_i1_media, divsi3_i4_media): New.
12670         (divsi3): Support SHmedia.
12671         (anddi3, iordi3, xordi3): Adjust constraints.
12672         (zero_extendhidi2, zero_extendqidi2): New.
12673         (extendsidi2, extendhidi2, extendqidi2): New.
12674         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
12675         (pop_e, pop_fpul, pop_4): Likewise.
12676         (movsi_media): Support FP and BT registers.
12677         (movsi_media_nofpu): New.  Adjust splits to DImode.
12678         (lduw, ldub): Renamed to zero_extend* above.
12679         (movqi_media): Fix typo.
12680         (movdi_media): Support FP and BT registers.
12681         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
12682         (movdi_const_32bit): New.
12683         (shori_media): Require immediate operand.  Use `u' for output.
12684         (movdf_media, movsf_media): Simplified.
12685         (movdf_media_nofpu, movsf_media_nofpu): New.
12686         (movdf, movsf): Adjust
12687         (movv2sf, movv2sf, movv16sf): New.
12688         (beq_media, beq_media_i): Adjust constraints.  Don't use
12689         scratch BT register.
12690         (bne_media, bne_media_i): Likewise.
12691         (bgt_media, bgt_media_i): Likewise.
12692         (bge_media, bge_media_i): Likewise.
12693         (bgtu_media, bgtu_media_i): Likewise.
12694         (bgeu_media, bgeu_media_i): Likewise.
12695         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
12696         bunordered): Emit jump insn.  Force operands to registers when
12697         needed.
12698         (jump_media, jump): Simplify.
12699         (call_compact, call_compact_rettramp): New.
12700         (call_value_compact, call_value_compact_rettramp): New.
12701         (call_media, call_value_media): Simplify.
12702         (sibcall_compact, sibcall_media): New.
12703         (call, call_value): Adjust for SHmedia and SHcompact.
12704         (sibcall, sibcall_value, untyped_call): Likewise.
12705         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
12706         (indirect_jump): Adjust for SHmedia.
12707         (casesi_jump_media): New.
12708         (nop): Re-enable for SHmedia.
12709         (call_site): Restrict to SH1.
12710         (casesi): Adjust for SHmedia.
12711         (casesi_shift_media, casesi_load_media): New.
12712         (return): Explicitly use PR register.  Call return trampoline
12713         on SHcompact.
12714         (return_i): Explicitly use PR register.
12715         (shcompact_return_tramp, shcompact_return_tramp_i): New.
12716         (return_media): Adjust.
12717         (shcompact_incoming_args): New.
12718         (epilogue): Adjust.
12719         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12720         (movstrsi): Disable on SH5.
12721         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
12722         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
12723         (subsf3, subsf3_media): Likewise.
12724         (mulsf3, mulsf3_media, mac_media): Likewise.
12725         (divsf3, divsf3_media): Likewise.
12726         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
12727         (floatsisf2, fux_truncsfsi2): Likewise.
12728         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
12729         constraints.
12730         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
12731         (cmpunsf_media, cmpsf): Likewise.
12732         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
12733         (abssf2, abssf2_media): Likewise.
12734         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
12735         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
12736         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
12737         (floatsidf2, fix_truncdfsi2): Likewise.
12738         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
12739         constraints.
12740         (cmpeqdf_media, cmpgtdf_media): Likewise.
12741         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
12742         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
12743         (absdf2, absdf2_media): Likewise.
12744         (extendsfdf2, extendsfdf2_media): Likewise.
12745         (truncsfdf2, truncsfdf2_media): Likewise.
12746         * config/sh/sh64.h: New file.
12747         * config/sh/t-sh64: New file.
12748         * config/sh/shmedia.h: New file.
12749         * config/sh/ushmedia.h: New file.
12750         * config/sh/sshmedia.h: New file.
12751         * configure.in: Added sh64-*-elf.
12752         * configure: Rebuilt.
12753         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
12754         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
12755         (reg_class_from_letter): Use `b' for TARGET_REGS.
12756         (print_operand): Support `%M', `%m', `AND' and
12757         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
12758         (andcosts): Adjust for SHmedia.
12759         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
12760         Likewise.
12761         (target_reg_operand): New function.
12762         * config/sh/sh-protos.h (target_reg_operand): Declare.
12763         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
12764         FP registers on SH5.
12765         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
12766         on SH4.
12767         (TARGET_REGISTER_P): New macro.
12768         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
12769         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
12770         (EXTRA_CONSTRAINT_S): New macro.
12771         (EXTRA_CONSTRAINT): Adjust.
12772         (FLOAT_TYPE_SIZE): Define to 32.
12773         (Pmode): DImode on SHmedia.
12774         (CONST_COSTS): Adjust for SHmedia literals.
12775         (PREDICATE_CODES): Added target_reg_operand.
12776         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
12777         * config/sh/sh.md: Remove all attrs from SHmedia insns.
12778         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
12779         (cmpdi): Accept SHmedia.
12780         (movdicc_false, movdicc_true): New insns.
12781         (movdicc): New expand.
12782         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
12783         no_new_pseudos.
12784         (addsi3_media): Match `S' constraint.
12785         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
12786         (negdi2): Expand for SHmedia.
12787         (one_cmpldi2): New expand.
12788         (zero_extendsidi2): Change from expand to insn.
12789         (extendsidi2): Add constraints.
12790         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
12791         LD/ST address.  Fix SI immediate loading split.
12792         (movhi_media, movqi_media, lduw, ldub): New insns.
12793         (movhi, movqi): Accept SHmedia.
12794         (shori_media, movdi_media): Relax input constraints.  Split
12795         symbolic constants.
12796         (movdf_media, movsf_media): New insn.  New split to movdi.
12797         (movdf, movsf): Match on SHmedia.
12798         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
12799         bgeu_media): New insns and splits.  New insns with `_i' suffix.
12800         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
12801         (bunordered): New expand.
12802         (jump_compact): Renamed from `jump'.
12803         (jump_media): New insn.
12804         (jump): New expand.
12805         (call_media, call_value_media): New insns.
12806         (call, call_value): Adjust.
12807         (indirect_jump_compact): Renamed from `indirect_jump'.
12808         (indirect_jump_media): New insn.
12809         (indirect_jump): New expand.
12810         (untyped_call, return): Accept SHmedia.
12811         (return_media): New insn.
12812         (prologue, epilogue, blockage): Accept SHmedia.
12813         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
12814         (sunordered): New expand.
12815         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
12816         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
12817         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
12818         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
12819         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
12820         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
12821         abssf2_media): New insns.
12822         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
12823         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
12824         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
12825         floatdidf2, floatsidf2_media, fix_truncdfdi2,
12826         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
12827         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
12828         absdf2_media): New insns.
12829         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
12830         (extendsfdf2_media, truncdfsf2_media): New insns.
12831         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
12832         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
12833         * config/sh/sh.h (CONST_OK_FOR_J): Document.
12834         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
12835         * config/sh/sh.md (adddi3): New expand.
12836         (adddi3_media, adddi3z_media): New insns.
12837         (adddi3_compact): Renamed from adddi3.
12838         (addsi3_media): Use add.l r63 to add constant zero.
12839         (subdi3): New expand.
12840         (subdi3_media): New insn.
12841         (subdi3_compact): Renamed from subdi3.
12842         (mulsidi3): New expand.
12843         (mulsidi3_media): New insn.
12844         (mulsidi3_compact): Renamed from mulsidi3.
12845         (umulsidi3): New expand.
12846         (umulsidi3_media): New insn.
12847         (umulsidi3_compact): Renamed from umulsidi3.
12848         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
12849         (ashlsi3, ashrsi3, lshrsi3): Use them.
12850         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
12851         (ashldi3, ashrdi3, lshrdi3): Use them.
12852         (zero_extendsidi2): New expand.
12853         (extendsidi2): New insn.
12854         (movsi_media): New insn.  Split to movdi to load constants.
12855         (movsi): Enable for shmedia.
12856         (movdi_media): New insn.  Use shori_media to load wide constants.
12857         (short_media): New insn.
12858         (movdi): Enable for shmedia.
12859         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
12860         * config/sh/sh.h (CPP_SPEC): Added `m5'.
12861         (SUBTARGET_CPP_SPEC): Added `!m5'.
12862         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
12863         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
12864         to all other SH variants.
12865         (TARGET_DEFAULT): Set to SH1_BIT.
12866         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
12867         (BITS_PER_WORD): Raise to 64 on shmedia.
12868         (MAX_BITS_PER_WORD): Change to 64.
12869         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
12870         (INT_TYPE_SIZE): Keep as 32.
12871         (UNITS_PER_WORD): Raise to 8 on shmedia.
12872         (MIN_UNITS_PER_WORD): Keep as 4.
12873         (POINTER_SIZE): Raise to 64 on shmedia.
12874         (CONST_OK_FOR_J): New macro.
12875         (CONST_OK_FOR_LETTER_P): Use it.
12876         (processor_type): Add PROCESSOR_SH5.
12877         * config/sh/sh.md: Conditionalize all expands, insns and
12878         splits to TARGET_SH1.
12879         (cpu): Added sh5.
12880         (addsi3_compact): Renamed from...
12881         (addsi3): Now an expand.
12882         (addsi3_media, subsi3_media): New insns.
12883         (subsi3): Don't negate constants with SHmedia.
12885         * hooks.c: New file.
12886         * hooks.h: New file.
12887         * Makefile.in (HOOKS_H): New.
12888         (TARGET_DEF_H): Added $(HOOKS_H).
12889         (OBJS): Added hooks.o.
12890         (cfgcleanup.o, bb-reorder.o): Added target.h.
12891         (hooks.o): Added dependencies.
12892         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
12893         (TARGET_INITIALIZER): this.
12894         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
12895         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
12896         * bb-reorder.c: Include target.h.
12897         (reorder_basic_blocks): Skip if cannot modify jumps.
12898         * cfgcleanup.c: Include target.h.
12899         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
12901 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
12903         * config/mips/mips.md (casesi_internal, casesi_internal_di):
12904         Protect jump delay slot instructions with .set noreorder and
12905         .set nomacro.
12907 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
12909         * config/mips/mips.md (casesi_internal_di): Calculate
12910         the index into the target offset table correctly.
12912 2002-02-08  Richard Henderson  <rth@redhat.com>
12914         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
12915         * final.c (output_addr_const): Accept and discard SUBREG.
12916         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
12917         mark them unknown instead.
12918         (simplify_subtraction): Handle RTX_UNKNOWN.
12919         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
12921 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
12923         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
12925 2002-02-08  Richard Henderson  <rth@redhat.com>
12927         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
12929 2002-02-08  Andreas Jaeger  <aj@suse.de>
12931         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
12932         * config/i386/t-linux64: New file.
12934 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
12936         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
12937         * c-parse.in (compstmt): Clear last_expr_type.
12939 2002-02-07  Richard Henderson  <rth@redhat.com>
12941         * loop.c (strength_reduce): Sink final_value when not
12942         eliminating a biv.
12944 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
12946         * config/sparc/freebsd.h: Fix mismatched spec {.
12948 2002-02-07  Richard Henderson  <rth@redhat.com>
12950         * cfgrtl.c: Include recog.h and insn-config.h.
12951         (keep_with_call_p): Fix general_operand invocation.
12952         * Makefile.in (cfgrtl.o): Update dependencies.
12954 2002-02-07  Kazu Hirata  <kazu@hxi.com>
12956         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
12957         comment.  Accept HImode only if TARGET_H8300.
12959 2002-02-07  Eric Christopher  <echristo@redhat.com>
12961         * config/mips/crtn.asm: Cleanup #ifdefs.
12963 2002-02-07  Eric Christopher  <echristo@redhat.com>
12965         * config/mips/crti.asm: Add changes for mips16. mips16 uses
12966         register 7 as RA instead of $31.
12967         * config/mips/crtn.asm: Ditto.
12968         * config/mips/mips.c (mips_move_2words): Add case for
12969         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
12970         (compute_frame_size): Fix typo.
12971         (save_restore_insns): Ditto.  Make documentation about using
12972         register $7 as return register more precise.
12973         (mips_expand_epilogue): Fix comment. Add code to work around not
12974         being able to add to the stack pointer directly.
12975         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
12976         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
12977         epilogue.
12979 2002-02-07  Tom Rix  <trix@redhat.com>
12981         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
12982         immediates in ldu and stdu DS opcode field.
12983         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
12984         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
12985         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
12987 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
12989         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
12990         offset for stack bias.
12992 2002-02-07  H.J. Lu <hjl@gnu.org>
12994         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
12996 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
12998         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
13000 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
13002         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
13003         * i386.c (x86_order_regs_for_local_alloc): New global function.
13004         * i386.h (REG_ALLOC_ORDER): CLeanup.
13005         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
13007 2002-02-07  Richard Henderson  <rth@redhat.com>
13009         PR optimization/2463
13010         * alias.c (find_base_value): Recall base values for fixed hard regs.
13011         * loop.c (loop_regs_update): Don't use single_set on non-insns.
13013 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
13015         * config/mips/mips.md (define_delay) [mips16]: Adjust required
13016         length.
13018 2002-02-06  Richard Henderson  <rth@redhat.com>
13020         PR c/5609
13021         * stmt.c (resolve_operand_name_1): Take more care with mixed
13022         named and unnamed operands.
13024 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
13025             Jan Hubicka  <jh@suse.cz>
13027         * loop.c (remove_constant_addition): Avoid clobbering a shared
13028         CONST expression.
13030 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13032         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
13033         * config/s390/t-linux64: New file.
13034         * config/s390/libgcc-glibc.ver: New file.
13036 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
13038         * config/s390/linux64.h: Delete file.
13039         * config/s390/s390x.h: New file.
13040         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
13041         as target header file.
13042         * config/s390/linux.h (TARGET_VERSION): Define depending on
13043         DEFAULT_TARGET_64BIT.
13044         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
13045         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
13046         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
13047         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
13048         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
13049         (EXTRA_SPEC): New define.
13050         * config/s390/s390.h (TARGET_VERSION): Define depending on
13051         DEFAULT_TARGET_64BIT.
13052         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
13054 2002-02-06  Jason Merrill  <jason@redhat.com>
13056         * c-decl.c (finish_function): Warn about a non-void function with
13057         no return statement and no abnormal exit.
13058         (current_function_returns_abnormally): New variable.
13059         (start_function): Clear it.
13060         (struct c_language_function): Add returns_abnormally.
13061         (push_c_function_context): Save it.
13062         (pop_c_function_context): Restore it.
13063         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
13064         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
13065         an explicit return type.
13066         * c-tree.h: Declare current_function_returns_abnormally.
13067         (C_FUNCTION_IMPLICIT_INT): New macro.
13068         * c-typeck.c (build_function_call): Set it.
13069         (c_expand_return): Set current_function_returns_value even if the
13070         value is erroneous.
13072 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13074         PR c/5420:
13075         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
13076         unsafe for reevaluation.
13078 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
13080         PR c/5482:
13081         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
13082         EXPR_STMT, but COMPOUND_STMT, recurse into it.
13084 2002-02-06  Richard Henderson  <rth@redhat.com>
13086         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
13087         be a general_operand.  Dest for function value must be a pseudo.
13089 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
13091         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
13092         as SYMBOL_REFs from the constant pool.
13094 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
13096         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
13097         passed by invisible reference.
13099 2002-02-05  Richard Henderson  <rth@redhat.com>
13101         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
13103 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
13105         Implement using "base addresses" in insn operands as default.
13106         * config/mmix/mmix.c (mmix_conditional_register_usage): if
13107         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
13108         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
13109         used to read the rtx value.
13110         (mmix_target_asm_function_epilogue): Fix spacing.
13111         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
13112         (mmix_legitimate_address): Ditto.
13113         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
13114         should be loaded with a GETA insn.  Don't allocate needless extra
13115         char for nul termination and fix misleading comment.
13116         (mmix_print_operand_address): Handle constants if
13117         TARGET_BASE_ADDRESSES.
13118         (mmix_output_register_setting): Use base addressing if
13119         TARGET_BASE_ADDRESSES and the number of insns is 3.
13120         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
13121         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
13122         to use R as constraint, add LDA to match s.
13123         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
13124         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
13125         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
13126         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
13127         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
13128         order with other fixed registers.
13129         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
13130         other parameter/call-clobbered registers.
13131         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
13132         -mbase-addresses, -mno-base-addresses.
13133         (MMIX Options): Ditto.
13135 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13137         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
13139 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
13141         * config/rs6000/altivec.h: Change elem to _S_elem.
13143 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13145         * config/netbsd.h (WCHAR_TYPE): Define.
13146         (WCHAR_TYPE_SIZE): Ditto.
13147         (WINT_TYPE): Ditto.
13148         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
13149         (WCHAR_UNSIGNED): Ditto.
13150         (WCHAR_TYPE_SIZE): Ditto.
13151         (WINT_TYPE): Ditto.
13152         * config/arm/netbsd.h: Likewise.
13153         * config/i386/netbsd-elf.h: Likewise.
13154         * config/i386/netbsd.h: Likewise.
13155         * config/m68k/netbsd-elf.h: Likewise.
13156         * config/m68k/netbsd.h: Likewise.
13157         * config/ns32k/netbsd.h: Likewise.
13158         * config/sparc/netbsd.h: Likewise.
13159         * config/vax/netbsd.: Likewise.
13161 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
13163         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
13164         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
13165         (TARGET_INITIALIZER): this.
13166         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
13167         (BITFIELD_NBYTES_LIMITED): Markup fix.
13168         * tree.h (default_ms_bitfield_layout_p): Declare.
13169         (record_layout_info): Added prev_field.
13170         * tree.c (default_ms_bitfield_layout_p): New fn.
13171         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
13172         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
13173         * stor-layout.c: Include target.h.
13174         (start_record_layout): Initialize prev_field.
13175         (place_field): Handle MS bit-field layout, and disregard
13176         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
13177         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
13178         * Makefile.in (stor-layout.o): Adjust dependencies.
13180 2002-02-05  Jason Merrill  <jason@redhat.com>
13182         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
13184 2002-02-05  Andreas Jaeger  <aj@suse.de>
13186         * crtstuff.c: Fix comments.
13188 2002-02-05  Richard Henderson  <rth@redhat.com>
13190         PR fortran/3393
13191         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
13192         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
13194         PR fortran/3392
13195         * config/mips/mips.c (function_arg): Handle TImode.
13196         (function_arg_advance): Likewise.
13198 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13200         * config/rs6000/altivec.h (vec_step_help): Rename to
13201         __vec_step_help.
13203 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13205         * config/rs6000/altivec.h: Fix typos.
13207 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
13209         * config/arm/netbsd.h: Correct a comment.
13211 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13213         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
13214         building void typed builtins.
13216         * config/rs6000/altivec.h (vec_ld*): Fix typos.
13217         (vec_step): Implement for C++.
13219 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13221         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
13223 2002-02-04  Richard Henderson  <rth@redhat.com>
13225         * combine.c (nonzero_bits): Re-introduce special case for
13226         sp/fp/ap wrt REGNO_POINTER_ALIGN.
13228 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
13230         * doc/extend.texi: Warn about unsupported usage of altivec
13231         builtins.
13233         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
13234         (altivec_predicate_*): New.
13236         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
13237         Add C++ version of vec_*() functions.
13239         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
13240         (bdesc_2arg): Remove altivec predicates.
13241         (altivec_expand_builtin): Handle predicates.
13242         (altivec_init_builtins): Handle predicates.
13243         (altivec_expand_predicate_builtin): New.
13245 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13247         * pa.c (DO_FRAME_NOTES): Move forward.
13248         (store_reg): Revise handling of frame notes.
13249         (load_reg): Likewise.
13250         (set_reg_plus_d): Likewise.
13251         (hppa_expand_prologue): Likewise.
13252         (hppa_expand_epilogue): Likewise.
13254 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13256         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
13258 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13260         PR c/4475, c++/3780:
13261         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
13262         * c-common.h (SWITCH_TYPE): Define.
13263         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
13264         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
13265         Rename spareness variable to sparseness.
13266         (expand_end_case_type): Renamed from expand_end_case, use orig_type
13267         if non-NULL instead of TREE_TYPE (orig_index).
13268         * tree.h (expand_end_case_type): Renamed from expand_end_case.
13269         (expand_end_case): Define using expand_end_case_type.
13270         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
13271         to expand_end_case_type.
13272         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
13274 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13276         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
13277         (BIGGEST_ALIGNMENT): Change to 128.
13279 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13281         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
13283 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13285         * pa.md (call_internal_reg_64bit): Remove unused variable.
13287 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
13289         * config/arm/arm.h (machine_function): Add uses_anonymous_args
13290         field.
13291         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
13292         * config/arm/arm.c (current_function_anonymous_args): Delete,
13293         replace uses with cfun->machine->uses_anonymous_args.
13294         (arm_reorg): Do not reset uses_anonymous_args.
13296         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
13297         any geenral register.
13299 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
13301         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
13302         the entry block.
13304 2002-02-04  Richard Henderson  <rth@redhat.com>
13306         * combine.c (force_to_mode): Remove STACK_BIAS code.
13307         (nonzero_bits): Likewise.  Replace sp/fp special case with
13308         REGNO_POINTER_ALIGN.
13310         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
13311         (HARD_FRAME_POINTER_REGNUM): New.
13312         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
13313         (FIXED_REGS, CALL_USED_REGS): Update.
13314         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
13315         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
13316         (HARD_REGNO_NREGS): Update for SFP.
13317         (STACK_POINTER_OFFSET): Include bias here ...
13318         (FIRST_PARM_OFFSET): ... not here.
13319         (STACK_BIAS): Remove.
13320         (INIT_EXPANDERS): New.
13321         (STARTING_FRAME_OFFSET): Do not include bias.
13322         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
13323         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
13324         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
13325         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
13326         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
13327         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
13328         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
13329         (MUST_SAVE_REGISTER): Likewise.
13330         (sparc_flat_function_prologue): Likewise.
13331         (sparc_flat_function_epilogue): Likewise.
13332         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
13333         (sparc_init_modes): SFP is GENERAL_REGS.
13334         (sparc_builtin_saveregs): SFP does not have bias applied.
13336 2002-02-04  Richard Henderson  <rth@redhat.com>
13338         * config/alpha/alpha.c (current_function_is_thunk): Don't check
13339         current_function_is_thunk.
13340         (alpha_sa_mask): Distinguish between current_function_is_thunk
13341         called from ASM_OUTPUT_MI_THUNK and not.
13342         (alpha_does_function_need_gp): Thunks always need gp.
13343         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
13344         (alpha_output_mi_thunk_osf): New.
13345         * config/alpha/alpha-protos.h: Update.
13346         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
13348 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
13350         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
13351         function types, not when they're taken away.
13353 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
13355         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
13356         CODE_LABEL and jump table when replacing a table jump with a
13357         simple jump.
13359 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13361         * config/s390/s390-protos.h (legitimize_la_operand,
13362         s390_secondary_input_reload_class, s390_plus_operand,
13363         s390_expand_plus_operand): Add prototypes.
13365         config/s390/s390.c (s390_secondary_input_reload_class,
13366         s390_plus_operand, s390_expand_plus_operand): New functions.
13368         (struct s390_address): New member 'pointer'.
13369         (s390_decompose_address): Compute it.
13370         (legitimate_la_operand_p): Use it.
13371         (legitimize_la_operand): New function.
13372         (movti, movdi, movdf splitters): Call it.
13374         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
13375         (PREDICATE_CODES): Add s390_plus_operand.
13377         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
13378         (la_ccclobber): Allow GENERAL_REGS as output operand.
13380         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
13381         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
13382         (*la_64, *la_31, reload_indi, reload_insi): ... these.
13384 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
13386         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
13387         register names for regular asm () construct.
13389 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13391         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
13392         registers.
13394 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
13396         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
13397         pat for recog.
13399 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
13401         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
13402         constant pool to be identical by string address and index.
13404 2002-02-04  Anthony Green  <green@redhat.com>
13406         * output.h (SECTION_OVERRIDE): Define.
13407         * varasm.c (named_section): Obey SECTION_OVERRIDE.
13409 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13411         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
13412         by existing arm*-*-netbsd* (a.out) target.
13413         (ns32k-*-netbsdelf*): Likewise.
13414         (sparc-*-netbsdelf*): Likewise.
13415         (vax-*-netbsdelf*): Likewise.
13417 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
13419         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
13420         headers and libobjc headers.
13422 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
13424         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
13425         (_mingw.h): Remove duplicate include.
13427 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
13429         * config.gcc: Set cpu_type to m68k for 68010, as well.
13430         (m68010-*-netbsdelf*): New...
13431         (m68k*-*-netbsdelf*): ...targets.
13432         * config/m68k/netbsd-elf.h: New file.
13434 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13436         * config/h8300/h8300.c (hand_list): Move inside function_arg.
13438 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13440         * config/h8300/h8300.c (h8_push_ops): Move inside
13441         h8300_init_once.
13442         (h8_pop_ops): Likewise.
13443         (h8_move_ops): Likewise.
13445 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13447         * config/h8300/h8300.c (os_task): Make it static.
13448         (monitor): Likewise.
13449         (pragma_saveall): Likewise.
13451 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
13453         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
13454         constant is a valid sign-extension for Pmode.
13456 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13458         * config/h8300/h8300.c: Fix formatting.
13460 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13462         * config/h8300/h8300.md: Fix formatting.
13464 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13466         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
13467         predicates of operands[1].  Split the patterns for each
13468         processor variant.
13470 2002-02-02  Kazu Hirata  <kazu@hxi.com>
13472         * config/h8300/h8300.md (xor patterns): Tighten the predicates
13473         of operands[1] to register_operand.
13475 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
13477         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
13478         * cpphash.c (_cpp_init_hashtable): Similarly.
13479         * cppinit.c (cpp_create_reader): Default the signed_char flag.
13480         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
13481         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
13482         (cpp_handle_option): Handle the new options.
13483         * cpplex.c (cpp_interpret_charconst): Use new flag.
13484         * cpplib.h (struct cpp_options): New member signed_char.
13485         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
13486         (cpp_options): Handle -fsigned-char and -funsigned-char.
13487         (static_specs): Remove signed_char_spec.
13488         (do_spec1): Don't handle %c.
13489         * system.h: Poison SIGNED_CHAR_SPEC.
13490         * tradcif.y (yylex): Use flag_signed_char.
13491         * tradcpp.h (flag_signed_char): New.
13492         * tradcpp.c (flag_signed_char): New.
13493         (main): Handle new command-line options.
13494         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
13495 config:
13496         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
13497         * avr/avr.h: Remove old comments.
13498         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
13499         (CC1_SPEC): Pass -fsigned-char if -mic*.
13500         (SIGNED_CHAR_SPEC): Remove.
13501 doc:
13502         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
13504 2002-02-01  Eric Christopher  <echristo@redhat.com>
13506         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
13507         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
13508         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
13509         (ASM_OUTPUT_REG_POP): Ditto.
13511 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
13513         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
13514         patch.
13516 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
13518         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
13520 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
13522         PR c/5304:
13523         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
13524         unconditionally.
13526 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
13528         * cfganal.c: Include tm_p.h.
13529         (keep_with_call_p): Fix the test that determines if a register holds
13530         the return value of a call.
13532 2002-02-01  DJ Delorie  <dj@redhat.com>
13534         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
13535         we are given conflicting registers, switch to the other one we
13536         had allocated for us.
13537         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
13538         as TImode so we know when the "other" register is available.
13540 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
13542         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
13543         sparc/sparc_bi.h.
13545 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
13547         * cfganal.c (keep_with_call_p): New function.
13548         (flow_call_edges_add): Prevent splitting a block between a call and
13549         a single-set instruction that should be kept in the same block.
13551 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13553         * doc/install.texi (avr): Update outdated URL.
13555 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
13557         * config/stormy16/stormy16.md (pushqi): New.
13558         (popqi): New.
13559         (pushhi): New.
13560         (pophi): New.
13561         (movhi): Remove stack operands.
13562         (movqi): Likewise.
13563         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
13564         nonimmediate_nonstack_operand.
13565         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
13566         New.
13567         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
13568         New.
13570 2002-01-31  Jason Merrill  <jason@redhat.com>
13572         * Makefile.in (c-parse.c): Handle .output file.
13573         * objc/Make-lang.in (objc-parse.c): Likewise.
13575 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
13577         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
13578         the -me[lb] option is given.  Don't output the default flag
13579         twice.
13581 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
13583         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
13584         the primary source file; this has not been done yet.
13585         * c-decl.c (c_expand_body): Reset input_filename from
13586         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
13588 2002-01-31  Kazu Hirata  <kazu@hxi.com>
13590         * rtlanal.c (subreg_regno_offset): Do not use
13591         SUBREG_REGNO_OFFSET.
13592         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
13593         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
13595 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
13597         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
13598         version rather than GNATS version in --version output.
13600 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
13602         * ifcvt.c (noce_process_if_block): Make a copy of the destination
13603         when copying back from a temporary.
13605 2002-01-30  Richard Henderson  <rth@redhat.com>
13607         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
13608         and new_dest are the same.
13610 2002-01-30  Richard Henderson  <rth@redhat.com>
13612         PR opt/5076
13613         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
13614         * rtl.c (note_insn_name): Update.
13615         * emit-rtl.c (remove_unnecessary_notes): Kill it.
13616         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
13617         to perform loop rotation.
13618         (expand_exit_loop_top_cond): New.
13619         * tree.h (expand_exit_loop_top_cond): Declare it.
13620         * c-semantics.c (genrtl_while_stmt): Use it.
13621         (genrtl_for_stmt): Likewise.
13623 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
13625         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
13626         arguments to 64-bit boundaries on 64-bit ABIs.
13628 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
13630         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
13632 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
13634         * c-decl.c (grokdeclarator): Handle type being a typedef for an
13635         invalid type.
13637 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
13639         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
13640         * config/sparc/sparc_bi.h: Remove file.
13641         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
13643 2002-01-30  Richard Henderson  <rth@redhat.com>
13645         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
13647 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
13649         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
13651 2002-01-30  Jason Merrill  <jason@redhat.com>
13653         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
13654         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
13655         (reg_save): Use DW_CFA_offset_extended_sf instead.
13657         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
13659 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
13661         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
13662         in cselib_lookup.
13664 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
13666         * rs6000.md ("*call_value_local32"): Remove constraints.
13667         ("*call_value_local64"): Same.
13668         ("*call_value_indirect_nonlocal_aix32"): Same.
13669         ("*call_value_nonlocal_aix32"): Same.
13670         ("*call_value_indirect_nonlocal_aix64"): Same.
13671         ("*call_value_nonlocal_aix64"): Same.
13672         ("*call_value_nonlocal_sysv"): Same.
13674 2002-01-29  Richard Henderson  <rth@redhat.com>
13676         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
13678 2002-01-29  Richard Henderson  <rth@redhat.com>
13680         * expr.c (force_operand): Ignore flag_pic for detecting pic
13681         address loads.
13682         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
13683         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
13684         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
13685         instead of open-coded loop.
13686         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
13687         be fixed when in use.
13689 2002-01-29  Richard Henderson  <rth@redhat.com>
13691         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
13692         * sched-rgn.c (propagate_deps): Update them.
13693         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
13694         clobbers list when either gets too long.
13696 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
13698         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
13699         and INDEX_REGS the same as GENERAL_REGS.
13700         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
13702 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
13704         * tree.c (build_nonstandard_integer_type): Correct prototype.
13706 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
13708         * config/s390/s390.md (movstrsico, movstrdix_64,
13709         movstrsix_31): Remove, replace by ...
13710         (movstrdi_short, movstrsi_short, movstrdi_long,
13711         movstrsi_long): ... these.  New.
13712         (movstrdi, movstrsi): Adapt.
13714         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
13715         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
13716         Remove unnecessary CC clobber.
13717         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
13718         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
13720         (divmoddi4): Don't partially initialize TImode register.
13722 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
13724         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
13726 2002-01-29  Richard Henderson  <rth@redhat.com>
13728         * flow.c (print_rtl_and_abort): Remove.
13729         (print_rtl_and_abort_fcn): Remove.
13730         (verify_local_live_at_start): Use dump_bb instead.
13731         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
13732         (verify_wide_reg_1): Return 2 on mode test failure.
13734 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
13736         PR c/3325, c/3326, c/2511, c/3347
13737         * c-decl.c (enum_decl_context): Remove BITFIELD.
13738         (grokdeclarator): Take bitfield width as an input.
13739         Ensure bitfields are given the correct type.  Perform
13740         bitfield width validation with build_bitfield_integer_type
13741         rather than waiting for finish_struct.
13742         (grok_typename, grok_typename_in_parm_context, start_decl,
13743         push_parmdecl, grokfield, start_function): Update calls to
13744         grokdeclarator.
13745         (build_bitfield_integer_type): New function.
13746         (finish_struct): Move bitfield validation to grokdeclarator
13747         and build_bitfield_integer_type.
13748         * tree.c (build_nonstandard_integer_type): New function.
13749         * tree.h (build_nonstandard_integer_type): New prototype.
13750 objc:
13751         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
13753 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
13755         PR other/1502:
13756         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
13757         don't ignore unrecognized -W* options.
13758         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
13759         * cpplib.h (cpp_handle_option): Adjust prototype.
13760         * c-decl.c (c_decode_options): Pass 0 as last argument to
13761         cpp_handle_option.
13763         PR c/2896:
13764         * gcc.c (cpp_unique_options): Split from cpp_options.
13765         (cpp_options): Source cpp_unique_options.
13766         (default_compilers): Use cpp_unique_options instead of cpp_options
13767         when used together with cc1_options.
13768         (static_specs): Add cpp_unique_options.
13769         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
13770         when used together with cc1_options.
13772 2002-01-29  Kazu Hirata  <kazu@hxi.com>
13774         * config/h8300/h8300-protos.h: Update the prototype of
13775         output_a_shift.
13776         * config/h8300/h8300.c (output_a_shift): Remove an unused
13777         argument 'insn'.  Remove redundant code.
13778         * config/h8300/h8300.md: Adust to the new prototype of
13779         output_a_shift.
13781 2002-01-29  Kazu Hirata  <kazu@hxi.com>
13783         * config/h8300/h8300-protos.h: Update the prototypes of
13784         emit_a_rotate and expand_a_rotate.
13785         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
13786         first argument to 'enum rtx_code'.
13787         (expand_a_rotate): Likewise.
13789 2002-01-28  Kazu Hirata  <kazu@hxi.com>
13791         * config/h8300/h8300-protos.h: Update the prototype of
13792         output_simode_bld.
13793         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
13794         'log2'.
13795         * config/h8300/h8300.md: Adjust to the new prototype.
13797 2002-01-28  Kazu Hirata  <kazu@hxi.com>
13799         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
13800         redundant code.
13802 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13804         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
13805         is a fixed register before returning pic_offset_table_rtx.
13806         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
13807         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
13809 2002-01-28  Jason Merrill  <jason@redhat.com>
13811         * dwarf2.h: Sync with src version.
13813 2002-01-28  Paul Koning  <pkoning@equallogic.com>
13815         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
13816         BT_FN_VOID_PTR_VAR.
13817         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
13818         * doc/extend.texi (__builtin_prefetch): Update documentation:
13819         first argument is now const void ptr.
13821 2002-01-28  Kazu Hirata  <kazu@hxi.com>
13823         * config/h8300/h8300-protos.h: Remove an unused prototype.
13825 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
13827         * toplev.c (lang_independent_init): Round up identifier size.
13829 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
13831         * config.gcc: Revert previous change.
13833 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
13835         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
13837 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
13839         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
13840         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
13841         other non-elf netbsd config frags.
13842         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
13843         collect2 will does that.
13844         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
13845         shared-lib frobbing will work.
13847 2002-01-28  Kazu Hirata  <kazu@hxi.com>
13849         * config/h8300/h8300.h: Fix formatting.
13850         * config/h8300/h8300.md: Likewise.
13852 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
13854         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
13855         the old, removed AAA_standards fix.
13856         * fixinc/fixincl.x: Rebuilt.
13858 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
13860         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
13861         atexit call in crtbegin, hooked in after call to frame_dummy;
13862         register EH before registering __fini__start.
13864 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
13866         * config/rs6000/altivec.h: Remove spurious semicolons.
13868 2002-01-27  Kazu Hirata  <kazu@hxi.com>
13870         * config/h8300/h8300.md: Replace dead bit extraction patterns
13871         with ones that work.
13873 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13875         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
13876         if not STRICT_ALIGNMENT.
13877         * rtl.h (MEM_ALIGN): Likewise.
13879 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13881         * doc/invoke.texi (-fdump-translation-unit): Revert this
13882         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13884 2002-01-27  Kazu Hirata  <kazu@hxi.com>
13886         * config/h8300/h8300.md (define_constants): New.
13887         (anonymous patterns) Use defined constants appropriately.
13889 2002-01-27  Kazu Hirata  <kazu@hxi.com>
13891         * config/h8300/h8300.c (function_arg): Remove redundant code.
13893 2002-01-26  Richard Henderson  <rth@redhat.com>
13895         * sched-deps.c (reg_pending_uses_head): New.
13896         (reg_pending_barrier): Rename from reg_pending_sets_all.
13897         (find_insn_list): Don't mark inline.
13898         (find_insn_mem_list): Remove.
13899         (add_dependence_list, add_dependence_list_and_free): New.
13900         (flush_pending_lists): Replace only_write param with separate
13901         for_read and for_write parameters.  Update all callers.  Use
13902         add_dependence_list_and_free.
13903         (sched_analyze_1): Do not add reg dependencies here; just set
13904         the pending bits.  Use add_dependence_list.
13905         (sched_analyze_2): Likewise.
13906         (sched_analyze_insn): Replace schedule_barrier_found with
13907         reg_pending_barrier.  Add all dependencies for pending reg
13908         uses, sets, and clobbers.
13909         (sched_analyze): Don't add reg dependencies for calls, just
13910         set pending bits.  Use regs_invalidated_by_call.  Treat
13911         sched_before_next_call as a normal list, not a fake insn.
13912         (init_deps): No funny init for sched_before_next_call.
13913         (free_deps): Free pending mems lists.  Don't zero reg_last.
13914         (init_deps_global): Init reg_pending_uses.
13915         (finish_deps_global): Free it.
13916         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
13917         (find_insn_mem_list): Remove.
13918         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
13919         (propagate_deps): Use them.  Zero temp mem lists.
13921 2002-01-26  Richard Henderson  <rth@redhat.com>
13923         * Makefile.in (CRTSTUFF_CFLAGS): New.
13924         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
13925         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
13926         crtstuff.c instead of alpha assembly version.
13927         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
13928         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
13929         not FORCE_{INIT,FINI}_SECTION_ALIGN.
13930         (__do_global_dtors_aux): Mark used.
13931         (frame_dummy, __do_global_ctors_aux): Mark used.
13932         (fini_dummy, init_dummy): Remove.
13934         * config/alpha/crtbegin.asm: Remove file.
13935         * config/alpha/crtend.asm: Remove file.
13936         * config/alpha/t-crtbe: Remove file.
13937         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
13938         (LINK_EH_SPEC): New.
13940         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
13941         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
13942         calling constructors.
13943         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
13945         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
13946         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
13947         CRT_END_INIT_DUMMY hack.
13948         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
13949         FORCE_{INIT,FINI}_SECTION_ALIGN.
13951         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
13952         FORCE_{INIT,FINI}_SECTION_ALIGN.
13954         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
13955         invocation sequence.
13956         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
13958         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
13959         (FORCE_CODE_SECTION_ALIGN): New.
13961 2002-01-26  Richard Henderson  <rth@redhat.com>
13963         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
13965 2002-01-26  Richard Henderson  <rth@redhat.com>
13967         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
13968         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
13970 2002-01-26  Kazu Hirata  <kazu@hxi.com>
13972         * config/h8300/h8300.md: Remove bit extraction patterns that
13973         cannot be triggered.
13974         Restrict each bit extraction pattern to a variant on which the
13975         pattern is tested.
13977 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
13979         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
13981 2002-01-26  Kazu Hirata  <kazu@hxi.com>
13983         * config/h8300/h8300.md: Remove bit test patterns that cannot
13984         be triggered.
13985         Restrict each bit test pattern to a variant on which the
13986         pattern is tested.
13988 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
13990         * builtins.c (expand_builtin_strncat): Remove redundant check for
13991         INTEGER_CST.
13993 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
13995         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
13996         default setting.
13997         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
13998         existing setting.
14000 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14002         * dbxout.c (dbxout_init): Use assemble_name rather than just
14003         stripping off the first character.
14004         (dbxout_source_file): Likewise.
14006 2002-01-25  DJ Delorie  <dj@redhat.com>
14008         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
14009         using rtx_equal_p, not by comparing pointers.
14011 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
14013         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
14014         for PIC_OFFSET_TABLE_REGNUM.
14015         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
14017 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
14019         * config.gcc (x86_64-*-freebsd*): New target.
14020         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
14021         value.
14022         (i[34567]86-*-freebsd*): Don't include svr4.h.
14023         * config/i386/freebsd64.h: New file.
14025 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
14027         * config/alpha/x-vms (version): Make static.
14029         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
14030         in previous checkin.
14032         * Makefile.in (install-headers-cp): New target.
14033         * config.gcc (alpha-dec-*vms*): Install headers with
14034         install-headers-cp
14036 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
14038         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
14039         avoid it's copies.
14041 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14043         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
14044         of compare_tree_int.
14045         (expand_builtin_strncat): Likewise.
14046         * c-decl.c (finish_struct): Use tree_low_cst.
14047         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
14048         * tree.c (compare_tree_int): Likewise.
14050 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
14052         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
14053         adjustments even if they are implemented by more than two insns.
14055 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
14057         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
14058         * df.h (struct ref): Kill B.
14059         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
14061         * basic-block.h (PROP_EQUAL_NOTES): New flag.
14062         * flow.c (propagate_one_insn): Use it.
14063         (mark_used_regs): Handle NIL.
14065 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
14067         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
14068         to help folding.
14070 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
14072         * rs6000.md (prefetch): Make address V4SI mode so that the address
14073         is restricted to legitimate form for instruction.
14075 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
14077         * doc/install.texi (xtensa-*-elf): New target.
14078         (xtensa-*-linux*): New target.
14079         * doc/contrib.texi: Add myself.
14081 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
14083         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
14084         purpose register to hold an SImode (or smaller) value.
14086 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
14088         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
14089         registry only.
14090         * crtstuff.c: Likewise.
14092 2002-01-25  Kazu Hirata  <kazu@hxi.com>
14094         * config/h8300/h8300.md (negation patterns): Tighten
14095         predicates to register_operand.
14097 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
14099         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
14100         mode, not Pmode.
14102         * builtins.c (expand_builtin_prefetch): Same.
14104 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14106         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
14107         modes.
14109 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14111         * config/h8300/h8300.c (print_operand): Remove support for
14112         operand character 'A'.
14113         * config/h8300/h8300.md (three anonymous patterns): Replace
14114         operand character 'A' with either 'T' or 'S'.
14116 2002-01-24  Kazu Hirata  <kazu@hxi.com>
14118         * config/h8300/h8300.c (print_operand): Remove support for
14119         operand character 'U'.
14121 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
14123         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
14125 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
14127         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
14128         values to be assigned to the stack pointer.
14130 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
14132         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
14133         to const_double needs to be done right for big-endian systems.
14135 2002-01-24  Jason Merrill  <jason@redhat.com>
14137         PR c++/2432
14138         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
14139         to can_throw_internal.
14141 2002-01-23  Richard Henderson  <rth@redhat.com>
14143         * fold-const.c (fold): Change UINT_MAX test to check vs precision
14144         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
14146 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14148         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
14149         (symGOT2reg): Use them, then set as GOT value as unchanging.
14150         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
14151         as a temporary, if possible.
14152         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
14153         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
14155 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14157         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
14158         accept to accept 0x80 as operands[2].
14160 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
14162         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
14164 2002-01-23  Richard Henderson  <rth@redhat.com>
14166         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
14168 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
14170         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
14171         (parmlist_or_identifiers_1): Verify that only a parmlist follows
14172         an attribute.
14174 2002-01-23  Richard Henderson  <rth@redhat.com>
14176         * expr.c (move_by_pieces_1): Extend size before negation.
14178         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
14179         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
14180         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
14181         * config/m68k/t-m68kelf: Likewise.
14183 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
14185         * config/xtensa/elf.h: New file.
14186         * config/xtensa/lib1funcs.asm: New file.
14187         * config/xtensa/lib2funcs.S: New file.
14188         * config/xtensa/linux.h: New file.
14189         * config/xtensa/t-xtensa: New file.
14190         * config/xtensa/xtensa-config.h: New file.
14191         * config/xtensa/xtensa-protos.h: New file.
14192         * config/xtensa/xtensa.c: New file.
14193         * config/xtensa/xtensa.h: New file.
14194         * config/xtensa/xtensa.md: New file.
14195         * config.gcc (xtensa-*-elf*): New target.
14196         (xtensa-*-linux*): New target.
14197         * cse.c (canon_hash): Compare rtx pointers instead of register
14198         numbers.  This is required for the Xtensa port.
14199         * integrate.c (copy_insn_list): Handle case where the static
14200         chain is in memory and the memory address has to be copied to
14201         a register.
14202         * doc/invoke.texi (Option Summary): Add Xtensa options.
14203         (Xtensa Options): New node.
14204         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
14206 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14208         * diagnostic.c (internal_error): Do ICE suppression only
14209         when ENABLE_CHECKING is not defined.
14211         * c-typeck.c (require_complete_type): Return error_mark_node
14212         if type is error_mark_node.
14214 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
14216         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
14217         -Os and issue a warning.
14219 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
14221         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
14222         current (lack of) need for host configuration by hand.
14224         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
14225         references.  Documentation of some target macros moved from
14226         hostconfig.texi to tm.texi.
14228 2002-01-23  Will Cohen  <wcohen@redhat.com>
14230         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
14231         defined.
14233 2002-01-23  Kazu Hirata  <kazu@hxi.com>
14235         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
14236         operand[3].
14238 2002-01-23  Jason Merrill  <jason@redhat.com>
14240         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
14242         * function.c (assign_parms): Don't put args of inline functions
14243         into registers when not optimizing.
14245 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
14247         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
14248         (prologue_use): New pattern.
14249         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
14250         preference to gen_rtx_USE.
14251         (thumb_expand_prologue): Use gen_prologue_use in preference to
14252         gen_rtx_USE.
14253         (thumb_expand_epilogue): Use gen_prologue_use in preference to
14254         gen_rtx_USE.
14256 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
14258         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
14260 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
14262         PR c/3504
14263         * doc/extend.texi: Correct documentation of __alignof__.
14265 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
14267         * params.h: Rename arguments of DEFPARAM so that it will be
14268         recognized as a translation keyword.
14270 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14272         * extend.texi: Document altivec functions.
14273         Fix N-bit adjectives in X86 builtin documentation.
14275 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14277         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
14278         auto_inc_dec values.
14280 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
14282         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
14283         after backslash.
14284         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
14286 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
14288         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
14290 2002-01-22  Richard Henderson  <rth@redhat.com>
14292         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
14293         copy_insn not copy_rtx.
14295 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
14297         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
14298         "nonzero" as that might add "1" bits.  Ensure "constop" is
14299         properly sign extened.
14300         (force_to_mode): Tweak for sign extended constop.
14302 2002-01-22  Richard Henderson  <rth@redhat.com>
14304         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
14305         for_each_rtx instead of assuming we're already looking at the MEM.
14306         (split_small_symbolic_mem_operand): Likewise.
14307         * config/alpha/alpha.h (PREDICATE_CODES): Update.
14308         * config/alpha/alpha.md (small symbolic memory splitters): Update.
14310 2002-01-22  Richard Henderson  <rth@redhat.com>
14312         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
14313         sequence number for the literal.
14314         (divmoddi_internal_er): Likewise.
14316 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14318         PR java/4972
14319         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
14320         in LIBICONV variable.
14321         * configure: Regenerated.
14323 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
14325         * dependence.c (build_def_use): Remove array_idx.
14327         * dwarfout.c (last_filename): Remove.
14328         (output_compile_unit_die): Remove last_filename.
14330 2002-01-22  Roger Sayle  <roger@eyesopen.com>
14331             Richard Henderson  <rth@redhat.com>
14333         PR opt/3640
14334         * fold-const.c (fold): Optimize unsigned comparisons against
14335         UINT_MAX (and similar unsigned constants).
14337 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
14339         * Makefile.in (loop.o): Depend on OPTABS_H.
14340         * loop.c (emit_prefetch_instructions): Check the prefetch operand
14341         against the predicate.
14343         PR target/5379
14344         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
14345         for the address operand.
14347 2002-01-22  Richard Henderson  <rth@redhat.com>
14349         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
14351 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14353         PR other/5450
14354         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
14355         preprocessor flags.
14357 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
14359         * config.gcc (x86_64-*-netbsd*): New target.
14360         * config/i386/netbsd64.h: New file.
14362 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14364         * regrename.c (kill_value): Fix typo.
14366 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
14368         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
14370         * config/rs6000/rs6000.h: Same.
14372         * function.c (instantiate_virtual_regs): Remove
14373         STARTING_FRAME_PHASE.
14374         (assign_stack_local_1): Same.
14375         Calculate frame phase.
14377 2002-01-22  Nick Clifton  <nickc@redhat.com>
14379         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
14380         variable declaration to outer scope in order to simplify
14381         future extensions.
14382         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
14383         arm_hard_regno_mode_ok.
14384         * config/arm/arm-protos.h: Add a prototype for
14385         arm_hard_regno_mode_ok.
14386         * config/arm/arm.c (soft_df_operand): Remove now redundant
14387         check for DImode values using IP_REGNUM.
14388         (nonimmediate_soft_df_operand): Remove now redundant check for
14389         DImode values using IP_REGNUM.
14390         (arm_hard_regno_mode_ok): New function. New check: make sure
14391         that DImode values are not stored in IP_REGNUM.
14393         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
14394         note with a USE.
14395         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
14397 2002-01-22  Jason Merrill  <jason@redhat.com>
14399         * c-semantics.c (genrtl_compound_stmt): Only check nesting
14400         consistency if this COMPOUND_STMT is scoped.
14402 2002-01-22  Kazu Hirata  <kazu@hxi.com>
14404         * predict.c: Fix formatting.
14405         * print-tree.c: Likewise.
14406         * protoize.c: Likewise.
14407         * real.h: Likewise.
14408         * rtl.h: Likewise.
14409         * sbitmap.h: Likewise.
14410         * scan.c: Likewise.
14411         * sched-deps.c: Likewise.
14412         * sched-vis.c: Likewise.
14413         * sdbout.c: Likewise.
14414         * sibcall.c: Likewise.
14415         * ssa.c: Likewise.
14416         * ssa-ccp.c: Likewise.
14417         * ssa-dce.c: Likewise.
14418         * stmt.c: Likewise.
14419         * stor-layout.c: Likewise.
14420         * system.h: Likewise.
14422 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14424         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
14425         if fits in bounds of base type.
14427         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
14428         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
14429         (add_bound_info, default): If can't find a context, make a
14430         SAVE_EXPR.
14431         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
14433 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
14435         * c-typeck.c (parser_build_binary_op): If result from
14436         build_binary_op is ERROR_MARK just return error_mark_node without
14437         further processing.
14439 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
14441         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
14442         Split a.out-specific bits into...
14443         * config/netbsd-aout.h: ...this.
14444         * config/netbsd-elf.h: New file.
14445         * config/alpha/netbsd-elf.h: Remove.
14446         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
14447         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
14448         (STARTFILE_SPEC): Remove redundant definition.
14449         (ENDFILE_SPEC): Likewise.
14450         (LINK_SPEC): Likewise.
14451         (CPP_SPEC): Likewise.
14452         (ASM_SPEC): Likewise.
14453         (LIB_SPEC): Likewise.
14454         (SWITCH_TAKES_ARG): Likewise.
14455         (TARGET_MEM_FUNCTIONS): Likewise.
14456         (CPP_PREDEFINES): Redefine.
14457         (ASM_FINAL_SPEC): Remove redefinition.
14458         (ASM_COMMENT_START): Redefine.
14459         (FUNCTION_PROFILER): Define.
14460         (TARGET_VERSION): Redefine.
14461         Comment and formatting cleanup.
14462         * config/i386/netbsd.h: Include <netbsd-aout.h>.
14463         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
14464         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
14465         big- or little-endian.
14466         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
14467         * config.gcc (*-*-netbsd*): Add definitions common to all
14468         NetBSD configs.
14469         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
14470         gnu_ld definitions.  Add netbsd-elf.h to and remove
14471         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
14472         tmake_file, and don't lose previous tmake_file contents.
14473         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
14474         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
14475         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
14476         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
14477         (mipsel-*-netbsd*): Rename this to...
14478         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
14479         mips/little.h to tm_file for mips*el-*.
14480         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
14481         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
14482         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
14484 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14486         * pa-protos.h (reg_before_reload_operand): New function prototype.
14487         * pa.c (reg_before_reload_operand): New function implementation.
14488         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
14489         contraints to "*m".
14491 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14493         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
14495 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14497         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
14498         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
14499         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
14500         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
14501         (ENDFILE_SPEC): Undefine.
14502         (STARTFILE_SPEC): Redefine for PA.
14504 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
14506         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
14508 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
14510         * config.gcc: Add entries to supported PowerPC --with-cpu
14511         types.
14513 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
14515         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
14516         true for 64-bit mode only SSE registers in 32-bit mode.
14518 2002-01-21  Kazu Hirata  <kazu@hxi.com>
14520         * unwind-dw2.c: Fix formatting.
14521         * unwind-dw2-fde.c: Likewise.
14522         * unwind-dw2-fde.h: Likewise.
14523         * unwind-pe.h: Likewise.
14524         * varasm.c: Likewise.
14525         * varray.h: Likewise.
14527 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
14529         Remove workaround for register stack overwrite bug in mmix.
14530         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
14531         support for TARGET_REG_STACK_FILL_BUG.
14532         * config/mmix/mmix.h: Remove member has_call_without_parameters.
14533         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
14534         Delete.
14535         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
14536         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
14537         -mno-reg-stack-fill-bug-workaround.
14538         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
14539         machine member has_call_without_parameters.
14540         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
14541         -mreg-stack-fill-bug-workaround and
14542         -mno-reg-stack-fill-bug-workaround.
14543         (MMIX Options): Ditto.
14545 2002-01-21  Kazu Hirata  <kazu@hxi.com>
14547         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
14548         as appropriate.
14549         Remove redundant code.
14551 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
14553         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
14554         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
14555         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
14556         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
14557         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
14558         out target macro definitions and non-target-specific comments
14559         mostly taken from old versions of the manual.
14561 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14563         * config/h8300/h8300.h: Fix comment formatting.
14564         * config/ia64/aix.h: Likewise.
14565         * config/ia64/ia64-protos.h: Likewise.
14566         * config/ia64/ia64.c: Likewise.
14567         * config/ia64/ia64.h: Likewise.
14568         * config/ia64/ia64intrin.h: Likewise.
14569         * config/ia64/linux.h: Likewise.
14570         * config/ia64/unwind-aix.c: Likewise.
14571         * config/ia64/unwind-ia64.c: Likewise.
14573 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14575         * config/h8300/h8300.c: Revise comments about shift code.
14577 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14579         * config/h8300/h8300.c (function_arg): Update a comment.
14581 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14583         * config/h8300/h8300.md: Update the comments at the beginning
14584         of the file.
14586 2002-01-20  Kazu Hirata  <kazu@hxi.com>
14588         * config/i370/i370.c: Fix comment formatting.
14589         * config/i370/i370.h: Likewise.
14590         * config/i370/i370.md: Likewise.
14591         * config/i370/linux.h: Likewise.
14593 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14595         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
14597         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
14598         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
14599         in incomplete case.
14601 2002-01-20  Graham Stott  <grahams@redhat.com>
14603         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
14605 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14607         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
14609 2002-01-19  Tom Rix  <trix@redhat.com>
14611         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
14613 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
14615         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
14617         * function.c (assign_stack_local_1): Adjust x_frame_offset with
14618         STARTING_FRAME_PHASE.
14619         (STARTING_FRAME_PHASE): New.
14620         (instantiate_virtual_regs): Check saneness of
14621         STARTING_FRAME_PHASE.
14623         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
14625 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
14627         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
14629 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14631         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
14632         be used for bootstrapping GCC 3.0.
14634 2002-01-18  Kazu Hirata  <kazu@hxi.com>
14636         * config/h8300/h8300.md: Fix an insn length.
14638 2002-01-18  Kazu Hirata  <kazu@hxi.com>
14640         * bitmap.h: Fix comment formatting.
14641         * combine.c: Likewise.
14642         * cppfiles.c: Likewise.
14643         * c-pragma.h: Likewise.
14644         * c-typeck.c: Likewise.
14645         * df.c: Likewise.
14646         * dwarf2out.c: Likewise.
14647         * function.c: Likewise.
14648         * gcc.c: Likewise.
14649         * genattrtab.c: Likewise.
14650         * gthr-win32.h: Likewise.
14651         * haifa-sched.c: Likewise.
14652         * predict.c: Likewise.
14653         * rtlanal.c: Likewise.
14654         * rtl.h: Likewise.
14655         * unwind-dw2-fde.h: Likewise.
14656         * unwind-pe.h: Likewise.
14657         * vmsdbgout.c: Likewise.
14659 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14661         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
14662         if type_required and passed decl.
14664 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
14666         * config.gcc (cpu_type): Include altivec.h in powerpc
14667         extra_headers.
14668         Same for darwin.
14670         * config/rs6000/altivec.h: New.
14672 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
14674         * doc/install.texi (*-ibm-aix*): Update assembler and exception
14675         handling information.
14676         * doc/trouble.texi (Interoperation): Add libstdc++ information
14677         for AIX.
14678         (Misunderstandings): Add template instantiation and static template
14679         member information for AIX.
14681 2002-01-17  Jason Merrill  <jason@redhat.com>
14683         * dbxout.c (dbxout_type): Support const and volatile.
14685         * except.c (add_partial_entry): Remove backwards compatibility code.
14686         (end_protect_partials): Likewise.
14688 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
14690         * config/ia64/ia64.md (prologue_use): New.
14691         * config/ia64/ia64.c (ia64_expand_prologue): Use
14692         gen_prologue_use instead of gen_rtx_USE.
14693         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
14694         as CODE_FOR_pred_rel_mutex.
14695         (ia64_sched_reorder2): Likewise.
14697 2002-01-16  Eric Christopher  <echristo@redhat.com>
14699         * config/mips/r3900.h: Reformat.
14700         (SUBTARGET_CPP_SIZE_SPEC): Remove.
14701         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
14702         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
14703         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
14704         * config/mips/t-elf: Remove mips3 multilib.
14706 2002-01-16  H.J. Lu <hjl@gnu.org>
14708         * config/mips/linux.h: Include "mips/abi64.h".
14710 2002-01-16  H.J. Lu <hjl@gnu.org>
14712         * config/mips/t-linux: New.
14714         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
14716         * config/mips/linux.h: Don't include "gofast.h".
14717         (INIT_SUBTARGET_OPTABS): Removed.
14719 2002-01-16  Kazu Hirata  <kazu@hxi.com>
14721         * config/h8300/h8300-protos.h: Replace emit_a_shift with
14722         output_a_shift.
14723         * config/h8300/h8300.c: Likewise.
14724         * config/h8300/h8300.md: Likewise.
14726 2002-01-16  Kazu Hirata  <kazu@hxi.com>
14728         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
14729         spaces after an opcode name.
14730         (pushqi1_h8300hs): Likewise.
14731         (pushhi1_h8300hs): Likewise.
14733 2002-01-16  Kazu Hirata  <kazu@hxi.com>
14735         * doc/extend.texi: Replace "option" with "attribute"
14736         appropriately.
14738 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
14740         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
14741         (and:DI () (const_int -8)).
14742         (split_small_symbolic_mem_operand): Split
14743         (mem (and:DI () (const_int -8)).
14745 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
14747         PR target/5309:
14748         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
14749         same way as TYPE_IMUL.
14750         (ultrasparc_sched_reorder): Likewise.
14751         * config/sparc/sparc.md (type): Add comment to update
14752         ultrasparc_sched_reorder when making changes.
14754 2002-01-16  Kazu Hirata  <kazu@hxi.com>
14756         * doc/invoke.texi: Change the dump file name of block
14757         reordering pass from 28.bbro to 29.bbro.
14758         Mention -dk option.
14760 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
14762         * i386.md (minsf splitter): Fix pasto.
14764 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
14766         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
14767         to frame pointer initialisation instruction.
14768         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
14769         initialisation instruction.
14770         (soft_df_operand): Do not accept the IP register.
14771         (nonimmediate_soft_df_operand): Do not accept the IP register.
14773 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
14775         PR target/5357:
14776         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
14777         MASK_V8 being both set.
14779 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
14781         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
14782         insn for GOT register; add REG_MAYBE_DEAD notes instead.
14783         config/s390/s390.md (call, call_value): Add GOT register to
14784         CALL_INSN_FUNCTION_USAGE where needed.
14785         (call_exp, call_value_exp): New.
14787 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
14789         * config/arm/arm.c: General formatting tidy up.
14791 2002-01-16  Graham Stott  <grahams@redhat.com>
14793         * calls.c (try_to_integrate): Use "(size_t)" intermediate
14794         cast and when casting an integer literal to "rtx" pointer.
14795         (expand_call): Likewise.
14796         * flow.c (try_pre_increment): Likewise.
14797         (find_use_as_address): Likewise.
14798         * integrate.c (expand_iline_function): Likewise.
14799         * regmove.c (try_auto_increment): Likewise.
14801 2002-01-16  Graham Stott  <grahams@redhat.com>
14803         * sched-rgn.c (passed): Use sbitmap_free.
14804         (header): Likewise.
14805         (inner): Likewise.
14806         (in_queue): Likewise.
14807         (in_stack): Likewise.
14809 2002-01-15  Eric Christopher  <echristo@redhat.com>
14811         * flow.c (propagate_one_insn): Change to use fatal_insn.
14813 2002-01-15  Kazu Hirata  <kazu@hxi.com>
14815         * expmed.c (extract_fixed_bit_field): Remove unused code.
14816         * system.h: Poison SLOW_ZERO_EXTEND.
14817         * doc/tm.texi: Remove.
14818         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
14819         * config/arm/arm.h: Likewise.
14820         * config/avr/avr.h: Likewise.
14821         * config/clipper/clipper.h: Likewise.
14822         * config/convex/convex.h: Likewise.
14823         * config/d30v/d30v.h: Likewise.
14824         * config/dsp16xx/dsp16xx.h: Likewise.
14825         * config/elxsi/elxsi.h: Likewise.
14826         * config/fr30/fr30.h: Likewise.
14827         * config/h8300/h8300.h: Likewise.
14828         * config/i370/i370.h: Likewise.
14829         * config/i386/i386.h: Likewise.
14830         * config/m68k/m68k.h: Likewise.
14831         * config/mips/mips.h: Likewise.
14832         * config/ns32k/ns32k.h: Likewise.
14833         * config/pdp11/pdp11.h: Likewise.
14834         * config/pj/pj.h: Likewise.
14835         * config/s390/s390.h: Likewise.
14836         * config/sh/sh.h: Likewise.
14837         * config/stormy16/stormy16.h: Likewise.
14838         * config/v850/v850.h: Likewise.
14839         * config/vax/vax.h: Likewise.
14840         * config/we32k/we32k.h: Likewise.
14842 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
14844         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
14845         (altivec_lvsl): Change constraint to b.
14846         (altivec_lvsr): Same.
14847         (altivec_lvebx): Same.
14848         (altivec_lvehx): Same.
14849         (altivec_lvewx): Same.
14850         (altivec_lvxl): Same.
14851         (altivec_lvx): Same.
14852         (altivec_stvx): Add parallel.
14853         (altivec_stvxl): Same.
14854         (altivec_stvehx): Same.
14855         (altivec_stvebx): Same.
14856         (altivec_stvebx): Same.
14858 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
14860         * config.gcc: Change altivec.h to altivec-defs.h.
14862         * config/rs6000/altivec.h: Delete.
14864         * config/rs6000/altivec-defs.h: Add.
14866 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14868         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
14869         and UMOD modes.
14871         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
14872         less than or equal to eight bytes.
14874         * vax.md (andsi3): Remove constraints and change SET destination
14875         operand type to nonimmediate_operand.
14876         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
14877         when it is a CONST_INT.
14879 2002-01-15  Jason Merrill  <jason@redhat.com>
14881         * c-common.def (FILE_STMT): New code.
14882         * c-common.c (statement_code_p): It's a statement.
14883         * c-common.h (stmt_tree_s): Add x_last_filename.
14884         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
14885         (last_expr_filename): New macro.
14886         * c-semantics.c (begin_stmt_tree): Initialize it.
14887         (add_stmt): If the filename changed, also insert a
14888         FILE_STMT.
14889         (expand_stmt): Handle seeing one.
14891 2002-01-15  Eric Christopher  <echristo@redhat.com>
14893         * flow.c (propagate_one_insn): Add error message and print out
14894         insn for debugging.
14896 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
14898         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
14899         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
14900         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
14901         TRAMPOLINE_ALIGNMENT.
14902         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
14903         to be in bits.
14904         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
14905         PCC_BITFIELD_TYPE_MATTERS.
14906         * config/interix.h (STDC_VALUE): Remove.  Use
14907         STDC_0_IN_SYSTEM_HEADERS.
14908         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
14909         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
14910         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
14912 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14914         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
14915         not work on this platform currently.
14917 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
14919         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
14920         readonly_warning in _().
14922 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
14924         * gcc.c (delete_if_ordinary): Backout previous change.
14926 2002-01-15  Kazu Hirata  <kazu@hxi.com>
14928         * config/h8300/h8300.c (print_operand): Remove support for
14929         unused operand characters.
14931         * read-rtl.c: Fix formatting.
14932         * real.c: Likewise.
14933         * recog.c: Likewise.
14934         * regclass.c: Likewise.
14935         * regmove.c: Likewise.
14936         * reg-stack.c: Likewise.
14937         * reload1.c: Likewise.
14938         * rtlanal.c: Likewise.
14940 2002-01-15  Kazu Hirata  <kazu@hxi.com>
14942         * config/i386/i386.c: Fix formatting.
14944 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
14946         * c-typeck.c (process_init_element): Don't save_expr
14947         COMPOUND_LITERAL_EXPR if just its initializer will be used.
14949 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
14951         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
14952         emit optional traceback table if optimize_size or TARGET_ELF.
14953         * config/rs6000/rs6000.md (prefetch): New.
14955 2002-01-15  Andreas Jaeger  <aj@suse.de>
14957         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
14959 2002-01-15  Kazu Hirata  <kazu@hxi.com>
14961         * mips-tfile.c: Fix formatting.
14963 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
14965         * unroll.c (final_reg_note_copy): Fix previous commit.
14967 2002-01-14  Kazu Hirata  <kazu@hxi.com>
14969         * config/h8300/h8300-protos.h: Remove the prototype for
14970         eq_operator.
14971         * config/h8300/h8300.c (eq_operator): Remove.
14973 2002-01-14  Richard Henderson  <rth@redhat.com>
14975         * config/i386/i386.md (prefetch): Tidy.
14976         (prefetch_3dnow): Fix locality operand.
14978 2002-01-14  Richard Henderson  <rth@redhat.com>
14980         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
14981         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
14983 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
14985         * reload1.c (reload_combine): Pass reg_sum replacement through
14986         copy_rtx in loop performing multiple changes.
14988 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
14990         * except.c (remove_unreachable_regions): New.
14991         (free_eh_status): Clear exception_handler_labels.
14992         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
14993         (find_exception_handler_labels): Don't add the same label more than
14994         once.
14995         (remove_exception_handler_label): Don't die if
14996         find_exception_handler_labels hasn't been called for the current
14997         function yet.
14999 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
15001         * toplev.c (rest_of_compilation): Rebuild jump labels after
15002         gcse.
15004 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
15006         * doc/extend.texi: Move documentation of X86 built-in functions
15007         here.
15008         * doc/invoke.texi: From here.
15009         * doc/sourcebuild.texi: Document location of documentation for
15010         machine built-in functions.
15012 2002-01-13  Christopher Faylor  <cgf@redhat.com>
15014         * cppfiles.c (TEST_THRESHOLD): New macro.
15015         (SHOULD_MMAP): Ditto.
15016         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
15017         be used.
15019 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15021         * unroll.c (final_reg_note_copy): Properly handle
15022         REG_LABEL
15023         (unroll_loops): Fix LOOP_CONDITION heuristics.
15025 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
15027         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
15028         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
15030 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
15032         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
15033         threaded loop.
15035 2002-01-14  Tom Rix  <trix@redhat.com>
15037         * config/rs6000/rs6000.md: Fix typo with sradi.
15039 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
15041         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
15042         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
15043         (clrstrdi, clrstrsi): Adapt callers.
15045         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
15047         (movti splitter): Never use register 0 as base register.
15049 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
15051         * combine.c (simplify_shift_const): Always generate new rtx
15052         for shift expression instead of reusing given expression.
15054 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15056         * config/alpha/alpha.c (alpha_expand_mov): Don't call
15057         alpha_legitimize_address unless mode is Pmode.
15059 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
15061         * doc/md.texi (Modifiers): Document the '*' constraint for the
15062         user.
15064         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
15065         * doc/extend.texi (Function Attributes): 'interrupt' is valid
15066         for xstormy16 too.
15068 2002-01-13  Richard Henderson  <rth@redhat.com>
15070         * reload.c (find_reloads): Use a hard reg destination as reload reg
15071         for an input reload of the source.
15073 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15075         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
15076         more generic.
15078 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
15080         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15081         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
15083         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
15085 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15087         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
15089 2002-01-12  Tom Rix  <trix@redhat.com>
15091         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
15092         TARGET_POWERPC64.
15094 2002-01-12  Richard Henderson  <rth@redhat.com>
15096         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
15098         * doc/invoke.texi: Update Alpha options.
15100         * doc/invoke.texi: Update i386 built-in function lists.
15102 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
15104         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
15105         referencing outside.
15107 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15109         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
15110         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
15111         offsets, and change line folding.
15112         * optabs.c (expand_binop): Remove warnings.
15113         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
15115 2002-01-12  Graham Stott <grahams@redhat.com>
15117         * attribs.c (handle_deprecated_attribute): constify WHAT.
15118         * diagnostic.c (warn_deprecated_use): Add braces, fixes
15119         dangling else warning and constify WHAT.
15120         * except.h (struct function, struct inline_remap): Move
15121         struct tag forward defs before all prototypes.
15122         (duplicate_eh_regions): Whitespace.
15124 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
15126         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
15127         MODE_BASE_REG_CLASS.
15128         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
15130 2002-01-12  Richard Henderson  <rth@redhat.com>
15132         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
15133         (ix86_expand_vector_move): New.
15134         (bdesc_2arg): Remove andps, andnps, orps, xorps.
15135         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
15136         Remove old prefetch builtins.  Special case the logicals removed above.
15137         (ix86_expand_builtin): Likewise.
15138         (safe_vector_operand): Use V4SFmode, not TImode.
15139         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
15140         (ix86_expand_timode_binop_builtin): New.
15141         * config/i386/i386-protos.h: Update.
15142         * config/i386/i386.h (enum ix86_builtins): Update.
15143         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
15144         Use ix86_expand_vector_move in vector move expanders.
15145         (movti_internal, movti_rex64): Add xorps alternative.
15146         (sse_clrv4sf): Rename and adjust from sse_clrti.
15147         (prefetch): Don't work so hard.
15148         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
15149         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
15150         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
15152 2002-01-11  Richard Henderson  <rth@redhat.com>
15154         * config/i386/mmintrin.h: New file.
15155         * config/i386/xmmintrin.h: New file.
15156         * config.gcc (i?86-*-*): Add extra_headers.
15157         * simplify-rtx.c (simplify_unary_operation): Handle saturating
15158         truncation codes.
15159         (simplify_binary_operation): Handle saturating arithmetic codes.
15160         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
15161         not the lowpart subreg.
15162         (ix86_expand_builtin): Return a TImode dummy register instead of 0
15163         on error.
15164         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
15166 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15168         * conflict.c (conflict_graph_compute): Free regsets when finished.
15169         * ssa.c (compute_coalesced_reg_partition): Likewise.
15171 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15173         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
15174         every where we allocate a register.
15176 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15178         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
15179         * lcm.c (compute_earliest, compute_farthest): Likewise.
15181 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15183         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
15185 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
15187         * doc/rtl.texi (Insns): Fix 2 typos.
15189 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
15191         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
15192         options.  Use @table @gcctabopt for MMIX options.  Add index
15193         entries for MMIX options.  Start new paragraph with first
15194         heading of the machine-dependent options.
15196 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15198         PR other/5299
15199         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
15200         * combine.c (force_to_mode): Same.
15201         * reload1.c (clear_reload_reg_in_use): Same.
15203 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
15205         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
15206         and 'subtargets'.
15208 2002-01-11  Andreas Jaeger  <aj@suse.de>,
15209             Brad Lucier <lucier@math.purdue.edu>
15211         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
15212         mcpu.
15214 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
15216         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
15217         Protect with IN_LIBGCC.
15218         (LINK_EH_SPEC): Add required trailing space.
15220 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15222         * c-tree.h: Move function declarations so that they are listed
15223         under the filename which contains them.
15224         (check_identifier, finish_decl_top_level,
15225         lookup_name_current_level_global, shadow_record_fields): Remove.
15227 2002-01-11  Andreas Jaeger  <aj@suse.de>
15229         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
15230         march.
15232 2002-01-10  Richard Henderson  <rth@redhat.com>
15234         * config/alpha/alpha.c (print_operand): Add 'J'.
15235         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
15236         new operand with the sequence number for the lituse.  When splitting
15237         the insns, use gen_movdi_er_high_g and generate a sequence number.
15238         (gen_movdi_er_high_g): Print the sequence number if non-zero.
15240 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
15242         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
15243         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
15244         stvxl.
15245         (altivec_expand_builtin): Same.
15246         (altivec_expand_stv_builtin): New.
15248         * config/rs6000/rs6000.h (rs6000_builtins): Same.
15250         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
15251         ("altivec_lvehx"): New.
15252         ("altivec_lvewx"): New.
15253         ("altivec_lvxl"): New.
15254         ("altivec_lvx"): New.
15255         ("altivec_stvx"): New.
15256         ("altivec_stvebx"): New.
15257         ("altivec_stvehx"): New.
15258         ("altivec_stvewx"): New.
15259         ("altivec_stvxl"): New.
15261 2002-01-10  Richard Henderson  <rth@redhat.com>
15263         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
15264         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
15265         care not to delete instructions twice.
15267 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15269         * toplev.c: Don't declare environ (it's not used anywhere).
15270         * configure.in: Don't check for declaration of environ.
15271         * config/i386/xm-mingw32.h: Don't #define environ.
15272         * config.in, configure: Regenerate.
15274 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
15276         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
15277         * configure: Regenerate.
15279         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
15280         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
15281         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
15282         alpha/xm-vms.h.
15283         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
15284         LIMITS_H_TEST here, not in m68k/x-next.
15285         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
15286         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
15288         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
15289         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
15290         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
15292         * config/i386/x-djgpp: Renamed i386/t-djgpp.
15293         * config/m88k/x-dolph: Renamed m88k/t-dolph.
15294         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
15295         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
15296         replacement of quadlib.asm with quadlib.c.
15298         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
15299         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
15300         config/rs6000/xm-beos.h: Delete file.
15302         * config.gcc: Update to match above changes.
15304 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15306         * config/h8300/h8300.h: Fix comment typos.
15307         * config/h8300/h8300.md: Likewise.
15308         * config/h8300/lib1funcs.asm: Likewise.
15310 2002-01-10  Dale Johannesen  <dalej@apple.com>
15312         PR optimization/5269
15313         * unroll.c (precondition_loop_p): Make *increment be the correct
15314         sign when n_iterations known, to avoid confusing caller.
15316 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15318         * doc/extend.texi (deprecated): Fix a typo.
15320 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
15322         * basic-block.h (update_br_prob_note): Declare.
15323         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
15324         (try_forward_edges): Care negative frequencies and update note.
15325         (outgoing_edges_match): Tweek conditional merging heuristics.
15326         (try_crossjump_to_edge): use update_br_prob_note.
15327         * cfglayout.c (fixup_reorder_chain): Likewise.
15328         * cfrtl.c (update_br_prob_note): New.
15329         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
15331         * i386.c (ix86_decompose_address): Return -1 if address contains
15332         shift.
15333         (legitimate_address_p): Require ix86_decompose_address to return 1.
15335         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
15336         (cprop_insn): Likewise.
15338 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15340         * toplev.c: Fix formatting.
15341         * tree.c: Likewise.
15342         * tree-dump.c: Likewise.
15343         * unroll.c: Likewise.
15344         * unwind-dw2.c: Likewise.
15345         * unwind-dw2-fde.c: Likewise.
15346         * unwind-dw2-fde-glibc.c: Likewise.
15347         * unwind-sjlj.c: Likewise.
15349 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15351         * doc/invoke.texi: Document PDP-11 options.
15353 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15355         * config/h8300/h8300.h: Fix formatting.
15357 2002-01-10  Ira Ruben   <ira@apple.com>
15359         Add __attribute__ ((deprecated)).
15360         * extend.texi: Document __attribute__ ((deprecated)).
15361         * invoke.texi: Document -Wno-deprecated-declarations.
15362         * testsuite/g++.dg/other/deprecated.C: New C++ test.
15363         * testsuite/gcc.dg/deprecated.c: New C test.
15364         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
15365         (c_common_attribute_table): Add "deprecated" entry.
15366         (handle_deprecated_attribute): New function.
15367         * c-decl.c (deprecated_states): New enum.
15368         deprecated_state: State of "deprecated" handling.
15369         (start_decl): Set deprecated_state based on attributes.
15370         (grokdeclarator): Test for deprecated uses, propagate attribute.
15371         * c-typeck.c (build_component_ref): Test for deprecated fields.
15372         (build_external_ref): Test for deprecated primaries.
15373         * diagnostic.c (warn_deprecated_use) New function to issue
15374         warnings about __attribute__ ((depricated)) references.
15375         * flags.h (warn_deprecated_decl): Extern declared for
15376         -W[no-]deprecated-declarations option.
15377         * print-tree.c (print_node): Show deprecated flag status.
15378         * toplev.c (warn_deprecated_decl): Defined.
15379         (W_options): Added "deprecated-declaration".
15380         * toplev.h (warn_deprecated_use): Extern declared.
15381         * tree.h (struct tree_common): Define deprecated_flag.
15382         (TREE_DEPRECATED): New macro to access flag.
15383         * cp/call.c (build_call): Test for deprecated calls.
15384         * cp/class.c (add_implicitly_declared_members): Set global
15385         flag to tell grokdeclarator to not issue deprecated warnings.
15386         * cp/cp-tree.h: Add extern for adding_implicit_members.
15387         * cp/decl.c (deprecated_states): New enum.
15388         (start_decl): Set deprecated_state based on attributes.
15389         (grokdeclarator): Test for deprecated uses, propagate attribute.
15390         * cp/lex.c (do_identifier): Test for deprecated primaries.
15391         * cp/typeck.c (build_component_ref): Test for deprecated fields.
15393 2002-01-10  Ira Ruben   <ira@apple.com>
15395         Fix to assign attributes to inline member functions.
15396         * cp/decl.c (start_method): Handle attrlist.
15398 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15400         * combine.c (expand_field_assignment): Use subreg_lsb().
15402 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
15404         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
15405         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
15406         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
15407         Recurse for any operand of AND as long as constant is non-zero.
15409 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15411         * config/h8300/h8300.md: Remove constraints from expanders.
15413 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15415         * varasm.c: Fix formatting.
15416         * varray.c: Likewise.
15417         * vmsdbgout.c: Likewise.
15418         * xcoffout.c: Likewise.
15420 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
15422         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
15423         update edge probabilities to match.
15425 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
15427         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
15428         dependencies.
15429         * doc/languages.texi, doc/sourcebuild.texi: New files.
15430         * doc/configfiles.texi: Make a subsubsection.  Update.
15431         * doc/configterms.texi: Add @node.  Remove warning that this isn't
15432         instructions for building GCC.
15433         * doc/makefile.texi: Make a subsection.
15434         * doc/gccint.texi: Update.
15436 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
15438         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
15440 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
15442         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
15444 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
15446         * optabs.c (expand_fix): Look for wider integer modes first.
15448         * i386.md (mov?f): Avoid the fake const double trick for medium
15449         memory model.
15450         (min?f*/max?f*): Prohibit memory operands for i387 variant.
15451         (fop_df_4): Disable for SSE compilation.
15453 2002-01-10  Graham Stott  <grahams@redhat.com>
15455         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
15456         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
15458 2002-01-10  Richard Henderson  <rth@redhat.com>
15460         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
15462 2002-01-10  Richard Henderson  <rth@redhat.com>
15464         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
15465         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
15467 2002-01-10  Kazu Hirata  <kazu@hxi.com>
15469         * combine.c (can_combine_p): Fix a comment typo.
15471 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
15473         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
15474         empty list correctly.  Change loop index $t to $f for
15475         consistency with rest of Makefile.
15477 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
15479         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
15480         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15482         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
15483         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
15484         (altivec_init_builtins): Same.
15485         (altivec_expand_unop_builtin): Return NULL_RTX on error.
15486         (altivec_expand_binop_builtin): Same.
15487         (altivec_expand_ternop_builtin): Same.
15488         (bdesc_dst): New.
15490         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
15491         ("altivec_vctuxs"): Fix typo.
15492         ("altivec_vnmsubfp"): Same.
15493         ("altivec_dssall"): New.
15494         ("altivec_mfvscr"): New.
15495         ("altivec_dss"): New.
15496         ("altivec_lvsl"): New.
15497         ("altivec_lvsr"): New.
15498         ("altivec_dstt"): New.
15499         ("altivec_dstst"): New.
15500         ("altivec_dststt"): New.
15501         ("altivec_dst"): New.
15503         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
15504         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
15506 2002-01-09  Richard Henderson  <rth@redhat.com>
15508         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
15510 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
15512         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
15513         function.
15514         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
15515         prototype.
15516         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
15518 2002-01-09  Kazu Hirata  <kazu@hxi.com>
15520         * read-rtl.c: Fix formatting.
15521         * real.c: Likewise.
15522         * regclass.c: Likewise.
15523         * regrename.c: Likewise.
15524         * reg-stack.c: Likewise.
15525         * reload1.c: Likewise.
15526         * reload.c: Likewise.
15527         * rtl.c: Likewise.
15529 2002-01-09  Kazu Hirata  <kazu@hxi.com>
15531         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
15532         to extract items in the expr_list chain.
15534 2002-01-09  Richard Henderson  <rth@redhat.com>
15536         * config/vax/vax.c (vax_rtx_cost): Never abort.
15538         * config/vax/vax.h (REAL_ARITHMETIC): Define.
15540 2002-01-09  Jan Hubicka  <jh@suse.cz>
15542         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
15544 2002-01-09  Richard Henderson  <rth@redhat.com>
15546         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
15547         Unify code from various alternatives.
15549 2002-01-09  Richard Henderson  <rth@redhat.com>
15551         * regrename.c (copy_value): Ignore the copy if the source register
15552         is present in the value chain with a narrower mode.
15554 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
15556         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
15557         for the c4x target. Also improve layout.
15559 2002-01-09  Richard Henderson  <rth@redhat.com>
15561         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
15562         * config/m32r/m32r.md (and ior xor splitters): Swap operands
15563         to match insn patterns.
15565 2002-01-09  Richard Henderson  <rth@redhat.com>
15567         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
15568         (copyprop_hardreg_forward_1): Likewise.
15570 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15572         * pa.md (decrement_and_branch_until_zero): Change predicate for
15573         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
15575 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
15577         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
15578         gets undefined. For Darwin.
15580 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
15582         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
15584 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
15586         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
15588 2002-01-08  Richard Henderson  <rth@redhat.com>
15590         * regrename.c (copy_value): Ignore overlapping copies.
15592 2002-01-08  Richard Henderson  <rth@redhat.com>
15594         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
15595         as needed to avoid shared structure.
15597 2002-01-08  Kazu Hirata  <kazu@hxi.com>
15599         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
15600         H8/300H and H8/S.
15602 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15604         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
15605         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
15606         documentation of obsolete macros.
15607         * system.h: Poison these macros.
15608         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
15609         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
15610         config/c4x/c4x.h, config/clipper/clipper.h,
15611         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
15612         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
15613         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
15614         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
15615         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
15616         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
15617         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
15618         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
15619         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
15620         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
15621         config/sparc/sparc.h, config/stormy16/stormy16.h,
15622         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
15623         definitions and commented out definitions of obsolete macros.
15624         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
15625         of MAX_INT_TYPE_SIZE.
15627 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
15629         * config/s390/s390.c (s390_preferred_reload_class): Never
15630         return ADDR_REGS if it isn't a subset of the given class.
15631         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
15632         FP_REGS, but all superclasses as well.
15634         * config/s390/s390.c (s390_function_profiler): Fix thinko.
15636         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
15637         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
15638         must not be a const_int.
15640 2002-01-08  Richard Henderson  <rth@redhat.com>
15642         * Makefile.in (toplev.o): Depend on options.h.
15643         (gcc.o): Depend on specs.h.
15645 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
15647         * expr.c (store_expr): Convert VOIDmode constants back to target's
15648         mode.
15650 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15652         * doc/invoke.texi: Markup gcc as @command.  Refer to
15653         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
15654         of http://gcc.gnu.org/thanks.html.
15656 2002-01-08  Dale Johannesen  <dalej@apple.com>
15658         * config/rs6000/rs6000.md: Add missing int register
15659         target case to movdf_low.
15661 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
15663         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
15664         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
15665         (cppinit.o): Depend on except.h.
15666         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
15667         s-specs): New rules.
15669         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
15670         Don't create specs.h/options.h/gencheck.h here.  Remove
15671         unnecessary variable settings from last argument of AC_OUTPUT.
15672         * config.in, configure: Regenerate.
15673         * intl.c: Hardcode package name as "gcc".
15675         * cppinit.c: Include except.h.
15676         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
15677         appropriate.
15678         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
15679         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
15680         (!)USING_SJLJ_EXCEPTIONS.
15681         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
15683 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15685         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
15686         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
15687         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
15688         documentation of obsolete macros.
15689         * system.h: Poison these macros.
15690         * config/d30v/d30v.h, config/ns32k/encore.h,
15691         config/stormy16/stormy16.h: Remove definitions and commented out
15692         definitions of obsolete macros.
15694 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
15696         * objc/objc-act.c (handle_class_ref): Mark the declaration of
15697         %sobjc_class_ref_%s as used - to prevent unwanted compiler
15698         warnings.
15700 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
15702         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
15703         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
15704         to insn adjusting stack/frame pointer.
15705         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
15706         accept operands that cause the insn to be non-splittable.
15708 2002-01-08  Graham Stott  <grahams@redhat.com>
15710         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
15711         (C_TYPE_FIELDS_VOLATILE): Likewise.
15712         (C_TYPE_BEING_DEFINED): Likewise.
15713         (C_IS_RESERVED_WORD): Likewise.
15714         (C_TYPE_VARIABLE_SIZE): Likewise.
15715         (C_DECL_VARIABLE_SIZE): Likewise.
15716         (C_MISSING_PROTOTYPE_WARNED): Likewise.
15717         (C_SET_EXP_ORIGINAL_CODE): Likewise.
15718         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
15719         parenthesis.
15720         (C_DECL_ANTICIPATED): Likewise.
15721         (c_build_type_variant): Add parenthesis.
15723 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15725         * gcc.c (option_map): Remove --version.
15726         (process_command): Handle -fversion following the GNU Coding
15727         Standards.  Partially addresses PR other/704.
15729 2002-01-08  Graham Stott  <grahams@redhat.com>
15731         * combine.c (combine_instructions): Fix typo.
15733 2002-01-08  Graham Stott  <grahams@redhat.com>
15735         * debug.h: Use "tree" and "rtx" throughout.
15737         * debug.c: Likewise.
15739 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
15741         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
15742         constant pool, use the pool's version of the symbol instead.
15744 2002-01-07  Richard Henderson  <rth@redhat.com>
15746         * regrename.c (find_oldest_value_reg): Ignore the value chain if
15747         the original register was copied in a mode with a fewer number of
15748         hard registers than the desired mode.
15749         (copyprop_hardreg_forward_1): Likewise.
15750         (debug_value_data): Fix loop test.
15751         * toplev.c (parse_options_and_default_flags): Reenable
15752         -fcprop-registers at -O1.
15754 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
15756         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
15757         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
15759         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
15760         predicates.
15762         * config/rs6000/rs6000.md: Add altivec predicate patterns.
15764 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15766         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
15767         (pa_output_function_prologue): Output local label at the beginning of
15768         the prologue when profiling.
15769         (hppa_profile_hook): Use the local label rather than the function label.
15770         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
15772 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
15774         * config/rs6000/rs6000.c (print_operand): Remove extra space.
15775         (altivec_expand_unop_builtin): Fix thinko.
15776         (altivec_expand_binop_builtin): Same.
15777         (altivec_expand_ternop_builtin): Same.
15778         (altivec_expand_builtin): Same.
15780 2002-01-07  Richard Henderson  <rth@redhat.com>
15782         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
15784 2002-01-07  Jason Merrill  <jason@redhat.com>
15786         * unwind-dw2.c (execute_cfa_program): Use < again.
15788 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
15790         * predict.c (combine_predictions_for_insn): Avoid division by zero.
15792 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
15794         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
15795         Don't allow -1 - x -> ~x simplifications in the first pass.
15797 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
15799         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
15800         arguments.
15801         (altivec_expand_binop_builtin): Same.
15802         (altivec_expand_unop_builtin): Same.
15803         (print_operand): Fix typo.
15804         (bdesc_1arg): Add vupk* variants.
15806         * rs6000.h (rs6000_builtins): Add vupk* enums.
15808         * rs6000.md: Add altivec_vupk* variants.
15810 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
15812         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
15813         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
15814         and last update dates.
15816 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
15818         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
15820 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
15822         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
15823         * config/avr/avr.h (CPP_SPEC): Likewise.
15824         (LINK_SPEC): Likewise.
15825         (CRT_BINUTILS_SPECS): Likewise.
15826         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
15827         * doc/invoke.texi (AVR Options): Document them.
15829 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
15831         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
15832         LABEL_NUSES.
15834 2002-01-07  Graham Stott  <grahams@redhat.com>
15836         * config/i386/i386.h: Update copyright date.
15837         (HALF_PIC_PTR): Add parenthesis.
15838         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
15839         (CONSTANT_ALIGNMENT): Add parenthesis.
15840         (DATA_ALIGNMENT): Likewise.
15841         (LOCAL_ALIGNMENT): Likewise.
15842         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
15843         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
15844         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
15845         (HARD_REGNO_NREGS): Add paranethesis.
15846         (VALID_SSE_REG_MODE): Whitespace.
15847         (VALID_MMX_REG_MODE): Whitespace.
15848         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
15849         (ix86_hard_regno_mode_ok): Add parenthesis.
15850         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
15851         (RETURN_IN_MEMORY): Whitespace.
15852         (N_REG_CLASSES): Add parenthesis.
15853         (INTEGER_CLASS_P): Add parenthesis and wrap.
15854         (FLOAT_CLASS_P): Likewise.
15855         (SSE_CLASS_P): Likewise.
15856         (MMX_CLASS_P): Likewise.
15857         (MAYBE_INTEGER_CLASS_P): Likewise.
15858         (MAYBE_FLOAT_CLASS_P): Likewise.
15859         (MAYBE_SSE_CLASS_P): Likewise.
15860         (MAYBE_MMX_CLASS_P): Likewise.
15861         (Q_CLASS_P): Likewise.
15862         (GENERAL_REGNO_P): Uppercase macro parameter.
15863         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
15864         (FP_REGNO_P): Likewise.
15865         (ANY_FP_REGNO_P): Uppercase macro parameter.
15866         (SSE_REGNO_P): Likewise.
15867         (SSE_REGNO): Likewise.
15868         (SSE_REG_P): Likewise.
15869         (SSE_FLOAT_MODE_P): Likewise.
15870         (MMX_REGNO_P): Likewise.
15871         (MMX_REG_P):Likewise.
15872         (STACK_REG_P): Likewise.
15873         (NON_STACK_REG_P): Likewise.
15874         (STACK_TOP_P): Likewise.
15875         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
15876         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
15877         (SECONDARY_MEMORY_NEEDED): Likewise.
15878         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
15879         (MD_ASM_CLOBBERS): Whitespace and wrap.
15880         (MUST_PASS_IN_STACK): Whitespace and wrap.
15881         (RETURN_POPS_ARGS): Add parenthesis.
15882         (INIT_CUMULATIVE_ARGS): Likewise.
15883         (FUNCTION_ARG): Likewise.
15884         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
15885         (SETUP_INCOMING_VARARGS): Likewise.
15886         (BUILD_VA_LIST_TYPE):  Add parenthesis.
15887         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
15888         parenthsis.
15889         (EXPAND_BUILTIN_VA_ARG): Likewise.
15890         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
15891         (INITIALIZE_TRAMPOLINE): Add parenthesis.
15892         (INITIAL_ELIMINATION_OFFSET): Likewise.
15893         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
15894         (REGNO_OK_FOR_BASE_P): Likewise.
15895         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
15896         (REGNO_OK_FOR_DIREG_P): Likewise.
15897         (REG_OK_FOR_INDEX_P): Whitespace.
15898         (REG_OK_FOR_BASE_P): Whitespace.
15899         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
15900         parenthesis.
15901         (FIND_BASE_TERM): Fix typo.
15902         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
15903         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
15904         (SYMBOLIC_CONST; Whitespace.
15905         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
15906         (ENCODE_SECTION_INFO): Whitespace.
15907         (FINALIZE_PIC): Remove do { ... } while (0).
15908         (PROMOTE_MODE): Wrap in do { ... } while (0).
15909         (CONST_COSTS): Whitespace.
15910         (RTX_COSTS): Add paramethesis, whitespace and wrap.
15911         (REGISTER_MOVE_COST): Add parenthesis.
15912         (MEMORY_MOVE_COST): Likewise.
15913         (EXTRA_CC_MODES): Whitespace.
15914         (SELECT_CC_MODE): Add parenthesis and whitespace.
15915         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
15916         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
15917         (ASM_OUTPUT_LABEL): Add paramethesis.
15918         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
15919         (ASM_OUTPUT_REG_POP): Likewise.
15920         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
15921         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
15923         * config/i386/i386.c: Update copyright.
15924         (CHECK_STACK_LIMIT): Add parenthesis.
15925         (AT_BP): Uppercase macro parameter.
15926         (x86_64_int_parameter_registers): Constify.
15927         (x86_64_int_return_registers): Likewise.
15928         (ix86_compare_op0): Use rtx.
15929         (construct_container): Constify INTREG parameter.
15930         (function_arg): Use rtx.
15932         * diagnostic.h: Update copyright date.
15933         (output_buffer_state): Add parenthesis.
15934         (output_buffer_format_args): Likewise.
15936         * combine.c (combine_instructions): Replace XEXP (links, 0)
15937         with link.
15939 2002-01-06  H.J. Lu <hjl@gnu.org>
15941         * cfgcleanup.c (thread_jump): Fix 2 typos.
15943 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
15945         * config.gcc: Add support for --enable-altivec.
15947 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15949         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
15951 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
15953         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
15954         __objc_class_name_*.
15956 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
15958         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
15960 2002-01-06  Richard Henderson  <rth@redhat.com>
15962         * reorg.c (emit_delay_sequence): Remove death notes, not merely
15963         nop them out.  Increment label reference count for REG_LABEL.
15964         (fill_slots_from_thread): Frob label reference count around
15965         delete_related_insns.
15967 2002-01-05  Richard Henderson  <rth@redhat.com>
15969         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
15970         jump threading.
15972 2002-01-05  Richard Henderson  <rth@redhat.com>
15974         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
15975         * integrate.c (output_inline_function): Likewise.
15976         * toplev.c (rest_of_compilation): Do it here instead.  Move call
15977         to remove_unnecessary_notes after emitting abstract instance.
15978         Force an emitted nested function to have its parent emited as well.
15979         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
15980         for null.
15981         (rtl_for_decl_location): Do not look at reload data structures
15982         before reload has run.
15984 2002-01-05  Kazu Hirata  <kazu@hxi.com>
15986         * cse.c: Fix formatting.
15987         * dwarf2asm.c: Likewise.
15988         * dwarf2out.c: Likewise.
15989         * explow.c: Likewise.
15990         * expmed.c: Likewise.
15991         * function.c: Likewise.
15992         * gcov.c: Likewise.
15993         * gencheck.c: Likewise.
15994         * genrecog.c: Likewise.
15995         * ggc-common.c: Likewise.
15996         * ggc-page.c: Likewise.
15997         * global.c: Likewise.
15999 2002-01-05  Kazu Hirata  <kazu@hxi.com>
16001         * combine.c: Fix formatting.
16003 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
16005         PR middle-end/1557
16006         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
16008 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
16010         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
16011         as 1 for __powerpc64__ as well.
16013         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
16015         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
16016         return it.
16018 2002-01-05  Daniel Berlin  <dan@dberlin.org>
16020         * lcm.c: Revert change, due to performance regression it causes on
16021         SPEC because it's slightly more conservative (sigh, I hate
16022         edge-based LCM).
16024 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
16026         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
16028 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
16030         * doc/cppinternals.texi: Update.
16032 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
16034         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
16035         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
16036         negatives.
16037         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
16038         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
16039         kludge for pre-october-14th mmix versions to handle new-found bug
16040         with PUSHJ/PUSHGO and the register stack.
16041         * config/mmix/mmix.h (struct machine_function): Rename member
16042         has_call_value_without_parameters to has_call_without_parameters.
16043         All referers changed.
16044         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
16045         TARGET_MASK_BRANCH_PREDICT): New macros.
16046         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
16047         -mno-reg-stack-fill-bug-workaround.
16048         * config/mmix/mmix.md ("call"): Set struct machine member
16049         has_call_without_parameters.
16051 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
16053         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
16055 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
16057         * cfgcleanup.c: Include tm_p.h
16058         (mark_effect): Fix handling of hard register; fix handling of SET
16060 2002-01-04  Kazu Hirata  <kazu@hxi.com>
16062         * config/h8300/h8300.md (anonymous patterns): Check that
16063         operands are registers before using REGNO on them.
16065 2002-01-03  Roland McGrath  <roland@frob.com>
16067         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
16069 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
16071         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
16072         * c-common.h (genrtl_expr_stmt_value): Likewise.
16073         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
16074         (expand_expr_stmt_value): Add maybe_last argument.
16075         Don't warn about statement with no effect if it is the last statement
16076         in expression statement.
16077         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
16078         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
16079         expand_expr_stmt_value.
16080         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
16081         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
16082         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
16083         as maybe_last to expand_expr_stmt_value.
16085 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
16087         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
16088         be passed in, do not build it.
16089         (c_begin_if_stmt): New function.
16090         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16091         * c-common.h (c_expand_start_cond): Update prototype.
16092         (c_begin_if_stmt): Prototype new function.
16093         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
16094         * c-parse.in (if_prefix): Use c_begin_if_stmt,
16095         c_begin_while_stmt and c_finish_while_stmt_cond.
16097 2002-01-04  William Cohen  <wcohen@redhat.com>
16099         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
16100         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16101         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16102         * config/pa/som.h (ASM_FILE_START): Likewise.
16104 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
16106         * lcm.c: Include df.h.
16107         Add available_transfer_function prototype.
16108         (compute_available): Rework to use iterative dataflow framework.
16109         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
16110         with bb_info in df.h
16111         (available_transfer_function): New function.
16113         * Makefile.in (lcm.o): add df.h to dependencies.
16115 2002-01-04  Richard Henderson  <rth@redhat.com>
16117         * config/alpha/alpha.c (some_operand): Accept HIGH.
16118         (input_operand): Likewise; accept simple references to globals.
16119         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
16120         (alpha_const_double_ok_for_letter_p): Likewise.
16121         (alpha_extra_constraint): Likewise.
16122         (alpha_preferred_reload_class): Likewise.  Do not force
16123         symbolic constants to memory.
16124         (alpha_legitimate_address_p): Accept simple references
16125         to small_symbolic_operand.
16126         (alpha_legitimize_address): New arg scratch.  Be prepared to be
16127         called when no_new_pseudos.  Emit simple symbolic references.
16128         Split integers into low, high, and rest.
16129         (alpha_expand_mov): Use alpha_legitimize_address.
16130         (some_small_symbolic_mem_operand): New.
16131         (split_small_symbolic_mem_operand): New.
16132         * config/alpha/alpha-protos.h: Update.
16133         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
16134         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
16135         (EXTRA_CONSTRAINT): Likewise.
16136         (PREFERRED_RELOAD_CLASS): Likewise.
16137         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
16138         (PREDICATE_CODES): Update.
16139         * config/alpha/alpha.md: New post-reload splitters to convert
16140         simplfied symbolic operands to the form that references $29.
16141         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
16142         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
16144 2002-01-03  Richard Henderson  <rth@redhat.com>
16146         * local-alloc.c (function_invariant_p): Update commentary.
16148 2002-01-04  H.J. Lu <hjl@gnu.org>
16150         * toplev.c (rest_of_compilation): Fix a typo when calling
16151         cleanup_cfg.
16153 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16155         * c-common.c: Fix formatting.
16156         * diagnostic.c: Likewise.
16157         * doloop.c: Likewise.
16158         * dwarf2out.c: Likewise.
16160 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16162         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
16163         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
16165 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16167         * cpperror.c: Update comments and copyright.
16168         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
16169         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
16171 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
16173         * collect2.c (main): Use strcmp when testing for "-shared".
16175 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
16177         * cppmacro.c: Don't include intl.h.  Update comments.
16178         (new_number_token): Allocate enough buffer for 64-bit unsigned
16179         integers; update prototype.
16180         * cppmain.c: Update comments.
16182 2002-01-03  William Cohen  <wcohen@redhat.com>
16184         * function.h (struct function): Add profile.
16185         (current_function_profile): New.
16186         doc/extend.texi: Update documentation.
16187         * final.c (final_start_function): Use current_function_profile
16188         instead of profile_flag.
16189         (profile_after_prologue): Likewise.
16190         * function.c (expand_function_start): Likewise.
16191         (expand_function_start): Likewise.
16192         * config/alpha/alpha.c (direct_call_operand):
16193         (alpha_does_function_need_gp): Likewise.
16194         (alpha_expand_prologue): Likewise.
16195         * config/arm/arm.c (arm_expand_prologue): Likewise.
16196         thumb_expand_prologue: Likewise.
16197         * config/d30v/d30v.c (d30v_stack_info): Likewise.
16198         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
16199         (fr30_expand_prologue): Likewise.
16200         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
16201         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
16202         * config/i386/i386.h (FINALIZE_PIC): Likewise.
16203         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
16204         * config/i960/i960.c (i960_output_function_prologue): Likewise.
16205         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
16206         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
16207         (m32r_expand_prologue): Likewise.
16208         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
16209         (m88k_expand_prologue): Likewise.
16210         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
16211         * config/mips/mips.c (compute_frame_size): Likewise.
16212         (mips_expand_prologue): Likewise.
16213         (mips_can_use_return_insn): Likewise.
16214         * config/pa/elf.h (ASM_FILE_START): Likewise.
16215         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
16216         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
16217         * config/pa/som.h (ASM_FILE_START): Likewise.
16218         * config/romp/romp.c (romp_using_r14): Likewise.
16219         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
16220         (rs6000_stack_info): Likewise.
16221         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
16222         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
16223         * config/v850/v850.c (compute_register_save_size): Likewise.
16225 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
16227         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
16228         gen_lowpart_common fails, use gen_lowpart_SUBREG.
16230 2002-01-03  Turly O'Connor  <turly@apple.com>
16232         * darwin.c (machopic_output_possible_stub_label): Don't generate
16233         stub routines for pseudo-stubs which we've just defined.
16235 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16237         * builtins.c: Fix formatting.
16238         * c-typeck.c: Likewise.
16239         * combine.c: Likewise.
16240         * expr.c: Likewise.
16241         * loop.c: Likewise.
16243 2002-01-03  Andreas Schwab  <schwab@suse.de>
16245         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
16246         and return true if _cpp_push_next_buffer pushed a new include
16247         file.
16248         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
16249         _cpp_pop_file_buffer did not push a new file.
16250         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
16252 2002-01-02  Eric Christopher  <echristo@redhat.com>
16254         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
16255         FIND_REG_INC_NOTE call. Update copyright.
16256         * loop.c (canonicalize_condition): Ditto.
16257         * reorg.c (delete_scheduled_jump): Ditto.
16259 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16261         * gcse.c: Fix formatting.
16263 2002-01-03  Graham Stott  <grahams@redhat.com>
16265         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
16266         forward defs for struct tags rtx_def, union_tree, rtvec_def
16267         also output corresponding typedefs for rtx, tree, and rtvec.
16269         * system.h: Move forward defs for struct tags rtx_def, union_tree,
16270         rtvec_def along with corresponding typedefs for rtx, tree, and
16271         rtvec to config.h, hconfig.h, tconfig.h.
16273 2002-01-03  Graham Stott  <grahams@redhat.com>
16275         * tree.h: Update copyright date.
16276         (IS_EXPR_CODE_CLASS): Add parenthesis.
16277         (TREE_SET_CODE): Add whitespace.
16278         (TREE_CHECK): Add parenthesis.
16279         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
16280         (CST_OR_CONSTRUCTOR_CHECK):
16281         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
16282         (TREE_SYMBOL_REFERENCED): Whitespace.
16283         (INT_CST_LT): Likewise.
16284         (INT_CST_LT_UNSIGNED): Likewise.
16285         (tree_real_cst): Unwrap comment.
16286         (tree_string): Likewise.
16287         (tree_complex): Likewise.
16288         (IDENTIFIER_POINTER): correct cast.
16289         (SAVE_EXPR_CONTEXT): Whitespace.
16290         (EXPR_WFL_FILENAME_NODE): Likewise.
16291         (EXPR_WFL_FILENAME): Remove parenthesis.
16292         (DECL_ORIGIN): Add parenthesis.
16293         (DECL_FROM_INLINE): Use NULL_TREE.
16294         (build_int_2): Whitespace.
16295         (build_type_variant): Add parenthesis.
16297         * gcc/jcf-parse.c: Update copyright date.
16298         (yyparse): Constify resource_filename.
16300 2002-01-03  Graham Stott  <grahams@redhat.com>
16302         * rtl.h: Update copyright date.
16303         (RTL_CHECK1): Wrap long line.
16304         (RTL_CHECK2): Likewise.
16305         (RTL_CHECKC1): Wrap long line and whitespace.
16306         (RTL_CHECKC2): Likewise.
16307         (XWINT): Whitespace.
16308         (XINT): Likewise.
16309         (XSTR): Likewise.
16310         (XEXP): Likewise.
16311         (XVEC): Likewise.
16312         (XMODE): Likewise.
16313         (XBITMAP): Likewise.
16314         (XTREE): Likewise.
16315         (XBBDEF): Likewise.
16316         (XTMPL): Likewise.
16317         (X0WINT): Likewise.
16318         (X0INT):Likewise.
16319         (X0UINT): Likewise.
16320         (X0STR): Likewise.
16321         (X0EXP): Likewise.
16322         (X0VEC): Likewise.
16323         (X0MODE): Likewise.
16324         (X0BITMAP): Likewise.
16325         (X0TREE): Likewise.
16326         (X0BBDEF): Likewise.
16327         (X0ADVFLAGS): Likewise.
16328         (X0CSELIB): Likewise.
16329         (X0MEMATTR): Likewise.
16330         (XCWINT): Likewise.
16331         (XCINT): Likewise.
16332         (XCUINT): Likewise.
16333         (XCSTR): Likewise.
16334         (XCEXP): Likewise.
16335         (XCVEC): Likewise.
16336         (XCMODE): Likewise.
16337         (XCBITMAP): Likewise.
16338         (XCTREE): Likewise.
16339         (XCBBDEF): Likewise.
16340         (XCADVFLAGS): Likewise.
16341         (XCCSELIB): Likewise.
16342         (XC2EXP): Likewise.
16343         (INSN_UID): Likewise.
16344         (PREV_INSN): Likewise.
16345         (PATTERN): Likewise.
16346         (INSN_CODE): Likewise.
16347         (PUT_REG_NOTE_KIND): Likewise.
16348         (CODE_LABEL_NUMBER): Likewise.
16349         (NOTE_SOURCE_FILE): Likewise.
16350         (NOTE_BLOCK): Likewise.
16351         (NOTE_EH_HANDLER): Likewise.
16352         (NOTE_RANGE_INFO): Likewise.
16353         (NOTE_LIVE_INFO): Likewise.
16354         (NOTE_BASIC_BLOCK): Likewise.
16355         (NOTE_EXPECTED_VALUE): Likewise.
16356         (NOTE_LINE_NUMBER): Likewise.
16357         (LABEL_NAME): Likewise.
16358         (LABEL_NUSES): Likewise.
16359         (LABEL_ALTERNATE_NAME): Likewise.
16360         (ADDRESSOF_DECL): Likewise.
16361         (JUMP_LABEL): Likewise.
16362         (LABEL_NEXTREF): Likewise.
16363         (REGNO): Likewise.
16364         (ORIGINAL_REGNO: Likewise.
16365         (HARD_REGISTER_NUM_P): Add parenthesis.
16366         (SUBREG_REG): Whitespace.
16367         (SUBREG_BYTE): Likewise.
16368         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
16369         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
16370         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
16371         (ASM_OPERANDS_INPUT_VEC): Likewise.
16372         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
16373         (ASM_OPERANDS_INPUT): Likewise.
16374         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
16375         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
16376         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
16377         (ASM_OPERANDS_INPUT_MODE): Likewise.
16378         (ASM_OPERANDS_SOURCE_FILE): Likewise.
16379         (ASM_OPERANDS_SOURCE_LINE): Likewise.
16380         (MEM_SET_IN_STRUCT_P): Minor reformat.
16381         (TRAP_CONDITION): Whitespace.
16382         (TRAP_CODE): Likewise.
16383         (COND_EXEC_TEST): Likewise.
16384         (COND_EXEC_CODE): Likewise.
16385         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
16386         (PHI_NODE_P): Add parenthesis.
16387         (plus_constant): Whitespace and add parenthesis.
16389 2002-01-03  Kazu Hirata  <kazu@hxi.com>
16391         * config/avr/avr.c: Fix comment typos.
16392         * config/c4x/c4x.md: Likewise.
16393         * config/dsp16xx/dsp16xx.h: Likewise.
16394         * config/dsp16xx/dsp16xx.md: Likewise.
16395         * config/i386/i386.md: Likewise.
16396         * config/ia64/ia64.c: Likewise.
16397         * config/m32r/m32r.h: Likewise.
16398         * config/m68hc11/m68hc11.md: Likewise.
16399         * config/mmix/mmix.c: Likewise.
16400         * config/mn10200/mn10200.c: Likewise.
16401         * config/romp/romp.c: Likewise.
16402         * config/sh/sh.c: Likewise.
16403         * config/stormy16/stormy16.c: Likewise.
16404         * config/stormy16/stormy16.h: Likewise.
16405         * config/stormy16/stormy16.md: Likewise.
16407 2002-01-03  Graham Stott  <grahams@redhat.com>
16409         * loop.h: Update copyright date.
16410         (LOOP_MOVABLES): Fix typo.
16411         (LOOP_REGS): Likewise.
16412         (LOOP_IVS): Likewise.
16414 2002-01-03  Graham Stott  <grahams@redhat.com>
16416         * cppinit.c: Update copyright date.
16417         Don't include output.h
16418         * Makefile.in: Update copyright date.
16419         Update dependency.
16421 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
16423         PR c/5226
16424         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
16425         (-pthread) Add to RS/6000 options.
16427 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16429         * except.c: Fix comment typos.
16430         * loop.c: Likewise.
16431         * varasm.c: Likewise.
16432         * doc/tm.texi: Fix a typo.
16434 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
16436         * c-typeck.c (output_init_element): Allow initializing static storage
16437         duration objects with compound literals.
16439 2002-01-02  Richard Henderson  <rth@redhat.com>
16441         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
16442         after abusing it.
16444 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
16446         * gcc.c (default_compilers): Const-ify.
16447         * mips-tdump.c (stab_names): Likewise.
16448         * mips-tfile.c (map_coff_types, map_coff_storage,
16449         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
16450         pseudo_ops_t, pseudo_ops): Likewise.
16451         * protoize.c (default_include): Likewise
16453         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
16454         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
16455         Add array size in declaration.
16456         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
16457         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
16458         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
16459         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
16460         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
16461         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
16462         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
16463         emtens, make_nan): Const-ify.
16464         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
16465         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
16467 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
16469         * config.gcc (ia64-*-*): Set extra_headers.
16470         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
16471         * config/alpha/t-osf: Remove.
16472         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
16474 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
16476         * config/rs6000/t-aix43: Revert previous change.
16478 2002-01-02  Jason Merrill  <jason@redhat.com>
16480         * c-decl.c (c_expand_body): Call outlining_inline_function when
16481         emitting an inline function out of line.
16483 2002-01-02  Richard Henderson  <rth@redhat.com>
16485         * dwarf2out.c (limbo_die_node): Add created_for member.
16486         (new_die): New argument created_for.  Update all callers.
16487         (mark_limbo_die_list): New.
16488         (dwarf2out_init): Register limbo_die_list as a root.
16489         (dwarf2out_finish): Force insert limbo dies into their function
16490         context.
16492 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
16494         PR c++/5089
16495         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
16497 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16499         * config/h8300/fixunssfsi.c: Update copyright.
16500         Fix comment typos.
16501         Fix formatting.
16502         * config/h8300/h8300.c: Update copyright.
16503         Eliminate warnings.
16505 2002-01-02  Kazu Hirata  <kazu@hxi.com>
16507         * config/romp/romp.c: Fix comment formatting.
16508         * config/romp/romp.h: Likewise.
16509         * config/romp/romp.md: Likewise.
16510         * config/s390/s390.c: Likewise.
16511         * config/stormy16/stormy16.c: Likewise.
16512         * config/stormy16/stormy16.h: Likewise.
16514 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
16516         * c-common.h (genrtl_expr_stmt_value): Declare.
16517         * c-semantics.c (genrtl_goto_stmt): Redirect to...
16518         (genrtl_goto_stmt_value): ... this new function.  Pass new
16519         argument down to expand_expr_stmt_value, taking
16520         TREE_ADDRESSABLE into account.
16521         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
16522         STMT_EXPR as addressable, i.e., one whose result we want.
16523         * expr.c (expand_expr): Don't save expression statement value
16524         of labeled_blocks or loop_exprs.
16525         * stmt.c (expand_expr_stmt): Redirect to...
16526         (expand_expr_stmt_value): ... this new function.  Use new
16527         argument to tell whether to save expression value.
16528         (expand_end_stmt_expr): Reset last_expr_type and
16529         last_expr_value if we don't have either.
16530         * tree-inline.c (declare_return_variable): Mark its use
16531         statement as addressable.
16532         * tree.h: Document new use of TREE_ADDRESSABLE.
16533         (expand_expr_stmt_value): Declare.
16535 2002-01-01  Tom Rix  <trix@redhat.com>
16537         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
16538         rs6000_emit_allocate_stack.
16540 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
16542         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
16543         ${srcdir}/ginclude/ to every entry in extra_headers.
16544         * configure: Regenerate.
16545         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
16546         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
16547         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
16548         * ginclude/proto.h: Rename to config/convex/proto.h.
16550 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16552         * attribs.c (handle_vector_size_attribute): Use host_integerp
16553         and tree_int_cst; remove warnings.
16554         * caller-save.c (insert_restore): Add cast to get rid of warning.
16555         (insert_save): Likewise.
16556         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
16557         * regmove.c (find_matches): Add temporary var to kill a warning.
16559 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
16561         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
16562         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
16563         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
16564         (vms-dwarf2eh.o): Add Makefile rule.
16565         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
16566         * config/alpha/vms-dwarf2eh.asm: New file.
16568         * gcc.c (delete_if_ordinary): Delete all versions.
16570 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
16572         * config/mmix/mmix.md: Update FIXME to not mention
16573         define_constants.
16574         (MMIX_rJ_REGNUM): New define_constants constant.
16575         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
16576         "*movdicc_real"): Adjust contraints formatting.
16577         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
16578         for branch prediction.
16579         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
16580         output template.
16581         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
16582         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
16583         number.  Delete related FIXMEs.
16584         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
16585         from number to MMIX_rJ_REGNUM.
16586         (TARGET_MASK_BRANCH_PREDICT): New.
16587         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
16588         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
16589         value.  Add -mbranch-predict and -mno-branch-predict.
16590         (TARGET_VERSION): Drop date.
16591         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
16592         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
16593         for finding out global symbols.
16594         (mmix_asm_output_labelref): Revert condition for global symbol.
16595         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
16596         (mmix_print_operand_punct_valid_p): A '+' is valid.
16598 See ChangeLog.6 for earlier changes.