c-common.c (c_common_post_options): Warn if -Wformat-zero-length is used without...
[official-gcc.git] / gcc / ChangeLog
blob9951dc1a97938954316823d8a1185a8ad4809a71
1 2002-05-18  Jason Thorpe  <thorpej@wasabisystems.com>
3         * c-common.c (c_common_post_options): Warn if -Wformat-zero-length
4         is used without -Wformat.  
5         * c-common.h (warn_format_zero_length): Declare extern.
6         * c-decl.c (warn_options): Add "format-zero-length".
7         * c-format.c (warn_format_zero_length): Declare.
8         (set_Wformat): Set warn_format_zero_length for -Wformat.
9         (check_format_info): Only warn about zero-length formats if
10         warn_format_zero_length is true.  Include the format type
11         name in the warning message.
12         * doc/invoke.texi: Document -Wformat-zero-length.
13         * testsuite/gcc.dg/format/zero-length-1.c: New test.
15 2002-05-18  Kazu Hirata  <kazu@cs.umass.edu>
17         * timevar.c: Fix formatting.
18         * tlink.c: Likewise.
19         * toplev.c: Likewise.
20         * tree-dump.c: Likewise.
21         * tree-inline.c: Likewise.
23 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
25         * cppinit.c (cpp_post_options): If preprocessed, turn off
26         traditional.  If traditional, turn off column numbers.
27         * cpplib.c (cpp_push_buffer): Lex from stage 3 if traditional.
28         * cpptrad.c (handle_newline): Update line_base.
29         (skip_comment): Handle -Wcomment.
31 2002-05-17  Zack Weinberg  <zack@codesourcery.com>
33         * cppinit.c (struct builtin): Remove unused fields.
34         (CPLUS, BUILTIN, OPERATOR, O, builtin_array_end): Kill.
35         (operator_array): New - was second half of builtin_array.
36         (init_builtins): Simplify loop over builtin_array/operator_array.
38 2002-05-18  Neil Booth  <neil@daikokuya.demon.co.uk>
40         * defaults.h (UNIQUE_SECTION): Remove.
41         * system.h (UNIQUE_SECTION, SELECT_SECTION): Poison.
43 2002-05-17  Richard Henderson  <rth@redhat.com>
45         * expr.c (init_expr_once): Don't use start/end_sequence.
46         Use rtx_alloc instead of emit_insn.
47         * toplev.c (lang_dependent_init): Run init_expr_once here ...
48         (lang_independent_init): ... not here.
50 2002-05-17  Jason Thorpe  <thorpej@wasabisystems.com>
52         * config/sh/lib1funcs.asm (GLOBAL): Use __USER_LABEL_PREFIX__.
54 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
56         * config/avr/avr.c (avr_regs_to_save): New function.  Also check
57         for fixed registers, possibly used for global register variables.
58         (initial_elimination_offset, avr_output_function_prologue,
59         avr_output_function_epilogue):  Move common code to avr_regs_to_save.
61 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
63         * Makefile.in: Update for cpptrad.c.
64         * cpphash.h (struct cpp_buffer): New members for buffer
65         overlays.
66         (struct cpp_reader): New members for traditional output.
67         (_cpp_read_logical_line, _cpp_overlay_buffer): New.
68         * cppinit.c (cpp_create_reader): Set trad_line.
69         (cpp_destroy): Free trad_out_base if used.
70         (cpp_read_main_file): Overlay an empty buffer if traditional.
71         (cpp_finish_options): Don't do builtins.
72         (COMMAND_LINE_OPTIONS): Add -traditional-cpp.
73         (cpp_handle_option): Handle it.
74         * cpplex.c (continue_after_nul): New.
75         (_cpp_lex_direct): Use handle_nul.
76         * cpplib.h (struct cpp_options): New traditional option.
77         * cpptrad.c: New file.
79 2002-05-17  Neil Booth  <neil@daikokuya.demon.co.uk>
81         * c-common.c (c_common_init_options): Use C89 for Objective-C,
82         and set the options flag.
83         * cppinit.c (lang_flags): Remove objc.
84         (lang_defaults): Remove OBJC and OBJCXX.
85         (set_lang): Update.
86         (COMMAND_LINE_OPTIONS): Remove -+ and -lang-objc++.
87         (cpp_handle_option): Remove -+ and -lang-objc++.
88         For ObjC, just set a flag.
89         (print_help): Update.
90         * cpplib.h (enum c_lang): Remove CLK_OBJC and CLK_OBJCXX.
92 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
94         * doc/install.texi (Specific, mips-sgi-irix6): Document need to
95         bootstrap with -mips3.
97 2002-05-17  Kazu Hirata  <kazu@cs.umass.edu>
99         * final.c: Fix formatting.
100         * fix-header.c: Likewise.
101         * flow.c: Likewise.
102         * fold-const.c: Likewise.
103         * function.c: Likewise.
105 2002-05-17  David S. Miller  <davem@redhat.com>
107         PR c/6689, PR optimization/6615
108         * local-alloc.c (struct equivalence): Rename 'src' to 'src_p'
109         and make it a pointer to rtx.  Update comments.
110         (update_equiv_regs): When scanning for equivalences, record
111         address of SET_SRC (set) in reg_equiv[].src_p.  Dereference
112         it while making the equiv replacements.
114 2002-05-17  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
116         * config/sparc/sparc.c (sparc_aout_select_section): Fixed typo.
118 2002-05-17  kaz Kojima  <kkojima@rr.iij4u.or.jp>
120         * config/sh/sh.h (ENCODE_SECTION_INFO): Consider MODULE_LOCAL_P
121         when encoding visibility into SYMBOL_REF_FLAG.
123 2002-05-17  Richard Sandiford  <rsandifo@redhat.com>
125         * expr.c (force_operand): Fix reversed move.
127 2002-05-17  Kurt Wall <kwall@kurtwerks.com>
129         * doc/install.texi (Testing): Mention two common DejaGnu warnings
130         that can be ignored.
132 2002-05-16  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
134         * doc/install.texi (Final install): Recommend to install into a
135         "clean" target directory.
137 2002-05-17  Richard Henderson  <rth@redhat.com>
139         * config/ia64/ia64.md: Use braced strings instead of quoted strings
140         for code blocks.  Tidy whitespace.
142 2002-05-17  Richard Henderson  <rth@redhat.com>
144         * hooks.c (hook_tree_bool_false): New.
145         * hooks.h: Declare it.
146         * target-def.h (TARGET_ASM_SELECT_SECTION): New.
147         (TARGET_ASM_UNIQUE_SECTION, TARGET_IN_SMALL_DATA_P): New.
148         * target.h (select_section, unique_section): New.
149         (in_small_data_p): New.
150         * varasm.c (resolve_unique_section): Use hooks instead of macros.
151         (variable_section, output_constant_def_contents): Likewise.
152         (default_select_section, default_unique_section): New.
153         (categorize_decl_for_section, default_elf_select_section): New.
154         * output.h: Declare them.
156         * config/darwin.h (ALIAS_SECTION, try_section_alias): Remove.
157         (TARGET_ASM_SELECT_SECTION): New.
158         (SELECT_SECTION): Move ...
159         * config/darwin.c (machopic_select_section): ... here.
160         * config/darwin-protos.h: Update.
162         * config/nextstep.h (TARGET_ASM_SELECT_SECTION): New.
163         (SELECT_SECTION): Move ...
164         * config/nextstep.c (nextstep_select_section): ... here.
165         * config/nextstep-protos.h: Update.
167         * config/elfos.h (UNIQUE_SECTION, SELECT_SECTION): Remove.
168         (TARGET_ASM_SELECT_SECTION): New.
169         * config/svr3.h (SELECT_SECTION): Remove.
171         * config/alpha/alpha.c (unicosmk_unique_section): Make static.
172         (TARGET_ASM_UNIQUE_SECTION) [UNICOS]: New.
173         (TARGET_IN_SMALL_DATA_P, alpha_in_small_data_p): New.
174         (alpha_encode_section_info): Use it.
175         * config/alpha/alpha-protos.h: Update.
176         * config/alpha/elf.h (DO_SELECT_SECTION): Remove.
177         (SELECT_SECTION, UNIQUE_SECTION): Remove.
178         (TARGET_ASM_SELECT_SECTION): New.
179         * config/alpha/unicosmk.h (UNIQUE_SECTION): Remove.
181         * config/arm/pe.h (UNIQUE_SECTION): Remove.
182         (TARGET_ASM_UNIQUE_SECTION): New.
184         * config/avr/avr.c (TARGET_ASM_UNIQUE_SECTION): New.
185         (avr_unique_section): Rename from unique_section; make static.
186         * config/avr/avr-protos.h: Update.
187         * config/avr/avr.h (UNIQUE_SECTION): Remove.
189         * config/c4x/c4x.h (SELECT_SECTION): Remove.
191         * config/i386/cygwin.h (UNIQUE_SECTION): Remove.
192         (TARGET_ASM_UNIQUE_SECTION): New.
193         * config/i386/i386-interix.h: Likewise.
194         * config/i386/win32.h: Likewise.
195         * config/i386/djgpp.h (UNIQUE_SECTION): Remove.
196         * config/i386/i386.c (ix86_asm_file_end): Use target hook not macro.
197         * config/i386/sco5.h (SELECT_SECTION): Remove.
198         (TARGET_ASM_SELECT_SECTION): New.
199         * config/i386/svr3gas.h (SELECT_SECTION): Remove.
201         * config/i860/paragon.h: Undef TARGET_ASM_SELECT_SECTION
202         instead of SELECT_SECTION.
203         * config/m68k/dpx2.h: Likewise.
204         * config/rs6000/lynx.h: Likewise.
206         * config/ia64/aix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
207         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
208         * config/ia64/ia64.c (TARGET_IN_SMALL_DATA_P): New.
209         (ia64_in_small_data_p): New.
210         (ia64_encode_section_info): Use it.  Reorganize overlarge conditional.
211         (ia64_aix_select_section, ia64_aix_unique_section): New.
212         * config/ia64/sysv4.h (DO_SELECT_SECTION): Remove.
213         (SELECT_SECTION, UNIQUE_SECTION): Remove.
215         * config/m32r/m32r.h (SELECT_SECTION): Remove.
216         (TARGET_ASM_SELECT_SECTION): New.
217         * config/m32r/m32r.c (m32r_select_section): Take align argument.
218         * config/m32r/m32r-protos.h: Update.
220         * config/m88k/m88k.h (TARGET_ASM_SELECT_SECTION): New.
221         (SELECT_SECTION): Move ...
222         * config/m88k/m88k.c (m88k_select_section): ... here.
224         * config/mcore/mcore-pe.h (SELECT_SECTION): Remove.
225         * config/mcore/mcore.h (UNIQUE_SECTION): Remove.
226         * config/mcore/mcore.c (TARGET_ASM_UNIQUE_SECTION): New.
227         (mcore_unique_section): Make static.
228         * config/mcore/mcore-protos.h: Update.
230         * config/mips/elf.h (UNIQUE_SECTION): Remove.
231         (TARGET_ASM_UNIQUE_SECTION): New.
232         * config/mips/elf64.h: Likewise.
233         * config/mips/iris6gld.h: Likewise.
234         * config/mips/linux.h: Likewise.
235         * config/mips/mips-protos.h: Update.
236         * config/mips/mips.c (mips_select_section): Add align argument.
237         * config/mips/mips.h (SELECT_SECTION): Remove.
238         (TARGET_ASM_SELECT_SECTION): New.
240         * config/mmix/mmix.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
241         * config/mmix/mmix.c (mmix_select_section): Remove.
242         (mmix_unique_section): Remove.
243         * config/mmix/mmix-protos.h: Update.
245         * config/pa/pa.h (TARGET_ASM_SELECT_SECTION): New.
246         (SELECT_SECTION): Move ...
247         * config/pa/pa.c (pa_select_section): ... here.
248         * config/pa/pa64-hpux.h (UNIQUE_SECTION): Remove.
250         * config/rs6000/rs6000.c (rs6000_elf_select_section): Rename
251         from rs6000_select_section and make static.
252         (rs6000_elf_unique_section): Similarly.
253         (rs6000_xcoff_select_section): From xcoff.h.
254         (rs6000_xcoff_unique_section): Likewise.
255         * config/rs6000/rs6000-protos.h: Update.
256         * config/rs6000/sysv4.h (SELECT_SECTION, UNIQUE_SECTION): Remove.
257         (TARGET_ASM_SELECT_SECTION, TARGET_ASM_UNIQUE_SECTION): New.
258         * config/rs6000/xcoff.h: Likewise.
260         * config/sparc/aout.h (TARGET_ASM_SELECT_SECTION): New.
261         (SELECT_SECTION): Move ...
262         * config/sparc/sparc.c (sparc_aout_select_section): ... here.
264         * config/v850/v850.h (SELECT_SECTION): Move ...
265         * config/v850/v850.c (v850_select_section): ... here.
266         (TARGET_ASM_SELECT_SECTION): New.
268         * config/vax/vms.h (SELECT_SECTION): Move ...
269         * config/vax/vax.c (vms_select_section): ... here.
270         (TARGET_ASM_SELECT_SECTION): New.
272         * doc/tm.texi: Update SELECT_SECTION and UNIQUE_SECTION docs
273         for the target hooks.
275 2002-05-17  Nick Clifton  <nickc@cambridge.redhat.com>
277         * config/arm/arm.c (emit_multi_reg_push): Do not set
278         RTX_FRAME_RELATED_P on the SEQUENCE.
280 2002-05-16  Richard Henderson  <rth@redhat.com>
282         * config/ia64/ia64.c (ia64_reorg): Rebuild bb_for_insn before
283         splitting.  Use split_all_insns; update_life_info_in_dirty_blocks.
285 2002-05-16  Richard Henderson  <rth@redhat.com>
287         * config/alpha/unicosmk.h (TARGET_OS_CPP_BUILTINS): Fix typo.
289         * config/ia64/ia64.c (saveable_obstack): Do not declare.
291 2002-05-16  Richard Henderson  <rth@redhat.com>
293         * basic-block.h, bb-reorder.c, cfg.c, cfganal.c, cfgbuild.c,
294         cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c, combine.c,
295         conflict.c, df.c, df.h, dominance.c, final.c, flow.c, function.c,
296         gcse.c, global.c, graph.c, haifa-sched.c, ifcvt.c, lcm.c,
297         local-alloc.c, loop.c, predict.c, print-rtl.c, profile.c,
298         recog.c, reg-stack.c, regclass.c, regmove.c, regrename.c,
299         reload1.c, reorg.c, resource.c, sbitmap.c, sched-deps.c,
300         sched-ebb.c, sched-rgn.c, sibcall.c, ssa-ccp.c, ssa-dce.c, ssa.c:
301         Revert "Basic block renumbering removal", and two followup patches.
303 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
305         * lcm.c (optimize_mode_switching): Revert previous change.
307 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
309         * sched-rgn.c (schedule_insns): Initialize large_region_blocks
310         with only extant block numbers.
312 2002-05-16  Jason Thorpe  <thorpej@wasabisystems.com>
314         * lcm.c (optimize_mode_switching): Fix typo.
316 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
318         * flow.c (calculate_global_regs_live): Queue blocks in program order.
320 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
322         * doc/install.texi (Configuration): Document PWDCMD.
324 2002-05-16  Dale Johannesen  <dalej@apple.com>
326         * combine.c (cant_combine_insn_p):  Reenable combinations
327         involving hard regs unless CLASS_LIKELY_SPILLED_P.
329 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
331         * c-common.c (cb_register_builtins): Handle more built-ins
332         here rather than in gcc.c specs.
333         * gcc.c (cpp_unique_options): Move many built-ins to c-common.c.
334         (cpp_options): Pass -O flags even when only preprocessing.
335         * toplev.c (set_fast_math_flags): New prototype.
336         (fast_math_flags_set_p): New.
337         (set_no_fast_math_flags): Remove.
338         (decode_f_option): Update.
339         * toplev.h (set_fast_math_flags): Update.
340         (fast_math_flags_set_p): New.
341         (set_no_fast_math_flags): Remove.
342 config:
343         * c4x/c4x.c (c4x_override_options): Update.
345 2002-05-16  Zack Weinberg  <zack@codesourcery.com>
347         * c-common.c (STDC_0_IN_SYSTEM_HEADERS, REGISTER_PREFIX):
348         Default-define here.
349         (builtin_define_with_value): Can now wrap the expansion in
350         quotation marks if such is wanted.
351         (cb_register_builtins): Update calls to builtin_define_with_value.
352         Define __REGISTER_PREFIX__, __USER_LABEL_PREFIX__, and __VERSION__
353         here.
354         (c_common_init): Set options->stdc_0_in_system_headers.
355         * c-lex.h: Update prototype of builtin_define_with_value.
356         * cppdefault.h: Remove default definitions of USER_LABEL_PREFIX
357         and REGISTER_PREFIX.
359         * cppinit.c (VERS, ULP, C, X): Kill.
360         (builtin_array): Remove entries for __VERSION__,
361         __USER_LABEL_PREFIX__, __REGISTER_PREFIX__, and
362         __HAVE_BUILTIN_SETJMP__.  Make __STDC__ always a builtin, not
363         a constant.
364         (init_builtins): Kill off a bunch of now-dead code.
365         (COMMAND_LINE_OPTIONS): Remove -fleading-underscore and
366         -fno-leading-underscore.
367         (cpp_handle_option): Remove code to set user_label_prefix.
368         (cpp_post_options): Likewise.
370         * cpplib.h (struct cpp_options): Remove user_label_prefix.
371         (stdc_0_in_system_headers): New.
372         * cppmacro.c (builtin_macro): Check CPP_OPTION (pfile,
373         stdc_0_in_system_headers) too to decide the value of __STDC__.
375         * tradcpp.c (user_label_prefix): Kill.
376         (main): Remove code handling -f(no-)leading-underscore.
377         (initialize_builtins): Don't define __REGISTER_PREFIX__
378         or __USER_LABEL_PREFIX__.
379         (install_value): Wrap compound statement in dummy loop so the
380         macro works properly in an if statement.
383 2002-05-16  Janis Johnson  <janis187@us.ibm.com>
385         * loop.h (struct loop_info): Add member has_prefetch.
386         * loop.c (PREFETCH_CONDITIONAL): Change default to 1.
387         (prescan_loop): Initialize has_prefetch.
388         (struct prefetch_info): Change prefetch_in_loop and
389         prefetch_before_loop from bit fields to ints.
390         (emit_prefetch_instructions): Several small fixes.
391         (check_dbra_loop): Don't reverse loop that uses prefetch.
393 2002-05-16  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
395         * Makefile.in: Allow for PWDCMD to override hardcoded pwd.
396         * configure.in: Likewise.
397         * fixinc/check.tpl: Likewise.
398         * fixinc/fixinc.dgux: Likewise.
399         * fixinc/fixinc.svr4: Likewise.
400         * fixinc/fixinc.winnt: Likewise.
401         * fixinc/fixincl.sh: Likewise.
402         * fixproto: Likewise.
403         * configure: Regenerate.
405 2002-05-16  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
407         Basic block renumbering removal:
408         * basic_block.h (struct basic_block_def): Renamed index to sindex,
409         added prev_bb and next_bb fields.
410         (n_basic_blocks): Renamed to num_basic_blocks.
411         (last_basic_block): New, index of last basic block.
412         (FOR_BB_BETWEEN, FOR_ALL_BB, FOR_ALL_BB_REVERSE): New macros for
413         traversing basic block chain.
414         (BLOCK_NUM): index -> sindex.
415         (create_basic_block_structure, create_basic_block): Declaration changed.
416         (debug_num2bb): Declare.
417         (expunge_block_nocompact): Declaration removed.
418         (link_block, unlink_block, compact_blocks): Declare.
419         * bb-reorder.c (make_reorder_chain, make_reorder_chain_1): Modified.
420         * cfg.c (entry_exit_blocks): Initialize new fields.
421         (clear_edges, alloc_block, expunge_block, cached_make_edge,
422         redirect_edge_pred, dump_flow_info, dump_edge_info,
423         alloc_aux_for_blocks, clear_aux_for_blocks, alloc_aux_for_edges,
424         free_aux_for_edges): Modified.
425         (link_block, unlink_block, compact_blocks, debug_num2bb): New.
426         (expunge_block_nocompact): Removed.
427         * cfganal.c (can_fallthru, mark_dfs_back_edges, flow_call_edges_add,
428         find_unreachable_blocks, create_edge_list, print_edge_list,
429         verify_edge_list, flow_edge_list_print, remove_fake_successors,
430         remove_fake_edges, flow_reverse_top_sort_order_compute,
431         flow_depth_first_order_compute, flow_preorder_transversal_compute,
432         flow_dfs_compute_reverse_init, flow_dfs_compute_reverse_add_bb,
433         flow_dfs_compute_reverse_execute): Modified.
434         * cfgbuild.c (make_edges, make_eh_edge, find_basic_blocks_1,
435         find_basic_blocks, find_many_sub_basic_blocks, find_sub_basic_blocks):
436         Modified.
437         * cfgcleanup.c (try_simplify_condjump, try_forward_edges,
438         merge_blocks_move_predecessor_nojumps,
439         merge_blocks_move_successor_nojumps, merge_blocks,
440         outgoing_edges_match, try_crossjump_to_edge, try_crossjump_bb,
441         try_optimize_cfg, delete_unreachable_blocks, cleanup_cfg): Modified.
442         * cfglayout.c (skip_insns_after_block, label_for_bb,
443         record_effective_endpoints, scope_to_insns_finalize,
444         fixup_reorder_chain, verify_insn_chain, cleanup_unconditional_jumps,
445         fixup_fallthru_exit_predecessor, cfg_layout_redirect_edge,
446         cfg_layout_duplicate_bb): Modified.
447         * cfgloop.c (flow_loops_cfg_dump, flow_loop_dump, flow_loops_dump,
448         flow_loop_entry_edges_find, flow_loop_exit_edges_find,
449         flow_loop_nodes_find, flow_loop_pre_header_find, flow_loop_scan,
450         flow_loops_find, flow_loop_outside_edge_p): Modified.
451         * cfgrtl.c (create_basic_block_structure, create_basic_block,
452         flow_delete_block, compute_bb_for_insn, split_block,
453         try_redirect_by_replacing_jump, redirect_edge_and_branch,
454         force_nonfallthru_and_redirect, tidy_fallthru_edge,
455         back_edge_of_syntactic_loop_p, split_edge, commit_one_edge_insertion,
456         commit_edge_insertions, commit_edge_insertions_watch_calls,
457         dump_bb, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
458         purge_all_dead_edges): Modified.
459         * combine.c (combine_instructions, set_nonzero_bits_and_sign_copies,
460         try_combine, nonzero_bits, num_sign_bit_copies, get_last_value_validate,
461         get_last_value, reg_dead_at_p, distribute_notes, distribute_links):
462         Modified.
463         * conflict.c (conflict_graph_compute): Modified.
464         * df.c (FOR_ALL_BBS): Removed.
465         (df_bitmaps_alloc, df_bitmaps_free, df_alloc, df_analyse_1,
466         df_modified_p, df_analyse, df_refs_unlink, df_insn_modify,
467         df_dump, hybrid_search_bitmap, iterative_dataflow_sbitmap): Modified.
468         * df.h (DF_BB_INFO, DF_REF_BBNO): Modified.
469         * dominance.c (init_dom_info, calc_dfs_tree_nonrec, calc_dfs_tree,
470         calc_idoms, idoms_to_doms, calculate_dominance_info): Modified.
471         * final.c (compute_alignments, final_scan_insn): Modified.
472         * flow.c (verify_local_live_at_start, update_life_info,
473         update_life_info_in_dirty_blocks, free_basic_block_vars,
474         delete_noop_moves, calculate_global_regs_live,
475         initialize_uninitialized_subregs, allocate_bb_life_data,
476         regno_uninitialized, regno_clobbered_at_setjmp, mark_set_1,
477         mark_used_reg, count_or_remove_death_notes): Modified.
478         * function.c (thread_prologue_and_epilogue_insns): Modified.
479         * gcse.c (struct null_pointer_info): Change typo of current_block
480         to basic_block.
481         (gcse_main, alloc_gcse_mem, compute_local_properties, compute_sets,
482         oprs_unchanged_p, load_killed_in_block_p, record_last_reg_set_info,
483         compute_hash_table, alloc_rd_mem, handle_rd_kill_set, compute_kill_rd,
484         alloc_avail_expr_mem, expr_killed_p, compute_ae_kill,
485         expr_reaches_here_p_work, expr_reaches_here_p, handle_avail_expr,
486         classic_gcse, one_classic_gcse_pass, compute_transp, cprop,
487         one_cprop_pass, compute_pre_data, pre_expr_reaches_here_p_work,
488         pre_expr_reaches_here_p, insert_insn_end_bb, pre_edge_insert,
489         pre_delete, one_pre_gcse_pass, compute_transpout,
490         invalidate_nonnull_info, delete_null_pointer_checks_1,
491         free_code_hoist_mem, compute_code_hoist_vbeinout,
492         hoist_expr_reaches_here_p, hoist_code, one_code_hoisting_pass,
493         compute_ld_motion_mems, store_ops_ok, find_moveable_store,
494         compute_store_table, build_store_vectors, insert_insn_start_bb,
495         insert_store, replace_store_insn, free_store_memory, store_motion):
496         Modified.
497         * global.c (global_alloc, global_conflicts, mark_elimination,
498         build_insn_chain): Modified.
499         * graph.c (print_rtl_graph_with_bb): Modified.
500         * haifa-sched.c (sched_init): Modified.
501         * ifcvt.c (SET_ORIG_INDEX, ORIG_INDEX): Removed.
502         (find_if_block, find_cond_trap, find_if_case_1, find_if_case_2,
503         if_convert): Modified.
504         * lcm.c (compute_antinout_edge, compute_earliest, compute_laterin,
505         compute_insert_delete, pre_edge_lcm, compute_available,
506         compute_farthest, compute_nearerout, compute_rev_insert_delete,
507         pre_edge_rev_lcm, make_preds_opaque, optimize_mode_switching):
508         Modified.
509         * local-alloc.c (alloc_qty, local_alloc, update_equiv_regs): Modified.
510         * loop.c (loop_dump_aux): Modified.
511         * predict.c (combine_predictions_for_insn, estimate_probability,
512         last_basic_block_p, process_note_prediction, process_note_predictions,
513         note_prediction_to_br_prob, propagate_freq, counts_to_freqs,
514         expensive_function_p, estimate_bb_frequencies,
515         compute_function_frequency): Modified.
516         * print-rtl.c (print_rtx): Modified.
517         * profile.c (GCOV_INDEX_TO_BB, BB_TO_GCOV_INDEX, instrument_edges,
518         get_exec_counts, compute_branch_probabilities, compute_checksum,
519         branch_prob, find_spanning_tree): Modified.
520         * recog.c (split_all_insns, peephole2_optimize): Modified.
521         * reg-stack.c (reg_to_stack, convert_regs_entry, compensate_edge,
522         convert_regs_1, convert_regs_2, convert_regs): Modified.
523         * regclass.c (scan_one_insn, regclass): Modified.
524         * regmove.c (mark_flags_life_zones, regmove_optimize,
525         combine_stack_adjustments): Modified.
526         * regrename.c (regrename_optimize, copyprop_hardreg_forward): Modified.
527         * reload1.c (reload, reload_combine, copy_eh_notes): Modified.
528         * reorg.c (dbr_schedule): Modified.
529         * resource.c (find_basic_block, init_resource_info): Modified.
530         * sbitmap.c (sbitmap_intersection_of_succs,
531         sbitmap_intersection_of_preds, sbitmap_union_of_succs,
532         sbitmap_union_of_preds): Modified.
533         * sched-deps.c (init_dependency_caches): Modified.
534         * sched-ebb.c (schedule_ebbs): Modified.
535         * sched-rgn.c (is_cfg_nonregular, build_control_flow, debug_regions,
536         find_rgns, compute_trg_info, init_regions, schedule_insns): Modified.
537         * sibcall.c (optimize_sibling_and_tail_recursive_call): Modified.
538         * ssa-ccp.c (examine_flow_edges, optimize_unexecutable_edges,
539         ssa_ccp_substitute_constants, ssa_ccp_df_delete_unreachable_insns,
540         ssa_const_prop): Modified.
541         * ssa-dce.c (set_control_dependent_block_to_edge_map_,
542         find_control_dependence, find_pdom, ssa_eliminate_dead_code): Modified.
543         * ssa.c (remove_phi_alternative, find_evaluations,
544         compute_dominance_frontiers_1, compute_iterated_dominance_frontiers,
545         insert_phi_node, rename_block, convert_to_ssa, eliminate_phi,
546         make_regs_equivalent_over_bad_edges,
547         make_equivalent_phi_alternatives_equival,
548         compute_conservative_reg_partition,
549         coalesce_regs_in_successor_phi_nodes, compute_coalesced_reg_partition,
550         rename_equivalent_regs, convert_from_ssa, for_each_successor_phi):
551         Modified.
553 2002-05-16  Mark Mitchell  <mark@codesourcery.com>
555         * cfgrtl.c (purge_dead_edges): Correct handling of EDGE_EH.
557 2002-05-16  Nick Clifton  <nickc@cambridge.redhat.com>
559         * config/arm/arm.c (arm_rtx_costs): Check for RTX being a
560         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
561         (arm_adjust_cost): Check for RTX being a SYMBOL_REF before
562         calling CONSTANT_POOL_ADDRESS_P.
563         * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix typo in code
564         to decide whether to define __arm__ or __thumb.
565         (THUMB_GO_IF_LEGITIMATE_ADDRESS): Check for RTX being a
566         SYMBOL_REF before calling CONSTANT_POOL_ADDRESS_P.
568 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
570         * config/arc/arc.h (CPP_PREDEFINES): Remove.
571         (CPP_SPEC): Update.
572         (TARGET_CPU_CPP_BUILTINS): New.
574 2002-05-16  Neil Booth  <neil@daikokuya.demon.co.uk>
576         * cpphash.h (cpp_macro): Move here, and make expansion a union.
577         * cppmacro.c (cpp_macro): Remove.
578         (enter_macro_context, replace_args, warn_of_redefinition,
579         _cpp_create_definition, cpp_macro_definition): Update.
581 2002-05-16  Jason Merrill  <jason@redhat.com>
583         * config/mips/mips.c (mips_output_external): Don't do sdata
584         optimization for a variable with DECL_COMDAT set.
586 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
588         * config/rs6000/altivec.h: Cleanups for tighter typechecking.
589         Cleanups for accepting modifiers on pointers.
590         Fix predicate typos.
591         Allow long pointers as well as int pointers.
593 2002-05-15  Richard Henderson  <rth@redhat.com>
595         * varasm.c (merge_weak): Remove special case for extern and common.
597 2002-05-15  Matt Hiller  <hiller@redhat.com>
599         * testsuite/gcc.c-torture/compile/20000804-1.x: Don't return 1 if
600         XFAILing.
601         * testsuite/gcc.c-torture/compile/20001226-1.x: Ditto.
602         * testsuite/gcc.c-torture/compile/920520-1.x: Ditto.
603         * testsuite/gcc.c-torture/compile/mipscop-1.x: XFAIL for now.
604         * testsuite/gcc.c-torture/compile/mipscop-2.x: Ditto.
605         * testsuite/gcc.c-torture/compile/mipscop-3.x: Ditto.
606         * testsuite/gcc.c-torture/compile/mipscop-4.x: Ditto.
608 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
610         * reload1.c (forget_old_reloads_1): Do not use subreg offset.
612 2002-05-15  Aldy Hernandez  <aldyh@redhat.com>
614         * config/rs6000/rs6000.md ("altivec_mtvscr"): Set VSCR register.
615         ("altivec_mfvscr"): Read from VSCR.
617         Add vscr sets for the following insns: altivec_vctuxs,
618         altivec_vaddubs, altivec_vaddsbs, altivec_vadduhs,
619         altivec_vaddshs, altivec_vadduws, altivec_vaddsws, altivec_vctsxs,
620         altivec_vmhaddshs, altivec_vmhraddshs, altivec_vmsumuhs,
621         altivec_vmsumshs, altivec_vpkuhss, altivec_vpkshss,
622         altivec_vpkuwss, altivec_vpkswss, altivec_vpkuhus,
623         altivec_vpkshus, altivec_vpkuwus, altivec_vpkswus,
624         altivec_vsububs, altivec_vsubsbs, altivec_vsubuhs,
625         altivec_vsubshs, altivec_vsubuws, altivec_vsubsws,
626         altivec_vsum4ubs, altivec_vsum4sbs, altivec_vsum4shs,
627         altivec_vsum2sws, altivec_vsumsws.
629         * config/rs6000/rs6000.h: Add VSCR fixed register.
630         (CALL_REALLY_USED_REGISTERS): Add vscr.
631         (CALL_USED_REGISTERS): Same.
632         (FIXED_REGISTERS): Same.
633         (REG_ALLOC_ORDER): Same.
634         (reg_class): Add VSCR_REGS.
635         (REG_CLASS_NAMES): Same.
636         (REG_CLASS_CONTENTS): Same.
637         (VSCR_REGNO): New.
638         (REGISTER_NAMES): Add vscr.
639         (DEBUG_REGISTER_NAMES): Same.
640         (ADDITIONAL_REGISTER_NAMES): Same.
641         (FIRST_PSEUDO_REGISTER): Increment.
642         (CONDITIONAL_REGISTER_USAGE): Set VSCR as a global register.
644 2002-05-15  Jakub Jelinek  <jakub@redhat.com>
646         * fold-const.c (fold): Fix a typo.
648 2002-05-15  Eric Botcazou  <ebotcazou@multimania.com>
650         * fold-const.c (fold) [LT_EXPR]: Move the transformation of a
651         comparison against the highest or lowest integer value before
652         the 'X >= CST to X > (CST - 1)' and 'X < CST to X <= (CST - 1)'
653         transformation and that of an unsigned comparison against 0
654         right after.
656 2002-05-15  Richard Henderson  <rth@redhat.com>
658         * varasm.c (merge_weak): Error for any weakening after definition.
659         Adjust weakening after use warning to catch more cases.
660         (assemble_alias): Set TREE_USED and TREE_ASM_WRITTEN consistently.
661         * config/alpha/alpha.c (alpha_encode_section_info): Do not abort.
663 Wed May 15 10:38:27 CEST 2002  Jan Hubicka  <jh@suse.cz>
665         * invoke.texi (-malign-double): Re-add lost warning.
667         * i386-protos.h (x86_output_mi_thunk): Declare.
668         * unix.h (ASM_OUTPUT_MI_THUNK): Move offline to ...
669         * i386.c (x86_output_mi_thunk): ... here; handle 64bits.
671         * dwarf2out.c (output_call_frame_info): Do not skip unwind info
672         when flag_asynchronous_unwind_tables is set.
674         * flags.h (flag_reorder_functions): Declare.
675         * function.c (prepare_function_start): Initialize frequnecy.
676         * params.def (HOT_BB_COUNT_FRACTION, HOT_BB_FREQUENCY_FRACTION): New.
677         * Makefile.in (predict.o): Add dependency on target.h and params.h
678         * defaults.h (HOT_TEXT_SECTION_NAME,
679         UNLIKELY_EXECUTED_TEXT_SECTION_NAME): New macros.
680         * predict.c (choose_function_section): New function.
681         (estimate_bb_frequencies): Use it.
682         * toplev.c (flag_reorder_functions): New global variable.
683         (lang_independent_options): New.
684         (parse_options_and_default_flags): Set.
685         * varasm.c (assemble_start_function): Bypass functdion alignment
686         for never executed functions.
687         * invoke.texi (-freorder-blocks, -freorder-functions): Document.
688         (param hot-bb-count-fraction, hot-bb-frequency-fraction): New.
689         * tm.texi (HOT_TEXT_SECTION_NAME, UNLIKELY_EXECUTED_TEXT_SECTION_NAME):
690         Document.
692         Thu Jan  3 21:52:09 CET 2002  Jan Hubicka  <jh@suse.cz>
694         * predict.c: Inlude profile.h
695         (MIN_COUNT): Rename to MIN_COUNT_FRACTION
696         (maybe_hot_bb_p, probably_cold_bb_p, probably_never_executed_bb_p):
697         Use the information about maximal counter in the program.
699         Thu Dec 20 22:14:00 CET 2001  Jan Hubicka  <jh@suse.cz>
701         * basic-block.h (maybe_hot_bb_p, probably_cold_bb_p,
702         probably_never_executed_bb_p): New functions.
703         * cfgcleanup.c (outgoing_edges_match): Use them.
704         * predict.c (MIN_COUNT, MIN_FREQUENCY): New macros.
705         (maybe_hot_bb_p, probably_cold_bb_p,
706         probably_never_executed_bb_p): New functions.
708         * function.h (function): Add new field function_frequency.
709         * predict.c (compute_function_frequency): New function.
710         (estimate_probability): Call it.
712 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
714         PR optimization/5172, optimization/5200
715         * gcse.c (gcse_main): Disable store_motion.
717 2002-05-14  Zack Weinberg  <zack@codesourcery.com>
719         * c-parse.in (MODIFIED_WCHAR_TYPE): New macro.
720         (c_common_nodes_and_builtins): Use it.
721         (builtin_define_with_value): New function.
722         (cb_register_builtins): Define __SIZE_TYPE__,
723         __PTRDIFF_TYPE__, __WCHAR_TYPE__, and __WINT_TYPE__ here,
724         using builtin_define_with_value.  Use consistent notation when
725         defining __GXX_WEAK__.
726         (WCHAR_TYPE_SIZE): Don't redefine.
727         (combine_strings): Don't use WCHAR_TYPE_SIZE.
729         * cppdefault.h: Don't provide defaults for SIZE_TYPE,
730         PTRDIFF_TYPE, WCHAR_TYPE, or WINT_TYPE.
731         * cppinit.c (builtin_array): Remove entries for __SIZE_TYPE__ etc.
732         * tradcpp.c (initialize_builtins): Likewise.
733         * gcc.c (cpp_unique_options): Don't muck with __WCHAR_TYPE__.
735         * c-lex.h (builtin_define_with_value): Prototype.
736         * system.h: Poison NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_WCHAR_TYPE,
737         NO_BUILTIN_PTRDIFF_TYPE, and NO_BUILTIN_WINT_TYPE.
738         * doc/tm.texi: Remove mention of NO_BUILTIN_SIZE_TYPE etc.
740         * config/avr/avr.h, config/h8300/h8300.h, config/i386/i386.h,
741         config/ia64/ia64.h, config/mips/dec-osf1.h, config/mips/iris6.h,
742         config/mips/linux.h, config/mips/mips.h, config/mips/netbsd.h,
743         config/mips/osfrose.h, config/mips/sni-svr4.h, config/rs6000/aix51.h,
744         config/s390/linux.h, config/sh/sh.h, config/sh/sh64.h,
745         config/sparc/linux64.h, config/sparc/netbsd-elf.h,
746         config/sparc/sol2-bi.h, config/sparc/sparc.h:
747         Do not define NO_BUILTIN_SIZE_TYPE etc.  Remove all references
748         to __SIZE_TYPE__ etc from all spec strings. When this makes
749         extra specs empty, delete them.
751 2002-05-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
753         * pa.c (override_options): Override TARGET_JUMP_IN_DELAY when scheduling
754         for PA8000 or generating dwarf2 call frame information.
755         (output_call): Remove DO_FRAME_NOTES check from return pointer
756         optimization.
757         (following_call): Return 0 when scheduling for PA8000 or generating
758         dwarf2 call frame information.  Revise comment.
760 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
762 config/alpha:
763         * alpha.h (TARGET_CPU_CPP_BUILTINS): Define __IEEE_FP
764         and __IEEE_FP_INEXACT as appropriate.
765         (CPLUSPLUS_CPP_SPEC): Don't define __cplusplus.
766         (CPP_SPEC): Remove ieee defines.
767         * freebsd.h, netbsd.h: Remove ieee defines and cpp_cpu.
769 2002-05-14  Richard Henderson  <rth@redhat.com>
771         * config/i386/i386.c (ix86_save_reg): Make regno unsigned.
772         (ix86_safe_length, ix86_safe_length_prefix, ix86_safe_memory): Kill.
774 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
776         * arm/arm.h (TARGET_CPU_CPP_BUILTINS): Define.
777         (CPP_SPEC): Update.
778         (CPP_APCS_PC_SPEC, CPP_APCS_PC_DEFAULT_SPEC,
779         CPP_FLOAT_SPEC, CPP_FLOAT_DEFAULT_SPEC, CPP_ENDIAN_SPEC,
780         CPP_ENDIAN_DEFAULT_SPEC, CPP_INTERWORK_DEFAULT_SPEC,
781         CPP_INTERWORK_SPEC, CPP_PREDEFINES): Remove.
782         (EXTRA_SPECS): Update.
783         * arm/conix-elf.h, arm/linux-elf.h, arm/netbsd.h, arm/riscix.h,
784         arm/riscix1-1.h, arm/rtems-elf.h, arm/semiaof.h, arm/unknown-elf.h,
785         arm/unknown-elf-oabi.h, arm/vxarm.h: Remove CPP_PREDEFINES and
786         define TARGET_OS_CPP_BUILTINS if necessary.
788 2002-05-14  Neil Booth  <neil@daikokuya.demon.co.uk>
790         * gcc.c (cpp_options): Must pass -m* and -f* options
791         to the front end even when only preprocessing.
792         (cc1_options): Remove redundant -lang-c.
793         * tradcpp.c (main): Ignore -m options.
794 objc:
795         * lang-specs.h: Similarly.
797 2002-05-14  Vladimir Makarov  <vmakarov@redhat.com>
799         * genautomata.c (transform_3): Add code for transformation
800         `(A,B,...)+C -> A+C,B,...'.
802 Tue May 14 12:48:22 CEST 2002  Jan Hubicka  <jh@suse.cz>
804         * final.c (end_final): Do not output profile_arcs constructor, when
805         no functions are instrumented.
807 Tue May 14 12:38:30 CEST 2002  Jan Hubicka  <jh@suse.cz>
809         * i386.md (testsi to testqi_zext_1 splitter): Fix typo.
811 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
813         * doc/install.texi: Remove special markup originally required for
814         HTML generation with texi2html.
816 2002-05-14  Andreas Schwab  <schwab@suse.de>
818         * config/ia64/sysv4.h (DO_SELECT_SECTION): Factored out of
819         SELECT_SECTION.
820         (UNIQUE_SECTION): Define to get small data correctly.
822         * varasm.c (resolve_unique_section): Add third parameter
823         flag_function_or_data_sections and use it instead of
824         flag_function_sections.
825         (assemble_start_function): Pass flag_function_sections.
826         (asm_emit_uninitialised): Pass flag_data_sections.
827         (assemble_variable): Likewise.
829 2002-05-14  Richard Henderson  <rth@redhat.com>
831         * config/i386/i386.md: Use define_constants for unspec numbers.
832         * config/i386/i386.c: Likewise.
834 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
836         * doc/contrib.texi: Update my entry.
838 2002-05-13  Mark Mitchell  <mark@codesourcery.com>
840         * fixinc/inclhack.def (winidss_valist): Limit applicability.
841         * fixinc/fixincl.x: Regenerated.
842         * fixinc/tests/base/math.h: Update.
843         * fixinc/tests/base/testing.h: Likewise.
845 2002-05-13  Zack Weinberg  <zack@codesourcery.com>
847         * genattr.c (gen_attr): Don't emit a comma after the last
848         enumerator.
850 2002-05-13  Richard Henderson  <rth@redhat.com>
852         * cfgrtl.c (purge_dead_edges): Handle abnormal call edges created
853         by non-local gotos.
854         * recog.c (peephole2_optimize): Likewise.
856 2002-05-13  Andris Pavenis  <pavenis@lanet.lv>
858         * cppfiles.c (open_file): Change mode (DJGPP only) of redirected
859         input to O_BINARY.
861 2002-05-13  Jeffrey A Law  (law@redhat.com)
863         * flow.c (invalidate_mems_from_autoinc): Rewrite to use for_each_rtx.
864         Update prototype and callers.
865         (propagate_one_insn): Stack pointer adjustments kill MEMs on
866         the mem_set_list which reference the stack pointer, as do
867         calls to constant functions as they may clobber outgoing
868         argument space.
870         * i386.c (ia32_multipass_dfa_lookahead): Prototype.
872         * i386.c (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD): Define.
873         (ia32_multipass_dfa_lookahead): New function.
875 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
877         * gcc.c (SWITCH_TAKES_ARG): Remove 'V'.
878         (translate_options): Remove 'V'.
879         (process_command): Similarly.
880 doc:
881         * invoke.texi: Remove documentation of 'V'.
883 2002-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
885         * config/s390/linux.h: Revert 2002-04-22 changes.
887 2002-05-13  Scott Marks <SMarks@mobile-mind.com>
889         * config/fr30/fr30.md: Only allow splits of immediate loads
890         if the destination is a register.
892 2002-05-13  Neil Booth  <neil@daikokuya.demon.co.uk>
894         * Makefile.in (c-common.o, cppinit.o): Update.
895         * c-common.c: Include except.h.
896         (cb_register_builtins): Handle __USING_SJLJ_EXCEPTIONS__.
897         Call TARGET_CPU_CPP_BUILTINS and TARGET_OS_CPP_BUILTINS.
898         * cppinit.c (__USING_SJLJ_EXCEPTIONS): Not here.
899         * defaults.h (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS,
900         CPP_PREDEFINES): Handle here.
901 config:
902         * alpha/alpha-interix.h, alpha/gnu.h, alpha/linux.h,
903         alpha/netbsd.h, alpha/openbsd.h, alpha/osf.h, alpha/unicosmk.h,
904         alpha/vms.h, alpha/vxworks.h: Remove CPP_PREDEFINES, define
905         TARGET_OS_CPP_BUILTINS.
906         * alpha/alpha.h (TARGET_CPU_CPP_BUILTINS): Define.
907         (CPP_SPEC, EXTRA_SPECS): Update.
908         (CPP_AM_BWX_SPEC, CPP_AM_MAX_SPEC, CPP_AM_FIX_SPEC,
909         CPP_AM_CIX_SPEC, CPP_IM_EV4_SPEC, CPP_IM_EV5_SPEC,
910         CPP_IM_EV6_SPEC, CPP_CPU_EV4_SPEC, CPP_CPU_EV5_SPEC,
911         CPP_CPU_EV56_SPEC, CPP_CPU_PCA56_SPEC, CPP_CPU_EV6_SPEC,
912         CPP_CPU_EV67_SPEC, CPP_CPU_DEFAULT_SPEC, CPP_CPU_SPEC): Remove.
913 doc:
914         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Remove.
915         (TARGET_OS_CPP_BUILTINS, TARGET_CPU_CPP_BUILTINS): Define.
917 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
919         * emit-rtl.c (global_rtl): Update comment.
920         (const_double_htab, const_double_htab_hash,
921         const_double_htab_hash, lookup_const_double): New.
922         (const_int_htab_hash, const_int_htab_eq): Remove const
923         qualifiers, which cause tons of warnings with RTL checking on.
924         (gen_rtx_CONST_DOUBLE): Deleted.
925         (const_double_from_real_value): New function - bears some
926         resemblance to the former immed_real_const_1.
927         (immed_double_const): Moved here from varasm.c and
928         simplified.
929         (gen_rtx_REG): Make REGNO unsigned to squelch warnings.
930         (gen_rtx_SUBREG): Use gen_rtx_raw_SUBREG.
931         (gen_rtx): Use immed_double_const.
932         (init_emit_once): Initialize the const_double_htab.  Use
933         REAL_VALUE_FROM_INT where possible.  Can now use
934         CONST_DOUBLE_FROM_REAL_VALUE when setting up const_tiny_rtx.
935         * varasm.c (struct varasm_status): Remove x_const_double_chain.
936         (const_double_chain, immed_real_const, clear_const_double_mem): Delete.
937         (immed_double_const, immed_real_const_1): Moved to emit-rtl.c.
938         (init_varasm_status, mark_varasm_status): Don't touch
939         x_const_double_chain.
941         * output.h: Delete prototype for clear_const_double_mem.
942         * real.h: Make REAL_VALUE_TYPE a macro again.  Remove leading
943         '0' slot from all CONST_DOUBLE_FORMAT definitions.  Prototype
944         const_double_from_real_value, not immed_real_const_1, and use
945         it to define CONST_DOUBLE_FROM_REAL_VALUE.  Define new macro
946         CONST_DOUBLE_ATOF.
947         * rtl.h (CONST_DOUBLE_CHAIN): Kill.
948         (CONST_DOUBLE_LOW, CONST_DOUBLE_HIGH): Adjust.
949         (gen_rtx_CONST_DOUBLE, immed_real_const): Delete prototypes.
950         (gen_rtx_REG): Second arg is unsigned.
952         * gengenrtl.c (special_rtx): Take out CONST_DOUBLE.
953         (excluded_rtx): New, return true for CONST_DOUBLE.
954         (genmacro): Write nothing for excluded codes.
955         * combine.c (combine_simplify_rtx): Use CONST_DOUBLE_FROM_REAL_VALUE.
956         * expr.c (expand_expr): Likewise.
957         * ggc-common.c (ggc_mark_rtx_children_1): Don't mark the
958         CONST_DOUBLE_CHAIN.
959         * toplev.c (rest_of_compilation): Don't call
960         clear_const_double_mem.
962         * config/rs6000/rs6000.c (rs6000_float_const): Delete.
963         (rs6000_hash_constant): Remove CONST_DOUBLE special case.
964         (toc_hash_eq): Remove CONST_DOUBLE and LABEL_REF special cases.
965         * config/rs6000/rs6000-protos.h: Don't prototype rs6000_float_const.
966         * config/c4x/c4x.md, config/rs6000/rs6000.md: Use CONST_DOUBLE_ATOF.
967         * config/dsp16xx/dsp16xx.md, config/mips/mips.md,
968         config/pa/pa.md: Use CONST_DOUBLE_FROM_REAL_VALUE.
969         * config/sparc/sparc.md, config/sparc/sparc.c: Use immed_double_const.
971 2002-05-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
973         * mips/iris6.h (CPLUSPLUS_CPP_SPEC): Define.
975 2002-05-12  Tom Tromey  <tromey@redhat.com>
977         * tree.h (copy_node): Don't mention TREE_PERMANENT.
979 2002-05-12  Zack Weinberg  <zack@codesourcery.com>
981         * gensupport.c (n_comma_elts): Moved here from genattrtab.c.
982         (scan_comma_elt): New function.  Accepts whitespace in comma lists.
983         * gensupport.h: Prototype new routines.
984         * genattr.c (gen_attr): Use scan_comma_elt.  Avoid unnecessary
985         use of printf.
986         * genattrtab.c (n_comma_elts): Moved to gensupport.c.
987         (next_comma_elt): Use scan_comma_elt.
989         * config/i386/i386.md: Use new attribute notation to break up
990         long lines in define_attr forms.
992 2002-05-12  Richard Henderson  <rth@redhat.com>
994         * expr.c (compress_float_constant): New.
995         (emit_move_insn): Use it.
996         (float_extend_from_mem): New.
997         (init_expr_once): Initialize it.
998         * real.c (exact_real_truncate): New.
1000         * config/i386/i386.h (CONST_COSTS): Assume CONST_DOUBLE gets
1001         dropped into memory; penalize for size.
1002         (RTX_COSTS): FLOAT_EXTEND is free.
1003         * config/i386/i386.md (extendsfdf2, extendsfxf2, extendsftf2,
1004         extenddfxf2, extenddftf2): Accept constants and drop them to memory.
1006 2002-05-12  Richard Henderson  <rth@redhat.com>
1008         * profile.h (profile_info): Add missing extern to declaration.
1009         * profile.c (profile_info): Define it.
1011 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1013         * pa/pa32-regs.h (HARD_REGNO_MODE_OK): Revise sets of general registers
1014         used for DImode and TImode.
1016 2002-05-11  Neil Booth  <neil@daikokuya.demon.co.uk>
1018         * cpplex.c (_cpp_lex_direct): When in a directive at EOF
1019         fake a newline.
1021 2002-05-11  Zack Weinberg  <zack@codesourcery.com>
1023         * config/rs6000/rs6000.c (rs6000_default_long_calls,
1024         rs6000_longcall_switch, rs6000_set_default_type_attributes): New.
1025         (TARGET_SET_DEFAULT_TYPE_ATTRIBUTES): Set it.
1026         (rs6000_override_options): Handle -m(no-)longcall.
1027         (init_cumulative_args, output_mi_thunk): Check for both
1028         longcall and shortcall attributes on the function.
1029         (rs6000_attribute_table): Add "shortcall".
1030         (rs6000_handle_longcall_attribute): Update comment.
1031         (altivec_expand_unop_builtin, altivec_expand_binop_builtin,
1032         altivec_expand_ternop_builtin): Add default clauses to switches
1033         to silence warnings.
1035         * config/rs6000/rs6000.h: Declare rs6000_longcall_switch and
1036         rs6000_default_long_calls.  Define REGISTER_TARGET_PRAGMAS.
1037         (TARGET_OPTIONS): Add longcall and no-longcall.
1039         * config/rs6000/rs6000.md (call_nonlocal_sysv,
1040         call_value_nonlocal_sysv): Split by alternatives.  One pair
1041         accepts only SYMBOL_REFs and rejects if CALL_LONG is set in
1042         the call cookie.  The other pair accepts only LR/CTR and has
1043         no restriction.
1045         * config.gcc (rs6000-*-* | powerpc*-*-* trailer stanza):
1046         Set c_target_objs, cxx_target_objs; add t-rs6000-c-rule to
1047         tmake_file.
1048         * config/rs6000/rs6000-c.c: New file.
1049         * config/rs6000/t-rs6000-c-rule: New file.
1050         * config/rs6000/rs6000-protos.c: Add multiple-include guard.
1051         Prototype rs6000_pragma_longcall.
1053         * doc/extend.texi: Document shortcall attribute.
1054         * doc/invoke.texi: Document -mlongcall, -mno-longcall.
1056 2002-05-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1058         * reorg.c (dbr_schedule): Remove unnecessary test.
1060 Sat May 11 14:34:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
1062         * i386.md (testsi to testqi spliters): New.
1064         2002-01-14  Josef Zlomek  <zlomek@matfyz.cz>
1066         cfg.c (dump_edge_info): added dumping of EDGE_CAN_FALLTHRU.
1068         Wed Jan  9 2002  Josef Zlomek  <zlomj9am@artax.karlin.mff.cuni.cz>
1070         * basic-block.h: New flag EDGE_CAN_FALLTHRU
1071         * cfganal.c (set_edge_can_fallthru_flag): New function; marks the edges
1072         that can be made fallthru.
1074         Mon Nov 12 16:25:53 CET 2001  Jan Hubicka  <jh@suse.cz>
1076         * cfglayout.c (cleanup_unconditional_jumps): New static function.
1077         (cfg_layout_initialize): Use it.
1079 2002-05-11  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1081         * config/avr/avr.c (avr_mcu_types): Update supported devices.
1082         * config/avr/avr.h (CPP_SPEC, LINK_SPEC, CRT_BINUTILS_SPECS): Likewise.
1083         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
1085 2002-05-11  Kazu Hirata  <kazu@cs.umass.edu>
1087         * dbxout.c: Fix formatting.
1088         * dependence.c: Likewise.
1089         * df.c: Likewise.
1090         * diagnostic.c: Likewise.
1091         * doloop.c: Likewise.
1092         * dominance.c: Likewise.
1093         * doschk.c: Likewise.
1094         * dwarf2asm.c: Likewise.
1095         * dwarf2out.c: Likewise.
1096         * dwarfout.c: Likewise.
1098 2002-05-10  Richard Henderson  <rth@redhat.com>
1100         * final.c (end_final): Tidy whitespace.  Don't honor flag_pack_struct.
1101         Convert integers constants as needed.  Replace "nwords" field with
1102         "sizeof_bb".
1103         (final): Save profile data if cfun->arc_profile, not profile_arc_flag.
1104         * function.h: Fix typo in comment.
1105         * libgcc2.c (struct bb): Replace "nwords" with "sizeof_bb".
1107 2002-05-10  Roger Sayle  <roger@eyesopen.com>
1109         * fold-const.c (build_range_check): Optimize (c>=1) && (c<=127)
1110         into the equivalent (signed char)c > 0.
1112 2002-05-10  Janis Johnson  <janis187@us.ibm.com>
1114         * loop.c: (PREFETCH_EXTREME_DIFFERENCE, PREFETCH_BEFORE_LOOP): New.
1115         (PREFETCH_CONDITIONAL): Renamed from PREFETCH_NOT_ALWAYS.
1116         (struct prefetch_info): Fix spelling of member bytes_accessed.
1117         (emit_prefetch_instructions): Make dump messages more regular;
1118         restructure code to add more dump messages; use new macros for
1119         heuristics. (There are no code generation changes in any of this).
1121 2002-05-10  David S. Miller  <davem@redhat.com>
1123         * rtl.h (INSN_ANNULLED_BRANCH_P): Accept INSN too, update comment.
1124         (struct rtx_def): Update unchanging flag comment.
1125         * doc/rtl.texi (INSN_ANNULLED_BRANCH_P): Update description.
1126         * reorg.c (delete_from_delay_list): INSN_ANNULLED_BRANCH_P needs
1127         to be handled to INSN too.
1128         (dbr_schedule): Likewise.
1129         * resource.c (next_insn_no_annul): Likewise.
1131         * cse.c (rtx_cost): Remove multiplication by power of 2 special
1132         casing.
1134 2002-05-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1136         * doc/install.texi (Specific, *-*-solaris2*): Update passus on
1137         setting CONFIG_SHELL to /bin/ksh and remove alternate trick to
1138         (possibly) work around broken /bin/sh.
1140 2002-05-10  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1142         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Use mabi=64 and
1143         . as N64/N32 libgcc_s.so subdirs.
1145 2002-05-10  David S. Miller  <davem@redhat.com>
1147         * config/sparc/sparc.md: Use define_constants for unspec numbers.
1149         * rtl.h (struct rtx_def): Document unchanging and in_struct flags
1150         more accurately.
1151         (INSN_ANNULLED_BRANCH_P): Only valid for JUMP_INSN and CALL_INSN, fix
1152         comment.
1153         (INSN_FROM_TARGET_P): Valid also for CALL_INSN.
1154         * doc/rtl.texi: Document these macros more accurately.
1155         * recog.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P for
1156         JUMP_INSNs and CALL_INSNs.
1157         * resource.c (whole file): Only mess with INSN_ANNULLED_BRANCH_P
1158         or INSN_FROM_TARGET_P if the code is appropriate.
1160 2002-05-10  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1162         * config/avr/avr.c (print_operand): Check that addr is a SYMBOL_REF
1163         before using SYMBOL_REF_FLAG (addr).
1165         * config/avr/avr-protos.h (avr_io_address_p): Declare.
1166         * config/avr/avr.c (io_address_p): Rename to avr_io_address_p.
1167         Make non-static.  Update all callers.
1168         * config/avr/avr.md (*cbi, *sbi, *sbix_branch, *sbix_branch_bit7):
1169         New insns to clear/set/test a single bit in I/O address space.
1171 2002-05-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1173         * rtl.h (ENABLE_RTL_FLAG_CHECKING): Also check for gcc >= 2.7.
1175 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1177         * Makefile.in: Update.
1178         * c-common.c (flag_iso, flag_undef, cb_register_builtins,
1179         builtin_define_std): New.
1180         (c_common_init): Register CPP builtins callback.
1181         * c-common.h (flag_iso, flag_undef): New.
1182         * c-decl.c (c_decode_option): Set flag_iso and flag_undef.
1183         * c-lex.c: Don't include target.h.
1184         (cb_register_builtins): Move to c-common.c.
1185         (init_c_lex): Don't register hook here.
1186         * c-lex.h (builtin_define, builtin_assert, builtin_define_std): New.
1187         (cpp_define, cpp_assert): Remove.
1188         * gcc.c (cc1_options): Pass -undef to front end.
1189         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): Remove.
1190         (TARGET_INITIALIZER): Update.
1191         * target.h (struct cpp_reader): Don't predeclare.
1192         (struct gcc_target): Remove cpp builtin hook.
1193         * tree.c (default_register_cpp_builtins): Remove.
1194 doc:
1195         * tm.texi: Update.
1197 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1199         * cppexp.c (_cpp_expand_op_stack): Set op_limit.
1201 2002-05-09  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1203         * config/mips/t-iris6 (SHLIB_SLIBDIR_SUFFIXES): Define.
1204         (SHLIB_LINK, SHLIB_INSTALL): Adjust.
1206 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1208         * config/sparc/t-linux64 (SHLIB_MAPFILES): Set.
1209         * config/sparc/libgcc-sparc-glibc.ver: New file.
1210         * config/cris/t-linux (SHLIB_MAPFILES): Remove.
1211         * mklibgcc.in: Preprocess SHLIB_MAPFILES with ml flags.
1213 2002-05-09  Jakub Jelinek  <jakub@redhat.com>
1215         PR target/6429
1216         * Makefile.in (libgcc.mk): Pass SHLIB_SLIBDIR_SUFFIXES to mklibgcc.
1217         * mklibgcc.in: If SHLIB_SLIBDIR_SUFFIXES is defined, put libgcc_s
1218         shared libraries into multilib dirs, with SONAME libgcc_s.so.1 for
1219         base multilibs.
1220         * config/t-slibgcc-elf-ver (SHLIB_LINK): Adjust for the above.
1221         * config/t-slibgcc-sld (SHLIB_LINK): Likewise.
1222         * config/sparc/t-linux64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1223         * config/sparc/t-sol2-64 (SHLIB_SLIBDIR_SUFFIXES): Define.
1225 2002-05-09  Richard Henderson  <rth@redhat.com>
1227         * config/ia64/ia64.md: Use define_constants for unspec numbers.
1228         * config/ia64/ia64.c: Likewise.
1230 2002-05-09  Richard Sandiford  <rsandifo@redhat.com>
1232         * config/mips/mips.c (mips_add_large_offset_to_sp): Remove FILE arg.
1233         (save_restore_insns): Likewise.
1234         (mips_expand_prologue, mips_expand_epilogue): Update callers.
1235         (highpart_shift_operator): Attach ATTRIBUTE_UNUSED to mode argument.
1237 Thu May  9 11:50:09 2002  Jeffrey A Law  (law@cygnus.com)
1239         * athlon.md, k6.md, pentium.md, ppro.md): New files.
1240         * i386.md: Move scheduling information into new files.
1242         * i386.md (type attribute): Add "rotate" for rotate insns.
1243         (rotate insns): Set type to "rotate".
1244         (various attributes and function units): Treat rotate like shift.
1245         (pent_pair attribute): Only rotates by one bit position are
1246         pairable.
1247         (sbb insns): Explicitly set pent_pair attribute on a couple
1248         that were missing it.
1250 Thu May  9 18:29:24 2002  J"orn Rennecke <joern.rennecke@superh.com>
1252         * sh.c (sh_builtin_saveregs): If starting with an odd fp register,
1253         make sure that buffer starts on odd word address.
1254         (sh_va_arg): Skip odd fp registers when reading a double precision
1255         value.
1257 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1259         * tree.h (preserve_data, object_permanent_p, type_precision):
1260         Remove.
1262 2002-05-09  Neil Booth  <neil@daikokuya.demon.co.uk>
1264         * cpplib.c (cpp_init_internal_pragmas): Remove #pragma poison.
1265         * cppmacro.c (paste_all_tokens): Bad pastes are a hard error.
1266 doc:
1267         * cpp.texi: Update for removal of obsolete features.
1269 Thu May  9 07:46:18 2002  Jan Hubicka <jh@suse.cz>
1270                           Jeffrey A Law  (law@redhat.com)
1272         * i386.c (ia32_use_dfa_pipeline_interface): New function.  Use
1273         the DFA interface for Pentium processors.
1274         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): DEFINE.
1275         (attr_pent_pair, ix86_pent_find_pair): Remove.
1276         (ix86_sched_reorder_pentium): Remove.
1277         (ix86_sched_reorder): Remove reordering for Pentium.
1278         * i386.md (Pentium scheduling): Rewrite using DFA description.
1280 Thu May  9 14:55:39 CEST 2002  Jan Hubicka  <jh@suse.cz>
1282         * cfganal.c (can_fallthru): Fix fast path.
1283         * cfgrtl.c (verify_flow_info): Avoid crash on conditionals
1284         with edges to the next block.
1286 Thu May  9 14:52:45 CEST 2002  Jan Hubicka  <jh@suse.cz>
1287                                Pavel Nejedly  <bim@atrey.karlin.mff.cuni.cz>
1289         * final.c (end_final): Use C trees to output data structures for profiling.
1291         * Makefile.in (LIBGCC_DEPS): Added missing dependency on gcov-io.h
1292         (profile.o): New dependency profile.h
1293         (final.o): New dependency profile.h
1294         * profile.h: New file. New global structure profile_info.
1295         * final.h (count_edges_instrumented_now): Declare.
1296         (current_function_cfg_checksum): Declare.
1297         (function_list): New structure.
1298         (functions_head, functions_tail): New static variables.
1299         (end_final): Emits more data, removed some -ax stuff.
1300         (final): Stores function names and chcksums.
1301         * gcov-io.h (__write_gcov_string): New function.
1302         (__read_gcov_string): New function.
1303         * gcov.c (read_profile): New function.
1304         (create_program_flow_graph): Uses read_profile instead of reading
1305         da_file.
1306         (read_files): Removed da_file checking, it's done by read_profile now.
1307         * libgcc2.c (bb_function_info): New structure.
1308         (bb): New field in structure, removed some -ax stuff.
1309         (__bb_exit_func): Changed structure of da_file.
1310         * profile.c (count_edges_instrumented_now): New global variable.
1311         (current_function_cfg_checksum): New global variable.
1312         (max_counter_in_program): New global variable.
1313         (get_exec_counts): New function.
1314         (compute_checksum): New function.
1315         (instrument_edges): Sets count_edges_instrumented_now.
1316         (compute_branch_probabilities): Uses get_exec_counts instead of
1317         reading da_file.
1318         (branch_prob): Calls compute_checksum and writes extra data to bbg_file.
1319         (init_branch_prob): Removed da_file checking, done in get_exec_counts
1320         now.
1321         (end_branch_prob): Removed da_file checking, done in get_exec_counts
1322         now.
1323         * gcov.texi: Updated information about gcov file format.
1325 2002-05-09  Kazu Hirata  <kazu@cs.umass.edu>
1327         * sbitmap.c: Fix formatting.
1328         * scan.c: Likewise.
1329         * scan-decls.c: Likewise.
1330         * sched-deps.c: Likewise.
1331         * sched-ebb.c: Likewise.
1332         * sched-rgn.c: Likewise.
1333         * sched-vis.c: Likewise.
1334         * sdbout.c: Likewise.
1335         * sibcall.c: Likewise.
1336         * simplify-rtx.c: Likewise.
1337         * ssa.c: Likewise.
1338         * ssa-ccp.c: Likewise.
1339         * ssa-dce.c: Likewise.
1340         * stmt.c: Likewise.
1341         * stor-layout.c: Likewise.
1342         * stringpool.c: Likewise.
1344 2002-05-09  David S. Miller  <davem@redhat.com>
1346         * config/sparc/sol2.h (ASM_CPU_SPEC): Handle -mcpu=v9.
1348 2002-05-07  David S. Miller  <davem@redhat.com>
1350         * config/sparc/sparc.h (TARGET_BUGGY_QP_LIB): Define to zero.
1351         * config/sparc/sol2.h (TARGET_BUGGY_QP_LIB): Override to one.
1352         * config/sparc/sparc.c (emit_soft_tfmode_libcall): If the Qp
1353         library implementation clobbers the output before the inputs
1354         are fully consumed, use stack temporary for the output.
1356 2002-05-09  Jason Thorpe  <thorpej@wasabisystems.com>
1358         * config/netbsd.h (CPP_SPEC): Remove.
1359         * config/i386/netbsd-elf.h (CPP_SPEC): Define.
1360         * config/i386/netbsd.h (CPP_SPEC): Define.
1361         * config/ns32k/netbsd.h (CPP_SPEC): Define.
1362         * config/sparc/netbsd-elf.h (CPP_SPEC): Remove.
1363         * config/sparc/netbsd.h (CPP_SPEC): Define.
1364         * config/vax/netbsd.h (CPP_SPEC): Define.
1366 2002-05-08  Kazu Hirata  <kazu@cs.umass.edu>
1368         * read-rtl.c: Fix formatting.
1369         * real.c: Likewise.
1370         * recog.c: Likewise.
1371         * regclass.c: Likewise.
1372         * regmove.c: Likewise.
1373         * reg-stack.c: Likewise.
1374         * reload1.c: Likewise.
1375         * reload.c: Likewise.
1376         * resource.c: Likewise.
1377         * rtlanal.c: Likewise.
1378         * rtl.c: Likewise.
1379         * rtl-error.c: Likewise.
1381 2002-05-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1383         * pa/pa-64.h (MAX_WCHAR_TYPE_SIZE): Delete.
1384         * pa/pa.h (MAX_WCHAR_TYPE_SIZE): Delete.
1386 2002-05-08  Bernd Schmidt  <bernds@redhat.com>
1388         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Tweak previous change to
1389         use __SSE2__ macro instead.
1390         * config/i386/xmmintrin.h: Likewise.
1392 2002-05-08  Janis Johnson  <janis187@us.ibm.com>
1394         * rtl.h (RTL_FLAG_CHECK*): Add an argument for the macro name,
1395         and use it in all invocations of these macros.  Clean up comments.
1396         * rtl.c (rtl_check_failed_flag): Add an argument for the name
1397         of the flag access macro whose check failed.
1398         * doc/rtl.texi (Flags): Document additional flag uses.
1400 2002-05-08  Robert Spier <rspier@pobox.com>
1401             Neil Booth  <neil@daikokuya.demon.co.uk>
1403         PR preprocessor/6521
1404         * cppfiles.c (handle_missing_header): Don't do anything
1405         different for <> includes.
1406 doc:
1407         * cppopts.texi: Update documentation for -MG.
1409 2002-05-08  Neil Booth  <neil@daikokuya.demon.co.uk>
1411         * cpplex.c (cpp_interpret_charconst): Truncate as well as
1412         sign-extend.
1413 doc:
1414         * cpp.texi: Clarify multichar charconst valuation.
1416 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
1418         * doc/invoke.texi: Document -mwindiss option.
1420 2002-05-08  Jason Merrill  <jason@redhat.com>
1422         * dwarf2out.c (output_call_frame_info): Don't emit a CIE with no FDEs.
1424         * dwarf2out.c (gen_type_die): Abort on broken recursion.
1426         PR c++/6381
1427         * dwarf2out.c (rtl_for_decl_location): Only expand INTEGER_CST and
1428         REAL_CST.
1430 2002-05-08  Nick Clifton  <nickc@cambridge.redhat.com>
1432         * config/arm/t-arm-elf (MULTILIB): Do not allow big-endian/
1433         little-endian multilibs to override arm/thumb multilibs.
1434         Do not build hardware floating point multilibs, nor apcs-26
1435         multilibs for the Thumb.
1437 2002-05-08  Mark Mitchell  <mark@codesourcery.com>
1439         PR c/6569.
1440         * varasm.c (mark_weak): New function.
1441         (merge_weak): Use it.  Do not call declare_weak.
1442         (declare_weak): Use merge_weak.
1444 Wed May  8 13:12:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1446         * cse.c (dead_libcall_p): Update counts.
1447         (delete_trivially_dead_insns): Update call of dead_libcall_p.
1449 Wed May  8 11:08:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
1451         * cfglayout.c (function_tail_eff_head): Rename to ...
1452         (function_footer): ... this one.
1453         (unlink_insn_chain): New functions.
1454         (label_for_bb): Only call block_label and emit debug message.
1455         (record_effective_endpoints): Actually unlink the headers and footers.
1456         (fixup_reorder_cahin): Re-insert the unlinked sequences.
1457         (cfg_layout_duplicate_bb): Use duplicate_insn_chain.
1458         * cfglayout.h (struct reorder_block_def): New fields footer/header;
1459         remove eff_head/eff_end.
1460         * rtl.h (set_first_insn): Declare.
1461         * emit-rtl.c (set_first_insn): New function.
1463         * cfglayout.c (fixup_reorder_chain): Dump duplicated
1464         (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1465         cfg_layout_duplicate_bb): New global function.
1466         (duplicate_insn_chain): New static function.
1467         * cfglayout.h (cfg_layout_can_duplicate_bb_p, cfg_layout_rerirect_edge,
1468         cfg_layout_duplicate_bb): Declare.
1469         (struct reorder_block_def): Add "original" field.
1470         * emit-rtl.c (emit_copy_of_insn_after): New function.
1471         * rtl.h (emit_copy_of_insn_after): Declare.
1473         * cfglayout.c (fixup_fallthru_exit_predecessor): Kill.
1474         (fixup_reorder_chain): properly handle edges to exit block.
1476 Wed May  8 11:10:31 CEST 2002  Zdenek Dvorak  <rakdver@atrey.karlin.mff.cuni.cz>
1477                                Jan Hubicka  <jh@suse.cz>
1479         * basic-block.h (note_prediction_to_br_prob): declare.
1480         * c-semantics.c: Inlucde predit.h
1481         (expand_stmt): predict GOTO_STMT as not taken.
1482         * cfgcleanup.c: (delete_unreachable_blocks): Make global.
1483         (cleanup_cfg): Do not free tail_recursion_list.
1484         * cfgrtl.c (can_delete_note_p): Delete NOTE_INSN_PREDICTION.
1485         (flow_delete_block): Kill predictions past end of basic block.
1486         * output.h (delete_unreachable_blocks): Declare.
1487         * predict.c (predicted_by_p, process_note_predictions,
1488         process_note_prediction, last_block_p): New function.
1489         (estimate_probability): Bypass loop on PRED_CONTINUE;
1490         do not handle noreturn heuristics; kill PRED_RETURN; add
1491         PRED_EARLY_RETURN.
1492         * predict.def (PRED_CONTINUE, PRED_EARLY_RETURN, PRED_GOTO,
1493         PRED_CONST_RETURN, PRED_NEGATIVE_RETURN, PRED_NULL_RETURN): New.
1494         * predict.h (IS_TAKEN): New constant.
1495         * print-rtl.c (print_rtx): Pretty print NOTE_INSN_PREDICTION.
1496         * rtl.c (NOTE_INSN_PREDICTION): New.
1497         * rtl.h (NOTE_PREDICTION, NOTE_PREDICTION_ALG, NOTE_PREDICTION_FLAGS):
1498         New macro.
1499         (insn_note): add NOTE_INSN_PREDICTION.
1500         * sibcall.c (optimize_sibling_and_tail_recursive_call): Do not build
1501         CFG; free tail_recursion_label_list.
1502         * stmt.c: Include predict.h;
1503         (return_prediction): New.
1504         (expand_value_return): Use it.
1505         * toplev.c: Lower NOTE_INSN_PREDICTION before sibcall.
1507 2002-05-08  Richard Sandiford  <rsandifo@redhat.com>
1509         * config/mips/mips.md: Name the unspecs with define_constant.
1510         (*HILO_delay): Rename to 'hilo_delay' (no star).
1511         (reload_indi): Replace gen_rtx_UNSPEC with gen_hilo_delay.
1512         (reload_outdi, reload_outsi): Likewise.
1514 2002-05-07  Kazu Hirata  <kazu@cs.umass.edu>
1516         * toplev.c: Fix formatting.
1518 2002-05-07  Janis Johnson  <janis187@us.ibm.com>
1520         * config.in (ENABLE_RTL_FLAG_CHECKING): New.
1521         * configure.in (ac_rtlflag_checking): New.
1522         * doc/install.texi (--enable-checking): Document RTL flag checking.
1524 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1526         * c-common.c (c_common_init): Set options->unsigned_wchar.
1527         * cppinit.c (cpp_create_reader): Default unsigned_wchar,
1528         group target dependencies.
1529         (init_builtins, cpp_handle_option): Update.
1530         * cpplex.c (cpp_interpret_charconst): Update.
1531         * cpplib.h (struct cpp_options): Add unsigned_wchar, rename
1532         signed_char to unsigned_char, group target dependencies.
1533         * defaults.h (WCHAR_UNSIGNED): Remove.
1534         * system.h (WCHAR_UNSIGNED, MAX_CHAR_TYPE_SIZE): Poison.
1535 config:
1536         * freebsd.h, interix.h, alpha/freebsd.h, arm/freebsd.h,
1537         i386/386bsd.h, i386/beos-elf.h, i386/bsd386.h, i386/cygwin.h,
1538         i386/djgpp.h, i386/freebsd-aout.h, i386/i386-interix.h,
1539         i386/win32.h, ia64/freebsd.h, mips/netbsd.h, rs6000/freebsd.h,
1540         sh/elf.h, sh/sh.h, sparc/freebsd.h: Remove WCHAR_UNSIGNED.
1541 doc:
1542         * tm.texi: Remove MAX_CHAR_TYPE_SIZE.
1544 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
1546         * fixinc/inclhack.def (windiss_math1): New fix.
1547         (windiss_math2): Likewise.
1548         (windiss_valist): Likewise.
1549         * fixinc/fixincl.x: Regenerated.
1551 2002-05-07  Andreas Jaeger  <aj@suse.de>
1553         * genautomata.c (output_internal_min_issue_delay_func): Add
1554         ATTRIBUTE_UNUSED to avoid warning with empty dfa.
1555         (output_internal_trans_func): Likewise.
1557 Tue May  7 10:06:22 2002  Jeffrey A Law  (law@redhat.com)
1559         * pa.c (hppa_profile_hook): Use force_reg to get the address
1560         of the profile hook into an appropriate pseudo register.
1562 2002-05-07  Mark Mitchell  <mark@codesourcery.com>
1564         * config/rs6000/sysv4.h (SUBTARGET_SWITCHES): Add -mwindiss.
1565         (LINK_START_SPEC): Handle it.
1566         (LINK_OS_SPEC): Likewise.
1567         (CPP_SPEC): Likewise.
1568         (STARTFILE_SPEC): Likewise.
1569         (LIB_SPEC): Likewise.
1570         (ENDFILE_SPEC): Likewise.  Do not assume crtsavres.o is used on
1571         all platforms.
1572         (CRTSAVRES_DEFAULT_SPEC): New macro.
1573         (LIB_WINDISS_SPEC): New macro.
1574         (CPP_OS_WINDISS_SPEC): Likewise.
1575         (STARTFILE_WINDISS_SPEC): Likewise.
1576         (ENDFILE_WINDISS_SPEC): Likewise.
1577         (LINK_START_WINDISS_SPEC): Likewise.
1578         (LINK_OS_WINDISS_SPEC): Likewise.
1579         * config/rs6000/windiss.h: New file.
1581 2002-05-07  Aldy Hernandez  <aldyh@redhat.com>
1583         * config/rs6000/rs6000.c (bdesc_2arg): Fix vmax typos.
1585 2002-05-06  David S. Miller  <davem@redhat.com>
1587         * config/sparc/sparc.md (shift insns): Do not mask off
1588         second operand, 'I' constraint and SHIFT_COUNT_TRUNCATED
1589         take care of it.
1591 2002-05-06  Richard Henderson  <rth@redhat.com>
1593         PR c++/6212
1594         * expr.c (highest_pow2_factor_for_type): New.
1595         (expand_assignment): Use it.
1597 2002-05-06  Aldy Hernandez  <aldyh@redhat.com>
1599         * config/rs6000/rs6000.md ("altivec_mtvscr"): Change to
1600         unspec_volatile.
1601         ("altivec_mfvscr"): Same.
1603 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
1605         * rtl.h (struct rtx_def): Update comments.
1606         (RTL_FLAG_CHECK[12345678]): New.  (rtl_check_failed_flag): Declare.
1607         (RTL_FLAG): New.  (CLEAR_RTX_FLAGS): New.  (flag access macros): Use
1608         RTL_FLAG_CHECK macros with list of expected RTL codes.
1609         * rtl.c (copy_rtx, shallow_copy_rtx): Use RTX_FLAG macro.
1610         (rtl_check_failed_flag): New.
1611         * reload1.c (reload): Use REG macro before changing rtx to MEM.
1612         (reload_cse_noop_set_p): Check rtx code before using access macro.
1613         * config/ia64/ia64.c (process_for_unwind_directive): Check rtx code
1614         before using access macro.
1616 2002-05-06  Janis Johnson  <janis187@us.ibm.com>
1618         * doc/rtl.texi (Flags): Update to reflect current usage.
1620 2002-05-06  Roger Sayle  <roger@eyesopen.com>
1622         PR opt/3995
1623         * fold-const.c (sign_bit_p): New function.
1624         (fold) [EQ_EXPR]: Use this to convert (A & C) == 0 into A >= 0 and
1625         (A & C) != 0 into A < 0, when constant C is the sign bit of A's type.
1626         Reapply fold when converting (A & C) == C into (A & C) != 0.
1627         (fold_binary_op_with_conditional_arg): Fix typo in comment.
1629 2002-05-07  Neil Booth  <neil@daikokuya.demon.co.uk>
1631         * c-common.c (warn_multichar): New.
1632         (c_common_init): Set CPP's warn_multichar.
1633         * c-common.h (warn_multichar): New.
1634         * c-decl.c (warn_multichar): Remove.
1635         * c-lex.c (lex_charconst): Update.
1636         * c-tree.h (warn_multichar): Remove.
1637         * cppexp.c (eval_token): Sign-extend charconst value.
1638         * cppinit.c (cpp_create_reader): Set warn_multichar.
1639         * cpplex.c (cpp_interpret_charconst): Don't sign-extend
1640         each character.  Update prototype.  Sign-extend the result.
1641         * cpplib.h: Fix conditions.
1642         (struct cpp_options): Add new warning flag.
1643         (cpp_interpret_charconst): Update prototype.
1644 doc:
1645         * cpp.texi: Update documentation.
1647 2002-05-06  Vladimir Makarov  <vmakarov@redhat.com>
1649         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp):
1650         Fix typo in usage of allof instead of unit.
1652 2002-05-06  Richard Henderson  <rth@redhat.com>
1654         * recog.c (if_test_bypass_p): Accept multiple set insns for OUT,
1655         and any jump or call for IN.
1657 2002-05-06  Bernd Schmidt  <bernds@redhat.com>
1659         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Define __SSE2_BUILTINS__ if
1660         -msse2.
1661         * config/i386/xmmintrin.h: Use it to conditionalize SSE2 support.
1663 2002-05-06  Roger Sayle  <roger@eyesopen.com>
1665         * fold-const.c (lshift-double): Cast the high word to an unsigned
1666         HOST_WIDE_INT when extracting sign bit to avoid compiler warning.
1667         (div_and_round_double): Cast carry to a signed HOST_WIDE_INT to
1668         avoid compiler warning.  (fold): Remove redundant code from
1669         BIT_AND_EXPR as integer operands are canonicalized to be arg1.
1671 2002-05-06  Jeff Law  <law@redhat.com>
1673         * pa-protos.h (hppa_fpstore_bypass_p): Declare.
1674         * pa.c (pa_adjust_cost): Remove all true dependency cost
1675         adjustments.  Also remove support for non-DFA scheduling.
1676         * pa.md (700, 7100, 7100lc, 7200, 7300): Use bypass mechanism
1677         to adjust true dependency costs.  Update various comments.
1678         (7100lc, 7200, 7300 scheduling): Simplify by combining the
1679         FP ALU & MPY units into a single unit.
1681 2002-05-06  Catherine Moore  <clm@redhat.com>
1683         * config/v850/v850.c (compute_register_save_size): Make sure
1684         to count all of the registers that will be saved.
1686 Mon May  6 18:03:11 CEST 2002  Jan Hubicka  <jh@suse.cz>
1688         * i386.c (q_regs_operand): Use ANY_QI_REGS_P.
1690 2002-05-06  David S. Miller  <davem@redhat.com>
1692         * config/sparc/sparc.c (emit_soft_tfmode_libcall): Do not
1693         allow result to overlap input operands in memory.
1695 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1697 doc:
1698         * cpp.texi: Update multichar charconst docs.
1700 2002-05-06  Neil Booth  <neil@daikokuya.demon.co.uk>
1702         * cpplex.c (cpp_interpret_charconst): Sign-extend each
1703         character.  Don't ignore excess characters.  Treat
1704         multicharacter character constants as signed.
1705         (cpp_parse_escape): Clarify diagnostic.
1707 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
1709         * config/sparc/sparc.md (ashlsi3): If shift count is const1_rtx,
1710         use add instead of shift.
1711         (ashldi3_sp64): Likewise.
1712         (ashlsi3_const1, ashldi3_const1): Remove.
1713         * config/sparc/sparc.h (PREDICATE_CODES): Add const1_operand.
1714         * config/sparc/sparc.c (const1_operand): New.
1716 2002-05-05  Jason Thorpe  <thorpej@wasabisystems.com>
1718         * config.gcc (alpha*-*-netbsd*): Don't use crtstuff.
1720 2002-05-05  Jakub Jelinek  <jakub@redhat.com>
1722         PR target/6561
1723         * config/sparc/sparc.md (muldi3_v8plus): Handle %1 equal to %2.
1725 2002-05-05  Richard Henderson  <rth@redhat.com>
1727         * config/alpha/alpha.c (alpha_adjust_cost): Remove everything but
1728         memory latency adjustments.
1729         (alpha_variable_issue): Remove.
1730         (alpha_use_dfa_pipeline_interface): New.
1731         (alpha_multipass_dfa_lookahead): New.
1732         * config/alpha/alpha.md: Remove define_function_unit scheduling;
1733         include new dfa scheduling.
1734         (attr type): Add none.
1735         (blockage): Use it.
1736         * config/alpha/ev4.md: New.
1737         * config/alpha/ev5.md: New.
1738         * config/alpha/ev6.md: New.
1740 2002-05-05  David S. Miller  <davem@redhat.com>
1742         * recog.c (store_data_bypass_p): Handle CLOBBER inside PARALLEL.
1744 2002-05-05  Kazu Hirata  <kazu@cs.umass.edu>
1746         * cse.c: Fix formatting.
1747         * emit-rtl.c: Likewise.
1749 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
1751         * genautomata.c (initiate_states): Add additional guard to
1752         initialize `units_array'.
1754 2002-05-05  Vladimir Makarov  <vmakarov@redhat.com>
1756         * genautomata.c (form_the_same_automaton_unit_lists_from_regexp,
1757         process_unit_to_form_the_same_automaton_unit_lists,
1758         form_the_same_automaton_unit_lists
1759         check_unit_distributions_to_automata): New prototypes and
1760         functions.
1761         (check_automata): Rename it into `check_automata_insn_issues'.
1762         (unit_decl): New fields `the_same_automaton_unit' and
1763         `the_same_automaton_message_reported_p'.
1764         (unit_decl_t): New typedef.
1765         (the_same_automaton_lists): New gloval variable.
1766         (unit_regexp, unit_set_el, units_array, units_cmp,
1767         output_get_cpu_unit_code_func): Use the typedef.
1768         (evaluate_max_reserv_cycles): Increment
1769         `description->max_insn_reserv_cycles'.
1770         (initiate_states): Don't increment `max_cycles_num'.
1771         (transform_insn_regexps): Move code around transformation of
1772         regexps from `generate'.
1773         (generate): Remove call of `transform_insn_regexps'.
1774         (expand_automata): Call `transform_insn_regexps' and
1775         `check_unit_distributions_to_automata'.  Check errors before
1776         `generate'.
1778         * config/sparc/ultra3.md (us3_a0, us3_a1): Move the units into
1779         automaton `ultrasparc3_1'.
1781 2002-05-05  Neil Booth  <neil@daikokuya.demon.co.uk>
1783         * c-common.c (c_common_init): Set up CPP arithmetic.
1784         * cppinit.c (cpp_create_reader): Default CPP arithmetic to
1785         something reasonable for the host.
1786         (sanity_checks): Add checks.
1787         (cpp_read_main_file): Call sanity_checks() from here...
1788         (cpp_post_options): ... not here.
1789         * cpplex.c (cpp_interpret_charconst): Get max_chars right.
1790         * cpplib.h (struct cpp_options): New member int_precision.
1792 2002-05-05  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
1794         * doc/install.texi (powerpc-*-linux-gnu*): Update build requirements.
1796 2002-05-04  David S. Miller  <davem@redhat.com>
1798         * config/sparc/linux.h, config/sparc/linux64.h
1799         (HANDLE_PRAGMA_PACK_PUSH_POP): Don't define twice.
1801         * config/sparc/sparc.c (sparc_rtx_costs): Describe costs of
1802         more RTX codes.
1803         * config/sparc/sparc.h (RTX_COSTS_CASES): List those new codes.
1805         * recog.c (store_data_bypass_p): Handle out_insn being a PARALLEL
1806         of SETs.
1808 2002-05-05  Tim Josling  <tej@melbpc.org.au>
1810         * treelang; New directory for new sample language treelang.
1812 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1814         * Makefile.in (c-lex.o): Update.
1815         * c-lex.c: Include target.h.
1816         (cb_register_builtins): New.
1817         (init_c_lex): Set builtins callback.
1818         * c-lex.h (cpp_define, cpp_assert): New prototypes.
1819         * cppinit.c (init_builtins): Use callback, including for
1820         GXX_WEAK.
1821         * cpplib.h (struct cpp_callbacks): New member.
1822         * target-def.h (TARGET_REGISTER_CPP_BUILTINS): New.
1823         (TARGET_INITIALIZER): Update.
1824         * target.h (struct gcc_target): New hook.
1825         * tree.c (default_register_cpp_builtins): New.
1826         * tree.h (default_register_cpp_builtins): New.
1827 doc:
1828         * tm.texi (TARGET_REGISTER_CPP_BUILTINS): Document.
1830 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1832         * cppinit.c (MAX_WCHAR_TYPE_SIZE): Move to cpplib.h
1833         (cpp_post_options): Move sanity checks to...
1834         (sanity_checks): New.
1835         * cpplex.c (maybe_read_ucs): Fix prototype.
1836         (parse_string, cpp_parse_escape): Cast for %c format specifier.
1837         * cpplib.h (cppchar_t): Use unsigned long or unsigned long long
1838         if necessary.
1840 2002-05-04  Bernd Schmidt  <bernds@redhat.com>
1842         * config/i386/i386.c (bdesc_2arg): Add a couple of missing SSE2
1843         builtins.  Use V2DI patterns instead of TI for logical operations.
1844         (ix86_init_mmx_sse_builtins): Add a couple of missing SSE2 builtins.
1845         Correct definitions of psadbw, pmovmskb128, movntdq, cvtdq2ps.
1846         (ix86_expand_builtins): Change the pattern used for movntdq.
1847         * config/i386/i386.md (sse2_andv2di3, sse2_iorv2di3, sse2_xorv2di3,
1848         sse2_nandv2di3): New patterns.
1849         (sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3): Correct modes
1850         on operands.
1851         (sse2_movntv2di): Renamed from sse2_movntti and modes adjusted.
1852         (cvtdq2pd): Correct mode on operand 1.
1853         (sse2_umulsidi3): Describe without unspec.
1854         (sse2_psadbw, mmx_psadbw): Describe with unspec; use more appropriate
1855         machine modes.
1856         (lshrv2di3): Renamed from sse2_lshrv2di3 and removed unspec.
1857         (ashlv2di3): Likewise, from sse2_ashlv2di3.
1858         (ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, lshrv2di3, ashlv8hi3,
1859         ashlv4si3, ashlv2di3): Use SImode for shift count.
1860         (ashrv8hi3_ti, ashrv4si3_ti, lshrv8hi3_ti, lshrv4si3_ti, lshrv2di3_ti,
1861         lshrv4si3_ti, lshrv2di3_ti, ashlv8hi3_ti, ashlv4si3_ti, ashlv2di3_ti):
1862         New patterns.
1863         * config/i386/xmmintrin.h (__v2df, __v2di, __v4si, __v8hi, __v16qi):
1864         New typedefs.
1865         (__m128i, __m128d): New macros.
1866         (_mm_add_pd, _mm_add_sd, _mm_sub_pd, _mm_sub_sd, _mm_mul_pd,
1867         _mm_mul_sd, _mm_div_pd, _mm_div_sd, _mm_sqrt_pd, _mm_sqrt_sd,
1868         _mm_min_pd, _mm_min_sd, _mm_max_sd, _mm_max_pd, _mm_and_pd,
1869         _mm_andnot_pd, _mm_xor_pd, _mm_or_pd, _mm_cmpeq_pd, _mm_cmplt_pd,
1870         _mm_cmple_pd, _mm_cmpgt_pd, _mm_cmpge_pd, _mm_cmpneq_pd,
1871         _mm_cmpnlt_pd, _mm_cmpnle_pd, _mm_cmpngt_pd, _mm_cmpnge_pd,
1872         _mm_cmpord_pd, _mm_cmpunord_pd, _mm_cmpeq_sd, _mm_cmplt_sd,
1873         _mm_cmple_sd, _mm_cmpgt_sd, _mm_cmpge_sd, _mm_cmpneq_sd,
1874         _mm_cmpnlt_sd, _mm_cmpnle_sd, _mm_cmpngt_sd, _mm_cmpnge_sd,
1875         _mm_cmpord_sd, _mm_cmpunord_sd, _mm_comieq_sd, _mm_comilt_sd,
1876         _mm_comile_sd, _mm_comigt_sd, _mm_comige_sd, _mm_comineq_sd,
1877         _mm_ucomieq_sd, _mm_ucomieq_sd, _mm_ucomilt_sd, _mm_ucomile_sd,
1878         _mm_ucomigt_sd, _mm_ucomige_sd, _mm_ucomineq_sd, _mm_cvtepi32_pd,
1879         _mm_cvtepi32_ps, _mm_cvtpd_epi32, _mm_cvtpd_pi32, _mm_cvtpd_ps,
1880         _mm_cvttpd_epi32, _mm_cvttpd_pi32, _mm_cvtpi32_pd, _mm_cvtps_epi32,
1881         _mm_cvttps_epi32, _mm_cvtps_pd, _mm_cvtsd_si32, _mm_cvttsd_si32,
1882         _mm_cvtsd_ss, _mm_cvtsi32_sd, _mm_cvtss_sd, _mm_unpackhi_pd,
1883         _mm_unpacklo_pd, _mm_loadh_pd, _mm_storeh_pd, _mm_storel_pd,
1884         _mm_movemask_pd, _mm_packs_epi16, _mm_packs_epi32, _mm_packus_epi16,
1885         _mm_unpackhi_epi8, _mm_unpackhi_epi16, _mm_unpackhi_epi32,
1886         _mm_unpacklo_epi8, _mm_unpacklo_epi16, _mm_unpacklo_epi32,
1887         _mm_add_epi8, _mm_add_epi16, _mm_add_epi32, _mm_add_epi64,
1888         _mm_adds_epi8, _mm_adds_epi16, _mm_adds_epu8, _mm_adds_epu16,
1889         _mm_sub_epi8, _mm_sub_epi16, _mm_sub_epi32, _mm_sub_epi64,
1890         _mm_subs_epi8, _mm_subs_epi16, _mm_subs_epu8, _mm_subs_epu16,
1891         _mm_madd_epi16, _mm_mulhi_epi16, _mm_mullo_epi16, _mm_mul_pu16,
1892         _mm_mul_epu16, _mm_sll_epi16, _mm_sll_epi32, _mm_sll_epi64,
1893         _mm_sra_epi16, _mm_sra_epi32, _mm_srl_epi16, _mm_srl_epi32,
1894         _mm_srl_epi64, _mm_slli_epi16, _mm_slli_epi32, _mm_slli_epi64,
1895         _mm_srai_epi16, _mm_srai_epi32, _mm_srli_epi16, _mm_srli_epi32,
1896         _mm_srli_epi64, _mm_and_si128, _mm_andnot_si128, _mm_or_si128,
1897         _mm_xor_si128, _mm_cmpeq_epi8, _mm_cmpeq_epi16, _mm_cmpeq_epi32,
1898         _mm_cmpgt_epi8, _mm_cmpgt_epi16, _mm_cmpgt_epi32, _mm_max_epi16,
1899         _mm_max_epu8, _mm_min_epi16, _mm_min_epu8, _mm_movemask_epi8,
1900         _mm_mulhi_epu16, _mm_maskmoveu_si128, _mm_avg_epu8, _mm_avg_epu16,
1901         _mm_sad_epu8, _mm_stream_si32, _mm_stream_si128, _mm_stream_pd,
1902         _mm_movpi64_epi64, _mm_clflush, _mm_lfence, _mm_mfence): New
1903         functions.
1904         (_mm_shufflehi_epi16, _mm_shufflelo_epi16, _mm_shuffle_epi32,
1905         _mm_extract_epi16, _mm_insert_epi16, _mm_shuffle_pd): New macros.
1907 2002-05-04  Kazu Hirata  <kazu@cs.umass.edu>
1909         * dwarf2out.c: Fix formatting.
1910         * varasm.c: Likewise.
1912 2002-05-04  David Edelsohn  <edelsohn@gnu.org>
1914         PR c/6543
1915         * config/rs6000/rs6000.md (sCC pattern and splitter): Remove
1916         clobber and use result as temporary value.
1918 Sat May  4 13:20:54 CEST 2002  Jan Hubicka  <jh@suse.cz>
1920         * expr.c (force_operand): Use expand_simple_* to handle more
1921         cases.
1923 2002-05-04  Neil Booth  <neil@daikokuya.demon.co.uk>
1925         * c-lex.c (lex_string): Let cpp_parse_escape handles truncation
1926         and sign-extension.
1927         (lex_charconst): Update for change in prototype of
1928         cpp_interpret_charconst.  Extend from cppchar_t to HOST_WIDE_INT
1929         appropriately.
1930         * cpphash.h (BITS_PER_CPPCHAR_T): New.
1931         * cppinit.c (cpp_create_reader): Initialize them for no
1932         change in semantics.
1933         (cpp_post_options): Add sanity checks.
1934         * cpplex.c (cpp_parse_escape): Handle precision, sign-extension
1935         and truncation issues.  Calculate in type cppchar_t.
1936         (MAX_CHAR_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Remove.
1937         (cpp_interpret_charconst): Calculate in type cppchar_t.  Handle
1938         run-time dependent precision correctly.  Return whether the
1939         result is signed or not.
1940         * cpplib.c (dequote_string): Use cppchar_t; update.
1941         * cpplib.h (cppchar_signed_t): New.
1942         struct cpp_options): New precision members.
1943         (cpp_interpret_charconst, cpp_parse_escape): Update prototypes.
1944         * cppexp.c (eval_token): Update.
1946 2002-05-03  David S. Miller  <davem@redhat.com>
1948         * config/sparc/sparc-protos.h (sparc_rtx_costs): New.
1949         * config/sparc/sparc.c (sparc_rtx_costs): New function
1950         implementing RTX_COSTS and CONST_COSTS.
1951         * config/sparc/sparc.h (CONST_COSTS): Delete.
1952         (RTX_COSTS_CASES): Define.
1953         (RTX_COSTS): Expand RTX_COSTS_CASES and use sparc_rtx_costs to do
1954         the work.
1956         * config/sparc/sparc.md (DFA schedulers): Split out...
1957         * config/sparc/cypress.md, config/sparc/hypersparc.md,
1958         config/sparc/sparclet.md, config/sparc/supersparc.md,
1959         config/sparc/ultra1_2.md, config/sparc/ultra3.md: ... into here.
1961         * config/sparc/sparc.c (LEAF_REGISTERS): Do not do ifdef
1962         checks on it, always defined for Sparc.
1964         * config/sparc/sparc.h (REG_ALLOC_ORDER, REG_LEAF_ALLOC_ORDER):
1965         Tweak, and add more detailed comments.
1967 2002-05-03  Zack Weinberg  <zack@codesourcery.com>
1969         * Re-apply patch accidentally reverted with
1970         DFA scheduler merge: remove all rules and variables to slurp
1971         source files out of libiberty and rebuild them with HOST_CC.
1972         ($(HOST_PREFIX_1)varray.o): New rule.
1973         (genattrtab rule): Word wrap.
1975 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
1977         * config/i386/netbsd64.h (CPP_LP64_SPEC): Define.
1978         (CPP_SUBTARGET_SPEC): Define.
1979         (SUBTARGET_EXTRA_SPECS): Redefine, adding cpp_lp64 and
1980         cpp_subtarget specs.
1981         (CPP_SPEC): Redefine to include %(cpp_subtarget).
1983 2002-05-03  David S. Miller  <davem@redhat.com>
1985         * target-defs.h (TARGET_SCHED_CYCLE_DISPLAY): Delete.
1986         * target.h (struct gcc_target): Delete cycle_display member.
1988         * config/ia64/ia64.c (ia64_emit_insn_before): Put it back.
1989         (rtx_needs_barrier): Delete reference to cycle_display unspec.
1990         (ia64_sched_reorder2): Mention need for cycle display handling
1991         once such notes exist.
1993 2002-05-03  Richard Henderson  <rth@redhat.com>
1995         * real.c (etoasc): Strip most trailing zeros for clarity.
1996         * sched-vis.c: Include real.h.
1997         (print_value): Use REAL_VALUE_TO_DECIMAL as needed.
1998         * Makefile.in (sched-vis.o): Add real.h.
2000 2002-05-03  David S. Miller  <davem@redhat.com>
2002         * haifa-sched.c (rank_for_schedule): Revert 2002-05-02 change,
2003         no longer needed.
2005 2002-05-03  Aldy Hernandez  <aldyh@redhat.com>
2007         * config/rs6000/rs6000.c (altivec_expand_binop_builtin): Error out
2008         when we get an out of range literal.
2009         (altivec_expand_ternop_builtin): Same.
2010         (altivec_expand_unop_builtin): Same.
2011         (altivec_expand_builtin): Same, for dss.
2012         (altivec_expand_builtin): Use trees instead of rtl when
2013         determining literal argument validity.
2015 2002-05-03  David S. Miller  <davem@redhat.com>
2017         Delete cycle display scheduling hook.
2018         * config/ia64/ia64.c (ia64_cycle_display,
2019         TARGET_SCHED_CYCLE_DISPLAY, ia64_emit_insn_before): Delete.
2020         (ia64_sched_reorder2): Don't check for CODE_FOR_cycle_display
2021         and use emit_insn_before instead of ia64_emit_insn_before.
2022         * config/ia64/ia64.md (unspec usage): Delete cycle display.
2023         (cycle_display): Delete insn pattern.
2024         * config/sparc/sparc.md (unspec usage): Delete cycle display.
2025         (cycle_display): Delete insn pattern.
2026         * config/sparc/sparc.c (sparc_cycle_display,
2027         TARGET_SCHED_CYCLE_DISPLAY): Delete.
2028         * doc/md.texi (cycle_display): Don't mention.
2029         * doc/tm.texi (TARGET_SCHED_CYCLE_DISPLAY): Likewise.
2031 2002-05-03  Richard Henderson  <rth@redhat.com>
2033         * recog.c (store_data_bypass_p, if_test_bypass_p): New.
2034         * recog.h: Declare them.
2036         * config/sparc/sparc.c (ultrasparc_store_bypass_p): Remove.
2037         * config/sparc/sparc.md: Use store_data_bypass_p instead.
2038         * config/sparc/sparc-protos.h: Update.
2040 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2042         * config/sparc/netbsd-elf.c (CPP_SUBTARGET_SPEC64): Remove
2043         -D__arch64__.  Add -D_LP64.
2044         (CPP_ARCH32_SPEC): Redefine to match the non-bi-arch version
2045         from sparc.h.
2046         (CPP_ARCH64_SPEC): Likewise.
2047         (NO_BUILTIN_PTRDIFF_TYPE): Undef.
2048         (NO_BUILTIN_SIZE_TYPE): Undef.
2050 2002-05-03  Vladimir Makarov  <vmakarov@redhat.com>
2052         * genautomata.c (min_issue_delay_pass_states): Change return type
2053         in the prototype.
2054         (min_issue_delay_pass_states): Change the algorithm.
2055         (min_issue_delay): Set up min_insn_issue_delay for the state.
2056         (output_min_issue_delay_table): Interchange the nested loops and
2057         and initiate min_insn_issue_delay for states.
2059 Fri May  3 22:59:15 CEST 2002  Jan Hubicka  <jh@suse.cz>
2061         * cfgcleanup.c (try_optimize_cfg):  Call merge_block only when
2062         jump is simplejump.
2064 Fri May  3 22:53:37 CEST 2002  Jan Hubicka  <jh@suse.cz>
2066         * i386.c  (expand_movstr, expand_clrstr): Fix inline-all-stringops
2067         sequence.
2069 2002-05-03  Richard Henderson  <rth@redhat.com>
2071         PR opt/6534
2072         * ifcvt.c (noce_try_store_flag, noce_try_store_flag_constants,
2073         noce_try_store_flag_inc, noce_try_store_flag_mask, noce_try_cmove,
2074         noce_try_cmove_arith, noce_try_minmax, noce_try_abs): Insert new
2075         code before JUMP, not EARLIEST.
2077 2002-05-03  Joseph S. Myers  <jsm28@cam.ac.uk>
2079         * c-format.c (check_format_info_main): Don't check for presence of
2080         parameter for * width until after operand number has been read,
2081         and only check for it if format parameters are available.
2082         Fixes PR c/6547.
2084 2002-05-03  Jason Thorpe  <thorpej@wasabisystems.com>
2086         * config/alpha/netbsd.h (CPP_PREDEFINES): Add -D_LP64.
2087         (LINK_SPEC): Undef before defining.
2089 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2091         PR preprocessor/6489
2092         * tradcpp.c (fixup_newlines): New.
2093         (main, finclude): Use it.
2095 2002-05-03  Richard Sandiford  <rsandifo@redhat.com>
2097         * config/mips/elf64.h (UNIQUE_SECTION): Use mips_unique_section.
2098         * config/mips/mips.c (mips_unique_section): Strip encoding from
2099         decl name.
2101 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2103         * config/i386/i386.c (ix86_expand_int_movcc): Truncate to proper
2104         mode.
2106 2002-05-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2108         * doc/install.texi (Installing): Mention GCC 3.1 buildstats.
2109         (Specific): Removed buildstats references.
2110         (Specific, hppa*-hp-hpux11): Adjust for GCC versions > 3.0.
2111         (Specific, sparc-sun-solaris2*): Update 64-bit hints for GCC 3.1.
2112         Accomodate Solaris versions beyond 8.
2113         (Specific, sparc-sun-solaris2.7): Update as path for GCC 3.1.
2114         (Specific, *-*-solaris2.8): Removed, obsolete.
2116 2002-05-03  Jakub Jelinek  <jakub@redhat.com>
2118         PR target/6542
2119         * config/sparc/sparc.h (leaf_reg_remap): Remove const.
2120         (CONDITIONAL_REGISTER_USAGE): For TARGET_FLAT make
2121         fill leaf_reg_remap with identity.
2122         * config/sparc/sparc.c (leaf_reg_remap): Remove const.
2124 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2126         * config/h8300/crti.asm: Remove trailing spaces.
2127         * config/h8300/h8300.c: Likewise.
2128         * config/h8300/lib1funcs.asm: Likewise.
2130 2002-05-02  Jason Merrill  <jason@redhat.com>
2132         * defaults.h (BOOL_TYPE_SIZE): Move default here from cp/decl.c.
2133         * c-decl.c (c_init_decl_processing): Use it.
2134         * config/rs6000/darwin.h (BOOL_TYPE_SIZE): Define to INT_TYPE_SIZE.
2135         * config/i960/i960.h (BOOL_TYPE_SIZE): Don't define.
2136         * config/mcore/mcore.h (BOOL_TYPE_SIZE): Don't define.
2138 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
2140         * regrename.c: Fix formatting.
2141         * tree.c: Likewise.
2143 Fri May  3 13:34:43 CEST 2002  Jan Hubicka  <jh@suse.cz>
2145         * i386.md (attribute memory): Handle compares properly.
2147 Fri May  3 10:51:38 CEST 2002  Jan Hubicka  <jh@suse.cz>
2149         * i386.md (sse_clrsf, sse_clrsi): Set memory attribute
2150         to none.
2152 2002-05-02  Kazu Hirata  <kazu@cs.umass.edu>
2154         * function.c: Fix formatting.
2156 2002-05-02  Jan Hubicka  <jh@suse.cz>
2158         * haifa-sched.c (schedule_insn): Print table of instructions and
2159         reservations.
2160         (sched_block): Do not print ready list at verbosity level 1.
2161         * sched-vis.c (print_insn): Make global.
2162         * sched-ebb.c (ebb_print_insn): Rename from...
2163         (print_insn): ... this one.
2164         * sched-int.h (print_insn): Declare
2166 2002-05-02  Richard Henderson  <rth@redhat.com>
2168         * haifa-sched.c (rank_for_schedule): Skip past last_scheduled_insn
2169         emitted by cycle_display.
2171 2002-05-02  Loren J. Rittle  <ljrittle@acm.org>
2173         * doc/install.texi (*-*-freebsd*): Update to latest status.
2175 2002-05-02  Jakub Jelinek  <jakub@redhat.com>
2177         PR target/6540
2178         * config.gcc (sparc*-*-solaris2*): Set float_format to i128.
2179         * config/float-sparc.h: Assume 128-bit long double if
2180         __LONG_DOUBLE_128__ is defined.
2182 2002-05-02  Vladimir Makarov  <vmakarov@redhat.com>
2184         * genattrtab.c (write_function_unit_info): Add a dummy element
2185         when num_units == 0.
2187 2002-05-02 Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
2189         * predict.c: (propagate_freq, estimate_bb_frequencies): Use
2190         TYPE_MODE (double_type_node) instead of DFmode.
2192 Thu May  2 19:50:04 CEST 2002  Jan Hubicka  <jh@suse.cz>
2194         * cfgrtl.c (try_redirect_by_replacing_jump): Do not kill computed
2195         jumps post reload.
2196         * toplev.c (rest_of_compilation): Revert Richard's patch.
2198 2001-05-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2200         * pa/x-ada (ADA_CFLAGS): Rename to X_ADA_CFLAGS.
2202 2002-05-02  Catherine Moore  <clm@redhat.com>
2204         * config/v850/v850.h (TRAMPOLINE_TEMPLATE): Change r5 to r20.
2206 2002-05-02  Kazu Hirata  <kazu@hxi.com>
2208         * combine.c: Fix comment typos.
2209         * expr.c: Likewise.
2210         * genautomata.c: Likewise.
2211         * stmt.c: Likewise.
2212         * tree.h: Likewise.
2214 2002-05-02  Joseph S. Myers  <jsm28@cam.ac.uk>
2216         * doc/install.texi: State GNAT version requirements.
2218 2002-05-02  Nick Clifton  <nickc@cambridge.redhat.com>
2220         * config/fr30/fr30.h (GO_IF_LEGITIMATE_ADDRESS): Accept any form
2221         of the frame pointer or arg pointer register which strict register
2222         checking is not enabled.
2224 2002-05-02  Aldy Hernandez  <aldyh@redhat.com>
2226         * gcc.dg/altivec-8.c: New.
2228         * config/rs6000/rs6000.c (rs6000_legitimate_address): Disallow
2229         PRE_INC and PRE_DEC for altivec modes.
2231 2002-05-01  Bruce Korb  <bkorb@gnu.org>
2233         * fixinc/check.tpl(set-writable): make sure the function exists first
2234         * fixinc/inclhack.def(alpha_assert): fix test_text
2235         * fixinc/tests/base/assert.h: add in missing result
2237 2002-05-01  Jeff Law  <law@redhat.com>
2239         * pa.h (EXTRA_CONSTRAINT): Don't accept PIC addresses for the
2240         'T' constraint.
2242 2002-05-01  Joel Brobecker  <brobecker@gnat.com>
2244         * dbxout.c (dbxout_type): Emit size information for range types,
2245         as well, but only when using GDB extensions.
2247 2002-05-01  Richard Henderson  <rth@redhat.com>
2249         * configure.in (HAVE_GAS_HIDDEN): Replace SPARC feature test with
2250         target-independent gnu binutils date test.
2252 2002-05-01  Richard Henderson  <rth@redhat.com>
2254         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Emit dump
2255         info before expunging the block.
2257 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2259         * cppinit.c (cpp_handle_option) [-dM]: Don't set no_output here...
2260         (cpp_post_options): ...but here.  Disable -dD, -dN and -dI when
2261         -M -or -MM is in effect.
2263 2002-05-01  Zack Weinberg  <zack@codesourcery.com>
2265         * config.gcc: Correct test of --enable-obsolete.  Obsolete all
2266         A29k configurations.
2267         * doc/install.texi: Update to match.
2269 2002-05-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2271         PR bootstrap/6514
2272         * varasm.c (globalize_decl): Compare DECL_ASSEMBLER_NAME to check
2273         for duplicates. Always loop over whole list.
2275 Wed May  1 10:32:37 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2277         * reload.c (find_reloads, case 'p'): Set BADOP to 0.
2279 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2281         * config/sparc/t-elf (sparc-rtems, sparc-elf): Build assembly
2282         support routines.
2284 2002-05-01      Joel Sherrill <joel@OARcorp.com>
2286         * config/arm/rtems-elf.h: Add #undef TARGET_VERSION to prevent warning.
2288 2002-05-01  David Edelsohn  <edelsohn@gnu.org>
2290         * rs6000.md (abssi2_nopower): Convert to define_insn_and_split.
2291         (nabs_nopower): Same.
2292         (floatdisf2): New pattern.
2293         (absdi2): Convert to define_insn_and_split.
2294         (nabsdi2): Same.
2295         (trunctfsf2): Same.
2296         (floatditf2): Same.
2297         (floatsitf2): Same.
2298         (fix_trunctfdi2): Same.
2299         (fix_trunctfsi2): Same.
2301 2002-05-01  Joseph S. Myers  <jsm28@cam.ac.uk>
2303         * doc/install.texi: Update Texinfo version requirement
2304         documentation.
2306 2002-05-01  Jakub Jelinek  <jakub@redhat.com>
2308         PR target/6512, PR target/5628
2309         * config/sparc/sparc.md (movdf_insn_v9only_novis): Don't allow >= %f32
2310         when memory is not aligned.
2311         (movdf_insn_v9only_vis): Likewise.
2312         * config/sparc/sparc.h (SECONDARY_INPUT_RELOAD_CLASS): Request a FP_REGS
2313         temporary for EXTRA_FP_REGS DFmode load from unaligned memory.
2314         (SECONDARY_OUTPUT_RELOAD_CLASS): Similarly.
2316 2002-05-01  Aldy Hernandez  <aldyh@redhat.com>
2318         * gcc.dg/altivec-7.c: New.
2320         * config/rs6000/altivec.h: Cleanup.
2322 2002-04-30  Aldy Hernandez  <aldyh@redhat.com>
2324         * doc/invoke.texi (Option Summary): Add -mvrsave=.
2325         (RS/6000 and PowerPC Options): Document -mvrsave=.
2327         * config/rs6000/rs6000.c (rs6000_altivec_vrsave): New global.
2328         (rs6000_altivec_vrsave_string): Same.
2329         (rs6000_override_options): Call rs6000_parse_vrsave_option.
2330         (rs6000_parse_vrsave_option): New.
2331         (rs6000_stack_info): Only generate vrsave instructions when
2332         TARGET_ALTIVEC_VRSAVE.
2334         * config/rs6000/rs6000.h (TARGET_OPTIONS): Add -mvrsave= option.
2335         (rs6000_altivec_vrsave_string): Define extern.
2336         (rs6000_altivec_vrsave): Same.
2337         (TARGET_ALTIVEC_VRSAVE): New.
2339 2002-04-30  Richard Henderson  <rth@redhat.com>
2341         PR opt/6516
2342         * toplev.c (rest_of_compilation): Don't run cross-jump before
2343         bb-reorder.
2345 2002-04-30  Tom Rix  <trix@redhat.com>
2347         * regrename.c (build_def_use, copyprop_hardreg_forward_1): Sanity
2348         check which_alternative.
2350 2002-04-30  Kazu Hirata  <kazu@hxi.com>
2352         * cpplex.c: Fix comment formatting.
2353         * function.c: Likewise.
2354         * integrate.c: Likewise.
2355         * regrename.c: Likewise.
2356         * sibcall.c: Likewise.
2357         * simplify-rtx.c: Likewise.
2358         * tree-inline.c: Likewise.
2360 2002-04-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2362         * config.gcc (hppa1.1-*-pro*, hppa1.1-*-osf*, hppa1.1-*-rtems*,
2363         hppa1.0-*-osf*, hppa1.1-*-bsd*, hppa1.1-*-hpux10*, hppa2*-*-hpux10*,
2364         hppa1.0-*-hpux10*, hppa*64*-*-hpux11*, hppa1.1-*-hpux11*,
2365         hppa2*-*-hpux11*, hppa1.0-*-hpux11*, hppa*-*-lites*): Define xmake_file.
2366         * pa/t-linux, pa/t-pa, pa/t-pa64, t-pro (T_ADAFLAGS): Delete.
2367         * pa/x-ada: New file.  Define ADA_CFLAGS.
2369 2002-04-30  Hans-Peter Nilsson  <hp@bitrange.com>
2371         * config/mmix/mmix.h (MMIX_LAST_STACK_REGISTER_REGNUM): Renamed
2372         from MMIX_LAST_REGISTER_FILE_REGNUM.
2373         (NO_IMPLICIT_EXTERN_C): Remove cryptic obsolete comment.
2374         (struct machine_function): New member highest_saved_stack_register
2375         previously static variable in mmix.c.
2376         (MACHINE_DEPENDENT_REORG): Define.
2377         * config/mmix/mmix.c (highest_saved_stack_register): Deleted.
2378         (MMIX_OUTPUT_REGNO): New.
2379         (mmix_target_asm_function_prologue): Move calculation of last used
2380         saved-stack-register into...
2381         (mmix_machine_dependent_reorg): New function.  Update to also handle
2382         !TARGET_ABI_GNU.
2383         (mmix_print_operand): Apply MMIX_OUTPUT_REGNO when emitting
2384         register names, simplify somewhat by new variable regno.
2385         <case 'p'>: Remove fixed FIXME.  Always emit highest used saved
2386         register.
2387         (mmix_print_operand_address): Apply MMIX_OUTPUT_REGNO when
2388         emitting register names.
2389         (mmix_asm_output_reg_push, mmix_asm_output_reg_pop): Ditto.
2390         (mmix_dbx_register_number): Apply MMIX_OUTPUT_REGNO here too.
2391         Remove fixed FIXME.
2392         * config/mmix/mmix-protos.h (mmix_machine_dependent_reorg):
2393         Declare.
2395         * config/mmix/mmix.md ("divmoddi4"): Update head comment.
2397 2002-04-30  Richard Henderson  <rth@redhat.com>
2399         * config/sparc/sparc.c (emit_soft_tfmode_libcall,
2400         emit_soft_tfmode_binop, emit_soft_tfmode_unop, emit_soft_tfmode_cvt,
2401         emit_hard_tfmode_operation, emit_tfmode_binop, emit_tfmode_unop,
2402         emit_tfmode_cvt): New.
2403         * config/sparc/sparc.md (extendsftf2, extenddftf2, trunctfsf2,
2404         trunctfdf2, floatsitf2, floatunssitf2, floatditf2, floatunsditf2,
2405         fix_trunctfsi2, fixuns_trunctfsi2, fix_trunctfdi2, fixuns_trunctfdi2,
2406         addtf3, subtf3, multf3, divtf3, sqrttf2): Use them.
2407         * config/sparc/sparc-protos.h: Update.
2409 2002-04-30  Janis Johnson  <janis187@us.ibm.com>
2411         * install.texi (Final install): Add to the list of info to include
2412         in a report of a successful bootstrap, and add link to 3.1 list.
2414 Tue Apr 30 19:15:36 CEST 2002  Jan Hubicka  <jh@suse.cz>
2416         * i386.md (type): Add new SSE/MMX subtypes, remove usused fop1.
2417         (mode): Add vector modes
2418         (i387): Kill attribute.
2419         (unit): New attribute.
2420         (length_immediate): Grok new types.
2421         (prefix_data16, prefix_rep, prefix_0f): Fix for SSE/MMX.
2422         (modrm): Use "unit".
2423         (memory): Handle MMX/SSE properly.
2424         (scheduling descriptions): Kill uses of fop1.
2425         (sse, mmx, fp patterns): Set type and mode properly.
2427 Tue Apr 30 09:31:59 2002  Jeffrey A Law  (law@cygnus.com)
2429         * pa.c (override_options): Default to PA8000 scheduling.
2430         * doc/invoke.texi (HP-PA options): Mention newly added 7300
2431         scheduling parameter.
2433         * pa.md (7100lc, 7200, 7300 scheduling): Slightly refine
2434         handling of double precision multiplies.
2436         * pa.md (7100lc, 7200, 7300 scheduling): Refine handling of
2437         fpdiv and fpsqrt instructions.
2438         (7200 & 7300 scheduling): Fix typo in handling of
2439         store-load and store-store penalties.
2441 2002-04-30  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2443         * doc/contrib.texi (Contributors): Use MIPS instead of Mips and
2444         mips.  Add two missing commas.
2446 2002-04-30  Paolo Carlini  <pcarlini@unitus.it>
2448         * doc/contrib.texi (Contributors): Update Paolo Carlini's
2449         and Benjamin Kosnik's entries.
2451 2002-04-29  David S. Miller  <davem@redhat.com>
2453         * config/sparc/sparc.h (BRANCH_COST, PREFETCH_BLOCK,
2454         SIMULTANEOUS_PREFETCHES): Tune for UltraSPARC-III.
2455         * config/sparc/sparc.md (call + jmp 32-bit peepholes): Likewise.
2456         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
2458 2002-04-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2460         * combine.c (find_split_point): Use gen_int_mode.
2462 2002-04-29  Vladimir Makarov  <vmakarov@redhat.com>
2464         Merging code from dfa-branch:
2466         2002-04-24  Vladimir Makarov  <vmakarov@redhat.com>
2468         * genautomata.c (output_reserv_sets): Fix typo.
2470         2002-04-23  Vladimir Makarov  <vmakarov@redhat.com>
2472         * genautomata.c (output_reserv_sets): Remove
2473         next_cycle_output_flag.
2475         Thu Apr 18 08:57:06 2002  Jeffrey A Law  (law@redhat.com)
2477         * sched-rgn.c (init_ready_list): Make the DFA code handle
2478         USE/CLOBBER insns in the same way as the traditional
2479         scheduler.
2480         (new_ready): Similarly..
2482         2002-04-17  Vladimir Makarov  <vmakarov@redhat.com>
2484         * haifa-sched.c (schedule_block): Change the DFA state only after
2485         issuing insn.
2487         Wed Apr 17 15:38:36 2002  Jeffrey A Law  (law@redhat.com)
2489         * pa.c (hppa_use_dfa_pipeline_interface): New function.
2490         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE): Define.
2491         (override_options): Add PA7300 scheduling support.
2492         (pa_adjust_cost): Update various comments.  Properly
2493         handle anti and output dependencies when using the
2494         DFA scheduler.
2495         (pa_issue_rate): Add PA7300 scheduling support.
2496         (pa_can_combine_p): Call extract_insn before calling
2497         constrain_operands (taken from mainline tree).
2498         * pa.h (enum processor_type): Add PROCESSOR_PA7300.
2499         * pa.md (cpu attr): Add 7300.  Rewrite pipeline
2500         descriptions using DFA descriptions.  Add PA7300
2501         scheduling support.
2503         2002-03-30  David S. Miller  <davem@redhat.com>
2505         Add UltraSPARC-III DFA scheduling support.
2506         * config/sparc/sparc.md (define_attr type): Add fpcrmove.
2507         Update FP conditional move on register insn patterns to use it, as
2508         appropriate.
2509         (define_attr cpu): Add ultrasparc3.
2510         (define_attr us3load_type): New, update integer load patterns to
2511         set it, as appropriate.
2512         (define_automaton): Add ultrasparc3_0 and ultrasparc3_1.
2513         (rest): Add UltraSPARC3 scheduling description.
2514         * config/sparc/sparc.h (TARGET_CPU_ultrasparc3): New.
2515         (PROCESSOR_ULTRASPARC3): New.
2516         ({ASM,CPP}_CPU64_DEFAULT_SPEC): Handle ultrasparc3.
2517         ({ASM,CPP}_CPU_SPEC): Likewise.
2518         (REGISTER_MOVE_COST): Likewise.
2519         (RTX_COSTS): Likewise.
2520         * config/sparc/sparc.c (sparc_override_options,
2521         sparc_initialize_trampoline, sparc64_initialize_trampoline,
2522         sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2523         sparc_issue_rate): Likewise.
2524         * config/sparc/sol2.h: Likewise.
2525         * config/sparc/sol2-sld-64.h: Likewise.
2526         * config/sparc/linux64.h: Likewise.
2528         2002-03-22  Vladimir Makarov  <vmakarov@redhat.com>
2530         * doc/md.texi: Add comments about usage the latency time for the
2531         different dependencies and about case when two or more conditions
2532         in different define_insn_reservations returns TRUE for an insn.
2534         * doc/md.texi: Add reference for automaton based pipeline
2535         description.
2537         2002-03-04  Vladimir Makarov  <vmakarov@redhat.com>
2539         * doc/passes.texi: Add missed information about genattrtab.
2541         2002-03-01  Vladimir Makarov  <vmakarov@redhat.com>
2543         * genautomata.c (output_automata_list_transition_code): Check
2544         automata_list on NULL.
2546         2002-02-28  Vladimir Makarov  <vmakarov@redhat.com>
2548         * genautomata.c (output_insn_code_cases,
2549         output_automata_list_min_issue_delay_code,
2550         output_automata_list_transition_code,
2551         output_automata_list_state_alts_code): Comment the functions.
2553         2002-02-22  Vladimir Makarov  <vmakarov@redhat.com>
2555         * genautomata.c (automata_list_el_t): New typedef.
2556         (get_free_automata_list_el,free_automata_list_el,
2557         free_automata_list, automata_list_hash, automata_list_eq_p,
2558         initiate_automata_lists, automata_list_start, automata_list_add,
2559         automata_list_finish, finish_automata_lists,
2560         output_insn_code_cases, output_automata_list_min_issue_delay_code,
2561         output_automata_list_transition_code,
2562         output_automata_list_state_alts_code, add_automaton_state,
2563         form_important_insn_automata_lists): New functions and prototypes.
2564         (insn_reserv_decl): Add members important_automata_list and
2565         processed_p.
2566         (ainsn): Add members important_p.
2567         (automata_list_el): New structure.
2568         (first_free_automata_list_el, current_automata_list,
2569         automata_list_table): New global variables.
2570         (create_ainsns): Initiate member important_p.
2571         (output_internal_min_issue_delay_func): Generate the switch and
2572         call output_insn_code_cases.
2573         (output_internal_trans_func, output_internal_state_alts_func):
2574         Ditto.
2575         (generate): Call initiate_automata_lists.
2576         (automaton_states): New global variable.
2577         (expand_automata): Call form_important_insn_automata_lists.
2578         (write_automata): Call finish_automata_lists.
2580         2002-02-21  Vladimir Makarov  <vmakarov@redhat.com>
2582         * genautomata.c (add_excls, add_presence_absence): Check that
2583         cpu units in the sets belong the same automaton.
2585         * rtl.def (EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET): Add comment
2586         about that cpu units in the sets belong the same automaton.
2588         * doc/md.texi: Ditto.
2590         2001-12-20  Naveen Sharma  <naveens@noida.hcltech.com>
2591                     Nitin Gupta  <niting@noida.hcltech.com>
2593         * config/sh/sh.c (sh_use_dfa_interface): New function.
2595         (sh_issue_rate): New Function.
2596         TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE: define.
2597         TARGET_SCHED_ISSUE_RATE: define.
2599         * config/sh/sh.md: Add DFA based pipeline description for SH4.
2601         (define_attr insn_class): New attribute used for DFA
2602          scheduling.
2603         (define_insn cmpgtsi_t): Set attribute insn_class mt_group.
2604         (cmpgesi_t,cmpgtusi_t,cmpgeusi_t,cmpeqsi_t,
2605          cmpeqdi_t): Likewise.
2607         (add,addc1,addsi3,subc,subc1,*subsi3_internal,
2608          negc,negsi2,ashldi3_k,lshrdi3_k,ashrdi3_k): Set insn_class
2609          ex_group.
2610         (iorsi3,rotlsi3_1,rotlsi3_31,rotlsi3_16): Likewise.
2612         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2614         * haifa-sched.c (queue_to_ready): Remove unnecessary condition for
2615         break.
2617         2001-10-03  Vladimir Makarov  <vmakarov@toke.toronto.redhat.com>
2619         * genautomata.c (DFA_INSN_CODES_LENGTH_VARIABLE_NAME): New macro.
2620         (output_dfa_insn_code_func): Expand dfa_insn_codes if it is
2621         necessary.
2622         (output_dfa_start_func): Initiate new variable insn_codes_length,
2623         (write_automata): Output definition of the new variable.
2625         2001-10-02  David S. Miller  <davem@redhat.com>
2627         * haifa-sched.c (advance_one_cycle): New function.
2628         (schedule_block): Use it.
2629         (queue_to_ready): Use it, and also make sure to advance the DFA
2630         state on all stall cycles, not just those where insn_queue links
2631         are found.
2633         2001-10-02  Richard Sandiford  <rsandifo@redhat.com>
2635         * haifa-sched.c (max_issue): Remove last_p argument.  Only return
2636         non-zero if the highest-priority instruction could be scheduled.
2637         (choose_ready): Remove last argument from max_issue call.
2639         2001-09-28  David S. Miller  <davem@redhat.com>
2641         * config/sparc/sparc.c (sparc_use_sched_lookahead): Use 4 for
2642         ultrasparc and 3 for other multi-issue sparcs.
2644         2001-09-27  David S. Miller  <davem@redhat.com>
2646         * config/sparc/sparc.md (cycle_display): New pattern.
2647         * config/sparc/sparc.c (sparc_cycle_display): New.
2648         (TARGET_SCHED_CYCLE_DISPLAY): Set it.
2650         2001-09-25  David S. Miller  <davem@redhat.com>
2652         Convert all of Sparc scheduling to DFA
2653         * config/sparc/sparc.md: Kill all define_function_unit
2654         directives and replace with DFA equivalent.
2655         * config/sparc/sparc.c (ultrasparc_adjust_cost,
2656         mark_ultrasparc_pipeline_state, ultra_cmove_results_ready_p,
2657         ultra_fpmode_conflict_exists, ultra_find_type,
2658         ultra_build_types_avail, ultra_flush_pipeline,
2659         ultra_rescan_pipeline_state, ultrasparc_sched_reorder,
2660         ultrasparc_variable_issue, ultrasparc_sched_init,
2661         sparc_variable_issue, sparc_sched_reorder, ultra_code_from_mask,
2662         ultra_schedule_insn, ultra_code_names, ultra_pipe_hist,
2663         ultra_cur_hist, ultra_cycles_elapsed): Kill.
2664         (sparc_use_dfa_pipeline_interface, sparc_use_sched_lookahead,
2665         ultrasparc_store_bypass_p): New.
2666         * config/sparc/sparc-protos.h (ultrasparc_store_bypass_p):
2667         Declare.
2669         2001-09-24  David S. Miller  <davem@redhat.com>
2671         * haifa-sched.c (ready_remove): Fix thinko, we want to copy around
2672         ready->vec[foo] not ready[foo].
2674         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
2676         * doc/md.texi: Correct examples for define_insn_reservations
2677         `mult' and `div'.
2679         2001-09-07  Vladimir Makarov  <vmakarov@redhat.com>
2681         * genautomata.c (create_automata): Print message about creation of
2682         each automaton.
2683         (generate): Remove printing meease about creation of
2684         automata.
2686         2001-09-05  David S. Miller  <davem@redhat.com>
2688         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
2689         * config/sparc/linux64.h: Likewise.
2691         2001-08-31  Vladimir Makarov  <vmakarov@redhat.com>
2693         * haifa-sched.c (insn_cost, schedule_insn, queue_to_ready,
2694         schedule_block, sched_init, sched_finish): Add missed calls of
2695         use_dfa_pipeline_interface.
2697         * sched-rgn.c (init_ready_list, new_ready, debug_dependencies):
2698         Ditto.
2700         * sched-vis.c (get_visual_tbl_length): Ditto.
2702         2001-08-27  Richard Henderson  <rth@redhat.com>
2704         * genattr.c (main): Emit state_t even when not doing scheduling.
2706         2001-08-27  Richard Henderson  <rth@redhat.com>
2708         * genautomata.c (expand_automata): Always create a description.
2710         2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
2712         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
2713         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
2714         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
2715         RTL constructions.
2717         * genattr.c (main): New variable num_insn_reservations.  Increase
2718         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
2719         pipeline hazard recognizer interface.
2721         * genattrtab.h: New file.
2723         * genattrtab.c: Include genattrtab.h.
2724         (attr_printf, check_attr_test, make_internal_attr,
2725         make_numeric_value): Move protypes into genattrtab.h.  Define them
2726         as external.
2727         (num_dfa_decls): New global variable.
2728         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
2729         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
2730         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
2731         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
2733         * genautomata.c: New file.
2735         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
2737         * sched-int.h: (curr_state): Add the external definition for
2738         automaton pipeline interface.
2739         (haifa_insn_data): Add comments for members blockage and units.
2741         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2742         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2743         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2744         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2745         TARGET_SCHED_DFA_POST_CYCLE_INSN,
2746         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2747         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
2748         macros.
2749         (TARGET_SCHED): Use the new macros.
2751         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
2752         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
2753         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
2754         dfa_bubble): New members in gcc_target.sched.
2756         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
2757         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
2758         (insn_queue): Redefine it as pointer to array.
2759         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
2760         INSN_QUEUE_SIZE.
2761         (max_insn_queue_index_macro_value): New variable.
2762         (curr_state, dfa_state_size, ready_try): New varaibles for
2763         automaton interface.
2764         (ready_element, ready_remove, max_issue): New function prototypes
2765         for automaton interface.
2766         (choose_ready): New function prototype.
2767         (insn_unit, blockage_range): Add comments.
2768         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
2769         FUNCTION_UNITS_SIZE == 0.
2770         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
2771         actual_hazard, potential_hazard): Add comments.
2772         (insn_cost): Use cost -1 as undefined value.  Remove
2773         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
2774         pipeline interface.
2775         (ready_element, ready_remove): New functions for automaton
2776         interface.
2777         (schedule_insn): Add new code for automaton pipeline interface.
2778         (queue_to_ready): Add new code for automaton pipeline interface.
2779         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
2780         (debug_ready_list): Print newline when the queue is empty.
2781         (max_issue): New function for automaton pipeline interface.
2782         (choose_ready): New function.
2783         (schedule_block): Add new code for automaton pipeline interface.
2784         Print ready list before scheduling each insn.
2785         (sched_init): Add new code for automaton pipeline interface.
2786         Initiate insn cost by -1.
2787         (sched_finish): Free the current automaton state and finalize
2788         automaton pipeline interface.
2790         * sched-rgn.c: Include target.h.
2791         (init_ready_list, new_ready, debug_dependencies): Add new code for
2792         automaton pipeline interface.
2794         * sched-vis.c: Include target.h.
2795         (get_visual_tbl_length): Add code for automaton interface.
2796         (target_units, print_block_visualization):  Add comments.
2798         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
2799         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
2800         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
2801         (getruntime.o, genautomata.o): New entries.
2802         (genattrtab.o): Add new dependency file genattrtab.h.
2803         (genattrtab): Add new dependencies.  Link it with `libm.a'.
2804         (getruntime.o, hashtab.o): New entries for canadian cross.
2806         * doc/md.texi: Description of automaton based model.
2808         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
2809         Add comments.
2810         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
2811         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
2812         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
2813         TARGET_SCHED_DFA_POST_CYCLE_INSN,
2814         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
2815         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
2816         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
2817         hook descriptions.
2818         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
2819         MAX_DFA_ISSUE_RATE): New macro descriptions.
2821         * doc/contrib.texi: Add dfa based scheduler contribution.
2823         * doc/gcc.texi: Add more information about genattrtab.
2825 Mon Apr 29 17:19:10 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2827         * reload1.c (eliminate_regs, case SUBREG): Fix typo in
2828         adjust_address_nv call.
2830 2002-04-29  Janis Johnson  <janis187@us.ibm.com>
2832         * doc/install.texi (Testing): Provide additional information, and
2833         a stronger encouragement, for running the testsuites.
2835 2002-04-29  DJ Delorie  <dj@redhat.com>
2837         * config/mips/mips.c (mips_parse_cpu): Warn if the CPU name is
2838         given in upper case.
2840 2002-04-29  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2842         * fixinc/inclhack.def (solaris_widec): Include <wchar.h> in
2843         Solaris 2 <widec.h> if missing.
2844         * fixinc/fixincl.x: Regenerate.
2845         * fixinc/tests/base/widec.h: New file.
2847 2002-04-29  Nick Clifton  <nickc@cambridge.redhat.com>
2849         * toplev.c (f_options): Add "profile" switch so that
2850         -fno-profile can be used to disable -p.
2852 2002-04-29  Bernd Schmidt  <bernds@redhat.com>
2854         * c-common.c (type_for_mode): Add support for V2DFmode, V2DImode,
2855         UV2DImode.
2856         * tree.c (build_common_tree_nodes_2): Likewise.
2857         * tree.h (enum tree_index): Likewise.
2858         (V2DF_type_node, V2DI_type_node, unsigned_V2DI_type_node): Define.
2860         * config/i386/i386.c (bdesc_comi, bdesc_2arg, bdesc_1arg): Add SSE2
2861         entries.
2862         (init_mmx_sse_builtins): Initialize SSE2 builtins.
2863         (ix86_expand_builtin): Add support for SSE2 builtins.
2864         * config/i386/i386.h (VALID_SSE2_REG_MODE): New macro.
2865         (VALID_SSE_REG_MODE): Use it.
2866         (VECTOR_MODE_SUPPORTED_P): Allow SSE2 modes here as well.
2867         (enum ix86_builtins): Add SSE2 builtins.
2868         * config/i386/i386.md (movv2df_internal, movv2df, movv8hi_internal,
2869         movv8hi, movv16qi_internal, movv16qi, pushv2df, pushv8hi, pushv16qi,
2870         addv2df3, vmaddv2df3, subv2df3, vmsubv2df3, mulv2df3, vmmulv2df3,
2871         divv2df3, vmdivv2df3, smaxv2df3, vmsmaxv2df3, sminv2df3, vmsminv2df3,
2872         sse2_anddf3, sse2_nanddf3, sse2_iordf3, sse2_xordf3, sqrtv2df2,
2873         vmsqrtv2df2, maskcmpv2df3, maskncmpv2df3, vmmaskcmpv2df3,
2874         vmmaskncmpv2df3, sse2_comi, sse2_ucomi, sse2_movmskpd, sse2_pmovmskb,
2875         sse2_maskmovdqu, sse2_movntv2df, sse2_movntti, sse2_movntsi, cvtdq2ps,
2876         cvtps2dq, cvttps2dq, cvtdq2pd, cvtpd2dq, cvttpd2dq, cvtpd2pi,
2877         cvttpd2pi, cvtpi2pd, cvtsd2si, cvttsd2si, cvtsi2sd, cvtsd2ss,
2878         cvtss2sd, cvtpd2ps, cvtps2pd, addv16qi3, addv8hi3, addv4si3, addv2di3,
2879         ssaddv16qi3, ssaddv8hi3, usaddv16qi3, usaddv8hi3, subv16qi3, subv8hi3,
2880         subv4si3, subv2di3, sssubv16qi3, sssubv8hi3, ussubv16qi3, ussubv8hi3,
2881         mulv8hi3, smulv8hi3_highpart, umulv8hi3_highpart, sse2_umulsidi3,
2882         sse2_umulv2siv2di3, sse2_pmaddwd, sse2_clrti, sse2_uavgv16qi3,
2883         sse2_uavgv8hi3, sse2_psadbw, sse2_pinsrw, sse2_pextrw, sse2_pshufd,
2884         sse2_pshuflw, sse2_pshufhw, eqv16qi3, eqv8hi3, eqv4si3, gtv16qi3,
2885         gtv8hi3, gtv4si3, umaxv16qi3, smaxv8hi3, uminv16qi3, sminv8hi3,
2886         ashrv8hi3, ashrv4si3, lshrv8hi3, lshrv4si3, sse2_lshrv2di3,
2887         ashlv8hi3, ashlv4si3, sse2_ashlv2di3, sse2_ashlti3, sse2_lshrti3,
2888         sse2_unpckhpd, sse2_unpcklpd, sse2_packsswb, sse2_packssdw,
2889         sse2_packuswb, sse2_punpckhbw, sse2_punpckhwd, sse2_punpckhdq,
2890         sse2_punpcklbw, sse2_punpcklwd, sse2_punpckldq, sse2_movapd,
2891         sse2_movupd, sse2_movdqa, sse2_movdqu, sse2_movdq2q, sse2_movq2dq,
2892         sse2_movhpd, sse2_movlpd, sse2_loadsd, sse2_movsd, sse2_storesd,
2893         sse2_shufpd, sse2_clflush, sse2_mfence, mfence_insn, sse2_lfence,
2894         lfence_insn): New patterns.
2895         (sse2_andti3, sse2_nandti3, sse2_iorti3, sse2_xorti3): Renamed from
2896         sse_andti3_sse2, sse_nandti3_sse2, sse_iorti3_sse2, sse_xorti3_sse2.
2898 Mon Apr 29 17:03:24 CEST 2002  Jan Hubicka  <jh@suse.cz>
2900         * i386.md (sse_mov?fcc*): Revert patch of Mar 14th.
2902 2002-04-29  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2904         * doc/contrib.texi (Contributors): Add Paolo Carlini and
2905         Janis Johnson.
2906         Update Richard Henderson, Jakub Jelinek, and Mark Mitchell.
2907         Refer to Objective-C instead of ObjC, SPARC instead of sparc,
2908         and CPU instead of cpu.
2910 Mon Apr 29 13:36:41 CEST 2002  Jan Hubicka  <jh@suse.cz>
2912         * toplev.c (flag_if_conversion, flag_if_conversion2): New static
2913         variables.
2914         (lang_independent_options): Add -fif-conversion, -fif-conversion2
2915         (rest_of_compilation): Do if conversion only when asked for.
2916         (parse_options_and_default_flags): Set new variables to 1 for -O1
2917         * invoke.texi (-fif-conversion, -fif-conversion2): Document.
2919 Mon Apr 29 13:02:50 CEST 2002  Jan Hubicka  <jh@suse.cz>
2921         * i386.c (dbx64_register_map): Fix typo.
2923 Mon Apr 29 12:18:35 CEST 2002  Jan Hubicka  <jh@suse.cz>
2925         * predict.c (real_zero, real_one, real_almost_one, real_br_prob_base,
2926         real_one_half, real_bb_freq_max): New static variables.
2927         (debug_profile_bbauxs): Kill.
2928         (process_note_predictions): Kill unused variable.
2929         (block_info_def, edge_info_def): Use REAL_VALUE_TYPE instead of
2930         volatile double.
2931         (propagate_freq): Use REAL_ARITHMETICS.
2932         (estimate_bb_frequencies): Likevise; init new static variables.
2933         * Makefile.in (predict.o): Add dependency on real.h
2935 2002-04-28  David S. Miller  <davem@redhat.com>
2937         PR target/6500
2938         * config/sparc/sparc.md (prefetch): Emit properly for 32-bit vs.
2939         64-bit TARGET_V9.  Do not use prefetch page, use prefetch for
2940         several {reads,writes} instead.
2941         * config/sparc/sparc.h (PREFETCH_BLOCK, SIMULTANEOUS_PREFETCHES):
2942         Define.
2944 2002-04-27  David S. Miller  <davem@redhat.com>
2946         PR target/6494
2947         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Be mindful
2948         of the stack bias.
2950         * config/sparc/linux.h, config/sparc/linux64.h: Don't bother
2951         including signal.h and sys/ucontext.h, not needed.
2953 2002-04-29  Hans-Peter Nilsson  <hp@bitrange.com>
2955         * varasm.c (output_constant_def): Correct test for not calling
2956         ENCODE_SECTION_INFO for INTEGER_CST.
2958 2002-04-29  Neil Booth  <neil@daikokuya.demon.co.uk>
2960         * cppexp.c (lex): Move some code to _cpp_parse_expr, but
2961         keep most cases as function eval_token.
2962         (eval_token): New function.
2963         (_cpp_parse_expr): Read token here for improved diagnostics.
2964         Don't use op_as_text.  Detect bad ':' here.
2965         (reduce): Don't detect bad ':' here.
2966         (op_as_text): Remove.
2967         * cpphash.h (_cpp_test_assertion): Change prototype.
2968         * cpplib.c (_cpp_test_assertion): Change prototype.
2970 2002-04-28  Richard Henderson  <rth@redhat.com>
2972         PR c/5154
2973         * ggc-common.c (ggc_mark_rtx_children_1): Rename from...
2974         (ggc_mark_rtx_children): New.
2976 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2978         PR target/6496
2979         * config/sparc/sparc.md (call + jump 32-bit peepholes): Disable jump
2980         after call peepholes for UltraSPARC.
2981         (call + jump 64-bit peepholes): Remove.
2983 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
2985         PR c/6497
2986         * config/rs6000/rs6000.md (sCC patterns): Remove clobber and use
2987         result as temporary value.
2989 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2991         PR c++/6396
2992         * toplev.c (rest_of_compilation): Only run regrename and copy
2993         propagation if optimizing.
2995 2002-04-28  Jakub Jelinek  <jakub@redhat.com>
2997         PR optimization/6475
2998         * reload1.c (alter_reg): Only call set_mem_expr if I is home pseudo
2999         register of REGNO_DECL (i).
3000         * Makefile.in (reload1.o): Add $(TREE_H).
3002 2002-04-28  Neil Booth  <neil@daikokuya.demon.co.uk>
3004         * cppexp.c (lex): Update to use state.skip_eval.
3005         (struct op): Remove prio and flags members.
3006         (FLAG_BITS, FLAG_MASK, PRIO_SHIFT, EXTRACT_PRIO, EXTRACT_FLAGS,
3007         SHORT_CIRCUIT, RIGHT_ASSOC, ..._PRIO, op_to_prio): Remove.
3008         (LEFT_ASSOC): New macro.
3009         (optab): New table of operator priorities and flags.
3010         (SHIFT): Update.
3011         (_cpp_parse_expr): Clean up logic.  Return bool.  Use a
3012         malloc-ed parser stack.
3013         (reduce): New; reduce the operator stack.
3014         (_cpp_expand_op_stack): Expand the operator stack as necessary.
3015         * cpphash.h (struct op): Predeclare.
3016         (struct cpp_reader): New members op_stack, op_limit.
3017         (struct lexer_state): New member skip_eval.
3018         (_cpp_parse_expr): Update.
3019         (_cpp_expand_op_stack): New.
3020         * cpplib.c (do_if): Update.
3021         * cppinit.c (cpp_create_reader): Create op stack.
3022         (cpp_destroy): And destroy it.
3023         * cpplib.h (CPP_LAST_CPP_OP): Correct.
3024         (TTYPE_TABLE): Correct.
3026 2002-04-28  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
3028         PR c/6343
3029         * c-decl.c (duplicate_decls): Call merge_weak.
3030         * c-pragma.c (apply_pragma_weak): Warn about misuse.
3031         * output.h (merge_weak): Prototype merge_weak.
3032         * varasm.c (merge_weak): New function.
3033         (declare_weak): Make sure we don't give an error on VAR_DECLs.
3034         Mark RTL with SYMBOL_REF_WEAK.
3036 2002-04-27  Kurt Garloff <garloff@suse.de>
3038         * tree-inline.c (inlinable_function_p): Improve heuristics
3039         by using a smoother function to cut down allowable inlinable size.
3040         * param.def: Add parameters max-inline-insns-single,
3041         max-inline-slope, min-inline-insns that determine the exact
3042         shape of the above function.
3043         * param.h: Likewise.
3045 2002-04-26  Richard Henderson  <rth@redhat.com>
3047         * c-parse.in (malloced_yyss, malloced_yyvs): New.
3048         (yyoverflow): Re-add.  Set them.
3049         (free_parser_stacks): New.
3050         * c-common.h: Declare it.
3051         * c-lex.c (c_common_parse_file): Call it.
3053 2002-04-26  Richard Henderson  <rth@redhat.com>
3055         * cfgrtl.c (tidy_fallthru_edge): Don't use next_real_insn
3056         for fallthru search.
3058 2002-04-26  Eric Christopher  <echristo@redhat.com>
3060         PR optimization/3700
3061         * config/mips/mips.c (mips_issue_rate): Define.  New function.
3062         (TARGET_SCHED_ISSUE_RATE): Use.
3064 2002-04-25  David S. Miller  <davem@redhat.com>
3066         PR target/6422
3067         * reorg.c (optimize_skip): Do not allow exception causing
3068         instructions to be considered for delay slots.
3069         (fill_simply_delay_slots, fill_slots_from_thread): Likewise.
3070         (relax_delay_slots): Do not try to consider exception causing
3071         instructions as redundant.
3073 2002-04-26  Richard Henderson  <rth@redhat.com>
3075         PR c/5225
3076         * c-typeck.c (build_unary_op) [CONVERT_EXPR]: Invoke non_lvalue.
3078 2002-04-26  Mark Mitchell  <mark@codesourcery.com>
3080         PR bootstrap/6445
3081         * config/i386/i386.md (untyped_call): Return the value in a float
3082         register if TARGET_FLOAT_RETURNS_IN_80387, not just if
3083         TARGET_80387.
3085 2002-04-26  Alexandre Oliva  <aoliva@redhat.com>
3087         * tree.c (tree_int_cst_lt): Compare constants whose types differ
3088         in unsigned-ness correctly.
3090 2002-04-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3092         * pa.h (FUNCTION_OK_FOR_SIBCALL): Don't do sibcalls when using the
3093         portable runtime model.
3095 2002-04-26  Richard Henderson  <rth@redhat.com>
3097         * c-parse.in (yyoverflow): Revert.
3099 2002-04-26  David Edelsohn  <edelsohn@gnu.org>
3100             Richard Henderson  <rth@redhat.com>
3102         * config/rs6000/rs6000.md (sCC pattern): Remove clobber and use
3103         result as temporary value.
3105 2002-04-26  Richard Henderson  <rth@redhat.com>
3107         PR c/3581
3108         * c-common.c (fix_string_type): Split out of ...
3109         (combine_strings): ... here.  Take a varray, not a tree list.
3110         (c_expand_builtin_printf): Use fix_string_type.
3111         * c-common.h: Update decls.
3112         * c-parse.in (string): Remove.  Update all uses to use STRING
3113         instead, and not call combine_strings.
3114         (yylexstring): New.
3115         (_yylex): Use it.
3116         * c-typeck.c (simple_asm_stmt): Don't call combine_strings.
3117         (build_asm_stmt): Likewise.
3118         * objc/objc-act.c (my_build_string): Use fix_string_type.
3119         (build_objc_string_object): Build varray for combine_strings.
3121 2002-04-26  Bo Thorsen  <bo@suse.co.uk>
3123         * config/i386/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Define for
3124         x86-64.
3126 2002-04-26  Neil Booth  <neil@daikokuya.demon.co.uk>
3128         * cppexp.c (CPP_UMINUS, CPP_UPLUS): New.
3129         (HAVE_NO_R_OPERAND): Remove.
3130         (HAVE_VALUE): Remove.
3131         (op_to_prio): Update.
3132         (UNARY): Don't alter flags.
3133         (_cpp_parse_expr): want_value used to indicate whether
3134         a number or unary operator is expected next.  Distinguish
3135         unary and binary +/-.
3136         (op_as_text): Update for unary operators.
3138 2002-04-25  Richard Henderson  <rth@redhat.com>
3140         PR c/2161
3141         * c-parse.in (yyoverflow): New.
3143 2002-04-25  Richard Henderson  <rth@redhat.com>
3145         PR c/2098
3146         * c-common.c (shorten_compare): Simplfy conditions leading to
3147         the generation of a warning.
3149 2002-04-25  Richard Henderson  <rth@redhat.com>
3151         PR c/2035
3152         * expmed.c (extract_bit_field): Fall through to generic code rather
3153         than aborting on subreg special case.
3155 2002-04-25  David S. Miller  <davem@redhat.com>
3157         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Add back check
3158         for DECL being NULL.
3160 2002-04-25  Steve Christiansen  <smc@us.ibm.com>
3162         * doc/md.texi (Machine Constraints): Add IA-64 constraints.
3164 2002-04-25  Eric Botcazou  <ebotcazou@multimania.com>
3166         * c-decl.c (grokdeclarator): Remove outdated ??? note
3167         on invalid declaration of flexible array members.
3169 2002-04-25  Richard Henderson  <rth@redhat.com>
3171         * doc/invoke.texi: Document -gdwarf{,-2} vs debug level.
3173 2002-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
3175         * config/s390/s390.c (s390_emit_epilogue): Always restore registers
3176         needed by the compiler, even if they are used as global regs.
3178 2002-04-25  Matt Hiller  <hiller@redhat.com>
3180         * mips.c (mips_class_max_nregs, mips_register_move_cost): New
3181         functions.
3182         * mips.h (CLASS_MAX_NREGS, REGISTER_MOVE_COST): Redefine as calls
3183         of the corresponding functions.
3184         * mips-protos.h (mips_class_max_nregs, mips_register_move_cost):
3185         New prototypes.
3187 2002-04-25  Matt Hiller  <hiller@redhat.com>
3189         * config/mips/mips.h (mips_sw_reg_names): Declare as extern.
3191         (ALL_COP_ADDITIONAL_REGISTER_NAMES): New macro.
3192         (FIRST_PSEUDO_REGISTER): Redefine considering coprocessor
3193         registers, adjust comment accordingly.
3194         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS,
3195         reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS, REGISTER_NAMES,
3196         DEBUG_REGISTER_NAMES, REG_ALLOC_ORDER): Adjust to include entries
3197         for coprocessor registers.
3198         (ADDITIONAL_REGISTER_NAMES): Include
3199         ALL_COP_ADDITIONAL_REGISTER_NAMES.
3201         (COP0_REG_FIRST, COP0_REG_LAST, COP0_REG_NUM,
3202         COP2_REG_FIRST, COP2_REG_LAST, COP2_REG_NUM,
3203         COP3_REG_FIRST, COP3_REG_LAST, COP3_REG_NUM,
3204         COP0_REG_P, COP2_REG_P, COP3_REG_P, ALL_COP_REG_P,
3205         COPNUM_AS_CHAR_FROM_REGNUM, COP_REG_CLASS_P): New macros.
3207         (mips_char_to_class): Adjust comment to include coprocessor
3208         constraint letters.
3210         * config/mips/mips.c (coprocessor_operand, coprocessor2_operand):
3211         New functions.
3212         (mips_reg_names, mips_regno_to_class): Include coprocessor
3213         information.
3214         (mips_sw_reg_names): Ditto, make non-static.
3215         (mips_move_1word): Handle moves to and from coprocessor registers.
3216         (mips_move_2words): Handle moves to and from coprocessor
3217         registers.
3218         (mips_class_max_nregs, mips_register_move_cost): Handle
3219         coprocessor register classes.
3220         (override_options): Initialize mips_char_to_class and
3221         mips_hard_regno_mode_ok properly for coprocessor registers.
3223         * config/mips/mips.md (movdi_internal, movdi_internal2,
3224         movsi_internal1, movsi_internal2): Add constraint-sets for
3225         coprocessor registers.
3226         * testsuite/gcc.c-torture/mipscop-1.c: New testcase.
3227         * testsuite/gcc.c-torture/mipscop-1.x: Disable above if target
3228         isn't mips.
3229         * testsuite/gcc.c-torture/mipscop-2.c: New testcase.
3230         * testsuite/gcc.c-torture/mipscop-2.x: Disable above if target
3231         isn't mips.
3232         * testsuite/gcc.c-torture/mipscop-3.c: New testcase.
3233         * testsuite/gcc.c-torture/mipscop-3.x: Disable above if target
3234         isn't mips.
3235         * testsuite/gcc.c-torture/mipscop-4.c: New testcase.
3236         * testsuite/gcc.c-torture/mipscop-4.x: Disable above if target
3237         isn't mips.
3239         * doc/tm.texi: Document feature.
3241 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3243         * integrate.c (function_attribute_inlinable_p): Simplify.
3244         Check the table pointer is not NULL.
3246 2002-04-25  Steven Bosscher  <S.Bosscher@student.tudelft.nl>
3248         * doc/c-tree.texi: Fix typo in introduction.
3250 2002-04-25  Neil Booth  <neil@daikokuya.demon.co.uk>
3252         * c-common.h (c_common_parse_file): Update.
3253         * c-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3254         * c-lex.c (YYDEBUG): Get from c-lex.h.
3255         (c_common_parse_file): Update.
3256         * c-lex.h (YYDEBUG, yydebug): New.
3257         * c-parse.in (YYDEBUG): Get from c-lex.h.
3258         (c_set_yydebug): Remove.
3259         * c-tree.h (c_set_yydebug): Remove.
3260         * langhooks-def.h (lhd_do_nothing_i): New.
3261         (lhd_set_yydebug, LANG_HOOKS_SET_YYDEBUG): Remove.
3262         (LANG_HOOKS_PARSE_FILE, LANG_HOOKS_INITIALIZER): Update.
3263         * langhooks.c  (lhd_do_nothing_i): New.
3264         (lhd_set_yydebug): Remove.
3265         * langhooks.h (struct lang_hooks): Update.
3266         * toplev.c (set_yydebug): New.
3267         (compile_file): Update call to parse_file hook.
3268         (decode_d_option): Update.
3269 objc:
3270         * objc-lang.c (LANG_HOOKS_SET_YYDEBUG): Remove.
3272 Wed Apr 24 23:45:37 2002  J"orn Rennecke <joern.rennecke@superh.com>
3274         * loop.c (load_mems): Don't change the interface of called functions.
3276         * calls.c (expand_call): Take current_function_pretend_args_size
3277         into account when setting argblock for sibcalls.
3279 2002-04-24  Matt Hiller  <hiller@redhat.com>
3281         * cpplex.c: Remove conditional #undef of MULTIBYTE_CHARS.
3282         * c-lex.c: Ditto.
3284         * cpplex.c (skip_line_comment): Process comment one multibyte
3285         character at a time rather than one char at a time, if
3286         appropriate.
3287         (parse_string): Process string one multibyte character at a time
3288         rather than one char at a time, if appropriate.
3289         * c-lex.c (lex_string): Lex and copy multibyte strings
3290         appropriately.
3291         * cpplib.h (cppchar_t): Change to unsigned.
3293 2002-04-24  Richard Henderson  <rth@redhat.com>
3295         PR c/3467
3296         * c-decl.c (grokdeclarator): Don't pedwarn variable sized arrays
3297         for c99.
3299 Wed Apr 24 21:51:54 2002  J"orn Rennecke <joern.rennecke@superh.com>
3301         * sh.c (sh_va_arg): If argument was passed by reference,
3302         dereference the pointer.
3304         * sh.h (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
3306         * sh.md (divsi3_i4_media): Use match_operand for input values
3307         rather than hard registers.
3308         (divsi3 - TARGET_SHMEDIA_FPU case): Don't ferry values
3309         unnecessarily through hard registers.  Keep copies of pseudo
3310         registers outside of the libcall sequence.
3312         * sh.md (casesi_shift_media): Add modes.
3314         * sh.h (RETURN_IN_MEMORY): Return variable size BLKmode
3315         values in memory.
3317 2002-04-24  Neil Booth  <neil@daikokuya.demon.co.uk>
3319         * attribs.c (c_common_attribute_table): Move table and handlers
3320         to c-common.c.
3321         (format_attribute_table, lang_attribute_table,
3322         lang_attribute_common): Remove.
3323         (init_attributes): Replace NULL pointers with pointers to the
3324         empty table.
3325         (handle_packed_attribute, handle_nocommon_attribute,
3326         handle_common_attribute, handle_noreturn_attribute,
3327         handle_noinline_attribute, handle_always_inline_attribute,
3328         handle_used_attribute, handle_unused_attribute,
3329         handle_const_attribute, handle_transparent_union_attribute,
3330         handle_constructor_attribute, handle_destructor_attribute,
3331         handle_mode_attribute, handle_section_attribute,
3332         handle_aligned_attribute, handle_weak_attribute,
3333         handle_alias_attribute, handle_visibility_attribute,
3334         handle_no_instrument_function_attribute, handle_malloc_attribute,
3335         handle_no_limit_stack_attribute, handle_pure_attribute,
3336         handle_deprecated_attribute, handle_vector_size_attribute,
3337         vector_size_helper): Move to c-common.c.
3338         * c-common.c (c_common_attribute_table,
3339         handle_packed_attribute, handle_nocommon_attribute,
3340         handle_common_attribute, handle_noreturn_attribute,
3341         handle_noinline_attribute, handle_always_inline_attribute,
3342         handle_used_attribute, handle_unused_attribute,
3343         handle_const_attribute, handle_transparent_union_attribute,
3344         handle_constructor_attribute, handle_destructor_attribute,
3345         handle_mode_attribute, handle_section_attribute,
3346         handle_aligned_attribute, handle_weak_attribute,
3347         handle_alias_attribute, handle_visibility_attribute,
3348         handle_no_instrument_function_attribute, handle_malloc_attribute,
3349         handle_no_limit_stack_attribute, handle_pure_attribute,
3350         handle_deprecated_attribute, handle_vector_size_attribute,
3351         vector_size_helper): Move from attribs.c.
3352         * c-common.h (c_common_attribute_table,
3353         c_common_format_attribute_table): New.
3354         * c-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3355         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3356         * langhooks-def.h (LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE,
3357         LANG_HOOKS_COMMON_ATTRIBUTE_TABLE, LANG_HOOKS_ATTRIBUTE_TABLE): New.
3358         (LANG_HOOKS_INITIALIZER): Update.
3359         * langhooks.h (struct lang_hooks): 3 new attribute hooks.
3360         * target-def.h (TARGET_ATTRIBUTE_TABLE): Default to NULL.
3361         * target.h: Update comment.
3362         * tree.c (default_target_attribute_table): Remove.
3363         * tree.h (default_target_attribute_table, format_attribute_table,
3364         lang_attribute_table, lang_attribute_common): Remove.
3365 objc:
3366         * objc-lang.c (LANG_HOOKS_COMMON_ATTRIBUTE_TABLE,
3367         LANG_HOOKS_FORMAT_ATTRIBUTE_TABLE): Redefine.
3369 2002-04-24  Jason Merrill  <jason@redhat.com>
3371         * dwarf2.h (enum dwarf_attribute): Add DW_AT_GNU_vector.
3372         * dwarf2out.c (dwarf_attr_name): Support it.
3373         (gen_array_type_die): Emit it.
3374         (lookup_type_die): No special handling for VECTOR_TYPE.
3375         (gen_type_die): Hand VECTOR_TYPE off to gen_array_type_die.
3377 2002-04-24  Richard Henderson  <rth@redhat.com>
3379         * config/mips/mips.md (movdi_usd): Renumber.
3381 2002-04-24  David S. Miller  <davem@redhat.com>
3383         PR target/6420
3384         * config/sparc/sparc.h (FUNCTION_OK_FOR_SIBCALL): Return false if
3385         32-bit Sparc and current_function_returns_struct is true.
3387 Wed Apr 24 13:48:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
3389         * loop.c (canonicalize_condition): Use gen_int_mode.
3391 2002-04-24  Aldy Hernandez  <aldyh@redhat.com>
3393         * config/rs6000/altivec.h: Cleanup file.  Add non individual
3394         variants.
3395         (vec_vaddubm): New.
3396         (vec_vadduhm): New.
3397         (vec_vadduwm): New.
3398         (vec_vaddfp): New.
3399         (vec_vaddcuw): New.
3400         (vec_vaddubs): New.
3401         (vec_vaddsbs): New.
3402         (vec_vadduhs): New.
3403         (vec_vadduws): New.
3404         (vec_vaddsws): New.
3405         (vec_vand): New.
3406         (vec_vandc): New.
3407         (vec_vavgub): New.
3408         (vec_vavgsb): New.
3409         (vec_vavguh): New.
3410         (vec_vavgsh): New.
3411         (vec_vavguw): New.
3412         (vec_vavgsw): New.
3413         (vec_vrfip): New.
3414         (vec_vcmpbfp): New.
3415         (vec_vcmpequb): New.
3416         (vec_vcmpequh): New.
3417         (vec_vcmpequw): New.
3418         (vec_vcmpeqfp): New.
3419         (vec_vcmpgefp): New.
3420         (vec_vcmpgtub): New.
3421         (vec_vcmpgtsb): New.
3422         (vec_vcmpgtuh): New.
3423         (vec_vcmpgtsh): New.
3424         (vec_vcmpgtuw): New.
3425         (vec_vcmpgtsw): New.
3426         (vec_vcmpgtfp): New.
3427         (vec_vcmpgefp): New.
3428         (vec_vcfux): New.
3429         (vec_vcfsx): New.
3430         (vec_vctsxs): New.
3431         (vec_vctuxs): New.
3432         (vec_vexptefp): New.
3433         (vec_vrfim): New.
3434         (vec_lvx): New.
3435         (vec_lvebx): New.
3436         (vec_lvehx): New.
3437         (vec_lde): Add vector float variant.
3438         (vec_lvewx): New.
3439         (vec_lvxl): New.
3440         (vec_vlogefp): New.
3441         (vec_vmaddfp): New.
3442         (vec_vmhaddshs): New.
3443         (vec_vmaxub): New.
3444         (vec_vmaxsb): New.
3445         (vec_vmaxuh): New.
3446         (vec_vmaxsh): New.
3447         (vec_vmaxuw): New.
3448         (vec_vmaxsw): New.
3449         (vec_vmaxsw): New.
3450         (vec_vmaxfp): New.
3451         (vec_vmrghb): New.
3452         (vec_vmrghh): New.
3453         (vec_vmrghw): New.
3454         (vec_vmrglb): New.
3455         (vec_vmrglh): New.
3456         (vec_vmrglw): New.
3457         (vec_vminub): New.
3458         (vec_vminsb): New.
3459         (vec_vminuh): New.
3460         (vec_vminsh): New.
3461         (vec_vminuw): New.
3462         (vec_vminsw): New.
3463         (vec_vminfp): New.
3464         (vec_vmladduhm): New.
3465         (vec_vmhraddshs): New.
3466         (vec_msumubm): New.
3467         (vec_vmsummbm): New.
3468         (vec_vmsumuhm): New.
3469         (vec_vmsumshm): New.
3470         (vec_vmsumuhs): New.
3471         (vec_vmsumshs): New.
3472         (vec_vmuleub): New.
3473         (vec_vmulesb): New.
3474         (vec_vmuleuh): New.
3475         (vec_vmulesh): New.
3476         (vec_vmuloub): New.
3477         (vec_mulosb): New.
3478         (vec_vmulouh): New.
3479         (vec_vmulosh): New.
3480         (vec_vnmsubfp): New.
3481         (vec_vnor): New.
3482         (vec_vor): New.
3483         (vec_vpkuhum): New.
3484         (vec_vpkuwum): New.
3485         (vec_vpkpx): New.
3486         (vec_vpkuhus): New.
3487         (vec_vpkshss): New.
3488         (vec_vpkuwus): New.
3489         (vec_vpkswss): New.
3490         (vec_vpkshus): New.
3491         (vec_vpkswus): New.
3492         (vec_vperm): New.
3493         (vec_vrefp): New.
3494         (vec_vrlb): New.
3495         (vec_vrlh): New.
3496         (vec_vrlw): New.
3497         (vec_vrfin): New.
3498         (vec_vrsqrtefp): New.
3499         (vec_vsel): New.
3500         (vec_vslb): New.
3501         (vec_vslh): New.
3502         (vec_vslw): New.
3503         (vec_vsldoi): New.
3504         (vec_vsl): New.
3505         (vec_vslo): New.
3506         (vec_vspltb): New.
3507         (vec_vsplth): New.
3508         (vec_vspltw): New.
3509         (vec_vspltisb): New.
3510         (vec_vspltish): New.
3511         (vec_vspltisw): New.
3512         (vec_vsrb): New.
3513         (vec_vsrh): New.
3514         (vec_vsrw): New.
3515         (vec_vsrab): New.
3516         (vec_vsrah): New.
3517         (vec_vsraw): New.
3518         (vec_vsr): New.
3519         (vec_vsro): New.
3520         (vec_stvx): New.
3521         (vec_stvebx): New.
3522         (vec_stvehx): New.
3523         (vec_stvewx): New.
3524         (vec_stvxl): New.
3525         (vec_vsububm): New.
3526         (vec_vsubuhm): New.
3527         (vec_vsubuwm): New.
3528         (vec_vsubfp): New.
3529         (vec_vsubcuw): New.
3530         (vec_vsububs): New.
3531         (vec_vsubsbs): New.
3532         (vec_vsubuhs): New.
3533         (vec_vsubshs): New.
3534         (vec_vsubuws): New.
3535         (vec_vsubsws): New.
3536         (vec_vsum4ubs): New.
3537         (vec_vsum4sbs): New.
3538         (vec_vsum4shs): New.
3539         (vec_vsum2sws): New.
3540         (vec_vsumsws): New.
3541         (vec_vrfiz): New.
3542         (vec_vupkhsb): New.
3543         (vec_vupkhpx): New.
3544         (vec_vupkhsh): New.
3545         (vec_vupklsb): New.
3546         (vec_vupklpx): New.
3547         (vec_vupklsh): New.
3548         (vec_vxor): New.
3550 2002-04-23  Eric Botcazou  <ebotcazou@multimania.com>
3552         PR c/5430
3553         * fold-const.c (split_tree): Add MINUS_LITP parameter; separate
3554         added literals from substracted literals.
3555         (associate_trees): Don't convert MINUS_EXPR into PLUS_EXPR.
3556         (fold) [associate]: Preserve MINUS_EXPR if needed.
3558 2002-04-23  Zack Weinberg  <zack@codesourcery.com>
3560         * doc/install.texi: Clarify which versions of alpha*-dec-osf*
3561         are obsoleted.
3563 2002-04-23  Tom Tromey  <tromey@redhat.com>
3565         * gcc.c: Added --resource.  For PR java/6314.
3567 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
3569         * cp/g++spec.c: Use profiled libstdc++ and libm with -p/-pg.
3570         * config/freebsd.h (MATH_LIBRARY_PROFILE): Use the _p verions of
3571         these libraries.
3573 2002-04-23  David O'Brien  <obrien@FreeBSD.org>
3575         * config/freebsd.h(OBJECT_FORMAT_ELF): Define.
3577 Tue Apr 23 14:24:25 CEST 2002  Jan Hubicka  <jh@suse.cz>
3579         * i386.c (ix86_output_addr_diff_elt): Avoid x86_64 binutils bug
3580         workaround.
3581         (ix86_expand_int_movcc): Avoid x86_64 compilation chrash.
3582         (ix86_expand_clrstr): Fix typo.
3583         * loop.c (gen_load_of_final_value): New.
3584         (loop_givs_rescan, strength_reduce, check_dbra_loop):
3585         Use it.
3587 2002-04-23  Roger Sayle  <roger@eyesopen.com>
3589         * builtins.c (builtin_memset_gen_str): New function.
3590         (expand_builtin_memset): Optimize the case of constant length, but
3591         unknown value.
3593 2002-04-23  Aldy Hernandez  <aldyh@redhat.com>
3595         * config/rs6000/altivec.h (vec_step): Remove extraneous
3596         parentheses.
3597         (vec_ctu): Cast return.
3599 2002-04-23  Alan Modra  <amodra@bigpond.net.au>
3601         PR target/6413
3602         * function.h: (struct function): Add profile_label_no field.
3603         (current_function_profile_label_no): Define.
3604         * function.c: (profile_label_no): New static var.
3605         (expand_function_start): Increment it, and copy to
3606         current_function_profile_label_no.
3607         * output.h (profile_label_no): Delete.
3608         * final.c (profile_label_no): Delete.
3609         (profile_function): Use current_function_profile_label_no.
3610         (final_end_function): Don't increment profile_label_no here.
3611         * config/i386/i386.c (ix86_osf_output_function_prologue): Replace
3612         profile_label_no with current_function_profile_label_no.
3613         * config/pa/pa.c (current_function_number): Delete.
3614         (pa_output_function_prologue): Don't output profile label here.
3615         (hppa_profile_hook): Use label_no param rather than
3616         current_function_number.
3617         (FUNC_BEGIN_PROLOG_LABEL): Move to ..
3618         * config/pa/pa.h: .. here.
3619         (FUNCTION_PROFILER): Output profile label here.
3621 2002-04-22  Eric Christopher  <echristo@redhat.com>
3623         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Revert
3624         patch of 2002-04-09 due to binutils issues.
3625         (FUNCTION_ARG_REGNO_P): Ensure even numbered float register.
3627 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
3629         * config/rs6000/rs6000.md ("*movv4si_internal"): Change 'm'
3630         constraint to 'o' for m=r and r=m alternatives.
3631         ("*movv8hi_internal1"): Same.
3632         ("*movv16qi_internal1"): Same.
3633         ("*movv4sf_internal1"): Same.
3635 2002-04-22  Janis Johnson  <janis187@us.ibm.com>
3637         * rtl.h (RTX_FLAG): New macro.
3638         * emit-rtl.c (copy_most_rtx): Use macros to access rtx flags.
3639         * final.c (alter_subreg): Use macro to access rtx flag.
3640         * integrate.c (copy_rtx_and_substitute): Use new access macro.
3641         * print-rtl.c (print_rtx): Use new access macro.
3643         * cse.c (insert): Check rtx code before accessing flag.
3645         * genattrtab.c (ATTR_IND_SIMPLIFIED_P, ATTR_CURR_SIMPLIFIED_P,
3646         ATTR_PERMANENT_P, ATTR_EQ_ATTR_P): New.
3647         (attr_hash_add_string, attr_rtx_1, attr_copy_rtx, check_attr_test,
3648         convert_const_symbol_ref, make_canonical, make_alternative_compare,
3649         evaluate_eq_attr, attr_rtx_cost, simplify_test_exp_in_temp,
3650         simplify_test_exp, optimize_attrs, simplify_by_exploding,
3651         find_and_mark_used_attributes, unmark_used_attributes,
3652         add_values_to_cover, simplify_with_current_value,
3653         simplify_with_current_value_aux, clear_struct_flag, walk_attr_value,
3654         copy_rtx_unchanging, main): Use new access macros.
3656 2002-04-22  Tom Rix  <trix@redhat.com>
3658         * expmed.c (init_expmed): Generate shifted constant once.
3660 2002-04-22  Zack Weinberg  <zack@codesourcery.com>
3662         * c-lex.c (lex_charconst): Call convert to get constant in
3663         proper type; don't just smash the type field.
3664         Fixes PR c/6300.
3666         * config.gcc: Add list of obsolete configurations.  Disallow
3667         building these without --enable-obsolete.
3668         * doc/install.texi: Document --enable-obsolete and obsoletion
3669         policy.  Mention obsoletion of individual targets in
3670         appropriate places.
3672 2002-04-22  Richard Henderson  <rth@redhat.com>
3674         * config/sparc/sol2-bi.h (ASM_DEBUG_SPEC): New.
3676 2002-04-22  Mark Mitchell  <mark@codesourcery.com>
3678         PR f/6138.
3679         * function.c (fixup_memory_subreg): Add promoted_mode parameter.
3680         (walk_fixup_memory_subreg): Likewise.
3681         (fixup_var_refs_insn): Adjust accordingly.
3682         (fixup_var_refs_1): Likewise.
3684 2002-04-22  Ulrich Weigand  <uweigand@de.ibm.com>
3686         * config/s390/linux.h: (LIBPATH_SPEC, LIBPATH_ARCH31_SPEC,
3687         LIBPATH_ARCH64_SPEC): Define.
3688         (EXTRA_SPECS): Add libpath, libpath_arch31, libpath_arch64.
3689         (STARTFILE_SPEC, ENDFILE_SPEC): Define; use libpath.
3690         (LINK_ARCH31_SPEC): Add libpath_arch31 to search path.
3691         (LINK_ARCH64_SPEC): Add libpath_arch64 to search path.
3693 2002-04-22      Joel Sherrill <joel@OARcorp.com>
3695         * gthr-rtems.h: Correct prototypes to remove warnings.
3697 2002-04-22  Richard Henderson  <rth@redhat.com>
3699         PR c/6344
3700         * alias.c (canon_true_dependence): Special case (mem:blk (scratch)).
3702         * gcse.c (free_insn_expr_list_list): New.
3703         (clear_modify_mem_tables): Use it.  Fix bit set usage.
3704         (canon_list_insert): Use EXPR_LISTs for expressions.
3705         (record_last_mem_set_info): Factor BLOCK_NUM (insn).
3707 2002-04-22  Neil Booth  <neil@daikokuya.demon.co.uk>
3709         * cppfiles.c (_cpp_pop_file_buffer): Return void.  Move
3710         file change and include code to _cpp_pop_buffer.
3711         * cpphash.h (struct pending_option): Predeclare.
3712         (struct cpp_reader): New member next_include_file.
3713         (_cpp_pop_file_buffer): Update.
3714         (_cpp_push_next_buffer): Update, rename.
3715         * cppinit.c (cpp_destroy): Free include chain and pending here.
3716         (cpp_finish_options): Simplify.
3717         (_cpp_push_next_buffer): Rename and clean up.
3718         * cpplib.c (cpp_pop_buffer): Move code from _cpp_pop_file_buffer.
3719         Clarify.
3720         * cppmacro.c (cpp_scan_nooutput): Set return_at_eof here.
3722 2002-04-22  Aldy Hernandez  <aldyh@redhat.com>
3724         * config/rs6000/altivec.h (vec_xor): Add variant for both args
3725         being vector signed int.
3726         (vec_andc): Same.
3727         (vec_xor): Add variant for both args being vector signed char.
3728         Remove redundant variant.
3729         (vec_andc): Same.
3731 2002-04-21  David S. Miller  <davem@redhat.com>
3733         * config/sparc/sparc.md (set then compare DI mode peephole2): Fix
3734         compare mode in output RTL.
3736 2002-04-22  David Edelsohn  <edelsohn@gnu.org>
3738         * config/rs6000/rs6000.c (rs6000_override_options): Correct
3739         style and formatting of previous patch.
3741 2002-04-22  Alan Modra  <amodra@bigpond.net.au>
3743         * config/rs6000/rs6000.c (rs6000_override_options): Always clear
3744         flag_pic for ABI_AIX.
3746 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3748         * cppexp.c (struct op, parse_number): Replace U_CHAR with uchar.
3749         * cppfiles.c (read_include_file): Similarly.
3750         * cpphash.h (DSC, U_CHAR, ustrcmp, ustrncmp, ustrlen,
3751         uxstrdup ustrchr, ufputs): Similarly.
3752         * cppinit.c (TRIGRAPH_MAP, cpp_destroy): Similarly.
3753         * cpplex.c (parse_slow, unescaped_terminator_p, save_comment,
3754         cpp_ideq, parse_identifier, parse_number): Similarly.
3755         * cpplib.c (struct directive, dequote_string, D, run_directive,
3756         cpp_push_buffer): Similarly.
3757         * cppmacro.c (new_string_token, builtin_macro, cpp_quote_string,
3758         _cpp_create_definition, check_trad_stringification,
3759         cpp_macro_definition): Similarly.
3761 2002-04-21  Neil Booth  <neil@daikokuya.demon.co.uk>
3763         * cppmacro.c (funlike_invocation_p): Don't step back
3764         over CPP_EOF.
3766 2002-04-21  David Edelsohn  <edelsohn@gnu.org>
3768         * config/rs6000/rs6000.c (output_profile_hook): Do not increment
3769         labelno.
3771 2002-04-20  Joseph S. Myers  <jsm28@cam.ac.uk>
3773         * doc/invoke.texi: Remove Chill references.
3774         * doc/gcc.texi: Update last modified date.
3776 2002-04-20  Kazu Hirata  <kazu@hxi.com>
3778         * config/h8300/lib1funcs.asm (___mulsi3): Remove unnecessary
3779         push and pop.  Replace add.l with add.w.
3781 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3783         * config/h8300/lib1funcs.asm (___mulsi3): Use hardware
3784         multiply instructions for H8/300H case.
3786 2002-04-20  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
3788         * config/h8300/lib1funcs.asm (___cmpsi2, ___ucmpsi2):
3789         Bum three instructions from each routine.
3791 2002-04-20  Neil Booth  <neil@daikokuya.demon.co.uk>
3793         * Makefile.in: Update.
3794         * decl.c (push_c_function_context, pop_c_function_context,
3795         mark_c_function_context): Rename for consistency.
3796         * c-objc-common.c (c_objc_common_init): Langhooks set elsewhere.
3797         * c-tree.h (push_c_function_context, pop_c_function_context,
3798         mark_c_function_context): Rename for consistency.
3799         * c-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3800         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3801         * function.c (init_lang_status, save_lang_status,
3802         restore_lang_status, mark_lang_status, free_lang_status):
3803         Move to langhooks.h.
3804         (push_function_context_to, pop_function_context_from,
3805         free_after_parsing, prepare_function_start, ggc_mark_struct_function):
3806         Update.
3807         * function.h (init_lang_status, save_lang_status,
3808         restore_lang_status, mark_lang_status, free_lang_status):
3809         Move to langhooks.h.
3810         * langhooks-def.h (LANG_HOOKS_FUNCTION_INIT,
3811         LANG_HOOKS_FUNCTION_FREE, LANG_HOOKS_FUNCTION_ENTER_NESTED,
3812         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK,
3813         LANG_HOOKS_FUNCTION_INITIALIZER): New.
3814         (LANG_HOOKS_INITIALIZER): Update.
3815         (lhd_do_nothing_f): New.
3816         * langhooks.h (struct lang_hooks_for_functions): New.
3817         (struct lang_hooks): New hooks.
3818         * langhooks.c (lhd_do_nothing_f): New.
3819 objc:
3820         * objc-lang.c (LANG_HOOKS_FUNCTION_ENTER_NESTED,
3821         LANG_HOOKS_FUNCTION_LEAVE_NESTED, LANG_HOOKS_FUNCTION_MARK): Redefine.
3823 2002-04-19  David S. Miller  <davem@redhat.com>
3825         * config/sparc/linux.h (MD_FALLBACK_FRAME_STATE_FOR): Define.
3826         * config/sparc/linux64.h (MD_FALLBACK_FRAME_STATE_FOR): Likewise.
3828 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
3830         PR optimization/3756
3831         * config/i386/i386.c (ix86_expand_int_movcc): Optimize
3832         x = ((int) y < 0) ? cst1 : cst2.
3834 2002-04-19  Jakub Jelinek  <jakub@redhat.com>
3836         PR c/6358
3837         * function.c: Reapply patch for c/6358.
3838         (expand_function_end): Copy decl_rtl's mode, not
3839         current_function_return_rtx mode.
3841 2002-04-19  Joel Sherrill  <joel@OARcorp.com>
3843         * config/rtems.h (STARTFILE_SPEC, ENDFILE_SPEC): Fix for non-ELF
3844         targets.
3846 2002-04-19  Tom Tromey  <tromey@redhat.com>
3848         * doc/install.texi (Specific): Update status of Solaris 2.8.
3849         For PR libgcj/6158.
3851 2002-04-19  Andreas Schwab  <schwab@suse.de>
3853         * real.c: Allow sizeof (REAL_VALUE_TYPE) > 2*NE.
3854         (PUT_REAL): Restore old definition.
3856 2002-04-19  Dan Nicolaescu  <dann@godzilla.ics.uci.edu>
3857             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3859         * doc/install.texi (Specific, sparc-sun-solaris2*): Mention that
3860         binutils 2.11.2 and higher generate smaller binaries than Sun's
3861         native tools.
3863 2002-04-19  Mark Mitchell  <mark@codesourcery.com>
3865         PR c++/6352
3866         * toplev.c (rest_of_compilation): Do not defer functions for which
3867         TREE_SYMBOL_REFERENCED has already been set.
3869 Fri Apr 19 15:53:03 CEST 2002  Jan Hubicka  <jh@suse.cz>
3871         * i386.md (movsi_1, movhi_1): Force reload to use more flexible
3872         alternative.
3874 2002-04-19  Neil Booth  <neil@daikokuya.demon.co.uk>
3876         * builtins.c: Include langhooks.h.
3877         (lang_type_promotes_to): Remove.
3878         (expand_builtin_va_arg): Use new hook.
3879         * c-common.c (c_common_nodes_and_builtins): Don't set hook.
3880         (simple_type_promotes_to): Move to c-typeck.c.
3881         * c-common.h (simple_type_promotes_to): Remove.
3882         * c-decl.c (duplicate_decls, grokdeclarator): Update.
3883         * c-format.c: Include langhooks.h.
3884         (check_format_types): Update.
3885         * c-tree.h (c_type_promotes_to): New.
3886         * c-typeck.c (c_type_promotes_to): Move from c-common.c.
3887         (type_lists_compatible_p): Update.
3888         * langhooks-def.h (lhd_type_promotes_to): New.
3889         (LANG_HOOKS_TYPE_PROMOTES_TO): New.
3890         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3891         * langhooks.c (lhd_type_promotes_to): New.
3892         * langhooks.h (struct lang_hooks_for_types): New hook.
3893         * tree.h (lang_type_promotes_to): Remove.
3894 objc:
3895         * objc-lang.c (LANG_HOOKS_TYPE_PROMOTES_TO): Redefine.
3897 2002-04-18  Richard Henderson  <rth@redhat.com>
3899         * function.c: Revert patch for c/6358.
3901 2002-04-18  Richard Henderson  <rth@redhat.com>
3903         * ifcvt.c (find_cond_trap): Handle cases with no proper THEN or JOIN
3904         blocks.  Handle multiple references to the TRAP block.  Handle
3905         non-adjacent THEN and OTHER blocks.
3907 2002-04-18  Richard Henderson  <rth@redhat.com>
3909         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): Don't
3910         crash with no type for by-mode libcalls.
3912         * config/ia64/ia64.md (conditional_trap): Fix predicate polarity.
3914 2002-04-18  Bob Wilson  <bob.wilson@acm.org>
3916         * config/xtensa/lib2funcs.S (__xtensa_libgcc_window_spill,
3917         __xtensa_nonlocal_goto): Use a syscall instructions to flush
3918         the register windows.
3920 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
3922         * real.h: Define REAL_VALUE_TYPE_SIZE as 96 or 160, as
3923         appropriate.  Document need for extended precision even when
3924         MAX_LONG_DOUBLE_TYPE_SIZE is smaller.  Define REAL_WIDTH here,
3925         based on REAL_VALUE_TYPE_SIZE.  Use REAL_WIDTH to size
3926         REAL_VALUE_TYPE.  Define CONST_DOUBLE_FORMAT here.  Use #error
3927         instead of relying on later syntax error when REAL_WIDTH > 5.
3928         * real.c: Define NE based only on whether or not we have a
3929         full 128-bit extended type (not INTEL_EXTENDED_IEEE_FORMAT).
3930         Require sizeof(REAL_VALUE_TYPE) == 2*NE.  Unconditionally
3931         define GET_REAL and PUT_REAL as simple memcpy operations; no
3932         need to byteswap or round.
3933         Use #error instead of #ifdef-ing out the entire file, for
3934         prompt error detection.
3936         * rtl.c, gengenrtl.c: No need to calculate CONST_DOUBLE_FORMAT here.
3938 2002-04-18  David S. Miller  <davem@redhat.com>
3940         * config/sparc/sparc.h (BRANCH_COST): Define.
3942         * fold-const.c (BRANCH_COST): Don't provide default here, expr.h
3943         does it.
3945 2002-04-18  Hans-Peter Nilsson  <hp@bitrange.com>
3947         * flow.c (update_life_info): Ignore return value of cleanup_cfg.
3948         Mask out PROP_SCAN_DEAD_CODE | PROP_KILL_DEAD_CODE in
3949         propagate_block calls after relaxation loop using new variable
3950         stabilized_prop_flags.
3952 2002-04-18  Richard Henderson  <rth@redhat.com>
3954         * config/ia64/ia64.c (ia64_function_arg_pass_by_reference): New.
3955         (ia64_va_arg): Expect variable sized types by reference.
3956         * config/ia64/ia64-protos.h: Update.
3957         * config/ia64/ia64.h (FUNCTION_ARG_PASS_BY_REFERENCE): Use
3958         ia64_function_arg_pass_by_reference.
3960 2002-04-18  Richard Henderson  <rth@redhat.com>
3962         * ifcvt.c: Include except.h.
3963         (block_has_only_trap): Break out from find_cond_trap.
3964         (find_cond_trap): Use it.  Always delete the trap block.
3965         (merge_if_block): Allow then block null.  Be less simplistic about
3966         what insns can end a block.
3967         * Makefile.in (ifcvt.o): Depend on except.h.
3969         * config/ia64/ia64.md (trap, conditional_trap): New.
3971 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
3973         PR c/6358
3974         * function.c (assign_parms): Assign hard current_function_return_rtx
3975         register here...
3976         (expand_function_end): ...not here.
3978 2002-04-18  Neil Booth  <neil@daikokuya.demon.co.uk>
3980         * c-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3981         * c-tree.h (c_incomplete_type_error): New.
3982         * c-typeck.c (require_complete_type, build_component_ref): Update.
3983         (incomplete_type_error): Rename.
3984         * langhooks-def.h (lhd_incomplete_type_error): New.
3985         (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): New.
3986         (LANG_HOOKS_FOR_TYPES_INITIALIZER): Update.
3987         * langhooks.c (lhd_incomplete_type_error): New.
3988         * langhooks.h (struct lang_hooks_for_types): New hook.
3989         * tree.c (size_in_bytes): Use new hook.
3990         * tree.h (incomplete_type_error): Remove.
3991 objc:
3992         * objc-lang.c (LANG_HOOKS_INCOMPLETE_TYPE_ERROR): Redefine.
3994 2002-04-18  Zack Weinberg  <zack@codesourcery.com>
3996         * config/arc/arc.md: Remove #if HOST_FLOAT_FORMAT !=
3997         TARGET_FLOAT_FORMAT blocks.
3999 2002-04-18  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4001         * doc/install.texi (Downloading the source): Do not mention Chill
4002         any longer, but mention Ada.
4003         (Configuration): Do not mention Chill any longer.
4005 2002-04-18  Hans-Peter Nilsson  <hp@axis.com>
4007         * config/cris/cris.h (TARGET_VERSION): Remove local version number.
4009 Thu Apr 18 17:14:08 CEST 2002  Jan Hubicka  <jh@suse.cz>
4011         * i386.h (SSE_FLOAT_MODE_P): Fix bogus conflict resolution
4012         in last patch.
4014 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4016         * fold-const.c (fold): Use (*lang_hooks.types.unsigned_type)
4017         instead of unsigned_type.
4019 Thu Apr 18 15:49:12 CEST 2002  Jan Hubicka  <jh@suse.cz>
4021         * i386.h (SSE_FLOAT_MODE_P): Kill bogus TARGET_SSE_MATH check.
4022         * i386.md (sse_mov?fcc*): Swap operands for cases they will be swapped
4023         later.
4025 2002-04-18  Bernd Schmidt  <bernds@redhat.com>
4027         * attribs.c (vector_type_node_list): New static variable.
4028         (handle_vector_size_attribute): Use it to avoid generating a
4029         new type node each time we are called.
4031         * combine.c (subst): Avoid trying to make a vector mode subreg of
4032         an integer constant.
4033         (gen_lowpart_for_combine): Likewise.
4035 2002-04-18  Roger Sayle  <roger@eyesopen.com>
4036             Jakub Jelinek  <jakub@redhat.com>
4038         * fold-const.c (fold) [NOP_EXPR]: Convert (T)(x&c) into ((T)x&(T)c)
4039         for integer constant c (if x has unsigned type or sign bit is not
4040         set in c).  This folds the zero/sign extension into the bit-wise and
4041         operation.
4043 2002-04-18  Jakub Jelinek  <jakub@redhat.com>
4045         PR middle-end/6205
4046         * config/i386/i386.md (movsf_1): Use pxor only if TARGET_SSE2,
4047         otherwise xorps.
4049 2002-04-17  NIIBE Yutaka  <gniibe@m17n.org>
4051         * config/sh/elf.h: Undefine ASM_OUTPUT_CASE_LABEL.
4053 2002-04-17  Nick Clifton  <nickc@cambridge.redhat.com>
4055         * gcc.c (read_specs): Detect and fail if an attempt is made to
4056         rename a spec string to an already existing string.
4058 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4060         * config/s390/s390.c (legitimize_pic_address): Do not generate
4061         illegal address constant without CONST.
4063 2002-04-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4065         * sparc/linux64.h (CC1_SPEC): Error for -m32 and -m64.
4066         * sparc/netbsd-elf.h (CC1_SPEC32, CC1_SPEC64): Likewise.
4068 2002-04-17  Ulrich Weigand  <uweigand@de.ibm.com>
4070         PR optimization/6305
4071         * config/s390/s390.c (s390_expand_plus_operand): Use find_replacement
4072         to make sure previous reloads are taken into account.  Generate
4073         better code if one operand is an in-range immediate constant.
4075 2002-04-16  Andrew Haley  <aph@cambridge.redhat.com>
4077         * doc/install.texi (Building): libgcj requires GNU make.
4079 2002-04-17  Jakub Jelinek  <jakub@redhat.com>
4081         PR bootstrap/6315
4082         * config/sparc/sparc.md (movtf reg<-reg split): Allow spliting
4083         even if hard quad and register is not floating.
4084         (movtf reg<-mem split): Disallow splitting if hard quad and
4085         register is floating.
4086         (movtf mem<-reg split): Likewise.
4087         * config/sparc/sparc.c (fp_register_operand): New predicate.
4088         * config/sparc/sparc.h (PREDICATE_CODES): Add fp_register_operand.
4090 2002-04-17  Zack Weinberg  <zack@codesourcery.com>
4092         * Makefile.in (PROTO_OBJS): Add cppdefault.o.
4093         (protoize.o): Take $(PREPROCESSOR_DEFINES) off command line.
4094         (unprotoize.o): Ditto.  Build from protoize.c.  Define
4095         UNPROTOIZE on command line.
4096         * protoize.c: Include cppdefault.h.  Delete include_defaults.
4097         (in_system_include_dir): Use cpp_include_defaults (defined in
4098         cppdefault.o).
4099         * unprotoize.c: Delete file.
4101 2002-04-17  Aldy Hernandez  <aldyh@redhat.com>
4103         * config/rs6000/altivec.h (vec_ld): Add array variants.
4104         (vec_lde): Same.
4105         (vec_ldl): Same.
4107 2002-04-17  Alan Matsuoka  <alanm@redhat.com>
4108             Aldy Hernandez <aldyh@redhat.com>
4110         * config/rs6000/altivec.h: Define __ALTIVEC__.
4111         (bool): New.
4112         (__pixel): New.
4113         (pixel): New.
4114         (vec_cfux): New.
4115         (vec_vmaddfp): New.
4116         (vec_vsldoi): New.
4117         Add parentheses to all macro arguments.
4119 2002-04-16  Richard Henderson  <rth@redhat.com>
4121         PR c++/6320
4122         * except.c (remove_eh_handler): Insert inner regions at beginning
4123         of sibling chain.  Refactor expressions.
4125 2002-04-16  Richard Henderson  <rth@redhat.com>
4127         * config/sparc/sol2-bi.h (AS_SPARC64_FLAG): New.
4128         * config/sparc/sol2-gas-bi.h: New file.
4129         * config.gcc (sparc*-solaris): Add it as needed.
4130         * configure.in (AS_SPARC64_FLAG): Remove check.
4131         * config.in, configure: Regenerate.
4133         * config/sparc/sol2-bi.h (CC1_SPEC): Error for -m32 and -m64.
4135 2002-04-16  Richard Henderson  <rth@redhat.com>
4137         * config/mips/mips.c (override_options): Don't override N32 for
4138         a 64-bit ISA.
4140         PR 6202
4141         * config/mips/mips.md (can_delay): Split out of existing define_delays.
4142         (HILO_delay): Set can_delay false.
4144 2002-04-16  Dale Johannesen <dalej@apple.com>
4146         * config/rs6000/rs6000.c (rs6000_output_function_prologue): Compute
4147         instruction addresses.
4148         (rs6000_output_function_epilogue): Likewise.
4150 2002-04-16  Paolo Carlini  <pcarlini@unitus.it>
4152         * c-parse.in (poplevel, compstmt_start,
4153         compstmt_primary_start): Add ending ';', in accordance
4154         with POSIX.
4156 2002-04-16  Richard Henderson  <rth@redhat.com>
4158         * config.gcc (sparcv9-solaris): Configure for 64-bit default.
4159         Adjust tm_file order to get TARGET_DEFAULT set properly.
4160         (sparc-solaris): Configure 2.[78] for 64-bit multilibs.
4161         * doc/install.texi (sparc-solaris): Update.
4163 2002-04-16  Dale Johannesen <dalej@apple.com>
4165         * config/rs6000/rs6000.c (rs6000_emit_cmove): Fail if modes of
4166         comparison operands do not match each other or if modes of
4167         conditions do not match result.
4169 2002-04-16  Hartmut Penner <hpenner@de.ibm.com>
4171         PR target/6305
4172         * config/s390/s390.md (mulsidi3): Set both subregs of the
4173         multiword register.
4175 2002-04-16  Aldy Hernandez  <aldyh@redhat.com>
4177         * config/rs6000/altivec.h (vec_addc): Type check.
4179 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
4181         PR middle-end/6279
4182         * expr.c (store_expr): Don't copy if DECL_RTL (exp) == target.
4184         * expr.c (safe_from_p): Cleanup: use DECL_RTL_IF_SET.
4186 2002-04-15  Richard Henderson  <rth@redhat.com>
4188         * config/mips/abi64.h (SUBTARGET_CONDITIONAL_REGISTER_USAGE): Set
4189         call_really_used_regs too.
4191 2002-04-15  Richard Henderson  <rth@redhat.com>
4193         * config/alpha/gnu.h (CPP_PREDEFINES): Underscores for gnu_hurd.
4195 2002-04-15  David S. Miller  <davem@redhat.com>
4197         * rtlanal.c (note_stores): Don't present PARALLEL SET_DESTs
4198         as being CLOBBERed.
4200 2002-04-16  Jakub Jelinek  <jakub@redhat.com>
4202         PR c/6290
4203         * config/rs6000/rs6000.c (easy_vector_constant): Return 1 if the
4204         CONST_VECTOR is { 0, ... 0 }.
4206 2002-04-15  Loren J. Rittle  <ljrittle@acm.org>
4208         * doc/install.texi (Installing GCC: Configuration): Clarify
4209         the only supported ways to configure gcc.
4211 2002-04-15  Roland McGrath  <roland@frob.com>
4213         * config.gcc (alpha*-*-gnu*): New target configuration.
4214         * config/alpha/gnu.h: New file for it.
4215         * config/gnu.h (TARGET_MEM_FUNCTIONS): #undef before #define.
4217 2002-04-16  Mark Mitchell  <mark@codesourcery.com>
4219         * c-common.h (STMT_EXPR_NO_SCOPE): New macro.
4220         * c-common.c (c_expand_expr): Respect STMT_EXPR_NO_SCOPE.
4221         * tree.h (expand_start_stmt_expr): Update prototype.
4222         * stmt.c (expand_start_stmt_expr): Add has_scope parameter.
4223         * tree-inline.c (expand_call_inline): Set STMT_EXPR_NO_SCOPE
4224         on the STMT_EXPR created for the inline function.
4226 2002-04-15  Richard Henderson  <rth@redhat.com>
4228         * config/alpha/linux.h, config/arm/linux-elf.h, config/i370/linux.h,
4229         config/i386/linux-aout.h, config/i386/linux-oldld.h,
4230         config/i386/linux.h, config/i386/linux64.h, config/ia64/linux.h,
4231         config/m68k/linux-aout.h, config/m68k/linux.h, config/mips/linux.h,
4232         config/pa/pa-linux.h, config/pj/linux.h, config/s390/linux.h,
4233         config/sh/linux.h, config/sparc/linux-aout.h, config/sparc/linux.h,
4234         config/sparc/linux64.h, config/xtensa/linux.h (CPP_PREDEFINES):
4235         Define __gnu_linux__, not gnu_linux.
4236         * config/rs6000/sysv4.h (CPP_OS_GNU_SPEC): Likewise for gnu_hurd.
4238 2002-04-15  Mark Mitchell  <mark@codesourcery.com>
4240         Remove Chill front end.
4241         * gcc.c (default_compilers): Remove Chill entries.
4242         * ch: Remove directory.
4243         * doc/frontends.texi: Remove information about Chill.
4244         * doc/sourcebuild.texi: Likewise.
4245         * doc/standards.texi: Likewise.
4247 2002-04-15  Douglas B Rupp  <rupp@gnat.com>
4249         * config/alpha/vms.h (INCLUDE_DEFAULTS): Add /gnu/lib/gcc-lib/include.
4250         (LONGLONG_STANDALONE): Define.
4252 2002-04-15  David S. Miller  <davem@redhat.com>
4254         * config/sparc/sparc.c (sparc_emit_float_lib_cmp):
4255         Call emit_library_call with LCT_NORMAL.
4256         (sparc_initialize_trampoline): Use LCT_foo instead of
4257         magic constant in emit_library_call invocations.
4258         (sparc64_initialize_trampoline): Likewise.
4259         (sparc_profile_hook): Likewise.
4260         * config/sparc/sparc.md: Likewise.
4262         * config/sparc/sparc.c (sparc_extra_constraint_check):
4263         Fix type of argument 'c'.
4264         * config/sparc/sparc-protos.h (sparc_extra_constraint_check):
4265         Likewise.
4267 2002-04-15  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
4269         * diagnostic.h (output_buffer_state): Redefine.
4270         (output_format_decoder): New macro.
4271         (output_prefixing_rule): Likewise.
4272         (output_line_cutoff): Likewise.
4273         (diagnostic_format_decoder): Adjust.
4274         (diagnostic_prefixing_rule): Likewise.
4275         (diagnostic_line_cutoff): Likewise.
4276         (diagnostic_state): Likewise.
4277         (diagnostic_kind_count): Likewise.
4278         (diagnostic_buffer): Now a macro.
4280         * diagnostic.c (diagnostic_buffer): Remove definition.
4281         (output_is_line_wrapping): Adjust.
4282         (set_real_maximum_length): Likewise.
4283         (output_set_maximum_length): Likewise.
4284         (init_output_buffer): Likewise.
4285         (lhd_print_error_function): Likewise.
4286         (output_do_verbatim): Likewise.
4288 2002-04-14  Neil Booth  <neil@daikokuya.demon.co.uk>
4290         * cpperror.c (print_location): Don't print include chain
4291         if line == 0.
4292         (cpp_begin_message): Update to use DL_ macros.
4293         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4294         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4295         cpp_notice, cpp_notice_from_errno): Remove.
4296         (cpp_error, cpp_error_with_line): Update to take a diagnostic
4297         level.
4298         (cpp_errno): New.
4299         * cppexp.c (CPP_ICE): Remove.
4300         (SYNTAX_ERROR, SYNTAX_ERROR2, parse_number, parse_defined,
4301         lex, integer_overflow, _cpp_parse_expr): Update.
4302         * cppfiles.c (read_include_file, find_include_file,
4303         handle_missing_header, _cpp_read_file, remap_filename): Update.
4304         * cpphash.h (enum error_type): Remove.
4305         (_cpp_begin_message): Update.
4306         * cppinit.c (append_include_chain, remove_dup_dirs, output_deps,
4307         cpp_handle_option, cpp_post_options): Update.
4308         * cpplex.c (trigraph_p, skip_escaped_newlines, skip_block_comment,
4309         skip_whitespace, parse_identifier, parse_slow, parse_string,
4310         _cpp_lex_direct, cpp_spell_token, maybe_read_ucs, cpp_parse_escape,
4311         cpp_interpret_charconst): Update.
4312         * cpplib.c (check_eol, directive_diagnostics, _cpp_handle_directive,
4313         lex_macro_node, do_undef, glue_header_name, parse_include,
4314         do_include_common, read_flag, do_line, do_linemarker, do_ident,
4315         cpp_register_pragma, do_pragma_once, do_pragma_system_header,
4316         do_pragma_poison, do_pragma_dependency, _cpp_do__Pragma, do_else,
4317         do_elif, do_endif, parse_answer, parse_assertion, do_assert,
4318         _cpp_pop_buffer, do_diagnostic): Update.
4319         * cpplib.h (DL_WARNING, DL_WARNING_SYSHDR, DL_PEDWARN, DL_ERROR,
4320         DL_FATAL, DL_ICE, DL_EXTRACT, DL_WARNING_P): New.
4321         (cpp_ice, cpp_fatal, cpp_error_from_errno, cpp_warning,
4322         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line,
4323         cpp_notice, cpp_notice_from_errno): Remove.
4324         (cpp_error, cpp_error_with_line): Update to take a diagnostic
4325         level.
4326         (cpp_errno): New.
4327         * cppmacro.c (builtin_macro, stringify_arg, paste_all_tokens,
4328         collect_args, enter_macro_context, save_parameter, parse_params,
4329         _cpp_create_definition, check_trad_stringification,
4330         cpp_macro_definition): Update.
4331         * cppmain.c (cpp_preprocess_file): Update.
4332         * fix-header.c (read_scan_file): Update.
4334 2002-04-14  Andreas Schwab  <schwab@suse.de>
4336         * config/ia64/linux.h (CPP_PREDEFINES): Fix missing backslash.
4338 2002-04-14  Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
4340         * config/arm/linux-elf.h (CPLUSPLUS_CPP_SPEC): Define.
4342 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
4344         * config/i386/gnu.h (CPP_PREDEFINES): Define __gnu_hurd__,
4345         not gnu_hurd.
4347 2002-04-13  Hans-Peter Nilsson  <hp@axis.com>
4349         * config/cris/linux.h (CRIS_CPP_SUBTARGET_SPEC): Fix typo.
4351 2002-04-13      Joel Sherrill <joel@OARcorp.com>
4353         * config/sparc/t-elf: Enable v8 multilibs.  Impacts
4354         sparc-elf and sparc-rtems targets.
4356 2002-04-13  Mark Mitchell  <mark@codesourcery.com>
4358         * alpha/linux.h: Define __gnu_linux__ wherever __linux__ is
4359         defined, and __gnu_hurd__ wherever __GNU__ is defined.
4360         * arm/linux-elf.h: Likewise.
4361         * cris/aout.h: Likewise.
4362         * cris/linux.h: Likewise.
4363         * i370/linux.h: Likewise.
4364         * i386/gnu.h: Likewise.
4365         * i386/linux-aout.h: Likewise.
4366         * i386/linux-oldld.h: Likewise.
4367         * i386/linux.h: Likewise.
4368         * i386/linux64.h: Likewise.
4369         * ia64/linux.h: Likewise.
4370         * m68k/linux-aout.h: Likewise.
4371         * m68k/linux.h: Likewise.
4372         * mips/linux.h: Likewise.
4373         * pa/pa-linux.h: Likewise.
4374         * pj/linux.h: Likewise.
4375         * rs6000/sysv4.h: Likewise.
4376         * s390/linux.h: Likewise.
4377         * sh/linux.h: Likewise.
4378         * sparc/linux-aout.h: Likewise.
4379         * sparc/linux.h: Likewise.
4380         * sparc/linux64.h: Likewise.
4381         * xtensa/linux.h: Likewise.
4383 2002-04-13  Richard Sandiford  <rsandifo@redhat.com>
4385         * stmt.c (check_unique_operand_names): Expect operand names to
4386         be strings rather than identifiers.  Use simple_cst_equal to
4387         compare them.
4388         (resolve_operand_name_1): Make same identifier to string change here.
4389         * c-parse.in (asm_operand): Convert a named operand into a string.
4390         * cp/parse.y (asm_operand): Likewise.
4392 2002-04-13  Andreas Schwab  <schwab@suse.de>
4394         * config/ia64/ia64.h (CPP_SPEC): Include %(cpp_cpu).
4396 2002-04-12  Mark Mitchell  <mark@codesourcery.com>
4398         Revert these changes:
4400         2002-04-06  Mark Mitchell  <mark@codesourcery.com>
4402         PR c++/5571
4403         * stor-layout.c (layout_decl): Reset the RTL for the decl.
4405 2002-04-12  Richard Henderson  <rth@redhat.com>
4407         * config.gcc (sparcv9-*-solaris2): Default to 32-bit code.
4408         (sparc*-*-solaris): Clean up header files.
4409         * configure.in (AS_SPARC64_FLAG): Error out if can't find it
4410         and plan on generating 64-bit code.
4411         * toplev.c (decode_g_option): Remove LINKER_DOES_NOT_WORK_WITH_DWARF2.
4412         * config/sparc/sol2-64.h: Delete and reuse for default 64-bit code.
4413         * config/sparc/sol2-sld-64.h: Rename ...
4414         * config/sparc/sol2-bi.h: ... here.  Remove the bits that checked
4415         for AS_SPARC64_FLAG not defined.
4416         * config/sparc/sol2-gld-bi.h: New.
4417         * config/sparc/sol2-sld.h: Remove.
4418         * config/sparc/sol26-sld.h: New.
4419         * config/sparc/sol2.h: Tidy comments.
4420         * doc/install.texi: Document sparc-solaris configury changes.
4422 2002-04-12  Richard Henderson  <rth@redhat.com>
4424         * recog.c (offsettable_address_p): Match the logic in adjust_address.
4426         * config/sparc/sparc.h (LEGITIMIZE_RELOAD_ADDRESS): Handle TFmode
4427         in 64-bit mode only.  Use only for 32-bit or MEDLOW.
4429 2002-04-12  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4431         * config/alpha/osf.h (LINK_SPEC): Pass -S to silence ld warnings.
4433 Fri Apr 12 15:42:59 2002  Jeffrey A Law  (law@redhat.com)
4435         * pa.c (pa_can_combine_p): Call extract_insn before calling
4436         constrain_operands.
4438 2002-04-12  Douglas B Rupp  <rupp@gnat.com>
4440         * config/i386/i386-interix.h (EH_FRAME_IN_DATA_SECTION): Define.
4441         (TARGET_ASM_NAMED_SECTION, RETURN_IN_MEMORY) Define.
4442         (DEFAULT_PCC_STRUCT_RETURN): Define as 0.
4443         (CPP_PREDEFINES): Handle __declspec.
4444         * config/i386/t-interix (USER_H): Remove.
4446 2002-04-12  DJ Delorie  <dj@redhat.com>
4448         * integrate.c (compare_blocks): Make comparisons safe for when
4449         sizeof(int) < sizeof(char *).
4450         (find_block): Likewise.
4452 2002-04-12  Jan Hubicka  <jh@suse.cz>
4453             David Edelsohn  <edelsohn@gnu.org>
4455         * config/rs6000/rs6000.c (call_operand): Allow LINK and COUNT
4456         registers.
4457         (symbol_ref_operand): New.
4458         * config/rs6000/rs6000.h (PREDICATE_CODES): Add symbol_ref_operand.
4459         * config/rs6000/rs6000.md (call_nonlocal_aix): Use symbol_ref_operand.
4461 2002-04-12  Andreas Schwab  <schwab@suse.de>
4463         * config/ia64/ia64.h (ASM_SPEC): Moved from here ...
4464         * config/ia64/sysv4.h (ASM_SPEC): ... to here, so that it
4465         overrides the definition in config/svr4.h.
4467 2002-04-12      Eric Norum <eric.norum@usask.ca>
4469         * config/rtems.h, config/a29k/rtems.h, config/arm/rtems-elf.h,
4470         config/c4x/rtems.h, config/h8300/rtems.h, config/i386/rtems.h,
4471         config/i386/rtemself.h, config/i960/rtems.h, config/m68k/rtems.h,
4472         config/m68k/rtemself.h, config/mips/rtems.h, config/mips/rtems64.h,
4473         config/pa/rtems.h, config/rs6000/rtems.h, config/sh/rtems.h,
4474         config/sh/rtemself.h, config/sparc/rtems.h, config/sparc/rtemself.h,
4475         config/v850/rtems.h (*-rtems*): Cleanup pass to move common
4476         definitions to config/rtems.h and make the targets more similar.
4478 Fri Apr 12 08:06:54 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4480         * expr.c (expand_assigment): Remove duplicate conversions #ifdef
4481         POINTERS_EXTEND_UNSIGNED.
4482         (store_constructor, expand_expr, case COMPONENT_REF): Likewise.
4483         (store_expr): Use TYPE_MODE (sizetype), not ptr_mode.
4485         * emit-rtl.c (widen_memory_access): Don't do anything if MEMOFFSET
4486         not specified.
4488 Fri Apr 12 12:11:26 2002  J"orn Rennecke <joern.rennecke@superh.com>
4490         * sh.c (calc_live_regs, sh_pr_n_sets): Use of PR_MEDIA_REG / PR_REG
4491         depends on TARGET_SHMEDIA, not TARGET_SH5.
4493 2002-04-12  Hans-Peter Nilsson  <hp@bitrange.com>
4495         * function.c (fixup_var_refs_1) <SET, handling VAR in SET_SRC>:
4496         For paradoxical (subreg VAR), replace VAR, don't try the subreg.
4498 Fri Apr 12 10:51:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
4500         * sh.c (broken_move): Constant 0. / 1. load is OK if there is
4501         no r0 clobber.
4503 2002-04-12  Andreas Schwab  <schwab@suse.de>
4505         * config/ia64/ia64.h (EXTRA_SPECS): Fix missing backslash.
4507 2002-04-12  Richard Henderson  <rth@redhat.com>
4509         PR bootstrap/4191
4510         * config/d30v/d30v.h (INIT_SECTION_ASM_OP): Don't undef.
4512         * flow.c (mark_used_reg): Manage reg_cond_dead properly for
4513         modes spanning multiple hard regs.
4515         * recog.c (peephole2_optimize): Rebuild jump labels as needed.
4517 2002-04-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4519         * pa.c (pa_output_function_prologue): Don't accumulate the total
4520         number of code bytes when using TARGET_64BIT, or gas, SOM and not
4521         the portable runtime.
4522         (output_deferred_plabels): Handle 64bit plabels.
4523         (output_cbranch): Use $PIC_pcrel$0 for pc relative relocations when
4524         generating pic code using the GAS assembler for object formats that
4525         are not SOM (ie., ELF32 and ELF64).
4526         (output_millicode_call): Check attribute type if attribute length is 28.
4527         Likewise use $PIC_pcrel$0.  Only call get_attr_length and
4528         dbr_sequence_length once.
4529         (output_call): Likewise use $PIC_pcrel$0, and call get_attr_length and
4530         dbr_sequence_length once.
4531         * pa.h (TARGET_SOM): Define if not defined.
4532         * pa.md (pattern to load address of label): Likewise use $PIC_pcrel$0
4533         with GAS and not SOM.
4534         (jump, call_internal_reg, call_value_internal_reg): Likewise.
4535         * som.h (OBJ_SOM): Rename to TARGET_SOM.  Undefine before defining.
4537 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4539         * config/freebsd.h (NO_IMPLICIT_EXTERN_C, SCCS_DIRECTIVE): Give value.
4540         (DEFAULT_PCC_STRUCT_RETURN) Do not redefine.
4541         (USER_LABEL_PREFIX, HANDLE_SYSV_PRAGMA, IDENT_ASM_OP,
4542         DWARF2_DEBUGGING_INFO, DBX_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):
4543         elfos.h and dbxelf.h values are fine now.
4544         * config/i386/freebsd.h, config/alpha/freebsd.h
4545         (DEFAULT_PCC_STRUCT_RETURN): Define to 0.
4547 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4549         * config/ia64/aix.h (CPP_PREDEFINES): Do not define _LP64/__LP64__
4550         or set Acpu or Amachine.  Reformat.
4551         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4552         define.
4553         (LINK_SPEC): Do not need to undef.
4554         * config/ia64/elf.h (ASM_EXTRA_SPEC): Define.
4555         * config/ia64/freebsd.h (LINK_SPEC): Do not need to undef.
4556         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4557         define.
4558         * config/ia64/hpux.h (ASM_EXTRA_SPEC): Define.
4559         (ASM_SPEC): Do not define, use ASM_EXTRA_SPEC instead.
4560         (LINK_SPEC): Do not need to undef.
4561         (DONT_USE_BUILTIN_SETJMP): Do not define.
4562         * config/ia64/ia64.h (ASM_SPEC, ASM_EXTRA_SPEC): Add.
4563         (CPP_CPU_SPEC): Define _LP64, set Acpu and Amachine.  Remove -Dia64.
4564         (DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Define.
4565         Remove trailing spaces.
4566         * config/ia64/linux.h (CPP_PREDEFINES): Do not define _LP64/__LP64__,
4567         __ELF__, or set Acpu or Amachine.  Reformat.
4568         (ASM_SPEC, DONT_USE_BUILTIN_SETJMP, PROFILE_BEFORE_PROLOGUE): Do not
4569         define.
4571 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4573         * config.gcc (ia64-*-freebsd*): Fix ordering of tm_files to match
4574         all other *-*-freebsd* targets.
4576 2002-04-11  Richard Henderson  <rth@redhat.com>
4578         * config.gcc (alpha*-*-linux*ecoff): Detect and reject.
4580 2002-04-11  David O'Brien  <obrien@FreeBSD.org>
4582         * config.gcc (alpha*-*-openbsd, alpha64-dec-*vms,alpha*-dec-*vms):
4583         Include {cpu}/{cpu}.h thru tm_file.
4584         (alpha*-*-linux*ecoff): Remove target.
4585         * config/alpha/elf.h (CPP_SUBTARGET_SPEC): Define __ELF__.
4586         (LINK_SPEC): Remove, is not OS independent.
4587         * config/alpha/freebsd.h (CPP_SPEC): Do not define __ELF__.
4588         (LINK_SPEC): Do not need to #undef any longer.
4589         * config/alpha/linux-ecoff.h (LINK_SPEC): Do not need to #undef
4590         any longer.
4591         * config/alpha/linux-elf.h (SUB_CPP_PREDEFINES): Do not define
4592         __ELF__.
4593         (LINK_SPEC): Moved here from alpha/elf.h.
4594         * config/alpha/linux.h (CPP_PREDEFINES): No longer consumer of
4595         SUB_CPP_PREDEFINES.
4596         * config/alpha/linux-ecoff.h: Remove.
4597         * config/alpha/netbsd.h (CPP_PREDEFINES): Do not define __ELF__.
4598         (CPP_SPEC): Define _POSIX_SOURCE as needed.
4599         (CPP_SUBTARGET_SPEC): Do not define.
4600         (LINK_SPEC): Do not need to #undef any longer.
4601         * config/alpha/openbsd.h: Do not directly include alpha/alpha.h.
4602         * config/alpha/vms.h: Likewise.
4604 2002-04-11  Richard Sandiford  <rsandifo@redhat.com>
4606         * doc/extend.texi: Remove old claim that typedefs cannot have
4607         an alignment attribute.
4609 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4611         PR optimization/6177
4612         * expr.c (expand_expr) [COMPONENT_REF]: Handle op0 CONCAT if
4613         bitpos is 0 and bitsize CONCAT size.
4615 2002-04-11  Jakub Jelinek  <jakub@redhat.com>
4617         PR c/6223
4618         * combine.c (if_then_else_cond): Use trunc_int_for_mode on nz.
4620 2002-04-10  David O'Brien  <obrien@FreeBSD.org>
4622         * config/alpha/freebsd.h: Minor reformatting.
4623         (CPP_SPEC): Define ELF and add cpp_subtarget.
4624         (ASM_SPEC): No longer needed.
4626 2002-04-11  Richard Henderson  <rth@redhat.com>
4628         * config/sparc/sparc.md (movdi_insn_sp32): Add o/J alternative.
4629         (movdi_insn_sp32_v9): Likewise.  Only allow stx with aligned memory.
4630         (dimode mem/zero splitter): New.
4632 2002-04-11  Hans-Peter Nilsson  <hp@axis.com>
4634         * config/cris/cris.c (cris_override_options): Tweak error message
4635         for PIC not implemented.
4637         * config/cris/cris.h: Tweak comments related to parameter-passing.
4639         * t-cris (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc here.
4641 2002-04-10  Richard Henderson  <rth@redhat.com>
4643         * except.c (add_ehl_entry): Allow duplicates after landing pad
4644         creation.
4646 2002-04-10  David Edelsohn  <edelsohn@gnu.org>
4648         * config/rs6000/t-aix43 (SHLIB_NM_FLAGS): Add -X32_64.
4650 2002-04-10  Toon Moene  <toon@moene.indiv.nluug.nl>
4652         * c-decl.c (c_init_decl_processing): Move generation of
4653         decls for g77_integer_type_node and friends from here ...
4654         * c-common.c (c_common_nodes_and_builtins): ... to here.
4656 2002-04-10  Ulrich Weigand  <uweigand@de.ibm.com>
4658         * reload1.c (choose_reload_regs): HARD_FRAME_POINTER_REGNUM
4659         is only used as frame pointer when frame_pointer_needed is true.
4661 2002-04-10  Richard Earnshaw  <rearnsha@arm.com>
4663         PR target/817
4664         * arm.md (arm_movdi): Adjust neg_pool_range attribute to allow
4665         for the fact that the pool entry uses two words.
4666         (movdf_hard_insn): Similarly.  Also, ADR instruction can span
4667         1k bytes.
4668         (movdf_soft_insn): Similarly.
4669         (movxf_hard_insn): Adjust neg_pool_range attribute to allow
4670         for the fact that the pool entry uses three words.
4672 2002-04-10  Richard Sandiford  <rsandifo@redhat.com>
4674         * config/mips/mips.c (mips_va_arg): When using the struct version
4675         of the EABI va_list, allow arguments in the register save area to
4676         take up less room than a stack argument.
4678 2002-04-10  Richard Henderson  <rth@redhat.com>
4680         * expr.c (expand_expr) [INTEGER_CST]: Don't force into registers
4681         if EXPAND_INITIALIZER.
4683 2002-04-09  Richard Henderson  <rth@redhat.com>
4685         * config/alpha/alpha.md (movdi_er_maybe_g): New.
4686         * config/alpha/alpha.c (alpha_expand_mov): Use it.
4688 2002-04-10  Alan Modra  <amodra@bigpond.net.au>
4690         PR optimization/6233
4691         * rtlanal.c (pure_call_p): New function.
4692         * rtl.h (pure_call_p): Declare.
4693         * loop.c (prescan_loop): Use it to set has_nonconst_call.
4694         * gcse.c (store_killed_in_insn): Use pure_call_p here too.
4696 2002-04-09  Eric Christopher  <echristo@redhat.com>
4698         * config/mips/mips.h (ASM_OUTPUT_ALIGNED_DECL_COMMON): Add additional
4699         information to .comm directive.
4701 2002-04-09  Richard Henderson  <rth@redhat.com>
4703         PR c/5078
4704         * expr.c (expand_expr) [INTEGER_CST]: Force overflows into registers.
4706 2002-04-09  Richard Henderson  <rth@redhat.com>
4708         * basic-block.h (flow_delete_block_noexpunge): Declare.
4709         (expunge_block_nocompact): Declare.
4710         * cfg.c (expunge_block_nocompact): Split out from ...
4711         (expunge_block): ... here.
4712         * cfgrtl.c (can_delete_label_p): Don't use exception_handler_labels.
4713         (flow_delete_block_noexpunge): Split out from ...
4714         (flow_delete_block): ... here.
4715         * cfgcleanup.c (delete_unreachable_blocks): Compact while
4716         removing dead blocks.
4717         * except.c (exception_handler_labels): Remove.
4718         (exception_handler_label_map): New.
4719         (struct eh_region): Add aka member.
4720         (mark_ehl_map_entry, mark_ehl_map, free_region): New.
4721         (ehl_hash, ehl_eq, ehl_free, add_ehl_entry): New.
4722         (for_each_eh_label, for_each_eh_label_1): New.
4723         (init_eh): Register exception_handler_label_map.
4724         (free_eh_status): Use free_region.
4725         (find_exception_handler_labels): Use the map, not the list.
4726         (remove_exception_handler_label): Likewise.
4727         (maybe_remove_eh_handler): Likewise.
4728         (remove_eh_handler): Use the region aka bitmap.
4729         * except.h (exception_handler_labels): Remove.
4730         (for_each_eh_label): Declare.
4731         * jump.c (rebuild_jump_labels): Don't check exception_handler_labels.
4732         * loop.c (invalidate_loops_containing_label): New.
4733         (find_and_verify_loops): Use it.  Use for_each_eh_label.
4734         * sched-rgn.c (is_cfg_nonregular): Use
4735         current_function_has_exception_handlers.
4737 2002-04-09  Richard Henderson  <rth@redhat.com>
4739         * sbitmap.c (sbitmap_union_of_diff, sbitmap_a_and_b, sbitmap_a_xor_b,
4740         sbitmap_a_or_b, sbitmap_a_or_b_and_c, sbitmap_a_and_b_or_c):
4741         Do not return changed status.
4742         (sbitmap_union_of_diff_cg, sbitmap_a_and_b_cg, sbitmap_a_xor_b_cg,
4743         sbitmap_a_or_b_cg, sbitmap_a_or_b_and_c_cg, sbitmap_a_and_b_or_c_cg):
4744         New functions that do return changed status.
4745         * sbitmap.h: Update decls.
4746         * gcse.c, lcm.c: Use _cg functions as needed.
4748 Tue Apr  9 19:15:57 2002  J"orn Rennecke <joern.rennecke@superh.com>
4750         * config.gcc (sh-*-elf*): Use sh/embed-elf.h instead of sh/elf.h.
4751         (sh64-*-elf*, sh-*-rtemself*): Likewise.
4752         * config/sh/embed_bb.c: New file.
4753         * config/sh/embed-elf.h: New file.
4754         * sh.h (CPP_SPEC): Supply __SIZE_TYPE__ and __PTRDIFF_TYPE__
4755         if -m[12345]* option is given.  Don't use subtarget_cpp_ptr_spec.
4756         (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4757         __PTRDIFF_TYPE__ .
4758         (SUBTARGET_CPP_PTR_SPEC): Don't define.
4759         (EXTRA_SPECS): Remove subtarget_cpp_ptr_spec.
4760         Add subtarget_asm_endian_spec.
4761         (ASM_SPEC): Use subtarget_asm_endian_spec.
4762         (SUBTARGET_ASM_ENDIAN_SPEC): Define.
4763         (RETURN_ADDR_RTX): Use PR_MEDIA_REG for TARGET_SH5.
4764         (WCHAR_UNSIGNED): Define.
4765         (SH_ELF_WCHAR_TYPE, SH_DBX_REGISTER_NUMBER): Define.
4766         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4767         (ALLOCATE_INITIAL_VALUE): Use PR_MEDIA_REG for TARGET_SH5.
4768         Fix value.
4769         * sh.c (calc_live_regs): Use PR_MEDIA_REG for TARGET_SH5.
4770         (sh_adjust_cost): Likewise.
4771         sh64.h (CPP_DEFAULT_CPU_SPEC): Add settings for __SIZE_TYPE__ and
4772         __PTRDIFF_TYPE__ .
4773         (SUBTARGET_CPP_PTR_SPEC, WCHAR_TYPE): Don't #undef/ #define.
4774         (WCHAR_TYPE_SIZE): Likewise.
4775         (ASM_SPEC): Use subtarget_asm_endian_spec.
4776         (SH_ELF_WCHAR_TYPE): #undef/ #define.
4777         (MAX_WCHAR_TYPE_SIZE): Don't #undef.
4778         * config/sh/elf.h (WCHAR_UNSIGNED): #undef .
4779         (MAX_WCHAR_TYPE_SIZE): Don't #define .
4780         (WCHAR_TYPE, WCHAR_TYPE_SIZE): #undef / #define .
4781         (USER_LABEL_PREFIX): Don't #undef /#define .
4782         (DBX_REGISTER_NUMBER): Use SH_DBX_REGISTER_NUMBER.
4783         * config/elf/linux.h (USER_LABEL_PREFIX): Don't #undef /#define .
4784         (SIZE_TYPE, PTRDIFF_TYPE, WCHAR_TYPE, WCHAR_TYPE_SIZE): Likewise.
4785         (ASM_SPEC): Likewise.
4786         (SUBTARGET_ASM_ENDIAN_SPEC): #undef / #define .
4787         (CC1_SPEC): don't supply -m3 for -m4*, -m5*.
4788         * t-sh: (LIB1ASMFUNCS): Use LIB1ASMFUNCS_CACHE.
4789         (LIB2FUNCS_EXTRA): Define.
4790         * t-sh64 (LIB2FUNCS_EXTRA): Define.
4791         * config/sh/t-linux (LIB1ASMFUNCS): Don't redefine.
4792         (LIB1ASMFUNCS_CACHE): Define.
4793         (LIB2FUNCS_EXTRA): Redefine empty.
4795 2002-04-08  Richard Henderson  <rth@redhat.com>
4797         * reorg.c (get_branch_condition): Use reversed_comparison_code.
4799 2002-04-09  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
4801         * config/m68hc11/larith.asm (__map_data_section): Fix condition
4802         and optimize for size.
4803         (__do_global_ctors): Fix pointer comparison.
4804         (__do_global_dtors): Likewise.
4806 2002-04-09  David S. Miller  <davem@redhat.com>
4808         * config/sparc/sparc.c (sparc_extra_constraint_check): New
4809         function, implementing EXTRA_CONSTRAINTS.  For memory constraints,
4810         allow reloading pseudos.
4811         * config/sparc/sparc.h (EXTRA_CONSTRAINTS): Use it.
4812         * config/sparc/sparc-protos.h: Declare it.
4814         * config/sparc/sparc.c (const64_is_2insns): Kill signed vs.
4815         unsigned comparison warning.
4816         (output_restore_regs): Mark leaf_function as unused.
4818 Tue Apr  9 09:35:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4820         * expr.c (is_aligning_offset): New function.
4821         (expand_expr, case COMPONENT_EXPR): Call it.
4823 2002-04-08  David S. Miller  <davem@redhat.com>
4825         PR target/6082
4826         * config/sparc/freebsd.h (SPARC_DEFAULT_CMODEL): Set to CM_MEDLOW
4828         Make init_priority work on Sparc when using GNU ld.
4829         * config/sparc/linux.h, config/sparc/linux64.h,
4830         config/sparc/netbsd-elf.h, config/sparc/freebsd.h
4831         (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Undefine.
4832         * config/sparc/sol2-gld.h: New file to do the same.
4833         * config.gcc (sparc*-*-solaris2*): If gnu_ld=yes add
4834         sparc/sol2-gld.h to tm_file.
4836         PR optimization/4328
4837         * config/sparc/sparc.h (EXTRA_CONSTRAINT): Add new constraint 'W'.
4838         * doc/md.texi: Document it.
4839         * config/sparc/sparc.md (movdi_insn_sp64_novis,
4840         movdi_insn_sp64_vis, movdf_insn_sp32, movdf_insn_v9only_novis,
4841         movdf_insn_v9only_vis, movdf_insn_sp64_novis,
4842         movdf_insn_sp64_vis): Use it as MEM constraing with 'e' registers.
4843         * config/sparc/sparc.c (mem_min_alignment): Fix comment.
4845 2002-04-08  Andreas Jaeger  <aj@suse.de>
4847         * stmt.c (expand_asm_operands): Revert last patch from Richard
4848         Henderson.
4850 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4852         * doc/contrib.texi (Contributors): Add John David Anglin and Loren
4853         J. Rittle (the latter also to Testers).  Update David O'Brien's entry.
4855 2002-04-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4857         * doc/contrib.texi (Contributors): Add David O'Brien.
4859 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
4861         * configure.in (auto-build.h): Use target_alias and build_alias
4862         when running configure.
4863         (gcc_cv_as, gcc_cv_ld): Search install paths when build != host too.
4864         (gcc_cv_nm, gcc_cv_objdump): Set for build != host too.
4865         * configure: Regenerate.
4867 2002-04-07  David S. Miller  <davem@redhat.com>
4869         * config.gcc (sparc64-*-linux*): Add t-crtfm to tmake_file.
4871 2002-04-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4873         PR 5933
4874         * pa.h (ASM_OUTPUT_MI_THUNK): Use indirect jump to target function when
4875         generating 32-bit pic code.
4877 2002-04-06  Jason Thorpe  <thorpej@wasabisystems.com>
4879         * cppinit.c (cpp_create_reader): Initialize
4880         discard_comments_in_macro_exp.
4881         (COMMAND_LINE_OPTIONS): Add "-CC" option.
4882         (cpp_handle_option): Handle "-CC" option.
4883         * cpplex.c (save_comment): If saving a C++ comment in
4884         a directive, convert it to a C comment.
4885         (_cpp_lex_direct): Pass second comment start character to
4886         save_comment to indicate comment type.
4887         * cpplib.c (_cpp_handle_directive): If processing
4888         a "#define" directive and discard_comments_in_macro_exp
4889         is false,  re-enable saving of comments.
4890         (lex_macro_node): If discard_comments_in_macro_exp is false,
4891         discard any comments before the macro identifier.
4892         * cpplib.h (struct cpp_options): Add discard_comments_in_macro_exp
4893         member.
4894         * cppmacro.c (cpp_get_token): If expanding a macro while
4895         processing a directive, discard any comments we might encounter.
4896         (parse_params): If discard_comments_in_macro_exp is false,
4897         ignore comments in the macro parameter list.
4898         * gcc.c (cpp_unique_options): Add "-CC" option.
4899         (option_map): Map "--comments-in-macros" to "-CC".
4900         * doc/cppopts.texi: Document "-CC" option.
4901         * f/lang-specs.h: Add "-CC" option.
4902         * testsuite/gcc.dg/cpp/maccom1.c: New test.
4903         * testsuite/gcc.dg/cpp/maccom2.c: New test.
4904         * testsuite/gcc.dg/cpp/maccom3.c: New test.
4905         * testsuite/gcc.dg/cpp/maccom4.c: New test.
4906         * testsuite/gcc.dg/cpp/maccom5.c: New test.
4907         * testsuite/gcc.dg/cpp/maccom6.c: New test.
4909 2002-04-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4911         PR middle-end/6180
4912         * reorg.c (dbr_schedule): Don't reposition prologue and epilogue notes.
4914 2002-04-06  Mark Mitchell  <mark@codesourcery.com>
4916         PR c++/5571
4917         * stor-layout.c (layout_decl): Reset the RTL for the decl.
4919         PR opt/5120
4920         * sibcall.c (optimize_sibling_and_tail_recursive_call): Clear
4921         RTX_UNCHANGING_P for the functions arguments when a tail call
4922         is made.
4924 2002-04-06  Jason Merrill  <jason@redhat.com>
4926         * toplev.c (flag_no_inline, flag_really_no_inline): Default to 2.
4927         (parse_options_and_default_flags): Set them appropriately.
4928         * c-common.c (c_common_post_options): Don't set flag_really_no_inline.
4930 2002-04-06  Hans-Peter Nilsson  <hp@bitrange.com>
4932         * config/mmix/t-mmix (TARGET_LIBGCC2_CFLAGS): Don't -Dinhibit_libc
4933         here.
4935         * config/mmix/mmix.h (INITIAL_ELIMINATION_OFFSET): Remove spurious
4936         semicolon.
4938         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Variable-size
4939         types come in by-reference.  Fix typo in comment.
4941 2002-04-05  David S. Miller  <davem@redhat.com>
4943         * config/sparc/freebsd.h (ENDFILE_SPEC): Add crtfastmath bits.
4944         * config.gcc (sparc64-wrs-vxworks, sparc-*-chorusos,
4945         sparc-*-rtems*, sparclite-*-elf* sparc86x-*-elf*, sparc64-*-elf*,
4946         {sparc64,ultrasparc}-*-freebsd*): Add sparc/t-crtfm to tmake_file.
4948 2002-04-05  David S. Miller  <davem@redhat.com>
4950         * config/sparc/sparc.c (sparc_nonflat_function_epilogue): If we
4951         are not going to emit return instructions, emit at least a nop
4952         for the sake of sane backtraces.
4954 2002-04-05  Richard Henderson  <rth@redhat.com>
4956         * doc/rtl.texi (Regs and Memory): Document (mem:BLK (scratch)).
4958 2002-04-05  Jakub Jeilnek  <jakub@redhat.com>
4960         * mklibgcc.in: Use $tmpmapfile, not tmp-$@.
4962 2002-04-05  Alexandre Oliva  <aoliva@redhat.com>
4964         * config/mips/mips.h (ISA_HAS_BRANCHLIKELY, ISA_HAS_CONDMOVE,
4965         ISA_HAS_FP4, ISA_HAS_MADD_MSUB, ISA_HAS_NMADD_NMSUB,
4966         ISA_HAS_CLZ_CLO, ISA_HAS_DCLZ_DCLO): Disable if TARGET_MIPS16.
4968 2002-04-05  Andreas Schwab  <schwab@suse.de>
4970         * c-convert.c: Include c-common.h.
4971         * Makefile.in (c-convert.o): Updated.
4973 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
4975         * mklibgcc.in: Use separate libgcc.map for each multilib.
4976         * Makefile.in (distclean): Don't remove libgcc.map here.
4978 2002-04-05  Jakub Jelinek  <jakub@redhat.com>
4980         * Makefile.in (s-mlib): Handle --disable-multilib by separate
4981         genmultilib invocation.
4983 2002-04-04  Richard Sandiford  <rsandifo@redhat.com>
4985         * config/mips/mips.h (CUMULATIVE_ARGS): Rename fp_regs to num_fprs
4986         to avoid clash with Irix header file sys/ucontext.h.  Rename gp_regs
4987         to num_gprs for symmetry.
4988         * config/mips/mips.c: Adjust accordingly.
4990 2002-04-04  Neil Booth  <neil@daikokuya.demon.co.uk>
4992         * c-common.c (truthvalue_conversion): Rename, update.
4993         * c-common.h (c_common_truthvalue_conversion): New.
4994         * c-convert.c (convert): Update.
4995         * c-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
4996         * c-parse.in (expr_no_commas, if_prefix, select_or_iter_stmt): Update.
4997         * c-typeck.c (build_binary_op, build_unary_op,
4998         build_conditional_expr): Update.
4999         * fold-const.c (constant_boolean_node, fold): Use langhook.
5000         * langhooks-def.h (LANGHOOK_INITIALIZER): Update.
5001         * langhooks.h (struct lang_hooks): New hook.
5002         * stmt.c (expand_decl_cleanup): Use langhook.
5003         * tree.h (truthvalue_conversion): Remove.
5004 objc:
5005         * objc-lang.c (LANG_HOOKS_TRUTHVALUE_CONVERSION): Redefine.
5007 2002-04-05  Alan Modra  <amodra@bigpond.net.au>
5009         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Add crtsavres.o
5010         Add rules to make null object file.
5012 2002-04-04  Jim Blandy  <jimb@redhat.com>
5014         * cppmacro.c (cpp_macro_definition): Do not emit spaces after
5015         macro formal parameter names.
5017 2002-04-04  David S. Miller  <davem@redhat.com>
5019         * calls.c (store_one_arg): If ECF_SIBCALL, use tail_call_reg.
5021 2002-04-04  Richard Henderson  <rth@redhat.com>
5023         PR middle-end/5099
5024         * stmt.c (expand_asm_operands): Validate outputs vs asm_operand_ok.
5025         Support copies into and out of memory.  Don't accept allows_reg
5026         and allows_mem as gospel.
5028 2002-04-04  Richard Henderson  <rth@redhat.com>
5030         PR opt/6165
5031         * alias.c (true_dependence): Force (mem:blk (scratch)) to conflict.
5032         (write_dependence_p): Likewise.
5034 2002-04-04  Richard Henderson  <rth@redhat.com>
5036         * predict.c (estimate_bb_frequencies): Do frequency calculation
5037         with a volatile temporary.
5039 2002-04-04  Ulrich Weigand  <uweigand@de.ibm.com>
5041         * config/s390/linux.h (LOCAL_LABEL_PREFIX): Define.
5043 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5045         PR c++/6119
5046         * final.c (final_start_function): Don't bump profile_label_no here...
5047         (final_end_function): ...but here.
5049 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5051         * config/sparc/sparc.md (pic): New attribute.
5052         (do_builtin_setjmp_setup): Save %fp, %i7 and %l7 for TARGET_V9
5053         into stack slots.
5054         (split after do_builtin_setjmp_setup): New.
5056 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5058         PR fortran/6106
5059         * config/sparc/sparc.h (MIN_UNITS_PER_WORD): Backout 2001-01-01
5060         change.
5062 2002-04-04  Jakub Jelinek  <jakub@redhat.com>
5064         * config/sparc/sparc.c (sparc_va_arg): Adjust va_list by
5065         UNITS_PER_WORD for zero sized aggregates.
5067 2002-04-03  David S. Miller  <davem@redhat.com>
5069         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): No need for a new
5070         one-character spec for this, just use %(link_gcc_c_sequence).
5072 2002-04-03  David S. Miller  <davem@redhat.com>
5074         * config/sparc/crtfastmath.c (FPRS_NS): Delete bogus little-endian
5075         handling.
5077 2002-04-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5079         * pa-linux.h (INCOMING_RETURN_ADDR_RTX): Move.
5080         (DWARF_FRAME_RETURN_COLUMN): Move.
5081         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5082         (ASM_MAYBE_OUTPUT_ENCODED_ADDR_RTX): Define.
5083         * pa.c (except.h, predict.h): Include.
5084         (FRP): Delete.
5085         (store_reg_modify, set_reg_plus_d): Revise prototypes.
5086         (output_ascii): Add cast.
5087         (store_reg_modify): Revise to add frame notes.
5088         (set_reg_plus_d): Likewise.
5089         (compute_frame_size): Include space for eh data registers in frame if
5090         the current function calls eh_return.
5091         (hppa_expand_prologue):  Ensure register %r2 is saved if the current
5092         function calls eh_return.  Save eh data registers if the current
5093         function calls eh_return.  Fix code to add frame notes.  Emit
5094         blockage to prevent insns with frame notes being scheduled in the
5095         delay slot of calls.
5096         (hppa_expand_epilogue): Restore eh data registers and do final stack
5097         adjustment if the current function calls eh_return.  Don't add frame
5098         notes.
5099         (output_call): Revise for change in length of call insn.  Don't do
5100         return pointer adjustment for an unconditional jump in the delay slot
5101         of a call when using frame notes.
5102         * pa.h (EH_RETURN_DATA_REGNO): Revise for TARGET_64BIT compatibility.
5103         (EH_RETURN_HANDLER_RTX): Use saved value on stack.
5104         (ARG_POINTER_CFA_OFFSET): Define.
5105         * pa.md (return_external_pic): New pattern.
5106         (prologue): Correct formatting.  Use return_external_pic if current
5107         function calls eh_return.
5108         (call_internal_symref, call_value_internal_symref,
5109         sibcall_internal_symref, sibcall_value_internal_symref): Change default
5110         lengths of short, long non-pic, and long pic calls to 8, 68, and 84,
5111         respectively.
5112         (exception_receiver): Use hppa_pic_save_rtx () to restore pic register.
5114         * configure.in ("assembler dwarf2 debug_line support"): Add hppa*-*-* to
5115         list of targets to check using "nop" insn.
5116         * configure: Rebuilt.
5118 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
5120         * config/rs6000/t-linux64 (EXTRA_MULTILIB_PARTS): Define.
5122 2002-04-03  David S. Miller  <davem@redhat.com>
5124         * gcc.c (LINK_GCC_C_SEQUENCE_SPEC): New spec to override the gcc/c
5125         library sequence passed to the linker.
5126         (LINK_COMMAND_SPEC): Use it.
5127         * doc/tm.texi: Document it, and mention from LINK_COMMAND_SPEC as
5128         a macro a target can use to avoid overriding LINK_COMMAND_SPEC.
5129         * config/sparc/sparc.h (LINK_GCC_C_SEQUENCE_SPEC): Define.
5131 2002-04-03  Jason Merrill  <jason@redhat.com>
5133         * except.c (struct eh_status): Remove protect_list.
5134         (begin_protect_partials, end_protect_partials): Remove.
5135         (add_partial_entry): Remove.
5136         * except.h: Remove prototypes.
5138         * expr.c (expand_expr) [WITH_CLEANUP_EXPR, TARGET_EXPR]: Use
5139         expand_decl_cleanup_eh.
5141         PR c++/5636
5142         * tree.h (CLEANUP_EH_ONLY): New macro.
5143         * stmt.c (expand_decl_cleanup_eh): New fn.
5144         (expand_cleanups): Check CLEANUP_EH_ONLY.
5145         * c-semantics.c (genrtl_decl_cleanup): Just take the CLEANUP_STMT.
5146         Use expand_decl_cleanup_eh.
5147         (expand_stmt): Adjust.
5148         * c-common.h: Adjust prototype.
5150 2002-04-04  Hans-Peter Nilsson  <hp@axis.com>
5152         * config/cris/cris.c (cris_target_asm_function_prologue): Cast
5153         uses of PIC_OFFSET_TABLE_REGNUM to int to silence warnings.
5154         (cris_target_asm_function_epilogue): Ditto.
5155         (cris_initial_frame_pointer_offset): Ditto.
5156         (cris_simple_epilogue): Ditto.
5157         (cris_expand_builtin_va_arg): Variable-size types come in
5158         by-reference.
5160 2002-04-03  David S. Miller  <davem@redhat.com>
5162         * config/sparc/crtfastmath.c (FPRS_NS): Get it right for
5163         little-endian.
5164         (set_fast_math): Correct 'fsr' type.
5166 2002-04-03  Richard Henderson  <rth@redhat.com>
5168         PR opt/3569
5169         * langhooks.h (lang_hooks.decls.warn_unused_global): New.
5170         * toplev.c (check_global_declarations): Use it.
5171         * langhooks-def.h (lhd_warn_unused_global_decl): Declare.
5172         (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5173         (LANG_HOOKS_DECLS): Add it.
5174         * langhooks.c (lhd_warn_unused_global_decl): New.
5175         * c-decl.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5176         * c-objc-common.c (c_warn_unused_global_decl): New.
5177         * c-tree.h (c_warn_unused_global_decl): Declare.
5178         * objc/objc-lang.c (LANG_HOOKS_WARN_UNUSED_GLOBAL_DECL): New.
5180 2002-04-03  Neil Booth  <neil@daikokuya.demon.co.uk>
5182         * langhooks-def.h (lhd_set_decl_assembler_name,
5183         LANG_HOOKS_SET_DECL_ASSEMBLER_NAME): New.
5184         (LANG_HOOKS_INITIALIZER): Update.
5185         * langhooks.c (lhd_set_decl_assembler_name): New, from tree.c
5186         * langhooks.h (struct lang_hooks): New hook.
5187         * tree.c (set_decl_assembler_name): Move to langhooks.c.
5188         (lang_set_decl_assembler_name): Remove.
5189         (init_obstacks): Don't set hook.
5190         (decl_assembler_name): New function.
5191         * tree.h (DECL_ASSEMBLER_NAME): Turn into a function call.
5192         (decl_assembler_name): New.
5193         (lang_set_decl_assembler_name): Remove.
5195 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5197         * configure.in (HAVE_SPARC_UA_PCREL_HIDDEN): Test whether %r_disp32()
5198         works properly with .hidden symbols.
5199         * configure: Rebuilt.
5200         * config.in: Rebuilt.
5201         * config/sparc/sparc.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
5202         DW_EH_PE_absptr for flag_pic && GLOBAL if %r_disp32() doesn't work
5203         properly with .hidden symbols.
5205 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
5207         PR middle-end/6102
5208         * df.c (df_insn_refs_record): Use XEXP not SET_DEST to access
5209         USE argument.
5211 2002-04-03  Richard Henderson  <rth@redhat.com>
5213         PR opt/4120
5214         * sched-rgn.c (sets_likely_spilled): New.
5215         (sets_likely_spilled_1): New.
5216         (add_branch_dependences): Use it.
5218 2002-04-02  Richard Henderson  <rth@redhat.com>
5220         PR opt/4311
5221         * loop.h (LOOP_FIRST_PASS): New.
5222         * loop.c (strength_reduce): Mind it when deciding to unroll.
5223         * toplev.c (rest_of_compilation): Set it.
5225 2002-04-02  David S. Miller  <davem@redhat.com>
5227         * config/sparc/sparc.md (ldd peephole2s): Fix final arg to
5228         mems_ok_for_ldd_peep when the order of the loads being examined
5229         is reversed.
5230         * config/sparc/sparc.c (mems_ok_for_ldd_peep): Expand upon
5231         existing comment to increase comprehension of this situation.
5233 2002-04-02  Zack Weinberg  <zack@codesourcery.com>
5235         * config/sh/sh.md: Don't use union real_extract.
5237 2002-04-02  Richard Henderson  <rth@redhat.com>
5239         * libgcc2.c (__bb_exit_func): Revert 03-31 change.
5241 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
5243         * config.gcc (i386-dg-dgux, i386-go32-msdos , i386-go32-rtems,
5244         i386-ibm-aix, i386-moss-msdos, i386-ncr-sysv4, i386-next-,
5245         i386-pc-msdosdjgpp, i386-sequent-bsd, i386-sequent-ptx1,
5246         i386-sequent-ptx2, i386-sequent-ptx4, i386-sun-sunos,
5247         i386-wrs-vxworks, i386-*-aout, i386-*-beoself, i386-*-bsd,
5248         i386-*-bsdi, i386-*-chorusos, i386-*-coff, i386-*-elf,
5249         i386-*-freebsd5, i386-*-freebsd-aout, i386-*-gnu, i386-*-interix,
5250         i386-*-interix3, i386-*-isc, i386-*-linux, i386-*-linuxaout,
5251         i386-*-linuxoldld, i386-*-lynxos, i386-*-mach, i386-*-mingw32,
5252         i386-*-netbsd, i386-*-netbsdelf, i386-*-netware, i386-*-openbsd,
5253         i386-*-osf1, i386-*-osfrose, i386-*-pe , i386-*-rtems,
5254         i386-*-rtemscoff, i386-*-sco3.2v5, i386-*-solaris2, i386-*-sysv,
5255         i386-*-sysv4, i386-*-sysv5, i386-*-udk, i386-*-uwin, i386-*-vsta,
5256         i386-*-win32, x86_64-*-freebsd5, x86_64-*-linux, x86_64-*-netbsd):
5257         Include as many configury headers via tm_file as possible.  This
5258         includes among others i386/unix.h, i386/bsd.h, i386/gas.h.
5259         * config/openbsd-oldgas.h: New file.
5260         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/att.h,
5261         config/i386/bsd.h, config/i386/djgpp.h, config/i386/freebsd-aout.h,
5262         config/i386/gas.h, config/i386/gstabs.h, config/i386/i386-aout.h,
5263         config/i386/i386-coff.h, config/i386/i386-interix.h,
5264         config/i386/iscdbx.h, config/i386/linux-aout.h,
5265         config/i386/linux-oldld.h, config/i386/lynx-ng.h, config/i386/lynx.h,
5266         config/i386/mach.h, config/i386/netbsd.h, config/i386/next.h,
5267         config/i386/openbsd.h, config/i386/osfelf.h, config/i386/osfrose.h,
5268         config/i386/sco5.h, config/i386/seq-gas.h, config/i386/seq-sysv3.h,
5269         config/i386/seq2-sysv3.h, config/i386/sequent.h, config/i386/sun.h,
5270         config/i386/sun386.h, config/i386/svr3dbx.h, config/i386/svr3gas.h,
5271         config/i386/sysv3.h, config/i386/uwin.h, config/i386/vsta.h,
5272         config/i386/vxi386.h: Do not directly include configury headers.
5273         * config/i386/cygwin.h, config/i386/djgpp.h, config/i386/win32.h:
5274         Directly include configury headers that are no longer automatically
5275         included by the above headers.
5276         * config/i386/att.h, config/i386/bsd.h (TARGET_VERSION): Do not define.
5277         * config/i386/386bsd.h, config/i386/aix386ng.h, config/i386/cygwin.h,
5278         config/i386/djgpp.h, config/i386/i386-aout.h, config/i386/i386-coff.h,
5279         config/i386/lynx-ng.h, config/i386/lynx.h, config/i386/mach.h,
5280         config/i386/netbsd.h, config/i386/openbsd.h, config/i386/rtems.h,
5281         config/i386/seq-sysv3.h, config/i386/sequent.h, config/i386/svr3gas.h,
5282         config/i386/sysv3.h, config/i386/vsta.h, config/i386/vxi386.h
5283         (TARGET_VERSION): Define.
5284         * config/i386/beos-elf.h, config/i386/freebsd.h,
5285         config/i386/i386-interix.h, config/i386/i386elf.h, config/i386/linux.h,
5286         config/i386/linux64.h, config/i386/netbsd-elf.h, config/i386/netbsd64.h,
5287         config/i386/osfelf.h, config/i386/osfrose.h, config/i386/ptx4-i.h,
5288         config/i386/sco5.h, config/i386/sysv4.h
5289         (TARGET_VERSION): Do not need to protect.
5290         * config/i386/freebsd64.h (TARGET_VERSION): Fix style.
5291         * config/i386/386bsd.h, config/i386/cygwin.h, config/i386/djgpp.h,
5292         config/i386/freebsd-aout.h, config/i386/i386-aout.h,
5293         config/i386/i386-interix.h, config/i386/linux-aout.h,
5294         config/i386/linux-oldld.h, config/i386/mach.h, config/i386/netbsd.h,
5295         config/i386/openbsd.h, config/i386/vsta.h, config/i386/win32.h
5296         (YES_UNDERSCORES): Do not define - not needed.
5297         * config/i386/bsd.h, config/i386/gas.h (LPREFIX,
5298         ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5299         USER_LABEL_PREFIX): Do not handle the "NO_UNDERSCORES" case.
5300         * config/i386/i386-coff.h, config/i386/lynx.h, config/i386/lynx-ng.h
5301         (LPREFIX, ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_INTERNAL_LABEL,
5302         USER_LABEL_PREFIX): Define. (handles the "NO_UNDERSCORES" case)
5303         * config/i386/isc.h: Preserve comment from config/i386/isccoff.h.
5304         * config/i386/isccoff.h, config/i386/v3gas.h: Remove.
5306 2002-04-02  Eric Botcazou  <ebotcazou@multimania.com>
5307             Richard Henderson  <rth@redhat.com>
5309         PR c/5484
5310         * function.c (assign_temp): Accept either type or decl argument.
5311         Detect variables whose size is too large to fit into an integer.
5312         * stmt.c (expand_decl): Pass the decl, not the type.
5314 2002-04-02  David O'Brien  <obrien@FreeBSD.org>
5316         * protoize.c: Match include directory usage with cppdefault.c.
5318 2002-04-03  Jeffrey A Law  (law@redhat.com)
5319             Hans-Peter Nilsson  <hp@bitrange.com>
5321         * combine.c (simplify_comparison): Avoid narrowing a comparison
5322         with a paradoxical subreg when doing so would drop signficant bits.
5324 2002-04-02  Steve Ellcey  <sje@cup.hp.com>
5326         * builtins.c (expand_builtin_prefetch): Force op0 pointer to Pmode
5327         if POINTERS_EXTEND_UNSIGNED is defined.
5329 2002-04-02  Richard Henderson  <rth@redhat.com>
5331         PR opt/3967
5332         * local-alloc.c (contains_replace_regs): LO_SUM may contain
5333         replace regs.
5335 2002-04-02  Richard Henderson  <rth@redhat.com>
5337         * doc/standards.texi: Document required freestanding libc entry points.
5339 2002-04-02  Alan Modra  <amodra@bigpond.net.au>
5341         * config/rs6000/rs6000.md (ctrdi*): Add FPR constraint and
5342         associated splitter.  Remove MQ constraint.
5343         (ctrdi_internal4): Correct CCmode clobber.
5345 2002-04-02  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5347         * milli64.S ($$dyncall): New function.
5348         * t-linux (LIB1ASMFUNCS): Revise module list.
5349         (LIB1ASMSRC): Use pa/milli64.S.
5351 2002-04-02  Richard Henderson  <rth@redhat.com>
5353         * fixinc/inclhack.def (AAB_solaris_sys_varargs_h): Move and
5354         rename solaris_sys_varargs_h.
5356 Tue Apr  2 06:47:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5358         * stor-layout.c (layout_type, case ARRAY_TYPE): Give one-element array
5359         the same mode as its component.
5361 2002-04-02  Richard Henderson  <rth@redhat.com>
5363         PR opt/190
5364         * final.c (this_is_asm_operands): Export.
5365         * output.h (this_is_asm_operands): Declare.
5366         * config/i386/i386.c (print_operand): Error odd asm operands.
5368 2002-04-02  Richard Henderson  <rth@redhat.com>
5370         PR opt/420
5371         * config/m68k/m68k.md (dbcc peepholes): Match four forms of dbra.
5373 2002-04-01  Richard Henderson  <rth@redhat.com>
5375         PR target/1538
5376         * fixinc/inclhack.def (solaris_sys_varargs_h): New.
5377         * fixinc/fixincl.x: Rebuild.
5379 2002-04-01  Richard Henderson  <rth@redhat.com>
5381         * config/ia64/unwind-ia64.c: Include ia64intrin.h.
5382         (atomic_alloc, atomic_free): New.
5383         (SIZE, MASK_FOR, PTR_IN): New.
5384         (emergency_reg_state, emergency_reg_state_free): New.
5385         (emergency_labeled_state, emergency_labeled_state_free): New.
5386         (reg_state_alloced, labeled_state_alloced): New.
5387         (alloc_reg_state, free_reg_state): New.
5388         (alloc_label_state, free_label_state, free_label_states): New.
5389         (push, pop, dup_state_stack, free_state_stack): Use them.
5390         (desc_label_state): Likewise.
5391         (uw_frame_state_for): Free label states and state stack.
5392         (uw_update_reg_address): Eliminate warnings.
5394 2002-04-01  Vladimir Makarov  <vmakarov@redhat.com>
5396         * config/pa/pa-pro-end.h (ASM_OUTPUT_ALIGNED_COMMON,
5397         ASM_OUTPUT_ALIGNED_LOCAL): Redefine them.
5399 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5401         * c-decl.c (grokdeclarator): Update.
5402         * c-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5403         * c-tree.h (c_mark_addressable): New.
5404         * c-typeck.c (default_function_array_conversion, build_unary_op,
5405         build_array_ref, convert_for_assignment): Update.
5406         (mark_addressable): Rename.
5407         * calls.c (try_to_integrate, expand_call): Use langhook.
5408         * expr.c (expand_expr): Use langhook.
5409         * langhooks-def.h (LANG_HOOKS_INITIALIZER): Update.
5410         * langhooks.h (struct lang_hooks): New hook.
5411         * stmt.c (expand_asm_operands): Use langhook.
5412         * tree.h (mark_addressable): Remove.
5413 objc:
5414         * objc-lang.c (LANG_HOOKS_MARK_ADDRESSABLE): Redefine.
5416 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
5418         * config/xtensa/xtensa.c (xtensa_va_arg): Fix compiler warning
5419         in previous change.
5421 2002-04-01  Bob Wilson  <bob.wilson@acm.org>
5423         * config/xtensa/xtensa.c (xtensa_va_arg): Fix to handle arguments
5424         for which MUST_PASS_IN_STACK is true (e.g., variable-sized types).
5426 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5428         * c-common.c (unsigned_conversion_warning, convert_and_check,
5429         unsigned_type, signed_type, shorten_compare,
5430         c_common_get_alias_set, c_common_nodes_and_builtins): Use new hooks.
5431         (unsigned_type, signed_type, signed_or_unsigned_type): Rename.
5432         * c-common.h (unsigned_type, signed_type, signed_or_unsigned_type):
5433         New.
5434         * c-decl.c (grokdeclarator): Update.
5435         * c-format.c (check_format_types): Update.
5436         * c-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5437         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5438         * c-typeck.c (build_binary_op, convert_for_assignment): Update.
5439         * convert.c (convert_to_integer): Use new hooks.
5440         * expmed.c (make_tree): Use new hooks.
5441         * expr.c (store_expr): Use new hooks.
5442         * fold-const.c (operand_equal_for_comparison_p, build_range_check,
5443         all_ones_mask_p, unextend, fold): Use new hooks.
5444         * langhooks.h (struct lang_hooks_for_types): New hooks.
5445         * tree.h (signed_or_unsigned_type, signed_type,
5446         unsigned_type): Remove.
5447 objc:
5448         * objc-lang.c (LANG_HOOKS_SIGNED_TYPE, LANG_HOOKS_UNSIGNED_TYPE,
5449         LANG_HOOKS_SIGNED_OR_UNSIGNED_TYPE): New.
5451 2002-03-31  Richard Henderson  <rth@redhat.com>
5453         * config/ia64/unwind-ia64.c (alloc_spill_area): Fix offset.
5454         (desc_frgr_mem): Fix reference to f16-f31.
5456 2002-03-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5458         * rtl.h (RTL_CHECK1, RTL_CHECK2, RTL_CHECKC1, RTL_CHECKC2,
5459         RTVEC_ELT): Const-ify.
5460         * varray.h (VARRAY_CHECK): Const-ify.
5461         * ggc.h (ggc_mark_rtx, ggc_mark_tree, ggc_mark_nonnull_tree,
5462         ggc_mark_rtvec, ggc_mark): Const-ify.
5464 2002-04-01  Neil Booth  <neil@daikokuya.demon.co.uk>
5466         * diagnostic.c: Include langhooks-def.h.
5467         * Makefile.in (diagnostic.o): Update.
5469 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
5471         * c-common.c (c_unsafe_for_reeval): Rename.
5472         * c-common.h (c_unsafe_for_reeval): Rename.
5473         * c-decl.c (finish_incomplete_decl): Rename.
5474         (c_init_decl_processing): Don't set langhook.
5475         * c-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5476         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5477         * c-objc-common.c (c_objc_common_init): Don't set langhook.
5478         * c-tree.h (finish_incomplete_decl): Rename.
5479         * langhooks-def.h (lhd_unsafe_for_reeval): New.
5480         (LANG_HOOKS_FINISH_INCOMPLETE_DECL, LANG_HOOKS_UNSAFE_FOR_REEVAL): New.
5481         (LANG_HOOKS_INITIALIZER): Update.
5482         * langhooks.c (lhd_unsafe_For_reeval): New.
5483         * langhooks.h (struct langhooks): New hooks.
5484         * toplev.c (incomplete_decl_finalize_hook): Remove.
5485         (wrapup_global_declarations): Update.
5486         * tree.c (lang_unsafe_for_reeval): Remove.
5487         (unsafe_for_reeval): Update.
5488         * tree.h (lang_unsafe_for_reeval, incomplete_decl_finalize_hook):
5489         Remove.
5490 objc:
5491         * objc-lang.c (LANG_HOOKS_FINISH_INCOMPLETE_DECL,
5492         LANG_HOOKS_UNSAFE_FOR_REEVAL): Redefine.
5494 2002-03-31  Neil Booth  <neil@daikokuya.demon.co.uk>
5496         * diagnostic.c (print_error_function): Remove.
5497         (default_print_error_function): Rename.
5498         (report_error_function): Update.
5499         * diagnostic.h (print_error_function): Remove.
5500         (default_print_error_function): Remove.
5501         * langhooks-def.h (struct diagnostic_context): Predeclare.
5502         (lhd_print_error_function, LANG_HOOKS_PRINT_ERROR_FUNCTION): New.
5503         (LANG_HOOKS_INITIALIZER): Update.
5504         * langhooks.h (struct diagnostic context): Predeclare.
5505         (struct lang_hooks): New hook.
5507 2002-03-31  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5509         * config/rs6000/rs6000.h (RS6000_PIC_OFFSET_TABLE_REGNUM): New.
5510         (PIC_OFFSET_TABLE_REGNUM): Use it and return INVALID_REGNUM if
5511         !flag_pic.
5512         (CONDITIONAL_REGISTER_USAGE): Adjust accordingly.
5513         * config/rs6000/rs6000.h: Use RS6000_PIC_OFFSET_TABLE_REGNUM instead
5514         of PIC_OFFSET_TABLE_REGNUM thruout.
5515         * config/rs6000/rs6000.md: Likewise.
5516         * config/rs6000/darwin.h: Likewise.
5518 Sun Mar 31 14:43:24 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5520         * emit-rtl.c (adjust_address_1, offset_address): Cast value to
5521         unsigned HOST_WIDE_INT, not unsigned int.
5523 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5525         PR middle-end/6096, middle-end/6098, middle-end/6099
5526         * reorg.c (emit_delay_sequence): Only increment LABEL_NUSES for
5527         CODE_LABELs.
5528         (fill_slots_from_thread): Likewise.
5530 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5532         * config/sparc/sparc.c (function_arg_record_value_1): Pass complex
5533         floating fields in float regs.
5534         (function_arg_record_value_2): Likewise.
5536 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
5538         * config/mmix/mmix.md (define_constants): Remove misleading
5539         FIXME.  Add MMIX_fp_rO_OFFSET.
5540         ("nonlocal_goto_receiver"): Don't have stack-frame address of
5541         saved rO as part of the pattern.  Remove FIXME.
5542         ("*nonlocal_goto_receiver_expanded"): Similar.  Generate address
5543         here, at output-time.
5545 2002-03-31  Jakub Jelinek  <jakub@redhat.com>
5547         PR middle-end/6100
5548         * config/sparc/sparc.c (output_cbranch): Use REG_BR_PROB, not
5549         REG_BR_PRED.
5550         (output_v9branch): Likewise.
5552 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
5554         * gcc.c: Revert previous patch for now.
5555         * config/i386/djgpp.h: Likewise.
5557 2002-03-31  Hans-Peter Nilsson  <hp@bitrange.com>
5559         * config/mmix/crti.asm (_init): Register _fini with atexit.
5560         * config/mmix/crtn.asm (_fini): Add omitted "POP 0,0".
5562 2002-03-31  Richard Henderson  <rth@redhat.com>
5564         PR target/3997
5565         * config/alpha/elf.h (ASM_OUTPUT_DEF): Tidy.
5566         (ASM_OUTPUT_DEF_FROM_DECLS): New.
5568 2002-03-31  Richard Henderson  <rth@redhat.com>
5570         * libgcc2.c (__bb_exit_func): Make static.
5572         * config/alpha/alpha.md (trap): New.
5574 2002-03-31  Richard Henderson  <rth@redhat.com>
5576         * builtins.c (expand_builtin_va_arg): Give warnings not errors for
5577         promoted argument types; build trap.
5578         (expand_builtin_trap): New.
5579         (expand_builtin): Use it.
5580         * stmt.c (expand_nl_goto_receivers): Likewise.
5581         * expr.h (expand_builtin_trap): Declare.
5582         * libfuncs.h (LTI_abort, abort_libfunc): New.
5583         * optabs.c (init_optabs): Init abort_libfunc.
5585 2002-03-31  Alexandre Oliva  <aoliva@redhat.com>
5587         * gcc.c (LIBGCC_SPEC): Folded %L and duplicate %G here...
5588         (LINK_COMMAND_SPEC): ... from here.
5589         (init_gcc_specs): Duplicate it here too, omitting
5590         shared_name in the second copy.
5591         (init_spec): Test for duplicate
5592         * config/i386/djgpp.h (LINK_COMMAND_SPEC): Remove `%L %G'.
5594 2002-03-30  David S. Miller  <davem@redhat.com>
5596         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
5597         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Likewise.
5599 2002-03-30  Roger Sayle <roger@eyesopen.com>
5600             Richard Henderson  <rth@redhat.com>
5602         * regmove.c (combine_stack_adjustments_for_block): Avoid
5603         emitting a stack adjustment of zero bytes.  Let delete_insn
5604         update bb->head.
5606 2002-03-30  Richard Henderson  <rth@redhat.com>
5608         * config/sparc/sparc.c: Remove all references to TARGET_EPILOGUE.
5609         (sparc_emitting_epilogue): New.
5610         (leaf_label, output_return, sparc_return_peephole_ok): Remove.
5611         * config/sparc/sparc-protos.h: Update.
5612         * config/sparc/sparc.h (MASK_EPILOGUE, TARGET_EPILOGUE): Remove.
5613         (TARGET_SWITCHES): Update.
5614         * config/sparc/sparc.md (return): Remove.
5615         (return_*): Use sparc_emitting_epilogue, not !TARGET_EPILOGUE.
5616         * config/sparc/freebsd.h, config/sparc/linux64.h, config/sparc/lite.h,
5617         config/sparc/liteelf.h, config/sparc/netbsd-elf.h,
5618         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
5619         config/sparc/sp64-aout.h, config/sparc/sp64-elf.h,
5620         config/sparc/sp86x-aout.h, config/sparc/sp86x-elf.h,
5621         config/sparc/splet.h, config/sparc/vxsparc64.h (TARGET_DEFAULT):
5622         Remove MASK_EPILOGUE.
5623         * doc/invoke.texi: Update.
5625 2002-03-30  Daniel Berlin  <dan@dberlin.org>
5627         * dwarf2out.c (dwarf2out_define): Remove start_source_file call,
5628         CPP will start the file for us.
5630 2002-03-30  Richard Henderson  <rth@redhat.com>
5632         PR target/5446
5633         * config/ia64/ia64.c (group_barrier_needed_p): Special case
5634         prologue_allocate_stack.
5635         (ia64_single_set): Use insn codes for recognition of special
5636         cases, not rtl matching.
5637         * config/ia64/ia64.md (prologue_allocate_stack): Op 3 is in-out.
5639 Sat Mar 30 23:48:41 CET 2002  Jan Hubicka  <jh@suse.cz>
5641         * cfgbuild.c (find_basic_blocks_1): Clear aux for blocks.
5643 2002-03-30  Richard Henderson  <rth@redhat.com>
5645         PR target/6032
5646         * config/sparc/sparc.h (OVERRIDE_OPTIONS): Don't override -fpic
5647         or -fomit-frame-pointer with profiling.
5648         (SUBTARGET_OVERRIDE_OPTIONS): Remove.
5649         (FUNCTION_PROFILER): Do nothing.
5650         (PROFILE_HOOK): New.
5651         * config/sparc/sparc.c (sparc_override_options): Don't check
5652         code models for profiling.
5653         (sparc_function_profiler): Remove.
5654         (sparc_profile_hook): New.
5655         * config/sparc/sparc-protos.h: Update.
5657 2002-03-30  Jakub Jelinek  <jakub@redhat.com>
5659         PR optimization/6086
5660         * combine.c (combine_simplify_rtx): If simplify_rtx failed because
5661         of SUBREG of volatile MEM or because the MEM was mode dependent,
5662         return CLOBBER instead of unmodified SUBREG.
5664 Sat Mar 30 14:08:55 CET 2002  Jan Hubicka  <jh@suse.cz>
5666         * local-alloc.c (local_alloc): Avoid call of update_equiv_regs
5667         when not optimizing.
5669         * toplev.c (rest_of_compilation): Cann mark_constant_function
5670         only when optimizing.
5672         * flow.c (calculate_global_regs_live): Ensure that all AUX fields
5673         are NULL.
5675         * cfgcleanup.c (bb_flags): Add BB_NONTHREADABLE_BLOCK.
5676         (thread_jump): Set BB_NONTHREADABLE_BLOCK, check it.
5677         (try_optimize_cfg): clear all AUX fields.
5679         * i386.c (aligned_operand): Be prepared for SUBREGed registers.
5680         (ix86_decompose_address): Use REG_P instead of GET_CODE (...) == REG.
5681         (ix86_address_cost): Be prepared for SUBREGed registers.
5682         (legitimate_address_p): Accept SUBREGed registers.
5684 2002-03-29  Richard Henderson  <rth@redhat.com>
5686         PR target/5672
5687         * expr.c (expand_expr): Pass along EXPAND_INITIALIZER one more place.
5689 2002-03-29  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5691         * config/rs6000/rs6000.c (rs6000_va_arg): Correctly set register count
5692         for aggregate and TFmode types.
5694 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
5696         * cfg.c (dump_flow_info): Guard against NULL regno_reg_rtx[i].
5698 2002-03-29  Richard Henderson  <rth@redhat.com>
5700         PR target/5886
5701         * config/ia64/aix.h (CPP_PREDEFINES): Add -D_LP64.
5702         * config/ia64/hpux.h, config/ia64/linux.h: Likewise.
5704 2002-03-29  Richard Henderson  <rth@redhat.com>
5706         PR target/6041
5707         * config/i386/i386.c (x86_arch_always_fancy_math_387): New.
5708         (override_options): Disable NO_FANCY_MATH_387 if the arch allows.
5709         * config/i386/i386.h (x86_arch_always_fancy_math_387): New.
5710         * config/i386/i386.md (sqrtxf2, sqrtextendsfxf2, sinxf2): Fix
5711         conditional.
5712         * docs/invoke.texi: Update -mno-fancy-math-387 docs.
5714 2002-03-29  Dale Johannesen <dalej@apple.com>
5716         * loop.c (combine_movables): Do allow combination of pseudos.
5718 2002-03-29  Loren J. Rittle  <ljrittle@acm.org>
5720         * config.gcc (*-*-freebsd*): Enable creation of libgcc_s.so.
5721         * config/t-slibgcc-elf-ver (SHLIB_LC): Add macro and use it.
5722         No functional change except ...
5723         * config/t-slibgcc-nolc-override (SHLIB_LC): Override it.  New file.
5724         * doc/install.texi (*-*-freebsd*): Document port configuration.
5726 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5728         * Makefile.in (convert.o, calls.o, expmed.o): Update.
5729         * attribs.c (handle_mode_attribute, handle_vector_size_attribute):
5730         Use new hooks.
5731         * builtin-types.def (BT_PTRMODE): Update.
5732         * c-common.c (type_for_size): Rename c_common_type_for_size.
5733         (type_for_mode): Similarly.
5734         (shorten_compare, pointer_int_sum, c_common_nodes_and_builtins):
5735         Use new hook.
5736         * c-bommon.h (c_common_type_for_size, c_common_type_for_mode): New.
5737         * c-decl.c (finish_enum, build_enumerator): Use new hooks.
5738         * c-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIZE):
5739         Redefine.
5740         * c-typeck.c (common_type, comptypes, default_conversion):
5741         Use new hooks.
5742         * calls.c: Include langhooks.h.
5743         (emit_library_call_value_1): Use new hooks.  Avoid redundant
5744         calls.
5745         * convert.c: Include langhooks.h
5746         (convert_to_pointer, convert_to_integer): Use new hooks.
5747         * except.c (init_eh): Similarly.
5748         * expmed.c: Include langhooks.h.
5749         (expand_mult_add): Use new hooks.
5750         * expr.c (store_expr, store_constructor, expand_expr, do_jump,
5751         try_casesi): Similarly.
5752         * fold-const.c (optimize_bit_field_compare, make_range,
5753         decode_field_reference, fold_truthop, fold): Similarly.
5754         * function.c (assign_stack_local_1, assign_stack_temp_for_type,
5755         put_var_into_stack): Similarly.
5756         * langhooks-def.h (LANG_HOOKS_TYPE_FOR_MODE,
5757         LANG_HOOKS_TYPE_FOR_SIZE): New.
5758         (LANG_HOOKS_TYPES_INITIALIZER): Update.
5759         * langhooks.h (lang_hooks_for_types): New hooks.
5760         * stmt.c (expand_decl_cleanup, emit_case_nodes): Use new hooks.
5761         * tree.c (get_unwidened, get_narrower): Similarly.
5762         * tree.h (type_for_mode, type_for_size): Remove.
5763         * varasm.c (force_const_mem): Use new hooks.
5764         * utils2.c (nonbinary_modular_operation): Update.
5765 objc:
5766         * objc-act.c (handle_impent): Update.
5767         * objc-lang.c (LANG_HOOKS_TYPE_FOR_MODE, LANG_HOOKS_TYPE_FOR_SIaZE):
5768         Redefine.
5770 2002-03-29  Steve Ellcey  <sje@cup.hp.com>
5772         * config/ia64/ia64.md (*ptr_extend_plus_1, *ptr_extend_plus_2): New.
5773         * config/ia64/ia64.c (basereg_operand): New.
5774         * config/ia64/ia64-protos.h (basereg_operand): Declare.
5775         * config/ia64/ia64.h (PREDICATE_CODES): Add basereg_operand.
5777 2002-03-29  Hans-Peter Nilsson  <hp@bitrange.com>
5779         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Correct
5780         unwind information when frame_pointer_needed.
5781         (mmix_assemble_integer): Tweak wording in comment.
5783 2002-03-29  Neil Booth  <neil@daikokuya.demon.co.uk>
5785         * Makefile.in (except.o): Update.
5786         * except.c: Include langhooks.h.
5787         (init_eh): Use langhook.
5788         * langhooks-def.h (LANG_HOOKS_MAKE_TYPE,
5789         LANG_HOOKS_FOR_TYPES_INITIALIZER): New.
5790         (LANG_HOOKS_INITIALIZER): Update.
5791         * langhooks.h (lang_hooks_for_types): New.
5792         (struct lang_hooks): Add it.
5793         * tree.c (make_lang_type_fn, make_lang_type): Remove.
5794         * tree.h (make_lang_type_fn, make_lang_type): Remove.
5795 config:
5796         * alpha/alpha.c: Include langhooks.h.
5797         (alpha_build_va_list): Use langhook.
5798         * d30v/d30v.c: Include langhooks.h.
5799         (d30v_build_va_list): Use langhook.
5800         * i386/i386.c: Include langhooks.h.
5801         (ix86_build_va_list): Use langhook.
5802         * rs6000/rs6000.c (rs6000_build_va_list): Use langhook.
5803         * s390/s390.c: Include langhooks.h.
5804         (s390_build_va_list): Use langhook.
5805         * stormy16/stormy16.c: Include langhooks.h.
5806         (stormy16_build_va_list): Use langhook.
5808 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5810         PR c++/5964
5811         * config/sparc/sparc.md (empty_delay_slot, branch_type): New
5812         attributes.
5813         (length): Compute variable length for branches/calls/jumps here.
5814         (branch, inverted_branch, normal_fp_branch, inverted_fp_branch,
5815         normal_fpe_branch, inverted_fpe_branch): Remove length attribute,
5816         define branch_type attribute.
5817         (divsi3_sp32): Maximum length is 6 not 7.
5818         (call_address_struct_value_sp32, call_symbolic_struct_value_sp32,
5819         call_address_untyped_struct_value_sp32,
5820         call_symbolic_untyped_struct_value_sp32): Set length to 3 not 2.
5821         * config/sparc/sparc.c (empty_delay_slot): New function.
5822         * config/sparc/sparc.h (ADJUST_INSN_LENGTH): Remove.
5823         * config/sparc/sparc-protos.h (empty_delay_slot): Add prototype.
5825 2002-03-29  Jakub Jelinek  <jakub@redhat.com>
5827         * combine.c (set_nonzero_bits_and_sign_copies): Don't call
5828         nonzero_bits if not needed.
5829         (nonzero_bits) [XOR]: Likewise.
5830         (nonzero_bits) [REG]: Use reg_last_set_nonzero_bits even if
5831         reg_last_set_mode and mode are both MODE_INT, but not equal.
5832         (record_value_for_reg): Compute reg_last_set_nonzero_bits
5833         in nonzero_bits_mode for MODE_INT modes.
5835 2002-03-28  Richard Henderson  <rth@redhat.com>
5837         PR target/5715
5838         * config/alpha/osf.h (ASM_SPEC): Don't pass any special options
5839         to GAS.  Correct drift between alternatives.
5841 2002-03-28  Richard Henderson  <rth@redhat.com>
5843         PR target/6087
5844         * reload1.c (fixup_abnormal_edges): Move insn to edge via sequence.
5846 2002-03-28  Alexandre Oliva  <aoliva@redhat.com>
5848         * config/i386/freebsd.h (LINK_SPEC): Don't pass default
5849         emulation to the linker.
5851 2002-03-28  Loren J. Rittle  <ljrittle@acm.org>
5853         * config/alpha/freebsd.h (LINK_SPEC): Likewise.
5854         * config/sparc/freebsd.h (LINK_SPEC): Likewise.
5856 Thu Mar 28 16:35:31 2002  Jeffrey A Law  (law@redhat.com)
5858         * combine.c (simplify_and_const_int): Make sure to apply mask
5859         when force_to_mode returns a constant integer.  PR3311.
5861 2002-03-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
5863         * pa-linux.h (LOCAL_LABEL_PREFIX): Define.
5865 2002-03-28  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
5867         * doc/invoke.texi (Warning Options): Refer to C++ Dialect Options
5868         and Objective-C Dialect Options.
5870 2002-03-28  Richard Henderson  <rth@redhat.com>
5872         * config/alpha/alpha.c (alpha_emit_conditional_branch): TFmode NE
5873         comparison should be done vs !=0 not >0 return code.  Tidy cases.
5875 2002-03-28  Richard Henderson  <rth@redhat.com>
5877         * c-decl.c (finish_function): New arg can_defer_p.  Pass it
5878         on to c_expand_body.
5879         * c-tree.h (finish_function): Update decl.
5880         * c-objc-common.c, c-parse.in, objc/objc-act.c: Update calls.
5882 Thu Mar 28 19:13:36 CET 2002  Jan Hubicka  <jh@suse.cz>
5884         * ifcvt.c (if_convert): Clear aux_for_blocks early enought.
5886 Thu Mar 28 13:21:53 CET 2002  Jan Hubicka  <jh@suse.cz>
5888         * rtlanal.c: Include flags.h
5889         (may_trap_p): Do not mark FP operations if trapping
5890         if !flag_trapping_math
5891         * Makefile.in (rtlanal.o): Add dependency on flag.h
5892         * ifcvt.c (noce_operand_ok): Avoid the lameness.
5894 2002-03-27  Zack Weinberg  <zack@codesourcery.com>
5896         * mips.md: Use dconst1, not 1.0, as first argument of
5897         REAL_VALUE_LDEXP.  Don't use union real_extract.
5899 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
5901         * configure.in (gcc_cv_as): Use $target_alias in directory searchs
5902         rather than $target.  Heed program_prefix and
5903         program_transform_name.  Search for gas in cross-compiler case too.
5904         "test -x" rather than "test -f".
5905         (gcc_cv_ld): Likewise.
5906         (gcc_cv_nm): Heed program_prefix and program_transform_name.
5907         (gcc_cv_objdump): Likewise.
5908         * configure: Regenerate.
5910 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5912         * Makefile.in (attribs.o): Update.
5913         * attribs.c: Include langhooks.h.
5914         (decl_attributes): Use langhook.
5915         * c-decl.c (insert_default_attributes): Rename.
5916         * c-tree.h (c_insert_default_attributes): New.
5917         * langhooks-def.h (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES):New.
5918         (LANG_HOOKS_INITIALIZER): Update.
5919         * langhooks.h (struct lang_hooks): New hook.
5920         * tree.h (insert_default_attributes): Remove.
5921 objc:
5922         * objc-lang.c (LANG_HOOKS_INSERT_DEFAULT_ATTRIBUTES): Redefine.
5924 2002-03-27  Andreas Schwab  <schwab@suse.de>
5926         * config/i386/i386.c (classify_argument): Also check for
5927         QUAL_UNION_TYPE.
5929 2002-03-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
5931         * doc/install.texi (alpha*-dec-osf*): Don't need --enable-libgcj
5932         any more.
5934 Wed Mar 27 23:19:30 CET 2002  Jan Hubicka  <jh@suse.cz>
5936         * i960.md (ret): Set PC.
5937         (nonlocal_goto): Fix expander.
5938         * builtins.c (epxand_builin_longjmp): Check that we've emitted
5939         some jump or call.
5941 Wed Mar 27 23:11:35 CET 2002  Jan Hubicka  <jh@suse.cz>
5943         * optabs.c (emit_no_conflict_block, emit_libcall_block): Avoid nesting
5944         of libcall regions.
5946 Wed Mar 27 22:54:14 CET 2002  Zdenek Dvorak <rakdver@atrey.karlin.mff.cuni.cz>
5948         * cfgrtl.c (merge_blocks_nomove): Use set_block_for_insn instead of
5949         assigning to BLOCK_FOR_INSN directly.
5951 Wed Mar 27 22:33:05 CET 2002  Jan Hubicka  <jh@suse.cz>
5953         * i386.c (ix86_output_addr_diff_elt): Remove binutils bug workaround.
5955 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5957         * c-common.c (c_expand_expr): Fix prototype.
5958         * c-common.h (c_expand_expr): Always declare, update.
5959         * c-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5960         * c-objc-common.c (c_objc_common_init): No global hook.
5961         * expr.c (expand_expr): Use langhook.
5962         * expr.h (enum expand_modifier): Conditionally declare.
5963         * langhooks-def.h (lhd_expand_expr, LANG_HOOKS_EXPAND_EXPR): New.
5964         (LANG_HOOKS_INITIALIZER): Update.
5965         * langhooks.c (lhd_expand_expr): New.
5966         * langhooks.h (struct lang_hooks): New hook.
5967         * toplev.c (lang_expand_expr_t, lang_expand_expr): Delete.
5968         (lang_independent_init): Don't default hook.
5969 objc:
5970         * objc-lang.c (LANG_HOOKS_EXPAND_EXPR): Redefine.
5972 2002-03-27  Richard Henderson  <rth@redhat.com>
5974         PR target/6054
5975         * config/ia64/ia64.c (ia64_expand_call): Use pic patterns for
5976         TARGET_CONST_GP.  Simplify conditions.
5978 2002-03-27  Richard Henderson  <rth@redhat.com>
5980         * config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
5981         config/sparc/netbsd-elf.h, config/sparc/pbd.h, config/sparc/sol2.h,
5982         config/sparc/vxsim.h (LOCAL_LABEL_PREFIX): Define.
5984 2002-03-27  Danny Smith  <dannysmith@users.sourceforge.net>
5986         * config/i386/cygwin.h (TARGET_DLL, TARGET_WIN32,
5987         TARGET_CYGWIN, TARGET_WINDOWS): Remove unused switches.
5988         (MASK_DLL, MASK_WIN32, MASK_CYGWIN, MASK_WINDOWS):
5989         Remove unnecessary masks.
5990         (MASK_NOP_FUN_DLLIMPORT): Use an unused an bit.
5991         (SUBTARGET_SWITCHES): Use empty masks for -mwin32, -mcygwin,
5992         -mwindows, -mdll switches and their negations.
5994 2002-03-27  Neil Booth  <neil@daikokuya.demon.co.uk>
5996         * gcc-common.c (lang_mark_false_label_stack): Remove.
5997         * ggc.h (lang_mark_false_label_stack): Similarly.
5999 2002-03-26  Vladimir Makarov  <vmakarov@redhat.com>
6001         * pa/pa-pro-end.h (CPP_PREDEFINES): Add -D__pro__.
6003         * pa/lib2funcs.asm: Don't use .SPACE and .SUBSPACE if __pro__
6004         or __rtems_ is defined.
6006 2002-03-26  Richard Henderson  <rth@redhat.com>
6008         * config/alpha/alpha.c (alpha_emit_set_const): Add a REG_EQUAL note
6009         if a non-trivial load was emitted.
6010         (alpha_emit_set_const_1): Remove obsolete extension.  Fix thinko
6011         in high+extra+low case.
6013 2002-03-26  Richard Henderson  <rth@redhat.com>
6015         * config.gcc (sparc*-solaris): Use float_format=sparc.
6017 2002-03-26  Richard Henderson  <rth@redhat.com>
6019         * config/sparc/sparc.h (MAX_WCHAR_TYPE_SIZE): Don't define.
6020         * config/sparc/linux-aout.h (MAX_WCHAR_TYPE_SIZE): Don't undef.
6021         * config/sparc/linux.h, config/sparc/linux64.h: Likewise.
6022         * config/sparc/sol2.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Redefine.
6023         (WINT_TYPE_SIZE): Fix at 32.
6025 2002-03-26  Richard Henderson  <rth@redhat.com>
6027         * toplev.c (rest_of_compilation): Delay emit_initial_value_sets
6028         until after eh landing pad generation.
6029         * config/alpha/alpha.c (alpha_gp_save_rtx): Use gen_mem_addressof.
6030         * config/alpha/alpha.md (exception_receiver_2): Only accept MEMs.
6032 2002-03-26  Richard Henderson  <rth@redhat.com>
6034         * expr.h (ADD_PARM_SIZE): One more convert for INC.
6036 2002-03-26  Phil Edwards  <pme@gcc.gnu.org>
6038         * gcc.c (cpp_options):  Preserve relative ordering of -pedantic
6039         and warning switches.
6040         (cc1_options):  Likewise.
6042 2002-03-26  Hans Boehm <Hans_Boehm@hp.com>
6044         * config/ia64/linux.h (MD_FALLBACK_FRAME_STATE_FOR):
6045         Restore more of the signal context.  Set no_reg_stack_frame.
6046         * config/ia64/unwind-ia64.c (unw_state_record):
6047         Add no_reg_stack_frame, comments.
6048         (uw_frame_state_for): Initialize when field to UNW_WHEN_NEVER.
6049         (uw_update_context): Adjust bsp when unwinding from leaf,
6050         but not signal frame.
6052 2002-03-26  David Edelsohn  <edelsohn@gnu.org>
6054         * config/rs6000/aix51.h (WCHAR_TYPE): Define.
6056 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
6058         * config/xtensa/xtensa.c (xtensa_va_arg): Handle variable-sized types.
6060 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
6062         PR target/5621
6063         * arm.md (define_asm_attributes): Reapply patch of Thu Sep 9, 1999:
6064         "Add a pool_range attribute", which was lost during the ARM/Thumb
6065         merge.
6067 2002-03-26  Bob Wilson  <bob.wilson@acm.org>
6069         * config/xtensa/xtensa.c (xtensa_valid_move): Allow move from
6070         a register into the MAC16 accumulator.
6072 2002-03-26  Andrew Cagney  <ac131313@redhat.com>
6074         * doc/invoke.texi (Option Summary): Mention -Wswitch-enum.
6075         (Warning Options): Document -Wswitch-enum.
6076         * toplev.c (W_options): Add -Wswitch-enum.  Update comment on
6077         -Wswitch.
6078         (warn_switch_enum): Define variables.
6079         * flags.h (warn_switch_enum): Declare variables.
6080         * stmt.c (expand_end_case_type): When warn_switch_enum /
6081         -Wswitch-enum, perform switch checks.
6082         Fix PR c/5044.
6084 2002-03-26  Richard Earnshaw  <rearnsha@arm.com>
6086         * arm.md (reload_mulsi3, reload_mulsi_compare0, reload_muladdsi)
6087         (reload_mulsi_compare0_scratch, reload_muladdsi_compare0)
6088         (reload_muladdsi_compare0_scratch): Delete.
6090 2002-03-26  Loren J. Rittle  <ljrittle@acm.org>
6092         * doc/install.texi (*-*-freebsd*): Update.
6094 2002-03-26  Richard Henderson  <rth@redhat.com>
6096         * expr.h (ADD_PARM_SIZE): Cast INC to ssizetype.
6097         (SUB_PARM_SIZE): Cast DEC to ssizetype.
6099         * config/alpha/alpha.c (alpha_va_arg): Read MUST_PASS_IN_STACK
6100         types from the normal argument frame.
6102         * config/sparc/sparc.c (function_arg_pass_by_reference): Pass
6103         variable sized objects by reference.
6104         (sparc_va_arg): Receive them by reference too.
6106 2002-03-26  Hartmut Penner  <hpenner@de.ibm.com>
6108         * config/s390/s390.c (s390_emit_epilogue): Change epilogue
6109         code to not restoring global registers.
6111 2002-03-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6113         * Makefile.in (ggc-common.o): Update.
6114         * c-decl.c (lang_mark_tree): Rename c_mark_tree.
6115         * c-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6116         * c-tree.h (c_mark_tree): New.
6117         * ggc-common.c: Include langhooks.h.
6118         (gcc_mark_trees): Use new langhook.
6119         * ggc-callbacks.c: Delete file.
6120         * ggc.h (lang_mark_tree): Remove.
6121         * langhooks-def.h (LANG_HOOKS_MARK_TREE): New.
6122         (LANG_HOOKS_INITIALIZER): Update.
6123         * langhooks.h (struct lang_hooks): New hook.
6124 objc:
6125         * objc-lang.c (LANG_HOOKS_MARK_TREE): Redefine.
6127 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
6129         * doc/cpp.texi: Exclude entire Top node from printed manual.
6130         Move option index after directive index.  Insert page breaks
6131         before GFDL and concept index.  Index environment variables
6132         with command line options.
6133         * doc/cppenv.texi: Use @vtable for environment variable list.
6134         Add paragraph explaining semantics of empty elements in path
6135         variables.  Exclude a cross-reference to Fishkill from the
6136         manpage.  Remove an unnecessary cross-reference of the entry
6137         right above the referer.  Don't use @anchor in text that goes
6138         into manpage.
6139         * doc/cppopts.texi: Cross-reference the environment variables
6140         section, not the specific environment variable, for consistency.
6142 2002-03-25  Richard Henderson  <rth@redhat.com>
6144         * recog.c (peephole2_optimize): Distribute EH_REGION -1 notes
6145         anywhere in the block.  Don't refer to insns that have been
6146         removed from the chain.  Iterate backward through the new insns.
6147         Don't refer to edges that have been removed.
6149 2002-03-26  Alan Modra  <amodra@bigpond.net.au>
6151         * combine.c (simplify_comparison <ASHIFTRT, LSHIFTRT>): Correct
6152         test for overflow of constant.
6154 2002-03-25  Richard Earnshaw  <rearnsha@arm.com>
6156         PR target/2623
6157         * arm.md (loadhi_preinc, loadhi_predec, loadhi_shiftpreinc)
6158         (loadhi_shiftpredec, loadhi-with-writeback peephole): Don't use
6159         these patterns on arm_archv4.
6161 2002-03-25  Danny Smith  <dannysmith@sourceforge.users.net>
6163         * config/i386/mingw32.h (WINT_TYPE): Define as "short unsigned
6164         int".
6166 2002-03-25  Zack Weinberg  <zack@codesourcery.com>
6168         * toplev.c: Don't include setjmp.h.  Kill float_handler_set,
6169         float_handled, float_handler, float_signal, set_float_handler,
6170         and do_float_handler.  Set handler for SIGFPE to crash_signal.
6171         * toplev.h: Don't prototype do_float_handler.
6173         * c-lex.c: Fold parse_float into lex_number.  Make warning
6174         about portability of hex float constants more informative, and
6175         don't issue it on top of a syntax error.
6176         * fold-const.c: Fold const_binop_1 and fold_convert_1 into
6177         their callers.
6178         * real.h: Define REAL_VALUE_ABS here...
6179         * simplify-rtx.c: ... not here.  Fold check_fold_consts,
6180         simplify_unary_real, simplify_binary_real, and
6181         simplify_binary_is2orm1 into their callers.
6182         * tree.c: Fold build_real_from_int_cst_1 into caller.
6184         * doc/tm.texi: Document REAL_VALUE_ABS and REAL_VALUE_NEGATIVE.
6186         * tsystem.h: Include float.h here...
6187         * libgcc2.c: ... not here.
6189 2002-03-25  Nick Clifton  <nickc@cambridge.redhat.com>
6191         Fixes for: PR bootstrap/3591, target/5676
6192         * config/mcore/mcore.h (CC1_SPEC): Define only if not already
6193         defined.  Do not disable exceptions or rtti.
6194         * config/mcore/mcore-pe.h (CC1_SPEC): Define before including
6195         mcore.h.  Disable exceptions and rtti, since they are not
6196         supported by EPOC.
6198 2002-03-25  Neil Booth  <neil@daikokuya.demon.co.uk>
6200         * c-decl.c (maybe_build_cleanup): Remove.
6201         * expr.c (expand_expr): Use langhook.
6202         * langhooks-def.h (lhd_return_null_tree,
6203         LANG_HOOKS_MAYBE_BUILD_CLEANUP): New.
6204         (LANGHOOKS_INITIALIZER): Update.
6205         * langhooks.c (lhd_return_null_tree): New.
6206         * langhooks.h (struct lang_hooks): New hook.
6207         * tree-inline.c (initialize_inlined_parameters): Use langhook.
6208         * tree.h (maybe_build_cleanup): Remove.
6210 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6212         * regrename.c (build_def_use): Move recog_memoized
6213         before extract_insn.
6215 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6217         PR target/6043
6218         * expr.c (emit_group_store): Handle storing into CONCAT.
6220 2002-03-25  Jakub Jelinek  <jakub@redhat.com>
6222         * regrename.c (build_def_use): Share RTL between MATCH_OPERATOR and
6223         corresponding MATCH_DUP.
6225 2002-03-24  Richard Henderson  <rth@redhat.com>
6227         * unroll.c (unroll_loop): Zero label_map.
6229         * gcse.c: Include except.h.
6230         * Makefile.in (gcse.o): Update.
6232 2002-03-24  Richard Henderson  <rth@redhat.com>
6234         * varasm.c (asm_emit_uninitialised): Revert 2002-03-14 change.
6235         Do resolve_unique_section before shared data clause.
6237 2002-03-24  Richard Henderson  <rth@redhat.com>
6239         * config/alpha/elf.h (STARTFILE_SPEC): Use crtbeginT with -static.
6241 2002-03-24  Richard Henderson  <rth@redhat.com>
6243         * recog.c (peephole2_optimize): Split blocks when EH insns are
6244         generated in the middle of a block.  Do global life update if
6245         zapped EH edges.
6247 2002-03-24  Richard Henderson  <rth@redhat.com>
6249         * mips.c (mips_function_value): Only promote_mode for non-libcalls.
6251 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6253         preprocessor/3951
6254         * gcc.c (cpp_options): Pass -MD through as -MD not -M -MF.
6255         * cppinit.c (cpp_handle_option): Set no_ouput if -MD or -MMD.
6256         (init_dependency_output): Don't make no_output decision here.
6258 2002-03-24  Andrew Cagney  <ac131313@redhat.com>
6260         * stmt.c (check_for_full_enumeration_handling): Remove tests of
6261         warn_switch.  Update description.
6262         (expand_end_case_type): Call check_for_full_enumeration_handling
6263         when warn_switch.
6265 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6267         * config/m68hc11/m68hc11.c (m68hc11_autoinc_compatible_p): New function.
6268         (m68hc11_split_move): Call it to see if the source and destination
6269         operands use the same direction auto inc/dec mode, otherwise make the
6270         source an offsetable memory operand and generate an add.
6272 2002-03-24  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6274         * config/m68hc11/m68hc11.md ("*subsi3_zero_extendhi"): Allow address
6275         register for operand 2.
6276         ("*subsi3_zero_extendqi"): Likewise.
6277         ("*iorhi3_gen"): Do the operation on the upper bits and then lower
6278         bits so that it is compatible with a pop.
6279         ("*andhi3_gen"): Likewise.
6280         ("xorhi3"): Likewise.
6282 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6284         * cppinit.c (cpp_handle_option): Set warn_endif_labels if
6285         -pedantic here...
6286         (cpp_post_options): ... not here.
6288 2002-03-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6289             Aldy Hernandez  <aldyh@redhat.com>
6291         Removal of separate preprocessor cpp0.
6293         * Makefile.in (GCC_PASSES, STAGESTUFF, LIBCPP_OBJS,
6294         cpp0, install-common): Update.
6295         * c-common.c (flag_preprocess_only): New.
6296         (c_common_init): Preprocess for -E.
6297         * c-common.h (flag_preprocess_only): New.
6298         * c-decl.c (c_decode_option): Handle -E and -std=c++98.
6299         * c-objc-common.c (c_init_decl_processing): Exit quickly
6300         for NULL return from c_common_init.
6301         * cpplib.h (cpp_preprocess_file): New.
6302         * cppmain.c (main, general_init, pfile, progname): Remove.
6303         (do_preprocessing): Rename cpp_preprocess_file, don't call
6304         cpp_finish.  Don't close stdout here.
6305         (setup_callbacks): Update prototype.
6306         * gcc.c (trad_capable_cpp, cpp_unique_options, default_compilers):
6307         Update.
6308         * tradcpp.c (main): Ignore -quiet.
6309 objc:
6310         * lang-specs.h (default_compilers): Preprocess with cc1obj.
6312 2002-03-24  Richard Henderson  <rth@redhat.com>
6314         PR optimization/5742
6315         * machmode.def: Add inner mode field to complex modes.
6316         * config/mips/mips.c (mips_function_value): Always define.  Add
6317         new argument to handle libcalls.
6318         * config/mips/mips.h (LIBCALL_VALUE): Use mips_function_value.
6319         (FUNCTION_VALUE): Likewise.
6320         * config/mips/abi64.h (FUNCTION_VALUE): Remove.
6321         * config/mips/mips-protos.h: Update.
6323 2002-03-23  Richard Henderson  <rth@redhat.com>
6325         * config/sparc/sparc.c (sparc_emit_floatunsdi): New.
6326         * config/sparc/sparc-protos.h: Update.
6327         * config/sparc/sparc.md (floatunsdisf2, floatunsdidf2): New.
6329 2002-03-23  Richard Henderson  <rth@redhat.com>
6331         * config/sparc/gmon-sol2.c (internal_mcount): Assume either
6332         _start or _init begins the text segment.
6334 2002-03-23  David Edelsohn  <edelsohn@gnu.org>
6336         * config/rs6000/rs6000.h (RETURN_IN_MEMORY):  Cast to HOST_WIDE_INT
6337         not HOST_WIDEST_INT.
6338         (RS6000_ARG_SIZE): Remove unsigned cast of int_size_in_bytes.
6340 2002-03-23  Richard Earnshaw  <rearnsha@arm.com>
6342         PR java/5489
6343         * arm.md (return, sibcall_epilogue): Pass const_true_rtx as the
6344         operand argument to output_return_instruction.
6345         * arm.c (arm_print_operand, case 'd'): If the operand is
6346         const_true_rtx then just return.
6347         (arm_print_operand, case 'D'): If the operand is const_true_rtx
6348         then abort.
6350 2002-03-23  Andrew Cagney  <ac131313@redhat.com>
6352         * doc/invoke.texi (Option Summary): Mention -Wswitch-default.
6353         (Warning Options): Document -Wswitch-default.
6354         * toplev.c (W_options): Add -Wswitch-default.  Update comment on
6355         -Wswitch.
6356         (warn_switch_default): Define variable.
6357         (warn_switch): Update comment.
6358         * flags.h (warn_switch_default): Declare variable.
6359         (warn_switch): Update comment.
6360         * stmt.c (expand_end_case): Check for and, when
6361         warn_switch_no_default, warn of a missing default case.
6363 2002-03-23  Alan Modra  <amodra@bigpond.net.au>
6365         * real.h (N): Special case 128 bit doubles.
6367         * combine.c (simplify_comparison): When widening modes, ignore
6368         sign extension on CONST_INTs.
6370 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
6372         * config/xtensa/xtensa.c (print_operand): Fix incorrect mode
6373         passed to adjust_address.  Fix comment formatting.
6376 2002-03-22  Zack Weinberg  <zack@codesourcery.com>
6378         * real.h: Don't define REAL_INFINITY or REAL_IS_NOT_DOUBLE.
6379         Always make REAL_VALUE_TYPE a struct containing an array of
6380         HOST_WIDE_INT, not a double.  Tidy up the code deciding how
6381         big it is.  Don't declare or use union real_extract.
6383         * emit-rtl.c (init_emit_once), varasm.c (immed_real_const_1,
6384         decode_rtx_const, output_constant_pool), config/a29k/a29k.c
6385         (print_operand), config/arm/arm.c (output_move_double),
6386         config/arm/arm.md (consttable_4, consttable_8),
6387         config/romp/romp.c (output_fpops), config/s390/s390.h
6388         (ASM_OUTPUT_SPECIAL_POOL_ENTRY), config/xtensa/xtensa.c
6389         (xtensa_output_literal): Don't use union real_extract.
6391         * config/dsp16xx/dsp16xx.c (print_operand), config/i860/i860.c
6392         (sfmode_constant_to_ulong), config/ns32k/merlin.h
6393         (PRINT_OPERAND), config/ns32k/ns32k.c (print_operand),
6394         config/pdp11/pdp11.h (PRINT_OPERAND), config/we32k/we32k.h
6395         (PRINT_OPERAND): Don't use local version of union
6396         real_extract.
6398         * config/convex/convex.c (check_float_value), config/vax/vax.c
6399         (vax_float_literal), config/m88k/m88k.md (divdf3),
6400         config/dsp16xx/dsp16xx.md (fixuns_trunchfhi2),
6401         config/pdp11/pdp11.c (output_move_quad): Don't do host
6402         arithmetic on target floating point quantities.
6404         * config/a29k/a29k.md, config/dsp16xx/dsp16xx.c
6405         (output_dsp16xx_float_const): Don't test HOST_FLOAT_FORMAT.
6407         * fold-const.c (fold), simplify-rtx.c (simplify_binary_real):
6408         Use MODE_HAS_INFINITIES rather than #ifdef REAL_INFINITY.
6410         * real.c (earith): Test INFINITY rather than REAL_INFINITY;
6411         NANS implies INFINITY, so can drop #ifdef NANS inside #ifndef
6412         INFINITY.
6413         * print-rtl.c (print_rtx): Disable code which needs
6414         floating-point emulator.
6415         * libgcc2.c: Include float.h and use DBL_MANT_DIG,
6416         FLT_MANT_DIG, to define DF_SIZE and SF_SIZE, rather than
6417         depending on HOST_FLOAT_FORMAT to be defined properly.
6419         * config/1750a/1750a.c (get_double, float_label): Delete.
6420         (print_operand): Delete huge commented-out chunk.  Use
6421         REAL_VALUE_TO_DECIMAL.
6422         * config/1750a/1750a-protos.h: Delete prototypes of deleted
6423         functions.
6424         * config/convex/convex.h: Always set TARGET_FLOAT_FORMAT to
6425         IEEE_FLOAT_FORMAT.
6426         * config/i370/i370.h (PRINT_OPERAND [TARGET_HLASM version]):
6427         Use REAL_VALUE_TO_DECIMAL as ELF version does.
6428         * config/m88k/m88k.c (real_power_of_2_operand,
6429         legitimize_operand): Take the REAL_VALUE_TYPE and/or union
6430         real_extract out of the union; run the input through
6431         REAL_VALUE_TO_TARGET_DOUBLE, then plug the pair of longwords
6432         from that into the union.
6433         * config/pdp11/pdp11.c (output_move_double): Rearrange
6434         parentheses to make automatic indenter happy.
6436         * doc/tm.texi (Cross-compilation): Rename node to "Floating
6437         Point" and rewrite to describe current situation.  Also adjust
6438         documentation of REAL_VALUE_TO_TARGET_SINGLE and friends to
6439         match code.
6440         * doc/rtl.texi: Adjust cross reference.
6442 2002-03-22  Bob Wilson  <bob.wilson@acm.org>
6444         * config/xtensa/xtensa-protos.h (non_acc_reg_operand): Remove.
6445         (xtensa_valid_move, xtensa_preferred_reload_class): Define.
6446         * config/xtensa/xtensa.c (non_acc_reg_operand): Remove.
6447         (xtensa_valid_move, xtensa_preferred_reload_class): Define to
6448         prevent use of sp as a reload register.
6449         (xtensa_emit_move_sequence): Use xtensa_valid_move instead of
6450         non_acc_reg_operand.
6451         * config/xtensa/xtensa.h (PREDICATE_CODES): Remove non_acc_reg_operand.
6452         (PREFERRED_RELOAD_CLASS): Move code to xtensa_preferred_reload_class.
6453         * config/xtensa/xtensa.md (movsi_internal, movhi_internal,
6454         movqi_internal): Use xtensa_valid_move instead of non_acc_reg_operand.
6456 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6458         * cpphash.h (struct cpp_reader): Remove mls_line and mls_col.
6459         * cpplex.c (unterminated): Delete.
6460         (parse_string): No string literal may extend over multiple
6461         lines.  Suppress the error when preprocessing assembly.
6462         * cppmain.c (scan_translation_unit): Strings are single-line.
6464         * doc/cpp.texi: Update to match.
6466 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
6468         PR optimization/5854
6469         * config/m68hc11/m68hc11.h (CONST_OK_FOR_LETTER_VALUE_P): Use K for 0.
6470         Shut up warnings.
6471         (CONST_DOUBLE_OK_FOR_LETTER_P): Use G for 0.0.
6472         (EXTRA_CONSTRAINT): Use S for non-push memory operand.
6473         * config/m68hc11/m68hc11.c (m68hc11_split_move): Handle setting from
6474         const0 if scratch register was not allocated.
6475         (m68hc11_reload_operands, m68hc11_gen_lowpart, m68hc11_gen_highpart,
6476         m68hc11_z_replacement): Replace gen_rtx (CONST_INT, VOIDmode, ...)
6477         with GEN_INT (...).
6478         (m68hc11_reorg): Compute BLOCK_FOR_INSN before reload_cse_regs.
6479         * config/m68hc11/m68hc11.md: Replace gen_rtx (CONST_INT, VOIDmode, ...)
6480         with GEN_INT (...) everywhere.  Remove constraints in define_split
6481         patterns.
6482         (movdi_internal, movdf_internal, movsi_internal, movsf_internal): Don't
6483         require scratch register for setting 0 into regs/non-pushable memory.
6485 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
6487         * config/mips/mips.h (MASK_RETURN_ADDR): Define.
6488         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define.
6490 2002-03-22  Phil Edwards  <pme@gcc.gnu.org>
6492         * cpplib.h (struct cpp_options):  New member, warn_endif_labels.
6493         * cppinit.c (cpp_create_reader):  On by default.
6494         (cpp_handle_option):  Handle -W[no-]endif-labels.
6495         (cpp_post_options):  Also enable if -pedantic.
6496         * cpplib.c (do_else):  Use it.
6497         (do_endif):  Likewise.
6498         * doc/cppopts.texi:  Document new option.
6499         * doc/invoke.texi:  Document new option.
6501 2002-03-22  Lars Brinkhoff  <lars@nocrew.org>
6503         * config/i386/i386.c, config/i386/i386.md: Change all occurences
6504         of GEN_INT (trunc_int_for_mode (...)) to gen_int_mode (...).
6506 2002-03-22  Alexandre Oliva  <aoliva@redhat.com>
6508         * flow.c (calculate_global_regs_live): Clear aux fields of
6509         ENTRY and EXIT.
6511 2002-03-22  Jakub Jelinek  <jakub@redhat.com>
6513         * config/v850/v850.c (v850_reorg): Only call alter_subreg on
6514         REG or MEM subregs, pass rtx * instead of rtx to it.
6515         * config/i860/i860.c (output_delayed_branch, output_delay_insn): Pass
6516         rtx * instead of rtx to alter_subreg.
6517         * config/m32r/m32r.c (gen_split_move_double): Likewise.
6518         * config/pj/pj.c (pj_output_rval): Likewise.
6520 2002-03-22  Richard Henderson  <rth@redhat.com>
6522         PR target/3177
6523         * config/ia64/ia64.h (CUMULATIVE_ARGS): Add int_regs.
6524         (INIT_CUMULATIVE_ARGS, INIT_CUMULATIVE_INCOMING_ARGS): Update.
6525         * config/ia64/ia64.c (ia64_function_arg_advance): Set int_regs.
6526         (ia64_expand_prologue): Look at int_regs, not words, for number
6527         of incomming int regs.
6529 2002-03-22  Andrew MacLeod  <amacleod@redhat.com>
6531         * expr.c (expand_expr): A RESULT_DECL is part of a call.
6533 Fri Mar 22 16:30:42 CET 2002  Jan Hubicka  <jh@suse.cz>
6535         * toplev.c (flag_loop_optimize, flag_crossjumping):
6536         New static variables.
6537         (rest_of_compilation): Conditionalize crossjumping and
6538         loop optimizer.
6539         (parse_options_and_default_flags): Default loop_optimize and
6540         crossjumping.
6541         (lang_independent_options): Add -fcrossjumping and -floop-optimize
6542         * invoke.texi (crossjumping, loop-optimize): Document.
6544 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6546         * real.c (eiisneg): Move outside #ifdef NANS.
6548 Fri Mar 22 12:08:36 CET 2002  Jan Hubicka  <jh@suse.cz>
6550         * cfgcleanup.c (outgoing_edges_math): Fix condition; relax
6551         frequencies match; avoid match on different loop depths.
6552         (try_crossjump_to_bb): Kill tests that no longer brings time
6553         savings.
6554         * cfgrtl.c (force_nonfallthru_and_redirect): Fix loop_depth
6555         updating code.
6556         (split_edge): Likewise.
6558         * flow.c (update_life_info_in_dirty_blocks): Fix uninitialized
6559         variable.
6561         * Makefile.in (cfgrtl): Add insn-config.h depenendency.
6562         * cfgrtl.c: Include insn-config.h
6563         (split_block) Dirtify block in presence of conditional execution
6565 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6567         * config/mips/abi64.h (SETUP_INCOMING_VARARGS): Undefine.
6568         * config/mips/mips-protos.h (mips_setup_incoming_varargs): Declare.
6569         (function_arg): Constify CUMULATIVE_ARGS.
6570         (function_arg_partial_nregs, function_arg_pass_by_reference): Likewise.
6571         * config/mips/mips.h (UNITS_PER_FPVALUE): Zero when TARGET_SOFT_FLOAT.
6572         (UNITS_PER_DOUBLE): New macro.
6573         (SETUP_INCOMING_VARARGS): Define.  Use mips_setup_incoming_varargs.
6574         (CUMULATIVE_ARGS): Reformat.  Remove num_adjusts workaround and
6575         last_arg_fp field.  Replace arg_words and fp_arg_words with gp_regs,
6576         fp_regs and stack_words.
6577         (EABI_FLOAT_VARARGS_P): New macro.
6578         * config/mips/mips.c (struct mips_arg_info): New.
6579         (mips_arg_info): New function.
6580         (function_arg_advance): Use it.  Add adjustment instructions here
6581         rather than in function_arg.
6582         (function_arg): Constify CUMULATIVE_ARGS.  Use mips_arg_info.  Check
6583         for VOIDmode at the beginning of the function.
6584         (function_partial_nregs): Constify CUMULATIVE_ARGS.  Use mips_arg_info.
6585         (function_arg_pass_by_reference): Likewise.
6586         (mips_setup_incoming_varags): New, largely based on old abi64.h code.
6587         (mips_build_va_list): Test EABI_FLOAT_VARARGS_P.
6588         (mips_va_start): Likewise.  Use the new stack_words field of
6589         CUMULATIVE_ARGS to set up overflow area.  Reformat.
6590         (mips_va_arg): Test EABI_FLOAT_VARARGS_P.  Unify EABI handling of
6591         doubles and other types, aligning the overflow pointer for non-doubles
6592         too.  Remove some code duplication.  Replace hard-coded constants.
6594 2002-03-22  Richard Sandiford  <rsandifo@redhat.com>
6596         * config/mips/mips.h (FUNCTION_ARG_REGNO_P): Simplify.
6597         (CLASS_UNITS): Undefine.
6598         (CLASS_MAX_NREGS): Use FP_INC.
6599         * config/mips/mips.c (compute_frame_size): Likewise.
6600         (override_options): Use FP_INC and UNITS_PER_FPVALUE.
6602 2002-03-22  Neil Booth  <neil@daikokuya.demon.co.uk>
6604         * cpplex.c (parse_identifier_slow): Rename parse_slow, adjust
6605         prototype, and handle lexing numbers and identifiers.
6606         (parse_identifier): Update to new form of parse_slow.
6607         (parse_number): Fast path only, use parse_slow otherwise.
6608         (_cpp_lex_direct): Update calls to parse_number.
6610 2002-03-21  DJ Delorie  <dj@redhat.com>
6612         * bb-reorder.c (make_reorder_chain_1): Protect against
6613         when redundant edges are omitted.
6614         * predict.c (dump_prediction): Likewise.
6616 2002-03-21  Richard Henderson  <rth@redhat.com>
6618         PR target/5996
6619         * fixinc/inclhack.def (solaris_stdio_tag): New.
6620         * fixinc/fixincl.x: Regenerate.
6622 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
6624         PR c/5597
6625         * c-typeck.c (process_init_element): Flag non-static
6626         initialization of a flexible array member as illegal.
6628 2002-03-22  Alan Modra  <amodra@bigpond.net.au>
6630         * config/rs6000/t-linux64: New.
6631         * config.gcc (powerpc64-*-linux* <tmake_file>): Drop t-ppcos and
6632         t-ppccomm.  Use t-rs6000 and t-linux64.
6633         (powerpc64-*-gnu* <tmake_file>): Likewise.
6634         * mklibgcc.in (SHLIB_MKMAP_OPTS): New variable.
6635         * mkmap-symver.awk (dotsyms): If set, output .foo as well as foo.
6636         * Makefile.in (SHLIB_MKMAP_OPTS): Pass to mklibgcc.
6638 2002-03-21  Aldy Hernandez  <aldyh@redhat.com>
6640         * langhooks.c (lhd_tree_inlining_cannot_inline_tree_fn): Check
6641         flag_really_no_inline instead of optimize == 0.
6643         * c-objc-common.c (c_cannot_inline_tree_fn): Same.
6645         * cp/tree.c (cp_cannot_inline_tree_fn): Same.
6647         * flags.h (flag_really_no_inline): New.
6649         * c-common.c (c_common_post_options): Initialize
6650         flag_really_no_inline.
6652         * toplev.c (flag_really_no_inline): New.
6654 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
6656         * config/avr/avr.md (length): Fix length computation for
6657         conditional branches.
6659 2002-03-21  Neil Booth  <neil@daikokuya.demon.co.uk>
6661         * Makefile.in (fold-const.o, stor-layout.o, stmt.o,
6662         sdbout.o, profile.o): Update.
6663         * c-common.c (c_common_nodes_and_builtins): Use pushdecl
6664         langhook.
6665         * c-common.h (gettags): Move here from tree.h.
6666         * c-tree.h (pushdecl, pushlevel, poplevel, set_block,
6667         insert_block, getdecls, kept_level_p, global_bindings_p): New.
6668         * dbxout.c (dbxout_init): Use getdecls langhook.
6669         * expr.c (expand_expr): Use insert_block langhook.
6670         * fold-const.c: Include langhooks.h.
6671         (fold_range_test, fold_binary_op_with_conditional_arg,
6672         fold): Use global_bindings_p langhook.
6673         * integrate.c (expand_inline_function): Use insert_block langhook.
6674         * langhooks-def.h (LANG_HOOKS_DECLS, LANG_HOOKS_PUSHLEVEL,
6675         LANG_HOOKS_POPLEVEL, LANG_HOOKS_GLOBAL_BINDINGS_P,
6676         LANG_HOOKS_INSERT_BLOCK, LANG_HOOKS_SET_BLOCK, LANG_HOOKS_PUSHDECL,
6677         LANG_HOOKS_GETDECLS): New.
6678         (LANG_HOOKS_INITIALIZER): Update.
6679         * langhooks.c (lhd_clear_binding_stack): Use global_bindings_p
6680         langhook.
6681         * langhooks.h (struct lang_hooks_for_decls): New.
6682         (struct lang_hooks): Update.
6683         * profile.c: Include langhooks.h.
6684         (output_func_start_profiler): Use new langhooks.
6685         * sdbout.c: Include langhooks.h.
6686         (sdbout_init, sdbout_finish): Use getdecls langhook.
6687         * stmt.c: Include langhooks.h.
6688         (expand_fixup, fixup_gotos): Use new langhooks.
6689         * stor-layout.c: Include langhooks.h.
6690         (variable_size): Use global_bindings_p langhook.
6691         * toplev.c (compile_file): Use getdecls langhook.
6692         * tree-inline.c (remap_block): Use insert_block langhook.
6693         * tree.h (pushdecl, pushlevel, poplevel, set_block, gettags,
6694         insert_block, getdecls, kept_level_p, global_bindings_p): Remove.
6696 2002-03-21  Richard Henderson  <rth@redhat.com>
6698         * config/rs6000/rs6000.c (rs6000_select_rtx_section): Put symbolic
6699         constants in .data when -fpic.
6701 2002-03-21  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6703         * doc/contrib.texi (Contributors): Use GNU/Linux instead of Linux
6704         where appropriate.
6706 2002-03-21  Tom Tromey  <tromey@redhat.com>
6708         * config/i386/sol2.h (ASM_QUAD): Undef.  Fixes PR bootstrap/5948.
6710 Thu Mar 21 09:50:48 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6712         * config/ia64/ia64.c (hfa_element_mode, case ARRAY_TYPE): Recurse.
6714         * expr.c (emit_group_store): Don't copy const0_rtx to a CONCAT.
6716 2002-03-21  Eric Botcazou <ebotcazou@multimania.com>
6717             Richard Henderson  <rth@redhat.com>
6719         PR c/5354
6720         * c-common.c (c_expand_expr): Preserve result of a statement
6721         expression if needed.
6723 2002-03-21  Jakub Jelinek  <jakub@redhat.com>
6725         PR bootstrap/4195
6726         * genrecog.c (maybe_both_true_mode): Remove.
6727         (maybe_both_true_2, write_switch): Revert 2001-07-17 changes.
6728         * machmode.def (Pmode): Likewise.
6730 Thu Mar 21 01:55:06 EST 2002  John Wehle  (john@feith.com)
6732         * alias.c: (nonlocal_mentioned_p): Use for_each_rtx.
6733         (nonlocal_mentioned_p_1): New function.
6734         (nonlocal_referenced_p, nonlocal_referenced_p_1): Likewise.
6735         (nonlocal_set_p, nonlocal_set_p_1): Likewise.
6736         (mark_constant_function): Recognize pure functions.
6737         * rtl.h (global_reg_mentioned_p): New prototype.
6738         * rtlanal.c (global_reg_mentioned_p,
6739         global_reg_mentioned_p_1): New function.
6741 2002-03-21  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6743         * fixinc/inclhack.def (alpha_assert): Fix assert macro in Tru64
6744         UNIX assert.h.
6745         * fixinc/fixincl.x: Regenerate.
6747 2002-03-20  Jason Merrill  <jason@redhat.com>
6749         * config/i386/cygwin.h (DWARF2_UNWIND_INFO): Define to 0.
6751 2002-03-20  Michael Meissner  <meissner@redhat.com>
6753         * doc/invoke.texi (Optimize Options): Document that -O2 sets
6754         -fstrict-aliasing.
6756 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
6758         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Emit a
6759         ".literal_position" directive before the constant pool.
6761 2002-03-20  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
6763         * doc/contrib.texi (Contributors): Update Geoffrey Keating.
6764         Add Craig Rodrigues.
6765         Add Brad Lucier to testers.
6767 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6769         PR target/4792
6770         * config/arc/arc.md (movsicc, movdicc, movsfcc, movdfcc): Add mode
6771         to if_then_else.
6772         (movsicc_insn, movdicc_insn, movsfcc_insn, movdfcc_insn): Likewise.
6773         * config/arc/arc.c (arc_final_prescan_insn): Use extract_insn_cached
6774         instead of insn_extract.
6776 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6778         PR bootstrap/4192
6779         * config/fr30/fr30.md (jump): Remove clobber of fixed register.
6781         * genemit.c (output_added_clobbers_hard_reg_p): Only output return
6782         stmt if some case has been output.
6784 2002-03-20  Jakub Jelinek  <jakub@redhat.com>
6786         PR c/5972
6787         * config/i386/i386.md (movdicc_c_rex64, movsicc_noc, movhicc_noc,
6788         movsfcc_1, movdfcc_1): Add %O2.
6789         * config/i386/i386.c (print_operand): Handle %ON.
6790         Print . before float condition codes in Sun as cmov syntax.
6791         * config/i386/sol2.h (CMOV_SUN_AS_SYNTAX): Define for Sun as.
6792         * config.gcc (i[34567]86-*-solaris2*): Remove comment which is
6793         no longer true.
6795 2002-03-20  Philip Blundell  <pb@nexus.co.uk>
6797         * config/arm/arm.c (arm_output_epilogue): Don't generate separate
6798         return instruction if PC was popped.
6800 2002-03-20  Bob Wilson  <bob.wilson@acm.org>
6802         * config/xtensa/xtensa.md: Remove unused type attributes.
6803         (adddi_carry, subddi_carry): Change type attribute to "multi".
6805 2002-03-19  Dale Johannesen  <dalej@apple.com>
6807         PR optimization/5999, middle-end/5731
6808         * expr.c (expand_expr) [RDIV_EXPR]: Only convert real divisions into
6809         multiplications by reciprocals.
6811 2002-03-20  Neil Booth  <neil@daikokuya.demon.co.uk>
6813         * Makefile.in: Update.
6814         * c-common.c: Include langhooks.h.
6815         (inline_forbidden_p): Use new hook.
6816         * diagnostic.c: Include langhooks.h.
6817         (format_with_decl, announce_function,
6818         default_print_error_function): Use new hook.
6819         * dwarf2out.c (dwarf2_name): Use new hook.
6820         * function.c: Include langhooks.h.
6821         (init_function_start): Use new hook.
6822         * langhooks-def.h (lhd_decl_printable_name): New.
6823         (LANGHOOKS_DECL_PRINTABLE_NAME): New.
6824         (LANGHOOKS_INITIALIZER): Update.
6825         * langhooks.c (lhd_decl_printable_name): New.
6826         * langhooks.h (struct lang_hooks): New hook.
6827         * toplev.c (decl_name, decl_printable_name): Remove.
6828         (open_dump_file): Use new hook.
6829         (process_options): Remove old hook.
6830         * tree.h (decl_printable_name): Remove.
6831 objc:
6832         * objc-act.c (objc_init): Remove old hook.
6833         (objc_printable_name): Export.
6834         * objc-act.h (objc_printable_name): New.
6835         * objc-lang.c (LANG_HOOKS_DECL_PRINTABLE_NAME): Redefine.
6837 2002-03-19  Jim Blandy  <jimb@redhat.com>
6839         * c-lex.c (cb_file_change): Pass the #inclusion's line number to
6840         the start_source_file debug hook, not the current line number.
6842 2002-03-19  Richard Henderson  <rth@redhat.com>
6844         * flow.c (EH_USES): Provide default.
6845         (calculate_global_regs_live): Use it for EH edges and noreturn calls.
6846         * doc/tm.texi (EH_USES): New.
6848         * config/ia64/ia64.c (ia64_eh_uses): New.
6849         * config/ia64/ia64-protos.h: Update.
6850         * config/ia64/ia64.h (EH_USES): New.
6852 2002-03-19  Richard Henderson  <rth@redhat.com>
6854         * varasm.c (output_constant_def): Fix stupid typo.
6856 2002-03-19  Richard Henderson  <rth@redhat.com>
6858         PR 5879
6859         * except.c (current_function_has_exception_handlers): New.
6860         * except.h: Declare it.
6861         * sibcall.c (optimize_sibling_and_tail_recursive_call): Use it.
6862         Combine tests that disable all sibcalls for the function.
6864 2002-03-19  Olivier Hainque  <hainque@act-europe.fr>
6866         * varasm.c (output_constant_def): Don't call ENCODE_SECTION_INFO
6867         for INTEGER_CST.
6869 2002-03-19  Richard Henderson  <rth@redhat.com>
6871         PR 5977, 5991
6872         * config/ia64/ia64.c: Revert 2002-03-01 patch.
6873         * config/ia64/ia64.h (INIT_EXPANDERS): New.
6875 2002-03-19  Jim Blandy  <jimb@redhat.com>
6877         * cppmacro.c (cpp_macro_definition): Emit a space after the macro
6878         name, even if the replacement list contains no tokens, as required
6879         by Dwarf.
6881 2002-03-19  Jason Merrill  <jason@redhat.com>
6883         * varasm.c (globalize_decl): Get the name from the RTL, not
6884         DECL_ASSEMBLER_NAME.
6886         * Makefile.in (LIBGCC2_DEBUG_CFLAGS): Set to -g.
6888 2002-03-19  Bob Wilson  <bob.wilson@acm.org>
6890         * config/xtensa/xtensa.md (adddi3, adddi_carry, subdi3,
6891         subdi_carry): Define.
6893 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
6895         * config/rs6000/rs6000.c (rs6000_override_options): Only warn
6896         about -fpic/-fPIC if extra_warnings set.
6898 2002-03-19  David Edelsohn  <edelsohn@gnu.org>
6900         * expr.c (expand_expr): Sign-extend CONST_INT generated from
6901         TREE_STRING_POINTER.
6902         * fold-const.c (fold): Delete #if 0 ARRAY_REF case.
6904 Tue Mar 19 14:12:32 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6906         * config/sparc/sparc.h (CAN_ELMINIATE): Can only eliminate FP
6907         in favor of SP if FRAME_POINTER_REQUIRED is false.
6909 2002-03-19  Lars Brinkhoff  <lars@nocrew.org>
6911         * emit-rtl.c (gen_int_mode): New function.
6912         * rtl.h: Prototype for it.
6913         * combine.c (make_extraction, simplify_comparison), expmed.c
6914         (store_bit_field, expand_mult_highpart, expand_divmod), expr.c
6915         (convert_modes, store_field), optabs.c (expand_fix),
6916         simplify-rtx.c (neg_const_int, simplify_unary_real),
6918         * config/rs6000/rs6000.c, config/rs6000/rs6000.md:
6919         Use it instead of GEN_INT (trunc_int_for_mode (...)).
6921 2002-03-19  Jakub Jelinek  <jakub@redhat.com>
6923         PR c/5656
6924         * langhooks.h (struct lang_hooks_for_tree_inlining): Add
6925         convert_parm_for_inlining.
6926         * c-lang.c (LANG_HOOKS_TREE_INLINING_CONVERT_PARM_FOR_INLINING):
6927         Define.
6928         * langhooks-def.h: Likewise.
6929         * objc/objc-lang.c: Likewise.
6930         * langhooks.c (lhd_tree_inlining_convert_parm_for_inlining): New
6931         function.
6932         * tree-inline.c (initialize_inlined_parameters):
6933         Call convert_parm_for_inlining lang hook if needed.
6934         * c-typeck.c (c_convert_parm_for_inlining): New function.
6935         * c-tree.h (c_convert_parm_for_inlining): Add prototype.
6937 2002-03-18  Mark Mitchell  <mark@codesourcery.com>
6939         * calls.c (precompute_arguments): Do not assume that temporaries
6940         can be destroyed after expanding the argument.
6941         (expand_call): Likewise.
6943 2002-03-15  Eric Christopher  <echristo@redhat.com>
6945         * config/mips/mips.md (movdf_internal2): Add two new move constraints.
6946         Fix register preference on last change.
6947         * config/mips/mips.c (mips_return_in_memory): New function.
6948         * config/mips/mips.h (RETURN_IN_MEMORY): Use.
6949         * config/mips/mips-protos.h: Declare.
6950         * config/mips/abi64.h (RETURN_IN_MEMORY): Remove. Add to above.
6951         * config/mips/elf64.h: Add #ifndef/#endif brackets around defaults.
6953 2002-03-18  Alexandre Oliva  <aoliva@redhat.com>
6955         * config/mips/mips.md (andsi3) [TARGET_MIPS16]: Force operand 1 to
6956         a register too.
6957         (anddi3, iorsi3): Likewise.
6959         * config/mips/mips.h (ENCODE_SECTION_INFO) [TARGET_MIPS16]: Don't
6960         use %gprel for symbols that are going to be placed in linkonce
6961         sections.
6963         * config/mips/mips.h (ELIMINABLE_REGS): Can't eliminate
6964         RETURN_ADDRESS_POINTER_REGNUM to $ra.
6965         (CAN_ELIMINATE): Only eliminate it to $sp if a frame pointer is
6966         not needed.  Disregard leaf_function_p().
6967         (INITIAL_ELIMINATION_OFFSET): Adjust for elimination of rap to
6968         mips16 frame pointer.
6969         * config/mips/mips.md (store ra): Only to small SP offsets.
6970         2001-08-22  Graham Stott  <grahams@redhat.com>
6971         * config/mips/mips.h (RETURN_ADDR_RTX): For a leaf function
6972         return a REG rtx for the return address register.
6974 2002-03-18  Bob Wilson  <bob.wilson@acm.org>
6976         * config/xtensa/xtensa.h (GO_IF_MODE_DEPENDENT_ADDRESS): Treat
6977         constant-pool addresses as "mode-dependent".
6978         (GO_IF_LEGITIMATE_ADDRESS): Rename macro arguments.
6980 2002-03-18  Jakub Jelinek  <jakub@redhat.com>
6982         PR target/5740
6983         * expr.c (emit_group_load): Use extract_bit_field if
6984         needed for CONCAT arguments.
6986 2002-03-18  Richard Earnshaw  <rearnsha@arm.com>
6988         PR target/4863
6989         * arm.md (tablejump): Make this a define_expand.  For PIC add the
6990         offset to the base of the table.
6991         (thumb_tablejump): Matcher for Thumb tablejump insn.
6992         * config/arm/aout.h (ASM_OUTPUT_ADDR_DIFF_ELT): Output thumb entries
6993         as the difference of two labels.
6994         * config/arm/aof.h (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
6995         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Only put ARM jump
6996         tables in the code.
6997         * config/arm/coff.h (JUMP_TABLES_IN_TEXT_SECTION): Likewise.
6998         * arm.c (get_jump_table_size): If the table is not in the text
6999         section, return zero.
7001 2002-03-18  Bernd Schmidt  <bernds@redhat.com>
7003         * config/arm/arm.c (arm_gen_movstrqi): Use gen_lowpart instead
7004         of gen_rtx_SUBREG.
7005         (arm_reload_out_hi): Use gen_lowpart instead of
7006         gen_rtx_SUBREG to access QImode components.
7007         * config/arm/arm.md: Disable zero_extend split for QImode
7008         subregs in BIG_ENDIAN mode.
7009         (storehi_bigend): Match use of least significant byte.
7010         (storeinthi): Remove extraneous SUBREG.
7011         Add missing construction of operands[2].
7012         (movhi): Use gen_lowpart in place of gen_rtx_SUBREG.
7013         (movqi): Use gen_lowpart in place of gen_rtx_SUBREG.
7014         Replace gen_rtx (SUBREG) with gen_rtx_SUBREG.
7016 2002-03-18  Aldy Hernandez  <aldyh@redhat.com>
7018         * config/rs6000/rs6000.h (PREDICATE_CODES): Add PARALLEL to
7019         any_operand.
7021 2002-03-17  Richard Henderson  <rth@redhat.com>
7023         * config/alpha/alpha.c (alpha_emit_set_const_1): Build add insns
7024         explicitly.
7026 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
7028         * config/mmix/mmix.md ("fixuns_truncdfdi2"): Use (unsigned_fix:DI
7029         (unsigned_fix:DF op1)), not (unsigned_fix:DI (fix:DF op1)).
7031 2002-03-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7033         * ifcvt.c (dead_or_predicable): Fix uninitialized variable.
7035         * predict.c (estimate_bb_frequencies): Delete unused variables.
7037 2002-03-17  Richard Henderson  <rth@redhat.com>
7039         * config/ia64/ia64.c (ia64_attribute_table): Move before
7040         targetm definition.  Make static.
7042 2002-03-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7044         * c-common.h (yyparse, c_common_parse_file): New.
7045         * c-lang.c: Include c-common.h.
7046         (LANG_HOOKS_PARSE_FILE): Redefine.
7047         * c-lex.c: Include c-common.h.
7048         (yyparse): Rename c_common_parse_file.  Call yyparse.
7049         * c-parse.in (yyparse): Remove macro.
7050         * c-tree.h (yyparse_1): Remove.
7051         * langhooks-def.h (LANG_HOOKS_PARSE_FILE): New.
7052         (LANG_HOOKS_INITIALIZER): Update.
7053         * langhooks.h (struct lang_hoooks): New hook parse_file.
7054         * toplev.c (compile_file): Use parse_file hook.
7055         * tree.h (yyparse): Remove.
7056         * objc/objc-lang.c (LANG_HOOKS_PARSE_FILE): Redefine.
7058 2002-03-17  Hans-Peter Nilsson  <hp@bitrange.com>
7060         * config/mmix/mmix.md ("truncdfsf2"): Correct operator is
7061         float_truncate, not fix.
7062         ("*truncdfsf2_real"): Ditto.
7063         ("*nonlocal_goto_receiver_expanded"): Fix output template formatting.
7065         * config/mmix/mmix.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Don't define.
7067 2002-03-16  Alexandre Oliva  <aoliva@redhat.com>
7069         * config/mips/mips.h (CAN_ELIMINATE): Don't eliminate rap to $fp
7070         (s8), but rather HARD_FRAME_POINTER_REGNUM.  Add parentheses
7071         where appropriate.  Make the second reference to
7072         leaf_function_p a function call, as intended.  Reindented.
7074         * config/mips/mips.h (ISA_HAS_COND_TRAP): Not available on MIPS16.
7075         * config/mips/mips.md (trap) [TARGET_MIPS16]: Emit `break 0'.
7077         * config/mips/mips.md (addsi3, adddi3): Use scratch register to
7078         add register to non-constant into sp.
7080         * config/mips/mips-protos.h (embedded_pic_fnaddr_reg): New.
7081         * config/mips/mips.h (embedded_pic_fnaddr_rtx): Lose.
7082         (mips16_gp_pseudo_rtx): Lose.
7083         (INIT_EXPANDERS): Deleted.
7084         * config/mips/mips.c (mips_init_machine_status): New.
7085         (mips_free_machine_status): New.
7086         (mips_mark_machine_status): New.
7087         (override_options): Set them.
7088         (embedded_pic_fnaddr_rtx, mips16_gp_pseudo_rtx): Moved to...
7089         (struct machine_function): ... new.  Replaced all references.
7090         (mips_add_gc_roots): Don't mark them.
7091         (embedded_pic_fnaddr_reg): New, extracted from...
7092         (embedded_pic_offset): ... here.
7093         * config/mips/mips.md (movdi): Call embedded_pic_fnaddr_reg.
7094         (movsi): Likewise.
7096 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7098         * cppinit.c: Revert -MD removal.
7100 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7102         * config/m68hc11/m68hc11.c (m68hc11_override_options): Don't use
7103         soft registers by default for 68HC12.
7104         (m68hc11_conditional_register_usage): Don't use Z register for 68HC12
7105         when compiling with -fomit-frame-pointer.
7106         (expand_prologue): Use push/pop to allocate 4-bytes of locals on 68HC12.
7107         (expand_epilogue): Likewise.
7108         (m68hc11_gen_rotate): Use exg when rotating by 8.
7110 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7112         * config/m68hc11/m68hc11-protos.h (ix_reg): Declare.
7113         * config/m68hc11/m68hc11.md ("addsi3"): Use general_operand for sources.
7114         (splits): Remove unused add splits.
7115         ("*addhi3_68hc12"): Tune constraints.
7116         ("addhi_sp"): Try to use X instead of Y in all cases and if the
7117         constant fits in 8-bits and D is dead use abx/aby instructions.
7118         ("*addhi3"): Remove extern declaration of ix_reg.
7119         ("*subsi3"): Optimize and provide new split.
7120         ("subhi3"): Cleanup.
7121         ("*subhi3_sp"): Avoid saving X if we know it is dead.
7122         (arith splits): For 68hc12 save the address register on the stack
7123         and do the arithmetic operation with a pop.
7125 2002-03-16  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7127         * config/m68hc11/m68hc11.md ("*movqi_68hc12"): Fix constraints, avoid
7128         allocating QImode in address registers.
7129         ("*movqi_m68hc11"): Likewise.
7131 Sat Mar 16 12:57:28 CET 2002  Jan HUbicka  <jh@suse.cz>
7133         * cfgcleanup.c (cleanup_cfg): Fix updating of liveness.
7135 2002-03-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7137         * cppinit.c (print_help): Display -MD and -MMD.
7138         Don't display usage string.  Update assertion syntax and
7139         typo.
7140         (COMMAND_LINE_OPTIONS): Remove OPT_MD, OPT_MMD.
7141         (cpp_handle_option): Update.
7143 2002-03-15  Chris Demetriou  <cgd@broadcom.com>
7145         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Provide an
7146         MEABI case for each definition of SUBTARGET_CPP_SIZE_SPEC,
7147         and define it so that regardless of target CPU size,
7148         __SIZE_TYPE__ and __PTRDIFF_TYPE__ are defined in terms
7149         of "int" rather than "long."
7151 2002-03-15  Richard Henderson  <rth@redhat.com>
7153         * config/alpha/alpha.c (alpha_va_arg): Manipulate the type
7154         size as a tree.
7156 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7158         * config/m68hc11/m68hc11.md ("tstqi_1"): Try to use ldab instead of tst.
7159         ("tstqi" split): Avoid using memory for tstqi on address register.
7160         (splits): Remove constraints.
7161         ("cmphi_1_hc12"): New from "cmphi_1" and tuned for 68HC12.
7162         ("cmpdf", "cmpsf"): Remove since not used.
7163         ("*tbeq", "*tbne", "*tbeq8", "*tbne8"): Also look in cc_status.value2.
7164         (peephole2): New peepholes to optimize tstqi and pre inc/dec addressing.
7166 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7168         * config/m68hc11/m68hc11.md ("negsi2"): Optimize inline case.
7169         ("neghi2"): Tighten constraints.
7170         ("one_cmplsi2"): Optimize and simplify split.
7171         * config/m68hc11/larith.asm (__negsi2): Likewise for library.
7173 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7175         * config/m68hc11/m68hc11.md ("logicalsi3_zexthi"): Fix constraints
7176         and split of AND operation to clear the upper bits.
7177         ("*logicalsi3_zextqi"): Likewise.
7178         ("*logicallhi3_zexthi_ashift8"): Likewise.
7179         ("*logicalsi3_silshr16"): Likewise.
7180         ("logicalsi3_silshl16"): Likewise.
7181         ("anddi3", "iordi3", "xordi3" splits): Remove constraints.
7183 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7185         * config/m68hc11/m68hc11.c (m68hc11_symbolic_p): New function.
7186         (m68hc11_indirect_p): New function.
7187         (m68hc11_override_options): Must set MASK_NO_DIRECT_MODE for 68HC12.
7188         (m68hc11_gen_highpart): Use TARGET_NO_DIRECT_MODE instead of
7189         TARGET_M6812.
7190         (asm_print_register): Likewise.
7191         * config/m68hc11/m68hc11-protos.h (m68hc11_symbolic_p): Declare.
7192         (m68hc11_indirect_p): Declare.
7193         * config/m68hc11/m68hc11.h (EXTRA_CONSTRAINT): New constraint 'R', 'Q'.
7194         (TARGET_NO_DIRECT_MODE, TARGET_RELAX): New.
7195         (TARGET_SWITCHES): New option -mrelax.
7196         * config/m68hc11/m68hc11.md ("andsi3"): Allow soft register for
7197         destination.
7198         ("iorsi3", "xorsi3"): Likewise.
7199         ("andhi3", "andqi3", "iorhi3", "iorqi3"): Use a define_expand.
7200         ("*andhi3_mem"): New to handle destination in memory with bclr
7201         and a scratch register.
7202         ("*andqi3_mem", "*iorhi3_mem", "*iorqi3_mem"): Likewise.
7203         ("*andhi3_const"): New when operand2 is constant.
7204         ("*andqi3_const", "*iorhi3_const", "*iorqi3_const"): Likewise.
7205         ("*andhi3_gen"): Cleanup of the old "andhi3".
7206         ("*andqi3_gen", "*iorhi3_gen", "*iorqi3_gen"): Likewise.
7207         ("xorqi3"): Update constraints.
7209 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7211         * config/m68hc11/m68hc11.c (m68hc11_small_indexed_indirect_p): Look
7212         for reg_equiv_memory_loc when the operand is a register that does
7213         not get a hard register (stack location).
7214         (tst_operand): After reload, accept all memory operand.
7215         (symbolic_memory_operand): Fix detection of symbolic references.
7216         * config/m68hc11/m68hc11.h (VALID_CONSTANT_OFFSET_P): For 68HC12
7217         accept symbols and any constant.
7219 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7221         * config/m68hc11/m68hc11.c (emit_move_after_reload): Add a REG_INC
7222         note on the insn that sets the soft frame register.
7223         (must_parenthesize): ix and iy are also reserved names.
7224         (print_operand_address): One more place where parenthesis are required
7225         to avoid confusion with register names.
7226         (m68hc11_gen_movhi): Allow push of stack pointer.
7227         (m68hc11_check_z_replacement): Fix handling of parallel with a
7228         clobber.
7229         (m68hc11_z_replacement): Must update the REG_INC notes to tell what
7230         the replacement register is.
7231         * config/m68hc11/m68hc11.h (REG_CLASS_CONTENTS): Switch Z_REGS
7232         and D8_REGS classes.
7233         (MODES_TIEABLE_P): All modes are tieable except QImode.
7235 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7237         * config/m68hc11/larith.asm (___adddi3): Optimize saving of result.
7238         (___subdi3): Likewise.
7239         (__mulsi3, __mulhi32): Avoid using _.tmp scratch location.
7240         (__map_data_section): Optimize 68hc11 case.
7242 2002-03-15  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
7244         * config/m68hc11/m68hc11.c (m6812_cost): Make cost of add higher
7245         than a shift to avoid adding a register with itself.
7246         (m68hc11_memory_move_cost): Take into account NO_REGS.
7247         (m68hc11_register_move_cost): Update and use memory move cost
7248         for soft registers.
7249         (m68hc11_address_cost): Make cost of valid offset not 0 so that
7250         it gives more opportunities to cse to optimize.
7251         * config/m68hc11/m68hc11.h (REGISTER_MOVE_COST): Pass the mode.
7252         * config/m68hc11/m68hc11-protos.h (m68hc11_register_move_cost): Update.
7254 2002-03-15  Mark Mitchell  <mark@codesourcery.com>
7256         * c-common.c (statement_code_p): Handle CLEANUP_STMT.
7257         * c-common.def (CLEANUP_STMT): New tree node.
7258         * c-common.h (CLEANUP_DECL): New macro.
7259         (CLEANUP_EXPR): Likewise.
7260         * c-semantics.c (expand_stmt): Handle CLEANUP_STMT.
7261         * expr.c (expand_expr): Tidy.
7262         * tree-dump.c (dequeue_and_dump): Handle CLEANUP_STMT.
7263         * tree-inline.c (initialize_inlined_parameters): Clean up
7264         new local variables.
7266 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
7268         PR bootstrap/4128
7269         * config/sparc/sparc.c (gen_v9_scc): Move early clobber test
7270         before movrXX only, use reg_overlap_mentioned_p.
7271         Only special case NE if just one insn can be generated.
7273 2002-03-15  Jason Merrill  <jason@redhat.com>
7275         * varasm.c (assemble_variable): Call resolve_unique_section before
7276         checking DECL_SECTION_NAME.  Use zeros for a decl with DECL_INITIAL
7277         of error_mark_node.
7279 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
7281         PR target/5170
7282         * arm.md (split pattern for thumb shiftable immediates): Add comment
7283         explaining non-obvious test.
7285 2002-03-15  Richard Earnshaw  <rearnsha@arm.com>
7287         PR target/5712
7288         * arm.md (movaddr, movaddr_insn): Delete.
7290 2002-03-15  Jason Merrill  <jason@redhat.com>
7292         * toplev.c (wrapup_global_declarations): Clarify variable handling.
7293         -fkeep-static-consts doesn't apply to comdats.
7295 2002-03-14  Richard Henderson  <rth@redhat.com>
7297         * c-decl.c: Include c-pragma.h.
7298         (start_decl, start_function): Invoke maybe_apply_pragma_weak.
7299         (finish_function): Tidy.
7300         * c-pragma.c: Include c-common.h.
7301         (pending_weaks, apply_pragma_weak, maybe_apply_pragma_weak): New.
7302         (handle_pragma_weak): Use them.
7303         (init_pragma): Register pending_weaks.
7304         * c-pragma.h (maybe_apply_pragma_weak): Declare.
7305         * print-tree.c (print_node): Print DECL_WEAK.
7306         * varasm.c (mark_weak_decls): Remove.
7307         (remove_from_pending_weak_list): Remove.
7308         (add_weak): Remove.
7309         (asm_emit_uninitialised): Call globalize_decl for weak commons.
7310         (weak_decls): Make a tree_list.
7311         (declare_weak): Cons weak_decls directly.
7312         (globalize_decl): Remove weak_decls elements directly.
7313         (weak_finish): Simplify weak_decls walk.  Don't weaken unused
7314         symbols.  Don't pretend to handle aliases.
7315         (init_varasm_once): Update weak_decls registry.
7316         * Makefile.in: Update dependencies.
7318 2002-03-14  Richard Henderson  <rth@redhat.com>
7320         PR target/5312
7321         * config/ia64/ia64.c: Include tm_p.h last.
7322         (gen_nop_type): Remove duplicate definition.
7323         (cycle_end_fill_slots): Set sched_data for second L slot.
7324         (maybe_rotate): Call cycle_end_fill_slots to fill in nop slots.
7325         (nop_cycles_until): Fix typos.
7327 2002-03-15  Jakub Jelinek  <jakub@redhat.com>
7329         PR optimization/5891
7330         * unroll.c (copy_loop_body) [CALL_INSN]: Copy SIBLING_CALL_P flag.
7332 2002-03-14  David Mosberger <davidm@hpl.hp.com>, Hans Boehm <Hans_Boehm@hp.com>
7334         * config/ia64/unwind-ia64.c: Handle copy_state and label_state
7335           descriptors correctly.
7337 2002-03-14  Michael Meissner  <meissner@redhat.com>
7339         * params.def (PARAM_MAX_UNROLLED_INSNS): New macro, default to
7340         100, allowing MAX_UNROLLED_INSNS to be overridden.
7342         * params.h (MAX_UNROLLED_INSNS): Define so it can be overridden by
7343         --param.
7345         * unroll.c (params.h): Include.
7346         (MAX_UNROLLED_INSNS): Delete, now in params.h.
7348         * doc/invoke.texi (--param max-unroll-insns): Document.
7350         * Makefile.in (unroll.o): Add $(PARAMS_H) dependency.
7352 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
7354         * arm.md: Fix warnings about constraints in peepholes and splits.
7356 2002-03-14  Zack Weinberg  <zack@codesourcery.com>
7358         * cpphash.h (struct lexer_state): Remove line_extension member.
7359         * cpplib.c (dequote_string, do_linemarker): New functions.
7360         (linemarker_dir): New data object.
7361         (DIRECTIVE_TABLE): No longer need to interpret #line in
7362         preprocessed source.  Delete obsolete comment about return
7363         values of handlers.
7364         (end_directive, directive_diagnostics, _cpp_handle_directive):
7365         Don't muck with line_extension.
7366         (directive_diagnostics): No need to issue warnings for
7367         linemarkers here.
7368         (_cpp_handle_directive): Issue warnings for linemarkers here,
7369         when appropriate.  Dispatch linemarkers to do_linemarker, not
7370         do_line.
7371         (do_line): Code to handle linemarkers split out to do_linemarker.
7372         Convert escape sequences in filename argument, both places.
7374         * cppmacro.c (quote_string): Rename cpp_quote_string and
7375         export.  All callers changed.
7376         * cpplib.h (cpp_quote_string): Prototype.
7377         * cppmain.c (print_line): Call cpp_quote_string on to_file
7378         before printing it.
7380         * doc/cpp.texi: Document that escapes are now interpreted in
7381         #line and in linemarkers, and that non-printing characters are
7382         converted to octal escapes when linemarkers are generated.
7384 Thu Mar 14 19:04:29 CET 2002  Jan Hubicka  <jh@suse.cz>
7386         * emit-rtl.c (try_split): Use delete_insns.
7387         * recog.c (split_all_insns): Fix terminating condition.
7389 2002-03-14  Richard Earnshaw  <rearnsha@arm.com>
7390             Jeroen Dobbelaere  <jeroen.dobbelaere@acunia.com>
7392         PR target/5828
7393         * arm.c (arm_output_epilogue): Fix floating-point register save
7394         adjustment when using a frame pointer.
7396 2002-03-14  Richard Sandiford  <rsandifo@redhat.com>
7398         * config/mips/mips.h (FP_INC, UNITS_PER_FPVALUE): New macros.
7399         * config/mips/mips.c (compute_frame_size): Retrofit them here.
7400         (save_restore_insns, mips_expand_epilogue): And here.
7401         (build_mips16_call_stub): And here.
7402         (mips_function_value): Use the new macros to decide whether a single
7403         or complex float can be returned in floating-point registers.  Return
7404         a parallel rtx in the complex case.
7406 Thu Mar 14 11:03:12 CET 2002  Jan Hubicka  <jh@suse.cz>
7408         * toplev.c (rest_of_compilation): Add CLEANUP_UPDATE_LIFE to cfg_cleanup
7409         call after liveness analysis.
7411         * recog.c (split_insn): Use delete_insn_and_edges.
7413         * cfgrtl.c (verify_flow_info): Be permisive about non-any_condjump
7414         instructions to have branch prediction notes.
7415         * ia64reorg.c (ia64_reorg): Do not rebuild CFG.
7417 2002-03-14  Geoffrey Keating  <geoffk@redhat.com>
7419         * configure.in: Don't pass -Wno-long-long to a ADA compiler
7420         that doesn't support it.
7421         * configure: Regenerate.
7423 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7425         PR target/5626
7426         * config/sparc/sparc.md (normal_branch, inverted_branch,
7427         normal_fp_branch, inverted_fp_branch, normal_fpe_branch,
7428         inverted_fp_branch): Adjust calls to output_cbranch.
7429         Set length attribute.
7430         (normal_int_branch_sp64, inverted_int_branch_sp64): Adjust calls to
7431         output_v9branch.  Set length attribute.
7432         * config/sparc/sparc.c (fcc0_reg_operand, noov_compare64_op): New
7433         predicates.
7434         (noov_compare_op): Handle CCX_NOOVmode the same way as CC_NOOVmode.
7435         (output_cbranch): Likewise.  Handle far branches.
7436         (output_v9branch): Handle far branches.
7437         * config/sparc/sparc-protos.h (output_cbranch, output_v9branch):
7438         Adjust prototypes.
7439         * config/sparc/sparc.h (PREDICATE_CODES): Add fcc0_reg_operand and
7440         noov_compare64_op predicates.
7442 2002-03-13  Jason Merrill  <jason@redhat.com>
7444         * gthr-posix.h (__gthread_active_p): Move __gthread_active_ptr
7445         into the function and constify it.
7446         * gthr-dce.h, gthr-solaris.h: Likewise.
7448 2002-03-13  David Edelsohn  <edelsohn@gnu.org>
7450         * config/rs6000/rs6000.h (PAD_VARARGS_DOWN): Define.
7451         * config/rs6000/rs6000.c (rs6000_va_arg): Use
7452         std_expand_builtin_va_arg if not ABI_V4.
7454 2002-03-13  Jason Merrill  <jason@redhat.com>
7456         * varasm.c (globalize_decl): New fn.
7457         (assemble_start_function): Use it.
7458         (asm_emit_uninitialized): Use it.
7459         (assemble_alias): Use it.
7460         (assemble_variable): Use it.
7462 2002-03-13  Hans-Peter Nilsson  <hp@axis.com>
7464         * config/cris/cris.c (cris_target_asm_function_prologue): Revert
7465         2002-03-12 internal visibility change.
7466         (cris_encode_section_info): Consider MODULE_LOCAL_P when encoding
7467         visibility into SYMBOL_REF_FLAG.
7469 2002-03-13  Ulrich Weigand  <uweigand@de.ibm.com>
7471         * expr.c (expand_expr, case NE_EXPR): Do not call copy_to_reg with
7472         VOIDmode operand.  Add compile-time optimization for constant results.
7474 2002-03-12  Jason Merrill  <jason@redhat.com>
7476         * c-typeck.c (convert_for_assignment): Don't allow conversions
7477         between pointers and references.  Only allow lvalues to convert to
7478         reference.
7480 2002-03-13  Hartmut Penner  <hpenner@de.ibm.com>
7482         * config/s390/s390.h (PROFILE_BEFORE_PROLOGUE): Emit profile code
7483         before prologue, to avoid scheduling problems.
7485 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7487         * config/sparc/sparc.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
7488         (ELIMINABLE_REGS): Add sfp->sp.
7489         (INITIAL_ELIMINATION_OFFSET): Compute sfp->sp offset too.
7491 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7493         PR optimization/5892
7494         * config/ia64/ia64.c (rotate_one_bundle): Update current packet.
7496 2002-03-13  Jakub Jelinek  <jakub@redhat.com>
7498         * loop.c (basic_induction_var): Don't call convert_modes if mode
7499         classes are different.
7501 2002-03-12  Richard Henderson  <rth@redhat.com>
7503         PR optimization/5901
7504         * function.c (reposition_prologue_and_epilogue_notes): Position
7505         the markers after/before the last/first insn not deleted.
7507 2002-03-12  Richard Henderson  <rth@redhat.com>
7509         PR optimization/5878
7510         * config/arc/arc.h, config/cris/cris.h, config/i386/i386.h,
7511         config/m68k/m68k.h, config/s390/s390.h, config/sparc/sparc.h
7512         (PIC_OFFSET_TABLE_REGNUM): Conditionalize on flag_pic.
7514         * config/arm/arm.h config/i386/i386.h, config/m68k/m68k.h,
7515         config/sparc/sparc.h (CONDITIONAL_REGISTER_USAGE): Set
7516         PIC_OFFSET_TABLE_REGNUM based on INVALID_REGNUM not flag_pic.
7518         * config/arc/arc.h (CONDITIONAL_REGISTER_USAGE): New.
7519         * config/arm/arm.c (arm_pic_register): Init to INVALID_REGNUM.
7520         (arm_override_options): Set arm_pic_register if TARGET_APCS_STACK
7521         also.  Don't set it if not flag_pic.
7522         * config/i386/i386.c (ix86_save_reg): Trust PIC_OFFSET_TABLE_REGNUM
7523         to be INVALID_REGNUM when not used.
7525 2002-03-13  Aldy Hernandez  <aldyh@redhat.com>
7527         * expmed.c (store_bit_field): Reset alias set for memory.
7528         (extract_bit_field): Same.
7530 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7532         * c-common.c (c_tree_code_type, c_tree_code_length,
7533         c_tree_code_name, add_c_tree_codes): Delete.
7534         * c-common.h (add_c_tree_codes): Delete.
7535         * c-lang.c (tree_code_type, tree_code_length, tree_code_name):
7536         Define.
7537         * c-objc-common.c (c_objc_common_init): Don't call
7538         add_c_tree_codes, instead set lang_unsafe_for_reeval.
7539         * objc/objc-act.c (objc_tree_code_type, objc_tree_code_length,
7540         objc_tree_code_name, add_objc_tree_codes): Delete.
7541         (objc_init): Don't call add_objc_tree_codes.
7542         * objc/objc-lang.c (tree_code_type, tree_code_length,
7543         tree_code_name): Define.
7544         * toplev.c (lang_independent_init): Don't set
7545         tree_code_length[IDENTIFIER_NODE].
7546         * tree.c (tree_code_type, tree_code_length, tree_code_name):
7547         Delete definitions, moved to language front-ends.
7548         * tree.def (IDENTIFIER_NODE): Hardwire the length.
7549         * tree.h (tree_code_type, tree_code_length, tree_code_name):
7550         Const-ify.
7551         (tree_code_length): Change type to unsigned char.
7553 2002-03-12  Richard Henderson  <rth@redhat.com>
7555         * config/i386/i386.c (ix86_expand_prologue): Revert 2002-03-03
7556         internal visibility change.
7558 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7560         * config/xtensa/xtensa.c (xtensa_expand_block_move): Use
7561         validize_mem() instead of change_address to avoid clobbering
7562         memory attributes.
7564 2002-03-12  Neil Booth  <neil@daikokuya.demon.co.uk>
7566         * c-lex.h (position_after_whitespace): Remove.
7568 2002-03-12  Jakub Jelinek  <jakub@redhat.com>
7570         * c-lex.c (cb_ident, c_lex): Remove unnecessary cast.
7571         (lex_string): Use unsigned char pointers.
7573 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
7575         * reload1.c (reload): Ignore MEM REG_EQUIV notes if the equivalent
7576         is not a valid memory_operand.
7578 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7580         * config/xtensa/xtensa-config.h: Define XCHAL_HAVE_LOOPS.
7581         * config/xtensa/lib1funcs.asm: Fix copyright to include
7582         special case for libgcc files.
7583         (__udivsi3): Avoid loop instructions when XCHAL_HAVE_LOOPS is 0.
7584         (__divsi3): Likewise.
7585         (__umodsi3): Likewise.
7586         (__modsi3): Likewise.
7587         * config/xtensa/lib2funcs.S: Fix copyright to include
7588         special case for libgcc files.
7590 2002-03-12  Tom Rix  <trix@redhat.com>
7592         * collect2.c (resolve_lib_name): Move outside of
7593         OBJECT_FORMAT_COFF ifdef.
7594         (ignore_library): Same.
7596 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7598         * config/xtensa/t-xtensa (CRTSTUFF_T_CFLAGS_S): Define.
7600 2002-03-12  Bob Wilson  <bob.wilson@acm.org>
7602         * config/xtensa/xtensa.h (ASM_OUTPUT_POOL_PROLOGUE): Switch
7603         to function_section before writing out the constant pool.
7605 2002-03-12  David Edelsohn  <edelsohn@gnu.org>
7607         * config/rs6000/rs6000.h (PREDICATE_CODES): Add any_operand and
7608         zero_constant.
7609         * config/rs6000/rs6000.c (easy_fp_constant): Fix formatting.
7611 2002-03-12  Alan Modra  <amodra@bigpond.net.au>
7613         * config/rs6000/rs6000.md (addsi3): Optimize sign extension.
7614         (adddi3): Likewise.
7615         (movdf): Likewise.
7616         (movdi): Likewise.
7617         (cmpsi splitter): Likewise.
7618         (modsi3): Fail if <= 0.
7619         * config/rs6000/rs6000.c (reg_or_add_cint64_operand): Remove
7620         redundant test when HOST_BITS_PER_WIDE_INT != 32.
7621         (reg_or_sub_cint64_operand): Likewise.
7622         (num_insns_constant_wide): Optimize sign extension.
7623         (rs6000_legitimize_address): Likewise.
7625 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
7627         * config/sparc/linux.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7628         * config/sparc/linux64.h (HANDLE_PRAGMA_PACK_PUSH_POP): Define.
7630 2002-03-12  Andrew MacLeod  <amacleod@redhat.com>
7632         * config/sparc/sparc.h (RETURN_ADDR_RTX): Include v9 stack bias in
7633         address calculation.
7635 2002-03-12  Ulrich Weigand  <uweigand@de.ibm.com>
7637         * config/s390/s390.md (reload_insi, reload_indi): Change mode of
7638         scratch register to DImode / TImode.
7639         config/s390/s390.c (s390_expand_plus_operand): Make sure scratch
7640         register used does not overlap the target.
7642 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7644         * Makefile.in (debug.o): Depend on debug.h.
7645         * dbxout.c (dbx_debug_hooks, xcoff_debug_hooks): Const-ify.
7646         * debug.c (do_nothing_debug_hooks): Likewise.
7647         * debug.h (debug_hooks, do_nothing_debug_hooks, dbx_debug_hooks,
7648         sdb_debug_hooks, xcoff_debug_hooks, dwarf_debug_hooks,
7649         dwarf2_debug_hooks, vmsdbg_debug_hooks): Likewise.
7650         * dwarf2out.c (dwarf2_debug_hooks): Likewise.
7651         * dwarfout.c (dwarf_debug_hooks): Likewise.
7652         * integrate.c (output_inline_function): Likewise.
7653         * objc/objc-act.c (synth_module_prologue): Likewise.
7654         * sdbout.c (sdb_debug_hooks): Likewise.
7655         * toplev.c (debug_hooks): Likewise.
7656         * vmsdbgout.c (vmsdbg_debug_hooks): Likewise.
7658 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7660         * 1750a.h, a29k.h, arc.h, arm.h, c4x.h, clipper.h, cris.h, d30v.h,
7661         dsp16xx.h, fr30.h, h8300.h, i370.h, i386.h, i860.h, i960.h,
7662         m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h, mmix.h, mn10300.h,
7663         ns32k.h, pa.h, pdp11.h, pj.h, romp.h, s390.h, stormy16.h,
7664         v850.h, vax.h, we32k.h, xtensa.h (POINTER_SIZE): Delete.
7665         * defaults.h (POINTER_SIZE): Define.
7666         * doc/tm.texi (POINTER_SIZE): Document default.
7668 2002-03-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7670         * mn10200.h (PTRDIFF_TYPE): Change it to a signed type.
7672 2002-03-11  Richard Henderson  <rth@redhat.com>
7674         * toplev.c (rest_of_compilation): Call purge_all_dead_edges
7675         if rebuild_label_notes_after_reload.
7677 2002-03-12  Hans-Peter Nilsson  <hp@axis.com>
7679         * config/cris/cris.c (cris_target_asm_function_prologue):  Do not
7680         emit pic register load if "internal" visibility.
7681         (cris_print_operand): Avoid traditional-warning for 0xffffffff.
7682         (cris_expand_builtin_va_arg): Do all computations on trees.
7684 2002-03-11  Richard Henderson  <rth@redhat.com>
7686         * rtlanal.c: Include recog.h.
7687         (keep_with_call_p): Fix thinko.
7688         * Makefile.in (rtlanal.o): Update dependencies.
7690 2002-03-11  Chris Meyer  <cmeyer@gatan.com>
7692         * genflags.c (gen_insn): Use IS_VSPACE.
7693         * genoutput.c (output_insn_data): Likewise.
7694         (process_template): Likewise.
7696 2002-03-11  Richard Henderson  <rth@redhat.com>
7698         * toplev.c (rest_of_compilation): Don't compile if we've had errors.
7700 2002-03-11  Neil Booth  <neil@daikokuya.demon.co.uk>
7702         * Makefile.in: Update.
7703         * doc/cppenv.texi, cppopts.texi: Split out of cpp.texi and gcc.texi.
7704         Update documentation.
7705         * doc/gcc.texi: Include cppopts.texi and cppenv.texi.
7706         * doc/cpp.texi: Include cppopts.texi and cppenv.texi.
7708 2002-03-11  Zack Weinberg  <zack@codesourcery.com>
7710         * Makefile.in: Give texi2pod its input file as a command line
7711         argument, not on stdin.
7713 2002-03-11  Dan Nicolaescu  <dann@ics.uci.edu>
7714             Daniel Berlin  <dan@dberlin.org>
7716         C++ alias analysis improvement.
7717         * alias.c (record_component_aliases): Record aliases for base
7718         classes too.
7720 2002-03-11  Ulrich Weigand  <uweigand@de.ibm.com>
7722         * config/s390/s390.h (REG_ALLOC_ORDER): Add missing register.
7724 2002-03-11  Douglas B Rupp  <rupp@gnat.com>
7726         * toplev.c (vms_fopen): Remove, not needed.
7728         * vmsdbgout.c (lookup_filename): Adjust creation date for GMT.
7730         * config/alpha/xm-vms.h (__UNIX_FWRITE): Define.
7732         * config/alpha/alpha.c (alpha_sa_size, VMS): Don't reserve space
7733         for FP, already done later.
7735         * toplev.c (debug_args): Add entry for VMS_DEBUG.
7736         * vmsdbgout.c (vmsdbgout_init): Fix typo in call to xmalloc.
7738 2002-03-11  Richard Sandiford  <rsandifo@redhat.com>
7740         * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO): New.
7741         (MODE_HAS_NANS, MODE_HAS_INFINITIES): Evaluate to false if
7742         LARGEST_EXPONENT_IS_NORMAL for the given mode.
7743         (MODE_HAS_SIGN_DEPENDENT_ROUNDING): False when ROUND_TOWARDS_ZERO.
7744         * real.c (eadd1): Make rounding dependent on !ROUND_TOWARDS_ZERO.
7745         (ediv, emul, eldexp, esqrt): Likewise.
7746         (etoe113, etoe64, etoe53, etoe24, etodec, etoibm, etoc4x): Likewise.
7747         (e24toe): Only check NaNs & infinities if !LARGEST_EXPONENT_IS_NORMAL.
7748         (saturate): New function.
7749         (toe53, toe24): Saturate on overflow if LARGEST_EXPONENT_IS_NORMAL.
7750         (make_nan): Use a saturation value instead of a NaN if
7751         LARGEST_EXPONENT_IS_NORMAL.  Warn when this happens.
7752         * fp-bit.c (pack_d): Saturate on NaN, infinite or overflowing
7753         inputs if LARGEST_EXPONENT_IS_NORMAL.  Represent subnormals as
7754         zero if NO_DENORMALS.  Only round to nearest if !ROUND_TOWARDS_ZERO.
7755         (unpack_d): No NaNs or infinities if LARGEST_EXPONENT_IS_NORMAL.
7756         (_fpmul_parts, _fpdiv_parts): Only round to nearest if
7757         !ROUND_TOWARDS_ZERO.
7758         * doc/tm.texi (LARGEST_EXPONENT_IS_NORMAL): Document.
7759         (ROUND_TOWARDS_ZERO): Document.
7761 2002-03-11  Andreas Jaeger  <aj@suse.de>
7763         * cfg.c (dump_flow_info): Remove unused variable.
7765 2002-03-11  Hans-Peter Nilsson  <hp@bitrange.com>
7767         * config/mmix/mmix.c (mmix_expand_builtin_va_arg): Do all
7768         computations on trees.
7770 2002-03-10  Richard Henderson  <rth@redhat.com>
7772         PR 5693:
7773         * reload.c (copy_replacements_1): New.
7774         (copy_replacements): Use it to recurse through the rtx.
7776 2002-03-10  Richard Henderson  <rth@redhat.com>
7778         * loop.c (strength_reduce): Compute number of iterations as
7779         unsigned HOST_WIDE_INT.
7781 2002-03-10  Richard Henderson  <rth@redhat.com>
7783         * sched-rgn.c (add_branch_dependences): Don't allow insns that throw
7784         to move away from the end of the block.
7786 2002-03-10  Neil Booth  <neil@daikokuya.demon.co.uk>
7788         PR preprocessor/5899
7789         * cppinit.c (init_dependency_output): Don't ignore -dM etc.
7791 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7793         * mbchar.c (JIS_state_table, JIS_action_table): Const-ify.
7795         * attribs.c (decl_attributes): Fix signed/unsigned warning.
7797 2002-03-10  Hans-Peter Nilsson  <hp@bitrange.com>
7799         * config/mmix/mmix.c: Improve comments.
7800         (mmix_target_asm_function_prologue): Drop variable
7801         empty_stack_frame.  Don't allocate unused slot above fp.
7802         (mmix_target_asm_function_epilogue): Mirror prologue changes.
7803         * config/mmix/mmix.h (MMIX_GNU_ABI_REG_ALLOC_ORDER): Don't have
7804         brace in first column.
7805         (enum reg_class): Ditto.
7806         (FIRST_PARM_OFFSET): Now 0.
7807         (USER_LABEL_PREFIX): Remove #if 0:d definition.
7809 2002-03-10  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7811         * combine.c (make_extraction): Fix error in last change.
7813 2002-03-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7815         * c4x.c (c4x_fp_reglist): Const-ify.
7816         * cris.c (cris_print_operand): Likewise.
7817         * i386.c (ix86_va_arg): Likewise.
7818         * ia64/unwind-ia64.c (unw_decode_table): Likewise.
7819         * m32r.c (m32r_hard_regno_mode_ok): Likewise.
7820         * m32r.h (m32r_hard_regno_mode_ok): Likewise.
7821         * mcore.c (regno_reg_class, mcore_unique_section): Likewise.
7822         * mcore.h (regno_reg_class): Likewise.
7823         * mips.c (gen_int_relational): Likewise.
7824         * ns32k.c (ns32k_reg_class_contents, regclass_map): Likewise.
7825         * ns32k.h (ns32k_reg_class_contents, regclass_map): Likewise.
7826         * pdp11.c (move_costs): Likewise.
7827         * pj.h (INITIALIZE_TRAMPOLINE): Likewise.
7828         * s390.c (s390_branch_condition_mnemonic, regclass_map):
7829         Likewise.
7830         * s390.h (regclass_map): Likewise.
7831         * sh.c (shift_amounts): Likewise.
7832         * sh.md (rotlsi3): Likewise.
7834 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
7836         * config/rs6000/rs6000.md (ne0+4): Add extra CLOBBER.
7837         (ne0+5): Use new clobber to generate proper shift pattern.
7838         Patch by Michael Matz <matz@kde.org>.
7840 2002-03-09  Andreas Schwab  <schwab@suse.de>
7842         * gcc.c (validate_all_switches): Also handle `%W{...}'.
7844 2002-03-09  Geoffrey Keating  <geoffk@redhat.com>
7846         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Don't define.
7848 2002-03-09  Jakub Jelinek  <jakub@redhat.com>
7850         PR middle-end/5877
7851         * expr.c (highest_pow2_factor): Check TREE_INT_CST_LOW
7852         even for non-representable constants.
7854 Sat Mar  9 07:20:01 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7856         * emit-rtl.c (copy_most_rtx): Accept EXPR_LIST for may_share.
7857         * function.c (fixup_var_refs): Add MAY_SHARE parameter.
7858         (fixup_var_refs_insns, fixup_var_refs_insns_with_has): Likewise.
7859         (fixup_var_refs_insn, fixup_var_refs_1): Likewise.
7860         (pop_function_context): Compute MAY_SHARE parameter for
7861         fixup_var_refs.
7862         (fixup_var_refs_1, case MEM): Pass MAY_SHARE to copy_most_rtx, not VAR.
7863         (gen_mem_addressof): Call fixup_var_refs with new parm.
7865         * combine.c (make_extraction): Don't make extension of CONST_INT.
7867 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
7869         * config/mips/mips.c (function_arg_pass_by_reference): Force to 0
7870         in o32 and o64 ABIs.
7871         * config/mips/abi64.h (MUST_PASS_IN_STACK): Define as in expr.h,
7872         but getting fixed-size structs passed in registers regardless of
7873         padding in o32 and o64 ABIs.
7875         * config/mips/mips.c (mips_va_arg): Apply big-endianness address
7876         offset before loading address of argument passed by transparent
7877         reference.
7879 2002-03-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7881         * t-pa64 (LIB1ASMFUNCS, LIB1ASMSRC): Delete.
7883 2002-03-09  Alexandre Oliva  <aoliva@redhat.com>
7885         * config/mips/mips.c (mips_expand_prologue): Set regno of vararg
7886         marker such that registers after it are saved.
7888 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7890         * sparc.c (arith_4096_operand): Fix error in last change.
7892 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
7894         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Remove duplicate
7895         defaults for MEABI.
7897 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
7899         * config/rs6000/rs6000.c (rs6000_va_arg): Fix alignment for
7900         vectors.
7902 2002-03-08  Aldy Hernandez  <aldyh@redhat.com>
7904         * config/rs6000/sysv4.h (BIGGEST_ALIGNMENT): Change for altivec.
7906 Fri Mar  8 21:27:49 CET 2002  Jan Hubicka  <jh@suse.cz>
7908         * cfgrtl.c (purge_dead_edges): Set BB_DRITY flags if edge has been
7909         removed; fix return value.
7910         * combine.c (combine_instructions): Dirtify blocks where we failed to
7911         update liveness; purge dead edges; use update_life_info_in_dirty_blocks.
7912         * toplev.c (rest_of_compilation): Do not purge_dead_edges after combine.
7914 2002-03-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7916         * gcse.c (insert_insn_end_bb): Fix typo in last change.
7918 Fri Mar  8 21:08:52 CET 2002  Jan Hubicka  <jh@suse.cz>
7920         * recog.c (peephole2_optimize): Re-distribute EH edges.
7922 2002-03-08  Neil Booth  <neil@daikokuya.demon.co.uk>
7924         * expr.c (expand_expr): Use unsave lang hook.
7925         * langhooks-def.h (LANG_HOOKS_UNSAVE): New.
7926         (LANG_HOOKS_INITIALIZER): Update.
7927         * langhooks.h (struct lang_hooks): New hook unsave.
7928         * tree.c (lang_unsave, lang_unsave_expr_now): Remove.
7929         (unsave_expr_1): Remove unused lang_unsave_expr_now.
7930         (unsave_expr_now_r): Rename lhd_unsave.  Update. Return input.
7931         (unsave_expr_now): Remove.
7932         * tree.h (unsave_expr_now, lang_unsave,
7933         lang_unsave_expr_now): Remove.
7934         (lhd_unsave): New.
7936 2002-03-08  Andreas Jaeger  <aj@suse.de>
7938         * flow.c (propagate_block_delete_insn): Remove unused variable.
7940 2002-03-08  Kazu Hirata  <kazu@hxi.com>
7942         * config/h8300/h8300.c (h8300_adjust_insn_length): Tighten
7943         insn length for memory load/store.
7945 2002-03-08  Craig Rodrigues  <rodrigc@gcc.gnu.org>
7947         * doc/install.texi (--with-libiconv-prefix): Document.
7949 2002-03-08  Michael Y. Brukman  <myb2@cornell.edu>
7951         * doc/sourcebuild.texi: Fix typo.
7953 2002-03-08  Jakub Jelinek  <jakub@redhat.com>
7955         PR c/3711
7956         * builtins.c (std_expand_builtin_va_arg): Do all computations on
7957         trees.
7959 Fri Mar  8 06:48:45 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7961         * rtl.c (copy_most_rtx): Move from here ...
7962         * emit-rtl.c (copy_most_rtx): ... to here.
7964 2002-03-08  Alexandre Oliva  <aoliva@redhat.com>
7966         * config/mips/mips.h (LONG_MAX_SPEC): Rewrite, along with
7967         SUBTARGET_CPP_SIZE_SPEC.
7968         * config/mips/abi64.h (LONG_MAX_SPEC): Delete.
7970         * config/mips/mips.h (SUBTARGET_CPP_SIZE_SPEC): Simplify.
7972 2002-03-07  Matt Hiller  <hiller@redhat.com>
7974         * gensupport.c (first_dir_md_include): Renamed from include;
7975         change all references.
7976         (last_dir_md_include): Renamed from last_include; change all
7977         references.
7978         (init_md_reader): Unconditionally initialize base_dir whether or
7979         not filename is a relative path.
7981 2002-03-07  Alexandre Oliva  <aoliva@redhat.com>
7983         * config/fp-bit.c (_unord_f2): Compile it in even if
7984         US_SOFTWARE_GOFAST is enabled.
7986         * config/gofast.h (GOFAST_RENAME_LIBCALLS): Set gt and ge as
7987         NULL_RTX.  Set all HFmode operations as NULL_RTX.
7988         * optabs.c (prepare_float_lib_cmp) <GT, GE, LT, LE>: If libfunc is
7989         NULL_RTX, try reversing the comparison and the operands.
7991 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
7993         * genextract.c (walk_rtx): Recurse into MATCH_PAR_DUP.
7994         genoutput.c (scan_operands): Recurse into MATCH_PAR_DUP
7995         and MATCH_OP_DUP.
7997 Thu Mar  7 16:54:10 CET 2002  Jan Hubicka  <jh@suse.cz>
7999         * reload1.c (reload_cse_delete_noop_set): Purge dead edges.
8001 Thu Mar  7 16:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8003         * basic-block.h (fixup_abnormal_edges): Declare.
8004         * reload1.c (fixup_abnormal_edges): New function.
8005         * reg-stack.c (convert_regs): Use it.
8007         * gcse.c (insert_insn_end_bb): Handle trapping insns.
8009         * gcse.c (hash_scan_set): Refuse instructions with EH edges.
8011 2002-03-07  Richard Sandiford  <rsandifo@redhat.com>
8013         * defaults.h (MODE_HAS_NANS, MODE_HAS_INFINITIES): New.
8014         (MODE_HAS_SIGNED_ZEROS, MODE_HAS_SIGN_DEPENDENT_ROUNDING): New.
8015         * flags.h (HONOR_NANS, HONOR_INFINITIES, HONOR_SIGNED_ZEROS): New.
8016         (HONOR_SIGN_DEPENDENT_ROUNDING): New.
8017         * builtins.c (expand_builtin_mathfn): Use HONOR_NANS.
8018         * c-common.c (truthvalue_conversion): Reduce x - y != 0 to x != y
8019         unless x and y could be infinite.
8020         (expand_unordered_cmp): New, mostly split from expand_tree_builtin.
8021         Check that the common type of both arguments is a real, even for
8022         targets without unordered comparisons.  Allow an integer argument
8023         to be compared against a real.
8024         (expand_tree_builtin): Use expand_unordered_cmp.
8025         * combine.c (combine_simplify_rtx): Use the new HONOR_... macros.
8026         * cse.c (fold_rtx): Likewise.  Fix indentation.
8027         * fold-const.c (fold_real_zero_addition_p): New.
8028         (fold): Use it, and the new HONOR_... macros.
8029         * ifcvt.c (noce_try_minmax): Use the new HONOR_... macros.
8030         * jump.c (reversed_comparison_code_parts): After searching for
8031         the true comparison mode, use HONOR_NANS to decide whether it
8032         can be safely reversed.
8033         (reverse_condition_maybe_unordered): Remove IEEE check.
8034         * simplify-rtx.c (simplify_binary_operation): Use the new macros
8035         to decide which simplifications are valid.  Allow the following
8036         simplifications for IEEE: (-a + b) to (b - a), (a + -b) to (a - b),
8037         and (a - -b) to (a + b).
8038         (simplify_relational_operation): Use HONOR_NANS.
8039         * doc/tm.texi: Document the MODE_HAS_... macros.
8041 2002-03-07  Richard Earnshaw  <rearnsha@arm.com>
8043         * combine.c (simplify_comparison): If simplifying a logical shift
8044         right and compare with constant, force the comparison to unsigned.
8046 2002-03-07  Aldy Hernandez  <aldyh@redhat.com>
8048         * doc/invoke.texi: Add documentation for -mabi=no-altivec.
8050         * config/rs6000/rs6000.c (rs6000_parse_abi_options): Add
8051         -mabi=no-altivec
8052         (alt_reg_names): Remove % for vrsave.
8054 2002-03-06  Richard Henderson  <rth@redhat.com>
8056         PR optimization/5844
8057         * genemit.c (gen_exp): New argument used.  Invoke copy_rtx
8058         if used indicates we've already emitted one copy of an operand.
8059         (gen_insn, gen_expand, output_add_clobbers): Supply a null used.
8060         (gen_split): Supply a non-null used.
8062 2002-03-06  Ulrich Weigand  <uweigand@de.ibm.com>
8064         * reload1.c (reload): Unshare all rtl after reload is done.
8066         * simplify-rtx.c (simplify_plus_minus): Do not abort,
8067         but simply fail if the expression is too complex to simplify.
8068         (simplify_gen_binary): Handle simplify_plus_minus failures.
8070 Wed Mar  6 20:32:09 CET 2002  Jan Hubicka  <jh@suse.cz>
8072         * toplev.c (rest_of_compilation): Do jump threading before SSA path;
8073         consistently call delete_trivially_dead_insns after CSE and GCSE;
8074         fix DFI_life dumping; do jump threading after liveness; do crossjumping
8075         after liveness2; update comment in last crossjumping.
8076         * cfgcleanup.c (try_crossjump_to_edge): Dirtify block.
8078 Wed Mar  6 12:27:10 2002  Jeffrey A Law  (law@redhat.com)
8080         * ssa-ccp.c (ssa_fast_dce): Update the DF def-use chains
8081         after completing fast dead code elimination.
8083         * m68k.h (CONST_COSTS): Lower cost of 0.0 when used inside a
8084         COMPARE operator.
8086 2002-03-06  Phil Edwards  <pme@gcc.gnu.org>
8088         * version.c:  Fix misplaced leading blanks on first line.
8090 Wed Mar  6 19:08:03 CET 2002  Jan Hubicka  <jh@suse.cz>
8092         * cfgrtl.c (verify_flow_info): Accept RESX as EH edge source.
8094 Wed Mar  6 18:14:43 CET 2002  Jan Hubicka  <jh@suse.cz>
8096         * cfgcleanup.c (mentions_nonequal_regs): New function.
8097         (thread_jump): Use it.
8098         * toplev.c (rest_of_compilation): Run jump threading after
8099         liveness.
8101 2002-03-06  Jakub Jelinek  <jakub@redhat.com>
8103         * ssa-ccp.c (ssa_ccp_substitute_constants): Backout 2002-03-05
8104         patch.
8106 Wed Mar  6 11:28:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8108         * predict.c (estimate_bb_frequencies): Do not reload the
8109         frequencies from notes.
8111 Wed Mar  6 10:59:39 CET 2002  Jan Hubicka  <jh@suse.cz>
8113         * cfgrtl.c (delete_insn_and_edges, delete_insn_chain_and_edges): New.
8114         * rtl.h (delete_insn_and_edges, delete_insn_chain_and_edges): Declare
8116         * basic-block.h (update_life_info, update_life_info_in_dirty_blocks,
8117         delete_noop_moves): Return indeger.
8118         * flow.c (ndead): New variable.
8119         (propagate_block_delete_insn): Use delete_insn_and_edges; remove
8120         BB argument; update callers.
8121         (propagate_block_delete_libcall): Use delete_insn_chain_and_edges.
8122         (life_analysis): Do not call purge_all_dead_edges.
8123         (update_life_info): Return number of deleted insns; print statistics.
8124         (update_life_info_in_dirty_blocks): likewise.
8125         (delete_noop_moves): Use delete_insn_and_edges; print statistics;
8126         return number of insns deleted.
8128         * cse.c: Include timevar.h
8129         (delete_trivially_dead_insns): Kill preserve_basic_blocks argument;
8130         iterate until stabilizes; print statistics; return number of killed
8131         insns.
8132         * Makefile.in: (cse.o): Add timevar.h dependency
8133         * rtl.h (delete_trivially_dead_insns): New.
8134         * timever.def: Add TV_DELETE_TRIVIALLY_DEAD timer.
8135         * toplev.c (rest_of_compilation): Update callers.
8137         * cfgcleanup.c (try_optimize_cfg): Kill blocks.
8138         (try_optimize_cfg): Do not update liveness.
8139         (cleanup-cfg): Loop until try_optimize_cfg and dead code
8140         removal stabilizes; use delete_trivially_dead_insns.
8142         * cfgrtl.c (verify_flow_info): Sanity check outgoing edges.
8144 2002-03-05  Zack Weinberg  <zack@codesourcery.com>
8146         * cppmain.c (setup_callbacks): Disable #pragma and #ident
8147         callbacks when processing assembly language.
8149 2002-03-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8151         * pa.h (ASM_FILE_END): Define.
8152         * som.h (ASM_FILE_END): Delete.
8154         * pa.c (function_arg): Don't pass floats in general registers in
8155         indirect calls if TARGET_ELF32.
8157 2002-03-05  Richard Henderson  <rth@redhat.com>
8159         * config/i386/i386.md (floatsidf2): Conditionalize on hard-float.
8161 2002-03-05  Danny Smith  <dannysmith@users.sourceforge.net>
8163         * gthr-win32.h (__GTHREAD_MUTEX_INIT_DEFAULT): Define.
8165 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8167         * mklibgcc.in: Prepend a tab before .hidden, add $flags to gcc
8168         -r command line.  Don't hide any symbols if not building
8169         shared libgcc.
8171 Tue Mar  5 18:31:27 CET 2002  Jan Hubicka  <jh@suse.cz>
8173         * cfg.c (dump_flow_info): Warn about profile mismatches.
8174         * cfgrtl.c (verify_flow_info): Few aditional sanity checks.
8175         (purge_dead_edges): Remove REG_BR_PROB notes on simplejumps.
8177 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8179         * expmed.c (emit_store_flag): Don't test BITS_PER_WORD * 2
8180         wide volatile memory by parts.
8182 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
8184         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't crash if def
8185         is NULL.
8187 2002-03-05  Richard Henderson  <rth@redhat.com>
8189         * rs6000.h (TOTAL_ALTIVEC_REGS): Fix off-by-one error.
8191 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
8193         * toplev.c (documented_lang_options): Document more
8194         language-specific options.
8195         * doc/invoke.texi (Warning Options): Correct documentation for
8196         -Wno-multichar, -Wno-div-by-zero, and -Wsystem-headers.
8197         * c-decl.c (c_decode_option): Use a table to handle warning options.
8199 2002-03-05  Hans-Peter Nilsson  <hp@bitrange.com>
8201         * config/mmix/mmix.h (ENCODE_SECTION_INFO): Pass on new second
8202         parameter to mmix_encode_section_info.
8203         (LINK_SPEC): Don't defsym __.MMIX.start..text if linking
8204         relocatably.  Always produce ELF, not mmo if linking relocatably.
8205         * config/mmix/mmix.c (mmix_encode_section_info): If new parameter
8206         first is non-zero, don't add symbol prefix.
8207         * config/mmix/mmix-protos.h (mmix_encode_section_info): Tweak
8208         prototype accordingly.
8210 2002-03-04  Krister Walfridsson  <cato@df.lth.se>
8212         * config.gcc (*-*-netbsd*): Add t-slibgcc-elf-ver to tmake_file.
8214 2002-03-05  Joseph S. Myers  <jsm28@cam.ac.uk>
8216         * configure.in: Increase required makeinfo version to 4.1.
8217         * configure: Regenerate.
8219 2002-03-04  Geoffrey Keating  <geoffk@redhat.com>
8221         * .cvsignore: Remove *.info* and genrtl*; these files are generated
8222         elsewhere now.
8224 2002-03-04  Joseph S. Myers  <jsm28@cam.ac.uk>
8226         * doc/include/texinfo.tex: Update to version 2002-03-01.06.
8227         * doc/invoke.texi: Fix @math uses.
8229 Mon Mar  4 15:33:54 CET 2002  Jan Hubicka  <jh@suse.cz>
8231         * toplev.c (rest_of_compilation): Cleanup CFG after dead jumptables
8232         removal
8234 2002-03-03  Aldy Hernandez  <aldyh@redhat.com>
8236         * config.gcc (powerpc-*-eabialtivec*): Use t-ppcendian.
8237         (powerpc-*-eabisimaltivec*): Same.
8239         * config/rs6000/t-ppcendian: New.
8241 2002-03-04  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
8243         * c4x-protos.h, c4x.h, c4x.c, c4x.md: Add new functions
8244         nonimmediate_src_operand and nonimmediate_lsrc_operand to
8245         disallow ZERO_EXTEND with CONST_INT or CONST_DOUBLE.
8247 2002-03-03  Richard Henderson  <rth@redhat.com>
8249         * toplev.c (rest_of_decl_compilation): Revert last two changes.
8251 2002-03-03  Zack Weinberg  <zack@codesourcery.com>
8253         * emit-rtl.c, final.c, fold-const.c, gengenrtl.c, optabs.c,
8254         print-tree.c, real.c, real.h, recog.c, rtl.c, simplify-rtx.c,
8255         tree.c, config/m68k/m68k.c:
8256         Remove all #ifndef REAL_ARITHMETIC blocks, make all #ifdef
8257         REAL_ARITHMETIC blocks unconditional.  Delete some further
8258         #ifdef blocks predicated on REAL_ARITHMETIC.
8259         * flags.h, toplev.c: Delete remaining references to
8260         flag_pretend_float.
8262         * doc/invoke.texi: Remove documentation of -fpretend-float.
8263         * doc/tm.texi: Describe the various REAL_* macros as provided by
8264         real.h, not by the target configuration files.
8266         * config/alpha/alpha.h, config/alpha/unicosmk.h, config/arm/arm.h,
8267         config/avr/avr.h, config/c4x/c4x.h, config/convex/convex.h,
8268         config/cris/cris.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
8269         config/h8300/h8300.h, config/i370/i370.h, config/i386/i386.h,
8270         config/i386/osf1elf.h, config/i960/i960.h, config/ia64/ia64.h,
8271         config/m32r/m32r.h, config/m68hc11/m68hc11.h, config/m68k/dpx2.h,
8272         config/m68k/linux-aout.h, config/m68k/linux.h, config/m68k/m68k.h,
8273         config/m68k/sun3.h, config/m68k/vxm68k.h, config/mcore/mcore.h,
8274         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
8275         config/mn10300/mn10300.h, config/pa/pa.h, config/pj/pj.h,
8276         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
8277         config/sparc/freebsd.h, config/sparc/linux.h, config/sparc/linux64.h,
8278         config/sparc/sol2.h, config/sparc/sparc.h, config/sparc/vxsim.h,
8279         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vax.h,
8280         config/xtensa/xtensa.h:
8281         Do not define, undefine, or mention in comments any of
8282         REAL_ARITHMETIC, REAL_VALUE_ATOF, REAL_VALUE_HTOF,
8283         REAL_VALUE_ISNAN, REAL_VALUE_ISINF,
8284         REAL_VALUE_TO_TARGET_SINGLE, REAL_VALUE_TO_TARGET_DOUBLE,
8285         REAL_VALUE_TO_TARGET_LONG_DOUBLE, REAL_VALUE_TO_DECIMAL,
8286         REAL_VALUE_TYPE, REAL_VALUES_EQUAL, REAL_VALUES_LESS,
8287         REAL_VALUE_LDEXP, REAL_VALUE_FIX, REAL_VALUE_UNSIGNED_FIX,
8288         REAL_VALUE_RNDZINT, REAL_VALUE_UNSIGNED_RNDZINT,
8289         REAL_INFINITY, REAL_VALUE_NEGATE, REAL_VALUE_TRUNCATE,
8290         REAL_VALUE_TO_INT, or REAL_VALUE_FROM_INT.
8292 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8294         * 1750a.h, a29k.h, alpha.h, arc.h, arm.h, avr.h, c4x.h, clipper.h,
8295         convex.h, cris.h, d30v.h, dsp16xx.h, elxsi.h, fr30.h, h8300.h,
8296         i370.h, i386.h, i860.h, i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h,
8297         m88k.h, mcore.h, mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h,
8298         pa.h, pdp11.h, pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h,
8299         stormy16.h, v850.h, vax.h, we32k.h, xtensa.h (BITS_PER_WORD):
8300         Delete.
8301         * defaults.h (BITS_PER_WORD): Define.
8302         * doc/tm.texi (BITS_PER_WORD): Document default value.
8304         * 1750a.h, avr.h, convex.h, d30v.h, dsp16xx.h, fr30.h, ia64.h,
8305         m68hc11.h, m88k.h, mips.h, pdp11.h, rs6000.h, sparc.c,
8306         stormy16.h, xtensa.h, vmsdbgout.c (CHAR_TYPE_SIZE): Delete.
8308 2002-03-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8310         * attribs.c (init_attributes, decl_attributes): Use ARRAY_SIZE in
8311         lieu of explicit sizeof/sizeof.
8312         * i386.c (override_options, ix86_init_mmx_sse_builtins,
8313         ix86_expand_builtin): Likewise.
8314         * mips.c (mips_add_gc_roots): Likewise.
8315         * mmix.c (mmix_output_condition): Likewise.
8316         * rs6000.c (rs6000_override_options, altivec_expand_builtin,
8317         altivec_init_builtins): Likewise.
8318         * sparc.c (mark_ultrasparc_pipeline_state): Likewise.
8319         * cppexp.c (Nsuff, parse_number): Likewise.
8320         * cppinit.c (builtin_array_end): Likewise.
8321         * gcc.c (n_default_compilers, process_command): Likewise.
8322         * genpreds.c (output_predicate_decls): Likewise.
8323         * ggc-page.c (NUM_EXTRA_ORDERS): Likewise.
8324         * lcm.c (N_ENTITIES): Likewise.
8325         * stor-layout.c (set_sizetype): Likewise.
8327 2002-03-03  Richard Henderson  <rth@redhat.com>
8329         * toplev.c (rest_of_decl_compilation): Do not invoke make_decl_rtl
8330         for types or labels.
8332 2002-03-03  Richard Henderson  <rth@redhat.com>
8334         * c-decl.c (start_decl): Initialized variables are not common.
8336 2002-03-02  Per Bothner  <per@bothner.com>
8338         * gcc.c (option_map):  Suport new --bootclasspath option.
8339         --CLASSPATH is now just an alias for --classpath.
8341 2002-03-02  Richard Henderson  <rth@redhat.com>
8343         * config/i386/i386.h (ix86_expand_prologue): Do not emit pic register
8344         load if "internal" visibility.
8345         * doc/extend.texi: Document visibility meanings.
8347 2002-03-02  Richard Henderson  <rth@redhat.com>
8349         * config/i386/i386.h (ENCODE_SECTION_INFO): MODULE_LOCAL_P applies
8350         to functions as well.
8352 2002-03-02  Richard Henderson  <rth@redhat.com>
8354         * attribs.c (handle_alias_attribute): Don't call assemble_alias.
8355         (handle_visibility_attribute): Don't call assemble_visibility.
8356         * toplev.c (rest_of_decl_compilation): Invoke make_decl_rtl even
8357         without asmspec.  Invoke assemble_alias when needed.
8358         * varasm.c (maybe_assemble_visibility): New.
8359         (assemble_start_function, assemble_variable, assemble_alias): Use it.
8361 2002-03-02  Richard Henderson  <rth@redhat.com>
8363         * varasm.c (make_decl_rtl): Remove call to REDO_SECTION_INFO_P;
8364         invoke ENCODE_SECTION_INFO with first call flag.
8366         * config/darwin-protos.h, config/darwin.c, config/darwin.h,
8367         config/a29k/a29k.h, config/alpha/alpha-protos.h, config/alpha/alpha.c,
8368         config/alpha/alpha.h, config/arc/arc.h, config/arm/arm-protos.h,
8369         config/arm/arm.h, config/arm/pe.c, config/arm/pe.h,
8370         config/avr/avr-protos.h, config/avr/avr.c, config/avr/avr.h,
8371         config/c4x/c4x-protos.h, config/c4x/c4x.c, config/c4x/c4x.h,
8372         config/cris/cris-protos.h, config/cris/cris.c, config/cris/cris.h,
8373         config/d30v/d30v.h, config/h8300/h8300.h, config/i370/i370.h,
8374         config/i386/cygwin.h, config/i386/i386-interix.h, config/i386/i386.h,
8375         config/i386/osfrose.h, config/i386/win32.h, config/i386/winnt.c,
8376         config/ia64/ia64-protos.h, config/ia64/ia64.c, config/ia64/ia64.h,
8377         config/m32r/m32r-protos.h, config/m32r/m32r.c, config/m32r/m32r.h,
8378         config/m68hc11/m68hc11-protos.h, config/m68hc11/m68hc11.c,
8379         config/m68hc11/m68hc11.h, config/m88k/m88k.h,
8380         config/mcore/mcore-protos.h, config/mcore/mcore.c,
8381         config/mcore/mcore.h, config/mips/mips.h, config/ns32k/ns32k.h,
8382         config/pa/pa.h, config/romp/romp.h, config/rs6000/linux64.h,
8383         config/rs6000/rs6000-protos.h, config/rs6000/rs6000.c,
8384         config/rs6000/sysv4.h, config/rs6000/xcoff.h, config/s390/s390.h,
8385         config/sh/sh.h, config/sparc/sparc.h,
8386         config/stormy16/stormy16-protos.h, config/stormy16/stormy16.c,
8387         config/stormy16/stormy16.h, config/v850/v850.h, config/vax/vms.h,
8388         config/xtensa/xtensa.h, doc/tm.texi: ENCODE_SECTION_INFO now takes
8389         FIRST argument.  As needed, examine it and do nothing.
8391         * config/darwin.h, config/alpha/alpha.h, config/arm/pe.h,
8392         config/i386/cygwin.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
8393         config/mcore/mcore.h: Remove REDO_SECTION_INFO_P.
8395         * config/arm/t-pe (pe.o): Add dependencies.
8397 2002-03-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8399         * a29k.h, alpha.h, arc.h, arm.h, avr.h, clipper.h, convex.h,
8400         cris.h, d30v.h, elxsi.h, fr30.h, h8300.h, i370.h, i386.h, i860.h,
8401         i960.h, ia64.h, m32r.h, m68hc11.h, m68k.h, m88k.h, mcore.h,
8402         mips.h, mmix.h, mn10200.h, mn10300.h, ns32k.h, pa.h, pdp11.h,
8403         pj.h, romp.h, rs6000.h, s390.h, sh.h, sparc.h, stormy16.h, v850.h,
8404         vax.h, we32k.h, xtensa.h: (BITS_PER_UNIT): Delete.
8405         * defaults.h (BITS_PER_UNIT): Define.
8406         * doc/tm.texi (BITS_PER_UNIT): Document default value.
8408 2002-03-02  Kazu Hirata  <kazu@hxi.com>
8410         * config/h8300/h8300-protos.h: Add a prototype for
8411         compute_a_shift_length.
8412         * config/h8300/h8300.c (h8300_asm_insn_count): New.
8413         (compute_a_shift_length): Likewise.
8414         (h8300_adjust_insn_length): Do not adjust insn length of shift
8415         insns.
8416         * config/h8300/h8300.md (anonymous shift patterns): Use
8417         compute_a_shift_length.
8419 Sat Mar  2 06:30:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8421         * config/sparc/sparc.c (sparc_initialize_trampoline): Use
8422         trunc_int_for_mode.
8424         * emit-rtl.c (offset_address): Call update_temp_slot_address.
8426 2002-03-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8428         * Makefile.in (CRTSTUFF_CFLAGS): Add -fno-zero-initialized-in-bss.
8429         * doc/invoke.texi (-fno-zero-initialized-in-bss): Document.
8430         * flags.h (flag_zero_initialized_in_bss): Declare.
8431         * toplev.c (flag_zero_initialized_in_bss): New flag.
8432         (lang_independent_options): Add flag_zero_initialized_in_bss.
8433         * tree.c (initializer_zerop): New function.
8434         * tree.h (initializer_zerop): Declare.
8435         * varasm.c (assemble_variable): If we can emit bss, put zero
8436         initializers in the bss section.
8438 2002-03-02  Alan Modra  <amodra@bigpond.net.au>
8440         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): AIX assembler doesn't
8441         like more than one symbol per .weak directive.
8443 2002-03-01  Richard Henderson  <rth@redhat.com>
8445         * config/ia64/ia64.c (ia64_initial_elimination_offset): Do not
8446         adjust argument_pointer by pretend_args_size.
8447         (ia64_va_start): Adjust va_start address by -pretend_args_size.
8449 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8451         * config/h8300/h8300.c (h8300_adjust_insn_length): Clean up.
8453 Fri Mar  1 20:59:14 CET 2002  Jan Hubicka  <jh@suse.cz>
8455         * toplev.c (rest_of_compilation): Delete dead jumptables before
8456         loop.
8457         * flow.c (delete_dead_jumptables): Make global.
8458         * rtl.h (delete_dead_jumptables): Declare.
8460 2002-03-01  David Edelsohn  <edelsohn@gnu.org>
8462         * config/rs6000/rs6000.h (HANDLE_PRAGMA_PACK): Delete.
8463         * config/rs6000/darwin.h (HANDLE_SYSV_PRAGMA): Define.
8464         * config/rs6000/xcoff.h (COLLECT_EXPORT_LIST): Delete.
8466 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8468         * config/h8300/h8300-protos.h: Fix formatting.
8469         * config/h8300/h8300.c: Likewise.
8470         * config/h8300/h8300.h: Likewise.
8472 2002-03-01  Kazu Hirata  <kazu@hxi.com>
8474         * config/h8300/h8300.c (print_operand): Support 16-bit
8475         constant addresses.
8476         * config/h8300/h8300.h (TINY_CONSTANT_ADDRESS_P): New.
8478 2002-02-28  Richard Henderson  <rth@redhat.com>
8480         * expmed.c (store_bit_field): Prevent generation of CONCATs;
8481         pun complex values as integers; use gen_lowpart instead of
8482         gen_rtx_SUBREG.
8483         (extract_bit_field): Likewise.
8485 2002-03-01  Alan Modra  <amodra@bigpond.net.au>
8486             David Edelsohn  <edelsohn@gnu.org>
8488         * doc/tm.texi (ASM_WEAKEN_DECL): Document.
8489         (ASM_WEAKEN_LABEL): Mention ASM_WEAKEN_DECL.
8490         (SUPPORTS_WEAK): Likewise.
8491         * output.h (add_weak): Add tree param.
8492         * varasm.c (add_weak): Likewise.  Save decl.
8493         (struct weak_syms): Add decl field.
8494         (mark_weak_decls): New function.
8495         (init_varasm_once): ggc_add_root mark_weak_decls.
8496         (assemble_start_function): Use ASM_WEAKEN_DECL.
8497         (assemble_variable): Likewise.
8498         (assemble_alias): Likewise.
8499         (declare_weak): Pass decl to add_weak.
8500         (weak_finish): Use ASM_WEAKEN_DECL. Try to find decl.
8501         (remove_from_pending_weak_list): Declare and define for
8502         ASM_WEAKEN_DECL.
8503         * c-pragma.c (handle_pragma_weak): Adjust add_weak call.
8504         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define if ASM_WEAKEN_DECL too.
8505         * defaults.h (SUPPORTS_WEAK): Likewise.
8506         * config/rs6000/linux64.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8507         .weak for code sym.  Do emit .size for descriptor sym.
8508         (ASM_DECLARE_FUNCTION_SIZE): Define.
8509         * config/rs6000/rs6000.h (ASM_WEAKEN_DECL): Define.
8510         (ASM_OUTPUT_DEF_FROM_DECLS): Don't emit .weak here.  Don't output
8511         .lglobl unless TARGET_XCOFF.  Formatting fixes.
8512         * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Don't emit
8513         .weak for code sym.
8514         (HANDLE_PRAGMA_WEAK): Remove.
8515         (ASM_WEAKEN_LABEL): Remove.
8516         * config/rs6000/aix.h (HANDLE_SYSV_PRAGMA): Define.
8518 2002-03-01  Jason Merrill  <jason@redhat.com>
8520         * tree.h (TARGET_EXPR_SLOT, TARGET_EXPR_INITIAL): New macros.
8521         (TARGET_EXPR_CLEANUP): New macro.
8523 2002-02-28  Steve Ellcey  <sje@cup.hp.com>
8525         * doc/rtl.texi (SUBREG_PROMOTED_UNSIGNED_P): Change definition
8526         to take ptr_extend into account as third type of extension.
8527         (SUBREG_PROMOTED_UNSIGNED_SET): Definition of new macro to set bit
8528         fields used by SUBREG_PROMOTED_UNSIGNED_P.
8529         * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): New macro.
8530         (SUBREG_PROMOTED_UNSIGNED_P): Change to return -1 as well as 0 or 1.
8531         * calls.c (precompute_arguments): Use new macro.
8532         (expand_call): Ditto.
8533         * combine.c (nonzero_bits): Ditto.
8534         (record_promoted_value): Ditto.
8535         * expr.c (store_expr): Ditto.
8536         (expand_expr): Ditto.
8537         * function.c (assign_parms): Ditto.
8539 2002-02-28  Alexandre Oliva  <aoliva@redhat.com>
8541         * gcc.c (init_gcc_specs): Get -static and -static-libgcc to
8542         override -shared and -shared-libgcc.
8544 2002-02-28  David O'Brien  <obrien@FreeBSD.org>
8546         * config.gcc (sparc64-*-freebsd): Explicitly accept a cpu specification
8547         of "ultrasparc".
8548         * config/sparc/freebsd.h: Do not use MASK_FASTER_STRUCTS.  It appears
8549         to be broken.
8551 2002-02-28  Richard Henderson  <rth@redhat.com>
8553         * config/ia64/ia64.c (ia64_adjust_cost): All non-MM consumers have
8554         4 cycle latency from MM producers.
8555         (ia64_internal_sched_reorder): Likewise with pipeline flush.
8557 2002-02-28  Jakub Jelinek  <jakub@redhat.com>
8559         * mklibgcc.in: Don't use GNU make extension.
8561 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8563         * c-parse.in (STATIC): New terminal.
8564         (scspec): New non-terminal.  Update productions accordingly.
8565         (program): Remove bogus ifc / end ifc.
8566         (array_declarator): Simplify production using STATIC.
8568 2002-02-28  Jim Meyering  <meyering@lucent.com>
8570         * cpplex.c (cpp_parse_escape): Restore mistakenly-removed code:
8571         \a still means TARGET_BELL.
8573 2002-02-28  Richard Henderson  <rth@redhat.com>
8575         * haifa-sched.c (sched_emit_insn): New.
8576         (schedule_block): Use last_scheduled_insn to track last insn.
8577         * sched-int.h (sched_emit_insn): Prototype.
8578         * config/ia64/ia64.c (last_issued): Remove.
8579         (ia64_variable_issue): Don't set it.
8580         (nop_cycles_until): Use sched_emit_insn.
8582 2002-02-28  Andrew MacLeod  <amacleod@redhat.com>
8584         * config/sparc/sparc.c (sparc64_initialize_trampoline): Generate sign
8585         extended constants.
8587 2002-02-28  Kazu Hirata  <kazu@hxi.com>
8589         * config/h8300/h8300.c: Fix formatting.
8590         * config/h8300/h8300.h: Likewise.
8592 2002-02-28  Marek Michalkiewicz  <marekm@amelek.gda.pl>
8594         * config/avr/avr.c (avr_hard_regno_mode_ok): Do not allow r29
8595         which may overwrite the high byte of the frame pointer.
8597 2002-02-28  Bo Thorsen  <bo@suse.de>
8599         * config/i386/linux64.h (LINK_SPEC): Fix 32/64 bit compilation.
8600         (STARTFILE_SPEC): Add 64 bit files.
8601         (ENDFILE_SPEC): Likewise.
8603 2002-02-28  Jason Merrill  <jason@redhat.com>
8605         * c-decl.c (finish_function): Only warn about missing return
8606         statement with -Wreturn-type.
8608 Don Feb 28 11:24:30 CET 2002  Jan Hubicka  <jh@suse.cz>
8610         * cfgrtl.c (purge_dead_edges): Fix handling of EH edges.
8612         * i386.h (CONDITIONAL_REGISTER_USAGE): Do not write to
8613         PIC_OFFSET_TABLE_REGNUM when it is INVALID_REGNUM
8615 Don Feb 28 11:07:36 CET 2002  Jan Hubicka  <jh@suse.cz>
8617         * basic-block.h (BB_REACHABLE): Renumber.
8618         (BB_DIRTY, BB_NEW): New flags.
8619         (clear_bb_flags): Declare.
8620         (update_life_info_in_dirty_blocks): Declare.
8621         * cfg.c (clear_bb_flags): New function.
8622         * cfgrtl.c (create_basic_block_structure): Set flags to BB_NEW.
8623         * emit-rtl.c (add_insn_after, add_insn_before, remove_insn,
8624         reorder_insns, emit_insn_after): Mark block as dirty.
8625         * flow.c (update_life_info): Fix clearing of PROP_LOG_LINKS.
8626         (update_life_info_in_dirty_blocks): New function.
8627         * recog.c (apply_change_group): Dirtify block.
8629         * cse.c (cse_insn): Reorder emitting of jump insn to keep
8630         cfg consistent.
8631         * gcse.c (delete_null_pointer_checks): Likewise.
8633         * toplev.c (dump_file_index): Move cse2 after bp,
8634         add DFI_null
8635         (dump_file_info): Similary.
8636         (rest_of_compilation): Avoid most of CFG rebuilds;
8637         do first if converision after null pointer checks, do cse2
8638         after branch prediction; avoid full liveness rebuild after
8639         initializing subregs.
8640         * invoke.texi (-d options): Document -du, renumber.
8642         * cfgcleanup.c (bb_flags): Remove BB_UPDATE_LIFE.
8643         (notice_new_block): Do not set BB_UPDATE_LIFE.
8644         (try_forward_edges, merge_blocks_move_predecessor_nojumps,
8645          merge_blocks_move_successor_nojumps, merge_blocks,
8646          try_crossjump_to_edge): Likewise.
8647         (try_optimize_cfg): Likewise; use update_life_info_in_dirty_blocks.
8648         * cfgrtl.c (merge_blocks_nomove): Copy b's flags to a.
8649         * ifcvt.c (SET_UPDATE_LIFE, UPDATE_LIFE): Kill.
8650         (merge_of_block): Do not use life_data_ok.
8651         (find_if_case_1): Do not use SET_UPDATE_LIFE.
8652         (if_convert): Use BB_DIRTY mechanizm to update life.
8653         * lcm.c (optimize_mode_switching): Update
8654         update_life_info_in_dirty_blocks
8656 2002-02-28  Neil Booth  <neil@daikokuya.demon.co.uk>
8658         * Makefile.in (integrate.o): Update.
8659         * c-decl.c (copy_lang_decl): Rename.
8660         * c-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8661         * integrate.c: Include langhooks.h.
8662         (copy_decl_for_inlining): Update to use langhook.
8663         * langhooks-def.h (lhd_do_nothing_t,
8664         LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): New.
8665         (LANG_HOOKS_INITIALIZER): Update.
8666         * langhooks.c (lhd_do_nothing_t): New.
8667         * langhooks.h (struct lang_hooks): Add dup_lang_specific_decl.
8668         * tree.h (copy_lang_decl): Remove.
8669 objc:
8670         * objc-lang.c (LANG_HOOKS_DUP_LANG_SPECIFIC_DECL): Redefine.
8672 2002-02-27  Andrew MacLeod  <amacleod@redhat.com>
8674         * dwarf2out.c (stack_adjust_offset): Add support for POST_INC,
8675         POST_DEC, and POST_MODIFY.
8677 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8679         * c-typeck.c (digest_init): Remove unused parameter; all
8680         callers changed.
8682 2002-02-27  Geoffrey Keating  <geoffk@redhat.com>
8684         * expmed.c (expand_shift): Correctly test for low part of a
8685         subreg.
8687 2002-02-27  Ulrich Weigand  <uweigand@de.ibm.com>
8689         * config/s390/s390.c (s390_chunkify_pool): Do not confuse
8690         insn UIDs with insn addresses.
8692 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8694         * c-common.c, c-common.h, c-decl.c, c-lex.c, c-parse.in,
8695         c-tree.h, c-typeck.c, cppexp.c, cpplex.c, cpplib.c, cpplib.h,
8696         cppmacro.c, objc/lang-specs.h, objc/objc-act.c,
8697         builtin-types.def, builtins.def, dwarf2out.c, dwarfout.c,
8698         gcc.c, toplev.c: Delete code implementing -traditional mode.
8700         * doc/bugreport.texi, doc/cpp.texi, doc/extend.texi,
8701         doc/invoke.texi, doc/standards.texi, doc/trouble.texi:
8702         Document removal of -traditional mode for compilation, and
8703         remove documentation only relevant to that mode.
8705         * config/nextstep.h, config/ptx4.h, config/svr4.h,
8706         config/convex/convex.h, config/d30v/d30v.h,
8707         config/i386/dgux.h, config/i386/osf1elf.h,
8708         config/i386/osfelf.h, config/i386/osfrose.h,
8709         config/i386/sco5.h, config/i386/sol2.h, config/m68k/a-ux.h,
8710         config/m68k/hp310.h, config/m88k/dgux.h,
8711         config/m88k/dguxbcs.h, config/m88k/luna.h, config/m88k/m88k.c,
8712         config/m88k/m88k.h, config/m88k/openbsd.h,
8713         config/mips/abi64.h, config/mips/osfrose.h,
8714         config/mips/svr4-5.h, config/mips/svr4-t.h,
8715         config/sparc/sol2-sld-64.h, config/sparc/sol2.h,
8716         config/stormy16/stormy16.h: Remove all references to
8717         -traditional from target specs.  Delete all mention of the
8718         no-longer-necessary TRADITIONAL_RETURN_FLOAT macro.  Also
8719         delete a couple of commented-out definitions of
8720         DOLLARS_IN_IDENTIFIERS, with (incorrect) commentary referring
8721         to -traditional.
8723         * system.h: Poison TRADITIONAL_RETURN_FLOAT.
8724         * doc/tm.texi: Remove mention of TRADITIONAL_RETURN_FLOAT macro.
8726 2002-02-27  Zack Weinberg  <zack@codesourcery.com>
8728         * mklibgcc.in: Don't use \n in a line subject to
8729         interpretation by echo.
8731 2002-02-27  Graham Stott  <grahams@redhat.com>
8733         * config/rs6000/rs6000.h (ASM_OUTPUT_DEF_FROM_DELC):
8734         Constify NAME.
8736         * loop.c (prescan_loop): Handle PARALLEL.
8738         * unroll.c (loop_iterations): Return 0 if the add_val for
8739         a BIV is REG.
8741         * final.c (output_operand_lossage): Constify PFX_STR.
8743         * df.c (df_insn_refs_record): Use XEXP (x, 0) for USE.
8745 Wed Feb 27 10:45:19 CET 2002  Jan Hubicka  <jh@suse.cz>
8747         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Remove.
8748         * x86-64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Allways define.
8750 Wed Feb 27 10:39:20 CET 2002  Jan Hubicka  <jh@suse.cz>
8752         * linux64.h (ASM_OUTPUT_MAX_SKIP_ALIGN): Define.
8754 2002-02-27  Neil Booth  <neil@daikokuya.demon.co.uk>
8756         * cpplex.c (_cpp_lex_token): Handle directives in macro
8757         arguments.
8758         * cpplib.c (_cpp_handle_directive): Save and restore state
8759         if parsing macro args when entering a directive.
8760         * cppmacro.c (collect_args): No need to handle directives
8761         in macro arguments.
8762         (enter_macro_context, replace_args): Use the original macro
8763         definition in case it was redefined whilst collecting arguments.
8764 doc:
8765         * cpp.texi: Update.
8767 2002-02-26  David Edelsohn  <edelsohn@gnu.org>
8769         * config/rs6000/aix43.h (THREAD_MODEL_SPEC): Delete.
8770         * config/rs6000/aix51.h (THREAD_MODEL_SPEC): Delete.
8771         * config/rs6000/rs6000.c (rs6000_return_addr): Use efficient
8772         method on AIX.
8773         * config/rs6000/rs6000.md (movsi_low): Use gpc_reg_operand.
8774         (movsi_low_st, movdf_low, movdf_low_st, movsf_low, movsf_low_st): Same.
8775         (load_toc_v4_PIC_2): Same.
8777 2002-02-26  Alan Modra  <amodra@bigpond.net.au>
8779         * config/rs6000/rs6000.md (load_toc_aix_di): Handle TARGET_RELOCATABLE.
8781 2002-02-26  Richard Henderson  <rth@redhat.com>
8783         * config/alpha/alpha.md (ashldi_se): Re-enable.
8785 2002-02-26  Richard Henderson  <rth@redhat.com>
8787         * config/alpha/alpha.c (alpha_encode_section_info): Examine
8788         MODULE_LOCAL_P; improve commentary.
8790 2002-02-26  Zack Weinberg  <zack@codesourcery.com>
8792         * doc/cpp.texi: Clarify documentation of relationship between
8793         #line and #include.
8795 2002-02-26  Kazu Hirata  <kazu@hxi.com>
8797         * config/h8300/h8300-protos.h: Update the prototype for
8798         compute_logical_op_length.  Add the prototype for
8799         compute_logical_op_cc.
8800         * config/h8300/h8300.c (compute_logical_op_length): Figure out
8801         code from operands.
8802         (compute_logical_op_cc): New.
8803         * config/h8300/h8300.md: Combine all the logical op patterns
8804         in HImode and SImode.  Use compute_logical_op_cc.
8806 2002-02-26  Kelley Cook  <kelleycook@comcast.net>
8808         * config/i386/i386.c (print_operand): Don't append ATT-style
8809         length suffixs to x87 opcodes when in Intel mode.
8811 2002-02-26  Ryan T. Sammartino <ryants@shaw.ca>
8813         * emit-rtl.c (gen_const_vector_0): Remove TYPE argument.
8814         (init_emit_once): Update calls.
8815         * fixinc/gnu-regex.c (_GNU_SOURCE): Remove.
8816         (init_syntax_once): Prototype.
8818 2002-02-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8820         * pa-linux.h (LIB_SPEC): Update definition.
8821         * pa32-linux.h (LINK_COMMAND_SPEC): Delete.
8823 2002-02-26  Richard Henderson  <rth@redhat.com>
8825         * config/ia64/ia64.c (nop_cycles_until): Do init_insn_group_barriers
8826         if we emitted a stop bit.
8828 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
8830         * configure.in (libgcc_visibility): Substitute.
8831         * configure: Rebuilt.
8832         * mklibgcc.in: If libgcc_visibility = yes, make libgcc.a global
8833         defined symbols .hidden.
8835 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
8837         * attribs.c (c_common_attribute_table): Add visibility.
8838         (handle_visibility_attribute): New function.
8839         * varasm.c (assemble_visibility): New function.
8840         * output.h (assemble_visibility): Add prototype.
8841         * tree.h (MODULE_LOCAL_P): Define.
8842         * crtstuff.c (__dso_handle): Use visibility attribute.
8843         * config/i386/i386.h (ENCODE_SECTION_INFO): Set SYMBOL_REF_FLAG
8844         for MODULE_LOCAL_P symbols too.
8845         * config/ia64/ia64.c (ia64_encode_section_info): Handle
8846         MODULE_LOCAL_P symbols the same way as local symbols.
8847         Add SDATA_NAME_FLAG_CHAR even if decl was explicitely forced
8848         into .sdata/.sbss by the user.
8849         * doc/extend.texi (Function Attributes): Document visibility
8850         attribute.
8852 2002-02-26  Jakub Jelinek  <jakub@redhat.com>
8854         PR debug/5770
8855         * dwarf2out.c (rtl_for_decl_location): Return CONST_STRING for
8856         STRING_CST initializer spanning the whole variable without
8857         embedded zeros.
8858         If expand_expr returned MEM, don't use it.
8860 2002-02-26  Alexandre Oliva  <aoliva@redhat.com>
8862         * dwarf2out.c (gen_inlined_subroutine_die): If block is abstract,
8863         generate a die for the lexical block.
8865 2002-02-26  Kazu Hirata  <kazu@hxi.com>
8867         * config/h8300/h8300-protos.h: Add a prototype for
8868         compute_logical_op_length.
8869         * config/h8300/h8300.c (compute_logical_op_length): New.
8870         * config/h8300/h8300.md (anonymous logical patterns): Use
8871         compute_logical_op_length for length.
8873 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
8875         * dwarf2out.c (modified_type_die): Do not call type_main_variant
8876         for vectors.
8877         (gen_type_die): Same.
8879         * attribs.c (handle_vector_size_attribute): Set debug information.
8881 2002-02-26  Daniel Egger  <degger@fhm.edu>
8883         * config/rs6000/rs6000.md: Swap define_insn attributes to
8884         fix incorrect generation of merge high instructions instead
8885         of merge low.
8887 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
8889         * c-typeck.c (really_start_incremental_init): Use
8890         bitsize_zero_node for vectors.
8892 2002-02-26  Aldy Hernandez  <aldyh@redhat.com>
8894         * config/rs6000/rs6000.md (get_vrsave_internal): Fix typo.
8895         ("*set_vrsave_internal"): Same.
8897 2002-02-25  Richard Henderson  <rth@redhat.com>
8899         * expr.c (expand_expr) [MULT_EXPR]: Do not apply distributive law
8900         in EXPAND_SUM case.  Use host_integerp/tree_low_cst.
8902 2002-02-25  Jakub Jelinek  <jakub@redhat.com>
8904         PR target/5755
8905         * config/i386/i386.c (ix86_return_pops_args): Only pop
8906         fake structure return argument if it was passed on the stack.
8908 2002-02-25  Jason Merrill  <jason@redhat.com>
8910         * attribs.c (decl_attributes): Also re-layout PARM_DECL and
8911         RESULT_DECL.
8913 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
8915         * gcc.c (init_gcc_specs): Get -shared-libgcc along with -shared to
8916         link with shared_name only.
8917         * doc/invoke.texi (Link Options): Document new behavior.
8919 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
8921         * c-typeck.c (push_init_level): Handle vectors.
8923 2002-02-25  Alexandre Oliva  <aoliva@redhat.com>
8925         * config/sparc/sparc.c (const64_high_operand): Zero-extend
8926         operands of SPARC_SETHI_P.
8927         (input_operand): Likewise.
8928         (sparc_emit_set_const32): Likewise.
8929         * config/sparc/sparc.h (SPARC_SETHI_P): Disregard TARGET_ARCH64.
8930         (SPARC_SETHI32_P): Zero-extend operand from 32 bits.
8931         (CONST_OK_FOR_LETTER_P): Use SETHI32 for `K'.  Add `N' as SETHI.
8932         * config/sparc/sparc.md (movdi_insn_sp64_novis): Use `N'.
8933         (movdi_insn_sp64_vis): Likewise.
8934         (movdi split, movdf split): Use SETHI32.
8935         * doc/md.texi: Document SPARC constraints L, M and N.
8937 2002-02-25  Aldy Hernandez  <aldyh@redhat.com>
8939         * config/rs6000/rs6000.md ("get_vrsave_internal"): New.
8940         ("*set_vrsave_internal"): use mfspr for Darwin.
8942         * config/rs6000/rs6000.c (rs6000_emit_prologue): Call
8943         gen_get_vrsave_internal.
8945 Sun Feb 24 16:38:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8947         * optabs.c (widen_operand): Properly handle CONST_INT for NO_EXTEND.
8949 2002-02-24  Neil Booth  <neil@daikokuya.demon.co.uk>
8951         * cpplex.c (cpp_interpret_charconst): Get signedness or
8952         otherwise of wide character constants correct.
8953         * cppexp.c (lex): Get signedness of wide charconsts correct.
8955 Sun Feb 24 07:41:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8957         * optabs.c (widen_operand): Only call convert_modes for
8958         promoted SUBREG if signedness matches.
8959         * config/alpha/alpha.md (*addsi_se2, *subsi_se2): New patterns.
8961 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8963         * cpplib.c (glue_header_name): Use local buffer to build up
8964         header name.
8966 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8968         * doc/cpp.texi, doc/invoke.texi: Update documentation for -MM.
8970 2002-02-23  Kazu Hirata  <kazu@hxi.com>
8972         * config/h8300/h8300.c (output_simode_bld): Handle H8/300 and
8973         H8/300[HS] separately.
8974         * config/h8300/h8300.md: Remove the early clobber constraint
8975         from bit field patterns.
8977 2002-02-23  Kazu Hirata  <kazu@hxi.com>
8979         * config/h8300/h8300.md (mulqihi3): Tighten predicates to
8980         register_operand.
8981         (mulhisi3): Likewise.
8982         (umulqisi3): Likewise.
8983         (umulhisi3): Likewise.
8985 2002-02-23  Neil Booth  <neil@daikokuya.demon.co.uk>
8987         * cppinit.c (output_deps): Correct test for stdout output.
8988         (init_dependency_output): Cure warning.
8990 Sat Feb 23 08:42:47 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8992         * expr.c (store_expr): When converting expression to promoted
8993         equivalent type, allow using SUBREG_REG of TARGET as the target
8994         of the expansion of EXP.
8995         * loop.c (basic_induction_var, case SUBREG): Always look inside.
8996         * config/alpha/alpha.c (rtx_equiv_function_matters): Delete decl.
8997         (alpha_emit_set_const): Handle SImode when can't make new pseudos.
8998         (alpha_emit_set_const_1, alpha_sa_mask): Use no_new_pseudos.
8999         * config/alpha/alpha.md (addsi3, subsi3): Don't use if optimizing.
9001 2002-02-23  Joseph S. Myers  <jsm28@cam.ac.uk>
9003         * doc/contribute.texi, doc/extend.texi, doc/install.texi,
9004         doc/invoke.texi, doc/md.texi, doc/passes.texi, doc/rtl.texi,
9005         doc/standards.texi, doc/tm.texi: Remove trailing whitespace.
9007 2002-02-23  Jakub Jelinek  <jakub@redhat.com>
9009         PR optimization/5747
9010         * loop.c (scan_loop): Update reg info if move_movables created new
9011         pseudos.
9013 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
9015         * gcc.c (init_gcc_spec): Revert last change.
9017 2002-02-23  David Edelsohn  <edelsohn@gnu.org>
9019         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Use
9020         gpc_reg_operand constraint.
9022 2002-02-23  Alan Modra  <amodra@bigpond.net.au>
9024         * config/rs6000/rs6000.c (num_insns_constant): Fix formatting.
9025         Simplify comparison of `low'.
9026         (add_operand): Fix formatting.
9027         (non_add_cint_operand): Use CONST_OK_FOR_LETTER_P.
9028         (mask_operand): Disallow mask to wrap in 64-bit mode.
9029         (rs6000_stack_info): Remove redundant test setting push_p.
9030         (output_toc): Fix formatting.
9031         * config/rs6000/rs6000.md (boolsi3, boolcsi3 splitters): Use
9032         cc_reg_not_cr0_operand constraint.
9033         (booldi3, boolcdi3 splitters): Same.
9035 2002-02-23  Aldy Hernandez  <aldyh@redhat.com>
9037         * config/rs6000/altivec.h: Add extra level of parentheses on casts.
9039 2002-02-22  David Edelsohn  <edelsohn@gnu.org>
9041         * gcc.c (init_gcc_spec): Do not link with static libgcc.a if
9042         gcc invoked with -shared-libgcc.
9044 2002-02-22  Jakub Jelinek  <jakub@redhat.com>
9046         PR c++/5748
9047         * stmt.c (expand_anon_union_decl): Set TREE_USED on the anon union
9048         decl if any of elements was TREE_USED.
9050 2002-02-22  Alexandre Oliva  <aoliva@redhat.com>
9052         * config/sparc/sol2.h: Don't include sys/mman.h.
9053         * config/sparc/sparc.c (arith_operand): Use SMALL_INT32.
9054         (arith_4096_operand): Don't throw high bits away.
9055         (const64_operand): Take sign extension of CONST_INTs into account.
9056         (const64_high_operand, sparc_emit_set_const32): Likewise.
9057         (GEN_HIGHINT64): Likewise.
9058         (sparc_emit_set_const64_quick1): Likewise.
9059         (const64_is_2insns): Likewise.
9060         (print_operand): Use trunc_int_for_mode for sign extension.
9061         * config/sparc/sparc.h (SMALL_INT32): Likewise.
9062         * config/sparc/sparc.md (movqi): Sign-extend CONST_DOUBLE
9063         chars.  Assume CONST_INT is already properly sign-extended.
9064         (movdi split): Sign-extend each SImode part.
9065         (andsi3 split): Don't mask high bits off, so that result
9066         remains properly sign-extend.
9067         (iorsi3 split): Likewise.
9068         (xorsi3 split): Likewise.
9070 2002-02-22  Richard Sandiford  <rsandifo@redhat.com>
9072         * fold-const.c (fold): Fix typo in comments.
9074 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
9076         * Makefile.in (langhooks.o): Update dependencies.
9078 2002-02-21  Diego Novillo  <dnovillo@redhat.com>
9080         * langhooks.c: Include flags.h.
9082 2002-02-21  Aldy Hernandez  <aldyh@redhat.com>
9084         * testsuite/gcc.dg/attr-alwaysinline.c: New.
9086         * c-common.c (c_common_post_options): Set inline trees by
9087         default.
9089         * doc/extend.texi (Function Attributes): Document always_inline
9090         attribute.
9091         Update documentation about inlining when not optimizing.
9093         * cp/decl.c (duplicate_decls): Merge always_inline attribute.
9095         * cp/tree.c (cp_cannot_inline_tree_fn): Do not inline at -O0
9096         unless DECL_ALWAYS_INLINE.
9098         * c-objc-common.c (c_cannot_inline_tree_fn): Do not inline at -O0
9099         unless DECL_ALWAYS_INLINE.
9100         (c_disregard_inline_limits): Disregard if always_inline set.
9102         * langhooks.c (lhd_tree_inlining_disregard_inline_limits):
9103         Disregard if always_inline set.
9104         (lhd_tree_inlining_cannot_inline_tree_fn): Do not inline at -O0
9105         unless DECL_ALWAYS_INLINE.
9107         * attribs.c (handle_always_inline_attribute): New.
9108         (c_common_attribute_table): Add always_inline.
9110         * config/rs6000/altivec.h: Add prototypes for builtins
9111         requiring the always_inline attribute.
9113 2002-02-21  Eric Christopher  <echristo@redhat.com>
9115         * expmed.c (store_bit_field): Try to simplify the subreg
9116         before generating a new one when when the mode size of
9117         value is less than maxmode.
9119 2002-02-21  Richard Henderson  <rth@redhat.com>
9121         * emit-rtl.c (offset_address): Use simplify_gen_binary rather
9122         than gen_rtx_PLUS to form the sum.
9123         * explow.c (force_reg): Rearrange to not allocate new pseudo
9124         when force_operand returns a register.
9125         * expr.c (expand_assignment): Allow offset_rtx expansion to
9126         return a sum.  Do not force addresses into registers.
9127         (expand_expr): Likewise.
9128         * simplify-rtx.c (simplify_gen_binary): Use simplify_plus_minus
9129         to canonicalize arithmetic that didn't simpify.
9130         (simplify_plus_minus): New argument force; update
9131         all callers.  Don't split CONST unless we can do something with it,
9132         and wouldn't lose the constness of the operands.
9134         * config/i386/i386.c (legitimize_pic_address): Recognize UNSPECs
9135         that we generated earlier.
9137 2002-02-21  Tom Tromey  <tromey@redhat.com>
9139         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9140         (output_line_info): Use constant `1', with a long explanatory
9141         comment.
9142         * system.h (DWARF_LINE_MIN_INSTR_LENGTH): Poison.
9144 Thu Feb 21 22:43:44 2002  J"orn Rennecke <joern.rennecke@superh.com>
9146         * jump.c (redirect_jump): If old label has no UID, don't try to
9147         delete it.
9149 Thu Feb 21 21:17:21 2002  J"orn Rennecke <joern.rennecke@superh.com>
9151         * sh.md (insv): Provide byte offsets for gen_rtx_SUBREG.
9152         If input is constant, do shifts at compile time.
9154 2002-02-21  Joseph S. Myers  <jsm28@cam.ac.uk>
9156         * doc/extend.texi: Fix some more overfull hboxes.
9158 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9160         PR optimization/4994
9161         * config/i386/i386.md (movsi_1, movsf_1): Support MMX -> MMX
9162         register moves.
9164 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9166         PR c++/4574
9167         * expr.h (expand_and): Add mode argument.
9168         * expmed.c (expand_and): Add mode argument.
9169         (expand_mult_highpart_adjust, emit_store_flag): Adjust callers.
9170         * expr.c (store_field, expand_expr, do_store_flag): Likewise.
9171         * except.c (expand_builtin_extract_return_addr): Likewise.
9172         * config/alpha/alpha.c (alpha_initialize_trampoline): Likewise.
9173         * config/sparc/sparc.c (sparc_initialize_trampoline): Likewise.
9174         * config/c4x/c4x.h (INITIALIZE_TRAMPOLINE): Likewise.
9175         Use GEN_INT (x) instead of gen_rtx (CONST_INT, VOIDmode, x).
9176         * config/c4x/c4x.md: Use GEN_INT (x) instead of
9177         gen_rtx (CONST_INT, VOIDmode, x).
9179 2002-02-21  Jakub Jelinek  <jakub@redhat.com>
9181         PR c/4697:
9182         * stmt.c (warn_if_unused_value): Move side effects test once more.
9184 2002-02-20  Torbjorn Granlund  <tege@swox.com>
9186         * config/avr/avr.md: Add more patterns for mized-mode add and subtract
9187         (addsi3_zero_extend, subhi3_zero_extend1, subsi3_zero_extend).
9189 Thu Feb 21 16:20:46 2002  Alexandre Oliva  <aoliva@redhat.com>
9191         * rtlanal.c (replace_rtx): Don't make a CONST_INT the operand of
9192         SUBREG or ZERO_EXTEND.
9194 Thu Feb 21 15:35:46 2002  J"orn Rennecke <joern.rennecke@superh.com>
9196         * sh.h (current_function_anonymous_args): Remove.
9197         (SETUP_INCOMING_VARARGS): Don't set it - just check that one
9198         of current_function_varargs and current_function_stdarg is set.
9199         * sh.c (sh_expand_prologue): Check current_function_varargs /
9200         current_function_stdarg / TARGET_SH5 instead of
9201         current_function_anonymous_args.
9203         * sh64.h (TARGET_VERSION): Define.
9205 2002-02-20  David Edelsohn  <edelsohn@gnu.org>
9207         * config/rs6000/rs6000.h (EPILOGUE_USES): Conditionalize
9208         VRSAVE_REGNO on TARGET_ALTIVEC.
9210 2002-02-20  Alan Modra  <amodra@bigpond.net.au>
9212         * config/rs6000/rs6000.c (includes_lshift_p): Mask irrelevant
9213         bits of SImode const_int.
9214         (includes_rshift_p): Likewise.
9215         (print_operand): Call mask_operand and mask64_operand with correct
9216         mode.
9217         (rs6000_output_function_epilogue): Pad traceback table to word.
9218         * config/rs6000/rs6000.h (MASK_64BIT): Correct comment.
9219         (EXTRA_CONSTRAINT, 'S' and 'T'): Call mask_operand and
9220         mask64_operand with correct mode.
9221         (FUNCTION_ARG_REGNO_P): Correct parentheses.
9223 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9225         PR debug/4461
9226         * varasm.c (get_pool_constant_mark): New.
9227         * rtl.h (get_pool_constant_mark): Add prototype.
9228         * dwarf2out.c (mem_loc_descriptor): A pool constant cannot
9229         be represented if it has not been output.
9231 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
9233         * combine.c (do_SUBST): Sanity check substitutions of
9234         CONST_INTs, and reject them in SUBREGs and ZERO_EXTENDs.
9235         (subst): Simplify SUBREG or ZERO_EXTEND instead of SUBSTing a
9236         CONST_INT into its operand.
9237         (known_cond): Likewise, for ZERO_EXTEND.
9238         * simplify-rtx.c (simplify_unary_operation): Fix condition to
9239         allow for simplification of wide modes.  Reject CONST_INTs in
9240         ZERO_EXTEND when their actual mode is not given.
9242 2002-02-20  Alexandre Oliva  <aoliva@redhat.com>
9244         * c-decl.c (pushdecl): If no global declaration is found for an
9245         extern declaration in block scope, try a limbo one.
9247 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9249         PR c++/4401
9250         * c-common.c (pointer_int_sum): Moved from...
9251         * c-typeck.c (pointer_int_sum): ...here.
9252         * c-common.h (pointer_int_sum): Add prototype.
9254 2002-02-20  Jakub Jelinek  <jakub@redhat.com>
9256         PR c++/5713
9257         * c-decl.c (duplicate_decls): Return 0 if issued error about
9258         redeclaration.
9260 2002-02-20  Roger Sayle  <roger@eyesopen.com>
9261             Jakub Jelinek  <jakub@redhat.com>
9263         PR c/4389
9264         * tree.c (host_integerp): Ensure that the constant integer is
9265         representable in a HOST_WIDE_INT or an unsigned HOST_WIDE_INT
9266         when pos is zero or non-zero respectively.  Clarify comment.
9267         * c-format.c (check_format_info_recurse): Fix host_integerp
9268         usage; the pos argument should be zero when assigning to a
9269         signed HOST_WIDE_INT.
9271 2002-02-20  Richard Henderson  <rth@redhat.com>
9273         * config/i386/i386.c (ix86_expand_vector_move): Use the mode
9274         of the operand, rather than assuming TImode.
9275         (ix86_expand_binop_builtin): Cope with commutative patterns
9276         using nonimmediate_operand for both operands.
9277         (ix86_expand_timode_binop_builtin): Likewise.
9278         (ix86_expand_store_builtin): Validate operand 1.
9279         (ix86_expand_unop1_builtin): Likewise.
9281 2002-02-20  Philip Blundell  <philb@gnu.org>
9283         PR 5705
9284         * config/arm/arm.h (HARD_REGNO_RENAME_OK): New macro.
9286 2002-02-20  Richard Henderson  <rth@redhat.com>
9288         PR c/5615
9289         * expr.h (ARGS_SIZE_TREE): Convert size.var to ssizetype.
9291 2002-02-20  Tom Tromey  <tromey@redhat.com>
9293         * config/fr30/fr30.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9294         * config/sh/sh.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9295         * config/pj/pj.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9296         * config/cris/cris.h (DWARF_LINE_MIN_INSTR_LENGTH): Removed.
9297         * dwarf2out.c (DWARF_LINE_MIN_INSTR_LENGTH): Define
9298         unconditionally.
9300 Wed Feb 20 00:03:25 EST 2002 Alan Matsuoka <alanm@redhat.com>
9302         * config/rs6000/rs6000.h (LEGITIMATE_OFFSET_ADDRESS_P): Look
9303           for (const_int 0) in X not just INTVAL.
9305 2002-02-20  Joseph S. Myers  <jsm28@cam.ac.uk>
9307         * doc/extend.texi: Avoid or reduce overfull hboxes.
9309 2002-02-20  Diego Novillo  <dnovillo@redhat.com>
9311         * expmed.c (store_bit_field): Do not store bit fields using SUBREG
9312         operations if the field does not start at a mode boundary.
9314 2001-02-20      Joel Sherrill <joel@OARcorp.com>
9316         * config/a29k/rtems.h, config/arm/rtems-elf.h, config/h8300/rtems.h,
9317         config/mips/rtems.h: Use new style of -Asystem= rather than -Asystem().
9318         Also done for -Acpu and -Amachine.
9320 2002-02-20  Neil Booth  <neil@daikokuya.demon.co.uk>
9322         * cppinit.c (init_dependency_output): Take deps output file
9323         from -o if none given with -MF.  Suppress normal output.
9324         * gcc.c (cpp_unique_options): Have -M and -MM imply -E.
9325         * doc/cpp.texi, doc/invoke.texi: Update.
9327 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
9329         * toplev.c (output_quoted_string): Write unprintable
9330         characters with octal escapes.
9332 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
9334         * config/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Set
9335         really_call_used[VRSAVE_REGNO] if not Altivec.
9337 2002-02-19  Alan Modra  <amodra@bigpond.net.au>
9339         * config/rs6000/rs6000.c (u_short_cint_operand): Mask op with
9340         MODE_MASK.
9341         (constant_pool_expr_1): Fix formatting.
9342         (rs6000_legitimize_reload_address): Likewise.
9344 Tue Feb 19 20:13:57 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9346         * config/sparc/sparc.md (nonlocal_goto): Use hard_frame_pointer_rtx
9347         now that we have one.
9349 2002-02-19  Zack Weinberg  <zack@codesourcery.com>
9351         * tree.h (struct tree_common): Remove aux.  Add unused_0 at
9352         end of first block of bitfields (which was only seven bits);
9353         rename dummy to unused_1; remove comment which is no longer true.
9355 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
9357         * doc/c-tree.texi (Classes, TYPE_BINFO): Fix typo.
9359 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
9361         PR 5399
9362         * config/arm/arm.h (THUMB_LEGITIMATE_CONSTANT_P): Accept anything
9363         if generating PIC.
9365         PR 5054
9366         * config/arm/arm.md (call_insn) [TARGET_THUMB]: Use
9367         arm_is_longcall_p rather than inspecting call-type cookie
9368         directly.
9369         (call_value_insn) [TARGET_THUMB]: Likewise.
9371 2002-02-19  Graham Stott  <grahams@redhat.com>
9373         * config/i386/i386.c (ix86_expand_builtin): Fix typo.
9375 2002-02-19  David Edelsohn  <edelsohn@gnu.org>
9377         * config/rs6000/linux64.h (LINK_OS_LINUX_SPEC): Look in /lib64.
9378         ({STARTFILE,ENDFILE}_LINUX_SPEC): Define.
9379         (FP_SAVE_INLINE): Delete.
9381         * config/rs6000/sysv4.h (ENDFILE_SPEC): Add crtsaveres.o.
9382         * config/rs6000/eabi.asm: Remove ABI save restore routines.
9383         * config/rs6000/t-ppccomm: Build crtsavres.o.
9384         * config/rs6000/crtsavres.asm: New file.
9386 2002-02-19  Philip Blundell  <philb@gnu.org>
9388         * config/arm/arm.c (use_return_insn): Don't reject interrupt
9389         functions.
9390         (arm_compute_save_reg_mask): Save LR for interrupt functions too.
9391         (output_return_instruction): Allow interrupt functions to return with
9392         ldmfd sp!, {... pc}^.  Use LDR to restore any single register.
9393         (arm_expand_prologue): Subtract 4 before stacking LR in an
9394         interrupt function.
9396 2002-02-19  Philip Blundell  <pb@nexus.co.uk>
9398         * config/arm/arm.c (arm_encode_call_attribute): Operate on any
9399         decl, not just FUNCTION_DECL.
9400         (legitimize_pic_address): Handle local SYMBOL_REF like LABEL_REF.
9401         (arm_assemble_integer): Likewise.
9402         * config/arm/arm.h (ARM_ENCODE_CALL_TYPE): Allow any decl to be
9403         marked local.
9405 2002-02-19  matthew green  <mrg@eterna.com.au>
9407         * config.gcc (sparc-*-netbsdelf*): Enable target.
9408         (sparc64-*-netbsd*): New target.
9409         * config/sparc/netbsd-elf.h: New file.
9410         * config/sparc/t-netbsd64: New file.
9412 2002-02-19  Gaute B Strokkenes <gs234@cam.ac.uk>
9414         * doc/rtl.texi (Flags, MEM_SCALAR_P): Fix typo.
9416 2002-02-19  Ryan T. Sammartino <ryants@shaw.ca>
9418         * doc/invoke.texi: explicitly list the style guidelines that
9419         -Weffc++ checks for.
9421 Tue Feb 19 12:37:23 CET 2002  Jan Hubicka  <jh@suse.cz>
9423         * regmove.c (regmove_optimize): Avoid increasing of register pressure.
9425 2002-02-19  Neil Booth  <neil@daikokuya.demon.co.uk>
9427         PR other/5718
9428         * gcc.c (cpp_unique_options): Treat -o as indicating object file
9429         only if not -E.  If -E, pass -o through to the preprocessor.
9431 2002-02-19  Kazu Hirata  <kazu@hxi.com>
9433         * config/h8300/h8300.h (REGNO_REG_CLASS): Replace a literal
9434         register number with an appropriate macro.
9436 2002-02-19  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
9438         * doc/rtl.texi (Constants): Close @code tag.
9440 2002-02-19  Aldy Hernandez  <aldyh@redhat.com>
9442         * config/i386/i386.md ("mmx_uavgv8qi3"): Use const_vector.
9443         ("mmx_uavgv4hi3"): Same.
9444         ("pmulhrwv4hi3"): Same.
9446         * tree-inline.c (walk_tree): Handle vectors.
9448         * c-common.c (constant_expression_warning): Handle vectors.
9449         (overflow_warning): Same.
9451         * sched-deps.c (sched_analyze_2): Handle vectors.
9453         * rtlanal.c (rtx_unstable_p): Handle vectors.
9454         (rtx_varies_p): Same.
9455         (count_occurrences): Same.
9456         (regs_set_between_p): Same.
9457         (modified_between_p): Same.
9458         (modified_in_p): Same.
9459         (volatile_insn_p): Same.
9460         (volatile_refs_p): Same.
9461         (side_effects_p): Same.
9462         (may_trap_p): Same.
9463         (inequality_comparisons_p): Same.
9464         (replace_regs): Same.
9465         (computed_jump_p_1): Same.
9467         * rtl.c (DEF_MACHMODE): Change all definitions to accept 8th
9468         argument.
9469         (inner_mode_array): New.
9470         (copy_rtx): Handle vectors.
9471         (copy_most_rtx): Same.
9472         (rtx_equal_p): Same.
9473         (get_mode_alignment): Adjust for vectors.
9475         * resource.c (mark_referenced_resources): Handle vectors.
9476         (mark_set_resources): Same.
9478         * reload1.c (eliminate_regs): Handle vectors.
9479         (elimination_effects): Same.
9480         (scan_paradoxical_subregs): Same.
9482         * reload.c (subst_reg_equivs): Handle vectors.
9484         * regrename.c (scan_rtx): Handle vectors.
9486         * regclass.c (reg_scan_mark_refs): Handle vectors.
9488         * recog.c (find_single_use_1): Handle vectors.
9490         * local-alloc.c (equiv_init_varies_p): Handle vectors.
9491         (contains_replace_regs): Same.
9492         (memref_referenced_p): Same.
9494         * integrate.c (copy_rtx_and_substitute): Handle vectors.
9495         (subst_constants): Same.
9497         * genattrtab.c (attr_copy_rtx): Handle vectors.
9498         (encode_units_mask): Same.
9499         (clear_struct_flag): Same.
9500         (count_sub_rtxs): Same.
9502         * gcse.c (want_to_gcse_p): Handle vectors.
9503         (oprs_unchanged_p): Same.
9504         (hash_expr_1): Same.
9505         (oprs_not_set_p): Same.
9506         (expr_killed_p): Same.
9507         (compute_transp): Same.
9508         (store_ops_ok): Same.
9510         * function.c (purge_addressof_1): Do not allow paradoxical subregs
9511         of vectors.
9512         (fixup_var_refs_1): Same.
9513         (instantiate_virtual_regs_1): Same.
9515         * fold-const.c (operand_equal_p): Handle vectors.
9516         (fold): Same.
9517         (rtl_expr_nonnegative_p): Same.
9519         * flow.c (mark_used_regs): Handle vectors.
9521         * df.c (df_uses_record): Handle vectors.
9523         * cselib.c (cselib_subst_to_values): Handle vectors.
9524         (cselib_mem_conflict_p): Same.
9525         (hash_rtx): Same.
9527         * cse.c (canon_reg): Handle vectors.
9528         (fold_rt): Same.
9529         (cse_process_notes): Same.
9530         (count_reg_usage): Same.
9531         (canon_hash): Same.
9533         * alias.c (nonlocal_mentioned_p): Add case for CONST_VECTOR.
9535         * combine.c (mark_used_regs_combine): Add case for CONST_VECTOR.
9537         * emit-rtl.c (init_emit_once): Generate const0_rtx for vectors.
9538         (gen_rtx): Handle CONST_VECTOR.
9539         (gen_const_vector_0): New.
9540         (copy_rtx_if_shared): CONST_VECTORs can be shared.
9541         (reset_used_flags): Same.
9542         (copy_insn_1): Same.
9543         (initializer_constant_valid_p): Handle VECTOR_CST.
9545         * doc/c-tree.texi (Expression trees): Document VECTOR_CST.
9547         * doc/rtl.texi (Constants): Document const_vector.
9548         (CONST0_RTX): Update for vectors.
9549         (RTL sharing): Same.
9551         * print-tree.c (print_node): Add case for VECTOR_CST.
9553         * tree.h (TREE_VECTOR_CST_ELTS): New.
9554         (struct tree_vector): New.
9555         (union tree_node): Add vector node.
9556         (build_vector): Add prototype.
9558         * tree.def (VECTOR_CST): New.
9560         * tree.c (build_vector): New.
9562         * expmed.c (make_tree): Handle CONST_VECTOR.
9564         * rtl.h (CONSTANT_P): CONST_VECTORs are constants too.
9565         (CONST_VECTOR_ELT): New.
9566         (CONST_VECTOR_NUNITS): New.
9568         * machmode.h (GET_MODE_INNER): New.
9569         (DEF_MACHMODE): Accept 8th arg.
9571         * machmode.def: Add 8th argument for vector inner mode.
9572         Add inner vector modes for vectors.
9574         * rtl.def (VEC_CONST): Remove.
9575         (CONST_VECTOR): New.
9577         * expr.c (clear_storage): Allow vectors.
9578         (is_zeros_p): Handle VECTOR_CST.
9580         * varasm.c (output_constant_pool): Handle vectors.
9581         (rtx_const): Add veclo and vechi fields.
9582         (kind): Add RTX_VECTOR.
9583         (decode_rtx_const): Add case for vector.
9585         * config/rs6000/rs6000-protos.h: Add zero_constant.
9587         * config/rs6000/rs6000.c (rs6000_emit_move): Handle vector
9588         constants.  Force easy vector constants into memory.
9589         (easy_vector_constant): New.
9590         (emit_easy_vector_constant): New.
9591         (rs6000_legitimize_reload_address): Do not generate bad reloads on
9592         darwin.
9594         * config/rs6000/rs6000.md ("altivec_lvx"): Reflect what
9595         instruction does.
9596         ("altivec_lvxl"): Same.
9597         (altivec_lvebx): Same.
9598         (altivec_lvehx): Same.
9599         (altivec_lvewx): Same.
9600         ("*movv4si_const0"): New.
9601         ("*movv4sf_const0"): New.
9602         ("*movv8hi_const0"): New.
9603         ("*movv16qi_const0"): New.
9605 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9607         * config/h8300/h8300.c (notice_update_cc): Use
9608         cc_status.value2.
9610 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9612         * config/h8300/h8300.md (divmod patterns): Change the
9613         constraints for operands[1] to register_operand.
9615 2002-02-18  Kazu Hirata  <kazu@hxi.com>
9617         * config/h8300/h8300-protos.h: Remove the prototype for
9618         p_operand.
9619         * config/h8300/h8300.c (p_operand): Remove.
9620         * config/h8300/h8300.md: Replace p_operand with
9621         const_int_operand.
9623 2002-02-18 Philip Blundell <pb@nexus.co.uk>
9625         * config/arm/arm.c (arm_compute_save_reg_mask): Fix typo in
9626         comment.
9627         (output_return_instruction): Allow use of LDR to unstack
9628         return addresss even for interrupt handlers or when
9629         interworking.  If compiling for ARMv5, use interworking-safe
9630         return instructions by default.  Remove duplicated code and
9631         lengthy "strcat" sequences.
9633 2002-02-18  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
9635         * config/rs6000/sysv4.h (STARTFILE_SPEC): Use crtbeginT.o for -static.
9636         (LINK_EH_SPEC): Define.
9637         * config/rs6000/t-ppccomm (EXTRA_MULTILIB_PARTS): Add crtbeginT.o.
9639 2002-02-18  Ulrich Weigand  <uweigand@de.ibm.com>
9641         * config/s390/s390.c (s390_emit_prologue): Do not set the
9642         frame_related flag for call-clobbered registers.
9644 Mon Feb 18 15:07:35 CET 2002  Jan Hubicka  <jh@suse.cz>
9646         * i386.c (classify_argument): Properly classify SSE/MMX modes and VOIDmode.
9647         (construct_container): Fix handling of SSE operands.
9648         (ix86_expand_builtin): Fix handling of 64bit pointers.
9649         (mmx_maskmovq_rex): New pattern.
9651 Mon Feb 18 11:55:55 CET 2002  Jan Hubicka  <jh@suse.cz>
9653         * regrename.c (kill_set_value): Handle subregs properly.
9655 2002-02-18  David Billinghurst <David.Billinghurst@riotinto.com>
9657         * objc/objc-act.c (handle_impent): Remove leading '*'
9658         from objc_class_name.
9660 2002-02-17  Richard Henderson  <rth@redhat.com>
9662         * config/alpha/alpha.c (some_small_symbolic_operand,
9663         some_small_symbolic_operand_1, split_small_symbolic_operand,
9664         split_small_symbolic_operand_1): Rename from *symbolic_mem_op*.
9665         Handle small SYMBOL_REFs anywhere, not just inside memories.
9666         * config/alpha/alpha-protos.h: Update.
9667         * config/alpha/alpha.h (PREDICATE_CODES): Update.
9668         * config/alpha/alpha.md (small symbolic operand splitter): Update.
9670 2002-02-17  Roland McGrath  <roland@frob.com>
9672         * config.gcc (powerpc-*-gnu-gnualtivec*,
9673         powerpc-*-gnu*, powerpc64-*-gnu*): New configurations.
9674         * config/rs6000/gnu.h: New file.
9675         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS):
9676         Grok "gnu" in rs6000_abi_name.
9677         (ASM_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC,
9678         CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC, LIB_SPEC, ENDFILE_SPEC):
9679         Grok -mcall-gnu analogous to -mcall-linux et al.
9680         (LIB_GNU_SPEC, STARTFILE_GNU_SPEC, ENDFILE_GNU_SPEC,
9681         LINK_START_GNU_SPEC, LINK_OS_GNU_SPEC, CPP_OS_GNU_SPEC): New macros.
9682         (SUBTARGET_EXTRA_SPECS): Add *_os_gnu specs using them.
9684 2002-02-17  Jakub Jelinek  <jakub@redhat.com>
9686         PR c/3444:
9687         * c-typeck.c (build_binary_op) [BIT_XOR_EXPR]: Remove explicit
9688         shortening.
9690 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9692         * config/cris/cris.h: Undefine STARTFILE_SPEC and
9693         ENDFILE_SPEC before (re)defining them.
9695 2002-02-17  Kazu Hirata  <kazu@hxi.com>
9697         * config/h8300/h8300.c: Fix formatting.
9698         * config/h8300/h8300.h: Likewise.
9700 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9702         * doc/tm.texi: Explain why empty strings should not be
9703         marked for translation.
9705 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9707         * final.c (output_operand_lossage): Changed to accept
9708         printf style arguments. Change calls where necessary.
9709         * output.h (output_operand_lossage): Change declaration
9710         accordingly. Update copyright.
9711         * config/arc/arc.c config/fr30/fr30.c config/m32r/m32r.c
9712         config/m88k/m88k.c : Adapt all calls to output_operand_lossage.
9713         Update copyright date where necessary.
9715         * config/i386/i386.c (print_operand): Likewise. Remove use of
9716         sprintf.
9718         * config/cris/cris.c (cris_operand_lossage): Likewise.
9719         Rename parameter so that exgettext recognizes it as
9720         translatable message.
9721         (LOSE_AND_RETURN): Rename parameter to msgid.
9723 2002-02-17  Kazu Hirata  <kazu@hxi.com>
9725         * config/h8300/h8300.h (CONDITIONAL_REGISTER_USAGE): Replace a
9726         hard coded register number with an appropriate macro.
9727         (HARD_REGNO_MODE_OK): Likewise.
9728         (ARG_POINTER_REGNUM): Likewise.
9729         (STATIC_CHAIN_REGNUM): Likewise.
9730         (RETURN_ADDRESS_POINTER_REGNUM): Likewise.
9731         * config/h8300/h8300.md (define_constants): Define more
9732         register numbers.
9734 2002-02-17  Philipp Thomas  <pthomas@suse.de>
9736         * config/i386/i386.h: Don't mark empty strings for translation.
9738 2002-02-16  H.J. Lu <hjl@gnu.org>
9740         * config/mips/linux.h (ASM_PREFERRED_EH_DATA_FORMAT): New.
9742 2002-02-16  Zack Weinberg  <zack@codesourcery.com>
9744         * cppinit.c (merge_include_chains): Check for brack being
9745         NULL before attempting to merge it with qtail.
9747 2002-02-16  Andrew Cagney  <ac131313@redhat.com>
9749         * config/rs6000/netbsd.h (PREFERRED_DEBUGGING_TYPE): Set to
9750         DBX_DEBUG.
9752 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9754         * pa/t-pa, pa/t-pro, som.h: Revert last patch.
9756 2002-02-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9758         * pa/t-pa (LIB2FUNCS_EXTRA): Don't build lib2funcs.asm.
9759         * pa/t-pro (LIB2FUNCS_EXTRA): Likewise.
9760         * som.h (DO_GLOBAL_DTORS_BODY): Delete define.
9762 Sat Feb 16 13:48:50 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9764         * config/alpha/alpha.md (*movsi_nt_vms_nofix): Was *movsi_nt_vms;
9765         now only if !TARGET_FIX.
9766         (*movsi_nt_vms_fix): New pattern.
9768 2002-02-16  Douglas B Rupp  <rupp@gnat.com>
9770         * config/alpha/alpha.c: Implement null frame procedure types on VMS.
9771         (alpha_procedure_type): Replaces alpha_is_stack_procedure.
9772         (alpha_sa_mask, alpha_sa_size): Reflect above change.
9773         (alpha_pv_save_size, alpha_expand_prologue): Likewise.
9774         (alpha_start_function, alpha_expand_epilogue): Likewise.
9775         (unicosmk_gen_dsib): Likewise.
9777 Sat Feb 16 13:39:09 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9779         * expr.c (store_constructor): Handle target REG case for ARRAY_TYPE.
9781 2002-02-16  Ulrich Weigand  <uweigand@de.ibm.com>
9783         * config/s390/s390.c (pool_stop_uid, other_chunk, far_away,
9784         check_and_change_labels, s390_final_chunkify): Delete.
9785         (s390_split_branches, s390_chunkify_pool): New functions.
9786         (s390_function_prologue): Call them.
9788         * config/s390/s390.h (S390_REL_MAX): Delete.
9789         (S390_CHUNK_MAX, S390_CHUNK_OV): Adjust values.
9791         * config/s390/s390.md (cjump, icjump, jump): Fix length
9792         attribute calculation.
9795 2002-02-15  David Edelsohn  <edelsohn@gnu.org>
9797         * config/rs6000/linux64.h (STRIP_NAME_ENCODING): Delete.
9798         * config/rs6000/ppc-asm.h (JUMP_TARGET): Define for powerpc64.
9800 2002-02-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9802         * gcc.c (init_gcc_specs): Revert patch from 2002-02-15.
9803         * config/pa/pa-linux.h (LIB_SPEC): Likewise.
9804         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Likewise.
9806 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
9808         * c-decl.c (grokdeclarator): Prevent a segfault on unnamed decls.
9810 2002-02-15  Richard Sandiford  <rsandifo@redhat.com>
9812         * reload.c (find_dummy_reload): Check that an output register
9813         is valid for its mode.
9815 2002-02-14  Alexandre Oliva  <aoliva@redhat.com>
9817         * combine.c (known_cond): After replacing the REG of a SUBREG, try
9818         to simplify it.
9820         * function.c (assign_parms): Demote promoted argument passed by
9821         transparent reference.
9823 2001-02-14      Joel Sherrill <joel@OARcorp.com>
9825         * config/arm/rtems-elf.h, config/h8300/rtems.h: Removed redundant
9826         -Acpu() and -Amachine() to eliminate warnings.
9828 2002-02-14  Ulrich Weigand  <uweigand@de.ibm.com>
9830         * config/s390/linux.h (ASM_OUTPUT_ALIGNED_BSS): New.
9832 2002-02-14  Kazu Hirata  <kazu@hxi.com>
9834         * config/h8300/h8300-protos.h: Update the prototype for
9835         const_costs.
9836         * config/h8300/h8300.c (const_costs): Treat SET as a little
9837         more expensive operation.
9838         * config/h8300/h8300.h (DEFAULT_RTX_COSTS): Update the
9839         reference to const_costs.
9841 2002-02-14  Hans-Peter Nilsson  <hp@axis.com>
9843         * config.gcc (c4x-*-rtems*): Fix typo in tm_file setting.
9845 2002-02-14  Jakub Jelinek  <jakub@redhat.com>
9847         PR c/5503:
9848         * c-decl.c (duplicate_decls): If builtin type has TYPE_ARG_TYPES NULL,
9849         use arguments from newtype.
9851 2002-02-13  Eric Christopher  <echristo@redhat.com>
9853         * config/mips/mips.c (override_options): Add check for march/mipsX
9854         on the same command line. Fix error message in cpu processing.
9855         Remove architecture and ISA checks.
9857 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
9859         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Adjust for vectors.
9861         * config/rs6000/sysv4.h (ROUND_TYPE_ALIGN): Add MAX.
9863 2002-02-14  Aldy Hernandez  <aldyh@redhat.com>
9865         * config/rs6000/rs6000.md ("*movv4si_internal"): Add m<-r and r<-r
9866         alternatives.
9867         ("*movv8hi_internal1"): Same.
9868         ("*movv16qi_internal1"): Same.
9869         ("*movv4sf_internal1"): Same.
9871         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Do
9872         not push_reload for altivec modes.
9874 2002-02-13  Joel Sherrill  <joel@OARcorp.com>
9876         * config.gcc (a29k-*-rtems), config/a29k/rtems.h: General cleanup across
9877         all RTEMS targets including removal of #includes from config/*/rtems*.h
9878         file and adding them to tm_file setting. Added xm_defines=POSIX to
9879         many targets.
9880         * config.gcc (c4x-*-rtems), config/c4x/rtems.h: Ditto.
9881         * config.gcc (h8300-*-rtems), config/h8300/rtems.h: Ditto.
9882         * config.gcc (hppa1.1-*-rtems), config/pa/rtems.h: Ditto.
9883         * config.gcc (i960-*-rtems), config/i960/rtems.h: Ditto.
9884         * config.gcc (m68k-*-rtems*), config/m68k/rtems.h,
9885         config/m68k/rtemself.h: Ditto.
9886         * config.gcc (mips*-*-rtems*), config/mips/rtems.h,
9887         config/mips/rtems64.h: Ditto.
9888         * config.gcc (powerpc-*-rtems*), config/rs6000/rtems.h: Ditto.
9889         * config.gcc (sh-*-rtems*), config/sh/rtems.h, config/sh/rtemself.h:
9890         Ditto.
9891         * config.gcc (sparc-*-rtems*), config/sparc/rtems.h,
9892         config/sparc/rtemself.h: Ditto.
9893         * config.gcc (v850-*-rtems*), config/v850/rtems.h: Ditto.
9894         * config.gcc (arm-rtems), config/arm/rtems-elf.h: Ditto plus moved
9895         arm-rtems stanza closer to other arm-elf targets and made arm-rtems
9896         more like arm-elf.
9897         * config.gcc (i[34567]86-*-rtems*), config/i386/djgpp-rtems.h,
9898         config/i386/rtems.h, config/i386/rtemself.h: Ditto plus i386-rtemself
9899         target made more similar to i386-elf.
9900         * config/i386/t-rtems-i386: Added soft float support and multilibs.
9901         * config/m68k/t-m68kbare: Add 68040 and 68060 as multilib alternatives to
9902         be similar to config/m68k/t-m68kelf.
9903         * gthr-rtems.h: Encapsulate with extern "C" for C++.
9905 Wed Feb 13 23:41:15 CET 2002  Jan Hubicka  <jh@suse.cz>
9907         * regmove.c (kill_value): Handle subregs.
9909 Wed Feb 13 23:34:30 CET 2002  Jan Hubicka  <jh@suse.cz>
9911         * i386.md (mul patterns): Allow memory operand to be first;
9912         add expanders where needed; fix constraints.
9913         (min?f_nonieee, max?f_nonieee, SSE TImode patterns):
9914         Allow memory operand to be the first.
9916         * i386.c (ix86_prepare_fp_compare_args): Fix condition for swapping
9917         operands.
9919 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9921         PR c/5681:
9922         * expr.c (safe_from_p): Pass VOIDmode to true_dependence instead of
9923         GET_MODE (x).
9925 2002-02-13  Jakub Jelinek  <jakub@redhat.com>
9927         PR optimization/5547:
9928         * config/i386/i386.c (i386_simplify_dwarf_addr): Simplify
9929         all valid IA-32 address modes involving non-scaled %ebx and
9930         GOT/GOTOFF as displacement.
9932 2002-02-13  Ulrich Weigand  <uweigand@de.ibm.com>
9934         * config/s390/s390.c (s390_final_chunkify): Re-run shorten_branches
9935         after emitting ltorg insns.
9937         * config/s390/s390.md (*cmpdf_ccs_0, *cmpdf_ccs, *cmpsf_ccs_0,
9938         *cmpsf_ccs, truncdfsf2_ieee, *adddf3, *addsf3, *subdf3, *subsf3,
9939         *muldf3, *mulsf3, *divdf3, *divsf3, *negdf2, *negsf2, *absdf2,
9940         *abssf2): Fix "op_type" attribute.
9942 2002-02-13  Douglas B Rupp  <rupp@gnat.com>
9944         * mkconfig.sh: Avoid using a subshell redirect.
9945         ($output.T): Change to $(output)T.
9946         (ENABLE_NLS): Remove unneeded undef.
9948         * config/alpha/vms.h (MD_EXEC_PREFIX, MD_STARTFILE_PREFIX): Define.
9949         * config/alpha/x-vms (libsubdir): Define.
9951         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Handle
9952         register frame procedures. Optimize retrieving context.
9954         * config/alpha/t-vms (MULTILIB_OPTIONS): Define.
9955         (MULTILIB_DIRNAME, LIBGCC, INSTALL_LIBGCC): Likewise.
9956         * config/alpha/vms.h (ASM_FILE_START): Write .arch directive.
9958 Wed Feb 13 09:45:08 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
9960         * alias.c (find_base_term, case ZERO_EXTEND, case SIGN_EXTEND):
9961         Make same change as for find_base_value.
9963 2002-02-13  Kazu Hirata  <kazu@hxi.com>
9965         * config/h8300/h8300.h (MODES_TIEABLE_P): Accept a combination
9966         of QImode and SImode.
9968 2002-02-13  Kazu Hirata  <kazu@hxi.com>
9970         * config/h8300/h8300.c (h8300_adjust_insn_length): Correct the
9971         length computation of movsi.
9972         * config/h8300/h8300.md (movsi_h8300hs): Correct the length.
9974 2002-02-13  Kazu Hirata  <kazu@hxi.com>
9976         * config/h8300/h8300.md (subqi3): Tighten the predicate for
9977         operands[2] to register_operand.
9979 Wed Feb 13 10:35:56 CET 2002  Jan Hubicka  <jh@suse.cz>
9981         * i386.md (fop_*_comm_*): allow nonimmediate in the first operand.
9983 2002-02-12  Aldy Hernandez  <aldyh@redhat.com>
9985         * config/rs6000/rs6000.md: Use predicate altivec_register_operand
9986         for altivec_lvx* and altivec_stvx*.
9987         ("*movv4si_internal"): Add constraint for loading from GPRs.
9988         ("*movv8hi_internal1"): Same.
9989         ("*movv16qi_internal1"): Same.
9990         ("*movv4sf_internal1"): Same.
9992         * config/rs6000/rs6000.c (altivec_register_operand): New.
9994         * config/rs6000/rs6000.h (PREDICATE_CODES): Add
9995         altivec_register_operand.
9997 2002-02-13  Hans-Peter Nilsson  <hp@bitrange.com>
9999         * config/mmix/mmix.c (mmix_assemble_integer) <case 4>: Don't
10000         handle SYMBOL_REF.
10002 2002-02-13  Stan Shebs  <shebs@apple.com>
10004         * c-typeck.c (digest_init): Handle vectors.
10005         (really_start_incremental_init): Same.
10006         (pop_init_level): Same.
10007         (process_init_element): Same.
10009         * varasm.c (output_constant): Same.
10011         * expr.c (clear_storage): Same.
10012         (store_constructor): Same.
10014 2002-02-12  Eric Christopher  <echristo@redhat.com>
10016         * explow.c (hard_function_value): Add comment explaining
10017         signed/unsigned comparison.
10019 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
10021         * jump.c (never_reached_warning): Add finish argument.
10022         If finish is NULL, stop on CODE_LABEL, otherwise stop before first
10023         real insn after end.
10024         * rtl.h (never_reached_warning): Adjust prototype.
10025         * cse.c (cse_insn): Pass NULL as finish to never_reached_warning.
10026         * cfgrtl.c (flow_delete_block): Pass b->end as finish to
10027         never_reached_warning.
10029 2002-02-12  Graham Stott  <grahams@redhat.com>
10031         * config/hp/pa.h (GO_IF_LEGITIMATE_ADDRESS): Fix typos.
10033 2002-02-12  Kazu Hirata  <kazu@hxi.com>
10035         * config/h8300/h8300.c (shift_alg_hi): Improve the 15-bit
10036         logical shifts on H8/300.
10037         (shift_alg_si): Improve several shifts on H8/300.
10038         (get_shift_alg): Likewise.
10040 2002-02-12  Graham Stott  <grahams@redhat.com>
10042         * config/pa/pa.c (compute_movstrsi_length): Fix typos.
10044 Tue Feb 12 10:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
10046         * alias.c (find_base_value, case ZERO_EXTEND, case SIGN_EXTEND):
10047         Handle #ifdef POINTERS_EXTEND_UNSIGNED.
10049 2002-02-11  Hans-Peter Nilsson  <hp@bitrange.com>
10051         * config/mmix/mmix.c (mmix_assemble_integer) <case 1, 2>: Handle
10052         non-CONST_INT through default_assemble_integer.
10053         <case 4>: Likewise, for non-CONST_INT, non-SYMBOL_REF.
10054         <case 8>: Abort for CONST_DOUBLE.
10056 2002-02-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10058         * gcc.c (init_gcc_specs): Add static libgcc to link when "-shared"
10059         is specified.
10060         * config/pa/pa-linux.h (LIB_SPEC): Delete.
10061         * config/pa/pa32-linux.h (LINK_COMMAND_SPEC): Delete.
10063 2002-02-11  Andrew Haley  <aph@cambridge.redhat.com>
10065         * config/stormy16/stormy16.md (zero_extendqihi2): New.
10067 2002-02-11  Alexandre Oliva  <aoliva@redhat.com>
10069         * regrename.c (regrename_optimize): Don't accept a
10070         part-clobbered register if the replaced register is not part
10071         clobbered.
10073         * calls.c (store_one_arg): In the non-BLKmode non-partial case,
10074         take padding into account when computing the argument value.
10076         * config/sh/sh.h (FUNCTION_ARG_REGNO_P): Fix parenthesizing error.
10078         * combine.c (try_combine): Apply substitutions in
10079         CALL_INSN_FUNCTION_USAGE too.
10081 2002-02-11  Aldy Hernandez  <aldyh@redhat.com>
10083         * config/rs6000/rs6000.c (altivec_init_builtins): Handle
10084         __builtin_altivec_abs*.
10085         (bdesc_abs): New.
10087         * config/rs6000/rs6000.h (rs6000_builtins): Add
10088         ALTIVEC_BUILTIN_ABS*.
10090         * config/rs6000/altivec.h: Use const char for builtins expecting
10091         literals.
10092         (vec_abs): New versions for C and C++.
10093         (vec_abss): Same.
10095 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10097         * config/h8300/h8300.h (INITIALIZE_TRAMPOLINE): Simplify by
10098         using Pmode.
10100 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10102         * config/h8300/h8300.h (STACK_POINTER_REGNUM): Use the
10103         constant definition from h8300.md.
10104         (FRAME_POINTER_REGNUM): Likewise.
10105         * config/h8300/h8300.md (define_constants): Add FP_REG.
10107 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10109         * config/h8300/h8300.c (print_operand): Remove redundant code.
10111 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10113         * config/h8300/h8300-protos.h: Remove the prototype for byte_reg.
10114         * config/h8300/h8300.c (byte_reg): Make it static.
10116 2002-02-10  Richard Henderson  <rth@redhat.com>
10118         PR c/5623
10119         * c-typeck.c (incomplete_type_error): Handle flexible array members.
10121 2002-02-10  Richard Henderson  <rth@redhat.com>
10123         PR c++/5624
10124         * tree.c (append_random_chars): Don't abort if main_input_filename
10125         does not exist.
10127 2002-02-10  Hans-Peter Nilsson  <hp@bitrange.com>
10129         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): Disable.
10131 2002-02-10  Kazu Hirata  <kazu@hxi.com>
10133         * config/h8300/h8300.md (pushhi1_h8300): Correct the mode used.
10134         (pushhi1): Likewise.
10136 2002-02-10  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10138         * pa.c (reg_before_reload_operand): Don't accept a SUBREG operand.
10139         * pa.h (PREDICATE_CODES): Adjust codes for reg_before_reload_operand.
10141 2002-02-09  David O'Brien  <obrien@FreeBSD.org>
10143         * config/sparc/freebsd.h(TARGET_DEFAULT): Add MASK_EPILOGUE setting and
10144         remove MASK_VIS.
10145         (ASM_CPU_DEFAULT_SPEC): Remove.  Default setting is fine.
10147 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10149         * config/h8300/h8300.c (output_logical_op): Use sub.w to clear
10150         a half of an SImode register on H8/300.
10152 Sat Feb  9 18:28:02 CET 2002  Jan Hubicka  <jh@suse.cz>
10154         * i386.md (movdi_2): Add missing '!'.
10156 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10158         * config/h8300/h8300.h: Fix formatting.  Remove commented-out
10159         definitions.
10161 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10163         * config/h8300/h8300.md (length): Correct the distance valid
10164         for the short branch.
10166 2002-02-09  Kazu Hirata  <kazu@hxi.com>
10168         * config/h8300/h8300.md (iorhi3): Tighten the predicates.
10170 2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
10172         * config/sh/sh.h (REGISTER_NATURAL_MODE): Save part-clobbered
10173         registers in SImode.
10174         (HARD_REGNO_CALL_PART_CLOBBERED) [TARGET_SHMEDIA32]: Set r18 as
10175         part-clobbered.
10177         * config/sh/sh.c (expand_prologue): Fix mis-applied 2001-11-09's
10178         patch.
10180         Contribute sh64-elf.
10181         2002-02-09  Alexandre Oliva  <aoliva@redhat.com>
10182         * config/sh/sh.c (TARGET_CANNOT_MODIFY_JUMPS_P): Define to...
10183         (sh_cannot_modify_jumps_p): New function.
10184         2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
10185         * config/sh/sh.c (TARGET_MS_BITFIELD_LAYOUT_P): Define to...
10186         (sh_ms_bitfield_layout_p): New function.
10187         2002-02-04  Alexandre Oliva  <aoliva@redhat.com>
10188                     Zack Weinberg  <zack@codesourcery.com>
10189         * config/sh/sh.h (TRAMPOLINE_ADJUST_ADDRESS): Use
10190         expand_simple_binop instead of expand_binop.
10191         2002-02-03  Alexandre Oliva  <aoliva@redhat.com>
10192         * config/sh/sh.h (OVERRIDE_OPTIONS) [! TARGET_SH5]: Disable
10193         use of .quad and .uaquad.
10194         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP,
10195         TARGET_ASM_ALIGNED_DI_OP): Add comment pointing to the above.
10196         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10197         * config/sh/sh.md (movdi_const, movdi_const_32bit,
10198         movdi_const_16bit): Make sure all CONSTs have modes.
10199         (sym2PIC): Ditto, but by adjusting all callers.
10200         * config/sh/sh.c (calc_live_regs) [TARGET_SHCOMPACT]: Set pr_live
10201         if the prologue calls the SHmedia argument decoder or register
10202         saver.
10203         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
10204         * config/sh/sh.c (TARGET_ASM_UNALIGNED_DI_OP): Define.
10205         (TARGET_ASM_ALIGNED_DI_OP): Likewise.
10206         (sh_expand_epilogue): Don't emit USE of return target register.
10207         (prepare_move_operands): Legitimize DImode PIC addresses.
10208         (sh_media_register_for_return): Skip tr0, used to initialize the
10209         PIC register.
10210         (sh_expand_prologue): Remove explicit USE of return register.
10211         (nonpic_symbol_mentioned_p): PC is non-PIC.  Don't recurse in
10212         CONST_DOUBLEs.  UNSPEC_GOTPLT is PIC.
10213         * config/sh/sh.h (ASM_OUTPUT_DOUBLE_INT): Removed, obsolete.
10214         (OVERRIDE_OPTIONS): Don't disable PIC on SH5.
10215         (EXTRA_CONSTRAINT_S): Use MOVI_SHORI_BASE_OPERAND_P instead of
10216         EXTRA_CONSTRAINT_T.
10217         (GOT_ENTRY_P, GOTPLT_ENTRY_P, GOTOFF_P, PIC_ADDR_P): New.
10218         (MOVI_SHORI_BASE_OPERAND_P): New.
10219         (NON_PIC_REFERENCE_P, PIC_REFERENCE_P): New.
10220         (EXTRA_CONSTRAINT_T): Define in terms of them.
10221         (OUTPUT_ADDR_CONST_EXTRA): Handle UNSPEC_GOTPLT.
10222         * config/sh/sh.md (movsi_media, movsi_media_nofpu,
10223         movdi_media, movdi_media_nofpu): Add SIBCALL_REGS class to
10224         alternatives supporting TARGET_REGS.
10225         (UNSPEC_GOTPLT): New constant.
10226         (movdi split): Move incrementing of LABEL_NUSES...
10227         (movdi_const, movdi_const_32bit): Here.  Use
10228         MOVI_SHORI_BASE_OPERAND_P instead of EXTRA_CONSTRAINT_T.
10229         (movdi_const_16bit): New.
10230         (call, call_value) [flag_pic]: Use GOTPLT.
10231         (call_pop, call_value_pop): New expands.
10232         (call_pop_compact, call_pop_rettramp): New insns.
10233         (call_value_pop_compact, call_value_pop_rettramp): New insns.
10234         (sibcall) [flag_pic]: Use GOT.
10235         (builtint_setjmp_receiver): Remove bogus, unused expand.
10236         (GOTaddr2picreg): Implement for SHcompact and SHmedia.
10237         (*pt, *ptb, ptrel): New insns.
10238         (sym2GOT): Handle DImode GOT.
10239         (sym2GOTPLT, symGOTPLT2reg): New expands.
10240         (sym2PIC): New expand.
10241         (shcompact_return_tramp): Use GOTPLT to return trampoline.
10242         (shcompact_return_tramp_i): Use return register explicitly.
10243         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SHMEDIA]: Don't
10244         disable flag_reorder_blocks.
10245         2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
10246         * config/sh/sh.md (sibcall_compact): Reorder return, uses and
10247         clobbers, for clarity.
10248         (sibcall_epilogue) [TARGET_SHCOMPACT]: Mark saving and
10249         restoring of r0 in macl as MAYBE_DEAD.
10250         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
10251         * config/sh/sh.h (LONG_DOUBLE_TYPE_SIZE): Define.
10252         * config/sh/sh.md (movv4sf_i, movv16sf_i): Fix uses of
10253         alter_subreg all over.
10254         (jump) [TARGET_SHMEDIA]: FAIL to create new jumps after
10255         reload, instead of emitting instructions that would require
10256         reloading.
10257         (casesi_load_media): Add missing modes.
10258         2001-11-09  Alexandre Oliva  <aoliva@redhat.com>
10259         * config/sh/sh.c (sh_expand_prologue): Mark the PIC register
10260         as used if the argument decoder is called.
10261         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10262         * config/sh/sh.md (udivsi3, divsi3): Load libcall symbol name in
10263         Pmode, then extend it to DImode if necessary.
10264         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
10265         * config/sh/sh.h (LEGITIMATE_CONSTANT_P): Don't accept DFmode
10266         constants in FPU-enabled SHmedia, let them be loaded from memory.
10267         2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
10268         * config/sh/sh.md (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media):
10269         Adjust whitespace in assembly output templates.
10270         2001-08-28  Stephen Clarke  <Stephen.Clarke@st.com>
10271         * config/sh/sh.md (movdicc_false, movdicc_true, movdicc): Adjust
10272         mode of if_then_else.
10273         2001-08-04  Alexandre Oliva  <aoliva@redhat.com>
10274         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): Override definition in
10275         sh.h.
10276         2001-07-26  Andrew Haley  <aph@cambridge.redhat.com>
10277                     Joern Rennecke <amylaar@redhat.com>
10278         * config/sh/sh64.h (CPP_DEFAULT_CPU_SPEC): New.
10279         (SUBTARGET_CPP_PTR_SPEC): New.
10280         (SUBTARGET_CPP_SPEC): Remove.
10281         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
10282         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10283         Fix typo in previous checkin.
10284         2001-07-11  Chandrakala Chavva  <cchavva@redhat.com>
10285         * config/sh/sh.h (MODES_TIEABLE_P): Fix redact indentations.
10286         2001-07-10  Chandrakala Chavva  <cchavva@cygnus.com>
10287                     Alexandre Oliva  <aoliva@redhat.com>
10288         * config/sh/sh.h (MODES_TIEABLE_P): Don't tie modes wider than
10289         what single FP register can hold for SHmedia target.
10290         2001-07-06  Chandrakala Chavva  <cchavva@redhat.com>
10291                     Alexandre Oliva  <aoliva@redhat.com>
10292         * config/sh/sh.md (movsf_media_nofpu+1, movdf_media_nofpu+1):
10293         Do not split into SUBREG.
10294         2001-06-14  Alexandre Oliva  <aoliva@redhat.com>
10295         * config/sh/ushmedia.h, config/sh/sshmedia.h: Updated signatures
10296         and added new functions as specified in SH5 ABI r9.
10297         2001-06-04  Alexandre Oliva  <aoliva@redhat.com>
10298         * config/sh/lib1funcs.asm (GCC_nested_trampoline): Align to an
10299         8-byte boundary.
10300         2001-06-03  Alexandre Oliva  <aoliva@redhat.com>
10301         * config/sh/sh.c (dump_table): Add const0_rtx in calls of
10302         gen_consttable_4 and gen_consttable_8.  Emit multiple labels
10303         and consttable_window_ends.
10304         2001-06-03  Graham Stott  <grahams@redhat,com>
10305         * config/sh/sh.md (movdi split): Remove unused variable last_insn.
10306         2001-05-16  Alexandre Oliva  <aoliva@redhat.com>
10307         * config/sh/sh.c (print_operand): Handle floating-point pair,
10308         vector and matrix registers.
10309         * config/sh/sh.h (REGISTER_MOVE_COST): Take floating-pointer
10310         vector modes into account.
10311         * config/sh/sh.md (movv2sf): Split move between registers into
10312         movdf.
10313         (movv4sf, movv16sf): Introduce insns that get split only after
10314         reload.
10315         * config/sh/shmedia.h: Fix Copyright dates.
10316         * config/sh/ushmedia.h: Likewise.  Move loop counter
10317         declarations into conditionals that uses them.
10318         (sh_media_FVADD_S, sh_media_FVSUB_S): Fix off-by-one error in
10319         loop boundary.
10320         * config/sh/sshmedia.h: Fix Copyright dates.
10321         (sh_media_PUTCFG): Fix constraints.
10322         2001-05-12  Alexandre Oliva  <aoliva@redhat.com>
10323         * config/sh/sh.h (TARGET_PTRMEMFUNC_VBIT_LOCATION): Define to
10324         ptrmemfunc_vbit_in_delta for SH5.
10325         2001-05-08  Alexandre Oliva  <aoliva@redhat.com>
10326         * config/sh/sh.h (TARGET_SWITCHES): Document -m5-*.
10327         * invoke.texi: Likewise.
10328         2001-04-14  Alexandre Oliva  <aoliva@redhat.com>
10329         * config/sh/lib1funcs.asm (GCC_push_shmedia_regs,
10330         GCC_push_shmedia_regs_nofpu, GCC_pop_shmedia_regs,
10331         GCC_pop_shmedia_regs_nofpu): New global symbols.
10332         * config/sh/t-sh64 (LIB1ASMFUNCS): Add them.
10333         * config/sh/sh.h (SHMEDIA_REGS_STACK_ADJUST): New macro.
10334         * config/sh/sh.c (calc_live_regs): Account for PR's saving in
10335         compact function with nonlocal labels.
10336         (sh_expand_prologue) [SHcompact]: Push SHmedia regs if needed.
10337         (sh_expand_epilogue) [SHcompact]: Pop them when appropriate.
10338         (initial_elimination_offset): Account for their stack space.
10339         * config/sh/sh.md (shmedia_save_restore_regs_compact): New insn.
10340         * config/sh/sh.md (movsi_media, movsi_media_nofpu, movqi_media,
10341         movhi_media, movdi_media, movdi_media_nofpu, movdf_media,
10342         movdf_media_nofpu, movsf_media, movsf_media_nofpu): Require at
10343         least one of the operands to be a register.
10344         (movv2sf): Likewise.  Renamed to movv2sf_i.
10345         (movdi, movdf, movv2sf, movv4sf, movv16sf, movsf):
10346         prepare_move_operands() before emitting SHmedia insns.
10347         2001-04-03  Alexandre Oliva  <aoliva@redhat.com>
10348         * config/sh/crti.asm (init, fini) [__SH5__ && ! __SHMEDIA__]:
10349         Don't save nor initialize r12.  Don't mis-align the stack.
10350         Pad the code with a nop.
10351         * config/sh/crti.asm: Don't restore r12.  Don't mis-align the
10352         stack.
10353         2001-03-13  Alexandre Oliva  <aoliva@redhat.com>
10354         * gcc/longlong.h (__umulsidi3, count_leading_zeros)
10355         [__SHMEDIA__]: Implement.
10356         2001-03-11  Alexandre Oliva  <aoliva@redhat.com>
10357         * config/sh/sh.md: Set latency of `pt' closer to reality.
10358         (movsi_media, movsi_media_nofpu, movdi_media, movdi_media_nofpu,
10359         movdf_media, movdf_media_nofpu, movsf_media, movsf_media_nofpu):
10360         Set move, load and store type attributes.
10361         * config/sh/sh.c (sh_loop_align) [TARGET_SH5]: Set to 3.
10362         * config/sh/sh.h (OVERRIDE_OPTIONS) [TARGET_SH5]: Disable
10363         profiling.
10364         * config/sh/sh.h (PROMOTE_MODE): Sign-extend SImode to DImode.
10365         * config/sh/sh-protos.h (sh_media_register_for_return): Declare.
10366         * config/sh/sh.c (sh_media_register_for_return): New function.
10367         (sh_expand_prologue) [TARGET_SHMEDIA]: Copy r18 to an available
10368         branch-target register.
10369         (sh_expand_epilogue) [TARGET_SHMEDIA]: Explicitly USE it.
10370         * config/sh/sh.md (return_media_i): Use any call-clobbered
10371         branch-target register.
10372         (return_media): If r18 wasn't copied in the prologue, copy it
10373         here.
10374         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE) [TARGET_SHMEDIA]:
10375         Clear class FP0_REGS.
10376         * config/sh/sh64.h (LINK_SPEC): Removed incorrect default copied
10377         from elf.h.
10378         2001-03-08  DJ Delorie  <dj@redhat.com>
10379         * config/sh/sh.h (OVERRIDE_OPTIONS): Disable relaxing for SHMEDIA.
10380         2001-02-09  Alexandre Oliva  <aoliva@redhat.com>
10381         * config/sh/sh.md (sibcall_compact): Set fp_mode to single.
10382         2001-02-07  Alexandre Oliva  <aoliva@redhat.com>
10383         * config/sh/sh.h (INT_ASM_OP) [SHMEDIA64]: Use `.quad'.
10384         2001-02-03  Alexandre Oliva  <aoliva@redhat.com>
10385         * config/sh/sh.h (INIT_CUMULATIVE_ARGS): Compute size of BLKmode
10386         return value correctly for call_cookie.
10387         2001-02-01  Alexandre Oliva  <aoliva@redhat.com>
10388         * config/sh/crt1.asm (start): Modified so as to call
10389         ___setup_argv_and_call_main.
10390         2001-01-26  Alexandre Oliva  <aoliva@redhat.com>
10391         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't count stack_regs in
10392         SHmedia mode.
10393         2001-01-20  Alexandre Oliva  <aoliva@redhat.com>
10394         * config/sh/sh.h (STRIP_DATALABEL_ENCODING): New macro.
10395         (STRIP_NAME_ENCODING): Use it.
10396         (ASM_OUTPUT_LABELREF): Likewise.  Don't call assemble_name().
10397         2001-01-19  Alexandre Oliva  <aoliva@redhat.com>
10398         * config/sh/sh.md (sgeu) [! SHMEDIA]: Fix invocation of
10399         prepare_scc_operands().
10400         * config/sh/sh.h (SH_DATALABEL_ENCODING): Change to "#"...
10401         (DATALABEL_SYMNAME_P): ... so that we don't need memcmp here.
10402         2001-01-17  Alexandre Oliva  <aoliva@redhat.com>
10403         * config/sh/sh.h (STRIP_NAME_ENCODING): Strip leading `*'.
10404         2001-01-13  Alexandre Oliva  <aoliva@redhat.com>
10405         * config/sh/sh.md (shcompact_incoming_args): Use R0_REG.
10406         * config/sh/sh.md (R7_REG, R8_REG, R9_REG): Define as constants,
10407         used in shcompact_incoming_args.
10408         * config/sh/sh.c (sh_expand_epilogue): Fix thinko in previous
10409         change.
10410         * config/sh/crt1.asm (start) [SH5]: Switch to single-precision
10411         mode.
10412         * config/sh/lib1funcs.asm (sdivsi3_i4, udivsi3_i4, set_fpscr):
10413         Adjust accordingly.
10414         * config/sh/sh.c (sh_expand_prologue, sh_expand_epilogue):
10415         Simplify.  Adjust.  Add sanity check.
10416         * config/sh/sh.h (TARGET_SWITCHES) [5-compact]: Set
10417         FPU_SINGLE_BIT.
10418         * config/sh/sh.md (udivsi3_i4_single, divsi3_i4_single): Match
10419         TARGET_SHCOMPACT.
10420         (udivsi3, divsi3): Use them.
10421         (force_mode_for_call): New insn.
10422         (call, call_value, sibcall_value): Emit it before SHcompact
10423         calls.
10424         2001-01-11  Alexandre Oliva  <aoliva@redhat.com>
10425         * config/sh/sh.md (call, call_value, sibcall): Make sure the
10426         call cookie is non-NULL before taking its value.
10427         2001-01-10  Alexandre Oliva  <aoliva@redhat.com>
10428         * config.gcc (sh64): Set target_requires_64bit_host_wide_int.
10429         2001-01-09  Alexandre Oliva  <aoliva@redhat.com>
10430         * config/sh/sh.md (shcompact_incoming_args): Set argument memory
10431         block.
10432         * config/sh/sh.h (STATIC_CHAIN_REGNUM) [SH5]: Use r1.
10433         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r0 as
10434         temporary for stack adjusts.  Use MACL and MACH to pass
10435         arguments to shcompact_incoming_args.
10436         * config/sh/sh.md (shcompact_incoming_args): Adjust.  Don't
10437         clobber r1.
10438         * config/sh/lib1funcs.asm (shcompact_incoming_args): Likewise.
10439         (nested_trampoline): Load static chain address into r1.
10440         * config/sh/sh.md (movdi_media splits): Fix sign-extension.
10441         2001-01-07  Alexandre Oliva  <aoliva@redhat.com
10442         * config/sh/sh.c (fpul_operand) [SHMEDIA]: Just call
10443         fp_arith_reg_operand().
10444         2001-01-06  Alexandre Oliva  <aoliva@redhat.com>
10445         * config/sh/sh.md (casesi): Sign-extend the first two operands,
10446         and use signed compares for them.
10447         * config/sh/sh.c (dump_table): Don't emit 8-byte constants after
10448         4-byte ones.  Instead, inter-leave them, maintaining the 8-byte
10449         ones properly aligned.
10450         (find_barrier): Account for extra alignment needed for 8-byte wide
10451         constants.
10452         (machine_dependent_reorg): Require a label for the second 4-byte
10453         constant after an 8-byte one.
10454         * config/sh/lib1funcs.asm (sdivsi3): Fix typo in yesterday's
10455         change.
10456         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
10457         * config/sh/sh.c (machine_dependent_reorg) [SHCOMPACT]: Reset
10458         last_float when switching float modes.
10459         * config/sh/sh.md (movdf) [SH5]: Don't use stack-pointer
10460         auto-increment for general-purpose registers.
10461         * config/sh/lib1funcs.asm (sdivsi3) [SHMEDIA]: Sign-extend the
10462         result.
10463         * config/sh/sh.c (sh_expand_prologue) [SH5]: Use r1 as temporary
10464         for stack adjust.
10465         * config/sh/sh.c (sh_builtin_saveregs): Support using all
10466         registers for varargs.
10467         2001-01-01  Alexandre Oliva  <aoliva@redhat.com>
10468         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Simplify.
10469         * config/sh/sh.h (CALL_COOKIE_STACKSEQ,
10470         CALL_COOKIE_STACKSEQ_SHIFT, CALL_COOKIE_STACKSEQ_GET): New macros.
10471         (CALL_COOKIE_INT_REG_SHIFT): Adjust.
10472         (FUNCTION_ARG_ADVANCE): Use SHCOMPACT_FORCE_ON_STACK.  Adjust
10473         call_cookie accordingly.
10474         (FUNCTION_ARG): Test SHCOMPACT_FORCE_ON_STACK.
10475         (SHCOMPACT_BYREF): Likewise.
10476         (SHCOMPACT_FORCE_ON_STACK): New macro.
10477         * config/sh/sh.c (sh_expand_prologue): Use new call_cookie format.
10478         (sh_builtin_saveregs): Likewise.
10479         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10480         shcompact_incoming_args): Use new shift values.  Support
10481         sequences of consecutive and non-consecutive pushes/pops.
10482         * config/sh/sh.md (return): Don't explicitly use PR_REG.
10483         2001-01-05  Hans-Peter Nilsson  <hpn@cygnus.com>
10484         * config/sh/sh.h (TEXT_SECTION): Define.
10485         * config/sh/elf.h (ASM_FILE_START): Output TEXT_SECTION_ASM_OP.
10486         2001-01-05  Alexandre Oliva  <aoliva@redhat.com>
10487         * config/sh/sh.h (INIT_CUMULATIVE_LIBCALL_ARGS): New macro.
10488         * config/sh/sh.h (BASE_RETURN_VALUE_REG): Use FP regs for
10489         return values on FPU-enabled SHmedia.
10490         (FUNCTION_VALUE_REGNO_P): Mark FIRST_FP_RET_REG as used on
10491         FPU-enabled SHmedia.
10492         (INIT_CUMULATIVE_ARGS): Set up return trampoline only if
10493         value is returned in a non-FP reg and is not returned by
10494         reference.
10495         * config/sh/sh.md (shcompact_return_tramp_i): Change type to
10496         jump_ind.
10497         2000-01-04  Alexandre Oliva  <aoliva@redhat.com>
10498         * config/sh/sh.h (SH_MIN_ALIGN_FOR_CALLEE_COPY): New.
10499         (FUNCTION_ARG_CALLEE_COPIES): Require argument to be
10500         quad-aligned to be passed by callee-copy reference.
10501         2001-01-03  Alexandre Oliva  <aoliva@redhat.com>
10502         * config/sh/elf.h (MAX_WCHAR_TYPE_SIZE): Define.
10503         * config/sh/sh64.h (MAX_WCHAR_TYPE_SIZE): Undefine.
10504         2001-01-02  Alexandre Oliva  <aoliva@redhat.com>
10505         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix error in
10506         copying low-numbered FP regs to r7 and r8.
10507         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Don't request copying of
10508         FP regs to general-purpose regs only if the copy was passed on the
10509         stack.
10510         * config/sh/lib1funcs.asm (shcompact_call_trampoline): Fix typo in
10511         copying FP reg to r9.
10512         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Use trampoline to
10513         copy FP regs to general-purpose regs only in outgoing calls.
10514         * config/sh/sh.md (movdf_media, movsf_media): Revert incorrect
10515         change from     2000-10-30.  Adjust for 64-bit (or 32-bit)
10516         HOST_WIDE_INT.
10517         * config/sh/sh.h (struct sh_args): Document all fields.
10518         (FUNCTION_OK_FOR_SIBCALL): Functions that receive arguments
10519         passed partially on the stack should not consider making
10520         sibcalls.
10521         * config/sh/sh.h (FUNCTION_ARG_ADVANCE): Add byref regs to
10522         stack_regs only for incoming calls.  When passing FP args,
10523         make sure there are FP regs available before modifying
10524         call_cookie.
10525         (SHCOMPACT_BYREF): Pass double args in general-purpose
10526         registers by reference.
10527         2000-12-30  Alexandre Oliva  <aoliva@redhat.com>
10528         * config/sh/sh.h (FUNCTION_OK_FOR_SIBCALL) [SHCOMPACT]: Don't
10529         attempt to generate sibcalls if the caller got any arguments
10530         by reference.
10531         * config/sh/lib1funcs.asm (set_fpscr) [SH5]: Default to double.
10532         * config/sh/sh.c (dump_table) [SHCOMPACT]: Align DImode and DFmode
10533         to 8-byte boundaries.
10534         * config/sh/sh.md (shcompact_preserve_incoming_args): New insn.
10535         * config/sh/sh.h (CALL_COOKIE_INT_REG_GET): New macro.
10536         * config/sh/sh.c (sh_expand_prologue): Preserve args that will be
10537         stored in the stack.
10538         * config/sh/lib1funcs.asm (ct_main_table, ia_main_table): Arrange
10539         for the offsets to have the ISA bit set.
10540         (shcompact_call_trampoline): Document.  Swap r0 and r1, to match
10541         invocation.  Use beq instead of bgt to mark end of sequence of
10542         loads.
10543         (shcompact_incoming_args): Fix store of r2.  Use beq instead of
10544         bgt to mark end of sequence of stores.
10545         * config/sh/sh.c (arith_operand): Don't check whether
10546         CONST_OK_FOR_J for now.
10547         * config/sh/sh.md (movdf_media, movsf_media): Use HOST_WIDE_INT
10548         instead of long for conversion.
10549         2000-12-29  Alexandre Oliva  <aoliva@redhat.com>
10550         * config/sh/sh.c (print_operand_address): Convert INTVAL to int
10551         before passing it to fprintf.
10552         2000-12-28  Alexandre Oliva  <aoliva@redhat.com>
10553         * config/sh/crt1.asm (start): Reset SR.FD, to enable the FP unit.
10554         Call set_fpscr before reading/writing SR.
10555         * config/sh/crt1.asm (start): Set SR.SZ and SR.PR, but not SR.FR.
10556         Call set_fpscr.
10557         * config/sh/lib1funcs.asm: Add `.align 2' directives before
10558         SHmedia code.
10559         (FMOVD_WORKS): Define on SH5 with FPU.
10560         (set_fpscr): Define on SH5.  Remove separate _fpscr_values
10561         setting.
10562         * config/sh/t-sh64 (LIB1ASMFUNCS): Add _set_fpscr instead of
10563         _fpscr_values.
10564         2000-12-28  Hans-Peter Nilsson  <hpn@cygnus.com>
10565         * config/sh/lib1funcs.asm (ct_main_table): Align contents to even
10566         address.
10567         (ia_main_table): Ditto.
10568         2000-12-27  Alexandre Oliva  <aoliva@redhat.com>
10569         * config/sh/sh.h (MAX_WCHAR_TYPE_SIZE): Don't define.
10570         * config/sh/sh64.h (WCHAR_TYPE, WCHAR_TYPE_SIZE): Reinstate
10571         the definitions from sh.h.
10572         * config/sh/sh.h (PTRDIFF_TYPE): Define as conditional on
10573         TARGET_SH5.
10574         (SUBTARGET_CPP_SPEC): Arrange for __PTRDIFF_TYPE__ to be defined.
10575         * config/sh/elf.h (PTRDIFF_TYPE): Likewise.
10576         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10577         2000-12-26  Alexandre Oliva  <aoliva@redhat.com>
10578         * config/sh/sh.md (movdi_media split): Don't add REG_LABEL notes.
10579         Increment LABEL_NUSES.
10581         * config/sh/sh.h (SIZE_TYPE): Define as conditional on
10582         TARGET_SH5.
10583         (SUBTARGET_CPP_SPEC): Arrange for __SIZE_TYPE__ to be always
10584         defined.
10585         * config/sh/elf.h (SIZE_TYPE): Likewise.
10586         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Likewise.
10587         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10588         shcompact_incoming_args): Load switch table addresses using
10589         datalabel.
10590         * config/sh/sh.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10591         (NO_BUILTIN_SIZE_TYPE): Define.
10592         (SIZE_TYPE): Don't define.
10593         * config/sh/sh64.h (SUBTARGET_CPP_SPEC): Define __SIZE_TYPE__.
10594         * config/sh/sh.h (CPP_SPEC): Fixed typo that prevented the
10595         definition of __SH5__=32 for -m5-compact-nofpu.
10596         * config/sh/sh.c (barrier_align): Ensure 32-bit alignment after
10597         ADDR_DIFF_VEC.
10598         2000-12-24  Alexandre Oliva  <aoliva@redhat.com>
10599         * config/sh/sh.h (FUNCTION_ARG_PADDING): Removed.
10600         2000-12-23  Alexandre Oliva  <aoliva@redhat.com>
10601         * config/sh/sh.h (TARGET_CACHE32): Enable on SH5.
10602         (FUNCTION_BOUNDARY): Ensure 32-bit alignment for SHmedia.
10603         (INSN_LENGTH_ALIGNMENT): Likewise.
10604         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10605         * config/sh/sh.md (call, call_value, sibcall): Simplify
10606         copying of non-branch-target register.
10607         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10608         * glimits.h (__LONG_MAX__): Revert      2000-12-13's patch.
10609         * config/sh/sh.h (CPP_SPEC): Define it here for 64-bit SHmedia.
10610         2000-12-22  Alexandre Oliva  <aoliva@redhat.com>
10611         * config/sh/sh.h (GET_SH_ARG_CLASS): Handle complex
10612         floating-point values as structs.
10613         (FUNCTION_ARG): Use SH5_PROTOTYPED_FLOAT_ARG.
10614         (SH5_PROTOTYPELESS_FLOAT_ARG): List FP registers before
10615         general-purpose register.
10616         (SH5_PROTOTYPED_FLOAT_ARG): New macro.
10617         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
10618         * config/sh/sh.md (addsi3): Force operand1 to reg for SHmedia.
10619         * config/sh/sh.md (movsi_media): Split CONST_DOUBLE loads too.
10620         * config/sh/sh.h (DATALABEL_REF_P): Don't require the CONST.
10621         (ENCODE_SECTION_INFO): Enclose variables and constants in
10622         DATALABEL unspecs.
10623         (SH_DATALABEL_ENCODING, DATALABEL_SYMNAME_P): Define.
10624         (STRIP_NAME_ENCODING): Strip SH_DATALABEL_ENCODING off.
10625         (ASM_OUTPUT_LABELREF, AMS_OUTPUT_SYMBOL_REF): Define.
10626         * config/sh/sh.c (gen_datalabel_ref): Use UNSPEC_DATALABEL
10627         only for LABEL_REFs.  For SYMBOL_REFs, prepend
10628         SH_DATALABEL_ENCODING to the symbol name.
10629         * config/sh/sh.md (indirect_jump): Use SUBREG instead of
10630         convert_mode().
10631         2000-12-20  Alexandre Oliva  <aoliva@redhat.com>
10632         * config/sh/sh.md (casesi): Enclose ADDR_DIFF_VEC address in
10633         UNSPEC_DATALABEL.
10634         * config/sh/sh.c (gen_datalabel_ref): Accept LABEL_REFs.
10635         * config/sh/sh.h (DATALABEL_REF_NO_CONST_P): Likewise.
10636         (DATALABEL_REF_P): Don't require CONST.
10637         (ASM_OUTPUT_ADDR_DIFF_ELT): On SH5, output datalabel before
10638         REL label.
10639         2000-12-19  Alexandre Oliva  <aoliva@redhat.com>
10640         * config/sh/sh.md (extendhidi2, extendqidi2): Use arithmetic shift
10641         right.
10642         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
10643         * config/sh/sh.md (movsi_media, call, call_value, sibcall):
10644         Use shallow_copy_rtx and PUT_MODE to change the mode of
10645         SYMBOL_REFs, LABEL_REFs, CONSTs, etc.
10646         * config/sh/sh.h (PREFERRED_RELOAD_CLASS): Reload SYMBOL_REFs
10647         on SHmedia using GENERAL_REGs.
10648         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10649         bltu_media_i): Fix reversion of conditions.
10650         2000-12-18  Alexandre Oliva  <aoliva@redhat.com>
10651         * config/sh/sh.md (zero_extendhidi2): Use logical shift right.
10652         * config/sh/sh.c (output_far_jump): Save r13 in macl.
10653         2000-12-17  Alexandre Oliva  <aoliva@redhat.com>
10654         * config/sh/sh.c (gen_datalabel_ref): Fix mode of the UNSPEC.
10655         2000-12-16  Alexandre Oliva  <aoliva@redhat.com>
10656         * config/sh/lib1funcs.asm (ic_invalidate): Define for SH5.
10657         (GCC_nested_trampoline): Likewise.
10658         * config/sh/sh-protos.h (gen_datalabel_ref): Declare.
10659         * config/sh/sh.c (gen_datalabel_ref): Define.
10660         * config/sh/sh.h (TRAMPOLINE_SIZE): Adjust for SH5.
10661         (INITIALIZE_TRAMPOLINE): Likewise.
10662         (TRAMPOLINE_ADJUST_ADDRESS): Define.
10663         (DATALABEL_REF_NO_CONST_P, DATALABEL_REF_P): Define.
10664         (EXTRA_CONSTRAINT_T): Match DATALABEL unspecs.
10665         (OUTPUT_ADDR_CONST_EXTRA): Handle DATALABEL unspecs.
10666         * config/sh/sh.md (UNSPEC_DATALABEL): New constant.
10667         (ic_invalidate): Adjust for SH5.
10668         (ic_invalidate_line_media, ic_invalidate_line_compact): New insns.
10669         * config/sh/t-sh64 (LIB1ASMFUNCS): Added _ic_invalidate and
10670         _nested_trampoline.
10671         2000-12-15  Alexandre Oliva  <aoliva@redhat.com>
10672         * config/sh/sh.h (MOVE_MAX): Set to 8 for SHmedia, 4 elsewhere.
10673         (MOVE_MAX_PIECES): Set to 8 on SHmedia too.
10674         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
10675         * config/sh/sh.h (DBX_REGISTER_NUMBER): Adjust for sh64-elf-gdb.
10676         * config/sh/elf.h (DBX_REGISTER_NUMBER): Likewise.
10677         2000-12-14  Alexandre Oliva  <aoliva@redhat.com>
10678         * config/sh/sh.c (target_reg_operand): Match only target-branch
10679         registers and pseudos that aren't virtual registers.
10680         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10681         Copy operands that don't match target_reg_operand to pseudos.
10682         (call_media, call_value_media, sibcall_media): Use
10683         target_reg_operand instead of target_operand.
10684         2000-12-13  Alexandre Oliva  <aoliva@redhat.com>
10685         * glimits.h (__LONG_MAX__) [SH5 == 64]: Adjust for 64 bits.
10686         * config/sh/sh.c (target_reg_operand): Match hardware registers
10687         other than branch-target registers.
10688         * config/sh/sh.md (zero_extendqidi2): Input operand is %1.
10689         * config/sh/lib1funcs.asm (sdivsi3) [SH5]: Make it global.
10690         (fpscr_values) [SH5 == 32]: Define.
10691         * config/sh/t-sh64 (LIB1ASMFUNCS): Add fpscr_values.
10692         * config/sh/sh.md (call, call_value, sibcall) [TARGET_SHMEDIA]:
10693         Handle function addresses coming in SUBREGs.
10694         2000-12-12  Alexandre Oliva  <aoliva@redhat.com>
10695         * config/sh/lib1funcs.asm (shcompact_call_trampoline,
10696         shcompact_return_trampoline): Use datalabel where appropriate.
10697         2000-12-09  Alexandre Oliva  <aoliva@redhat.com>
10698         * config/sh/sh.h (SECONDARY_OUTPUT_RELOAD_CLASS): Use a
10699         general-purpose register to copy one branch-target register to
10700         another.
10701         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
10702         * config/sh/sh.c (target_operand): Accept LABEL_REFs and
10703         SYMBOL_REFs with VOIDmode.
10704         * config/sh/sh.md (ble_media_i, blt_media_i, bleu_media_i,
10705         bltu_media_i): New insns.
10706         2000-12-06  Alexandre Oliva  <aoliva@redhat.com>
10707         * config/sh/sh.h (RETURN_IN_MEMORY): Adjust for SH5 ABI.
10708         (INIT_CUMULATIVE_ARGS): Likewise.
10709         2000-12-01  Alexandre Oliva  <aoliva@redhat.com>
10710         * machmode.def (V16SFmode): New mode.
10711         * c-common.c (type_for_mode): Support V2SF and V16SF.
10712         * tree.c (build_common_tree_nodes_2): Likewise.
10713         * tree.h (tree_index): Likewise.
10714         * calls.c (emit_call_1): Take args_so_far.  Adjust all
10715         callers.  Introduce CALL_POPS_ARGS.
10716         * tm.texi (CALL_POPS_ARGS): Document.
10717         * config/sh/crt1.asm: Implement in SHmedia mode.
10718         * config/sh/crti.asm, config/sh/crtn.asm: Likewise
10719         * config/sh/elf.h (ASM_SPEC, LINK_SPEC): Support SH5 flags.
10720         (DBX_REGISTER_NUMBER): Renumber registers for SH5.
10721         * config/sh/lib1funcs.asm: Disable functions unused in SH5.
10722         Implement divsi and udivsi in SHmedia mode.  Introduce
10723         SHcompact trampolines.
10724         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): Use DImode
10725         only in SHmedia64.
10726         (regno_reg_class): Rewrite.
10727         (fp_reg_names): Remove.
10728         (sh_register_names, sh_additional_register_names): New.
10729         (print_operand): Added `u'.  Support SUBREGs in addresses.
10730         Add parentheses around shifted CONSTs.
10731         (output_file_start): Output .mode and .abi directives.
10732         (shiftcosts, addsubcosts, multcosts): Adjust.
10733         (output_stack_adjust): Compute alignment.  Sanity-check SIZE.
10734         (push_regs): Take array of HOST_WIDE_INTs.  Adjust callers.
10735         (calc_live_regs): Output to array of HOST_WIDE_INTs.  Count
10736         bytes, not registers.  Take into account the need for the
10737         SHcompact incoming args trampoline.  Adjust all callers.
10738         (sh_expand_prologue): Take stack_regs into account.  Call
10739         incoming args trampoline.  Keep stack aligned as per SH5 ABI.
10740         (sh_expand_epilogue): Take stack_regs into accoutn.  Keep
10741         stack aligned as per SH5 ABI.
10742         (sh_builtin_saveregs): Support SH5 ABI.
10743         (sh_build_va_list, sh_va_start): Likewise.
10744         (initial_elimination_offset): Take alignment into account.
10745         Compute location of PR according to the SH5 stack frame.
10746         (arith_reg_operand): Reject branch-target registers.
10747         (shmedia_6bit_operand): New.
10748         (logical_operand): Use CONST_OK_FOR_P on SHmedia.
10749         (target_reg_operand): Match DImode only.  Accept SUBREGs.
10750         (target_operand): New.
10751         * config/sh/sh.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Support SH5 flags.
10752         (CONDITIONAL_REGISTER_USAGE): Implement SH5 ABI.  Initialize
10753         SIBCALL_REGS for SHmedia.
10754         (TARGET_SH3E, TARGET_SH4): Only if SH1_BIT is set too.
10755         (TARGET_FPU_DOUBLE, TARGET_FPU_ANY): New.
10756         (TARGET_SHMEDIA32, TARGET_SHMEDIA64): New.
10757         (TARGET_SWITCHES): New SH5 flags.
10758         (OVERRIDE_OPTIONS): Set SH5-specific options.  Use
10759         VALID_REGISTER_P to disable unsupported registers.
10760         (LONG_TYPE_SIZE, LONG_LONG_TYPE_SIZE): Set.
10761         (POINTER_SIZE, PARM_BOUNDARY): Adjust.
10762         (FUNCTION_ARG_PADDING): Define.
10763         (FASTEST_ALIGNMENT): Adjust.
10764         (SH_REGISTER_NAMES_INITIALIZER): New.
10765         (sh_register_names): Declare.
10766         (DEBUG_REGISTER_NAMES): Define.
10767         (REGISTER_NAMES): Define based on sh_register_names.
10768         (SH_ADDITIONAL_REGISTER_NAMES_INITIALIZER): New.
10769         (sh_additional_register_names): Declare.
10770         (LAST_GENERAL_REG, LAST_FP_REG, LAST_XD_REG): Adjust for SHmedia.
10771         (FIRST_TARGET_REG, LAST_TARGET_REG): Define.
10772         (TARGET_REGISTER_P, SHMEDIA_REGISTER_P, VALID_REGISTER_P): Define.
10773         (REGISTER_NATURAL_MODE): Define.
10774         (FIRST_PSEUDO_REGISTER): Adjust.
10775         (FIXED_REGISTERS, CALL_USED_REGISTERS): Adjust.
10776         (HARD_REGNO_CALL_PART_CLOBBERED): Define.
10777         (HARD_REGNO_NREGS, HARD_REGNO_MODE_OK): Adjust.
10778         (VECTOR_MODE_SUPPORTED_P): Define.
10779         (REG_CLASS_CONTENTS): Adjust.
10780         (SMALL_REGISTER_CLASSES): Adjust.
10781         (REG_ALLOC_ORDER): Adjust.
10782         (INDEX_REG_CLASS): Adjust.
10783         (CONST_OK_FOR_O, CONST_OK_FOR_P): New.
10784         (CONST_OK_FOR_LETTER_P): Adjust.
10785         (PREFERRED_RELOAD_CLASS): Adjust.
10786         (SECONDARY_OUTPUT_RELOAD_CLASS): Adjust.
10787         (SECONDARY_INPUT_RELOAD_CLASS): Adjust.
10788         (NPARM_REGS, FIRST_PARM_REG, FIRST_RET_REG): Adjust.
10789         (FIRST_FP_PARM_REG): Adjust.
10790         (CALL_POPS_ARGS): Define.
10791         (FUNCTION_ARG_REGNO_P): Adjust.
10792         (struct sh_args): New fields.
10793         (GET_SH_ARG_CLASS): Adjust.
10794         (INIT_CUMULATIVE_ARGS): Adjust.
10795         (INIT_CUMULATIVE_INCOMING_ARGS): Define.
10796         (FUNCTION_ARG_ADVANCE): Adjust.
10797         (FUNCTION_ARG): Adjust.
10798         (FUNCTION_ARG_PASS_BY_REFERENCE, SHCOMPACT_BYREF): Define.
10799         (FUNCTION_ARG_CALLEE_COPIES): Define.
10800         (SH5_PROTOTYPELESS_FLOAT_ARG): Define.
10801         (STRICT_ARGUMENT_NAMING): Define.
10802         (PRETEND_OUTGOING_VARARGS_NAMED): Adjust.
10803         (FUNCTION_ARG_PARTIAL_NREGS): Adjust.
10804         (SH5_WOULD_BE_PARTIAL_NREGS): Define.
10805         (SETUP_INCOMING_VARARGS): Adjust.
10806         (HAVE_POST_INCREMENT, HAVE_PRE_DECREMENT): Adjust.
10807         (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT): Adjust.
10808         (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Adjust.
10809         (SUBREG_OK_FOR_INDEX_P): Adjust.
10810         (EXTRA_CONSTRAINT_S): Update.
10811         (EXTRA_CONSTRAINT_T): New.
10812         (EXTRA_CONSTRAINT): Adjust.
10813         (GO_IF_LEGITIMATE_INDEX): Adjust.
10814         (GO_IF_LEGITIMATE_ADDRESS): Adjust.
10815         (LEGITIMIZE_ADDRESS, LEGITIMIZE_RELOAD_ADDRESS): Adjust.
10816         (MOVE_MAX): Adjust.
10817         (MAX_MOVE_MAX): Define.
10818         (Pmode): Adjust.
10819         (CONST_COSTS): Adjust.
10820         (REGISTER_MOVE_COST): Adjust.
10821         (BRANCH_COST): Adjust.
10822         (TEXT_SECTION_ASM_OP): Adjust.
10823         (DBX_REGISTER_NUMBER): Adjust.
10824         (ASM_OUTPUT_DOUBLE_INT): New.
10825         (UNALIGNED_DOUBLE_INT_ASM_OP): New.
10826         (PREDICATE_CODES): Adjust.
10827         (PROMOTE_MODE): Adjust.
10828         (CRT_CALL_STATIC_FUNCTION): Do not define for SHmedia.
10829         * config/sh/sh.md (AP_REG, PR_REG, T_REG, GBR_REG): Renumber.
10830         (MACH_REG, MACL_REG, FPUL_REG, RAP_REG, FPSCR_REG): Renumber.
10831         (PR_MEDIA_REG, T_MEDIA_REG, R10_REG): New.
10832         (DR0_REG, DR2_REG, DR4_REG): Renumber.
10833         (TR0_REG, TR1_REG, TR2_REG): New.
10834         (XD0_REG): Renumber.
10835         (UNSPEC_COMPACT_ARGS): New.
10836         (type): Added pt and ptabs.
10837         (length): Default to 4 on SHmedia.  Default pt length to 12
10838         and     20 on SHmedia32 and SHmedia64, respectively.
10839         (pt): New function unit.
10840         (movdi, movsi): Add types pt and ptabs.  Don't increment LABEL_NUSES.
10841         Add whitespace between operands of SHmedia instructions.
10842         (movdicc): Fix.
10843         (adddi3_media, addsi3_media): Adjust constraints.
10844         (subsi3) [SHmedia]: Force operand 1 into a register.
10845         (udivsi3_i1_media, udivsi3_i4_media): New.
10846         (udivsi3): Support SHmedia.
10847         (divsi3_i1_media, divsi3_i4_media): New.
10848         (divsi3): Support SHmedia.
10849         (anddi3, iordi3, xordi3): Adjust constraints.
10850         (zero_extendhidi2, zero_extendqidi2): New.
10851         (extendsidi2, extendhidi2, extendqidi2): New.
10852         (push, pop, push_e, push_fpul, push_4): Disable on SH5.
10853         (pop_e, pop_fpul, pop_4): Likewise.
10854         (movsi_media): Support FP and BT registers.
10855         (movsi_media_nofpu): New.  Adjust splits to DImode.
10856         (lduw, ldub): Renamed to zero_extend* above.
10857         (movqi_media): Fix typo.
10858         (movdi_media): Support FP and BT registers.
10859         (movdi_media_nofpu): New.  Adjust splits for SHmedia32.
10860         (movdi_const_32bit): New.
10861         (shori_media): Require immediate operand.  Use `u' for output.
10862         (movdf_media, movsf_media): Simplified.
10863         (movdf_media_nofpu, movsf_media_nofpu): New.
10864         (movdf, movsf): Adjust
10865         (movv2sf, movv2sf, movv16sf): New.
10866         (beq_media, beq_media_i): Adjust constraints.  Don't use
10867         scratch BT register.
10868         (bne_media, bne_media_i): Likewise.
10869         (bgt_media, bgt_media_i): Likewise.
10870         (bge_media, bge_media_i): Likewise.
10871         (bgtu_media, bgtu_media_i): Likewise.
10872         (bgeu_media, bgeu_media_i): Likewise.
10873         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu,
10874         bunordered): Emit jump insn.  Force operands to registers when
10875         needed.
10876         (jump_media, jump): Simplify.
10877         (call_compact, call_compact_rettramp): New.
10878         (call_value_compact, call_value_compact_rettramp): New.
10879         (call_media, call_value_media): Simplify.
10880         (sibcall_compact, sibcall_media): New.
10881         (call, call_value): Adjust for SHmedia and SHcompact.
10882         (sibcall, sibcall_value, untyped_call): Likewise.
10883         (sibcall_epilogue): Preserve r0 across epilogue for SHcompact.
10884         (indirect_jump): Adjust for SHmedia.
10885         (casesi_jump_media): New.
10886         (nop): Re-enable for SHmedia.
10887         (call_site): Restrict to SH1.
10888         (casesi): Adjust for SHmedia.
10889         (casesi_shift_media, casesi_load_media): New.
10890         (return): Explicitly use PR register.  Call return trampoline
10891         on SHcompact.
10892         (return_i): Explicitly use PR register.
10893         (shcompact_return_tramp, shcompact_return_tramp_i): New.
10894         (return_media): Adjust.
10895         (shcompact_incoming_args): New.
10896         (epilogue): Adjust.
10897         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10898         (movstrsi): Disable on SH5.
10899         (fpu_switch0, fpu_switch1, movpsi): Enable on SH4.
10900         (addsf3, addsf3_media): Test TARGET_SHMEDIA_FPU.
10901         (subsf3, subsf3_media): Likewise.
10902         (mulsf3, mulsf3_media, mac_media): Likewise.
10903         (divsf3, divsf3_media): Likewise.
10904         (floatdisf2, floatsisf2_media): Likewise.  Adjust constraints.
10905         (floatsisf2, fux_truncsfsi2): Likewise.
10906         (fix_truncsfdi2, fix_truncsfsi2_media): Likewise.  Adjust
10907         constraints.
10908         (cmpeqsf_media, cmpgtsf_media, cmpgesf_media): Likewise.
10909         (cmpunsf_media, cmpsf): Likewise.
10910         (negsf2, negsf2_media, sqrtsf2, sqrtsf2_media): Likewise.
10911         (abssf2, abssf2_media): Likewise.
10912         (adddf3, adddf3_media, subdf3, subdf3_media): Likewise.
10913         (muldf3, muldf3_media, divdf3, divdf3_media): Likewise.
10914         (floatdidf2, floatsidf2_media): Likewise.  Adjust constraints.
10915         (floatsidf2, fix_truncdfsi2): Likewise.
10916         (fix_truncdfdi2, fix_truncdfsi2_media): Likewise.  Adjust
10917         constraints.
10918         (cmpeqdf_media, cmpgtdf_media): Likewise.
10919         (cmpgedf_media, cmpundf_media, cmpdf): Likewise.
10920         (negdf2, negdf2_media, sqrtdf2, sqrtdf2_media): Likewise.
10921         (absdf2, absdf2_media): Likewise.
10922         (extendsfdf2, extendsfdf2_media): Likewise.
10923         (truncsfdf2, truncsfdf2_media): Likewise.
10924         * config/sh/sh64.h: New file.
10925         * config/sh/t-sh64: New file.
10926         * config/sh/shmedia.h: New file.
10927         * config/sh/ushmedia.h: New file.
10928         * config/sh/sshmedia.h: New file.
10929         * configure.in: Added sh64-*-elf.
10930         * configure: Rebuilt.
10931         2000-10-10  Alexandre Oliva  <aoliva@redhat.com>
10932         * config/sh/sh.c (GEN_MOV, GEN_ADD3, GEN_SUB3): New macros.
10933         (reg_class_from_letter): Use `b' for TARGET_REGS.
10934         (print_operand): Support `%M', `%m', `AND' and
10935         `ASHIFTRT'.  Do not precede constants with `#' on SHmedia.
10936         (andcosts): Adjust for SHmedia.
10937         (output_stack_adjust, sh_expand_prologue, sh_expand_epilogue):
10938         Likewise.
10939         (target_reg_operand): New function.
10940         * config/sh/sh-protos.h (target_reg_operand): Declare.
10941         * config/sh/sh.h (CONDITIONAL_REGISTER_USAGE): Don't disable
10942         FP registers on SH5.
10943         (HARD_REGNO_MODE_OK): Accept them whenever they're acceptable
10944         on SH4.
10945         (TARGET_REGISTER_P): New macro.
10946         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Added TARGET_REGS.
10947         (FUNCTION_VALUE): Use DImode for promoted types on SHmedia.
10948         (EXTRA_CONSTRAINT_S): New macro.
10949         (EXTRA_CONSTRAINT): Adjust.
10950         (FLOAT_TYPE_SIZE): Define to 32.
10951         (Pmode): DImode on SHmedia.
10952         (CONST_COSTS): Adjust for SHmedia literals.
10953         (PREDICATE_CODES): Added target_reg_operand.
10954         (PROMOTE_MODE): Promote signed types to DImode on SHmedia.
10955         * config/sh/sh.md: Remove all attrs from SHmedia insns.
10956         (cmpeqdi_media, cmpgtdi_media, cmpgtudi_media): New insns.
10957         (cmpdi): Accept SHmedia.
10958         (movdicc_false, movdicc_true): New insns.
10959         (movdicc): New expand.
10960         (adddi3): Accept arith_operand for op2, but FAIL on SH1 if
10961         no_new_pseudos.
10962         (addsi3_media): Match `S' constraint.
10963         (anddi3, andcdi3, iordi3, xordi3, negdi_media): New insns.
10964         (negdi2): Expand for SHmedia.
10965         (one_cmpldi2): New expand.
10966         (zero_extendsidi2): Change from expand to insn.
10967         (extendsidi2): Add constraints.
10968         (movdi_media, movsi_media): Change `%x' to `%M'.  Use `%m' for
10969         LD/ST address.  Fix SI immediate loading split.
10970         (movhi_media, movqi_media, lduw, ldub): New insns.
10971         (movhi, movqi): Accept SHmedia.
10972         (shori_media, movdi_media): Relax input constraints.  Split
10973         symbolic constants.
10974         (movdf_media, movsf_media): New insn.  New split to movdi.
10975         (movdf, movsf): Match on SHmedia.
10976         (beq_media, bne_media, bgt_media, bge_media, bgtu_media,
10977         bgeu_media): New insns and splits.  New insns with `_i' suffix.
10978         (beq, bne, bgt, blt, ble, bge, bgtu, bltu, bgeu, bleu): Adjust.
10979         (bunordered): New expand.
10980         (jump_compact): Renamed from `jump'.
10981         (jump_media): New insn.
10982         (jump): New expand.
10983         (call_media, call_value_media): New insns.
10984         (call, call_value): Adjust.
10985         (indirect_jump_compact): Renamed from `indirect_jump'.
10986         (indirect_jump_media): New insn.
10987         (indirect_jump): New expand.
10988         (untyped_call, return): Accept SHmedia.
10989         (return_media): New insn.
10990         (prologue, epilogue, blockage): Accept SHmedia.
10991         (seq, slt, sle, sgt, sge, sgtu, sltu, sleu, sgeu, sne): Adjust.
10992         (sunordered): New expand.
10993         (addsf3, subsf3, mulsf3, divsf3, floatsisf2, fix_truncsfsi2,
10994         cmpsf, negsf2, sqrtsf2, abssf2): Adjust for SHmedia.
10995         (addsf3_media, subsf3_media, mulsf3_media, mac_media,
10996         divsf3_media, floatdisf2, floatsisf2_media, fix_truncsfdi2,
10997         fix_truncsfsi2_media, cmpeqsf_media, cmpgtsf_media,
10998         cmpgesf_media, cmpunsf_media, negsf2_media, sqrtsf2_media,
10999         abssf2_media): New insns.
11000         (adddf3, subdf3, muldf3, divdf3, floatsidf2, fix_truncdfsi2,
11001         cmpdf, negdf2, sqrtdf2, absdf2): Adjust for SHmedia.
11002         (adddf3_media, subdf3_media, muldf3_media, divdf3_media,
11003         floatdidf2, floatsidf2_media, fix_truncdfdi2,
11004         fix_truncdfsi2_media, cmpeqdf_media, cmpgtdf_media,
11005         cmpgedf_media, cmpundf_media, negdf2_media, sqrtdf2_media,
11006         absdf2_media): New insns.
11007         (extendsfdf2, truncdfsf2): Adjust for SHmedia.
11008         (extendsfdf2_media, truncdfsf2_media): New insns.
11009         2000-09-14  Alexandre Oliva  <aoliva@redhat.com>
11010         * config/sh/sh.c (machine_dependent_reorg): On shmedia, skip for now.
11011         * config/sh/sh.h (CONST_OK_FOR_J): Document.
11012         (LEGITIMATE_CONSTANT_P): Accept CONST_DOUBLEs on shmedia.
11013         * config/sh/sh.md (adddi3): New expand.
11014         (adddi3_media, adddi3z_media): New insns.
11015         (adddi3_compact): Renamed from adddi3.
11016         (addsi3_media): Use add.l r63 to add constant zero.
11017         (subdi3): New expand.
11018         (subdi3_media): New insn.
11019         (subdi3_compact): Renamed from subdi3.
11020         (mulsidi3): New expand.
11021         (mulsidi3_media): New insn.
11022         (mulsidi3_compact): Renamed from mulsidi3.
11023         (umulsidi3): New expand.
11024         (umulsidi3_media): New insn.
11025         (umulsidi3_compact): Renamed from umulsidi3.
11026         (ashlsi3_media, ashrsi3_media, lshrsi3_media): New insns.
11027         (ashlsi3, ashrsi3, lshrsi3): Use them.
11028         (ashldi3_media, ashrdi3_media, lshrdi3_media): New insns.
11029         (ashldi3, ashrdi3, lshrdi3): Use them.
11030         (zero_extendsidi2): New expand.
11031         (extendsidi2): New insn.
11032         (movsi_media): New insn.  Split to movdi to load constants.
11033         (movsi): Enable for shmedia.
11034         (movdi_media): New insn.  Use shori_media to load wide constants.
11035         (short_media): New insn.
11036         (movdi): Enable for shmedia.
11037         2000-09-08  Alexandre Oliva  <aoliva@redhat.com>
11038         * config/sh/sh.h (CPP_SPEC): Added `m5'.
11039         (SUBTARGET_CPP_SPEC): Added `!m5'.
11040         (SH5_BIT, TARGET_SH5, TARGET_SHMEDIA, TARGET_SHCOMPACT): New macros.
11041         (TARGET_SWITCHES): Added `5' and `5-compact'.  Added SH1_BIT
11042         to all other SH variants.
11043         (TARGET_DEFAULT): Set to SH1_BIT.
11044         (OVERRIDE_OPTIONS): Recognize sh5 CPU.
11045         (BITS_PER_WORD): Raise to 64 on shmedia.
11046         (MAX_BITS_PER_WORD): Change to 64.
11047         (MAX_LONG_TYPE_SIZE, MAX_WCHAR_TYPE_SIZE): Set to MAX_BITS_PER_WORD.
11048         (INT_TYPE_SIZE): Keep as 32.
11049         (UNITS_PER_WORD): Raise to 8 on shmedia.
11050         (MIN_UNITS_PER_WORD): Keep as 4.
11051         (POINTER_SIZE): Raise to 64 on shmedia.
11052         (CONST_OK_FOR_J): New macro.
11053         (CONST_OK_FOR_LETTER_P): Use it.
11054         (processor_type): Add PROCESSOR_SH5.
11055         * config/sh/sh.md: Conditionalize all expands, insns and
11056         splits to TARGET_SH1.
11057         (cpu): Added sh5.
11058         (addsi3_compact): Renamed from...
11059         (addsi3): Now an expand.
11060         (addsi3_media, subsi3_media): New insns.
11061         (subsi3): Don't negate constants with SHmedia.
11063         * hooks.c: New file.
11064         * hooks.h: New file.
11065         * Makefile.in (HOOKS_H): New.
11066         (TARGET_DEF_H): Added $(HOOKS_H).
11067         (OBJS): Added hooks.o.
11068         (cfgcleanup.o, bb-reorder.o): Added target.h.
11069         (hooks.o): Added dependencies.
11070         * target-def.h (TARGET_CANNOT_MODIFY_JUMPS_P): New, added to...
11071         (TARGET_INITIALIZER): this.
11072         * doc/tm.texi (TARGET_CANNOT_MODIFY_JUMPS_P): Document.
11073         * target.h (struct gcc_target): Added cannot_modify_jumps_p.
11074         * bb-reorder.c: Include target.h.
11075         (reorder_basic_blocks): Skip if cannot modify jumps.
11076         * cfgcleanup.c: Include target.h.
11077         (try_optimize_cfg): Skip merge blocking if cannot modify jumps.
11079 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
11081         * config/mips/mips.md (casesi_internal, casesi_internal_di):
11082         Protect jump delay slot instructions with .set noreorder and
11083         .set nomacro.
11085 2002-02-08  Chris Demetriou  <cgd@broadcom.com>
11087         * config/mips/mips.md (casesi_internal_di): Calculate
11088         the index into the target offset table correctly.
11090 2002-02-08  Richard Henderson  <rth@redhat.com>
11092         * expr.c (expand_expr): Mind EXPAND_INITIALIZER for truncation also.
11093         * final.c (output_addr_const): Accept and discard SUBREG.
11094         * varasm.c (decode_addr_const): Don't abort on unknown expressions --
11095         mark them unknown instead.
11096         (simplify_subtraction): Handle RTX_UNKNOWN.
11097         (initializer_constant_valid_p): Strip NOP_EXPRs that narrow the mode.
11099 2002-02-08  David Edelsohn  <edelsohn@gnu.org>
11101         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix typo.
11103 2002-02-08  Richard Henderson  <rth@redhat.com>
11105         * config/alpha/elf.h (ASM_OUTPUT_ALIGNED_BSS): New.
11107 2002-02-08  Andreas Jaeger  <aj@suse.de>
11109         * config.gcc (x86_64-*-linux): Add t-linux64 makefile fragment.
11110         * config/i386/t-linux64: New file.
11112 2002-02-08  Jakub Jelinek  <jakub@redhat.com>
11114         * c-common.c (c_expand_expr): Revert 2002-02-06 patch.
11115         * c-parse.in (compstmt): Clear last_expr_type.
11117 2002-02-07  Richard Henderson  <rth@redhat.com>
11119         * loop.c (strength_reduce): Sink final_value when not
11120         eliminating a biv.
11122 2002-02-07  David O'Brien  <obrien@FreeBSD.org>
11124         * config/sparc/freebsd.h: Fix mismatched spec {.
11126 2002-02-07  Richard Henderson  <rth@redhat.com>
11128         * cfgrtl.c: Include recog.h and insn-config.h.
11129         (keep_with_call_p): Fix general_operand invocation.
11130         * Makefile.in (cfgrtl.o): Update dependencies.
11132 2002-02-07  Kazu Hirata  <kazu@hxi.com>
11134         * config/h8300/h8300.c (two_insn_adds_subs_operand): Revise a
11135         comment.  Accept HImode only if TARGET_H8300.
11137 2002-02-07  Eric Christopher  <echristo@redhat.com>
11139         * config/mips/crtn.asm: Cleanup #ifdefs.
11141 2002-02-07  Eric Christopher  <echristo@redhat.com>
11143         * config/mips/crti.asm: Add changes for mips16. mips16 uses
11144         register 7 as RA instead of $31.
11145         * config/mips/crtn.asm: Ditto.
11146         * config/mips/mips.c (mips_move_2words): Add case for
11147         TARGET_MIPS16 when HOST_BITS_PER_WIDE_INT >= 64.
11148         (compute_frame_size): Fix typo.
11149         (save_restore_insns): Ditto.  Make documentation about using
11150         register $7 as return register more precise.
11151         (mips_expand_epilogue): Fix comment. Add code to work around not
11152         being able to add to the stack pointer directly.
11153         * config/mips/mips.h (EH_RETURN_DATA_REGNO): Change register number
11154         to 2 for TARGET_MIPS16 as we need 6 and 7 as clobbers in the
11155         epilogue.
11157 2002-02-07  Tom Rix  <trix@redhat.com>
11159         * config/rs6000/rs6000.c (reg_or_aligned_short_operand): New. For
11160         immediates in ldu and stdu DS opcode field.
11161         * config/rs6000/rs6000.md (movdi_update, movdi_update1): Use.
11162         * config/rs6000/rs6000-protos.h: Add reg_or_aligned_short_operand.
11163         * config/rs6000/rs6000.h (PREDICATE_CODES): Same.
11165 2002-02-07  Jeff Sturm  <jsturm@one-point.com>
11167         * config/sparc/sparc.c (compute_frame_size): Don't correct frame
11168         offset for stack bias.
11170 2002-02-07  H.J. Lu <hjl@gnu.org>
11172         * config/mips/linux.h (SUBTARGET_ASM_DEBUGGING_SPEC): Defined.
11174 2002-02-07  Ulrich Weigand  <uweigand@de.ibm.com>
11176         * testsuite/gcc.dg/cpp/charconst-2.c: Add -fsigned-char option.
11178 Thu Feb  7 12:14:17 CET 2002  Jan Hubicka  <jh@suse.cz>
11180         * i386-protos.h (x86_order_regs_for_local_alloc): Declare
11181         * i386.c (x86_order_regs_for_local_alloc): New global function.
11182         * i386.h (REG_ALLOC_ORDER): CLeanup.
11183         (ORDER_REGS_FOR_LOCAL_ALLOC): New.
11185 2002-02-07  Richard Henderson  <rth@redhat.com>
11187         PR optimization/2463
11188         * alias.c (find_base_value): Recall base values for fixed hard regs.
11189         * loop.c (loop_regs_update): Don't use single_set on non-insns.
11191 2002-02-07  Alexandre Oliva  <aoliva@redhat.com>
11193         * config/mips/mips.md (define_delay) [mips16]: Adjust required
11194         length.
11196 2002-02-06  Richard Henderson  <rth@redhat.com>
11198         PR c/5609
11199         * stmt.c (resolve_operand_name_1): Take more care with mixed
11200         named and unnamed operands.
11202 2002-02-06  Janis Johnson  <janis187@us.ibm.com>
11203             Jan Hubicka  <jh@suse.cz>
11205         * loop.c (remove_constant_addition): Avoid clobbering a shared
11206         CONST expression.
11208 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11210         * config.gcc (s390x-*-linux*): Add t-linux64 makefile fragment.
11211         * config/s390/t-linux64: New file.
11212         * config/s390/libgcc-glibc.ver: New file.
11214 2002-02-06  Ulrich Weigand  <uweigand@de.ibm.com>
11216         * config/s390/linux64.h: Delete file.
11217         * config/s390/s390x.h: New file.
11218         * config.gcc (s390x-*-linux*): Use s390x.h instead of linux64.h
11219         as target header file.
11220         * config/s390/linux.h (TARGET_VERSION): Define depending on
11221         DEFAULT_TARGET_64BIT.
11222         (CPP_SPEC, ASM_SPEC, LINK_SPEC): Likewise.
11223         (SIZE_TYPE, PTRDIFF_TYPE): Likewise.
11224         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define.
11225         (CPP_ARCH31_SPEC, CPP_ARCH64_SPEC): New defines.
11226         (LINK_ARCH31_SPEC, LINK_ARCH64_SPEC): New defines.
11227         (EXTRA_SPEC): New define.
11228         * config/s390/s390.h (TARGET_VERSION): Define depending on
11229         DEFAULT_TARGET_64BIT.
11230         (MASK_RETURN_ADDR): Add run-time check for TARGET_64BIT.
11232 2002-02-06  Jason Merrill  <jason@redhat.com>
11234         * c-decl.c (finish_function): Warn about a non-void function with
11235         no return statement and no abnormal exit.
11236         (current_function_returns_abnormally): New variable.
11237         (start_function): Clear it.
11238         (struct c_language_function): Add returns_abnormally.
11239         (push_c_function_context): Save it.
11240         (pop_c_function_context): Restore it.
11241         (builtin_function): Set TREE_THIS_VOLATILE on return fns.
11242         (grokdeclarator): Set C_FUNCTION_IMPLICIT_INT on functions without
11243         an explicit return type.
11244         * c-tree.h: Declare current_function_returns_abnormally.
11245         (C_FUNCTION_IMPLICIT_INT): New macro.
11246         * c-typeck.c (build_function_call): Set it.
11247         (c_expand_return): Set current_function_returns_value even if the
11248         value is erroneous.
11250 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
11252         PR c/5420:
11253         * c-common.c (c_unsafe_for_reeval): Make COMPOUND_LITERAL_EXPR
11254         unsafe for reevaluation.
11256 2002-02-06  Jakub Jelinek  <jakub@redhat.com>
11258         PR c/5482:
11259         * c-common.c (c_expand_expr) [STMT_EXPR]: If last expression is not
11260         EXPR_STMT, but COMPOUND_STMT, recurse into it.
11262 2002-02-06  Richard Henderson  <rth@redhat.com>
11264         * cfganal.c (keep_with_call_p): Source for fixed_reg dest must
11265         be a general_operand.  Dest for function value must be a pseudo.
11267 2002-02-06  Nick Clifton  <nickc@cambridge.redhat.com>
11269         * dbxout.c (dbxout_symbol_location): Accept LABEL_REFs as well
11270         as SYMBOL_REFs from the constant pool.
11272 2002-02-06  Alexandre Oliva  <aoliva@redhat.com>
11274         * dbxout.c (dbxout_parms): Apply DEBUGGER_ARG_OFFSET to parameters
11275         passed by invisible reference.
11277 2002-02-05  Richard Henderson  <rth@redhat.com>
11279         * config/sparc/sparc.h (ARG_POINTER_CFA_OFFSET): No stack bias.
11281 2002-02-06  Hans-Peter Nilsson  <hp@bitrange.com>
11283         Implement using "base addresses" in insn operands as default.
11284         * config/mmix/mmix.c (mmix_conditional_register_usage): if
11285         -mabi=gnu, modify fixed_regs to fit the GNU ABI.
11286         (mmix_extra_constraint): Use 'R' to indicate that GETA should be
11287         used to read the rtx value.
11288         (mmix_target_asm_function_epilogue): Fix spacing.
11289         (mmix_constant_address_p): Handle TARGET_BASE_ADDRESSES.
11290         (mmix_legitimate_address): Ditto.
11291         (mmix_encode_section_info): Set SYMBOL_REF_FLAG on rtx:es that
11292         should be loaded with a GETA insn.  Don't allocate needless extra
11293         char for nul termination and fix misleading comment.
11294         (mmix_print_operand_address): Handle constants if
11295         TARGET_BASE_ADDRESSES.
11296         (mmix_output_register_setting): Use base addressing if
11297         TARGET_BASE_ADDRESSES and the number of insns is 3.
11298         * config/mmix/t-mmix (MULTILIB_EXTRA_OPTS): New.
11299         * config/mmix/mmix.md ("movdi"): Change the alternative with GETA
11300         to use R as constraint, add LDA to match s.
11301         * config/mmix/mmix.h (TARGET_BASE_ADDRESSES): New.
11302         (TARGET_DEFAULT): Add TARGET_MASK_BASE_ADDRESSES.
11303         (TARGET_SWITCHES): Add -mbase-addresses, -mno-base-addresses.
11304         (FIXED_REGISTERS): Make registers $231..$246 fixed by default.
11305         (MMIX_MMIXWARE_ABI_REG_ALLOC_ORDER): Move $231..$246 last, in
11306         order with other fixed registers.
11307         (MMIX_GNU_ABI_REG_ALLOC_ORDER): Put forward $231, in order with
11308         other parameter/call-clobbered registers.
11309         * doc/invoke.texi (Option Summary) <MMIX Options>: Add
11310         -mbase-addresses, -mno-base-addresses.
11311         (MMIX Options): Ditto.
11313 2002-02-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11315         * pa.h (PREDICATE_CODES): Add reg_before_reload_operand.
11317 2002-02-06  Aldy Hernandez  <aldyh@redhat.com>
11319         * config/rs6000/altivec.h: Change elem to _S_elem.
11321 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
11323         * config/netbsd.h (WCHAR_TYPE): Define.
11324         (WCHAR_TYPE_SIZE): Ditto.
11325         (WINT_TYPE): Ditto.
11326         * config/alpha/netbsd.h (WCHAR_TYPE): Remove.
11327         (WCHAR_UNSIGNED): Ditto.
11328         (WCHAR_TYPE_SIZE): Ditto.
11329         (WINT_TYPE): Ditto.
11330         * config/arm/netbsd.h: Likewise.
11331         * config/i386/netbsd-elf.h: Likewise.
11332         * config/i386/netbsd.h: Likewise.
11333         * config/m68k/netbsd-elf.h: Likewise.
11334         * config/m68k/netbsd.h: Likewise.
11335         * config/ns32k/netbsd.h: Likewise.
11336         * config/sparc/netbsd.h: Likewise.
11337         * config/vax/netbsd.: Likewise.
11339 2002-02-05  Alexandre Oliva  <aoliva@redhat.com>
11341         * target.h (struct gcc_target): Added ms_bitfield_layout_p.
11342         * target-def.h (TARGET_MS_BITFIELD_LAYOUT_P): New.  Added to...
11343         (TARGET_INITIALIZER): this.
11344         * doc/tm.texi (TARGET_MS_BITFIELD_LAYOUT_P): Document.
11345         (BITFIELD_NBYTES_LIMITED): Markup fix.
11346         * tree.h (default_ms_bitfield_layout_p): Declare.
11347         (record_layout_info): Added prev_field.
11348         * tree.c (default_ms_bitfield_layout_p): New fn.
11349         * c-decl.c (finish_struct): Disregard EMPTY_FIELD_BOUNDARY and
11350         PCC_BITFIELD_TYPE_MATTERS for MS bit-field layout.
11351         * stor-layout.c: Include target.h.
11352         (start_record_layout): Initialize prev_field.
11353         (place_field): Handle MS bit-field layout, and disregard
11354         EMPTY_FIELD_BOUNDARY, BITFIELD_NBYTES_LIMITED and
11355         PCC_BITFIELD_TYPE_MATTERS in this case.  Update prev_field.
11356         * Makefile.in (stor-layout.o): Adjust dependencies.
11358 2002-02-05  Jason Merrill  <jason@redhat.com>
11360         * collect2.c (dump_file): Pass DMGL_VERBOSE to cplus_demangle.
11362 2002-02-05  Andreas Jaeger  <aj@suse.de>
11364         * crtstuff.c: Fix comments.
11366 2002-02-05  Richard Henderson  <rth@redhat.com>
11368         PR fortran/3393
11369         * loop.c (loop_iv_add_mult_emit_before): Copy multiplier as well.
11370         (loop_iv_add_mult_sink, loop_iv_add_mult_hoist): Likewise.
11372         PR fortran/3392
11373         * config/mips/mips.c (function_arg): Handle TImode.
11374         (function_arg_advance): Likewise.
11376 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11378         * config/rs6000/altivec.h (vec_step_help): Rename to
11379         __vec_step_help.
11381 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11383         * config/rs6000/altivec.h: Fix typos.
11385 2002-02-05  Jason Thorpe  <thorpej@wasabisystems.com>
11387         * config/arm/netbsd.h: Correct a comment.
11389 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11391         * config/rs6000/rs6000.c (altivec_init_builtins): Fix typo
11392         building void typed builtins.
11394         * config/rs6000/altivec.h (vec_ld*): Fix typos.
11395         (vec_step): Implement for C++.
11397 Mon Feb  4 19:23:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11399         * final.c (final_scan_insn): Add case for NOTE_INSN_LOOP_END_TOP_COND.
11401 2002-02-04  Richard Henderson  <rth@redhat.com>
11403         * combine.c (nonzero_bits): Re-introduce special case for
11404         sp/fp/ap wrt REGNO_POINTER_ALIGN.
11406 2002-02-05  Aldy Hernandez  <aldyh@redhat.com>
11408         * doc/extend.texi: Warn about unsupported usage of altivec
11409         builtins.
11411         * config/rs6000/rs6000.md (altivec_vcmp*_p): Remove.
11412         (altivec_predicate_*): New.
11414         * config/rs6000/altivec.h: Rewrite predicates to use new builtins.
11415         Add C++ version of vec_*() functions.
11417         * config/rs6000/rs6000.c (bdesc_altivec_preds): New.
11418         (bdesc_2arg): Remove altivec predicates.
11419         (altivec_expand_builtin): Handle predicates.
11420         (altivec_init_builtins): Handle predicates.
11421         (altivec_expand_predicate_builtin): New.
11423 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11425         * pa.c (DO_FRAME_NOTES): Move forward.
11426         (store_reg): Revise handling of frame notes.
11427         (load_reg): Likewise.
11428         (set_reg_plus_d): Likewise.
11429         (hppa_expand_prologue): Likewise.
11430         (hppa_expand_epilogue): Likewise.
11432 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11434         * unwind-dw2-fde-glibc.c: Define _GNU_SOURCE if not defined.
11436 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11438         PR c/4475, c++/3780:
11439         * c-common.def (SWITCH_STMT): Add SWITCH_TYPE operand.
11440         * c-common.h (SWITCH_TYPE): Define.
11441         * c-typeck.c (c_start_case): Set SWITCH_TYPE.
11442         * stmt.c (all_cases_count): Set lastval to thisval at end of loop.
11443         Rename spareness variable to sparseness.
11444         (expand_end_case_type): Renamed from expand_end_case, use orig_type
11445         if non-NULL instead of TREE_TYPE (orig_index).
11446         * tree.h (expand_end_case_type): Renamed from expand_end_case.
11447         (expand_end_case): Define using expand_end_case_type.
11448         * c-semantics.c (genrtl_switch_stmt): Pass SWITCH_TYPE
11449         to expand_end_case_type.
11450         * doc/c-tree.texi (SWITCH_STMT): Document SWITCH_TYPE.
11452 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11454         * pa.h (PREFERRED_STACK_BOUNDARY): Define to match standard rounding.
11455         (BIGGEST_ALIGNMENT): Change to 128.
11457 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11459         * pa32-linux.h (LINK_COMMAND_SPEC): Define.
11461 2002-02-04  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11463         * pa.md (call_internal_reg_64bit): Remove unused variable.
11465 2002-02-04  Nick Clifton  <nickc@cambridge.redhat.com>
11467         * config/arm/arm.h (machine_function): Add uses_anonymous_args
11468         field.
11469         (SETUP_INCOMING_VARARGS): Set uses_anonymous_args.
11470         * config/arm/arm.c (current_function_anonymous_args): Delete,
11471         replace uses with cfun->machine->uses_anonymous_args.
11472         (arm_reorg): Do not reset uses_anonymous_args.
11474         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any value in
11475         any geenral register.
11477 2001-02-04  Bernd Schmidt  <bernds@redhat.com>s
11479         * cfgrtl.c (force_nonfallthru_and_redirect): Don't try to redirect
11480         the entry block.
11482 2002-02-04  Richard Henderson  <rth@redhat.com>
11484         * combine.c (force_to_mode): Remove STACK_BIAS code.
11485         (nonzero_bits): Likewise.  Replace sp/fp special case with
11486         REGNO_POINTER_ALIGN.
11488         * config/sparc/sparc.h (FRAME_POINTER_REGNUM): Change to SFP.
11489         (HARD_FRAME_POINTER_REGNUM): New.
11490         (FIRST_PSEUDO_REGISTER, REG_CLASS_CONTENTS): Update.
11491         (FIXED_REGS, CALL_USED_REGS): Update.
11492         (REG_ALLOC_ORDER, REGISTER_NAMES): Update.
11493         (CONDITIONAL_REGISTER_USAGE): Update for HFP.
11494         (HARD_REGNO_NREGS): Update for SFP.
11495         (STACK_POINTER_OFFSET): Include bias here ...
11496         (FIRST_PARM_OFFSET): ... not here.
11497         (STACK_BIAS): Remove.
11498         (INIT_EXPANDERS): New.
11499         (STARTING_FRAME_OFFSET): Do not include bias.
11500         (ELIMINABLE_REGS, CAN_ELIMINATE, INITIAL_ELIMINATION_OFFSET): New.
11501         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Update for SFP.
11502         (REG_OK_FOR_INDEX_P, REG_OK_FOR_BASE_P): Likewise.
11503         * config/sparc/aout.h (DBX_REGISTER_NUMBER): Update for HFP.
11504         * config/sparc/litecoff.h, config/sparc/sol2.h: Likewise.
11505         * config/sparc/sparc.c (mem_min_alignment): Update for HFP.
11506         (sparc_nonflat_function_prologue, epilogue_renumber): Likewise.
11507         (MUST_SAVE_REGISTER): Likewise.
11508         (sparc_flat_function_prologue): Likewise.
11509         (sparc_flat_function_epilogue): Likewise.
11510         (HARD_FRAME_POINTER_MASK): Rename from FRAME_POINTER_MASK.
11511         (sparc_init_modes): SFP is GENERAL_REGS.
11512         (sparc_builtin_saveregs): SFP does not have bias applied.
11514 2002-02-04  Richard Henderson  <rth@redhat.com>
11516         * config/alpha/alpha.c (current_function_is_thunk): Don't check
11517         current_function_is_thunk.
11518         (alpha_sa_mask): Distinguish between current_function_is_thunk
11519         called from ASM_OUTPUT_MI_THUNK and not.
11520         (alpha_does_function_need_gp): Thunks always need gp.
11521         (alpha_start_function, alpha_output_function_end_prologue): Likewise.
11522         (alpha_output_mi_thunk_osf): New.
11523         * config/alpha/alpha-protos.h: Update.
11524         * config/alpha/alpha.h (ASM_OUTPUT_MI_THUNK): New.
11526 2002-02-04  Richard Sandiford  <rsandifo@redhat.com>
11528         * c-typeck.c (build_c_cast): Warn when qualifiers are added to
11529         function types, not when they're taken away.
11531 Mon Feb  4 09:05:58 2002  Jeffrey A Law  (law@redhat.com)
11533         * cfgrtl.c (try_redirect_by_replacing_jump): Remove associated
11534         CODE_LABEL and jump table when replacing a table jump with a
11535         simple jump.
11537 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11539         * config/s390/s390-protos.h (legitimize_la_operand,
11540         s390_secondary_input_reload_class, s390_plus_operand,
11541         s390_expand_plus_operand): Add prototypes.
11543         config/s390/s390.c (s390_secondary_input_reload_class,
11544         s390_plus_operand, s390_expand_plus_operand): New functions.
11546         (struct s390_address): New member 'pointer'.
11547         (s390_decompose_address): Compute it.
11548         (legitimate_la_operand_p): Use it.
11549         (legitimize_la_operand): New function.
11550         (movti, movdi, movdf splitters): Call it.
11552         config/s390/s390.h (SECONDARY_INPUT_RELOAD_CLASS): Define.
11553         (PREDICATE_CODES): Add s390_plus_operand.
11555         config/s390/s390.md (adddi3_inv_64, addaddr_ccclobber): Delete.
11556         (la_ccclobber): Allow GENERAL_REGS as output operand.
11558         (reload_load_address, *reload_load_address_reg_0, *la, *do_la_reg_0,
11559         *reload_la_64, *reload_la_31 and splitters): Delete, replace by ...
11560         (*la_64, *la_31, reload_indi, reload_insi): ... these.
11562 2002-02-04  Ulrich Weigand  <uweigand@de.ibm.com>
11564         * gcc/config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Fixed
11565         register names for regular asm () construct.
11567 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11569         * config/i386/i386.md (movsf_1): Allow moving SF values in MMX
11570         registers.
11572 2002-02-04  Jakub Jelinek  <jakub@redhat.com>
11574         * combine.c (recog_for_combine): Create a dummy insn with PATTERN
11575         pat for recog.
11577 2002-02-04  Hartmut Penner  <hpenner@de.ibm.com>
11579         * varasm.c (decode_rtx_const): Allow unspec (symbol_ref) in
11580         constant pool to be identical by string address and index.
11582 2002-02-04  Anthony Green  <green@redhat.com>
11584         * output.h (SECTION_OVERRIDE): Define.
11585         * varasm.c (named_section): Obey SECTION_OVERRIDE.
11587 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
11589         * config.gcc (arm*-*-netbsdelf*): Placeholder to prevent match
11590         by existing arm*-*-netbsd* (a.out) target.
11591         (ns32k-*-netbsdelf*): Likewise.
11592         (sparc-*-netbsdelf*): Likewise.
11593         (vax-*-netbsdelf*): Likewise.
11595 2002-02-03  Danny Smith <dannysmith@users.sourceforge.net>
11597         * gthr-win32.h: Protect against conflicting typedef for BOOL in windows
11598         headers and libobjc headers.
11600 2002-02-03  Mumit Khan  <khan@nanotech.wisc.edu>
11602         * gthr-win32.h (__mingwthr_key_dtor): Use extern "C" linkage for C++.
11603         (_mingw.h): Remove duplicate include.
11605 2002-02-03  Jason Thorpe  <thorpej@wasabisystems.com>
11607         * config.gcc: Set cpu_type to m68k for 68010, as well.
11608         (m68010-*-netbsdelf*): New...
11609         (m68k*-*-netbsdelf*): ...targets.
11610         * config/m68k/netbsd-elf.h: New file.
11612 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11614         * config/h8300/h8300.c (hand_list): Move inside function_arg.
11616 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11618         * config/h8300/h8300.c (h8_push_ops): Move inside
11619         h8300_init_once.
11620         (h8_pop_ops): Likewise.
11621         (h8_move_ops): Likewise.
11623 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11625         * config/h8300/h8300.c (os_task): Make it static.
11626         (monitor): Likewise.
11627         (pragma_saveall): Likewise.
11629 2002-02-02  Alexandre Oliva  <aoliva@redhat.com>
11631         * config/sh/sh.md (ic_invalidate_line): Make sure the immediate
11632         constant is a valid sign-extension for Pmode.
11634 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11636         * config/h8300/h8300.c: Fix formatting.
11638 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11640         * config/h8300/h8300.md: Fix formatting.
11642 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11644         * config/h8300/h8300.md (one_cmpl patterns): Tighten the
11645         predicates of operands[1].  Split the patterns for each
11646         processor variant.
11648 2002-02-02  Kazu Hirata  <kazu@hxi.com>
11650         * config/h8300/h8300.md (xor patterns): Tighten the predicates
11651         of operands[1] to register_operand.
11653 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11655         * cpphash.h (struct spec_nodes): Remove n__CHAR_UNSIGNED__.
11656         * cpphash.c (_cpp_init_hashtable): Similarly.
11657         * cppinit.c (cpp_create_reader): Default the signed_char flag.
11658         (init_builtins): Define __CHAR_UNSIGNED__ appropriately.
11659         (COMMAND_LINE_OPTIONS): Recognise -f{un,}signed-char.
11660         (cpp_handle_option): Handle the new options.
11661         * cpplex.c (cpp_interpret_charconst): Use new flag.
11662         * cpplib.h (struct cpp_options): New member signed_char.
11663         * gcc.c (cpp_unique_options): Remove %c spec and documentation.
11664         (cpp_options): Handle -fsigned-char and -funsigned-char.
11665         (static_specs): Remove signed_char_spec.
11666         (do_spec1): Don't handle %c.
11667         * system.h: Poison SIGNED_CHAR_SPEC.
11668         * tradcif.y (yylex): Use flag_signed_char.
11669         * tradcpp.h (flag_signed_char): New.
11670         * tradcpp.c (flag_signed_char): New.
11671         (main): Handle new command-line options.
11672         (initialize_builtins): Define __CHAR_UNSIGNED__ if appropriate.
11673 config:
11674         * alpha/alpha.h (SIGNED_CHAR_SPEC): Remove.
11675         * avr/avr.h: Remove old comments.
11676         * i960/i960.h (CPP_SPEC): Pass -fsigned-char if -mic*.
11677         (CC1_SPEC): Pass -fsigned-char if -mic*.
11678         (SIGNED_CHAR_SPEC): Remove.
11679 doc:
11680         * tm.texi (SIGNED_CHAR_SPEC): Remove documentation.
11682 2002-02-01  Eric Christopher  <echristo@redhat.com>
11684         From Daniel Jacobowitz <dmj+@andrew.cmu.edu>
11685         * config/mips/mips.h (FUNCTION_PROFILER): Fix function profiling.
11686         * config/mips/linux.h (ASM_OUTPUT_REG_PUSH): Undefine.
11687         (ASM_OUTPUT_REG_POP): Ditto.
11689 2002-02-02  Neil Booth  <neil@daikokuya.demon.co.uk>
11691         * c-decl.c, tree.c, tree.h, objc/objc-act.c: Revert bitfield
11692         patch.
11694 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
11696         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Add missing | separators.
11698 2002-02-02  Jakub Jelinek  <jakub@redhat.com>
11700         PR c/5304:
11701         * expmed.c (expand_mult_highpart): Use immed_double_const for wide_op1
11702         unconditionally.
11704 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
11706         * cfganal.c: Include tm_p.h.
11707         (keep_with_call_p): Fix the test that determines if a register holds
11708         the return value of a call.
11710 2002-02-01  DJ Delorie  <dj@redhat.com>
11712         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): If
11713         we are given conflicting registers, switch to the other one we
11714         had allocated for us.
11715         * config/sparc/sparc.md (reload_indi, reload_outdi): Pass op[2]
11716         as TImode so we know when the "other" register is available.
11718 2002-02-01  David O'Brien  <obrien@FreeBSD.org>
11720         * config/sparc/sol2-sld-64.h: Include sparc/biarch64.h rather than
11721         sparc/sparc_bi.h.
11723 2002-02-01  Janis Johnson  <janis187@us.ibm.com>
11725         * cfganal.c (keep_with_call_p): New function.
11726         (flow_call_edges_add): Prevent splitting a block between a call and
11727         a single-set instruction that should be kept in the same block.
11729 2002-02-01  Craig Rodrigues  <rodrigc@gcc.gnu.org>
11731         * doc/install.texi (avr): Update outdated URL.
11733 2002-01-30  Andrew Haley  <aph@cambridge.redhat.com>
11735         * config/stormy16/stormy16.md (pushqi): New.
11736         (popqi): New.
11737         (pushhi): New.
11738         (pophi): New.
11739         (movhi): Remove stack operands.
11740         (movqi): Likewise.
11741         * config/stormy16/stormy16.h (PREDICATE_CODES): Add
11742         nonimmediate_nonstack_operand.
11743         * config/stormy16/stormy16.c (nonimmediate_nonstack_operand):
11744         New.
11745         * config/stormy16/stormy16-protos.h (nonimmediate_nonstack_operand)
11746         New.
11748 2002-01-31  Jason Merrill  <jason@redhat.com>
11750         * Makefile.in (c-parse.c): Handle .output file.
11751         * objc/Make-lang.in (objc-parse.c): Likewise.
11753 2002-02-01  Alexandre Oliva  <aoliva@redhat.com>
11755         * config/mips/mips.h (ENDIAN_SPEC): Output the endianness flag if
11756         the -me[lb] option is given.  Don't output the default flag
11757         twice.
11759 2002-01-31  Zack Weinberg  <zack@codesourcery.com>
11761         * c-lex.c (yyparse): Call debug_hooks->start_source_file for
11762         the primary source file; this has not been done yet.
11763         * c-decl.c (c_expand_body): Reset input_filename from
11764         DECL_SOURCE_FILE (fndecl) before calling init_function_start.
11766 2002-01-31  Kazu Hirata  <kazu@hxi.com>
11768         * rtlanal.c (subreg_regno_offset): Do not use
11769         SUBREG_REGNO_OFFSET.
11770         * system.h: Add SUBREG_REGNO_OFFSET to the GCC poison list.
11771         * doc/tm.texi (SUBREG_REGNO_OFFSET): Remove.
11773 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
11775         * gccbug.in: Follow GNU Coding Standards for --version.  Use GCC
11776         version rather than GNATS version in --version output.
11778 2002-01-31  Richard Sandiford  <rsandifo@redhat.com>
11780         * ifcvt.c (noce_process_if_block): Make a copy of the destination
11781         when copying back from a temporary.
11783 2002-01-30  Richard Henderson  <rth@redhat.com>
11785         * ifcvt.c (dead_or_predicable): Handling merging when other_bb
11786         and new_dest are the same.
11788 2002-01-30  Richard Henderson  <rth@redhat.com>
11790         PR opt/5076
11791         * rtl.h (NOTE_INSN_LOOP_END_TOP_COND): New.
11792         * rtl.c (note_insn_name): Update.
11793         * emit-rtl.c (remove_unnecessary_notes): Kill it.
11794         * stmt.c (expand_end_loop): Kill jump opt code.  Use LOOP_END_TOP_COND
11795         to perform loop rotation.
11796         (expand_exit_loop_top_cond): New.
11797         * tree.h (expand_exit_loop_top_cond): Declare it.
11798         * c-semantics.c (genrtl_while_stmt): Use it.
11799         (genrtl_for_stmt): Likewise.
11801 2002-01-30  Alexandre Oliva  <aoliva@redhat.com>
11803         * config/mips/mips.h (PARM_BOUNDARY): Guarantee alignment of
11804         arguments to 64-bit boundaries on 64-bit ABIs.
11806 2002-01-30  Steve Ellcey  <sje@cup.hp.com>
11808         * loop.c (loop_invariant_p): Special case pic_offset_table_rtx.
11810 2002-01-31  Joseph S. Myers  <jsm28@cam.ac.uk>
11812         * c-decl.c (grokdeclarator): Handle type being a typedef for an
11813         invalid type.
11815 2002-01-30  David O'Brien  <obrien@FreeBSD.org>
11817         * config.gcc: Include sparc/biarch64.h rather than sparc/sparc_bi.h.
11818         * config/sparc/sparc_bi.h: Remove file.
11819         * config/sparc/biarch64.h: New file (rename of sparc_bi.h).
11821 2002-01-30  Richard Henderson  <rth@redhat.com>
11823         * sched-deps.c (sched_analyze): Make a call read the frame pointer.
11825 2002-01-30  Zack Weinberg  <zack@codesourcery.com>
11827         * expmed.c (emit_store_flag): Call protect_from_queue on op0 and op1.
11829 2002-01-30  Jason Merrill  <jason@redhat.com>
11831         * dwarf2out.c (dwarf_cfi_name): Add other DWARF 3 codes.
11832         (output_cfi): Likewise. Disable DW_CFA_GNU_negative_offset_extended.
11833         (reg_save): Use DW_CFA_offset_extended_sf instead.
11835         * dwarf2out.c (dwarf2out_finish): Don't abort if there were errors.
11837 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
11839         * cselib.c (cselib_record_sets): Use IF_THEN_ELSE result
11840         in cselib_lookup.
11842 2002-01-29  Aldy Hernandez  <aldyh@redhat.com>
11844         * rs6000.md ("*call_value_local32"): Remove constraints.
11845         ("*call_value_local64"): Same.
11846         ("*call_value_indirect_nonlocal_aix32"): Same.
11847         ("*call_value_nonlocal_aix32"): Same.
11848         ("*call_value_indirect_nonlocal_aix64"): Same.
11849         ("*call_value_nonlocal_aix64"): Same.
11850         ("*call_value_nonlocal_sysv"): Same.
11852 2002-01-29  Richard Henderson  <rth@redhat.com>
11854         * config/alpha/elf.h (SDB_DEBUGGING_INFO): Undef.
11856 2002-01-29  Richard Henderson  <rth@redhat.com>
11858         * expr.c (force_operand): Ignore flag_pic for detecting pic
11859         address loads.
11860         * regclass.c (init_reg_sets_1): Test fixed_regs not flag_pic
11861         for determining if PIC_OFFSET_TABLE_REGNUM is call-clobbered.
11862         * resource.c (mark_target_live_regs): Use regs_invalidated_by_call
11863         instead of open-coded loop.
11864         * doc/tm.texi (PIC_OFFSET_TABLE_REGNUM): Clarify that it must
11865         be fixed when in use.
11867 2002-01-29  Richard Henderson  <rth@redhat.com>
11869         * sched-int.h (struct deps_reg): Add uses_length, clobbers_length.
11870         * sched-rgn.c (propagate_deps): Update them.
11871         * sched-deps.c (sched_analyze_insn): Update them.  Flush the
11872         clobbers list when either gets too long.
11874 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
11876         * config/i386/i386.h (LIMIT_RELOAD_CLASS): Handle LEGACY_REGS
11877         and INDEX_REGS the same as GENERAL_REGS.
11878         (SECONDARY_OUTPUT_RELOAD_CLASS): Likewise.
11880 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11882         * tree.c (build_nonstandard_integer_type): Correct prototype.
11884 2002-01-29  Ulrich Weigand  <uweigand@de.ibm.com>
11886         * config/s390/s390.md (movstrsico, movstrdix_64,
11887         movstrsix_31): Remove, replace by ...
11888         (movstrdi_short, movstrsi_short, movstrdi_long,
11889         movstrsi_long): ... these.  New.
11890         (movstrdi, movstrsi): Adapt.
11892         (rotldi3, rotlsi3, ashldi3, *ashldi3_31, *ashldi3_64,
11893         ashlsi3, lshrdi3, *lshrdi3_31, *lshrdi3_64, lshrsi3):
11894         Remove unnecessary CC clobber.
11895         (*ashrdi3_cc_31, *ashrdi3_cconly_31, *ashrdi3_cc_64,
11896         *ashrdi3_cconly_64, *ashrsi3_cc, *ashrsi3_cconly): New.
11898         (divmoddi4): Don't partially initialize TImode register.
11900 2002-01-29  Geoffrey Keating  <geoffk@redhat.com>
11902         * doc/sourcebuild.texi (C Tests): Document gcc.dg/debug directory.
11904 2002-01-29  Richard Henderson  <rth@redhat.com>
11906         * flow.c (print_rtl_and_abort): Remove.
11907         (print_rtl_and_abort_fcn): Remove.
11908         (verify_local_live_at_start): Use dump_bb instead.
11909         (verify_wide_reg): Likewise. Take a basic_block, not rtl endpoints.
11910         (verify_wide_reg_1): Return 2 on mode test failure.
11912 2002-01-29  Neil Booth  <neil@daikokuya.demon.co.uk>
11914         PR c/3325, c/3326, c/2511, c/3347
11915         * c-decl.c (enum_decl_context): Remove BITFIELD.
11916         (grokdeclarator): Take bitfield width as an input.
11917         Ensure bitfields are given the correct type.  Perform
11918         bitfield width validation with build_bitfield_integer_type
11919         rather than waiting for finish_struct.
11920         (grok_typename, grok_typename_in_parm_context, start_decl,
11921         push_parmdecl, grokfield, start_function): Update calls to
11922         grokdeclarator.
11923         (build_bitfield_integer_type): New function.
11924         (finish_struct): Move bitfield validation to grokdeclarator
11925         and build_bitfield_integer_type.
11926         * tree.c (build_nonstandard_integer_type): New function.
11927         * tree.h (build_nonstandard_integer_type): New prototype.
11928 objc:
11929         * objc-act.c (objc_copy_list): Remove DECL_INITIAL kludge.
11931 2002-01-29  Jakub Jelinek  <jakub@redhat.com>
11933         PR other/1502:
11934         * cppinit.c (cpp_handle_option): Add ignore argument, if it is zero,
11935         don't ignore unrecognized -W* options.
11936         (cpp_handle_options): Pass 1 as last argument to cpp_handle_option.
11937         * cpplib.h (cpp_handle_option): Adjust prototype.
11938         * c-decl.c (c_decode_options): Pass 0 as last argument to
11939         cpp_handle_option.
11941         PR c/2896:
11942         * gcc.c (cpp_unique_options): Split from cpp_options.
11943         (cpp_options): Source cpp_unique_options.
11944         (default_compilers): Use cpp_unique_options instead of cpp_options
11945         when used together with cc1_options.
11946         (static_specs): Add cpp_unique_options.
11947         * objc/lang-specs.h: Use cpp_unique_options instead of cpp_options
11948         when used together with cc1_options.
11950 2002-01-29  Kazu Hirata  <kazu@hxi.com>
11952         * config/h8300/h8300-protos.h: Update the prototype of
11953         output_a_shift.
11954         * config/h8300/h8300.c (output_a_shift): Remove an unused
11955         argument 'insn'.  Remove redundant code.
11956         * config/h8300/h8300.md: Adust to the new prototype of
11957         output_a_shift.
11959 2002-01-29  Kazu Hirata  <kazu@hxi.com>
11961         * config/h8300/h8300-protos.h: Update the prototypes of
11962         emit_a_rotate and expand_a_rotate.
11963         * config/h8300/h8300.c (emit_a_rotate): Change the type of the
11964         first argument to 'enum rtx_code'.
11965         (expand_a_rotate): Likewise.
11967 2002-01-28  Kazu Hirata  <kazu@hxi.com>
11969         * config/h8300/h8300-protos.h: Update the prototype of
11970         output_simode_bld.
11971         * config/h8300/h8300.c (output_simode_bld): Remove an argumen
11972         'log2'.
11973         * config/h8300/h8300.md: Adjust to the new prototype.
11975 2002-01-28  Kazu Hirata  <kazu@hxi.com>
11977         * conifg/h8300/h8300.c (h8300_adjust_insn_length): Remove
11978         redundant code.
11980 2002-01-28  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11982         * emit-rtl.c (gen_rtx_REG): Check that the PIC_OFFSET_TABLE_REGNUM
11983         is a fixed register before returning pic_offset_table_rtx.
11984         * loop.c (scan_loop): Don't hoist insns that set pic_offset_table_rtx
11985         when PIC_OFFSET_TABLE_REG_CALL_CLOBBERED is defined.
11987 2002-01-28  Jason Merrill  <jason@redhat.com>
11989         * dwarf2.h: Sync with src version.
11991 2002-01-28  Paul Koning  <pkoning@equallogic.com>
11993         * builtin-types.def (BT_FN_VOID_CONST_PTR_VAR): Replace
11994         BT_FN_VOID_PTR_VAR.
11995         * builtins.def (BUILT_IN_PREFETCH): Change first argument to be const.
11996         * doc/extend.texi (__builtin_prefetch): Update documentation:
11997         first argument is now const void ptr.
11999 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12001         * config/h8300/h8300-protos.h: Remove an unused prototype.
12003 2002-01-28  Roman Zippel  <zippel@linux-m68k.org>
12005         * toplev.c (lang_independent_init): Round up identifier size.
12007 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
12009         * config.gcc: Revert previous change.
12011 2002-01-28  Andris Pavenis  <pavenis@latnet.lv>
12013         * config/i386/djgpp.h: Use STRIP_NAME_ENCODING in macro UNIQUE_SECTION
12015 2002-01-28  Richard Earnshaw  <rearnsha@arm.com>
12017         * config.gcc (*-*-netbsdelf*): Set up generic parameters.
12018         (*-*-netbsd*): Always use collect2.  Remove collect2 settings from
12019         other non-elf netbsd config frags.
12020         * config/netbsd-aout.h (STARTFILE_SPEC): Don't pull in c++rt0 since
12021         collect2 will does that.
12022         * config/netbsd.h (LIBGCC_SPEC): Add white space before -lgcc, so that
12023         shared-lib frobbing will work.
12025 2002-01-28  Kazu Hirata  <kazu@hxi.com>
12027         * config/h8300/h8300.h: Fix formatting.
12028         * config/h8300/h8300.md: Likewise.
12030 2002-01-28  Loren J. Rittle  <ljrittle@acm.org>
12032         * fixinc/inclhack.def (strict_ansi_not): Add a bypass based on
12033         the old, removed AAA_standards fix.
12034         * fixinc/fixincl.x: Rebuilt.
12036 2002-01-28  Hans-Peter Nilsson  <hp@axis.com>
12038         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Change to emit
12039         atexit call in crtbegin, hooked in after call to frame_dummy;
12040         register EH before registering __fini__start.
12042 2002-01-28  Aldy Hernandez  <aldyh@redhat.com>
12044         * config/rs6000/altivec.h: Remove spurious semicolons.
12046 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12048         * config/h8300/h8300.md: Replace dead bit extraction patterns
12049         with ones that work.
12051 Sun Jan 27 13:23:40 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12053         * emit-rtl.c (get_mem_attrs): Don't default alignment for non-BLKmode
12054         if not STRICT_ALIGNMENT.
12055         * rtl.h (MEM_ALIGN): Likewise.
12057 2002-01-27  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12059         * doc/invoke.texi (-fdump-translation-unit): Revert this
12060         patch: 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12062 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12064         * config/h8300/h8300.md (define_constants): New.
12065         (anonymous patterns) Use defined constants appropriately.
12067 2002-01-27  Kazu Hirata  <kazu@hxi.com>
12069         * config/h8300/h8300.c (function_arg): Remove redundant code.
12071 2002-01-26  Richard Henderson  <rth@redhat.com>
12073         * sched-deps.c (reg_pending_uses_head): New.
12074         (reg_pending_barrier): Rename from reg_pending_sets_all.
12075         (find_insn_list): Don't mark inline.
12076         (find_insn_mem_list): Remove.
12077         (add_dependence_list, add_dependence_list_and_free): New.
12078         (flush_pending_lists): Replace only_write param with separate
12079         for_read and for_write parameters.  Update all callers.  Use
12080         add_dependence_list_and_free.
12081         (sched_analyze_1): Do not add reg dependencies here; just set
12082         the pending bits.  Use add_dependence_list.
12083         (sched_analyze_2): Likewise.
12084         (sched_analyze_insn): Replace schedule_barrier_found with
12085         reg_pending_barrier.  Add all dependencies for pending reg
12086         uses, sets, and clobbers.
12087         (sched_analyze): Don't add reg dependencies for calls, just
12088         set pending bits.  Use regs_invalidated_by_call.  Treat
12089         sched_before_next_call as a normal list, not a fake insn.
12090         (init_deps): No funny init for sched_before_next_call.
12091         (free_deps): Free pending mems lists.  Don't zero reg_last.
12092         (init_deps_global): Init reg_pending_uses.
12093         (finish_deps_global): Free it.
12094         * sched-int.h (deps): Make in_post_call_group_p boolean.  Update docs.
12095         (find_insn_mem_list): Remove.
12096         * sched-rgn.c (concat_INSN_LIST, concat_insn_mem_list): New.
12097         (propagate_deps): Use them.  Zero temp mem lists.
12099 2002-01-26  Richard Henderson  <rth@redhat.com>
12101         * Makefile.in (CRTSTUFF_CFLAGS): New.
12102         (crtbegin.o, crtend.o, crtbeginS.o, crtendS.o, crtbeginT.o): Use it.
12103         * config.gcc (alpha-linux, alpha-freebsd, alpha-netbsd): Use plain
12104         crtstuff.c instead of alpha assembly version.
12105         * crtstuff.c (CRT_CALL_STATIC_FUNCTION): Rewrite to assume the
12106         entire dummy function sequence.  Use FORCE_CODE_SECTION_ALIGN
12107         not FORCE_{INIT,FINI}_SECTION_ALIGN.
12108         (__do_global_dtors_aux): Mark used.
12109         (frame_dummy, __do_global_ctors_aux): Mark used.
12110         (fini_dummy, init_dummy): Remove.
12112         * config/alpha/crtbegin.asm: Remove file.
12113         * config/alpha/crtend.asm: Remove file.
12114         * config/alpha/t-crtbe: Remove file.
12115         * config/alpha/elf.h (CRT_CALL_STATIC_FUNCTION): New.
12116         (LINK_EH_SPEC): New.
12118         * config/cris/cris.h (CRT_CALL_STATIC_FUNCTION): Rewrite old
12119         FORCE_INIT_SECTION_ALIGN hack.  Register __fini_start before
12120         calling constructors.
12121         * config/cris/linux.h (CRT_CALL_STATIC_FUNCTION): Undef.
12123         * config/i386/i386.h (CRT_CALL_STATIC_FUNCTION): New.
12124         * config/i386/linux.h (CRT_CALL_STATIC_FUNCTION): Replace old
12125         CRT_END_INIT_DUMMY hack.
12126         * config/i386/sol2.h (FORCE_CODE_SECTION_ALIGN): Replace
12127         FORCE_{INIT,FINI}_SECTION_ALIGN.
12129         * config/mcore/mcore-elf.h (FORCE_CODE_SECTION_ALIGN): Replace
12130         FORCE_{INIT,FINI}_SECTION_ALIGN.
12132         * config/s390/s390.h (CRT_CALL_STATIC_FUNCTION): Update for new
12133         invocation sequence.
12134         * config/sh/sh.h (CRT_CALL_STATIC_FUNCTION): Likewise.
12136         * doc/tm.texi (CRT_CALL_STATIC_FUNCTION): Update.
12137         (FORCE_CODE_SECTION_ALIGN): New.
12139 2002-01-26  Richard Henderson  <rth@redhat.com>
12141         * config/cris/cris.c (cris_print_operand): Handle 64-bit CONST_INT.
12143 2002-01-26  Richard Henderson  <rth@redhat.com>
12145         * config/alpha/alpha.c (alpha_sa_mask): Mark RA for unicos here too.
12146         (alpha_sa_size): Use alpha_sa_mask to compute size of saved regs.
12148 2002-01-26  Kazu Hirata  <kazu@hxi.com>
12150         * config/h8300/h8300.md: Remove bit extraction patterns that
12151         cannot be triggered.
12152         Restrict each bit extraction pattern to a variant on which the
12153         pattern is tested.
12155 2002-01-26  Joseph S. Myers  <jsm28@cam.ac.uk>
12157         * doc/include/texinfo.tex: Update to version 2002-01-04.07.
12159 2002-01-26  Kazu Hirata  <kazu@hxi.com>
12161         * config/h8300/h8300.md: Remove bit test patterns that cannot
12162         be triggered.
12163         Restrict each bit test pattern to a variant on which the
12164         pattern is tested.
12166 2002-01-26  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
12168         * builtins.c (expand_builtin_strncat): Remove redundant check for
12169         INTEGER_CST.
12171 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
12173         * config/i386/x86-64.h (DEFAULT_PCC_STRUCT_RETURN): Do not overide
12174         default setting.
12175         * config/i386/freebsd64.h (DEFAULT_PCC_STRUCT_RETURN): Do not override
12176         existing setting.
12178 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
12180         * dbxout.c (dbxout_init): Use assemble_name rather than just
12181         stripping off the first character.
12182         (dbxout_source_file): Likewise.
12184 2002-01-25  DJ Delorie  <dj@redhat.com>
12186         * config/sparc/sparc.c (sparc_emit_set_symbolic_const64): Compare
12187         using rtx_equal_p, not by comparing pointers.
12189 2002-01-25  Steve Ellcey  <sje@cup.hp.com>
12191         * emit-rtl.c (gen_rtx_REG): Always return the same rtx
12192         for PIC_OFFSET_TABLE_REGNUM.
12193         (init_emit_once): Use gen_raw_REG to initialize pic_offset_table_rtx.
12195 2002-01-25  David O'Brien  <obrien@FreeBSD.org>
12197         * config.gcc (x86_64-*-freebsd*): New target.
12198         (x86_64-*-netbsd*,x86_64-*-linux*): Use ${tm_file} rather than its
12199         value.
12200         (i[34567]86-*-freebsd*): Don't include svr4.h.
12201         * config/i386/freebsd64.h: New file.
12203 2002-01-25  Douglas B Rupp  <rupp@gnat.com>
12205         * config/alpha/x-vms (version): Make static.
12207         * config/alpha/vms.h (MD_FALLBACK_FRAME_STATE_FOR): Fix error
12208         in previous checkin.
12210         * Makefile.in (install-headers-cp): New target.
12211         * config.gcc (alpha-dec-*vms*): Install headers with
12212         install-headers-cp
12214 Fri Jan 25 22:42:49 CET 2002  Jan Hubicka  <jh@suse.cz>
12216         * unroll.c (unroll_loop): Lower final_value to nonmemory operand;
12217         avoid it's copies.
12219 Fri Jan 25 08:26:19 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12221         * builtins.c (expand_builtin_strncpy): Use integer_zerop instead
12222         of compare_tree_int.
12223         (expand_builtin_strncat): Likewise.
12224         * c-decl.c (finish_struct): Use tree_low_cst.
12225         * tree.h (compare_tree_int): Arg is unsigned HOST_WIDE_INT.
12226         * tree.c (compare_tree_int): Likewise.
12228 2002-01-25  Ulrich Weigand  <uweigand@de.ibm.com>
12230         * reload1.c (eliminate_regs_in_insn): Recognize frame pointer
12231         adjustments even if they are implemented by more than two insns.
12233 Fri Jan 25 20:43:56 CET 2002  Jan Hubicka  <jh@suse.cz>
12235         * df.c (df_ref_create, df_ref_record_1, df_ref_record): Kill BB arg.
12236         * df.h (struct ref): Kill B.
12237         (DF_REF_BB, DF_REF_BBNO): Use BLOCK_FOR_INSN.
12239         * basic-block.h (PROP_EQUAL_NOTES): New flag.
12240         * flow.c (propagate_one_insn): Use it.
12241         (mark_used_regs): Handle NIL.
12243 2002-01-25  Geoffrey Keating  <geoffk@redhat.com>
12245         * config/stormy16/stormy16.md (tablejump_pcrel): Use a MEM
12246         to help folding.
12248 2002-01-25  David Edelsohn  <edelsohn@gnu.org>
12250         * rs6000.md (prefetch): Make address V4SI mode so that the address
12251         is restricted to legitimate form for instruction.
12253 2002-01-25  Bob Wilson  <bob.wilson@acm.org>
12255         * doc/install.texi (xtensa-*-elf): New target.
12256         (xtensa-*-linux*): New target.
12257         * doc/contrib.texi: Add myself.
12259 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
12261         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow any general
12262         purpose register to hold an SImode (or smaller) value.
12264 2002-01-25  Jakub Jelinek  <jakub@redhat.com>
12266         * unwind-dw2-fde-glibc.c: If inhibit_libc, use __register_frame*
12267         registry only.
12268         * crtstuff.c: Likewise.
12270 2002-01-25  Kazu Hirata  <kazu@hxi.com>
12272         * config/h8300/h8300.md (negation patterns): Tighten
12273         predicates to register_operand.
12275 2002-01-24  Aldy Hernandez  <aldyh@redhat.com>
12277         * loop.c (emit_prefetch_instructions): Use the prefetch insn's
12278         mode, not Pmode.
12280         * builtins.c (expand_builtin_prefetch): Same.
12282 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12284         * config/sh/sh.md (sym_label2reg): Make sure all CONSTs have
12285         modes.
12287 2002-01-24  Kazu Hirata  <kazu@hxi.com>
12289         * config/h8300/h8300.c (print_operand): Remove support for
12290         operand character 'A'.
12291         * config/h8300/h8300.md (three anonymous patterns): Replace
12292         operand character 'A' with either 'T' or 'S'.
12294 2002-01-24  Kazu Hirata  <kazu@hxi.com>
12296         * config/h8300/h8300.c (print_operand): Remove support for
12297         operand character 'U'.
12299 2002-01-24  Andris Pavenis  <pavenis@latnet.lv>
12301         * config/i386/t-djgpp: Use NATIVE_SYSTEM_HEADER_DIR.
12303 2002-01-24  Nick Clifton  <nickc@cambridge.redhat.com>
12305         * config/arm/arm.c (arm_hard_regno_mode_ok): Allow SImode
12306         values to be assigned to the stack pointer.
12308 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
12310         * emit_rtl.c (gen_lowpart_common): Conversion from const_int
12311         to const_double needs to be done right for big-endian systems.
12313 2002-01-24  Jason Merrill  <jason@redhat.com>
12315         PR c++/2432
12316         * config/sparc/sparc.md (call-jump peepholes): Pass the right insn
12317         to can_throw_internal.
12319 2002-01-23  Richard Henderson  <rth@redhat.com>
12321         * fold-const.c (fold): Change UINT_MAX test to check vs precision
12322         rather than TYPE_MAX_VALUE.  Fix indentation and a bogus negation.
12324 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12326         * config/sh/sh.md (symGOT_load, sym2GOT, sym2GOTOFF): New expands.
12327         (symGOT2reg): Use them, then set as GOT value as unchanging.
12328         (symGOTOFF2reg): Set REG_EQUAL note.  Use a different pseudo
12329         as a temporary, if possible.
12330         (symPLT_label2reg): Enclose (pc) in UNSPEC_PIC.  Emit
12331         sym@PLT-(.LPCS#+2-.) instead of sym@PLT+.-(.LPCS#+2).
12333 2002-01-23  Kazu Hirata  <kazu@hxi.com>
12335         * config/h8300/h8300.md: Fix xorqi and xorqi so that they will
12336         accept to accept 0x80 as operands[2].
12338 2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
12340         * config/sparc/sparc.md (fix_trunctfdi2): Correct typo in mode.
12342 2002-01-23  Richard Henderson  <rth@redhat.com>
12344         * config/alpha/alpha.md (call_value_osf_1_er peepholes): Fix typo.
12346 2002-01-23  Aldy Hernandez  <aldyh@redhat.com>
12348         * c-parse.in (parmlist_or_identifiers): Add maybe_attribute.
12349         (parmlist_or_identifiers_1): Verify that only a parmlist follows
12350         an attribute.
12352 2002-01-23  Richard Henderson  <rth@redhat.com>
12354         * expr.c (move_by_pieces_1): Extend size before negation.
12356         * config/m68k/t-m68kbare (MULTILIB_OPTIONS): Add 68040 and 68060.
12357         (MULTILIB_MATCHES): Remove 68040 and 68060 aliases.
12358         (MULTILIB_EXCEPTIONS): Ignore 68881 and soft-float for 68040 and 68060.
12359         * config/m68k/t-m68kelf: Likewise.
12361 2002-01-23  Bob Wilson  <bob.wilson@acm.org>
12363         * config/xtensa/elf.h: New file.
12364         * config/xtensa/lib1funcs.asm: New file.
12365         * config/xtensa/lib2funcs.S: New file.
12366         * config/xtensa/linux.h: New file.
12367         * config/xtensa/t-xtensa: New file.
12368         * config/xtensa/xtensa-config.h: New file.
12369         * config/xtensa/xtensa-protos.h: New file.
12370         * config/xtensa/xtensa.c: New file.
12371         * config/xtensa/xtensa.h: New file.
12372         * config/xtensa/xtensa.md: New file.
12373         * config.gcc (xtensa-*-elf*): New target.
12374         (xtensa-*-linux*): New target.
12375         * cse.c (canon_hash): Compare rtx pointers instead of register
12376         numbers.  This is required for the Xtensa port.
12377         * integrate.c (copy_insn_list): Handle case where the static
12378         chain is in memory and the memory address has to be copied to
12379         a register.
12380         * doc/invoke.texi (Option Summary): Add Xtensa options.
12381         (Xtensa Options): New node.
12382         * doc/md.texi (Machine Constraints): Add Xtensa machine constraints.
12384 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
12386         * diagnostic.c (internal_error): Do ICE suppression only
12387         when ENABLE_CHECKING is not defined.
12389         * c-typeck.c (require_complete_type): Return error_mark_node
12390         if type is error_mark_node.
12392 2002-01-23  Janis Johnson  <janis187@us.ibm.com>
12394         * toplev.c (process_options): Disable -fprefetch-loop-arrays with
12395         -Os and issue a warning.
12397 2002-01-23  Zack Weinberg  <zack@codesourcery.com>
12399         * doc/fragments.texi, doc/hostconfig.texi: Update to reflect
12400         current (lack of) need for host configuration by hand.
12402         * doc/gccint.texi, doc/rtl.texi, doc/tm.texi: Adjust cross
12403         references.  Documentation of some target macros moved from
12404         hostconfig.texi to tm.texi.
12406 2002-01-23  Will Cohen  <wcohen@redhat.com>
12408         * config/arm/arm.h (THUMB_FUNCTION_PROFILER): Define if not currently
12409         defined.
12411 2002-01-23  Kazu Hirata  <kazu@hxi.com>
12413         * config/h8300/h8300.md (*andorhi3): Accept 0x8000 as an
12414         operand[3].
12416 2002-01-23  Jason Merrill  <jason@redhat.com>
12418         * tree.c (build1): Don't set TREE_READONLY on INDIRECT_REF.
12420         * function.c (assign_parms): Don't put args of inline functions
12421         into registers when not optimizing.
12423 2002-01-23  Nick Clifton  <nickc@cambridge.redhat.com>
12425         * config/arm/arm.md (UNSPEC_PROLOGUE_USE): New unspec constant.
12426         (prologue_use): New pattern.
12427         * config/arm/arm.c (expand_prologue): Use gen_prologue_use in
12428         preference to gen_rtx_USE.
12429         (thumb_expand_prologue): Use gen_prologue_use in preference to
12430         gen_rtx_USE.
12431         (thumb_expand_epilogue): Use gen_prologue_use in preference to
12432         gen_rtx_USE.
12434 2002-01-23  Hans-Peter Nilsson  <hp@bitrange.com>
12436         * loop.c [!HAVE_prefetch] (CODE_FOR_prefetch): Define to 0.
12438 2002-01-23  Neil Booth  <neil@daikokuya.demon.co.uk>
12440         PR c/3504
12441         * doc/extend.texi: Correct documentation of __alignof__.
12443 2002-01-22  Zack Weinberg  <zack@codesourcery.com>
12445         * params.h: Rename arguments of DEFPARAM so that it will be
12446         recognized as a translation keyword.
12448 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12450         * extend.texi: Document altivec functions.
12451         Fix N-bit adjectives in X86 builtin documentation.
12453 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
12455         * reload.c (reg_overlap_mentioned_for_reload_p): Handle PLUS and
12456         auto_inc_dec values.
12458 2002-01-22  Richard Earnshaw  <rearnsha@arm.com>
12460         * config/netbsd-aout.h (SWITCH_TAKES_ARG): Remove bogus white space
12461         after backslash.
12462         (ASM_DECLARE_OBJECT_NAME): Add missing backslash before final line.
12464 2002-01-22  Alexandre Oliva  <aoliva@redhat.com>
12466         * config/i386/freebsd-aout.h (ASM_QUAD): Undefine.
12468 2002-01-22  Richard Henderson  <rth@redhat.com>
12470         * config/alpha/alpha.c (split_small_symbolic_mem_operand): Use
12471         copy_insn not copy_rtx.
12473 2002-01-23  Alan Modra  <amodra@bigpond.net.au>
12475         * combine.c (simplify_and_const_int): Don't trunc_int_for_mode
12476         "nonzero" as that might add "1" bits.  Ensure "constop" is
12477         properly sign extened.
12478         (force_to_mode): Tweak for sign extended constop.
12480 2002-01-22  Richard Henderson  <rth@redhat.com>
12482         * config/alpha/alpha.c (some_small_symbolic_mem_operand) Use
12483         for_each_rtx instead of assuming we're already looking at the MEM.
12484         (split_small_symbolic_mem_operand): Likewise.
12485         * config/alpha/alpha.h (PREDICATE_CODES): Update.
12486         * config/alpha/alpha.md (small symbolic memory splitters): Update.
12488 2002-01-22  Richard Henderson  <rth@redhat.com>
12490         * config/alpha/alpha.md (divmodsi_internal_er): Generate lituse
12491         sequence number for the literal.
12492         (divmoddi_internal_er): Likewise.
12494 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12496         PR java/4972
12497         * aclocal.m4 (AM_ICONV): Put linking flags for libiconv
12498         in LIBICONV variable.
12499         * configure: Regenerated.
12501 2002-01-22  Krister Walfridsson  <cato@df.lth.se>
12503         * dependence.c (build_def_use): Remove array_idx.
12505         * dwarfout.c (last_filename): Remove.
12506         (output_compile_unit_die): Remove last_filename.
12508 2002-01-22  Roger Sayle  <roger@eyesopen.com>
12509             Richard Henderson  <rth@redhat.com>
12511         PR opt/3640
12512         * fold-const.c (fold): Optimize unsigned comparisons against
12513         UINT_MAX (and similar unsigned constants).
12515 2002-01-22  Janis Johnson  <janis187@us.ibm.com>
12517         * Makefile.in (loop.o): Depend on OPTABS_H.
12518         * loop.c (emit_prefetch_instructions): Check the prefetch operand
12519         against the predicate.
12521         PR target/5379
12522         * config/i386/i386.md (prefetch_sse): Specify "p" as a constraint
12523         for the address operand.
12525 2002-01-22  Richard Henderson  <rth@redhat.com>
12527         * config/alpha/freebsd.h (FUNCTION_PROFILER): Remove.
12529 2002-01-22  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12531         PR other/5450
12532         * config/i386/sysv4.h (CPP_SPEC): Define, and add CPU
12533         preprocessor flags.
12535 2002-01-22  Jason Thorpe  <thorpej@wasabisystems.com>
12537         * config.gcc (x86_64-*-netbsd*): New target.
12538         * config/i386/netbsd64.h: New file.
12540 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12542         * regrename.c (kill_value): Fix typo.
12544 2002-01-22  Aldy Hernandez  <aldyh@redhat.com>
12546         * doc/tm.texi: Remove STARTING_FRAME_PHASE.
12548         * config/rs6000/rs6000.h: Same.
12550         * function.c (instantiate_virtual_regs): Remove
12551         STARTING_FRAME_PHASE.
12552         (assign_stack_local_1): Same.
12553         Calculate frame phase.
12555 2002-01-22  Nick Clifton  <nickc@redhat.com>
12557         * config/arm/arm.h (CONDITIONAL_REGISTER_USAGE): Move 'regno'
12558         variable declaration to outer scope in order to simplify
12559         future extensions.
12560         (HARD_REGNO_MODE_OK): Replace macro body with a with a call to
12561         arm_hard_regno_mode_ok.
12562         * config/arm/arm-protos.h: Add a prototype for
12563         arm_hard_regno_mode_ok.
12564         * config/arm/arm.c (soft_df_operand): Remove now redundant
12565         check for DImode values using IP_REGNUM.
12566         (nonimmediate_soft_df_operand): Remove now redundant check for
12567         DImode values using IP_REGNUM.
12568         (arm_hard_regno_mode_ok): New function. New check: make sure
12569         that DImode values are not stored in IP_REGNUM.
12571         * config/arm/arm.c (arm_expand_prologue): Replace REG_MAYBE_DEAD
12572         note with a USE.
12573         (thumb_expand_prologue): Replace REG_MAYBE_DEAD note with a USE.
12575 2002-01-22  Jason Merrill  <jason@redhat.com>
12577         * c-semantics.c (genrtl_compound_stmt): Only check nesting
12578         consistency if this COMPOUND_STMT is scoped.
12580 2002-01-22  Kazu Hirata  <kazu@hxi.com>
12582         * predict.c: Fix formatting.
12583         * print-tree.c: Likewise.
12584         * protoize.c: Likewise.
12585         * real.h: Likewise.
12586         * rtl.h: Likewise.
12587         * sbitmap.h: Likewise.
12588         * scan.c: Likewise.
12589         * sched-deps.c: Likewise.
12590         * sched-vis.c: Likewise.
12591         * sdbout.c: Likewise.
12592         * sibcall.c: Likewise.
12593         * ssa.c: Likewise.
12594         * ssa-ccp.c: Likewise.
12595         * ssa-dce.c: Likewise.
12596         * stmt.c: Likewise.
12597         * stor-layout.c: Likewise.
12598         * system.h: Likewise.
12600 Tue Jan 22 06:26:33 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12602         * tree.c (int_fits_type_p): If bounds of a subtype are variable, see
12603         if fits in bounds of base type.
12605         * dwarf2out.c (equate_decl_number_to_die): Add "int" to decls.
12606         (loc_descriptor_from_tree, case CALL_EXPR, case ADDR_EXPR): New.
12607         (add_bound_info, default): If can't find a context, make a
12608         SAVE_EXPR.
12609         (dwarf2out_finish): Check for SAVE_EXPR in node->created_for.
12611 2002-01-22  Hans-Peter Nilsson  <hp@axis.com>
12613         * c-typeck.c (parser_build_binary_op): If result from
12614         build_binary_op is ERROR_MARK just return error_mark_node without
12615         further processing.
12617 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
12619         * config/netbsd.h (TARGET_HAS_F_SETLKW): define.
12620         Split a.out-specific bits into...
12621         * config/netbsd-aout.h: ...this.
12622         * config/netbsd-elf.h: New file.
12623         * config/alpha/netbsd-elf.h: Remove.
12624         * config/alpha/netbsd.h: Rewrite for a NetBSD/alpha ELF target.
12625         * config/i386/netbsd-elf.h (LIB_SPEC): Remove.
12626         (STARTFILE_SPEC): Remove redundant definition.
12627         (ENDFILE_SPEC): Likewise.
12628         (LINK_SPEC): Likewise.
12629         (CPP_SPEC): Likewise.
12630         (ASM_SPEC): Likewise.
12631         (LIB_SPEC): Likewise.
12632         (SWITCH_TAKES_ARG): Likewise.
12633         (TARGET_MEM_FUNCTIONS): Likewise.
12634         (CPP_PREDEFINES): Redefine.
12635         (ASM_FINAL_SPEC): Remove redefinition.
12636         (ASM_COMMENT_START): Redefine.
12637         (FUNCTION_PROFILER): Define.
12638         (TARGET_VERSION): Redefine.
12639         Comment and formatting cleanup.
12640         * config/i386/netbsd.h: Include <netbsd-aout.h>.
12641         * config/m68k/netbsd.h: Include <netbsd-aout.h>.
12642         * config/mips/netbsd.h: Rewrite for NetBSD/mips ELF target,
12643         big- or little-endian.
12644         * config/ns32k/netbsd.h: Include <netbsd-aout.h>.
12645         * config.gcc (*-*-netbsd*): Add definitions common to all
12646         NetBSD configs.
12647         (alpha*-*-netbsd*): Remove redundant xm_defines, gas, and
12648         gnu_ld definitions.  Add netbsd-elf.h to and remove
12649         alpha/netbsd-elf.h from tm_file.  Remove alpha/t-crtfm from
12650         tmake_file, and don't lose previous tmake_file contents.
12651         (arm*-*-netbsd*): Add netbsd-aout.h to tm_file.
12652         (i[34567]86-*-netbsdelf*): Remove redundant xm_defines, gas, and
12653         gnu_ld definitions.  Add netbsd-elf.h to tm_file.
12654         (mips-dec-netbsd*): Remove as alias for mipsel-*-netbsd*.
12655         (mipsel-*-netbsd*): Rename this to...
12656         (mips*-*-netbsd*): ...this.  Add elfos.h to tm_file.  Add
12657         mips/little.h to tm_file for mips*el-*.
12658         (powerpc-*-netbsd*): Remove redundant xm_defines definition.
12659         (sparc-*-netbsd*): Add netbsd-aout.h to tm_file.
12660         (vax-*-netbsd*): Add netbsd-aout.h to tm_file.
12662 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12664         * pa-protos.h (reg_before_reload_operand): New function prototype.
12665         * pa.c (reg_before_reload_operand): New function implementation.
12666         * pa.md (decrement_and_branch_until_zero, movb): Use it.  Change "!*m"
12667         contraints to "*m".
12669 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12671         * combine.c (simplify_and_const_int): Properly sign-extend CONSTOP.
12673 2002-01-21  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12675         * pa64-hpux.h (MD_EXEC_PREFIX): Set to "/usr/ccs/bin".
12676         (MD_STARTFILE_PREFIX): Set to "/usr/ccs/lib/pa20_64/".
12677         (MD_STARTFILE_PREFIX_1): Set to "/opt/langtools/lib/pa20_64/".
12678         (EH_FRAME_IN_DATA_SECTION): Define and update comment on init sections.
12679         (ENDFILE_SPEC): Undefine.
12680         (STARTFILE_SPEC): Redefine for PA.
12682 2002-01-21  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
12684         * config/rs6000/t-ppccomm (CRTSTUFF_T_CFLAGS_S): Re-add -fPIC.
12686 2002-01-21  Daniel Jacobowitz  <drow@mvista.com>
12688         * config.gcc: Add entries to supported PowerPC --with-cpu
12689         types.
12691 2002-01-21  Jakub Jelinek  <jakub@redhat.com>
12693         * config/i386/i386.c (ix86_function_arg_regno_p): Never return
12694         true for 64-bit mode only SSE registers in 32-bit mode.
12696 2002-01-21  Kazu Hirata  <kazu@hxi.com>
12698         * unwind-dw2.c: Fix formatting.
12699         * unwind-dw2-fde.c: Likewise.
12700         * unwind-dw2-fde.h: Likewise.
12701         * unwind-pe.h: Likewise.
12702         * varasm.c: Likewise.
12703         * varray.h: Likewise.
12705 2002-01-21  Hans-Peter Nilsson  <hp@bitrange.com>
12707         Remove workaround for register stack overwrite bug in mmix.
12708         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Remove
12709         support for TARGET_REG_STACK_FILL_BUG.
12710         * config/mmix/mmix.h: Remove member has_call_without_parameters.
12711         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_REG_STACK_FILL_BUG):
12712         Delete.
12713         (TARGET_DEFAULT): Remove TARGET_MASK_REG_STACK_FILL_BUG.
12714         (TARGET_SWITCHES): Remove -mreg-stack-fill-bug-workaround and
12715         -mno-reg-stack-fill-bug-workaround.
12716         * config/mmix/mmix.md ("call", "call_value"): Don't set struct
12717         machine member has_call_without_parameters.
12718         * doc/invoke.texi (Option Summary) <MMIX Options>: Remove
12719         -mreg-stack-fill-bug-workaround and
12720         -mno-reg-stack-fill-bug-workaround.
12721         (MMIX Options): Ditto.
12723 2002-01-21  Kazu Hirata  <kazu@hxi.com>
12725         * config/h8300/h8300.c (function_arg): Replace 0 with NULL_RTX
12726         as appropriate.
12727         Remove redundant code.
12729 2002-01-21  Joseph S. Myers  <jsm28@cam.ac.uk>
12731         * config/alpha/alpha.h, config/arc/arc.h, config/avr/avr.h,
12732         config/c4x/c4x.h, config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12733         config/fr30/fr30.h, config/ia64/ia64.h, config/m68hc11/m68hc11.h,
12734         config/mips/mips.h, config/rs6000/rs6000.h, config/sparc/sparc.h,
12735         config/stormy16/stormy16.h, config/v850/v850.h: Remove commented
12736         out target macro definitions and non-target-specific comments
12737         mostly taken from old versions of the manual.
12739 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12741         * config/h8300/h8300.h: Fix comment formatting.
12742         * config/ia64/aix.h: Likewise.
12743         * config/ia64/ia64-protos.h: Likewise.
12744         * config/ia64/ia64.c: Likewise.
12745         * config/ia64/ia64.h: Likewise.
12746         * config/ia64/ia64intrin.h: Likewise.
12747         * config/ia64/linux.h: Likewise.
12748         * config/ia64/unwind-aix.c: Likewise.
12749         * config/ia64/unwind-ia64.c: Likewise.
12751 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12753         * config/h8300/h8300.c: Revise comments about shift code.
12755 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12757         * config/h8300/h8300.c (function_arg): Update a comment.
12759 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12761         * config/h8300/h8300.md: Update the comments at the beginning
12762         of the file.
12764 2002-01-20  Kazu Hirata  <kazu@hxi.com>
12766         * config/i370/i370.c: Fix comment formatting.
12767         * config/i370/i370.h: Likewise.
12768         * config/i370/i370.md: Likewise.
12769         * config/i370/linux.h: Likewise.
12771 Sun Jan 20 18:40:14 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12773         * reg-stack.c (subst_stack_regs): Properly check for deleted insn.
12775         * dwarf2out.c (loc_descriptor_from_tree): Add TRUTH_*_EXPR cases.
12776         (gen_struct_or_union_type_die): Don't SIGSEGV if no TYPE_STUB_DECL
12777         in incomplete case.
12779 2002-01-20  Graham Stott  <grahams@redhat.com>
12781         * cfgloop.c (flow_loop_preheader_scan): Fix typo.
12783 2002-01-19  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12785         * config.gcc (hppa*64*-*-hpux11*): Fix tmake_file.
12787 2002-01-19  Tom Rix  <trix@redhat.com>
12789         * config/rs6000/rs6000.md: Fix DF split for 64 bit hosts.
12791 2002-01-18  Aldy Hernandez  <aldyh@redhat.com>
12793         * doc/tm.texi (STARTING_FRAME_PHASE): Document.
12795         * function.c (assign_stack_local_1): Adjust x_frame_offset with
12796         STARTING_FRAME_PHASE.
12797         (STARTING_FRAME_PHASE): New.
12798         (instantiate_virtual_regs): Check saneness of
12799         STARTING_FRAME_PHASE.
12801         * config/rs6000/rs6000.h (STARTING_FRAME_PHASE): New.
12803 2002-01-19  Alexandre Oliva  <aoliva@redhat.com>
12805         * config/sh/sh.md (movdf_i4 split): Fix alter_subreg calls.
12807 2002-01-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
12809         * doc/install.texi (hppa*-hp-hpux11): Clarify that GCC 2.95.x cannot
12810         be used for bootstrapping GCC 3.0.
12812 2002-01-18  Kazu Hirata  <kazu@hxi.com>
12814         * config/h8300/h8300.md: Fix an insn length.
12816 2002-01-18  Kazu Hirata  <kazu@hxi.com>
12818         * bitmap.h: Fix comment formatting.
12819         * combine.c: Likewise.
12820         * cppfiles.c: Likewise.
12821         * c-pragma.h: Likewise.
12822         * c-typeck.c: Likewise.
12823         * df.c: Likewise.
12824         * dwarf2out.c: Likewise.
12825         * function.c: Likewise.
12826         * gcc.c: Likewise.
12827         * genattrtab.c: Likewise.
12828         * gthr-win32.h: Likewise.
12829         * haifa-sched.c: Likewise.
12830         * predict.c: Likewise.
12831         * rtlanal.c: Likewise.
12832         * rtl.h: Likewise.
12833         * unwind-dw2-fde.h: Likewise.
12834         * unwind-pe.h: Likewise.
12835         * vmsdbgout.c: Likewise.
12837 Thu Jan 17 15:28:26 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
12839         * attribs.c (decl_attributes): Clear ATTR_FLAG_TYPE_IN_PLACE
12840         if type_required and passed decl.
12842 2002-01-17  Aldy Hernandez  <aldyh@redhat.com>
12844         * config.gcc (cpu_type): Include altivec.h in powerpc
12845         extra_headers.
12846         Same for darwin.
12848         * config/rs6000/altivec.h: New.
12850 2002-01-17  David Edelsohn  <edelsohn@gnu.org>
12852         * doc/install.texi (*-ibm-aix*): Update assembler and exception
12853         handling information.
12854         * doc/trouble.texi (Interoperation): Add libstdc++ information
12855         for AIX.
12856         (Misunderstandings): Add template instantiation and static template
12857         member information for AIX.
12859 2002-01-17  Jason Merrill  <jason@redhat.com>
12861         * dbxout.c (dbxout_type): Support const and volatile.
12863         * except.c (add_partial_entry): Remove backwards compatibility code.
12864         (end_protect_partials): Likewise.
12866 2002-01-17  Jakub Jelinek  <jakub@redhat.com>
12868         * config/ia64/ia64.md (prologue_use): New.
12869         * config/ia64/ia64.c (ia64_expand_prologue): Use
12870         gen_prologue_use instead of gen_rtx_USE.
12871         (group_barrier_needed_p): Handle CODE_FOR_prologue_use the same way
12872         as CODE_FOR_pred_rel_mutex.
12873         (ia64_sched_reorder2): Likewise.
12875 2002-01-16  Eric Christopher  <echristo@redhat.com>
12877         * config/mips/r3900.h: Reformat.
12878         (SUBTARGET_CPP_SIZE_SPEC): Remove.
12879         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Ditto.
12880         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Default to "".
12881         (SUBTARGET_CPP_SIZE_SPEC): Rewrite.
12882         * config/mips/t-elf: Remove mips3 multilib.
12884 2002-01-16  H.J. Lu <hjl@gnu.org>
12886         * config/mips/linux.h: Include "mips/abi64.h".
12888 2002-01-16  H.J. Lu <hjl@gnu.org>
12890         * config/mips/t-linux: New.
12892         * config.gcc: Add mips/t-linux to tmake_file for mips*-*-linux*.
12894         * config/mips/linux.h: Don't include "gofast.h".
12895         (INIT_SUBTARGET_OPTABS): Removed.
12897 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12899         * config/h8300/h8300-protos.h: Replace emit_a_shift with
12900         output_a_shift.
12901         * config/h8300/h8300.c: Likewise.
12902         * config/h8300/h8300.md: Likewise.
12904 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12906         * config/h8300/h8300.md (pushqi1_h8300): Use a tab instead of
12907         spaces after an opcode name.
12908         (pushqi1_h8300hs): Likewise.
12909         (pushhi1_h8300hs): Likewise.
12911 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12913         * doc/extend.texi: Replace "option" with "attribute"
12914         appropriately.
12916 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
12918         * config/alpha/alpha.c (some_small_symbolic_mem_operand): Look into
12919         (and:DI () (const_int -8)).
12920         (split_small_symbolic_mem_operand): Split
12921         (mem (and:DI () (const_int -8)).
12923 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
12925         PR target/5309:
12926         * config/sparc/sparc.c (ultrasparc_adjust_cost): Handle TYPE_IDIV the
12927         same way as TYPE_IMUL.
12928         (ultrasparc_sched_reorder): Likewise.
12929         * config/sparc/sparc.md (type): Add comment to update
12930         ultrasparc_sched_reorder when making changes.
12932 2002-01-16  Kazu Hirata  <kazu@hxi.com>
12934         * doc/invoke.texi: Change the dump file name of block
12935         reordering pass from 28.bbro to 29.bbro.
12936         Mention -dk option.
12938 Wed Jan 16 17:54:22 CET 2002  Jan Hubicka  <jh@suse.cz>
12940         * i386.md (minsf splitter): Fix pasto.
12942 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
12944         * config/arm/arm.c (arm_expand_prologue): Add REG_MAYBE_DEAD note
12945         to frame pointer initialisation instruction.
12946         (thumb_expand_prologue): Add REG_MAYBE_DEAD note to frame pointer
12947         initialisation instruction.
12948         (soft_df_operand): Do not accept the IP register.
12949         (nonimmediate_soft_df_operand): Do not accept the IP register.
12951 2002-01-16  Jakub Jelinek  <jakub@redhat.com>
12953         PR target/5357:
12954         * config/sparc/sparc.c (sparc_override_options): Avoid MASK_V9 and
12955         MASK_V8 being both set.
12957 2002-01-16  Ulrich Weigand  <uweigand@de.ibm.com>
12959         * config/s390/s390.c (s390_emit_prologue): Do not emit USE
12960         insn for GOT register; add REG_MAYBE_DEAD notes instead.
12961         config/s390/s390.md (call, call_value): Add GOT register to
12962         CALL_INSN_FUNCTION_USAGE where needed.
12963         (call_exp, call_value_exp): New.
12965 2002-01-16  Nick Clifton  <nickc@cambridge.redhat.com>
12967         * config/arm/arm.c: General formatting tidy up.
12969 2002-01-16  Graham Stott  <grahams@redhat.com>
12971         * calls.c (try_to_integrate): Use "(size_t)" intermediate
12972         cast and when casting an integer literal to "rtx" pointer.
12973         (expand_call): Likewise.
12974         * flow.c (try_pre_increment): Likewise.
12975         (find_use_as_address): Likewise.
12976         * integrate.c (expand_iline_function): Likewise.
12977         * regmove.c (try_auto_increment): Likewise.
12979 2002-01-16  Graham Stott  <grahams@redhat.com>
12981         * sched-rgn.c (passed): Use sbitmap_free.
12982         (header): Likewise.
12983         (inner): Likewise.
12984         (in_queue): Likewise.
12985         (in_stack): Likewise.
12987 2002-01-15  Eric Christopher  <echristo@redhat.com>
12989         * flow.c (propagate_one_insn): Change to use fatal_insn.
12991 2002-01-15  Kazu Hirata  <kazu@hxi.com>
12993         * expmed.c (extract_fixed_bit_field): Remove unused code.
12994         * system.h: Poison SLOW_ZERO_EXTEND.
12995         * doc/tm.texi: Remove.
12996         * config/1750a/1750a.h (SLOW_ZERO_EXTEND): Remove.
12997         * config/arm/arm.h: Likewise.
12998         * config/avr/avr.h: Likewise.
12999         * config/clipper/clipper.h: Likewise.
13000         * config/convex/convex.h: Likewise.
13001         * config/d30v/d30v.h: Likewise.
13002         * config/dsp16xx/dsp16xx.h: Likewise.
13003         * config/elxsi/elxsi.h: Likewise.
13004         * config/fr30/fr30.h: Likewise.
13005         * config/h8300/h8300.h: Likewise.
13006         * config/i370/i370.h: Likewise.
13007         * config/i386/i386.h: Likewise.
13008         * config/m68k/m68k.h: Likewise.
13009         * config/mips/mips.h: Likewise.
13010         * config/ns32k/ns32k.h: Likewise.
13011         * config/pdp11/pdp11.h: Likewise.
13012         * config/pj/pj.h: Likewise.
13013         * config/s390/s390.h: Likewise.
13014         * config/sh/sh.h: Likewise.
13015         * config/stormy16/stormy16.h: Likewise.
13016         * config/v850/v850.h: Likewise.
13017         * config/vax/vax.h: Likewise.
13018         * config/we32k/we32k.h: Likewise.
13020 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
13022         * config/rs6000/rs6000.md (altivec_stvx): Add parallels to stvx.
13023         (altivec_lvsl): Change constraint to b.
13024         (altivec_lvsr): Same.
13025         (altivec_lvebx): Same.
13026         (altivec_lvehx): Same.
13027         (altivec_lvewx): Same.
13028         (altivec_lvxl): Same.
13029         (altivec_lvx): Same.
13030         (altivec_stvx): Add parallel.
13031         (altivec_stvxl): Same.
13032         (altivec_stvehx): Same.
13033         (altivec_stvebx): Same.
13034         (altivec_stvebx): Same.
13036 2002-01-15  Aldy Hernandez  <aldyh@redhat.com>
13038         * config.gcc: Change altivec.h to altivec-defs.h.
13040         * config/rs6000/altivec.h: Delete.
13042         * config/rs6000/altivec-defs.h: Add.
13044 2002-01-15  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13046         * vax.c (vax_rtx_cost): Return MAX_COST for unsupported MULT, UDIV
13047         and UMOD modes.
13049         * vax.h (INDEX_TERM_P): Restrict indexing to modes which have a size
13050         less than or equal to eight bytes.
13052         * vax.md (andsi3): Remove constraints and change SET destination
13053         operand type to nonimmediate_operand.
13054         (andhi3, andqi3): Likewise.  Don't clear high order bits of operand 1
13055         when it is a CONST_INT.
13057 2002-01-15  Jason Merrill  <jason@redhat.com>
13059         * c-common.def (FILE_STMT): New code.
13060         * c-common.c (statement_code_p): It's a statement.
13061         * c-common.h (stmt_tree_s): Add x_last_filename.
13062         (FILE_STMT_FILENAME_NODE, FILE_STMT_FILENAME): New macros.
13063         (last_expr_filename): New macro.
13064         * c-semantics.c (begin_stmt_tree): Initialize it.
13065         (add_stmt): If the filename changed, also insert a
13066         FILE_STMT.
13067         (expand_stmt): Handle seeing one.
13069 2002-01-15  Eric Christopher  <echristo@redhat.com>
13071         * flow.c (propagate_one_insn): Add error message and print out
13072         insn for debugging.
13074 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
13076         * system.h (ASM_IDENTIFY_GCC, STDC_VALUE, TRAMPOLINE_ALIGN,
13077         ASM_IDENTIFY_GCC_AFTER_SOURCE): Poison.
13078         * config/pdp11/pdp11.h (TRAMPOLINE_ALIGN): Rename to
13079         TRAMPOLINE_ALIGNMENT.
13080         * config/arm/arm.h, config/mcore/mcore.h: Likewise.  Change value
13081         to be in bits.
13082         * config/i386/cygwin.h (PCC_BITFIELDS_TYPE_MATTERS): Rename to
13083         PCC_BITFIELD_TYPE_MATTERS.
13084         * config/interix.h (STDC_VALUE): Remove.  Use
13085         STDC_0_IN_SYSTEM_HEADERS.
13086         * config/darwin.h (ASM_IDENTIFY_GCC), config/dsp16xx/dsp16xx.h
13087         (ASM_IDENTIFY_GCC), config/stormy16/stormy16.h (ASM_IDENTIFY_GCC,
13088         ASM_IDENTIFY_GCC_AFTER_SOURCE): Remove.
13090 2002-01-15  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13092         * doc/install.texi (hppa*-hp-hpux11): --enable-threads does
13093         not work on this platform currently.
13095 2002-01-15  Joseph S. Myers  <jsm28@cam.ac.uk>
13097         * c-typeck.c (build_unary_op): Don't wrap msgid argument of
13098         readonly_warning in _().
13100 2002-01-15  Douglas B Rupp  <rupp@gnat.com>
13102         * gcc.c (delete_if_ordinary): Backout previous change.
13104 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13106         * config/h8300/h8300.c (print_operand): Remove support for
13107         unused operand characters.
13109         * read-rtl.c: Fix formatting.
13110         * real.c: Likewise.
13111         * recog.c: Likewise.
13112         * regclass.c: Likewise.
13113         * regmove.c: Likewise.
13114         * reg-stack.c: Likewise.
13115         * reload1.c: Likewise.
13116         * rtlanal.c: Likewise.
13118 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13120         * config/i386/i386.c: Fix formatting.
13122 2002-01-15  Jakub Jelinek  <jakub@redhat.com>
13124         * c-typeck.c (process_init_element): Don't save_expr
13125         COMPOUND_LITERAL_EXPR if just its initializer will be used.
13127 2002-01-15  David Edelsohn  <edelsohn@gnu.org>
13129         * config/rs6000/rs6000.c (rs6000_output_function_epilogue): Do not
13130         emit optional traceback table if optimize_size or TARGET_ELF.
13131         * config/rs6000/rs6000.md (prefetch): New.
13133 2002-01-15  Andreas Jaeger  <aj@suse.de>
13135         * config.gcc (x86_64-*-*): Install mmintrin.h and xmmintrin.h.
13137 2002-01-15  Kazu Hirata  <kazu@hxi.com>
13139         * mips-tfile.c: Fix formatting.
13141 Tue Jan 15 00:56:11 CET 2002  Jan Hubicka  <jh@suse.cz>
13143         * unroll.c (final_reg_note_copy): Fix previous commit.
13145 2002-01-14  Kazu Hirata  <kazu@hxi.com>
13147         * config/h8300/h8300-protos.h: Remove the prototype for
13148         eq_operator.
13149         * config/h8300/h8300.c (eq_operator): Remove.
13151 2002-01-14  Richard Henderson  <rth@redhat.com>
13153         * config/i386/i386.md (prefetch): Tidy.
13154         (prefetch_3dnow): Fix locality operand.
13156 2002-01-14  Richard Henderson  <rth@redhat.com>
13158         * config/mips/mips.h (HI_AND_FP_REGS): New register class.
13159         (CLASS_CANNOT_CHANGE_MODE): Disallow HI in little-endian mode.
13161 2002-01-14  Hans-Peter Nilsson  <hp@bitrange.com>
13163         * reload1.c (reload_combine): Pass reg_sum replacement through
13164         copy_rtx in loop performing multiple changes.
13166 2002-01-14  Jakub Jelinek  <jakub@redhat.com>
13168         * except.c (remove_unreachable_regions): New.
13169         (free_eh_status): Clear exception_handler_labels.
13170         (convert_from_eh_region_ranges): Call remove_unreachable_regions.
13171         (find_exception_handler_labels): Don't add the same label more than
13172         once.
13173         (remove_exception_handler_label): Don't die if
13174         find_exception_handler_labels hasn't been called for the current
13175         function yet.
13177 Mon Jan 14 21:26:13 CET 2002  Jan Hubicka  <jh@suse.cz>
13179         * toplev.c (rest_of_compilation): Rebuild jump labels after
13180         gcse.
13182 2002-01-14  Joseph S. Myers  <jsm28@cam.ac.uk>
13184         * doc/extend.texi: Move documentation of X86 built-in functions
13185         here.
13186         * doc/invoke.texi: From here.
13187         * doc/sourcebuild.texi: Document location of documentation for
13188         machine built-in functions.
13190 2002-01-13  Christopher Faylor  <cgf@redhat.com>
13192         * cppfiles.c (TEST_THRESHOLD): New macro.
13193         (SHOULD_MMAP): Ditto.
13194         (read_include_file): Use SHOULD_MMAP macro to decide when mmap should
13195         be used.
13197 Mon Jan 14 20:23:34 CET 2002  Jan Hubicka  <jh@suse.cz>
13199         * unroll.c (final_reg_note_copy): Properly handle
13200         REG_LABEL
13201         (unroll_loops): Fix LOOP_CONDITION heuristics.
13203 2002-01-14  Geoffrey Keating  <geoffk@redhat.com>
13205         * doc/invoke.texi (Xstormy16 Options): Add xstormy16 option.
13206         * doc/md.texi (Machine Constraints): Use @minus{} where appropriate.
13208 Mon Jan 14 20:18:19 CET 2002  Jan Hubicka  <jh@suse.cz>
13210         * cfgcleanup.c (try_forward_edges): Avoid infinite loop at infinite
13211         threaded loop.
13213 2002-01-14  Tom Rix  <trix@redhat.com>
13215         * config/rs6000/rs6000.md: Fix typo with sradi.
13217 2002-01-14  Ulrich Weigand  <uweigand@de.ibm.com>
13219         * config/s390/s390.md (movstrdix_64, movstrsix_31, movstrdi_64,
13220         movstrsi_31, clrstrsi_64, clrstrsi_31): Improve RTL templates.
13221         (clrstrdi, clrstrsi): Adapt callers.
13223         (extendsidi2, zero_extendsidi2): Remove no-conflict blocks.
13225         (movti splitter): Never use register 0 as base register.
13227 2002-01-14  Hartmut Penner  <hpenner@de.ibm.com>
13229         * combine.c (simplify_shift_const): Always generate new rtx
13230         for shift expression instead of reusing given expression.
13232 Mon Jan 14 07:08:55 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13234         * config/alpha/alpha.c (alpha_expand_mov): Don't call
13235         alpha_legitimize_address unless mode is Pmode.
13237 2002-01-13  Geoffrey Keating  <geoffk@redhat.com>
13239         * doc/md.texi (Modifiers): Document the '*' constraint for the
13240         user.
13242         * doc/md.texi (Machine Constraints): Add constraints for xstormy16.
13243         * doc/extend.texi (Function Attributes): 'interrupt' is valid
13244         for xstormy16 too.
13246 2002-01-13  Richard Henderson  <rth@redhat.com>
13248         * reload.c (find_reloads): Use a hard reg destination as reload reg
13249         for an input reload of the source.
13251 2002-01-13  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13253         * doc/install.texi (Binaries): Make link to ftp.writtenword.com
13254         more generic.
13256 Sun Jan 13 07:23:01 2002  Douglas B Rupp  <rupp@gnat.com>
13258         * Makefile.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13259         * mklibgcc.in (LIB2FUNCS): Split into LIB2FUNCS_1 and LIB2FUNCS_2.
13261         * config/alpha/x-vms (USE_COLLECT2): Set to empty.
13263 Sun Jan 13 06:55:31 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13265         * dwarf2out.c (mem_loc_descriptor, case ADDRESSOF): New case.
13267 2002-01-12  Tom Rix  <trix@redhat.com>
13269         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Use ior for
13270         TARGET_POWERPC64.
13272 2002-01-12  Richard Henderson  <rth@redhat.com>
13274         * config/i386/i386.c (bdesc_2arg): Mark psadbw MASK_3DNOW_A.
13276         * doc/invoke.texi: Update Alpha options.
13278         * doc/invoke.texi: Update i386 built-in function lists.
13280 Sat Jan 12 17:38:11 CET 2002  Jan Hubicka  <jh@suse.cz>
13282         * unroll.c (final_reg_note_copy): Avoid crash on REG_LABEL note
13283         referencing outside.
13285 Sat Jan 12 08:54:51 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13287         * diagnostic.c (warn_deprecated_use): Rework to lower indentation.
13288         * expr.c (emit_move_insn_1): Remove warning, use HOST_WIDE_INT for
13289         offsets, and change line folding.
13290         * optabs.c (expand_binop): Remove warnings.
13291         * sdbout.c (sdbout_record_type_name): Constify NAME to avoid warning.
13293 2002-01-12  Graham Stott <grahams@redhat.com>
13295         * attribs.c (handle_deprecated_attribute): constify WHAT.
13296         * diagnostic.c (warn_deprecated_use): Add braces, fixes
13297         dangling else warning and constify WHAT.
13298         * except.h (struct function, struct inline_remap): Move
13299         struct tag forward defs before all prototypes.
13300         (duplicate_eh_regions): Whitespace.
13302 2002-01-12  Nick Clifton  <nickc@cambridge.redhat.com>
13304         * config/arm/arm.h (ARM_LEGITIMIZE_RELOAD_ADDRESS): Use
13305         MODE_BASE_REG_CLASS.
13306         (THUMB_LEGITIMIZE_RELOAD_ADDRESS): Use MODE_BASE_REG_CLASS.
13308 2002-01-12  Richard Henderson  <rth@redhat.com>
13310         * config/i386/i386.c (override_options): If SSE, enable sse prefetch.
13311         (ix86_expand_vector_move): New.
13312         (bdesc_2arg): Remove andps, andnps, orps, xorps.
13313         (ix86_init_mmx_sse_builtins): Make static.  Remove composite builtins.
13314         Remove old prefetch builtins.  Special case the logicals removed above.
13315         (ix86_expand_builtin): Likewise.
13316         (safe_vector_operand): Use V4SFmode, not TImode.
13317         (ix86_expand_store_builtin): Remove shuffle arg.  Update callers.
13318         (ix86_expand_timode_binop_builtin): New.
13319         * config/i386/i386-protos.h: Update.
13320         * config/i386/i386.h (enum ix86_builtins): Update.
13321         * config/i386/i386.md: Correct predicates on MMX/SSE patterns.
13322         Use ix86_expand_vector_move in vector move expanders.
13323         (movti_internal, movti_rex64): Add xorps alternative.
13324         (sse_clrv4sf): Rename and adjust from sse_clrti.
13325         (prefetch): Don't work so hard.
13326         (prefetch_sse, prefetch_3dnow): Use PREFETCH rtx, not UNSPEC.
13327         * config/i386/xmmintrin.h (__m128): Use V4SFmode.
13328         (_mm_getcsr, _mm_setcsr): Fix typo in builtin name.
13330 2002-01-11  Richard Henderson  <rth@redhat.com>
13332         * config/i386/mmintrin.h: New file.
13333         * config/i386/xmmintrin.h: New file.
13334         * config.gcc (i?86-*-*): Add extra_headers.
13335         * simplify-rtx.c (simplify_unary_operation): Handle saturating
13336         truncation codes.
13337         (simplify_binary_operation): Handle saturating arithmetic codes.
13338         * config/i386/i386.c (ix86_expand_sse_comi): Return the full result,
13339         not the lowpart subreg.
13340         (ix86_expand_builtin): Return a TImode dummy register instead of 0
13341         on error.
13342         * config/i386/i386.md (mmx_clrdi): Override memory attribute.
13344 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13346         * conflict.c (conflict_graph_compute): Free regsets when finished.
13347         * ssa.c (compute_coalesced_reg_partition): Likewise.
13349 2002-01-12  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13351         * global.c (find_reg): Check for HARD_REGNO_CALL_PART_CLOBBERED
13352         every where we allocate a register.
13354 2002-01-12  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13356         * gcse.c (compute_pre_data, pre_gcse): Use sbitmap_free.
13357         * lcm.c (compute_earliest, compute_farthest): Likewise.
13359 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
13361         * expr.c (expand_assignment): Fix misuse of MEM_KEEP_ALIAS_SET.
13363 2002-01-11  Janis Johnson  <janis187@us.ibm.com>
13365         * doc/rtl.texi (Insns): Fix 2 typos.
13367 2002-01-11  Joseph S. Myers  <jsm28@cam.ac.uk>
13369         * doc/invoke.texi: Avoid overfull hboxes.  Add summary of D30V
13370         options.  Use @table @gcctabopt for MMIX options.  Add index
13371         entries for MMIX options.  Start new paragraph with first
13372         heading of the machine-dependent options.
13374 2002-01-11  Craig Rodrigues  <rodrigc@gcc.gnu.org>
13376         PR other/5299
13377         * config/ns32k/ns32k.md: Fix spelling mistake of "than" in comments.
13378         * combine.c (force_to_mode): Same.
13379         * reload1.c (clear_reload_reg_in_use): Same.
13381 2002-01-11  Nick Clifton  <nickc@cambridge.redhat.com>
13383         * config/arm/arm.c (arm_gen_constant): Correct test of 'remainder'
13384         and 'subtargets'.
13386 2002-01-11  Andreas Jaeger  <aj@suse.de>,
13387             Brad Lucier <lucier@math.purdue.edu>
13389         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove wrong
13390         mcpu.
13392 Fri Jan 11 07:35:12 2002  Douglas B Rupp  <rupp@gnat.com>
13394         * config/alpha/vms.h: (MD_FALLBACK_FRAME_STATE_FOR): Fix errors.
13395         Protect with IN_LIBGCC.
13396         (LINK_EH_SPEC): Add required trailing space.
13398 Fri Jan 11 09:25:05 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13400         * c-tree.h: Move function declarations so that they are listed
13401         under the filename which contains them.
13402         (check_identifier, finish_decl_top_level,
13403         lookup_name_current_level_global, shadow_record_fields): Remove.
13405 2002-01-11  Andreas Jaeger  <aj@suse.de>
13407         * config/i386/i386.h (CPP_CPUCOMMON_SPEC): Remove duplicated
13408         march.
13410 2002-01-10  Richard Henderson  <rth@redhat.com>
13412         * config/alpha/alpha.c (print_operand): Add 'J'.
13413         * config/alpha/alpha.md (call_osf_1_er, call_value_osf_1_er): Take a
13414         new operand with the sequence number for the lituse.  When splitting
13415         the insns, use gen_movdi_er_high_g and generate a sequence number.
13416         (gen_movdi_er_high_g): Print the sequence number if non-zero.
13418 2002-01-10  Aldy Hernandez  <aldyh@redhat.com>
13420         * config/rs6000/rs6000.c (altivec_init_builtins): Add support for
13421         lvebx, lvehx, lvewx, lvxl, lvx, stvx, stvebx, stvehx, stvewx,
13422         stvxl.
13423         (altivec_expand_builtin): Same.
13424         (altivec_expand_stv_builtin): New.
13426         * config/rs6000/rs6000.h (rs6000_builtins): Same.
13428         * config/rs6000/rs6000.md ("altivec_lvebx"): New.
13429         ("altivec_lvehx"): New.
13430         ("altivec_lvewx"): New.
13431         ("altivec_lvxl"): New.
13432         ("altivec_lvx"): New.
13433         ("altivec_stvx"): New.
13434         ("altivec_stvebx"): New.
13435         ("altivec_stvehx"): New.
13436         ("altivec_stvewx"): New.
13437         ("altivec_stvxl"): New.
13439 2002-01-10  Richard Henderson  <rth@redhat.com>
13441         * cfgrtl.c (delete_insn): Assert insn hasn't been deleted yet.
13442         * reload1.c (delete_output_reload): Zap spill_reg_store.  Take
13443         care not to delete instructions twice.
13445 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
13447         * toplev.c: Don't declare environ (it's not used anywhere).
13448         * configure.in: Don't check for declaration of environ.
13449         * config/i386/xm-mingw32.h: Don't #define environ.
13450         * config.in, configure: Regenerate.
13452 2002-01-10  Zack Weinberg  <zack@codesourcery.com>
13454         * configure.in: Set stage1_cflags for powerpc-*-darwin*.
13455         * configure: Regenerate.
13457         * config/interix.h: Set DO_GLOBAL_CTORS_BODY and
13458         DO_GLOBAL_DTORS_BODY here, not in xm-interix.h.
13459         * config/alpha/vms.h: Set INCLUDE_DEFAULTS here, not in
13460         alpha/xm-vms.h.
13461         * config/m68k/t-next: Set OTHER_FIXINCLUDES_DIRS and
13462         LIMITS_H_TEST here, not in m68k/x-next.
13463         * config/rs6000/beos.h: Set STANDARD_INCLUDE_DIR and
13464         SYSTEM_INCLUDE_DIR here, not in rs6000/xm-beos.h.
13466         * config/x-interix: Don't set RANLIB, RANLIB_TEST, SHELL,
13467         LIBGCC2_INCLUDES, or SYSTEM_HEADER_DIR.
13468         * config/alpha/x-vms: Don't set USE_COLLECT2.  Add comments.
13470         * config/i386/x-djgpp: Renamed i386/t-djgpp.
13471         * config/m88k/x-dolph: Renamed m88k/t-dolph.
13472         * config/m88k/x-texXD88: Renamed m88k/t-texXD88.
13473         * config/pa/x-pa-mpeix: Renamed pa/t-mpeix.  Update for
13474         replacement of quadlib.asm with quadlib.c.
13476         * config/x-interix3, config/xm-interix.h, config/i386/x-beos,
13477         config/i386/xm-osf1elf.h, config/rs6000/x-darwin,
13478         config/rs6000/xm-beos.h: Delete file.
13480         * config.gcc: Update to match above changes.
13482 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13484         * config/h8300/h8300.h: Fix comment typos.
13485         * config/h8300/h8300.md: Likewise.
13486         * config/h8300/lib1funcs.asm: Likewise.
13488 2002-01-10  Dale Johannesen  <dalej@apple.com>
13490         PR optimization/5269
13491         * unroll.c (precondition_loop_p): Make *increment be the correct
13492         sign when n_iterations known, to avoid confusing caller.
13494 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13496         * doc/extend.texi (deprecated): Fix a typo.
13498 Thu Jan 10 22:35:54 CET 2002  Jan Hubicka  <jh@suse.cz>
13500         * basic-block.h (update_br_prob_note): Declare.
13501         * cfgcleanup.c (try_simplify_condjump): Call update_br_prob_note.
13502         (try_forward_edges): Care negative frequencies and update note.
13503         (outgoing_edges_match): Tweek conditional merging heuristics.
13504         (try_crossjump_to_edge): use update_br_prob_note.
13505         * cfglayout.c (fixup_reorder_chain): Likewise.
13506         * cfrtl.c (update_br_prob_note): New.
13507         * ifcvt.c (dead_or_predicable): Call update_br_prob_note.
13509         * i386.c (ix86_decompose_address): Return -1 if address contains
13510         shift.
13511         (legitimate_address_p): Require ix86_decompose_address to return 1.
13513         * gcse.c (hash_scan_set): Use CONSTANT_INSN_P.
13514         (cprop_insn): Likewise.
13516 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13518         * toplev.c: Fix formatting.
13519         * tree.c: Likewise.
13520         * tree-dump.c: Likewise.
13521         * unroll.c: Likewise.
13522         * unwind-dw2.c: Likewise.
13523         * unwind-dw2-fde.c: Likewise.
13524         * unwind-dw2-fde-glibc.c: Likewise.
13525         * unwind-sjlj.c: Likewise.
13527 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
13529         * doc/invoke.texi: Document PDP-11 options.
13531 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13533         * config/h8300/h8300.h: Fix formatting.
13535 2002-01-10  Ira Ruben   <ira@apple.com>
13537         Add __attribute__ ((deprecated)).
13538         * extend.texi: Document __attribute__ ((deprecated)).
13539         * invoke.texi: Document -Wno-deprecated-declarations.
13540         * testsuite/g++.dg/other/deprecated.C: New C++ test.
13541         * testsuite/gcc.dg/deprecated.c: New C test.
13542         * attribs.c (enum attrs): Declare handle_deprecated_attribute().
13543         (c_common_attribute_table): Add "deprecated" entry.
13544         (handle_deprecated_attribute): New function.
13545         * c-decl.c (deprecated_states): New enum.
13546         deprecated_state: State of "deprecated" handling.
13547         (start_decl): Set deprecated_state based on attributes.
13548         (grokdeclarator): Test for deprecated uses, propagate attribute.
13549         * c-typeck.c (build_component_ref): Test for deprecated fields.
13550         (build_external_ref): Test for deprecated primaries.
13551         * diagnostic.c (warn_deprecated_use) New function to issue
13552         warnings about __attribute__ ((depricated)) references.
13553         * flags.h (warn_deprecated_decl): Extern declared for
13554         -W[no-]deprecated-declarations option.
13555         * print-tree.c (print_node): Show deprecated flag status.
13556         * toplev.c (warn_deprecated_decl): Defined.
13557         (W_options): Added "deprecated-declaration".
13558         * toplev.h (warn_deprecated_use): Extern declared.
13559         * tree.h (struct tree_common): Define deprecated_flag.
13560         (TREE_DEPRECATED): New macro to access flag.
13561         * cp/call.c (build_call): Test for deprecated calls.
13562         * cp/class.c (add_implicitly_declared_members): Set global
13563         flag to tell grokdeclarator to not issue deprecated warnings.
13564         * cp/cp-tree.h: Add extern for adding_implicit_members.
13565         * cp/decl.c (deprecated_states): New enum.
13566         (start_decl): Set deprecated_state based on attributes.
13567         (grokdeclarator): Test for deprecated uses, propagate attribute.
13568         * cp/lex.c (do_identifier): Test for deprecated primaries.
13569         * cp/typeck.c (build_component_ref): Test for deprecated fields.
13571 2002-01-10  Ira Ruben   <ira@apple.com>
13573         Fix to assign attributes to inline member functions.
13574         * cp/decl.c (start_method): Handle attrlist.
13576 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13578         * combine.c (expand_field_assignment): Use subreg_lsb().
13580 2002-01-10  David Edelsohn  <edelsohn@gnu.org>
13582         * alias.c (find_base_value): Add cases for HIGH, PRE_INC, PRE_DEC,
13583         POST_INC, POST_DEC, PRE_MODIFY, and POST_MODIFY.
13584         (find_base_term): Add cases for TRUNCATE, PRE_MODIFY, and POST_MODIFY.
13585         Recurse for any operand of AND as long as constant is non-zero.
13587 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13589         * config/h8300/h8300.md: Remove constraints from expanders.
13591 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13593         * varasm.c: Fix formatting.
13594         * varray.c: Likewise.
13595         * vmsdbgout.c: Likewise.
13596         * xcoffout.c: Likewise.
13598 Thu Jan 10 17:19:12 CET 2002  Jan Hubicka  <jh@suse.cz>
13600         * cfgcleanup.c (try_forward_edges): Properly initialize nthreaded_edges;
13601         update edge probabilities to match.
13603 2002-01-10  Joseph S. Myers  <jsm28@cam.ac.uk>
13605         * Makefile.in ($(docdir)/gccint.info, gccint.dvi): Add additional
13606         dependencies.
13607         * doc/languages.texi, doc/sourcebuild.texi: New files.
13608         * doc/configfiles.texi: Make a subsubsection.  Update.
13609         * doc/configterms.texi: Add @node.  Remove warning that this isn't
13610         instructions for building GCC.
13611         * doc/makefile.texi: Make a subsection.
13612         * doc/gccint.texi: Update.
13614 Thu Jan 10 16:39:58 CET 2002  Jan Hubicka  <jh@suse.cz>
13616         * i386.md (sse_mov?fcc_const0_?): Fix constraints.
13618 Thu Jan 10 12:45:50 2002  Nicola Pero  <n.pero@mi.flashnet.it>
13620         * doc/cpp.texi: Document the __OBJC__ preprocessor macro.
13622 Thu Jan 10 11:19:18 CET 2002  Jan Hubicka  <jh@suse.cz>
13624         * optabs.c (expand_fix): Look for wider integer modes first.
13626         * i386.md (mov?f): Avoid the fake const double trick for medium
13627         memory model.
13628         (min?f*/max?f*): Prohibit memory operands for i387 variant.
13629         (fop_df_4): Disable for SSE compilation.
13631 2002-01-10  Graham Stott  <grahams@redhat.com>
13633         * dwarf2out.c (indirect_string_alloc, output_indirect_string):
13634         Move prototype into DWARF2_DEBUGGING_INFO conditional block.
13636 2002-01-10  Richard Henderson  <rth@redhat.com>
13638         * config/alpha/alpha.md (extendsidi2_fix): Penalize f/f alternative.
13640 2002-01-10  Richard Henderson  <rth@redhat.com>
13642         * regrename.c (find_oldest_value_reg): Fix typo in mode change check.
13643         (copyprop_hardreg_forward_1): Likewise.  Use mode_change_ok.
13645 2002-01-10  Kazu Hirata  <kazu@hxi.com>
13647         * combine.c (can_combine_p): Fix a comment typo.
13649 2002-01-09  Zack Weinberg  <zack@codesourcery.com>
13651         * Makefile.in (s-gencheck, s-options, s-specs): Handle an
13652         empty list correctly.  Change loop index $t to $f for
13653         consistency with rest of Makefile.
13655 2002-01-08  Aldy Hernandez  <aldyh@redhat.com>
13657         * testuite/gcc.dg/altivec-4.c: Add test for mtvscr, dssall,
13658         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13660         * config/rs6000/rs6000.c (altivec_expand_builtin): Add support for
13661         mtvscr, dssall, mfvscr, dss, lvsl, lvsr, dstt, dst, dstst, dststt.
13662         (altivec_init_builtins): Same.
13663         (altivec_expand_unop_builtin): Return NULL_RTX on error.
13664         (altivec_expand_binop_builtin): Same.
13665         (altivec_expand_ternop_builtin): Same.
13666         (bdesc_dst): New.
13668         * config/rs6000/rs6000.md ("altivec_mtvscr"): New.
13669         ("altivec_vctuxs"): Fix typo.
13670         ("altivec_vnmsubfp"): Same.
13671         ("altivec_dssall"): New.
13672         ("altivec_mfvscr"): New.
13673         ("altivec_dss"): New.
13674         ("altivec_lvsl"): New.
13675         ("altivec_lvsr"): New.
13676         ("altivec_dstt"): New.
13677         ("altivec_dstst"): New.
13678         ("altivec_dststt"): New.
13679         ("altivec_dst"): New.
13681         * config/rs6000/rs6000.h (rs6000_builtins): Add mtvscr, dssall,
13682         mfvscr, dss, lvsl, lvsr, dstt, dstst, dststt, dst.
13684 2002-01-09  Richard Henderson  <rth@redhat.com>
13686         * config/alpha/alpha.md (prologue_mcount): Remove lituse_jsr reloc.
13688 2002-01-10  Hans-Peter Nilsson  <hp@bitrange.com>
13690         * config/mmix/mmix.c (mmix_asm_identify_gcc): Remove unused
13691         function.
13692         * config/mmix/mmix-protos.h (mmix_asm_identify_gcc): Don't
13693         prototype.
13694         * config/mmix/mmix.h (ASM_IDENTIFY_GCC): Remove unused macro.
13696 2002-01-09  Kazu Hirata  <kazu@hxi.com>
13698         * read-rtl.c: Fix formatting.
13699         * real.c: Likewise.
13700         * regclass.c: Likewise.
13701         * regrename.c: Likewise.
13702         * reg-stack.c: Likewise.
13703         * reload1.c: Likewise.
13704         * reload.c: Likewise.
13705         * rtl.c: Likewise.
13707 2002-01-09  Kazu Hirata  <kazu@hxi.com>
13709         * rtlanal.c (find_reg_fusage): Use XEXP instead of SET_DEST
13710         to extract items in the expr_list chain.
13712 2002-01-09  Richard Henderson  <rth@redhat.com>
13714         * config/vax/vax.c (vax_rtx_cost): Never abort.
13716         * config/vax/vax.h (REAL_ARITHMETIC): Define.
13718 2002-01-09  Jan Hubicka  <jh@suse.cz>
13720         * gcse.c (cprop_jump): Delete insn if simplified jump is no-op.
13722 2002-01-09  Richard Henderson  <rth@redhat.com>
13724         * config/arm/arm.c (arm_gen_constant): Use trunc_int_for_mode.
13725         Unify code from various alternatives.
13727 2002-01-09  Richard Henderson  <rth@redhat.com>
13729         * regrename.c (copy_value): Ignore the copy if the source register
13730         is present in the value chain with a narrower mode.
13732 2002-01-09  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
13734         * real.c (c4xtoe, toc4x): Do some special conversion on long doubles
13735         for the c4x target. Also improve layout.
13737 2002-01-09  Richard Henderson  <rth@redhat.com>
13739         * config/m32r/m32r.c (move_src_operand): Fix 32-bit int test.
13740         * config/m32r/m32r.md (and ior xor splitters): Swap operands
13741         to match insn patterns.
13743 2002-01-09  Richard Henderson  <rth@redhat.com>
13745         * regrename.c (find_oldest_value_reg): Use gen_rtx_raw_REG.
13746         (copyprop_hardreg_forward_1): Likewise.
13748 2002-01-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13750         * pa.md (decrement_and_branch_until_zero): Change predicate for
13751         operand 0 from register_operand to reg_or_nonsymb_mem_operand.
13753 2002-01-09  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
13755         * ginclude/stddef.h: Define _BSD_WCHAR_T_DEFINED_ if _BSD_WCHAR_T_
13756         gets undefined. For Darwin.
13758 2002-01-09  Herman A.J. ten Brugge <Haj.Ten.Brugge@net.HCC.nl>
13760         * config/c4x/c4x.h: Use PUSH_ARGS and PUSH_ROUNDING for stack passing.
13762 2002-01-09  Michael Hayes  <m.hayes@elec.canterbury.ac.nz>
13764         * config/c4x/c4x/md: Remove extraneous constraints from define_splits.
13766 2002-01-08  Richard Henderson  <rth@redhat.com>
13768         * regrename.c (copy_value): Ignore overlapping copies.
13770 2002-01-08  Richard Henderson  <rth@redhat.com>
13772         * config/alpha/alpha.c (alpha_split_conditional_move): Call copy_rtx
13773         as needed to avoid shared structure.
13775 2002-01-08  Kazu Hirata  <kazu@hxi.com>
13777         * config/h8300/h8300.c (get_shift_alg): Fix 15-bit LSHIFTRT on
13778         H8/300H and H8/S.
13780 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13782         * doc/tm.texi (EASY_DIV_EXPR, IMPLICIT_FIX_EXPR,
13783         LONGJMP_RESTORE_FROM_STACK, MAX_INT_TYPE_SIZE): Remove
13784         documentation of obsolete macros.
13785         * system.h: Poison these macros.
13786         * config/1750a/1750a.h, config/a29k/a29k.h, config/alpha/alpha.h,
13787         config/arc/arc.h, config/arm/arm.h, config/avr/avr.h,
13788         config/c4x/c4x.h, config/clipper/clipper.h,
13789         config/convex/convex.h, config/cris/cris.h, config/d30v/d30v.h,
13790         config/dsp16xx/dsp16xx.h, config/elxsi/elxsi.h,
13791         config/fr30/fr30.h, config/h8300/h8300.h, config/i370/i370.h,
13792         config/i386/i386.h, config/i860/i860.h, config/i960/i960.h,
13793         config/ia64/ia64.h, config/m32r/m32r.h, config/m68hc11/m68hc11.h,
13794         config/m68k/m68k.h, config/m88k/m88k.h, config/mcore/mcore.h,
13795         config/mips/mips.h, config/mmix/mmix.h, config/mn10200/mn10200.h,
13796         config/mn10300/mn10300.h, config/ns32k/ns32k.h, config/pa/pa.h,
13797         config/pdp11/pdp11.h, config/pj/pj.h, config/romp/romp.h,
13798         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.h,
13799         config/sparc/sparc.h, config/stormy16/stormy16.h,
13800         config/v850/v850.h, config/vax/vax.h, config/we32k/we32k.h: Remove
13801         definitions and commented out definitions of obsolete macros.
13802         * config/mips/iris5.h (MAX_WCHAR_TYPE_SIZE): Don't define in terms
13803         of MAX_INT_TYPE_SIZE.
13805 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
13807         * config/s390/s390.c (s390_preferred_reload_class): Never
13808         return ADDR_REGS if it isn't a subset of the given class.
13809         * config/s390/s390.h (REGISTER_MOVE_COST): Penalize not just
13810         FP_REGS, but all superclasses as well.
13812         * config/s390/s390.c (s390_function_profiler): Fix thinko.
13814         * config/s390/s390.md (cmpdi_ccu_mem, cmpsi_ccu_mem,
13815         cmphi_ccu_mem, cmpqi_ccu_mem): First operand of compare
13816         must not be a const_int.
13818 2002-01-08  Richard Henderson  <rth@redhat.com>
13820         * Makefile.in (toplev.o): Depend on options.h.
13821         (gcc.o): Depend on specs.h.
13823 2002-01-08  Jakub Jelinek  <jakub@redhat.com>
13825         * expr.c (store_expr): Convert VOIDmode constants back to target's
13826         mode.
13828 2002-01-08  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13830         * doc/invoke.texi: Markup gcc as @command.  Refer to
13831         http://gcc.gnu.org/onlinedocs/gcc/Contributors.html instead
13832         of http://gcc.gnu.org/thanks.html.
13834 2002-01-08  Dale Johannesen  <dalej@apple.com>
13836         * config/rs6000/rs6000.md: Add missing int register
13837         target case to movdf_low.
13839 2002-01-08  Zack Weinberg  <zack@codesourcery.com>
13841         * Makefile.in (cs-tconfig.h): Don't depend on $(CONFIG_H) or
13842         except.h.  Remove commands to define USING_SJLJ_EXCEPTIONS.
13843         (cppinit.o): Depend on except.h.
13844         (gencheck.h, options.h, specs.h, s-gencheck, s-options,
13845         s-specs): New rules.
13847         * configure.in: Don't AC_DEFINE_UNQUOTED PACKAGE or VERSION.
13848         Don't create specs.h/options.h/gencheck.h here.  Remove
13849         unnecessary variable settings from last argument of AC_OUTPUT.
13850         * config.in, configure: Regenerate.
13851         * intl.c: Hardcode package name as "gcc".
13853         * cppinit.c: Include except.h.
13854         (builtin_array): Define __USING_SJLJ_EXCEPTIONS__ when
13855         appropriate.
13856         * unwind-dw2.c, unwind-sjlj.c, config/ia64/unwind-ia64.c:
13857         Use #if(n)def __USING_SJLJ_EXCEPTIONS, not #if
13858         (!)USING_SJLJ_EXCEPTIONS.
13859         * doc/cpp.texi: Document __USING_SJLJ_EXCEPTIONS__.
13861 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13863         * doc/tm.texi (ASM_OUTPUT_EH_REGION_BEG, ASM_OUTPUT_EH_REGION_END,
13864         ASM_OUTPUT_LABELREF_AS_INT, DOESNT_NEED_UNWINDER, EH_TABLE_LOOKUP,
13865         OBJC_SELECTORS_WITHOUT_LABELS, OMIT_EH_TABLE): Remove
13866         documentation of obsolete macros.
13867         * system.h: Poison these macros.
13868         * config/d30v/d30v.h, config/ns32k/encore.h,
13869         config/stormy16/stormy16.h: Remove definitions and commented out
13870         definitions of obsolete macros.
13872 Tue Jan  8 15:56:41 2002  Nicola Pero  <nicola@brainstorm.co.uk>
13874         * objc/objc-act.c (handle_class_ref): Mark the declaration of
13875         %sobjc_class_ref_%s as used - to prevent unwanted compiler
13876         warnings.
13878 2002-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
13880         * config/s390/linux.h (ASM_OUTPUT_LABELREF): Remove.
13881         * config/s390/s390.c (s390_emit_epilog): Add REG_FRAME_RELATED_EXPR
13882         to insn adjusting stack/frame pointer.
13883         * config/s390/s390.md (reload_la_64, reload_la_31): Do not
13884         accept operands that cause the insn to be non-splittable.
13886 2002-01-08  Graham Stott  <grahams@redhat.com>
13888         * c-tree.h (C_TYPE_FIELDS_READONLY): Uppercase macro parameter.
13889         (C_TYPE_FIELDS_VOLATILE): Likewise.
13890         (C_TYPE_BEING_DEFINED): Likewise.
13891         (C_IS_RESERVED_WORD): Likewise.
13892         (C_TYPE_VARIABLE_SIZE): Likewise.
13893         (C_DECL_VARIABLE_SIZE): Likewise.
13894         (C_MISSING_PROTOTYPE_WARNED): Likewise.
13895         (C_SET_EXP_ORIGINAL_CODE): Likewise.
13896         (C_TYPEDEF_EXPLICITLY_SIGNED): Uppercase macro parameter and remove
13897         parenthesis.
13898         (C_DECL_ANTICIPATED): Likewise.
13899         (c_build_type_variant): Add parenthesis.
13901 2002-01-08  Joseph S. Myers  <jsm28@cam.ac.uk>
13903         * gcc.c (option_map): Remove --version.
13904         (process_command): Handle -fversion following the GNU Coding
13905         Standards.  Partially addresses PR other/704.
13907 2002-01-08  Graham Stott  <grahams@redhat.com>
13909         * combine.c (combine_instructions): Fix typo.
13911 2002-01-08  Graham Stott  <grahams@redhat.com>
13913         * debug.h: Use "tree" and "rtx" throughout.
13915         * debug.c: Likewise.
13917 2002-01-08  Nick Clifton  <nickc@cambridge.redhat.com>
13919         * dbxout.c (dbxout_symbol_location): If a symbol ref is in the
13920         constant pool, use the pool's version of the symbol instead.
13922 2002-01-07  Richard Henderson  <rth@redhat.com>
13924         * regrename.c (find_oldest_value_reg): Ignore the value chain if
13925         the original register was copied in a mode with a fewer number of
13926         hard registers than the desired mode.
13927         (copyprop_hardreg_forward_1): Likewise.
13928         (debug_value_data): Fix loop test.
13929         * toplev.c (parse_options_and_default_flags): Reenable
13930         -fcprop-registers at -O1.
13932 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
13934         * config/rs6000/rs6000.c (bdesc_2arg): Add altivec predicates.
13935         (altivec_init_builtins): New node v4si_ftype_v16qi_v16qi.
13937         * config/rs6000/rs6000.h (rs6000_builtins): Add enums for altivec
13938         predicates.
13940         * config/rs6000/rs6000.md: Add altivec predicate patterns.
13942 2002-01-07  John David Anglin  <dave@hiauly1.hia.nrc.ca>
13944         * pa.c (FUNC_BEGIN_PROLOG_LABEL, current_function_number): Define.
13945         (pa_output_function_prologue): Output local label at the beginning of
13946         the prologue when profiling.
13947         (hppa_profile_hook): Use the local label rather than the function label.
13948         * pa.h (PROFILE_BEFORE_PROLOGUE): Define.
13950 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
13952         * config/rs6000/rs6000.c (print_operand): Remove extra space.
13953         (altivec_expand_unop_builtin): Fix thinko.
13954         (altivec_expand_binop_builtin): Same.
13955         (altivec_expand_ternop_builtin): Same.
13956         (altivec_expand_builtin): Same.
13958 2002-01-07  Richard Henderson  <rth@redhat.com>
13960         * config/rs6000/xcoff.h (ASM_FILE_START): Reverted to profile_flag.
13962 2002-01-07  Jason Merrill  <jason@redhat.com>
13964         * unwind-dw2.c (execute_cfa_program): Use < again.
13966 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
13968         * predict.c (combine_predictions_for_insn): Avoid division by zero.
13970 2002-01-07  Jakub Jelinek  <jakub@redhat.com>
13972         * simplify-rtx.c (simplify_plus_minus): Bump n_ops for NOT.
13973         Don't allow -1 - x -> ~x simplifications in the first pass.
13975 2002-01-07  Aldy Hernandez  <aldyh@redhat.com>
13977         * rs6000.c (altivec_expand_ternop_builtin): Don't die on invalid
13978         arguments.
13979         (altivec_expand_binop_builtin): Same.
13980         (altivec_expand_unop_builtin): Same.
13981         (print_operand): Fix typo.
13982         (bdesc_1arg): Add vupk* variants.
13984         * rs6000.h (rs6000_builtins): Add vupk* enums.
13986         * rs6000.md: Add altivec_vupk* variants.
13988 2002-01-07  Joseph S. Myers  <jsm28@cam.ac.uk>
13990         * doc/gcc.texi, doc/gccint.texi, doc/cppinternals.texi,
13991         doc/install.texi, doc/invoke.texi, doc/rtl.texi: Update copyright
13992         and last update dates.
13994 2002-01-07  Janis Johnson  <janis187@us.ibm.com>
13996         * doc/rtl.texi (Flags): Clean up documentation of RTL flags
13998 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
14000         * config/avr/avr.c (avr_mcu_types): Add new MCU types.
14001         * config/avr/avr.h (CPP_SPEC): Likewise.
14002         (LINK_SPEC): Likewise.
14003         (CRT_BINUTILS_SPECS): Likewise.
14004         * config/avr/t-avr (MULTILIB_MATCHES): Likewise.
14005         * doc/invoke.texi (AVR Options): Document them.
14007 Mon Jan  7 11:59:34 CET 2002  Jan Hubicka  <jh@suse.cz>
14009         * unroll.c (copy_loop_body): Always properly update JUMP_LABEL and
14010         LABEL_NUSES.
14012 2002-01-07  Graham Stott  <grahams@redhat.com>
14014         * config/i386/i386.h: Update copyright date.
14015         (HALF_PIC_PTR): Add parenthesis.
14016         (OPTIMIZATION_OPTIONS): Whitespace, add parenthesis and wrap.
14017         (CONSTANT_ALIGNMENT): Add parenthesis.
14018         (DATA_ALIGNMENT): Likewise.
14019         (LOCAL_ALIGNMENT): Likewise.
14020         (FUNCTION_ARG_BOUNDARY): Whitespace, add parenthesis and wrap.
14021         (IS_STACK_MODE): Uppercase macro parameter, add parenthesis and wrap.
14022         (CONDITIONAL_REGISTER_USAGE): Wrap in do {...} while (0).
14023         (HARD_REGNO_NREGS): Add paranethesis.
14024         (VALID_SSE_REG_MODE): Whitespace.
14025         (VALID_MMX_REG_MODE): Whitespace.
14026         (VALID_FP_MODE_P): Uppercase macros parameter and whitespace.
14027         (ix86_hard_regno_mode_ok): Add parenthesis.
14028         (HARD_REGNO_CALLER_SAVE_MODE): Whitespace.
14029         (RETURN_IN_MEMORY): Whitespace.
14030         (N_REG_CLASSES): Add parenthesis.
14031         (INTEGER_CLASS_P): Add parenthesis and wrap.
14032         (FLOAT_CLASS_P): Likewise.
14033         (SSE_CLASS_P): Likewise.
14034         (MMX_CLASS_P): Likewise.
14035         (MAYBE_INTEGER_CLASS_P): Likewise.
14036         (MAYBE_FLOAT_CLASS_P): Likewise.
14037         (MAYBE_SSE_CLASS_P): Likewise.
14038         (MAYBE_MMX_CLASS_P): Likewise.
14039         (Q_CLASS_P): Likewise.
14040         (GENERAL_REGNO_P): Uppercase macro parameter.
14041         (REX_INT_REGNO_P): Uppercase macro parameter and wrap.
14042         (FP_REGNO_P): Likewise.
14043         (ANY_FP_REGNO_P): Uppercase macro parameter.
14044         (SSE_REGNO_P): Likewise.
14045         (SSE_REGNO): Likewise.
14046         (SSE_REG_P): Likewise.
14047         (SSE_FLOAT_MODE_P): Likewise.
14048         (MMX_REGNO_P): Likewise.
14049         (MMX_REG_P):Likewise.
14050         (STACK_REG_P): Likewise.
14051         (NON_STACK_REG_P): Likewise.
14052         (STACK_TOP_P): Likewise.
14053         (CONVERT_HARD_REGISTER_TO_SSA_P): Add parenthesis.
14054         (PREFERRED_RELOAD_CLASS): Add parenthesis and whitespace.
14055         (SECONDARY_MEMORY_NEEDED): Likewise.
14056         (SECONDARY_OUTPUT_RELOAD_CLASS): Whitespace.
14057         (MD_ASM_CLOBBERS): Whitespace and wrap.
14058         (MUST_PASS_IN_STACK): Whitespace and wrap.
14059         (RETURN_POPS_ARGS): Add parenthesis.
14060         (INIT_CUMULATIVE_ARGS): Likewise.
14061         (FUNCTION_ARG): Likewise.
14062         (FUNCTION_OK_FOR_SIBCALL): Add parenthesis and whitespace.
14063         (SETUP_INCOMING_VARARGS): Likewise.
14064         (BUILD_VA_LIST_TYPE):  Add parenthesis.
14065         (EXPAND_BUILTIN_VA_START): Uppercase macro paremeters and add
14066         parenthsis.
14067         (EXPAND_BUILTIN_VA_ARG): Likewise.
14068         (FUNCTION_PROFILER): Wrap in do { ... } while (0) and add parenthesis.
14069         (INITIALIZE_TRAMPOLINE): Add parenthesis.
14070         (INITIAL_ELIMINATION_OFFSET): Likewise.
14071         (REGNO_OK_FOR_INDEX_P): Add parenthesis.
14072         (REGNO_OK_FOR_BASE_P): Likewise.
14073         (REGNO_OK_FOR_SIREG_P): Add parenthesis and wrap.
14074         (REGNO_OK_FOR_DIREG_P): Likewise.
14075         (REG_OK_FOR_INDEX_P): Whitespace.
14076         (REG_OK_FOR_BASE_P): Whitespace.
14077         (GO_IF_LEGITIMATE_ADDRESS): Wrap in do { ... } while (0) and add
14078         parenthesis.
14079         (FIND_BASE_TERM): Fix typo.
14080         (LEGITIMIZE_ADDRESS): Wrap in  { .. } while (0) and add parenthesis.
14081         (REWRITE_ADDRESS): Uppercase macro parameter and whitespace.
14082         (SYMBOLIC_CONST; Whitespace.
14083         (GO_IF_MODE_DEPENDENT_ADDRESS):Wrap in  { .. } while (0) and wrap.
14084         (ENCODE_SECTION_INFO): Whitespace.
14085         (FINALIZE_PIC): Remove do { ... } while (0).
14086         (PROMOTE_MODE): Wrap in do { ... } while (0).
14087         (CONST_COSTS): Whitespace.
14088         (RTX_COSTS): Add paramethesis, whitespace and wrap.
14089         (REGISTER_MOVE_COST): Add parenthesis.
14090         (MEMORY_MOVE_COST): Likewise.
14091         (EXTRA_CC_MODES): Whitespace.
14092         (SELECT_CC_MODE): Add parenthesis and whitespace.
14093         (DBX_REGISTER_NUMBER): Uppercase macro parameter and add parenthsis.
14094         (ASM_PREFERRED_EH_DATA_FORMAT): Add parenthesis and whitespace.
14095         (ASM_OUTPUT_LABEL): Add paramethesis.
14096         (ASM_OUTPUT_REG_PUSH): Add parenthesis and whitespace.
14097         (ASM_OUTPUT_REG_POP): Likewise.
14098         (ASM_OUTPUT_ADDR_VEC_ELT): Add parenthesis.
14099         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
14101         * config/i386/i386.c: Update copyright.
14102         (CHECK_STACK_LIMIT): Add parenthesis.
14103         (AT_BP): Uppercase macro parameter.
14104         (x86_64_int_parameter_registers): Constify.
14105         (x86_64_int_return_registers): Likewise.
14106         (ix86_compare_op0): Use rtx.
14107         (construct_container): Constify INTREG parameter.
14108         (function_arg): Use rtx.
14110         * diagnostic.h: Update copyright date.
14111         (output_buffer_state): Add parenthesis.
14112         (output_buffer_format_args): Likewise.
14114         * combine.c (combine_instructions): Replace XEXP (links, 0)
14115         with link.
14117 2002-01-06  H.J. Lu <hjl@gnu.org>
14119         * cfgcleanup.c (thread_jump): Fix 2 typos.
14121 2002-01-06  Aldy Hernandez  <aldyh@redhat.com>
14123         * config.gcc: Add support for --enable-altivec.
14125 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14127         * emit-rtl.c (gen_highpart): Add check for NULL_RTX.
14129 2002-01-06  Jakub Jelinek  <jakub@redhat.com>
14131         * objc/objc-act.c (handle_impent): Use assemble_variable to emit
14132         __objc_class_name_*.
14134 2002-01-06  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14136         * doc/install.texi (sparcv9-*-solaris2*): Add documentation.
14138 2002-01-06  Richard Henderson  <rth@redhat.com>
14140         * reorg.c (emit_delay_sequence): Remove death notes, not merely
14141         nop them out.  Increment label reference count for REG_LABEL.
14142         (fill_slots_from_thread): Frob label reference count around
14143         delete_related_insns.
14145 2002-01-05  Richard Henderson  <rth@redhat.com>
14147         * cfgcleanup.c (try_forward_edges): Detect infinite loops while
14148         jump threading.
14150 2002-01-05  Richard Henderson  <rth@redhat.com>
14152         * c-decl.c (c_expand_body): Don't call outlining_inline_function.
14153         * integrate.c (output_inline_function): Likewise.
14154         * toplev.c (rest_of_compilation): Do it here instead.  Move call
14155         to remove_unnecessary_notes after emitting abstract instance.
14156         Force an emitted nested function to have its parent emited as well.
14157         * dwarf2out.c (loc_descriptor_from_tree): Read mode after checking
14158         for null.
14159         (rtl_for_decl_location): Do not look at reload data structures
14160         before reload has run.
14162 2002-01-05  Kazu Hirata  <kazu@hxi.com>
14164         * cse.c: Fix formatting.
14165         * dwarf2asm.c: Likewise.
14166         * dwarf2out.c: Likewise.
14167         * explow.c: Likewise.
14168         * expmed.c: Likewise.
14169         * function.c: Likewise.
14170         * gcov.c: Likewise.
14171         * gencheck.c: Likewise.
14172         * genrecog.c: Likewise.
14173         * ggc-common.c: Likewise.
14174         * ggc-page.c: Likewise.
14175         * global.c: Likewise.
14177 2002-01-05  Kazu Hirata  <kazu@hxi.com>
14179         * combine.c: Fix formatting.
14181 2002-01-05  Craig Rodrigues  <crodrigu@bbn.com>
14183         PR middle-end/1557
14184         * config/ia64/ia64.h (RENAME_EXTENDED_BLOCKS): Remove.
14186 2002-01-05  David Edelsohn  <edelsohn@gnu.org>
14188         * config/rs6000/rs6000.h (TARGET_POWERPC): For IN_LIBGCC2, define
14189         as 1 for __powerpc64__ as well.
14191         * config/rs6000/t-aix43 (T_ADAFLAGS): Define.
14193         * alias.c (find_base_value, PLUS/MINUS): If we found a base,
14194         return it.
14196 2002-01-05  Daniel Berlin  <dan@dberlin.org>
14198         * lcm.c: Revert change, due to performance regression it causes on
14199         SPEC because it's slightly more conservative (sigh, I hate
14200         edge-based LCM).
14202 Sat Jan  5 11:52:05 CET 2002  Jan Hubicka  <jh@suse.cz>
14204         * cfgcleanup.c (try_forward_edges): Allow multiple jump threading.
14206 2002-01-05  Neil Booth  <neil@daikokuya.demon.co.uk>
14208         * doc/cppinternals.texi: Update.
14210 2002-01-05  Hans-Peter Nilsson  <hp@bitrange.com>
14212         * doc/invoke.texi (Option Summary) <MMIX Options>: Document
14213         -mbranch-predict, -mreg-stack-fill-bug-workaround and their
14214         negatives.
14215         (MMIX Options): Ditto.  Fix item/itemx typo for -mno-zero-extend.
14216         * config/mmix/mmix.c (mmix_target_asm_function_prologue): Rework
14217         kludge for pre-october-14th mmix versions to handle new-found bug
14218         with PUSHJ/PUSHGO and the register stack.
14219         * config/mmix/mmix.h (struct machine_function): Rename member
14220         has_call_value_without_parameters to has_call_without_parameters.
14221         All referers changed.
14222         (TARGET_MASK_REG_STACK_FILL_BUG, TARGET_DEFAULT
14223         TARGET_MASK_BRANCH_PREDICT): New macros.
14224         (TARGET_SWITCHES): New options -mreg-stack-fill-bug-workaround,
14225         -mno-reg-stack-fill-bug-workaround.
14226         * config/mmix/mmix.md ("call"): Set struct machine member
14227         has_call_without_parameters.
14229 Sat Jan  5 02:20:22 CET 2002  Jan Hubicka  <jh@suse.cz>
14231         * cfgcleanup.c (thread_jump): Fix handling of reversed branches.
14233 Sat Jan  5 01:35:29 CET 2002  Jan Hubicka  <jh@suse.cz>
14235         * cfgcleanup.c: Include tm_p.h
14236         (mark_effect): Fix handling of hard register; fix handling of SET
14238 2002-01-04  Kazu Hirata  <kazu@hxi.com>
14240         * config/h8300/h8300.md (anonymous patterns): Check that
14241         operands are registers before using REGNO on them.
14243 2002-01-03  Roland McGrath  <roland@frob.com>
14245         * doc/invoke.texi (RS/6000 and PowerPC Options): Add -mcall-gnu.
14247 2002-01-04  Jakub Jelinek  <jakub@redhat.com>
14249         * tree.h (expand_expr_stmt_value): Add maybe_last argument.
14250         * c-common.h (genrtl_expr_stmt_value): Likewise.
14251         * stmt.c (expand_expr_stmt): Pass 1 as maybe_last.
14252         (expand_expr_stmt_value): Add maybe_last argument.
14253         Don't warn about statement with no effect if it is the last statement
14254         in expression statement.
14255         * c-semantics.c (genrtl_expr_stmt): Pass 1 as maybe_last.
14256         (genrtl_expr_stmt_value): Add maybe_last argument, pass it down to
14257         expand_expr_stmt_value.
14258         (expand_stmt) [EXPR_STMT]: Pass 1 as maybe_last to
14259         genrtl_expr_stmt_value if t is the last EXPR_STMT in its scope.
14260         * expr.c (expand_expr) [LABELED_BLOCK_EXPR, LOOP_EXPR]: Pass 1
14261         as maybe_last to expand_expr_stmt_value.
14263 Fri Jan  4 11:45:05 2002  Jeffrey A Law  (law@redhat.com)
14265         * c-common.c (c_expand_start_cond): Expect the IF_STMT node to
14266         be passed in, do not build it.
14267         (c_begin_if_stmt): New function.
14268         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14269         * c-common.h (c_expand_start_cond): Update prototype.
14270         (c_begin_if_stmt): Prototype new function.
14271         (c_begin_while_stmt, c_finish_while_stmt_cond): Likewise.
14272         * c-parse.in (if_prefix): Use c_begin_if_stmt,
14273         c_begin_while_stmt and c_finish_while_stmt_cond.
14275 2002-01-04  William Cohen  <wcohen@redhat.com>
14277         * config/pa/elf.h (ASM_FILE_START): Reverted to profile_flag.
14278         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14279         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14280         * config/pa/som.h (ASM_FILE_START): Likewise.
14282 2002-01-04  Daniel Berlin  <dan@cgsoftware.com>
14284         * lcm.c: Include df.h.
14285         Add available_transfer_function prototype.
14286         (compute_available): Rework to use iterative dataflow framework.
14287         (struct bb_info): s/bb_info/lcm_bb_info/g to avoid conflict
14288         with bb_info in df.h
14289         (available_transfer_function): New function.
14291         * Makefile.in (lcm.o): add df.h to dependencies.
14293 2002-01-04  Richard Henderson  <rth@redhat.com>
14295         * config/alpha/alpha.c (some_operand): Accept HIGH.
14296         (input_operand): Likewise; accept simple references to globals.
14297         (alpha_const_ok_for_letter_p): New, outlined from alpha.h.
14298         (alpha_const_double_ok_for_letter_p): Likewise.
14299         (alpha_extra_constraint): Likewise.
14300         (alpha_preferred_reload_class): Likewise.  Do not force
14301         symbolic constants to memory.
14302         (alpha_legitimate_address_p): Accept simple references
14303         to small_symbolic_operand.
14304         (alpha_legitimize_address): New arg scratch.  Be prepared to be
14305         called when no_new_pseudos.  Emit simple symbolic references.
14306         Split integers into low, high, and rest.
14307         (alpha_expand_mov): Use alpha_legitimize_address.
14308         (some_small_symbolic_mem_operand): New.
14309         (split_small_symbolic_mem_operand): New.
14310         * config/alpha/alpha-protos.h: Update.
14311         * config/alpha/alpha.h (CONST_OK_FOR_LETTER_P): Out-line.
14312         (CONST_DOUBLE_OK_FOR_LETTER_P): Likewise.
14313         (EXTRA_CONSTRAINT): Likewise.
14314         (PREFERRED_RELOAD_CLASS): Likewise.
14315         (LEGITIMIZE_ADDRESS): Update for alpha_legitimize_address change.
14316         (PREDICATE_CODES): Update.
14317         * config/alpha/alpha.md: New post-reload splitters to convert
14318         simplfied symbolic operands to the form that references $29.
14319         (divide expanders): Use emit_move_insn, not gen_movdi_er_high_g.
14320         (movdi_er_nofix, movdi_er_fix): Accept any symbolic operand.
14322 2002-01-03  Richard Henderson  <rth@redhat.com>
14324         * local-alloc.c (function_invariant_p): Update commentary.
14326 2002-01-04  H.J. Lu <hjl@gnu.org>
14328         * toplev.c (rest_of_compilation): Fix a typo when calling
14329         cleanup_cfg.
14331 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14333         * c-common.c: Fix formatting.
14334         * diagnostic.c: Likewise.
14335         * doloop.c: Likewise.
14336         * dwarf2out.c: Likewise.
14338 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14340         * config/h8300/h8300.c (output_logical_op): Use 'not.w' instead
14341         of 'neg.w' when xoring with 0x0000ffff or 0xffff0000.
14343 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14345         * cpperror.c: Update comments and copyright.
14346         * cppexp.c, cppfiles.c, cpphash.c, cpphash.h, cppinit.c,
14347         cpplex.c, cpplib.c, cpplib.h, cppmacro.c, cppmain.c: Similarly.
14349 2002-01-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14351         * collect2.c (main): Use strcmp when testing for "-shared".
14353 2002-01-03  Neil Booth  <neil@daikokuya.demon.co.uk>
14355         * cppmacro.c: Don't include intl.h.  Update comments.
14356         (new_number_token): Allocate enough buffer for 64-bit unsigned
14357         integers; update prototype.
14358         * cppmain.c: Update comments.
14360 2002-01-03  William Cohen  <wcohen@redhat.com>
14362         * function.h (struct function): Add profile.
14363         (current_function_profile): New.
14364         doc/extend.texi: Update documentation.
14365         * final.c (final_start_function): Use current_function_profile
14366         instead of profile_flag.
14367         (profile_after_prologue): Likewise.
14368         * function.c (expand_function_start): Likewise.
14369         (expand_function_start): Likewise.
14370         * config/alpha/alpha.c (direct_call_operand):
14371         (alpha_does_function_need_gp): Likewise.
14372         (alpha_expand_prologue): Likewise.
14373         * config/arm/arm.c (arm_expand_prologue): Likewise.
14374         thumb_expand_prologue: Likewise.
14375         * config/d30v/d30v.c (d30v_stack_info): Likewise.
14376         * config/fr30/fr30.c (MUST_SAVE_RETURN_POINTER): Likewise.
14377         (fr30_expand_prologue): Likewise.
14378         * config/i386/cygwin.h (SUBTARGET_PROLOGUE): Likewise.
14379         * config/i386/i386.c (ix86_osf_output_function_prologue): Likewise.
14380         * config/i386/i386.h (FINALIZE_PIC): Likewise.
14381         * config/i386/win32.h (SUBTARGET_PROLOGUE): Likewise.
14382         * config/i960/i960.c (i960_output_function_prologue): Likewise.
14383         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
14384         * config/m32r/m32r.c (MUST_SAVE_RETURN_ADDR): Likewise.
14385         (m32r_expand_prologue): Likewise.
14386         * config/m88k/m88k.c (m88k_layout_frame): Likewise.
14387         (m88k_expand_prologue): Likewise.
14388         * config/m88k/m88k.h (ADJUST_INSN_LENGTH): Likewise.
14389         * config/mips/mips.c (compute_frame_size): Likewise.
14390         (mips_expand_prologue): Likewise.
14391         (mips_can_use_return_insn): Likewise.
14392         * config/pa/elf.h (ASM_FILE_START): Likewise.
14393         * config/pa/pa-linux.h (ASM_FILE_START): Likewise.
14394         * config/pa/pa64-hpux.h (ASM_FILE_START): Likewise.
14395         * config/pa/som.h (ASM_FILE_START): Likewise.
14396         * config/romp/romp.c (romp_using_r14): Likewise.
14397         * config/rs6000/rs6000.c (first_reg_to_save): Likewise.
14398         (rs6000_stack_info): Likewise.
14399         * config/rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
14400         * config/rs6000/xcoff.h (ASM_FILE_START): Likewise.
14401         * config/v850/v850.c (compute_register_save_size): Likewise.
14403 2002-01-03  Jakub Jelinek  <jakub@redhat.com>
14405         * simplify-rtx.c (simplify_binary_operation) [DIV]: If
14406         gen_lowpart_common fails, use gen_lowpart_SUBREG.
14408 2002-01-03  Turly O'Connor  <turly@apple.com>
14410         * darwin.c (machopic_output_possible_stub_label): Don't generate
14411         stub routines for pseudo-stubs which we've just defined.
14413 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14415         * builtins.c: Fix formatting.
14416         * c-typeck.c: Likewise.
14417         * combine.c: Likewise.
14418         * expr.c: Likewise.
14419         * loop.c: Likewise.
14421 2002-01-03  Andreas Schwab  <schwab@suse.de>
14423         * cppfiles.c (_cpp_pop_file_buffer): Change return type to bool
14424         and return true if _cpp_push_next_buffer pushed a new include
14425         file.
14426         * cpplib.c (_cpp_pop_buffer): Only call obstack_free if
14427         _cpp_pop_file_buffer did not push a new file.
14428         * cpphash.h (_cpp_pop_file_buffer): Update declaration.
14430 2002-01-02  Eric Christopher  <echristo@redhat.com>
14432         * final.c (final_scan_insn): Change 0 -> NULL_RTX in
14433         FIND_REG_INC_NOTE call. Update copyright.
14434         * loop.c (canonicalize_condition): Ditto.
14435         * reorg.c (delete_scheduled_jump): Ditto.
14437 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14439         * gcse.c: Fix formatting.
14441 2002-01-03  Graham Stott  <grahams@redhat.com>
14443         * mkconfig.sh: Output to config.h, hconfig.h and tconfig.h
14444         forward defs for struct tags rtx_def, union_tree, rtvec_def
14445         also output corresponding typedefs for rtx, tree, and rtvec.
14447         * system.h: Move forward defs for struct tags rtx_def, union_tree,
14448         rtvec_def along with corresponding typedefs for rtx, tree, and
14449         rtvec to config.h, hconfig.h, tconfig.h.
14451 2002-01-03  Graham Stott  <grahams@redhat.com>
14453         * tree.h: Update copyright date.
14454         (IS_EXPR_CODE_CLASS): Add parenthesis.
14455         (TREE_SET_CODE): Add whitespace.
14456         (TREE_CHECK): Add parenthesis.
14457         (TREE_CLASS_CODE): Add parenthesis and wrap long line.
14458         (CST_OR_CONSTRUCTOR_CHECK):
14459         (EXPR_CHECK): Add parenthis, whitespace and wrap line.
14460         (TREE_SYMBOL_REFERENCED): Whitespace.
14461         (INT_CST_LT): Likewise.
14462         (INT_CST_LT_UNSIGNED): Likewise.
14463         (tree_real_cst): Unwrap comment.
14464         (tree_string): Likewise.
14465         (tree_complex): Likewise.
14466         (IDENTIFIER_POINTER): correct cast.
14467         (SAVE_EXPR_CONTEXT): Whitespace.
14468         (EXPR_WFL_FILENAME_NODE): Likewise.
14469         (EXPR_WFL_FILENAME): Remove parenthesis.
14470         (DECL_ORIGIN): Add parenthesis.
14471         (DECL_FROM_INLINE): Use NULL_TREE.
14472         (build_int_2): Whitespace.
14473         (build_type_variant): Add parenthesis.
14475         * gcc/jcf-parse.c: Update copyright date.
14476         (yyparse): Constify resource_filename.
14478 2002-01-03  Graham Stott  <grahams@redhat.com>
14480         * rtl.h: Update copyright date.
14481         (RTL_CHECK1): Wrap long line.
14482         (RTL_CHECK2): Likewise.
14483         (RTL_CHECKC1): Wrap long line and whitespace.
14484         (RTL_CHECKC2): Likewise.
14485         (XWINT): Whitespace.
14486         (XINT): Likewise.
14487         (XSTR): Likewise.
14488         (XEXP): Likewise.
14489         (XVEC): Likewise.
14490         (XMODE): Likewise.
14491         (XBITMAP): Likewise.
14492         (XTREE): Likewise.
14493         (XBBDEF): Likewise.
14494         (XTMPL): Likewise.
14495         (X0WINT): Likewise.
14496         (X0INT):Likewise.
14497         (X0UINT): Likewise.
14498         (X0STR): Likewise.
14499         (X0EXP): Likewise.
14500         (X0VEC): Likewise.
14501         (X0MODE): Likewise.
14502         (X0BITMAP): Likewise.
14503         (X0TREE): Likewise.
14504         (X0BBDEF): Likewise.
14505         (X0ADVFLAGS): Likewise.
14506         (X0CSELIB): Likewise.
14507         (X0MEMATTR): Likewise.
14508         (XCWINT): Likewise.
14509         (XCINT): Likewise.
14510         (XCUINT): Likewise.
14511         (XCSTR): Likewise.
14512         (XCEXP): Likewise.
14513         (XCVEC): Likewise.
14514         (XCMODE): Likewise.
14515         (XCBITMAP): Likewise.
14516         (XCTREE): Likewise.
14517         (XCBBDEF): Likewise.
14518         (XCADVFLAGS): Likewise.
14519         (XCCSELIB): Likewise.
14520         (XC2EXP): Likewise.
14521         (INSN_UID): Likewise.
14522         (PREV_INSN): Likewise.
14523         (PATTERN): Likewise.
14524         (INSN_CODE): Likewise.
14525         (PUT_REG_NOTE_KIND): Likewise.
14526         (CODE_LABEL_NUMBER): Likewise.
14527         (NOTE_SOURCE_FILE): Likewise.
14528         (NOTE_BLOCK): Likewise.
14529         (NOTE_EH_HANDLER): Likewise.
14530         (NOTE_RANGE_INFO): Likewise.
14531         (NOTE_LIVE_INFO): Likewise.
14532         (NOTE_BASIC_BLOCK): Likewise.
14533         (NOTE_EXPECTED_VALUE): Likewise.
14534         (NOTE_LINE_NUMBER): Likewise.
14535         (LABEL_NAME): Likewise.
14536         (LABEL_NUSES): Likewise.
14537         (LABEL_ALTERNATE_NAME): Likewise.
14538         (ADDRESSOF_DECL): Likewise.
14539         (JUMP_LABEL): Likewise.
14540         (LABEL_NEXTREF): Likewise.
14541         (REGNO): Likewise.
14542         (ORIGINAL_REGNO: Likewise.
14543         (HARD_REGISTER_NUM_P): Add parenthesis.
14544         (SUBREG_REG): Whitespace.
14545         (SUBREG_BYTE): Likewise.
14546         (ASM_OPERANDS_TEMPLATE): Remove parenthesis.
14547         (ASM_OPERANDS_OUTPUT_CONSTRAINT): Likewise.
14548         (ASM_OPERANDS_OUTPUT_IDX): Likewise.
14549         (ASM_OPERANDS_INPUT_VEC): Likewise.
14550         (ASM_OPERANDS_INPUT_CONSTRAINT_VEC): Likewise.
14551         (ASM_OPERANDS_INPUT): Likewise.
14552         (ASM_OPERANDS_INPUT_LENGTH): Likewise.
14553         (ASM_OPERANDS_INPUT_CONSTRAINT_EXP): Likewise.
14554         (ASM_OPERANDS_INPUT_CONSTRAINT): Likewise.
14555         (ASM_OPERANDS_INPUT_MODE): Likewise.
14556         (ASM_OPERANDS_SOURCE_FILE): Likewise.
14557         (ASM_OPERANDS_SOURCE_LINE): Likewise.
14558         (MEM_SET_IN_STRUCT_P): Minor reformat.
14559         (TRAP_CONDITION): Whitespace.
14560         (TRAP_CODE): Likewise.
14561         (COND_EXEC_TEST): Likewise.
14562         (COND_EXEC_CODE): Likewise.
14563         (FIND_REG_INC_NOTE): Uppercase macro args and add parenthesis.
14564         (PHI_NODE_P): Add parenthesis.
14565         (plus_constant): Whitespace and add parenthesis.
14567 2002-01-03  Kazu Hirata  <kazu@hxi.com>
14569         * config/avr/avr.c: Fix comment typos.
14570         * config/c4x/c4x.md: Likewise.
14571         * config/dsp16xx/dsp16xx.h: Likewise.
14572         * config/dsp16xx/dsp16xx.md: Likewise.
14573         * config/i386/i386.md: Likewise.
14574         * config/ia64/ia64.c: Likewise.
14575         * config/m32r/m32r.h: Likewise.
14576         * config/m68hc11/m68hc11.md: Likewise.
14577         * config/mmix/mmix.c: Likewise.
14578         * config/mn10200/mn10200.c: Likewise.
14579         * config/romp/romp.c: Likewise.
14580         * config/sh/sh.c: Likewise.
14581         * config/stormy16/stormy16.c: Likewise.
14582         * config/stormy16/stormy16.h: Likewise.
14583         * config/stormy16/stormy16.md: Likewise.
14585 2002-01-03  Graham Stott  <grahams@redhat.com>
14587         * loop.h: Update copyright date.
14588         (LOOP_MOVABLES): Fix typo.
14589         (LOOP_REGS): Likewise.
14590         (LOOP_IVS): Likewise.
14592 2002-01-03  Graham Stott  <grahams@redhat.com>
14594         * cppinit.c: Update copyright date.
14595         Don't include output.h
14596         * Makefile.in: Update copyright date.
14597         Update dependency.
14599 2002-01-02  Craig Rodrigues  <rodrigc@gcc.gnu.org>
14601         PR c/5226
14602         * invoke.texi (-mthreads): Remove from documented RS/6000 options.
14603         (-pthread) Add to RS/6000 options.
14605 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14607         * except.c: Fix comment typos.
14608         * loop.c: Likewise.
14609         * varasm.c: Likewise.
14610         * doc/tm.texi: Fix a typo.
14612 2002-01-02  Jakub Jelinek  <jakub@redhat.com>
14614         * c-typeck.c (output_init_element): Allow initializing static storage
14615         duration objects with compound literals.
14617 2002-01-02  Richard Henderson  <rth@redhat.com>
14619         * objc/objc-act.c (hack_method_prototype): Clear current_function_decl
14620         after abusing it.
14622 2002-01-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
14624         * gcc.c (default_compilers): Const-ify.
14625         * mips-tdump.c (stab_names): Likewise.
14626         * mips-tfile.c (map_coff_types, map_coff_storage,
14627         map_coff_sym_type, map_coff_derived_type, stabs_symbol,
14628         pseudo_ops_t, pseudo_ops): Likewise.
14629         * protoize.c (default_include): Likewise
14631         * real.c (GET_REAL, PUT_REAL): Don't cast away const-ness.
14632         (ezero, ehalf, eone, etwo, e32, elog2, esqrt2, epi): Const-ify.
14633         Add array size in declaration.
14634         (endian, emov, eisneg, eisinf, eisnan, eiisnan, eiisneg, emovi,
14635         emovo, emovz, eiisinf, ecmpm, eaddm, esubm, m16m, edivm, emulm,
14636         esub, eadd, eadd1, ediv, emul, e53toe, e64toe, e113toe, e24toe,
14637         etoe113, etoe64, etoe53, etoe24, ecmp, eround, ltoe, ultoe,
14638         eifrac, euifrac, e24toasc, e53toasc, e64toasc, e113toasc, etoasc,
14639         efloor, efrexp, eldexp, eremain, dectoe, etodec, ibmtoe, etoibm,
14640         c4xtoe, etoc4x, uditoe, ditoe, etoudi, etodi, esqrt, etens,
14641         emtens, make_nan): Const-ify.
14642         (TFbignan, TFlittlenan, XFbignan, XFlittlenan, DFbignan,
14643         DFlittlenan, SFbignan, SFlittlenan): Make static and const-ify.
14645 2002-01-02  Joseph S. Myers  <jsm28@cam.ac.uk>
14647         * config.gcc (ia64-*-*): Set extra_headers.
14648         (alpha*-dec-osf*): Likewise.  Don't use alpha/t-osf.
14649         * config/alpha/t-osf: Remove.
14650         * config/ia64/t-ia64 (EXTRA_HEADERS): Remove.
14652 2002-01-02  David Edelsohn  <edelsohn@gnu.org>
14654         * config/rs6000/t-aix43: Revert previous change.
14656 2002-01-02  Jason Merrill  <jason@redhat.com>
14658         * c-decl.c (c_expand_body): Call outlining_inline_function when
14659         emitting an inline function out of line.
14661 2002-01-02  Richard Henderson  <rth@redhat.com>
14663         * dwarf2out.c (limbo_die_node): Add created_for member.
14664         (new_die): New argument created_for.  Update all callers.
14665         (mark_limbo_die_list): New.
14666         (dwarf2out_init): Register limbo_die_list as a root.
14667         (dwarf2out_finish): Force insert limbo dies into their function
14668         context.
14670 2002-01-02  Nathan Sidwell  <nathan@codesourcery.com>
14672         PR c++/5089
14673         * doc/invoke.texi (-Wold-style-cast): Only warn about non-void casts.
14675 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14677         * config/h8300/fixunssfsi.c: Update copyright.
14678         Fix comment typos.
14679         Fix formatting.
14680         * config/h8300/h8300.c: Update copyright.
14681         Eliminate warnings.
14683 2002-01-02  Kazu Hirata  <kazu@hxi.com>
14685         * config/romp/romp.c: Fix comment formatting.
14686         * config/romp/romp.h: Likewise.
14687         * config/romp/romp.md: Likewise.
14688         * config/s390/s390.c: Likewise.
14689         * config/stormy16/stormy16.c: Likewise.
14690         * config/stormy16/stormy16.h: Likewise.
14692 2002-01-02  Alexandre Oliva  <aoliva@redhat.com>
14694         * c-common.h (genrtl_expr_stmt_value): Declare.
14695         * c-semantics.c (genrtl_goto_stmt): Redirect to...
14696         (genrtl_goto_stmt_value): ... this new function.  Pass new
14697         argument down to expand_expr_stmt_value, taking
14698         TREE_ADDRESSABLE into account.
14699         * c-common.c (c_expand_expr): Mark the last EXPR_STMT of a
14700         STMT_EXPR as addressable, i.e., one whose result we want.
14701         * expr.c (expand_expr): Don't save expression statement value
14702         of labeled_blocks or loop_exprs.
14703         * stmt.c (expand_expr_stmt): Redirect to...
14704         (expand_expr_stmt_value): ... this new function.  Use new
14705         argument to tell whether to save expression value.
14706         (expand_end_stmt_expr): Reset last_expr_type and
14707         last_expr_value if we don't have either.
14708         * tree-inline.c (declare_return_variable): Mark its use
14709         statement as addressable.
14710         * tree.h: Document new use of TREE_ADDRESSABLE.
14711         (expand_expr_stmt_value): Declare.
14713 2002-01-01  Tom Rix  <trix@redhat.com>
14715         * config/rs6000/rs6000.c (rs6000_emit_set_long_const): Fix for use by
14716         rs6000_emit_allocate_stack.
14718 2002-01-01  Joseph S. Myers  <jsm28@cam.ac.uk>
14720         * configure.in: Prepend ${srcdir}/config/${cpu_type}/ instead of
14721         ${srcdir}/ginclude/ to every entry in extra_headers.
14722         * configure: Regenerate.
14723         * ginclude/math-3300.h: Rename to config/m68k/math-3300.h.
14724         * ginclude/math-68881.h: Rename to config/m68k/math-68881.h.
14725         * ginclude/ppc-asm.h: Rename to config/rs6000/ppc-asm.h.
14726         * ginclude/proto.h: Rename to config/convex/proto.h.
14728 Tue Jan  1 17:12:56 2002  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14730         * attribs.c (handle_vector_size_attribute): Use host_integerp
14731         and tree_int_cst; remove warnings.
14732         * caller-save.c (insert_restore): Add cast to get rid of warning.
14733         (insert_save): Likewise.
14734         * emit-rtl.c (adjust_address_1, offset_address): Likewise.
14735         * regmove.c (find_matches): Add temporary var to kill a warning.
14737 2002-01-01  Douglas B Rupp  <rupp@gnat.com>
14739         * config/alpha/vms.h (DWARF2_UNWIND_INFO, EH_RETURN_HANDLER_RTX,
14740         LINK_EH_SPEC, MD_FALLBACK_FRAME_STATE_FOR): Define.
14741         * config/alpha/t-vms (EXTRA_PARTS): Add vms-dwarf2eh.o
14742         (vms-dwarf2eh.o): Add Makefile rule.
14743         * config/alpha/vms-ld.c (main): Handle vms-dwarf2eh.o.
14744         * config/alpha/vms-dwarf2eh.asm: New file.
14746         * gcc.c (delete_if_ordinary): Delete all versions.
14748 2002-01-01  Hans-Peter Nilsson  <hp@bitrange.com>
14750         * config/mmix/mmix.md: Update FIXME to not mention
14751         define_constants.
14752         (MMIX_rJ_REGNUM): New define_constants constant.
14753         ("movqi", "movsi", "movdi", "*movdicc_real_foldable",
14754         "*movdicc_real"): Adjust contraints formatting.
14755         ("*bCC_foldable"): Add %+ for P in output format and delete FIXME
14756         for branch prediction.
14757         ("*bCC", "*bCC_inverted_foldable", "*bCC_inverted"): Add %+ in
14758         output template.
14759         ("*call_real", "*call_value_real", "nonlocal_goto_receiver",
14760         "*nonlocal_goto_receiver_expanded"): Use MMIX_rJ_REGNUM instead of
14761         number.  Delete related FIXMEs.
14762         * config/mmix/mmix.h (MMIX_INCOMING_RETURN_ADDRESS_REGNUM): Change
14763         from number to MMIX_rJ_REGNUM.
14764         (TARGET_MASK_BRANCH_PREDICT): New.
14765         (TARGET_DEFAULT): Change to TARGET_MASK_BRANCH_PREDICT.
14766         (TARGET_SWITCHES): Update comment.  Correct -mno-toplevel-symbols
14767         value.  Add -mbranch-predict and -mno-branch-predict.
14768         (TARGET_VERSION): Drop date.
14769         (ADDITIONAL_REGISTER_NAMES): Use MMIX_rJ_REGNUM, not number.
14770         * config/mmix/mmix.c (mmix_encode_section_info): Correct condition
14771         for finding out global symbols.
14772         (mmix_asm_output_labelref): Revert condition for global symbol.
14773         (mmix_print_operand): <case '+'>: Emit P for a likely branch.
14774         (mmix_print_operand_punct_valid_p): A '+' is valid.
14776 See ChangeLog.6 for earlier changes.