Use cselib for alias analysis in sched_ebb
[official-gcc.git] / gcc / ChangeLog
blob4b5de1919db7375f1610f23c112272206e74f17d
1 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
3         * cselib.c (cselib_record_sets): If insn is predicated, turn
4         sources into IF_THEN_ELSEs.
6         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
7         Turn into define_insn_and_split.
8         
9         * sched-deps.c: Include "cselib.h".
10         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
11         Use cselib to turn memory addresses into VALUEs.
12         (sched_analyze): Call cselib_init/cselib_finish if necessary.
13         * sched-int.h (struct sched_info): New member USE_CSELIB.
14         * sched-ebb.c (ebb_sched_info): Initialize it.
15         * sched-rgn.c (rgn_sched_info): Likewise.
16         * Makefile.in (sched-deps.o): Update dependencies.
18 2001-08-08  Graham Stott  <grahams@redhat.com>
20         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
21         within fixed length SEQUENCE.
23 2001-08-08  Graham Stott  <grahams@redhat.com>
25         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
26         (diagnostic_prefixing_rule): Likewise.
27         (diagnostic_line_cutoff): Likewise.
28         (diagnostic_kind_count): Likewise.
30 2001-08-08  Graham Stott  <grahams@redhat.com>
32         * alias.c (find_base_decl): Delete redundent assignment.
34 2001-08-08  Graham Stott  <grahams@redhat.com>
36         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
37         (abs): Uppercase and paranthesize macro parameter.
38         (MEM_DEPENDENCY): Add whitespace.
40 2001-08-08  Graham Stott  <grahams@redhat.com>
42         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
43         failure check for CONST_INT
45 2001-08-08  Graham Stott  <grahams@redhat.com>
47         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
48         (libcall_dead_p): Likewise.
50         (mark_used_regs): Constify fmt.
51         (find_use_as_address): Likewise.
53 2001-08-08  Graham Stott  <grahams@redhat.com>
55         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
56          parameter.
58 2001-08-08  Graham Stott  <grahams@redhat.com>
60         * combine.c (combine_simplify_rtx): Update comment and
61         remove erroneous test.
63 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
65         * cppinit.c (cpp_finish): Pop the final buffer without comment.
66         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
67         take care to avoid multiple no-newline at EOF warnings in that
68         case.
70 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
72         * calls.c (expand_call): Do not emit INSN_SETJMP note.
73         (emit_library_call_value_1): Likewise.
74         (emit_call_1): Emit REG_SETJMP note.
75         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
76         of INSN_SETJMP
77         * cselib.c (cselib_process_insn): Likewise.
78         * flow.c (propagate_block): Likewise.
79         * loop.c (find_and_verify_loops): Likewise.
80         * reload.c (find_equiv_regs): Likewise.
81         * reload1.c (reload): Likewise.
82         * resource.c (mark_referenced_resources,
83         mark_set_resources): Likewise.
84         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
85         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
86         * haifa-sched.c (unlink_other_notes): Likewise.
87         (reemit_notes): Likewise.
88         * sched-ebb.c (sched_ebb): Likewise.
89         * sched-rgc.c (sched_region): Likewise.
90         * rtl.c (note_insn_name): Likewise.
91         (reg_note_name): Add REG_SETJMP
92         * rtl.h (reg_note): Add REG_SETJMP.
93         (insn_note): Remove NOTE_INSN_SETJMP.
95         * profile.c (branch_prob): Add fake edges for setjmp.
97 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
99         * config.gcc: Quote target_cpu_default2 correctly for
100         powerpc*-*-* targets.
102 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
104         * cpplib.h, line-map.h: Update comments.
105         * cppmain.c (printer_init): Move inline.
106         (maybe_print_line, print_line): Take a map pointer.
107         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
108         (cb_file_change): Don't use prior value of print.map.
110 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
112         * doc/install.texi: Document fine-grained multilib configuration.
114 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
116         * rtlanal.c (find_first_parameter_load): Call note_stores
117         only on the instructions.
119 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
121         * alias.c (nonlocal_mentioned_p):
122         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
123         * calls.c (emit_call_1): Likewise.
124         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
125         * cselib.c (cselib_process_insn): Likewise.
126         * df.c (df_insns_modify): Likewise.
127         * flow.c (need_fake_edge_p): Likewise.
128         (propagate_one_insn): Likewise.
129         * haifa-sched.c (reemit_notes): Likewise.
130         * integrate.c (copy_insn_list): Likewise.
131         * jump.c (delete_prior_computation): Likewise.
132         * local-alloc.c (validate_equiv_mem): Likewise.
133         * loop.c (scan_loop): Likewise.
134         * predict.c (estimate_probability): Likewise.
135         * reload.c (reload): Likewise.
136         * sched-deps (sched_analyze): Likewise.
137         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
138         * gcse.c (compute_hash_table): Likewise.
139         (mark_call): Likewise.
140         (store_killed_in_insn): Likewise.
142 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
144         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
146 2001-08-06  Richard Henderson  <rth@redhat.com>
148         * varasm.c (assemble_gc_entry): Remove.
149         * output.h: Likewise.
151 2001-08-06  Richard Henderson  <rth@redhat.com>
153         * varasm.c (assemble_constructor): Take a symbol_ref and a
154         priority instead of a bare string.  Move priority handling
155         here from cp/decl2.c.
156         * output.h: Update decls.
158         * c-decl.c (c_expand_body): Update calls to assemble_constructor
159         and assemble_destructor.
160         * profile.c (output_func_start_profiler): Likewise.
161         * objc/objc-act.c (finish_objc): Likewise.
162         (build_module_descriptor): Return the symbol not the symbol name.
164 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
166         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
167         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
168         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
169         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
170         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
171         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
173 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
175         * cpperror.c (print_containing_files): Moved to line-map.c.
176         (print_location): line-map.c handles re-listing or otherwise.
177         * cpphash.h (struct lexer_state): Remove next_bol.
178         (struct cpp_buffer): Remove include_stack_listed.
179         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
180         Remove faked buffer handling.
181         (_cpp_do_file_change): Tweak.
182         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
183         * cppmain.c (struct printer): Remove filename.
184         (print_line, cb_file_change): Update accordingly.
185         * line-map.c: Include intl.h.
186         (init_line_maps): Initialize last_listed.
187         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
188         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
189         (print_containing_files): New.
190         * line-map.h (struct line_maps): New member last_listed.
191         (print_containing_files, INCLUDED_FROM): New.
192         * Makefile.in: Update.
193         * po/POTFILES.in: Add line-map.c.
195 2001-08-06  Richard Henderson  <rth@redhat.com>
197         * except.c (convert_from_eh_region_ranges_1): Never mark
198         USE or CLOBBER insns as throwing.
200         * expr.c (store_constructor): Don't clobber memory targets.
202 2001-08-06  Andreas Jaeger  <aj@suse.de>
204         * profile.c (branch_prob): Remove unused variable insn.
206         * Makefile.in (local-alloc.o): Add dependency on except.h.
208         * local-alloc.c: Include except.h for can_throw_internal prototype.
210 2001-08-06  Richard Henderson  <rth@redhat.com>
212         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
213         * function.c (expand_main_function): Implement it.
214         * doc/tm.texi: Document it.
216 2001-08-06  Stan Shebs  <shebs@apple.com>
218         * doc/install.texi: Document powerpc-*-darwin* details.
220 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
222         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
223         (ASM_CPU_SPEC): Move back to rs6000.h
224         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
226         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
228         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
229         readded.
231         * config/rs6000/linux64.h: Ditto.
233         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
234         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
235         nothing.
237         Remove accidently readded definitions of FUNCTION_PROLOGUE,
238         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
240         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
241         to rs6000.h
243 2001-08-05  Richard Henderson  <rth@redhat.com>
245         * local-alloc.c (update_equiv_regs): Do not move insns that
246         can throw.
248 2001-08-05  Jan Hubicka  <jh@suse.cz>
250         * Makefile.in (reload1.o): Add dedendancy on except.h
251         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
252         prototypes.
253         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
254         indicating wehther edges has been cleaned up.
255         * reload1.c: Inlucde except.h
256         (fixup_abnormal_edges): Accept deleted insns.
257         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
258         after combine.
260 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
262         * cpplib.c (do_line): Correct line number after pop_buffer.
264 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
266         PR preprocessor/3824
267         * line-map.c: Update comments.
268         * line-map.h: Update comments.
269         * tradcif.y: Don't consider large numbers unsigned.
271 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
273         PR preprocessor/3081
274         * c-lex.c (map): New.
275         (cb_file_change): Update map and use it.
276         (cb_def_pragma, cb_define, cb_undef): Use map and line.
277         (c_lex): Update to use map.
278         * cpperror.c (print_location): Move to using logical line numbers.
279         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
280         (cpp_make_system_header): Similarly.
281         (_cpp_execute_include): Stop line numbering hacks.  Store the
282         line we will return to.
283         * cpphash.h (CPP_BUF_LINE): Remove.
284         (struct cpp_buffer): Remove lineno and pseudo_newlines.
285         Add map and return_to_line.
286         (_cpp_do_file_change): Update.
287         * cppinit.c (cpp_start_read): Update line kludge.
288         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
289         (trigraph_ok): Use logical line numbers for diagnostics.
290         (skip_block_comment): Likewise.
291         (skip_whitespace): Likewise.
292         (skip_line_comment): Use pfile->line instead.
293         (_cpp_lex_token): Update to use logical line numbering exclusively.
294         Handle BOL locally.  Accept new lines in directives, but keep
295         pfile->line decremented.  Diagnostics use logical lines.  Update
296         directive handling.
297         * cpplib.c (SEEN_EOL): New.
298         (skip_rest_of_line, check_eol): Use it.
299         (end_directive): Increase line number when accepting the newline
300         at the end of a directive.
301         (run_directive): Simplify.
302         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
303         (_cpp_do_file_change): Update to take buffer line number as an
304         argument, and store the current map in the cpp_reader.  Remove
305         line number kludges.
306         (_cpp_do__Pragma): Restore output position after a _Pragma.
307         (cpp_push_buffer): Don't set output line or lineno.
308         (_cpp_pop_buffer): Transfer more info from a faked buffer.
309         Remove line kludge.  Set output_line.
310         * cppmacro.c (builtin_macro): Update handling of __LINE__.
311         (parse_arg): Use logical lines.
312         (save_lookahead_token): Save EOFs too now.
313         * cppmain.c (struct printer): Fix comments.
314         (printer_init): Simplify, let caller do errors.
315         (scan_translation_unit, check_multiline_token, dump_macro): Update.
316         (maybe_print_line): Simplify.
317         (print_line): Don't print a linemarker if -P.
318         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
319         (cb_file_change): Simplify.
320         * line-map.h (LAST_SOURCE_LINE): Fix.
321         (CURRENT_LINE_MAP): New.
323 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
325         * doloop.c (doloop_modify_runtime): Properly compute number of
326         iterations if loop was unrolled.
328         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
329         if their CSELIB_VAL_PTRs are.
331         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
332         (setup_spill_pointers): Initialize it.
333         (spill_restore_mem): Set it.
334         (do_spill, do_restore): Use it to add REG_INC note.
335         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
337         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
338         asms if other insns are available.
340         * config/ia64/ia64.c (condop_operator): New predicate.
341         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
342         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
343         patterns.
345         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
346         temporary register than directly using a MEM.
348 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
350         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
351         parameter in last change.
353 2001-08-04  Zack Weinberg  <zackw@panix.com>
355         * sparc.md: Don't use #if inside C test expression.
357 2001-08-04  Richard Henderson  <rth@redhat.com>
359         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
361 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
363         * cpphash.h (struct cpp_reader): New member directive_line.
364         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
365         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
366         do_pragma): Pass line to callbacks.
367         (start_directive): Record line of directive.
368         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
369         cb_include): Similarly.
370         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
371         Similarly.
373 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
375         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
376         comment.
378 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
380         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
382         * reload1.c (fixup_abnormal_edges): New static function.
383         (reload): Use it.
385         * flow.c (need_fake_edge_p): New function.
386         (flow_call_edges_add): Fix handling of noreturn and sibbling calls;
387         avoid call insn to be very last insn in the insn stream.
389         * profile.c (branch_prob): Call flow_call_edges_add instead of
390         doing that by hand; cleanup cfg to re-merge basic blocks once
391         we are done.
393 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
395         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
396         are also on line-map.h.
397         * cppfiles.c (stack_include_file): Update.
398         * cpphash.h (struct cpp_buffer): New member return_at_eof.
399         (_cpp_pop_buffer): New.
400         * cppinit.c (cpp_destroy, cpp_finish): Update.
401         (do_includes): Mark each buffer to return at EOF.
402         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
403         return as requested.
404         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
405         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
406         * cpplib.h (cpp_pop_buffer): Remove.
407         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
408         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
409         buffers.
410         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
411         to pop buffers.
412         (do_preprocessing): Update.
413         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
414         * c-parse.in (_yylex): Similarly.
415         * scan-decls.c (scan_decls): Similarly.
416         * line-map.h: Update comments.
418         * objc/Make-lang.in (objc-act.o): Update dependencies.
420 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
422         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
423         and soft register for operand 0.
424         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
426 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
428         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
429         register for operand 0.
430         ("bitcmpqi_z_used"): Allow memory for operand 0.
431         (split "bitcmpqi"): New split to handle address reg as operand 1.
433 2001-08-04  Andreas Jaeger  <aj@suse.de>
435         * gcse.c: Revert Daniel's last patch.
437 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
439         * sparc-protos.h: Add prototypes for fp_zero_operand and
440         reg_or_0_operand.
441         * sh-protos.h: Add prototype for fpul_operand.
443 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
445         * doc/extend.texi (Other Builtins): Fix typo in last change.
447 2001-08-03  Richard Henderson  <rth@redhat.com>
449         * target.h (gcc_target): Add asm_out.named_section,
450         section_type_flags, have_named_sections.
451         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
452         (TARGET_HAVE_NAMED_SECTIONS): New.
453         (TARGET_SECTION_TYPE_FLAGS): New.
455         * Makefile.in (toplev.o): Depend on TARGET_H.
456         (varasm.o, dbxout.o): Likewise.
457         * c-common.c (decl_attributes): Check targetm.have_named_sections
458         instead of ifdef ASM_OUTPUT_SECTION_NAME.
459         * dbxout.c (dbxout_function_decl): Likewise.
460         (dbxout_function_end): Likewise.
461         * toplev.c (compile_file): Likewise.
462         * varasm.c (exception_section): Likewise.
463         * cp/decl2.c (finish_objects): Likewise.
465         * defaults.h (EH_FRAME_SECTION): Remove.
466         (EH_FRAME_SECTION_ASM_OP): Remove.
467         (EH_FRAME_SECTION_NAME): New.
468         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
469         (UNIQUE_SECTION_P): Remove.
470         * dwarf2out.c (SECTION_FORMAT): Remove.
471         (ASM_OUTPUT_SECTION): Remove.
472         (output_call_frame_info): Use named_section_flags.
473         (output_comp_unit, dwarf2out_start_source_file): Likewise.
474         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
475         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
476         * varasm.c (in_eh_frame, eh_frame_section): Remove.
477         (named_section_flags): New.
478         (named_section): Use it and targetm.section_type_flags.
479         (resolve_unique_section): New.
480         (assemble_start_function): Use it.
481         (asm_emit_uninitialised, assemble_variable): Likewise.
482         (default_section_type_flags): New.
483         (default_no_named_section, default_elf_asm_named_section): New.
484         (default_coff_asm_named_section, default_pe_asm_named_section): New.
485         * output.h: Update varasm.c decls.
486         (SECTION_*): New flags.
488         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
489         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
491         * config/elfos.h (UNIQUE_SECTION_P): Remove.
492         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
493         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
494         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
495         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
496         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
497         * config/mips/elf.h, config/mips/elf64.h: Likewise.
498         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
499         * config/pa/pa64-hpux.h,
501         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
502         (TARGET_ASM_NAMED_SECTION): New.
503         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
504         * config/alpha/vms.h, config/arm/coff.h: Likewise.
505         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
506         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
507         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
508         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
509         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
510         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
511         * config/i386/sco5.h, config/i386/win32.h: Likewise.
512         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
513         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
514         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
515         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
516         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
517         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
518         * config/sparc/sysv4.h: Likewise.
520         * config/nextstep.h: Error until named sections implemented.
522         * config/a29k/a29k.c (a29k_asm_named_section): New.
523         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
524         (vms_section_type_flags, vms_asm_named_section): New.
525         * config/arm/arm.c (arm_elf_asm_named_section): New.
526         * config/avr/avr.c (asm_output_section_name): Remove.
527         * config/avr/avr-protos.h: Update.
528         * config/c4x/c4x.c (c4x_asm_named_section): New.
529         * config/h8300/h8300.c (h8300_asm_named_section): New.
530         * config/i386/i386.c (sco_asm_named_section): New.
531         * config/i386/winnt.c (SECTION_PE_SHARED): New.
532         (i386_pe_section_type_flags): New.
533         (i386_pe_asm_named_section): New.
534         * config/i386/i386-protos.h: Update.
535         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
536         * config/mcore/mcore.c (mcore_asm_named_section): New.
537         * config/mips/mips.c (iris6_asm_named_section): New.
538         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
539         instead of UNIQUE_SECTION_P.
540         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
541         (xcoff_asm_named_section): New.
542         * config/sh/sh.c (sh_asm_named_section): New.
543         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
545         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
546         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
547         (EH_FRAME_SECTION_NAME): New.
548         (EXCEPTION_SECTION): New.
549         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
550         (DEBUG_*_SECTION): Remove.
551         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
552         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
553         (EH_FRAME_SECTION_ASM_OP): Remove.
555         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
556         (ASM_OUTPUT_SECTION_NAME): Remove.
557         (TARGET_ASM_NAMED_SECTION): New.
558         (TARGET_HAVE_NAMED_SECTIONS): New.
559         (TARGET_SECTION_TYPE_FLAGS): New.
560         (EH_FRAME_SECTION_ASM_OP): Remove.
561         (EH_FRAME_SECTION_NAME): New.
563 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
565         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
566         for complex expressions when cfun == 0.
567         * doc/extend.texi: Document that __builtin_constant_p can be
568         used in data initializers as well as functions.
570 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
572         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
573         variable I locally, instead of expecting a declaration in the
574         calling context.
576 2001-08-03  Richard Henderson  <rth@redhat.com>
578         * except.c (collect_one_action_chain): Add an explicit cleanup
579         action if regions surrounding a catch were encoded entirely
580         within the call-site entry.
582 2001-08-03  Richard Henderson  <rth@redhat.com>
584         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
585         don't take REGNO of a non-register.
587 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
589         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
590         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
591         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
592         (__gthread_mutex_init_function): New function for mutex initialization.
594 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
596         * Makefile.in: Revert screwed up commit.
598 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
600         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
601         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
602         merged by linker script to get a final _exit().
603         (__do_global_dtors): New for destructor handling in specific exit
604         section.
605         (__do_global_ctors): New for constructors in specific install section.
606         (__map_data_section): Map data sections before running constructors.
607         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
608         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
609         (DTORS_SECTION_ASM_OP): Likewise.
610         (CTORS_SECTION_FUNCTION): Define to force a reference to
611         __do_global_ctors.
612         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
614 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
616         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
618         * Makefile.in: Add df.h to gcse.c dependencies.
620 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
622         * varasm.c (output_constant_def_contents): Use for the length of a
623         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
624         depending on which is larger.
626 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
628         * gcse.c: Include df.h for use as a dataflow analyzer.
629         Remove regvec.
630         Declaration of reg_set_info: gone.
631         New df_analyzer variable used by store motion.
632         (reg_set_info): Deleted.
633         (mark_mem_regs): New function, analyze regs used by a mem.
634         (store_ops_ok): Use dataflow analyzer results to determine if
635         necessary regs are changed in the block.
636         (find_moveable_store): Remove check for symbol ref, we can handle
637         much more complex expressions now.
638         (compute_store_table): Remove most of the code, it's unnecessary
639         now that the dataflow analyzer records the info for us.
640         (store_killed_after): Add parameter to say whether to do the
641         store_ops_okay test, used to speed up testing when we already know
642         the answer, and just want to know if the store itself was killed.
643         (build_store_vector): Largely rewritten to calculate the various
644         vectors properly, and somewhat optimized.
645         (store_motion): Init the df_analyzer, get REG_DEF chains.
646         Also handle trapping expressions (since mems almost always trap)
647         (simple_mem): Redefine what a simple mem is.
649 2001-08-03  DJ Delorie  <dj@redhat.com>
651         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
652         set from a constant part of the condition.
654 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
656         * mkdeps.c (deps_add_default_target): Make local variable
657         ``start'' a const char pointer.
658         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
660 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
662         * doc/install.texi (Configuration): Fix markup.
663         (Specific, i?86-*-udk): Likewise.
664         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
665         --with-gnu-ld.
666         Document --enable-threads and --enable-libgcj status.
667         (Specific, mips-sgi-irix*): Canonicalize triples.
668         (Specific, mips-sgi-irix5): Warn about problems with this config.
669         Mention required GNU as patch.
670         Native assembler problems are fixed.
671         (Specific, mips-sgi-irix6): Update O32 ABI support status.
672         Document --enable-threads and --enable-libgcj status.
674 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
676         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
677         of mkinstalldirs.
679 2001-08-03  Richard Henderson  <rth@redhat.com>
681         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
682         constant data.
684 2001-08-03  Richard Henderson  <rth@redhat.com>
686         * rtlanal.c (find_first_parameter_load): Stop if we
687         reach a CODE_LABEL at BOUNDARY.
689 2001-08-03  Richard Henderson  <rth@redhat.com>
691         * config/alpha/alpha.md (force_movdi): New insn.
692         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
693         Tweek FRP marking of VMS prologue insns.
694         * config/alpha/vms.h (EPILOGUE_USES): New.
696 2001-08-02  Richard Henderson  <rth@redhat.com>
698         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
700 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
702         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
703         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
704         config/convex/convex.h, config/d30v/d30v.c,
705         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
706         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
707         config/mips/mips.h, config/mn10200/mn10200.h,
708         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
709         config/v850/v850.h, config/vax/openbsd.h,
710         config/vax/openbsd1.h, config/vax/ultrix.h,
711         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
712         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
713         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
714         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
715         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
716         in comments and documentation.
718 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
720         * line-map.c: New.
721         * line-map.h: New.
722         * Makefile.in (line-map.o): New.
723         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
724         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
725         * cpperror.c (print_containing_files): Similarly.
726         (print_location): Update.  Don't output a space before _Pragma.
727         * cppfiles.c (stack_include_file): Set to line 1 immediately.
728         (stack_include_filee, cpp_make_system_header): Update.
729         (_cpp_execute_include): Get logical line number right for calling
730         as-yet-unterminated #include.
731         * cpphash.h (struct cpp_reader): Add line_maps.
732         (_cpp_do_file_change): Update.
733         * cppinit.c (cpp_create_reader): Initialize line maps.
734         (cpp_destroy): Destroy line maps.
735         (cpp_start_read): Get logical line number right.
736         * cpplex.c (parse_string): Only warn once for multi-line strings.
737         Use boolean variable for null warning.
738         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
739         already.
740         (do_include_common): End the directive early.
741         (do_line): Don't warn about out-of-range lines in preprocessed
742         source.  Update.  Remove unused variables.
743         (_cpp_do_file_change): Update for new line mapping.
744         (pragma_cb): New typedef.
745         (cpp_register_pragma): Stop looking ahead before calling the
746         handler.  Clean up.
747         (do_pragma_system_header): End directive early.
748         (cpp_get_line_maps): New.
749         (cpp_pop_buffer): Fudge logical line.  Update.
750         * cpplib.h: Include line-map.h
751         (enum cpp_fc_reason): Remove.
752         (struct cpp_file_change): Update.
753         (cpp_get_line_maps): New.
754         * cppmain.c (struct_printer): New member map.
755         (cb_file_change): Update for new mappings.
756         * fix-header.c (cb_file_change): Similarly.
758 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
760         * Makefile.in (libgcc.mk): Define mkinstalldirs.
761         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
763 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
765         * config/vax/vax.c: include expr.h.
767 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
769         * Makefile.in ($(srcdir)/configure): Only rebuild in
770         maintainer mode.
771         ($(srcdir)/config.in): Only define in maintainer mode.
772         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
774 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
776         * doc/install.texi (Install GCC: Binaries): Update Bull info.
778 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
780         * gcc.c (set_collect_gcc_options): New function, split out from
781         main.
782         Ignore elided switches.
783         (do_spec_1): Invoke before executing command.
784         (set_input): Export.
785         Move declaration ...
786         * gcc.h (set_input): ... here.
787         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
788         file.
790 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
792         Kill -fhonor-std.
793         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
794         interaction.
795         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
797 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
799         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
800         for the unnamed instructions it expands to.
802 2001-08-02  Richard Henderson  <rth@redhat.com>
804         * regclass.c (call_really_used_regs): Conditionally define.
805         (init_reg_sets_1): Don't use it if not defined.
806         (fix_register): Similarly, don't set it.
808 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
810         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
811         Correct comment that had been missed in the previous change.
813 2001-08-01  Stan Shebs  <shebs@apple.com>
815         * config/darwin.c (machopic_stub_name): Try matching by name.
816         (update_stubs): New function.
817         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
818         unconditionally.
820 2001-08-01  Richard Henderson  <rth@redhat.com>
822         * except.c (output_function_exception_table): Use assemble_align.
823         * varasm.c (assemble_eh_label): Remove.
824         (assemble_eh_align, assemble_eh_integer): Remove.
826 2001-08-01  Robert Lipe  <robertl@caldera.com>
828         * dwarfout.c: Remove reference to README.DWARF.
830 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
832         * regclass.c (call_really_used_regs): New array for registers which
833         are actually used by a call.
834         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
835         new array.
836         (fix_register): Set call_really_used too.
837         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
838         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
840 2001-08-01  Richard Henderson  <rth@redhat.com>
842         * read-rtl.c (read_name): Consider \r whitespace.
844 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
846         * config.gcc: Recognize powerpc-*-netbsd*.
848         * doc/install.texi (Host/target specific installation notes for
849         GCC): Mention powerpc-*-netbsd*.
851         * config/rs6000/netbsd.h: New file.
852         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
853         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
854         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
855         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
856         (TARGET_VERSION): Redefine.
858         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
859         mcall-netbsd as a match for mcall-sysv.
860         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
861         (ncrti.S, ncrtn.S): New targets.
862         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
864         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
865         "netbsd' as a V4 ABI.
866         (ASM_SPEC): Check for -mcall-netbsd.
867         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
868         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
869         (LIB_SPEC, ENDFILE_SPEC): Ditto.
870         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
871         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
872         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
873         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
875         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
876         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
878 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
880         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
881         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
882         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
883         including "unwind-pe.h".
885 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
887         * rs6000.md (define_splits): Kill unused constraints.
889 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
890                               Jan Hubicka  <jh@suse.cz>
892         * function.c (thread_prologue_and_epilogue_insns): Kill code
893         dealing with non-existent CFG.
895 2001-08-01  Kazu Hirata  <kazu@hxi.com>
897         * alias.c: Fix comment formatting.
898         * bitmap.c: Likewise.
899         * builtins.c: Likewise.
900         * calls.c: Likewise.
901         * c-common.c: Likewise.
902         * c-decl.c: Likewise.
903         * c-dump.c: Likewise.
904         * c-lex.c: Likewise.
905         * collect2.c: Likewise.
906         * combine.c: Likewise.
907         * conflict.c: Likewise.
908         * cppfiles.c: Likewise.
909         * cppinit.c: Likewise.
910         * cpplex.c: Likewise.
911         * cpplib.c: Likewise.
912         * cppmacro.c: Likewise.
913         * cppspec.c: Likewise.
914         * c-pragma.c: Likewise.
915         * crtstuff.c: Likewise.
916         * cse.c: Likewise.
917         * cselib.c: Likewise.
918         * c-semantics.c: Likewise.
919         * c-typeck.c: Likewise.
921 2001-08-01  H.J. Lu <hjl@gnu.org>
923         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
925 2001-08-01  H.J. Lu <hjl@gnu.org>
927         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
929 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
931         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
932         contextualizing Objective-C class name lookup by the lexer.
933         (typespec_reserved_nonattr): Disable ObjC class name lookup after
934         seeing a TYPESPEC.
935         (protocoldef): Add support for forward @protocol declarations.
936         (yylexname): Suppress ObjC class name lookup in certain contexts;
937         re-enable after lookup is complete.
938         (_yylex): Re-enable ObjC class name lookup when certain
939         punctuation marks are seen.
941         * objc/objc-act.c (check_protocol_recursively): New function used
942         for finding circular dependencies in protocols.
943         (objc_declare_protocols): New function for handling forward
944         @protocol declarations.
945         (receiver_is_class_object): Detect the case when 'self' is used
946         inside of a class method.
947         (build_message_expr): Issue a warning if class method is desired
948         but instance method is found instead.
949         (conforms_to_protocol): Streamline.
950         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
951         protocol Foo, even if 'Bar foo' does not.
952         (check_protocols): Streamline.
953         (start_protocol): Add checks for circular and duplicate protocol
954         definitions.
955         (encode_aggregate_within): For typedefs of structs, encode the
956         underlying struct.
957         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
958         (objc_declare_protocols): New prototype.
960 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
962         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
963         * cpplex.c (handle_newline): Update prototype.  Maintain logical
964         line number.
965         (skip_escaped_newlines, skip_block_comment, parse_string):
966         Update accordingly.
967         (_cpp_lex_token): Update, and store token position within the token.
968         * cpplib.h (struct cpp_token): Add line and column entries.
969         * cppmacro.c (replace_args): Position stringified tokens correctly.
971 2001-08-01  Andreas Jaeger  <aj@suse.de>
973         * basic-block.h: Add prototype for last_loop_beg_note.
975 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
977         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
978         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
979         comment.
980         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
981         while handling WITH_CLEANUP_EXPR node. Use second operand calling
982         expand_decl_cleanup.
983         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
984         the first RTX.
985         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
986         operand while calling simple_cst_equal.
987         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
988         operand is the cleanup expression, the third is the RTL_EXPR.
989         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
991 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
993         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
995 2001-07-31  matthew green  <mrg@eterna.com.au>
997         * config.gcc (i386-*-netbsdelf): New description.
998         * config/i386/netbsd-elf.h: New file.
1000 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
1002         * loop.c (check_dbra_loop): Use single_set to compute
1003         jump_label.
1005 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
1007         PowerPC reorg and support for powerpc64-*-linux*.
1009         Also fixes emitting of constants on 32 bit and 64 bit
1010         platforms.
1012         * config.gcc: powerpc64-*-linux* is a new target.
1013         Things that needed aix.h now also include xcoff.h
1015         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
1016         xcoff.h.
1017         Move AIX specific stuff into aix.h.
1018         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
1019         with more than just XCOFF now.
1020         (SET_ASM_OP): Remove, now defined where needed.
1021         (FUNCTION_PROLOGUE): New macro definition.
1022         (FUNCTION_EPILOGUE): New macro definition.
1023         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
1025         * config/rs6000/xcoff.h: New file.
1027         * config/rs6000/linux64.h: New file.
1029         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
1031 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
1033         * rs6000.c (print_operand_address): Handle ELF syntax.
1034         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
1035         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
1036         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
1038 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
1040         * rs6000.c (rs6000_override_options): Only disable
1041         flag_function_sections for XCOFF.
1042         (exact_log2_cint_operand): New predicate.
1043         (reg_or_{add,sub}_cint64_operand): New predicates.
1044         (add_operand): Compare CONST_INT with fewer function calls.
1045         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
1046         (print_operand, case 'p'): Ensure positive operand.
1047         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
1048         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
1049         (PREDICATE_CODES): Add new predicates.
1050         * rs6000.md (addsi3): Split 32-bit constants more correctly.
1051         (divsi3, modsi3): Ensure positive power-of-2.
1052         (adddi3): Use new predicate.  Split 32-bit constants more
1053         correctly.  Re-arrange splitter to handle any constant.
1054         (subdi3): Use new predicate.
1055         (divdi3, moddi3): Ensure positive power-of-2.
1056         (movdi): Use rs6000_emit_set_const.
1057         (load_toc_v4_pic_di): Delete.
1059 2001-07-31  Graham Stott <grahams@redhat.com>
1061         * function.c (pad_below): Revert 2001-07-26 patch.
1063 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
1065         * reg-stack (convert_regs_1): Fix best edge condition.
1067 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
1069         * jump.c (duplicate_loop_exit_test): Better test for jumps
1070         entering the loop; create loop pre_header.
1072 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
1074         * doc/install.texi: Add s390 and s390x as new targets.
1075         * doc/invoke.texi: Add documantation of S/390 and zSeries
1076         target options.
1077         * doc/md.texi: Add documantation of S/390 and zSeries constraints.
1079 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
1081         * config/m68k/m68k.md: Replace all general_operand with
1082         nonimmediate_operand for all destinations.
1083         * config/m68k/m68k.c (not_sp_operand): Likewise.
1085 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
1087         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
1089 2001-07-30  Richard Henderson  <rth@redhat.com>
1091         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
1092         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
1094 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
1096         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
1097         Add missing doc strings
1098         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
1099         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
1101 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
1103         * i386.c (ix86_output_main_function_alignment_hack): New function.
1104         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
1106         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
1107         edges by EDGE_DFS_BACK flag.
1108         (dump_edge_info): Add dfs_back flag.
1109         * basic-block.h (EDGE_DFS_BACK): New constant.
1110         (mark_dfs_back_edges): Declare.
1111         * alias.c (loop_p): Remove.
1112         (mark_constant_function): Use mark_dfs_back_edges.
1114         * reg-stack.c (block_info_def): Add predecesors counter and stack_out.
1115         (reg_to_stack): Call mark_dfs_back_edges; count the predecesors.
1116         (compensate_edge): Break out from ...
1117         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
1118         (convert_regs_2): Set block_done once block is really done;
1119         Do updating of the predecesors counts.
1121         * toplev.c (rest_of_compilation): Recompute block_for_insn
1122         before post-reload cfg_cleanup.
1123         * function.c (thread_prologue_epilogue_insns):
1124         Call set_block_for_new_insns when emitting prologue directly.
1126 2001-07-30  Andreas Jaeger  <aj@suse.de>
1128         * jump.c: Add prototype for mark_modified_reg.
1130         * cse.c (set_live_p): Add unused attribute.
1132         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
1133         overflow.
1134         (scan_for_source_files): Use long for count to avoid overflow.
1135         (output_data): Likewise.
1136         (output_data): Don't use string concatatenation to silence gcc
1137         -traditional.
1139         * predict.c: Fix typos and grammar.
1141         * gcse.c (insert_insn_end_bb): Remove unused variables.
1143 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
1145         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
1146         (attempt_auto_inc): LIkewise.
1147         (mark_used_reg): Likewise.
1148         (try_pre_increment_1): Likewise.
1149         * regclass.c (regclass): Likewise.
1150         * global.c (allocno_compare): Update comment; change scaling factor.
1151         * local-alloc.c (QTY_CMP_PRI): Likewise.
1152         * regs.h (REG_FREQ_FROM_BB): New.
1153         (REG_FREQ_MAX): Likewise.
1155 2001-07-30  H.J. Lu <hjl@gnu.org>
1157         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
1158         -D_GNU_SOURCE.
1160 2001-07-30  H.J. Lu  (hjl@gnu.org)
1162         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
1163         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
1164         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
1166 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
1168         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
1169         as -mthumb-interwork when -mcpu=arm7 is specified.
1171 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
1173         * predict.def (noreturn, loop branch, loop exit): Mark as first
1174         match heuristics.
1176 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
1178         * combine.c (try_combine): Avoid barrier after noop jumps.
1180 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1182         * cpphash.h (struct cpp_reader): Remove import_warning.
1183         * cpplib.c (skip_rest_of_line): Don't bother turning off
1184         macro expansion.
1185         (parse_include): Move include handling to...
1186         (do_include_common): ... here.  Move import warning from...
1187         (do_import): ... here.
1188         (do_pragma_poison): Don't do a callback for poison identifiers.
1189         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
1190         * cppmain.c (setup_callbacks): Similarly.
1192 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
1194         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
1195         handle multiple sets.
1196         * except.c (sjlj_mark_call_sites): .... here.
1197         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
1199 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
1201         Suggested by Richard Henderson and Richard Kenner:
1202         * combine.c (recog_for_combine): Use the fake recog
1203         only if instruction does not match.
1204         * rtl.h (NOOP_MOVE_INSN_CODE): New.
1205         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
1207         * combine.c (try_combine): Discover noop jump as direct jump.
1209 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
1211         * df.c (df_rd_global_compute): Add successors to worklist, not
1212         current item.
1213         (df_ru_global_compute): Ditto.
1215 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
1217         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
1218         increment REG_N_SETS.
1220 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
1222         * sbitmap.h: New prototype for sbitmap_a_xor_b.
1224         * sbitmap.c (sbitmap_a_xor_b): New function.
1225         ifdef the basic block stuff on IN_GCC.
1227 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1229         * cppexp.c (parse_defined): Always record the macro name.
1230         (lex): Don't worry about identifiers, or special-case
1231         CPP_NOT here.
1232         (_cpp_parse_expr): Figure out at the end of the routine
1233         whether we saw a valid !defined() expression.
1234         * cppfiles.c (stack_include_file): Update for mi_valid.
1235         (_cpp_pop_file_buffer): Similarly.
1236         * cpplex.c (_cpp_lex_token): Similarly.
1237         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
1238         mi_if_not_defined, mi_lexed): Remove.
1239         (mi_valid): New.
1240         * cpplib.c (do_if): Simplify.
1241         (do_endif, push_conditional, _cpp_handle_directive): Update
1242         for renaming of mi_state to mi_valid.
1243 doc:
1244         * cpp.texi: Add index entries for digraphs, and add comment
1245         that C++ refers to them as alternative tokens.
1247 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
1249         * basic-block.h (CLEANUP_PRE_LOOP): New.
1250         * except.c (finish_eh_generation): Update call of cleanup_cfg.
1251         * sibcall.c (optimize_sibling_calls): Likewise.
1252         * toplev.c (rest_of_compilation): Likewise.
1253         * flow.c (try_forward_edges): Take argument MODE;
1254         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
1255         (try_optimize_cfg): Update call of try_forward_edges.
1257 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
1258                                Jan Hubicka  <jh@suse.cz>
1260         * (validate_replace_rtx_1): Fix simplification of MINUS.
1262 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
1264         PR preprocessor/3669
1265         * cppinit.c (init_dependency_output): Turn off dump requests
1266         if sending dependencies to stdout.
1268 2001-07-28  Richard Henderson  <rth@redhat.com>
1270         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
1271         not optimizing.
1273 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
1275         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
1277 2001-07-28  Kazu Hirata  <kazu@hxi.com>
1279         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
1280         is VAR_DECL first to prevent an ICE.
1282 2001-07-28  Richard Henderson  <rth@redhat.com>
1284         * varasm.c (immed_real_const_1): Don't elide special cases for
1285         nested functions.
1286         (clear_const_double_mem): Clear const_tiny_rtx too.
1288 2001-07-28  Richard Henderson  <rth@redhat.com>
1290         * dwarf2out.c (dw_val_class_offset): New.
1291         (struct dw_ranges_struct, dw_ranges_ref): New.
1292         (ranges_table, ranges_table_allocated): New.
1293         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
1294         (add_AT_offset, add_ranges, output_ranges): New.
1295         (print_die, output_die): Handle dw_val_class_offset.
1296         (attr_checksum, size_of_die, value_format): Likewise.
1297         (gen_lexical_block_die): Handle non-contiguous blocks.
1298         (gen_block_die): Likewise.
1299         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
1300         if needed.  Dump the ranges table.
1301         * final.c (final_start_function): Remove unnecessary notes and
1302         rebuild the block tree before numbering the blocks.
1303         * function.c (reorder_blocks_0): Walk the existing block tree
1304         to unmark all blocks.
1305         (reorder_blocks_1): Create block fragments when duplicate block
1306         notes are seen.
1307         (reorder_fix_fragments): New.
1308         (reorder_blocks): Call it.
1309         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
1311 2001-07-28  Richard Henderson  <rth@redhat.com>
1313         * emit-rtl.c (adjust_address): Make a copy of the memory address.
1315 2001-07-28  Richard Henderson  <rth@redhat.com>
1317         * flow.c (add_to_mem_set_list): New function.
1318         (init_propagate_block_info): Use it.
1319         (mark_set_1): Likewise.
1320         (insn_dead_p): Canonicalize memory address for dead store
1321         comparison.  Allow wider mode stores to kill narrower mode stores.
1322         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
1323         (invalidate_mems_from_set): Don't handle MEMs.
1325 2001-07-28  Kazu Hirata  <kazu@hxi.com>
1327         * config/h8300/h8300.h: Fix formatting.
1329 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
1331         * basic-block.h (EDGE_FREQUENCY): New macro.
1332         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
1333         for new BB/edges.
1334         * flow.c (find_sub_basic_blocks): Likewise.
1335         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
1336         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
1338         * predict.c (DEF_PREDICTOR): New argument FLAGS.
1339         (HITRATE): New macro.
1340         (PRED_FLAG_FIRST_MATCH): New constant.
1341         (predictor_info): New field flgags.
1342         (combine_predictions_for_insn): Use DS theory to combine
1343         probabilities; set the edge probabilities when finished.
1344         (estimate_probability): Avoid duplicated matches
1345         of LOOP_BRANCH heuristics for nested loops; update comment.
1346         * predict.def: Add flags for each prediction, set probabilities
1347         according to B&L paper.
1348         * predict.h (DEF_PREDICTOR): New argument FLAGS.
1350         * profile.c (compute_branch_probabilities):  Cleanup way the edge
1351         probabilities are computed and REG_BR_PROB notes are dropped; if
1352         values does not match, emit error.
1353         (init_branch_prob): Do error instead of warning when profile driven
1354         feedback is missing or corrupt.
1356 2001-07-27  DJ Delorie  <dj@redhat.com>
1358         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
1359         against a constant, try to adjust the compare to have the desired
1360         constant in it so that min/max optimizations happen more often.
1362 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
1364         * flow.c (last_loop_beg_note): New function.
1365         (redirect_edge_and_branch): Use it.
1366         (split_edge): Likewise.
1368         * alias.c (loop_p): Avoid uninitialized memory access.
1370         * flow.c (try_forward_edges): Avoid accessing freed memory.
1372         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
1373         variable access.
1375 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
1377         * doc/install.texi (Configuration): Properly link the host
1378         specific instructions also when generating HTML.
1380 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
1382         * flow.c (redirect_edge_and_branch_force): Test
1383         target->global_live_at_start.
1385 2001-07-26  Richard Henderson  <rth@redhat.com>
1387         * simplify-rtx.c (avoid_constant_pool_reference): Export.
1388         * rtl.h (avoid_constant_pool_reference): Declare it.
1389         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
1390         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
1392 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
1394         * rtl.h (cleanup_barriers): Declare.
1395         * jump.c (cleanup_barriers): New function.
1396         * toplev.c (rest_of_compilation): Call cleanup_barriers
1397         before loop optimizer and after bb_reorder.
1399         * flow.c (back_edge_of_syntactic_loop_p): New.
1400         (split_edge): Use it.
1402 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1404         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
1406 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
1408         * cse.c (cse_process_notes): Replace any registers if the address
1409         remains valid.
1411 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
1413         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
1414         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
1415         (propagate_block): Update prototype.
1416         * flow.c (update_life_info): Simplify the CFG and
1417         recalculate the global regs which are alive when
1418         removing dead code during a global update.
1419         (propagate_block): Return non-zero if an INSN is
1420         deleted.
1422 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1424         * Makefile.in (LIBICONV): Define.
1426 2001-07-26  Catherine Moore  <clm@redhat.com>
1428         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
1429         of conditional to avoid tree checking errors.
1431 2001-07-26  Kazu Hirata  <kazu@hxi.com>
1433         * regmove.c (regmove_optimize): Don't replace a reg with
1434         another reg of a different mode.
1436 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
1438         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
1439         limit length of dependancy flush list.
1440         * params.h (MAX_PENDING_LIST_LENGTH): Define.
1441         * sched-int.h  (struct deps): Add pending_flush_length field.
1442         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
1443         has 1 element in it.
1444         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
1445         (sched_analyze): After a jump, if the pending memory flush list is too
1446         large, flush the pending lists.
1447         (init_deps): Initialize pending_flush_length to 0.
1448         * doc/invoke.texi (max_pending_list_length): Document parameter.
1450 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
1452         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
1453         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
1454         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
1456 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1458         * cpphash.h (struct_lexer_state): Delete was_skipping.
1459         Move skipping here from struct cpp_reader.
1460         * cpplex.c (parse_identifier): Update.
1461         (_cpp_lex_token): Don't skip tokens in a directive.
1462         * cpplib.c (struct if_stack): Update.
1463         (start_directive, end_directive): Don't change skipping state.
1464         (_cpp_handle_directive): Update.
1465         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
1466         (do_else, do_endif): Update; only check for excess tokens if not
1467         in a skipped conditional block.
1468         (push_conditional): Update for new struct if_stack.
1470 2001-07-26  Graham Stott  <grahams@redhat.com>
1472         * function.c (locate_and_pad_parm): Also pad initial offset
1473         so that the total argument size also includes the padding.
1475 2001-07-26  Graham Stott <grahams@redhat.com>
1477         * gensupport.c (alter_output_for_insn): Correct enable checking failure
1478         change XSTR to XTMPL.
1480         (process_one_cond_exec): Likewise
1482 2001-07-25  Richard Henderson  <rth@redhat.com>
1484         * varasm.c (assemble_variable): Create DECL_RTL before setting
1485         TREE_ASM_WRITTEN.
1487 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
1489         * predict.c (estimate_probability): Avoid duplicated predictions.
1491         * loop.c (find_and_verify_loops): Grok multiple barriers.
1493 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1495         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
1497         * dbxout.c: Consistently use putc instead of fputc.
1498         (print_wide_int): New function; call instead of direct fprintf.
1499         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
1500         (dbxout_type_fields, dbxout_type_method_1): Likewise.
1501         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
1502         (print_int_cst_octal): Likewise.
1503         (print_octal): Show we wrote characters.
1504         (dbxout_type): Set have_used_extensions in more places.
1506 2001-07-25  Catherine Moore  <clm@redhat.com>
1508         * config/v850/v850.c (v850_va_arg):  Use addr
1509         instead of valist to build incr.
1511 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
1513         * flow.c (delete_dead_jumptables): New function.
1514         (life_analyzis): Call it.
1515         * bb-reorder.c (skip_insns_after_block): Handle contradictory
1516         sequences.
1518 2001-07-25  Richard Henderson  <rth@redhat.com>
1520         * except.c (reachable_handlers): Handle a region being removed
1521         out from under a RESX.
1523 2001-07-25  Richard Henderson  <rth@redhat.com>
1525         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
1526         swap GE/GT if it is an fp comparison.
1528 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
1530         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
1531         operands.
1533 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
1535         * ssa.c (rename_insn_1): Do not wrap an assignment to a
1536         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
1537         glitch.
1539         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
1540         throw an exception.
1541         (visit_expression): When attempting to simplify an expression,
1542         retrieve any modes for arguments before they are simplified
1543         to constants.
1545 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
1546             Janis Johnson  <janis@us.ibm.com>
1548         * stmt.c (expand_goto): A nonlocal goto can be a call too.
1549         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
1550         pointer parameters to match documented usage of nonlocal_goto.
1551         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
1552         parameters to their correct order.
1553         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
1554         parameters to their correct order.
1556 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
1558         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
1560 2001-07-25  Jan Hubicka  <jh@suse.cz>
1561             Richard Henderson  <rth@redhat.com>
1563         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
1564         the sequence.
1565         (make_edges): New argument update_p; populate the edge cache if set.
1566         (find_basic_blocks): Update make_edges invocation.
1568 2001-07-24  Joel Sherrill <joel@OARcorp.com>
1570         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
1572 2001-07-24  Joel Sherrill <joel@OARcorp.com>
1574         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
1575         -Acpu and -Amachine.h.
1576         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
1577         Corrected header to say ELF not a.out.
1578         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
1579         when given -msoft-float.
1581 2001-07-24  Joel Sherrill <joel@OARcorp.com>
1583         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
1584         extra multilib parts like arm-elf.
1585         (i960-*-coff*, i960-*-rtems): Should not use collect2.
1586         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
1587         crtfini.o as extra multilib parts.
1589 2001-07-24  Joel Sherrill <joel@OARcorp.com>
1591         * configure.in: Add rtems as a supported thread model.
1592         * gthr-rtems.h: Add missing entry point __gthread_active_p.
1593         * configure: Rebuilt.
1595 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
1597         * stor-layout.c (get_mode_alignment): make it work when
1598         BITS_PER_UNIT is not a power of two.
1599         * builtins.c (get_pointer_alignment): Likewise.
1601 2001-07-24  Richard Henderson  <rth@redhat.com>
1603         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
1604         the retrieved constant into the expected mode.
1606 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
1608         * flow.c (try_simplify_condjump): Avoid duplicated edges.
1609         (verify_flow_info): Check for duplicated edges; clarify
1610         error reporting.
1612         * flow.c (block_label): Update basic_block_for_insn.
1613         (commit_edge_insertions): Call compute_bb_for_insn.
1615         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
1616         returns too.
1618         * flow.c (redirect_edge_and_branch,
1619         try_optimize_cfg): Use redirect_edge_succ_nodup
1620         (redirect_edge_succ_nodup): New.
1621         * basic_block.h (redirect_edge_succ_nodup): Declare.
1623         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
1624         after gcse.
1626 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
1628         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
1629         (try_crossjump_to_edge): Update commetns.
1630         (try_crossjump_bb): Likewise.
1632 2001-07-24  Richard Henderson  <rth@redhat.com>
1634         * combine.c (distribute_notes): Move set of need_refresh
1635         for noop_move_p down to catch all cases.
1637 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
1639         * recog.c (split_all_insns_noflow): New.
1640         * rtl.h (split_all_insns_noflow): Declare.
1641         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
1642         * m68hc11.c (m68hc11_reorg): Likewise.
1643         * sh.c (machine_dependent_reorg): Likewise.
1644         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
1645         call.
1647 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
1649         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
1650         (ashlsi3_n splitter): Likewise.
1651         (lshrsi3_n splitter): Likewise.
1653         (GOTaddr2picreg): Make const SImode.
1654         (sym_label2reg): Likewise.
1655         (symGOT2reg): Likewise.
1656         (symGOTOFF2reg) Likewise.
1658         (casesi_worker_0): Make unspec SImode.
1660 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
1662         * config/sh/sh.c (barrier_align): Check that an operand really is
1663         an insn before extracting its INSN_CODE.
1665 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
1667         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
1668         dangling else.
1670         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
1671         for SImode to prevent overflow.
1673 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
1675         * config/mips/irix6-libc-compat.c: New file.
1676         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
1677         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
1678         passing workaround.
1680 2001-07-24  lars brinkhoff  <lars@nocrew.org>
1682         * rtl.texi (REG_POINTER): Document.
1683         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
1684         QFmode, HFmode, TQFmode, QCmode, and HCmode.
1686 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
1688         * flow.c (delete_noop_moves): Do not confuse libcall regions.
1690 2001-07-23  Richard Henderson  <rth@redhat.com>
1692         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
1694 2001-07-23  Kazu Hirata  <kazu@hxi.com>
1696         * config/h8300/h8300-protos.h: Add a prototype for
1697         general_operand_dst_push.
1698         * config/h8300/h8300.c (general_operand_dst_push): New.
1699         * config/h8300/h8300.h (OK_FOR_T): New.
1700         (EXTRA_CONSTRAINT): Use it.
1701         * config/h8300/h8300.md (movqi_push): Remove and integrate into
1702         the existing movqi pattern.
1703         (movhi_push): Likewise.
1705         * reload.c: Fix comment typos.
1707 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
1709         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
1711 2001-07-23  H.J. Lu  (hjl@gnu.org)
1713         * doc/extend.texi: Update __builtin_return_address and
1714         __builtin_frame_address.
1716 2001-07-23  Richard Henderson  <rth@redhat.com>
1718         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
1719         before CSE.
1720         * config/i386/i386.md: New setcc+movzbl peephole2.
1722 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1724         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
1725         * objc/objc-act.c: Include debug.h.
1726         (synth_module_prologue): Save and restore debug hooks too.
1728 2001-07-23  lars brinkhoff  <lars@nocrew.org>
1730         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
1731         and C4X_FLOAT_FORMAT.
1732         (BOOL_TYPE_SIZE): Document.
1734 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
1736         * unroll.c (loop_iterations): Fix miscalculation of initial
1737         giv offset.
1739 2001-07-13  Andrew Haley  <aph@redhat.com>
1741         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
1742         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
1743         * config/sh/sh.c (sh_can_redirect_branch): New function.
1744         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
1745         * reorg.c (steal_delay_list_from_target): Use
1746         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
1748 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
1750         * flow.c (try_simplify_condjump): Unlink insn chain on
1751         fallthru edge; use can_fallthru.
1753 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
1755         * basic-block.h (find_sub_basic_block): Declare.
1756         * flow.c (make_edges): New arguments MIN and MAX;
1757         (find_sub_basic_blocks): Revamp to use make_edges
1758         and purge_dead_edges.
1759         (find_basic_blocks): Update call of find_sub_basic_block.
1761         * recog.c (split_all_insns): Always expect CFG to be consistent;
1762         call find_sub_basic_blocks in case something has changed.
1763         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
1764         has been built.
1766         * basic-block.h (delete_noop_moves): Declare.
1767         * combine.c (combine_instructions): Call it.
1768         (recog_for_combine): Tolerate noop moves
1769         (distribute_notes): Force refresh when register dies at noop move.
1770         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
1771         too.
1772         (life_analysis): Update delete_noop_moves call.
1773         (set_noop_p): Move too ...
1774         * rtlanal.c (noop_move_p): ... here.
1775         * rtl.h (noop_move_p): Declare.
1777         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
1778         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
1779         after combine.
1780         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
1781         (cprop_jump): Likewise; call purge_dead_edges if substitution suceeded.
1783 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
1785         * reload.c (push_reload): Fix typo in comment.
1786         (find_reloads_address): Ditto.
1787         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
1789 2001-07-22  Richard Henderson  <rth@redhat.com>
1791         * flow.c: Grammar check and clarify a lot of comments.
1792         (try_simplify_condjump): Rename variables to be clearer.
1793         (try_forward_edges): Skip complex and fallthru edges.
1794         Rearrange tests to avoid duplicate checks.
1795         (flow_find_cross_jump): Likewise.
1796         (outgoing_edges_match): Allow match if neither branch has
1797         probability data.  Loosen probability match to 5%.
1798         (try_crossjump_to_edge): Hoist repeated indirection into
1799         local variables.
1800         (try_crossjump_bb): Don't check complex edges.  Eliminate
1801         redundant crossjump tests.
1802         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
1803         checks before more expensive checks.
1805 2001-07-22  Richard Henderson  <rth@redhat.com>
1807         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
1808         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
1809         arguments.
1811 2001-07-22  Richard Henderson  <rth@redhat.com>
1813         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
1814         (const_sint32_operand): Likewise.
1815         * m68k.md (anon mulsi pattern): Use const_int_operand not
1816         const_sint32_operand.
1817         (umulsi3_highpart): Zero extend a constant input.
1818         (smulsi3_highpart): Don't bother checking SImode constant.
1819         (const_umulsi3_highpart): Give op3 DImode.
1820         (const_smulsi3_highpart): Likewise.
1822 2001-07-22  Richard Henderson  <rth@redhat.com>
1824         * flow.c (split_block): Make sure bb_note is included in the
1825         new block when splitting before a label.
1827 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
1829         * basic-block.h (redirect_edge_and_branch_force,
1830         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
1831         * flow.c (redirect_edge_and_branch_force,
1832         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
1833         (redirect_edge_and_branch_force): Fix copying of lifeness information.
1834         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
1835         * ifcvt.c (dead_or_predictable): Take BB as an new destionation
1836         instead of label; update CFG after transformation.
1837         (find_if_case_1): Update call, use redirect_edge_and_branch_force
1838         for finishing the transformation; handle even case where ELSE
1839         does not follow THEN.
1840         (find_if_case_2): Update call of dead_or_predictable; simplify
1841         CFG update.
1843         * emit-rtl.c (split_branch_probability): New global variable.
1844         (try_split): Take care to set split_branch_probability and
1845         create REG_BR_PROB note for new jump insns.
1846         * md.texi (define_split): Document new feature.
1848         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
1850 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
1852         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
1853         (asm_out_file): Remove redundant declaration.
1854         (assemble_asm): Remove old #if 0 block.
1855         (assemble_variable): Remove end of function; debug output is
1856         now handled with global_decl.  Remove old #if 0 block.  Update.
1857         Remove saved_in_section and associated no-op code.
1858         * Makefile.in (varasm.o): Correct dependencies.
1860 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
1862         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
1863         the definition in defaults.h.
1865 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
1867         * jump.c: Update comments.
1868         (delete_barrier_successors, delete_unreferenced_labels,
1869         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
1870         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
1871         jump_optimize, jump_optimize_minimal): Kill.
1872         (rebuild_jump_labels): Move code from jump_optimize_1.
1873         (purge_line_number_notes): Likewise.
1874         (copy_loop_headers): Likewise.
1875         * reg-stack.c: Update comment.
1876         * stmt.c: Likewise.
1877         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
1878         JUMP_AFTER_REGSCAN): Kill.
1879         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
1880         purge_line_number_notes and copy_loop_headers.
1882 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
1883            Richard Henderson  <rth@redhat.com>
1885         * dbxout.c (dbxout_global_decl): New.
1886         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
1887         * sdbout.c (sdbout_finish): New.
1888         (sdbout_debug_hooks): Use it, add comments.
1889         (sdbout_global_decl): Defer initialised public vars to
1890         sdbout_finish.
1891         * varasm.c (assemble_variable): Don't output debug information
1892         for file-scope variables.
1894 2001-07-22  Richard Henderson  <rth@redhat.com>
1896         * config/alpha/alpha.c (get_trap_mode_suffix): New.
1897         (get_round_mode_suffix): New.
1898         (print_operand): Use them for [/].  Remove support for [&'`()+].
1899         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
1900         * config/alpha/alpha.md (attr round_suffix): New.
1901         (attr trap_suffix): New.
1902         (all insns): Set them appropriately.  Use %/ instead of the
1903         myriad punctuators.
1905 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
1907         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
1909 2001-07-22  Richard Henderson  <rth@redhat.com>
1911         * regrename.c (regrename_optimize): Compute nregs for each
1912         potential target register.
1914 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
1915            Richard Henderson  <rth@redhat.com>
1917         * dbxout.c (dbxout_global_decl): New.
1918         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
1919         * sdbout.c (sdbout_finish): New.
1920         (sdbout_debug_hooks): Use it, add comments.
1921         (sdbout_global_decl): Defer initialised public vars to
1922         sdbout_finish.
1923         * varasm.c (assemble_variable): Don't output debug information
1924         for file-scope variables.
1926 2001-07-21  H.J. Lu  (hjl@gnu.org)
1928         * config/mips/mips.c (mips_cpu): Moved into ...
1929         (override_options): Here.
1931         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
1932         mips_tune.
1933         (mips_cpu): Removed.
1935 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1937         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
1938         ("iorqi3"): Likewise.
1939         ("xorqi3"): Likewise.
1940         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
1941         ("*subhi3_sp): Likewise.
1942         ("*subhi3"): Likewise.
1943         ("extendhisi2"): Accept D, X and Y as source operand to avoid
1944         reload problems.
1946 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
1948         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
1949         * config/freebsd.h: Likewise.
1950         * config/linux.h: Likewise.
1951         * config/openbsd.h: Likewise.
1952         * config/alpha/linux-elf.h: Likewise.
1953         * config/arm/linux-elf.h: Likewise.
1954         * config/d30v/d30v.h: Likewise.
1955         * config/fr30/fr30.h: Likewise.
1956         * config/ia64/aix.h: Likewise.
1957         * config/ia64/ia64.h: Likewise.
1958         * config/mips/linux.h: Likewise.
1959         * config/pj/pj.h: Likewise.
1960         * config/rs6000/linux.h: Likewise.
1961         * config/sparc/linux.h: Likewise.
1962         * config/sparc/linux64.h: Likewise.
1964 2001-07-20  Bruce Korb  <bkorb@gnu.org>
1966         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
1967         because getc() and char* may disagree on signedness.
1969 2001-07-20  Richard Henderson  <rth@redhat.com>
1971         * doc/rtl.texi (REG_DEAD): Update for current semantics.
1973         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
1974         insns to delete in the presence of cc0 in a jump insn.
1976 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
1977                                Jan Hubicka  <jh@suse.cz>
1979         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
1980         of doing the change by hand.
1982 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
1984         * rtlanal.c (set_noop_p): Return true for noop jumps.
1986         * expr.c (emit_single_push_insn): Add call to push expander.
1987         * expr.h (optab_index): Add OTI_push
1988         (push_optab): New constant.
1989         * genopinit.c (optabs): Add push_optab.
1990         * optabs.c (init_optab): Init push optab.
1991         * md.texi (push??1): Document
1993 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1995         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
1996         expand to emit the pattern; put a REG_INC note for push/pop
1997         instructions.
1998         ("movdf", "movdf_internal"): Likewise.
1999         ("movsi", "movsi_internal"): Likewise.
2000         ("movsf", "movsf_internal"): Likewise.
2001         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
2003 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2005         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
2006         gen_highpart.
2008 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
2010         * params.def: Change default max inline insns to 100.
2012 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
2014         * combine.c (combine_simplify_rtx): Generate a new shift operation
2015         when simplifying the first operand of a (neg (ashift)) expression.
2017 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
2019         * regclass.c (N_REG_INTS): Use only 32 bits per element.
2021 2001-07-20  Kelley Cook  <kelley.cook@home.com>
2023         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
2024         information.   Move rest into ...
2025         (*-*-solaris): ... here.  Eliminate redundant information and
2026         reword necessary packages section.  Delete 4.x assembler bug info.
2027         (sparc-sun-*): Merge into ...
2028         (sparc-sun-sunos*): here.
2030 2001-07-20  Catherine Moore  <clm@redhat.com>
2032         * config/v850/v850.md (casesi): Generate LABEL_REF
2033         with Pmode.
2035 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
2037         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
2038         * i386.c (ix86_zero_extend_to_Pmode): Make global.
2039         * i386.md (strclrsi expander): Use it.
2041 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
2043         * integrate.c (copy_insn_list): handle
2044         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
2045         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
2046         identically as to CODE_LABEL.
2048         * fold-const (fold): Convert A/B/C to A/(B*C) and
2049         A/(B/C) to (A/B)*C
2051         * except.c (connect_post_landing_pads): Delete the RESX insns.
2053 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
2055         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
2057         * config/mips/mips.md (nmadd/nmsub): Use macro.
2059 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
2061         * cppinit.c (remove_dup_dir): Make static.
2062         (remove_dup_dirs): Make static. Only warn about preempting a
2063         system directory with a non-system directory.
2065 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
2067         * ifcvt.c (noce_try_store_flag_constants): Correct order
2068         of parameters to trunc_int_for_mode.
2070 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
2072         * reorg.c (fill_simple_delay_slots): If an instruction might throw
2073         an exception that will be caught within this function, do not fill
2074         its delay slot with any subsequent instruction.
2076 2001-07-19  Steve Ellcey <sje@cup.hp.com>
2078         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
2079         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
2080         pointer extension instruction.
2081         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
2082         * simplify-rtx.c (simplify_unary_operation) Likewise.
2083         * explow.c (convert_memory_address) Check value of
2084         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
2085         less than zero.
2086         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
2087         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
2088         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
2089         Add Multilib Support.
2090         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
2091         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
2092         Add Multilib Support.
2093         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
2094         support.
2095         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
2096         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
2097         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
2099 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
2101         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
2102         old and new operands in `<', `3' and `b'.
2104 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2106         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
2107         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
2108         (toplev.o): Don't depend on xcoffout.h.
2109         * c-decl.c: Include debug.h
2110         (duplicate_decls): Use debug hook.
2111         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
2112         (dbx_debug_hooks, xcoff_debug_hooks): Update.
2113         (dbxout_types): Remove.
2114         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
2115         * debug.c (do_nothing_debug_hooks): Update.
2116         (debug_true_tree, debug_nothing_rtx): New.
2117         * debug.h (struct rtx_def): New.
2118         (struct gcc_debug_hooks): New hooks ignore_block,
2119         outlining_inline_function and label.
2120         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
2121         dwarf2out_frame_finish): New.
2122         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
2123         Make static, update prototype.
2124         (dwarf2_debug_hooks): Update.
2125         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
2126         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
2127         * dwarfout.c (dwarf_debug_hooks): Update.
2128         * emit-rtl.c: Include debug.h.
2129         (remove_unnecessary_notes): Use debug hook.
2130         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
2131         (final_scan_insn): Use debug hook.
2132         * integrate.c (output_inline_function): Use debug hook.
2133         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
2134         (sdb_debug_hooks): Update.
2135         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
2136         * toplev.c: Don't include xcoffout.h.
2137         (note_outlining_of_inline_function, debug_ignore_block): Remove.
2138         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
2139         Remove.
2140         * tree.h (dwarf2out_do_frame): Remove.
2142 2001-07-19  Catherine Moore  <clm@cygnus.com>
2144         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
2146 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
2148         * reload1.c (eliminate_regs_in_insn): When updating a set
2149         to the frame pointer to the hardware frame pointer, perform
2150         the update always not just when REPLACE is set.
2152         * reload1.c (choose_reload_regs): Don't inherit a reload
2153         that crosses multiple registers if registers past the first
2154         don't fit in the desired class.
2156         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
2157         when negating constants.
2159 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
2161         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
2162         * doc/tree.texi: Ditto.
2164 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
2165             Jakub Jelinek  <jakub@redhat.com>
2167         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
2168         (extract_cie_info): Handle "eh" augmentation properly,
2169         remember eh_ptr.
2170         (struct frame_state, __frame_state_for): New.
2172 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2174         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
2175         HANDLE_SYSV_PRAGMA): Define.
2176         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
2177         previous args.
2178         (copy_object): Caller changed.
2180 2001-07-19  Andreas Schwab  <schwab@suse.de>
2182         * configure.in (assembler dwarf2 debug_line support): Define nop
2183         insn for m68k.
2184         * configure: Regenerated.
2186 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2188         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
2189         dwarfout.h.
2190         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
2191         to conditionally compiled block.
2192         (dbx_debug_hooks, xcoff_debug_hooks): Update.
2193         * dbxout.h (dbxout_function): Remove.
2194         * debug.c (do_nothing_debug_hooks): Update.
2195         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
2196         global_decl, deferred_inline_function.
2197         * dwarf2out.c (dwarf2_debug_hooks): Update.
2198         (dwarf2out_global_decl): New.
2199         * dwarfout.c: Don't include dwarfout.h.
2200         (dwarfout_global_decl, dwarfout_function_decl,
2201         dwarfout_deferred_inline_function): New.
2202         (dwarf_debug_hooks): Update.
2203         * dwarfout.h: Remove.
2204         * final.c: Don't include dwarfout.h.
2205         * sdbout.c (sdbout_global_decl): New.
2206         (sdbout_debug_hooks): Update.
2207         * toplev.c: Don't include dwarfout.h.
2208         (check_global_declarations, rest_of_compilation): Use new debug hooks.
2209         (note_deferral_of_defined_inline_function): Remove.
2210         * toplev.h (note_deferral_of_defined_inline_function): Remove.
2211         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
2212         * ch/lex.c: Don't include dwarfout.h.
2213         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
2214         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
2215         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
2216         * cp/optimize.c: Include debug.h.
2217         (maybe_clone_body): Use debug hook.
2218         * cp/semantics.c: Include debug.h.
2219         (expand_body): Use debug hook.
2220         * po/POTFILES.in: Remove dwarfout.h.
2222 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
2224         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
2225         * c-parse.in (yyerror, _yylex): Similarly.
2226         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
2227         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
2228         Update comments.
2229         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
2230         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
2232 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
2234         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
2235         in-class declaration at -g1.  Fixes c++/2814.
2237 2001-07-18  Richard Henderson  <rth@redhat.com>
2239         * doc/md.texi (reload_in/out): Document restrictions in predicates
2240         and constraints for these patterns.  Document empty string matching
2241         ALL_REGS.
2243 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
2245         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
2247 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
2249         * cse.c: Undo my previous patch.
2251 2001-07-18  Tom Tromey  <tromey@redhat.com>
2253         For PR java/2812:
2254         * configure: Rebuilt.
2255         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
2256         instead.
2257         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
2259 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
2260                                Jan Hubicka  <jh@suse.cz>
2262         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
2263         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
2264         * jump.c (mark_jump_label): Do not forward branches.
2266 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
2268         * cse.c (delete_trivially_dead_insns): Delete the libcall block
2269         when return value is unused.
2271 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
2273         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
2275 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
2277         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
2278         on error.  We can't blindly return the result of
2279         pthread_mutex_trylock because it returns a positive number on
2280         error, while we must return -1 on error.
2281         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
2282         fixes.
2283         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
2285 2001-07-18  Andreas Jaeger  <aj@suse.de>
2287         * integrate.c (output_inline_function): Correct type of debug_hooks.
2289 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
2291         * combine.c (combine_simplify_rtx): DIV can be treated
2292         associatively for floats if unsafe math optimisations are enabled.
2294 2001-07-17  Richard Henderson  <rth@redhat.com>
2296         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
2298 2001-07-17  Richard Henderson  <rth@redhat.com>
2300         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
2301         don't force the function address into a register.
2302         (expand_call, emit_library_call_value_1): Update callers.
2303         * builtins.c (expand_builtin_apply): Likewise.
2304         * expr.h (prepare_call_address): Update decl.
2306 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
2308         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
2309         config directory.
2310         * config/i386/chorus.h: Move up.
2311         * config/sparc/chorus.h: Likewise.
2312         * config/rs6000/chorus.h: Likewise.
2313         * config/chorus.h: Moved here.
2315 2001-07-17  Andreas Schwab  <schwab@suse.de>
2317        * configure.in  (assembler eh_frame optimization): Handle big
2318        endian.
2319        * configure: Regenerated.
2321 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
2323         * expr.c (epxand_expr): Convert divisions into multiplications by
2324         reciprocals if -ffast-math.
2326 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
2328         * dbxout.c (dbxout_really_begin_function): Rename to
2329         dbxout_begin_function.
2330         (dbx_debug_hooks, xcoff_debug_hooks): Update.
2331         (dbxout_begin_function): Remove.
2332         (dbxout_function): Update.
2333         (dbxout_source_line): Update prototype.
2334         * dbxout.h (dbxout_begin_function): Remove.
2335         * debug.c (do_nothing_debug_hooks): Update.
2336         (debug_nothing_tree): Update.
2337         (debug_nothing_charstar_rtx): Remove.
2338         * debug.h (union tree_node): Declare.
2339         (struct rtx_def): Remove.
2340         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
2341         begin_function.  Change source_line prototype.
2342         (debug_nothing_tree): New.
2343         (debug_nothing_charstar_rtx): Delete.
2344         (dwarf2out_begin_prologue): Moved from ...
2345         * tree.h: ... here.
2346         * dwarf2out.c (dwarf2_debug_hooks): Update.
2347         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
2348         debug info, call dwarf2out_source_line.
2349         (dwarf2out_souce_line): Update prototype.
2350         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
2351         Change prototype, make static.
2352         (dwarfout_source_line): Update prototype.
2353         (dwarf_debug_hooks): Update.
2354         * dwarfout.h (dwarfout_begin_function): Remove.
2355         * final.c (final_start_function, final_scan_insn): Use appropriate
2356         debug hooks, update to use notice_source_line.
2357         (output_source_line): Rename notice_source_line.  Don't call the
2358         source_line debug hook.
2359         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
2360         make static, update prototype.
2361         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
2362         prototype.
2363         (sdbout_end_prologue): New.
2364         (sdbout_source_line): Update prototype.
2365         (sdbout_debug_hooks): Update.
2366         (sdbout_symbol): Remove unused var.
2367         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
2368         Delete.
2369         * varasm.c: Include debug.h.
2370         (assemble_start_function): Use begin_function debug_hook.
2371         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
2372         update with prototype.
2373         (xcoffout_source_line): Update prototype.
2374         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
2375         update prototype.
2376         (xcoffout_source_line): Update prototype.
2378 2001-07-17  Richard Henderson  <rth@redhat.com>
2380         * c-typeck.c (build_binary_op): Do not shorten unsigned
2381         right shift after sign extension.
2383 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
2385         * combine.c (combine_simplify_rtx): Attempt to simplify
2386         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
2388         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
2389         (simplify_binary_operation, simplify_unary_operation,
2390          simplify_relational_operation): Use it.
2392         * combine.c (combine_simplify_rtx): Don't do associative law
2393         on divisions; allow associative law on floats.
2395 2001-07-17  H.J. Lu <hjl@gnu.org>
2396             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
2398         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
2399         ASM_OUTPUT_WEAK_ALIAS are defined.
2400         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
2401         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
2402         Moved ...
2403         * config/mips/iris5.h: ... here.
2404         (HANDLE_SYSV_PRAGMA): Defined as 1.
2405         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
2406         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
2407         symbol.
2409 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
2411         * c-parse.in (all_prefix_attributes): New variable.
2412         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
2413         (maybe_resetattrs): New production.
2414         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
2415         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
2416         notype_initdcl, nested_function, notype_nested_function,
2417         component_decl, components, components_notype,
2418         component_declarator, component_notype_declarator,
2419         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
2420         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
2421         after a comma being applied to more than one declarator.
2422         * doc/extend.texi (Attribute Syntax): Update.  Remove
2423         documentation of bugs that are no longer present.
2425 2001-07-13  Eric Christopher  <echristo@redhat.com>
2427         * config/mips/mips.h: Change TUNE_MIPS* options to use
2428         mips_tune.
2429         (EXTRA_SPECS): Add cc1_cpu_spec.
2430         * config/mips/mips.md (muldf3): Fix typo.
2432 2001-07-16  Richard Henderson  <rth@redhat.com>
2434         * config/m68k/m68k.c: Include expr.h and reload.h.
2435         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
2436         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
2438 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
2439             Richard Henderson  <rth@redhat.com>
2441         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
2442         (insn_live_p): Fix fall off end of function.
2443         (dead_libcall_p): Remove COUNTS argument; update callers.
2444         (delete_trivially_dead_insns): Remove unused variables.
2446 2001-07-17  Andreas Jaeger  <aj@suse.de>
2448         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
2449         x86-64 pic support.
2451         * lcm.c (optimize_mode_switching): Avoid warning for unused
2452         variable if !NORMAL_MODE.
2454         * flow.c (try_crossjump_to_edge): Remove unused variable.
2456 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2458         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
2459         atexit declaration in stdlib.h.
2461 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
2463         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
2465 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
2467         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
2468         * except.c (finish_eh_generation): Update call of cleanup_cfg;
2469         do rebuild_jump_labels instead of jump_optimize
2470         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
2471         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
2472         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
2474         * flow.c: Include timevar.h
2475         (find_basic_block): Push/pop timevar;
2476         (cleanup_cfg): Likewise.
2477         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
2478         * Makefile: Add dependencies on timevar.h
2480         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
2481         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
2483         * rtl.h (delete_trivially_dead_insns): Add new parameter.
2484         * toplev.c (rest_of_compilation): Update calls.
2485         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
2486         (delete_trivially_dead_insns): ... here; accept new argument
2487         preserve_basic_blocks; preserve basic blocks if set.
2489         * reg-stack.c (stack_regs_mentioned): Return 0 if
2490         stack_regs_mentioned_data is not initialized.
2491         (reg_to_stack): Make stack_regs_mentioned survive after the
2492         reg-stack is completted; do not call cleanup_cfg.
2493         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
2494         make cleanup_cfg after bb-reorder to output to debug file.
2496 2001-07-16  Richard Henderson  <rth@redhat.com>
2498         * regclass.c (init_reg_sets): Use only 32 bits per initializer
2499         from int_reg_class_contents.
2501 2001-07-16  Richard Henderson  <rth@redhat.com>
2503         * hard-reg-set.h (regs_invalidated_by_call): Declare.
2504         * regclass.c (regs_invalidated_by_call): Move from cse.c.
2505         (init_reg_sets_1): Move initialization from cse_main.
2506         * cse.c (regs_invalidated_by_call): Move to regclass.c.
2507         (cse_main): Move its initialization also.
2508         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
2509         * flow.c (propagate_one_insn): Likewise.
2510         * gcse.c (compute_hash_table): Likewise.
2511         (compute_kill_rd, compute_store_table): Likewise.
2512         * sched-deps.c (sched_analyze_1): Likewise.
2514 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
2516         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
2517         gen_rtx_SET.
2519 2001-07-16  Steve Ellcey <sje@cup.hp.com>
2521         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
2522         in if statement so we don't access undefined memory.
2524 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
2526         * gcse.c: Update comment at top.
2527         Update comment on mem handling.
2528         mem_last_set, mem_first_set, mem_set_in_block: gone.
2529         Declaration of reg_set_info: gone.
2530         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
2531         pointless with load_killed_in_block_p (they are *more*
2532         conservative then it, not less, and less accurate).
2533         (oprs_not_set_p): Ditto.
2534         (alloc_gcse_mem): Don't allocate mem_set_in_block
2535         (free_gcse_mem): Don't free it, either.
2536         (record_last_mem_set_info): Update comment in front, remove
2537         mem_*set_* stuff. Note the reason we don't handle stores directly
2538         here.
2539         (compute_hash_table): Update comments to reflect reality. Remove
2540         mem_*set_* references.
2541         (reset_opr_set_tables): Remove mem_*set_* references.
2542         (mark_call): Ditto.
2543         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
2544         (mark_clobber): Ditto (on both parts, we double set here too).
2545         (expr_killed_p): Remove mem_set_in_block test.
2546         (compute_transp): Remove mem_set_in_block test.
2548         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
2549         of edge, and removal of phi alternative to dump file.
2550         (ssa_ccp_substitute_constants): Add note about register now being
2551         constant, and which uses were replaced in what insns to dump file.
2553 2001-07-16  Andreas Jaeger  <aj@suse.de>
2555         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
2556         variables of type HOST_WIDEST_INT.
2558         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
2559         (__bb_exit_func): Correct type of count_max to avoid overflow.
2560         (num_digits): Handle long long argument.
2562         * combine.c (gen_lowpart_for_combine): Remove unused variable.
2564 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
2566         * output.h (sdb_begin_function_line): Restore as an extern
2567         variable.
2568         * sdbout.c (sdb_begin_function_line): Make extern.
2570 2001-07-15  Richard Henderson  <rth@redhat.com>
2572         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
2573         * genrecog.c (maybe_both_true_mode): New.
2574         (maybe_both_true_2): Use it.
2575         (write_switch): Don't put Pmode in a switch.
2576         * rtl.c (mode arrays): Don't explicitly size them.
2578 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
2580         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
2581         handling; move unconditional splitting before mode switching.
2583         * i386.md (type): Add fistp type.
2584         (i387, length_attr, scheduling definitions): Handle this type.
2585         (fix_trunc?f?i2): Revamp to use mode switching.
2586         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
2587         * i386.h (fp_cw_mode): New enum
2588         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
2589         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
2591 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2593         * Makefile.in (integrate.o): Add debug.h.
2594         * integrate.c (debug.h): Add.
2595         (output_inline_function): Save, reset, and restore debug_hooks.
2597 2001-07-15  Richard Henderson  <rth@redhat.com>
2599         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
2600         instead of COMPARE for the EQUIV expression.
2602 2001-07-15  Richard Henderson  <rth@redhat.com>
2604         * flow.c (redirect_edge_and_branch_force): Initialize
2605         global_live_at_start and global_live_at_end.
2606         (allocate_bb_life_data): Export.
2607         * basic-block.h (allocate_bb_life_data): Declare.
2608         * toplev.c (rest_of_compilation): Call it.
2610 2001-07-15  Richard Henderson  <rth@redhat.com>
2612         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
2613         (alpha_tablejump_best_label): New.
2614         * config/alpha/alpha-protos.h: Declare them.
2615         * config/alpha/alpha.md: Use braced strings for code blocks.
2616         (tablejump_osf): Break out add with r29.
2617         (tablejump_osf_internal): Remove.
2618         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
2619         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
2621 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
2623         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
2624         of the movable.
2626         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
2628         * i386-protos.h (ix86_split_fp_branch): Update prototype.
2629         (ix86_fp_jump_nontrivial_p): New.
2630         * i386.md (fp_jcc_?): Update call of split_fp_branch;
2631         use ix86_fp_jump_nontrivial_p.
2632         * i386.c (ix86_fp_jump_nontrivial_p): New.
2633         (ix86_split_fp_branch): Accept code instead of rtx.
2634         (ix86_expand_compare): Expand comparison early in case
2635         doing so is resonably cheap.
2637 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
2639         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
2640         not 'machine'.
2641         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
2642         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
2644 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2646         * dbxout.c (dbxout_source_line): Make static, update prototype.
2647         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
2648         (dbxout_init, dbxout_finish, dbxout_source_line,
2649         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
2650         * dbxout.h (dbxout_source_line): Delete.
2651         * debug.c (debug_nothing_file, debug_nothing_file_int,
2652         debug_nothing_file_charstar_rtx): New.
2653         (do_nothing_debug_hooks): Update.
2654         (debug_nothing_void, debug_nothing_charstar_rtx,
2655         dwarf2out_end_epilogue): New.
2656         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
2657         * debug.h (struct rtx_def): Declare.
2658         (gcc_debug_hooks): New hooks source_line, end_epilogue
2659         and end_function.
2660         (debug_nothing_void, debug_nothing_charstar_rtx,
2661         dwarf2out_end_epilogue): New.
2662         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
2663         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
2664         (dwarf2_debug_hooks): Update.
2665         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
2666         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
2667         * dwarf2out.h (dwarf2out_source_line): Remove.
2668         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
2669         Make static, update prototype.
2670         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
2671         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
2672         (dwarf_debug_hooks): Update.
2673         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
2674         dwarfout_end_function): Remove.
2675         * final.c (profile_function): Use debug hooks for ending functions
2676         and epilogues.
2677         (output_source_line, final_end_function): Update prototype,
2678         use debug hooks.
2679         (final_start_function, final_scan_insn): Update.
2680         * output.h (sdb_begin_function_line): Remove.
2681         (final_end_function): Update prototype.
2682         * sdbout.c (sdb_begin_function_line): Make static.
2683         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
2684         (sdbout_source_line): New.
2685         (sdbout_end_epilogue, sdbout_end_function): Make static, update
2686         prototypes.
2687         (sdb_debug_hooks): Update.
2688         (sdbout_init, sdbout_source_line,
2689         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
2690         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
2691         * toplev.c (compile_file, rest_of_compilation): Update.
2692         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
2693         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
2694         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
2695         Update for prototype changes.
2696         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
2697         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
2699 2001-07-15  Richard Henderson  <rth@redhat.com>
2701         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
2702         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
2703         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
2704         * config/alpha/alpha.c: Likewise.
2705         * config/alpha/alpha.md: Likewise.
2706         * config/alpha/alpha32.h: Likewise.
2707         * config/alpha/vms.h: Likewise.
2708         (OPEN_VMS): Remove.
2710 2001-07-14  Richard Henderson  <rth@redhat.com>
2712         * config/alpha/alpha.md: Use define_constants for unspec values.
2713         Substitute throughout.
2715 2001-07-14  Tim Josling  <tej@melbpc.org.au>
2717         * tree.def (EXPON_EXPR) remove. Never supported anyway.
2719 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2721         * pa.md: Remove unused constraints from define_split's.
2723 2001-04-14  Richard Henderson  <rth@redhat.com>
2725         * ifcvt.c (find_cond_trap): Test for exit block.
2727 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
2729         Re-install recently reverted patch.
2730         * emit-rtl.c (try_split): Update mark_jump_label call.
2731         * flow.c (find_sub_basic_blocks): Likewise.
2732         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
2733         jump_back_p): Kill.
2734         (mark_all_labels): Kill second parameter.
2735         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
2736         (rebuild_jump_labels, jump_optimize_minimal): Update call
2737         of jump_optimize_1.
2738         (jump_optimize_1): Kill crossjumping code.
2739         (mark_jump_label): Kill cross_jump parameter.
2740         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
2741         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
2742         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
2743          splitting.
2744         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
2745         DFI_bpro.
2746         (dump_file_info): Likewise.
2747         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
2748         reorganize passes to do reg-stack first, bb-reorder second.
2749         * invoke.texi (-d letters doc): Remove the jump2 pass.
2751 2001-07-14  Richard Henderson  <rth@redhat.com>
2753         * ifcvt.c (find_cond_trap): New.
2754         (find_if_header): Call it.
2755         (merge_if_block): Relax existing jump sanity check.
2756         * jump.c (jump_optimize_1): Remove conditional trap handling.
2758 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
2760         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
2761         millicode.
2762         (insn_refs_are_delayed): Correct comment.
2763         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
2764         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
2765         instead of r31.  Make associated insn !TARGET_64BIT, and
2766         provide an additional 64-bit insn that clobbers r2.
2767         (divsi3): Likewise.
2768         (udivsi3): Likewise.
2769         (modsi3): Likewise.
2770         (umodsi3): Likewise.
2772 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
2774         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
2776         * flow.c (redirect_edge_and_branch_force, split_edge,
2777         try_crossjump_to_edge): Use set_block_for_new_insns.
2778         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
2780 2001-07-13  H.J. Lu  (hjl@gnu.org)
2782         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
2783         the correct patch.
2785 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
2787         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
2789 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
2791         * c-common.c (decl_attributes): Take a pointer to the node to
2792         which attributes are to be attached, and a flags argument.
2793         * c-common.h (enum attribute_flags): New.
2794         (decl_attributes): Update prototype.
2795         * c-decl.c (start_decl, push_parm_decl, finish_struct,
2796         finish_enum, start_function): Update calls to decl_attributes.
2797         * c-parse.in (component_declarator, component_notype_declarator,
2798         label): Update calls to decl_attributes.
2800 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
2802         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
2803         * config/avr/avr.c (legitimate_address_p): Return value changed
2804         from letter to register classes. For better debugging.
2806 2001-07-13  Kazu Hirata  <kazu@hxi.com>
2808         * jump.c (reversed_comparison_code_parts): Fix comment typos.
2810 2001-07-13  H.J. Lu  (hjl@gnu.org)
2812         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
2814 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
2816         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
2817         correctly for shared configurations.
2818         * config/t-libgcc-pic:  New.
2819         * config/{i386,m68k,sparc}/t-openbsd:  New.
2820         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
2821         Support -shared.  Support debugging libraries with -g.
2822         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
2823         frame information does not emit pointer diffs.
2824         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
2825         emit pointer diffs.
2827 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
2829         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
2831 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
2833         * combine.c (try_combine): Ensure const_int pow2 is positive.
2835 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
2837         * config.gcc: Add configuration for s/390.
2838         * config/s390/s390.c: New. Subroutines for code generation.
2839         * config/s390/s390.h: New. Definitions for s/390.
2840         * config/s390/s390-protos.h: New. Prototypes.
2841         * config/s390/linux.h: New. Definitions for linux for s/390.
2842         * config/s390/linux64.h: New. Definitions for linux for zSeries.
2843         * config/s390/t-linux: New. Makefile fragment.
2844         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
2845         * config/s390/fixdfdi.h: New. Fix L_fix*di.
2847 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
2849         * emit-rtl.c (try_split): Update mark_jump_label call.
2850         * flow.c (find_sub_basic_blocks): Likewise.
2851         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
2852         jump_back_p): Kill.
2853         (mark_all_labels): Kill second parameter.
2854         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
2855         (rebuild_jump_labels, jump_optimize_minimal): Update call
2856         of jump_optimize_1.
2857         (jump_optimize_1): Kill crossjumping code.
2858         (mark_jump_label): Kill cross_jump parameter.
2859         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
2860         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
2861         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
2862          splitting.
2863         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
2864         DFI_bpro.
2865         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
2866         reorganize passes to do reg-stack first, bb-reorder second.
2867         * invoke.texi (-d letters doc): Remove the jump2 pass.
2869 2001-07-12  Steve Ellcey <sje@cup.hp.com>
2871         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
2873 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
2875         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
2876         basic blocks.
2877         (verify_flow_info): Make diagnostics prettier.
2879 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
2881         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
2883         * flow.c (outgoing_edges_match): Return early if condition reversal
2884         failed.
2886 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
2888         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
2889         (mips_move_2words): When splitting a move into two instructions,
2890         prefix the second address operand with '%D'.
2892 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
2894         * Makefile.in (final.o): Depend on debug.h.
2895         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
2896         (dbx_debug_hooks): Add new hooks.
2897         (xcoff_debug_hooks): New.
2898         * debug.c (debug_nothing_file_int_int): New.
2899         (do_nothing_debug_hooks): Update.
2900         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
2901         (debug_nothing_file_int_int): New.
2902         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
2903         static, update prototype.
2904         (dwarf2_debug_hooks): Update.
2905         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
2906         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
2907         static, update prototype.
2908         (dwarf_debug_hooks): Update.
2909         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
2910         * final.c: Include debug.h.
2911         (final_scan_insn): Use debug hooks when beginning and ending blocks.
2912         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
2913         static, update prototype.
2914         (sdb_debug_hooks): Update.
2915         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
2916         * toplev.c: Distinguish between xcoff and dbx.
2918         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
2919         Call all debug hooks, not just dwarf ones.
2921 2001-07-11  Timothy Wall  <twall@redhat.com>
2923         * config.gcc: Add configuration for AIX5/IA64.
2924         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
2925         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
2926         support prefix/suffix code.
2927         * config/ia64/t-aix: New.  Makefile fragment.
2928         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
2930 2001-07-11  Kazu Hirata  <kazu@hxi.com>
2932         * recog.c (validate_change): Fix a comment typo.
2934 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
2936         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
2937         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
2938         hooks directly.
2939         * dbxout.c (dbx_debug_hooks): Add new hooks.
2940         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
2941         make static.
2942         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
2943         make static.
2944         * dbxout.h (dbxout_start_new_source_file,
2945         dbxout_resume_previous_source_file): Delete.
2946         * debug.c (do_nothing_debug_hooks): Add new hooks.
2947         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
2948         (debug_nothing_int_charstar, debug_nothing_int): New.
2949         * debug.h (gcc_debug_hooks): New hooks define, undef,
2950         start_source_file and end_source_file.
2951         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
2952         (debug_nothing_int_charstar, debug_nothing_int): New.
2953         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
2954         the conditionally compiled section.
2955         (dwarf2out_start_source_file, dwarf2out_end_source_file,
2956         dwarf2out_define, dwarf2out_undef): Make static.
2957         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
2958         dwarf2out_define, dwarf2out_undef): Remove.
2959         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
2960         (dwarfout_start_source_file, dwarfout_end_source_file,
2961         dwarfout_define, dwarfout_undef): Make static.
2962         (dwarfout_start_source_file_check,
2963         dwarfout_end_source_file_check): New.
2964         (dwarfout_define, dwarfout_finish): Update.
2965         * dwarfout.h (dwarfout_start_new_source_file,
2966         dwarfout_resume_previous_source_file, dwarfout_define,
2967         dwarfout_undef): Remove.
2968         * sdbout.c (sdb_debug_hooks): Add new hooks.
2969         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
2970         make static.
2971         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
2972         make static, take an arg.
2973         * sdbout.h (sdbout_start_new_source_file,
2974         sdbout_resume_previous_source_file): Delete.
2975         * toplev.c (debug_start_source_file, debug_end_source_file,
2976         debug_define, debug_undef): Delete.
2977         * toplev.h (debug_start_source_file, debug_end_source_file,
2978         debug_define, debug_undef): Delete.
2980         * java/jcf-parse.c: Include debug.h.
2981         (parse_class_file): Update to use debug hooks directly.
2982         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
2984 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2986         * alias.c (set_mem_alias_set): New function.
2987         * rtl.h (set_mem_alias_set): Declare it.
2988         * builtins.c (expand_builtin_return_addr): Call it instead of
2989         using MEM_ALIAS_SET accessor.
2990         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
2991         (get_memory_rtx, expand_builtin_va_arg): Likewise.
2992         (expand_builtin_va_copy):Likewise.
2993         * caller-save.c (setup_save_areas): Likewise.
2994         * calls.c (compute_argument_addresses): Likewise.
2995         * explow.c (set_mem_attributes): Likewise.
2996         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
2997         (expand_assignment, store_constructor_field, store_field): Likewise.
2998         (expand_expr_unaligned): Likewise.
2999         * function.c (assign_stack_temp_for_type): Likewise.
3000         (put_reg_into_stack, gen_mem_addressof): Likewise.
3001         * ifcvt.c (noce_try_cmove_arith): Likewise.
3002         * reload1.c (reload, alter_reg): Likewise.
3003         * config/alpha/alpha.c (get_aligned_mem): Likewise.
3004         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
3005         (alpha_expand_unaligned_store): Likewise
3006         (alpha_expand_unaligned_load_words): Likewise.
3007         (alpha_expand_unaligned_store_words): Likewise.
3008         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
3009         (alpha_expand_epilogue): Likewise.
3010         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
3011         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
3012         * config/i386/i386.c (legitimize_pic_address): Likewise.
3013         * config/i960/i960.c (setup_incoming_varargs): Likewise.
3014         * config/ia64/ia64.c (spill_restore_mem): Likewise.
3015         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
3016         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
3017         * config/mips/mips.c (mips_va_arg): Likewise.
3018         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
3019         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
3020         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
3021         (setup_incoming_varargs, rs6000_va_arg): Likewise.
3022         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
3023         (rs6000_emit_epilogue): Likewise.
3024         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
3025         * config/sparc/sparc.c (sparc_va_arg): Likewise.
3026         * config/v850/v850.c (v850_va_arg): Likewise.
3028 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
3030         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
3031         when fallthru edge is present.
3032         (mege_blocks): Handle case where creation of jump insn
3033         is required.
3035         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
3036         CLEANUP_POST_REGSTACK): New constants.
3037         * except.c (finish_eh_generation): Update call of cleanup_cfg,
3038         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
3039         * output.h (cleanup_cfg): Update prototype.
3040         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
3041         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
3042         cleanup_cfg call; kill missleading comment.
3043         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
3044         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
3045         parameter; control optimizations performed using it.
3046         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
3047         try_crossjump_bb): New functions.
3049 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3051         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
3052         extern.
3053         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
3054         pa_output_function_prologue.
3055         * pa-protos.h (pa_output_function_prologue): New prototype.
3057 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3059         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
3060         and low to get correct sign extension in low+high test.
3062 2001-07-11  Janis Johnson <janis@us.ibm.com>
3064         * gcov.c (arcdata): Use gcov_type to fix branch percentage
3065         for large hit count.
3067         * profile.c (branch_prob): Fix .bbg info for computed gotos
3068         and C++ EH code.
3070 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
3072         * stmt.c (parse_output_constraint): New function, split out
3073         from ...
3074         (expand_asm_operands): ... here.  Use parse_output_constraint.
3075         * tree.h (parse_output_constraint): Declare it.
3077 2001-07-11  Richard Henderson  <rth@redhat.com>
3079         * bitmap.c: Comment some functions; fiddle whitespace.
3080         (bitmap_free): Don't export.
3081         (bitmap_element_allocate): Use memset.
3082         * bitmap.h (bitmap_free): Don't declare.
3084 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
3086         * gcse.c, lcm.c, sched-deps.c:
3087         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
3089         * flow.c (flow_loops_find): Free dom if we found no loops, since
3090         we aren't going to save it.
3092         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
3093         done.
3095 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
3097         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
3099 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3101         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
3102         #ifndef DWARF2_DEBUGGING_INFO.
3104 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
3106         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
3108 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
3110         * config/mips/mips.c (gen_int_relational): Tell the caller not to
3111         reverse a branch if a NE comparison is implemented with GTU.
3113 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
3114             H.J. Lu  <hjl@gnu.org>
3116         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
3117         constant addresses.
3118         (call_internal2): Likewise.
3119         (call_value_internal1): Likewise.
3120         (call_value_internal2): Likewise.
3121         (call_value_multiple_internal1): Likewise.
3122         (call_value_multiple_internal2): Likewise.
3124 2001-07-10  Kazu Hirata  <kazu@hxi.com>
3126         * calls.c (emit_library_call_value_1): Fix a comment typo.
3127         * dwarf2out.c (mem_loc_descriptor): Likewise.
3128         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
3130 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
3132         * simplify-rtx.c (simplify_subreg): Fix typo in comment
3134 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3136         * recog.c (offsettable_address_p): Handle LO_SUM case.
3137         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
3138         instead of plus_constant.
3140 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3142         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
3143         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
3145 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3147         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
3148         adjust_address_nv instead of plus_constant.
3150 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
3152         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
3153         dwarf2out.o): Depend on debug.h, wrap long lines.
3154         * dbxout.c: Include debug.h.
3155         (dbx_debug_hooks): New.
3156         (dbxout_init): Make static, take just 2 args.
3157         (dbxout_finish): Make static.
3158         * dbxout.h (dbxout_init, dbxout_finish): Delete.
3159         * debug.c: New file.
3160         * debug.h: New file.
3161         * dwarf2out.c: Include debug.h.
3162         (dwarf2_debug_hooks): New.
3163         (dwarf2out_init): Make static.
3164         (dwarf2out_finish): Make static, take 2 args.
3165         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
3166         * dwarfout.c: Include debug.h.
3167         (dwarf_debug_hooks): New.
3168         (dwarfout_init): Make static.
3169         (dwarfout_finish): Make static, take 2 args.
3170         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
3171         * sdbout.c: Include debug.h.
3172         (sdb_debug_hooks): New.
3173         (sdbout_init): Make static, take 2 args.
3174         * sdbout.h (sdbout_init): Delete.
3175         * toplev.c: Include debug.h.
3176         (debug_hooks): New.
3177         (compile_file): Set deubg_hooks based on command line options.
3178         Use the hooks unconditionally rather than conditional compilation.
3180 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
3182         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
3183         first_insn_after_basic_block_note instead.
3185         * df.c (df_bb_refs_unlink): #if 0 out for now.
3187 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
3189         * ssa.h: Add prototype for ssa_const_prop
3190         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
3191         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
3192         (ssa_fast_dce): Remove unused variable
3194 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3196         * diagnostic.c (finish_diagnostic): Rename to
3197         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
3198         calls thourghout.
3200 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
3202         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
3203         .loc support.
3205         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
3206         (dump_file): Only pad the demangled name with spaces if the
3207         mangled name was padded with spaces.
3209 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
3211         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
3212         edge detection.
3214 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3216         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
3217         extraction if no direct load if either EXPAND_CONST_ADDRESS or
3218         EXPAND_INITIALIZER.
3220         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
3221         whether can put offset inside LO_SUM to check mode alignment, not size.
3223 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
3225         * doc/tm.texi (Misc): Fix thinko.
3227 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
3229         * regmove.c (replace_in_call_usage): Fix warnings.
3230         * sched-deps.c (add_dependence): Fix warnings.
3231         * simplify-rtx.c (simplify_subreg): Likewise.
3232         Return NULL_RTX instead of NULL.
3234         * reg-stack.c (emit_swap_insn): Eliminate warnings.
3235         (subst_asm_stack_regs): Likewise.
3237         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
3238         warnings.
3240         * dwarf2out.c (output_call_frame_info): Declare i as int.
3241         (build_abbrev_table): Declare n_alloc as int.
3242         (dwarf2out_finish): Initialize die.
3243         * except.c: Declare sjlj_funcdef_number as unsigned.
3244         (connect_post_landing_pads): Declare j as unsigned.
3245         (convert_to_eh_region_ranges): Initialize call_site.
3246         (output_function_exception_table): Initialize tt_format_size.
3247         * expr.c (move_by_pieces_1): Initialize to1.
3248         (store_constructor): Initialize minelt and maxelt.
3249         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
3250         * function.c (instantiate_decls): Avoid signed/unsigned warning.
3252         * c-decl.c (combine_parm_decls): Unused, remove.
3253         * c-tree.h: Remove prototype for combine_parm_decls.
3255         * reload.c (push_reload): Fix warning.
3256         (regno_clobbered_p): Likewise.
3257         * reload1.c (replace_pseudos_in_call_usage): Likewise.
3258         (reload_combine): Likewise.
3260         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
3261         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
3262         warnings.
3263         * bitmap.c (bitmap_operation): Change user.
3264         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
3266 2001-07-10  Eric Christopher  <echristo@redhat.com>
3268         * config/mips/mips.c (override_options): Fix typo.
3270 2001-07-09  Stan Shebs  <shebs@apple.com>
3272         * target.h (struct gcc_target): New fields init_builtins and
3273         expand_builtin.
3274         * target-def.h (TARGET_INIT_BUILTINS): New macro.
3275         (TARGET_EXPAND_BUILTIN): New macro.
3276         (TARGET_INITIALIZER): Add them.
3277         * builtins.c: Include target.h.
3278         (expand_builtin): Use targetm.expand_builtin.
3279         (default_init_builtins): New function.
3280         (default_expand_builtin): New function.
3281         * expr.h (default_init_builtins): Declare.
3282         (default_expand_builtin): Declare.
3283         * c-common.c (c_common_nodes_and_builtins): Use
3284         targetm.init_builtins.
3285         * defaults.h (MD_INIT_BUILTINS): Remove.
3286         * Makefile.in (builtins.o): Depend on target.h.
3288         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
3289         (TARGET_EXPAND_BUILTIN): Define.
3290         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
3291         (MD_EXPAND_BUILTIN): Remove.
3293         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
3294         (TARGET_EXPAND_BUILTIN): Define.
3295         (c4x_init_builtins): Make endlink arg a local.
3296         (c4x_print_operand): Fix typos in adjust_address usages.
3297         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
3298         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
3299         (MD_EXPAND_BUILTIN): Remove.
3301         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
3302         (TARGET_EXPAND_BUILTIN): Define.
3303         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
3304         (ix86_init_builtins): Call new function only if TARGET_MMX.
3305         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
3306         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
3307         (MD_EXPAND_BUILTIN): Remove.
3309         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
3310         (TARGET_EXPAND_BUILTIN): Define.
3311         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
3312         (MD_EXPAND_BUILTIN): Remove.
3314         * doc/tm.texi: Document these changes.
3316 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
3318         * basic-block.h (tree_node): Forward declare if needed.
3319         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
3320         (BLOCK_HEAD_TREE): Define.
3321         (BLOCK_END_TREE): Define.
3322         (struct loops): Rename field 'tree' to 'tree_root'.
3323         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
3324         'end_tree'.
3325         (flow_loops_tree_build): Rename reference to field 'tree' to
3326         'tree_root'.
3327         (flow_loops_level_compute): Ditto.
3328         * predict.c (estimate_bb_frequencies): Ditto.
3329         * tree.h (struct tree_common): Add field 'aux'.
3331 2001-07-09  Stan Shebs  <shebs@apple.com>
3333         * config/darwin.c (darwin_encode_section_info): Don't mark any
3334         DECL_EXTERNAL node as defined.
3336 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3338         * pa.c (pa_init_machine_status, pa_mark_machine_status,
3339         pa_free_machine_status, hppa_init_pic_save): Delete.
3340         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
3341         (hppa_profile_hook): Use hppa_pic_save_rtx.
3342         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
3343         hppa_init_pic_save): Delete.
3344         (hppa_pic_save_rtx): Declare.
3345         * pa.md (call, call_value, sibcall, sibcall_value,
3346         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
3348 2001-07-09  Kazu Hirata  <kazu@hxi.com>
3350         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
3351         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
3353 2001-07-09  Andreas Jaeger  <aj@suse.de>
3355         * output.h: Add declaration of final_forward_branch_p.
3357         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
3359         * varray.c: Include errors.h for internal_error and trim_filename
3360         declarations.
3362         * Makefile.in (varray.o): Add errors.h.
3364 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
3366         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
3367         * optabs.c (have_add2_insn): Check whether the add insn chosen
3368         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
3369         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
3371 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
3373         * Makefile.in (OBJS): Add ssa-ccp.o
3374         (ssa-ccp.o): Add dependencies.
3375         * toplev.c (DFI_ssa_ccp): New dump file enum.
3376         (dump_file): Add entry for dumping after SSA CCP.
3377         (flag_ssa_ccp): New flag variable.
3378         (f_options): Add -fssa-ccp.
3379         (rest_of_compilation): Run SSA CCP if requested.
3380         * timevar.def (TV_SSA_CCP): New timevar.
3381         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
3382         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
3383         Fix minor typo in SSA DCE documentation.
3384         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
3385         Add documentation for new dump option.  Renumber dump files
3386         appropriately.
3388 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
3390         * emit-rtl.c (gen_highpart_mode): New.
3391         * rtl.h (gen_highpart_mode): Declare.
3392         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
3393         operand can be VOIDmode constant.
3395 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
3397         * flow.c (redirect_edge_and_branch_force): New.
3398         (can_fallthru): Ensure that basic blocks are succeeding.
3399         (try_optimize_cfg): Do not delete basic block if it is the last one.
3401         * flow.c (try_redirect_by_replacing_jump): Do not remove
3402         jumps with side effects, unlink chain on fallthru edge;
3403         set block for new jump instruction; avoid basic block to
3404         over by line number note.
3406         * flow.c (try_simplify_condjump): Verify that the condjump
3407         is not always falling trought.
3409         Re-install patch:
3410         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
3412         * flow.c (forwarder_block_p): Fix for fallthru blocks.
3413         (try_redirect_by_replacing_jump): Update properly the count
3414         and frequency information.
3416 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3418         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
3419         address that is a LO_SUM specially.
3420         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
3422         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
3424         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
3425         (operand_subword): Use them.
3426         (change_address_1): Renamed from change_address; new arg VALIDATE.
3427         * expr.h: Reflect above changes; change_address now macro.
3428         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
3429         making MEM.
3430         * cselib.c (add_mem_for_addr): Likewise.
3431         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
3432         * regmove.c (try_apply_stack_adjustment): Likewise.
3433         * reload.c (push_reload, make_memloc): Likewise.
3434         * reload1.c (eliminate_regs): Likewise.
3435         * simplify-rtx.c (simplify_replace_rtx): Likewise.
3436         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
3437         adjust_addess.
3438         * combine.c (make_extraction, simplify_shift_const): Likewise.
3439         (gen_lowpart_for_combine): Likewise.
3440         * cse.c (gen_lowpart_if_possible): Likewise.
3441         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
3442         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
3443         * optabs.c (gen_move_insn): Likewise.
3444         * reload1.c (alter_reg): Likewise.
3445         * simplify-rtx.c (simplify_subreg): Likewise.
3446         * stmt.c (expand_anon_union_decl): Likewise.
3447         * recog.c (validate_replace_rtx_1): Likewise.
3448         (expr.h): Include.
3449         * Makefile.in (recog.o): Add $(EXPR_H).
3450         * explow.c (stabilize): Call replace_equiv_address.
3451         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
3452         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
3454 2001-07-03  Andrew Haley  <aph@redhat.com>
3456         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
3457         the mode of the memory location.
3459 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
3461         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
3463 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
3465         * final.c (output_addr_const): Use target opening and
3466         closing parentheses.
3467         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
3468         defaults, add to TARGET_ASM_OUT.
3469         * target.h (struct gcc_target): Add open_paren and close_paren.
3470         * doc/md.texi: Update.
3471         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
3472         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
3473         TARGET_ASM_CLOSE_PAREN.
3474         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
3475         Override.
3476         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
3477         Override.
3478         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
3479         * config/a29k/a29k.h: Similarly.
3480         * config/alpha/alpha.h: Similarly.
3481         * config/arc/arc.h: Similarly.
3482         * config/arm/aof.h: Similarly.
3483         * config/arm/aout.h: Similarly.
3484         * config/avr/avr.h: Similarly.
3485         * config/c4x/c4x.h: Similarly.
3486         * config/clipper/clipper.h: Similarly.
3487         * config/convex/convex.h: Similarly.
3488         * config/d30v/d30v.h: Similarly.
3489         * config/dsp16xx/dsp16xx.h: Similarly.
3490         * config/elxsi/elxsi.h: Similarly.
3491         * config/fr30/fr30.h: Similarly.
3492         * config/h8300/h8300.h: Similarly.
3493         * config/i370/i370.h: Similarly.
3494         * config/i386/i386.h: Similarly.
3495         * config/i860/i860.h: Similarly.
3496         * config/i960/i960.h: Similarly.
3497         * config/ia64/ia64.h: Similarly.
3498         * config/m32r/m32r.h: Similarly.
3499         * config/m68hc11/m68hc11.h: Similarly.
3500         * config/m68k/m68k.h: Similarly.
3501         * config/m88k/m88k.h: Similarly.
3502         * config/mcore/mcore.h: Similarly.
3503         * config/mips/mips.h: Similarly.
3504         * config/mn10200/mn10200.h: Similarly.
3505         * config/mn10300/mn10300.h: Similarly.
3506         * config/ns32k/ns32k.h: Similarly.
3507         * config/pa/pa.h: Similarly.
3508         * config/pdp11/pdp11.h: Similarly.
3509         * config/pj/pj.h: Similarly.
3510         * config/romp/romp.h: Similarly.
3511         * config/rs6000/rs6000.h: Similarly.
3512         * config/sh/sh.h: Similarly.
3513         * config/sparc/sparc.h: Similarly.
3514         * config/v850/v850.h: Similarly.
3515         * config/vax/vax.h: Similarly.
3516         * config/we32k/we32k.h: Similarly.
3518 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
3520         * doc/c-tree.texi: Document representation of attributes.
3522 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
3524         * doc/tm.texi: Update some places for the rename of target to
3525         targetm.  Fix typo.
3527 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
3529         * target.h (struct gcc_target): Add insert_attributes.
3530         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
3531         (TARGET_INITIALIZER): Update.
3532         * tree.c, tree.h (default_insert_attributes): New function.
3533         Update comments on other default functions to refer to targetm,
3534         not target.
3535         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
3536         TARGET_INSERT_ATTRIBUTES.
3537         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
3538         * c-common.c (decl_attributes): Use targetm.insert_attributes.
3539         Don't use PRAGMA_INSERT_ATTRIBUTES.
3540         * Makefile.in (c-common.o): Depend on $(TARGET_H).
3541         * c-decl.c (start_decl, start_function): Don't call
3542         SET_DEFAULT_DECL_ATTRIBUTES.
3543         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
3544         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
3545         declare.
3546         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
3547         (c4x_check_attribute): Avoid modifying attribute list itself.
3548         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
3549         Make static.
3550         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
3551         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
3552         declare.
3553         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
3554         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
3555         Make static.
3556         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
3557         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
3558         declare.
3559         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
3560         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
3561         Adjust parameters.  Make static.
3563 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
3565         * c-common.c (decl_attributes): Only take a single attributes
3566         parameter.
3567         * c-common.h (decl_attributes): Update prototype.
3568         * c-decl.c (start_decl, start_function): Only take a single
3569         attributes parameter.  Update calls to decl_attributes.
3570         (finish_struct, finish_enum): Update calls to decl_attributes.
3571         (push_parm_decl): Expect unified list of attributes.  Update call
3572         to decl_attributes.
3573         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
3574         notype_nested_function, component_declarator,
3575         component_notype_declarator, label): Update calls to
3576         decl_attributes.
3577         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
3578         lists that are passed to push_parm_decl.
3579         * c-tree.h (start_function, start_decl): Update prototypes.
3580         * config/sh/sh-protos.h, config/sh/sh.c
3581         (sh_pragma_insert_attributes): Only take a single attributes
3582         parameter.
3583         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
3584         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
3585         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
3586         build_module_descriptor, generate_static_references,
3587         generate_strings, build_selector_translation_table,
3588         generate_descriptor_table, generate_protocols,
3589         generate_ivars_list, generate_dispatch_table,
3590         generate_protocol_list, generate_category,
3591         generate_shared_structures, really_start_method, add_objc_decls,
3592         generate_classref_translation_entry): Update calls to start_decl
3593         and start_function.
3594         (build_tmp_function_decl, start_method_def): Unify attribute lists
3595         that are passed to push_parm_decl.
3597 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3599         * final.c (no_asm_to_stream): New.
3600         (final_scan_insn): Use target structures for prologue ends
3601         and epilogue starts.
3602         * output.h (no_asm_to_stream): New.
3603         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
3604         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
3605         (TARGET_ASM_OUT): Update.
3606         * target.h (struct gcc_target): New members function_end_prologue
3607         and function_begin_epilogue.
3608         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
3609         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
3610         * config/alpha/alpha.c (output_end_prologue): Rename to
3611         alpha_output_function_end_prologue.  Use in target struct
3612         and make static.
3613         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
3614         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
3615         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
3616         ia64_output_function_end_prologue.  Use in target struct
3617         and make static.
3618         (ia64_function_prologue, ia64_funciton_epilogue): Rename
3619         mistyped prototypes.
3620         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
3621         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
3622         Delete.
3623         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
3624         an use in target struct, make static.
3625         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
3626         Delete.
3628 2001-07-08  Richard Henderson  <rth@redhat.com>
3630         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
3632 2001-07-08  Richard Henderson  <rth@redhat.com>
3634         * config/i386/i386.md: Remove constraints strings from define_split
3635         and define_peephole2 patterns.
3636         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
3637         (eh_return): Use them.
3639 2001-07-08  Richard Henderson  <rth@redhat.com>
3641         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
3642         Document MD_FALLBACK_FRAME_STATE_FOR.
3644 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3646         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
3647         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
3648         elimination.
3649         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
3651 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
3653         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
3654         of the label inside NAME as opposed to just the end of NAME.
3656 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3658         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
3659         * config/alpha/alpha.c (alpha_init_machine_status,
3660         alpha_mark_machine_status, alpha_free_machine_status): Delete.
3661         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
3662         (vms_valid_decl_attribute_p): Make static, conditionally compile.
3663         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
3665 2001-07-06  Stan Shebs  <shebs@apple.com>
3667         * target.h (targetm): Rename global from "target", so as not to
3668         conflict with local variables.
3669         * c-decl.c: Ditto.
3670         * c-typeck.c: Ditto.
3671         * final.c: Ditto.
3672         * tree.c: Ditto.
3673         * cp/decl.c: Ditto.
3674         * cp/decl2.c: Ditto.
3675         * cp/typeck.c: Ditto.
3676         * 1750a/1750a.c: Ditto.
3677         * a29k/a29k.c: Ditto.
3678         * arc/arc.c: Ditto.
3679         * arm/arm.c: Ditto.
3680         * avr/avr.c: Ditto.
3681         * clipper/clipper.c: Ditto.
3682         * convex/convex.c: Ditto.
3683         * d30v/d30v.c: Ditto.
3684         * dsp16xx/dsp16xx.c: Ditto.
3685         * elxsi/elxsi.c: Ditto.
3686         * fr30/fr30.c: Ditto.
3687         * h8300/h8300.c: Ditto.
3688         * i370/i370.c: Ditto.
3689         * i386/i386.c: Ditto.
3690         * i860/i860.c: Ditto.
3691         * i960/i960.c: Ditto.
3692         * ia64/ia64.c: Ditto.
3693         * m32r/m32r.c: Ditto.
3694         * m68hc11/m68hc11.c: Ditto.
3695         * m68k/m68k.c: Ditto.
3696         * m88k/m88k.c: Ditto.
3697         * mips/mips.c: Ditto.
3698         * ns32k/ns32k.c: Ditto.
3699         * pa/pa.c: Ditto.
3700         * pdp11/pdp11.c: Ditto.
3701         * romp/romp.c: Ditto.
3702         * rs6000/rs6000.c: Ditto.
3703         * sh/sh.c: Ditto.
3704         * sparc/sparc.c: Ditto.
3705         * vax/vax.c: Ditto.
3706         * we32k/we32k.c: Ditto.
3707         * doc/tm.texi: Update the manual to match.
3709 2001-07-06  Richard Henderson  <rth@redhat.com>
3711         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
3712         DWARF2_UNWIND_INFO not just whether it is defined.
3714 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
3716         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
3717         call to simplify_binary_operation returns a new pattern.
3719 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
3721         * glimits.h (__SHRT_MAX__): New.
3722         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
3723         (SHRT_MAX): Define in terms of __SHRT_MAX__.
3725 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
3727         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
3728         avoid warnings.
3730 2001-07-06  Richard Henderson  <rth@redhat.com>
3732         * bitmap.c (bitmap_release_memory): Move adjacent to the
3733         allocation functions.
3734         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
3735         the implementation.  Binary search for the set bit.
3736         (bitmap_union_of_diff): Allocate the temporary on the stack
3737         instead of using xmalloc.
3739 2001-07-06  Richard Henderson  <rth@redhat.com>
3741         * genrecog.c (validate_pattern): Warn for constraints in
3742         define_{expand,split,peephole2}.  Remove strict_low_part
3743         before looking up match_dup.
3745 2001-07-06  DJ Delorie  <dj@redhat.com>
3747         * doc/gcc.texi (Makefile): Rename to be a more general purpose
3748         chapter about various build hints and history.  Add section
3749         talking about the various types of native and cross builds.
3751 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
3753         * Makefile.in (final.o): Depend on target.h.
3754         * final.c: Include target.h.
3755         (default_function_pro_epilogue): New.
3756         (final_start_function): Use target structure for function prologues.
3757         (final_end_function): Use target structure for function epilogues.
3758         * fold-const.c (real_hex_to_f): Constify s and p.
3759         * output.h (default_function_pro_epilogue): New.
3760         * real.h (real_hex_to_f): Update prototype.
3761         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
3762         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
3763         (TARGET_INITIALIZER): Update.
3764         * target.h (gcc_target): Add struct asm_out.
3765         * doc/tm.texi: Update.
3767 config:
3768         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
3769         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
3770         in cpu/cpu.c, or rename old functions consistently.  Take
3771         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
3772         redundant macros and prototypes.  Make new functions static.
3774         * 1750a/1750a.c: Similarly.
3775         * 1750a/1750a.h: Similarly.
3776         * a29k/a29k-protos.h: Similarly.
3777         * a29k/a29k.c: Similarly.
3778         * a29k/a29k.h: Similarly.
3779         * arc/arc-protos.h: Similarly.
3780         * arc/arc.c: Similarly.
3781         * arc/arc.h: Similarly.
3782         * arm/arm-protos.h: Similarly.
3783         * arm/arm.c: Similarly.
3784         * arm/arm.h: Similarly.
3785         * avr/avr-protos.h: Similarly.
3786         * avr/avr.c: Similarly.
3787         * avr/avr.h: Similarly.
3788         * clipper/clipper-protos.h: Similarly.
3789         * clipper/clipper.c: Similarly.
3790         * clipper/clipper.h: Similarly.
3791         * convex/convex.c: Similarly.
3792         * convex/convex.h: Similarly.
3793         * d30v/d30v-protos.h: Similarly.
3794         * d30v/d30v.c: Similarly.
3795         * d30v/d30v.h: Similarly.
3796         * d30v/d30v.md: Similarly.
3797         * dsp16xx/dsp16xx-protos.h: Similarly.
3798         * dsp16xx/dsp16xx.c: Similarly.
3799         * dsp16xx/dsp16xx.h: Similarly.
3800         * elxsi/elxsi.c: Similarly.
3801         * elxsi/elxsi.h: Similarly.
3802         * fr30/fr30.c: Similarly.
3803         * fr30/fr30.md: Similarly.
3804         * h8300/h8300-protos.h: Similarly.
3805         * h8300/h8300.c: Similarly.
3806         * h8300/h8300.h: Similarly.
3807         * i370/i370-protos.h: Similarly.
3808         * i370/i370.c: Similarly.
3809         * i370/i370.h: Similarly.
3810         * i386/i386.c: Similarly.
3811         * i386/osf1elf.h: Similarly.
3812         * i386/osfrose.h: Similarly.
3813         * i860/i860-protos.h: Similarly.
3814         * i860/i860.c: Similarly.
3815         * i860/i860.h: Similarly.
3816         * i960/i960-protos.h: Similarly.
3817         * i960/i960.c: Similarly.
3818         * i960/i960.h: Similarly.
3819         * ia64/ia64-protos.h: Similarly.
3820         * ia64/ia64.c: Similarly.
3821         * ia64/ia64.h: Similarly.
3822         * m32r/m32r-protos.h: Similarly.
3823         * m32r/m32r.c: Similarly.
3824         * m32r/m32r.h: Similarly.
3825         * m68hc11/m68hc11-protos.h: Similarly.
3826         * m68hc11/m68hc11.c: Similarly.
3827         * m68hc11/m68hc11.h: Similarly.
3828         * m68k/crds.h: Similarly.
3829         * m68k/dpx2.h: Similarly.
3830         * m68k/m68k-protos.h: Similarly.
3831         * m68k/m68k.c: Similarly.
3832         * m68k/m68k.h: Similarly.
3833         * m68k/news.h: Similarly.
3834         * m88k/m88k-protos.h: Similarly.
3835         * m88k/m88k.c: Similarly.
3836         * m88k/m88k.h: Similarly.
3837         * mips/mips-protos.h: Similarly.
3838         * mips/mips.c: Similarly.
3839         * mips/mips.h: Similarly.
3840         * ns32k/merlin.h: Similarly.
3841         * ns32k/ns32k.c: Similarly.
3842         * ns32k/ns32k.h: Similarly.
3843         * ns32k/tek6000.h: Similarly.
3844         * pa/pa-protos.h: Similarly.
3845         * pa/pa.c: Similarly.
3846         * pa/pa.h: Similarly.
3847         * pdp11/2bsd.h: Similarly.
3848         * pdp11/pdp11-protos.h: Similarly.
3849         * pdp11/pdp11.c: Similarly.
3850         * pdp11/pdp11.h: Similarly.
3851         * romp/romp-protos.h: Similarly.
3852         * romp/romp.c: Similarly.
3853         * romp/romp.h: Similarly.
3854         * rs6000/rs6000-protos.h: Similarly.
3855         * rs6000/rs6000.c: Similarly.
3856         * rs6000/rs6000.h: Similarly.
3857         * rs6000/sysv4.h: Similarly.
3858         * sh/sh-protos.h: Similarly.
3859         * sh/sh.c: Similarly.
3860         * sh/sh.h: Similarly.
3861         * sparc/sparc-protos.h: Similarly.
3862         * sparc/sparc.c: Similarly.
3863         * sparc/sparc.h: Similarly.
3864         * vax/vax.c: Similarly.
3865         * vax/vax.h: Similarly.
3866         * vax/vms.h: Similarly.
3867         * we32k/we32k.c: Similarly.
3868         * we32k/we32k.h: Similarly.
3870 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
3872         * basic-block.h (first_insn_after_basic_block_note): Declare.
3873         * flow.c (first_insn_after_basic_block_note): Define.  Moved
3874         from...
3875         * ssa.c (first_insn_after_basic_block_note): Remove.
3876         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
3877         necessary.
3878         (ssa_eliminate_dead_code): Properly update the CFG and PHI
3879         nodes when we find a dead conditional branch.  Insert BARRIERs
3880         after any blocks with no successors, but which do not have
3881         any BARRIERs.
3883 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
3885         * varray.c (varray_check_failed): Use internal_error.
3887 2001-07-05  Andrew Haley  <aph@redhat.com>
3889         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
3890         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
3891         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
3893 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
3895         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
3896         reference if the target constant is also a SYMBOL_REF.
3898 2001-07-05  Eric Christopher  <echristo@redhat.com>
3900         * config/mips/mips.h (MASK_MIPS3900): Remove.
3901         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
3902         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
3903         (TARGET_MIPS3900): Change to use mips_arch.
3904         (TARGET_MIPS4000): New.
3905         (TARGET_MIPS4100): New.
3906         (TARGET_MIPS4300): New.
3907         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
3908         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
3909         for -mipsX.
3910         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
3911         (ISA_HAS_BRANCHLIKELY): To here.
3912         (CC1_CPU_SPEC):  New.
3913         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
3914         (mips_arch_string): Declare.
3915         (mips_arch): Declare.
3916         (TARGET_OPTIONS): Add -march and -mtune.
3918         * config/mips/mips.c (mips_arch_string): New.
3919         (mips_arch): New.
3920         (override_options): Handle -march for codegen and -mtune
3921         for scheduling. Use mips_arch. Move tx39 target default here.
3922         (mips_parse_cpu): Move error message to override_options.
3924         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
3926         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
3928         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
3929         (MIPS Options): Ditto.  Change mcpu entry to historical text.
3931 2001-07-05  H.J. Lu  (hjl@gnu.org)
3933         * config/mips/mips.c (mips_parse_cpu): New function to parse
3934         -march=*/-mcpu=*.
3936 2001-07-05  Jim Wilson  <wilson@redhat.com>
3938         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
3939         * config/ia64/t-ia64: Likewise.
3940         (LIB1ASMFUNCS): Update comment.
3942 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
3944         * doc/install.texi (Install GCC: Binaries): Fix typo.
3946 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3948         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
3949         reference using the stack pointer, adjust it since we push Y
3950         temporarily.
3951         ("*ashrsi3"): Likewise.
3952         ("*lshrsi3"): Likewise.
3954 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3956         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
3957         when -fomit-frame-pointer is used.
3959 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
3961         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
3962         (try_redirect_by_replacing_jump): Reverse updating properly the
3963         count and frequency information.  Reverse removing cc0 setter.
3964         (forwarder_block_p): Reverse fixing for fallthru blocks.
3966 2001-07-05  DJ Delorie  <dj@redhat.com>
3968         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
3969         (translate_options): If the above is defined, use it to map
3970         given options to new options.
3971         * doc/tm.texi: Document it.
3973 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
3974             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
3976         * doc/invoke.texi (Optimize Options): Document that -fgcse may
3977         cause programs using computed gotos to run more slowly.
3979 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
3981         * doc/install.texi (Specific): Markup, spelling and typo fixes.
3982         Fixed sorting.
3983         Consistently require binutils 2.11.2, not prereleases.
3984         (Specific, decstation-*): Canonicalize as mips-dec-*.
3985         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
3986         always necessary.
3987         (Specific, m68k-altos): Removed reference to README.altos, deleted.
3988         (Specific, mips-*): Reword MIPS C compiler requirements.
3989         (Specific, powerpc*-*-*): New, mention --with-cpu once.
3990         (Specific, sunv5): Removed, obsolete.
3992 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
3994         * dwarf2out.c (output_loc_list): Use an all ones mask for
3995         .text asm output and don't rely on long long
3996         literals. Reformat some long lines.
3998 2001-07-05  Andreas Jaeger  <aj@suse.de>
4000         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
4001         section.
4003 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
4005         * dwarf2out.c (dwarf2out_define): Update comment.
4006         (dwarf2out_undef): Ditto.
4007         (dwarf2out_start_source_file): Ditto.
4008         (dwarf2out_end_source_file): Ditto.
4009         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
4010         since we never call the start/end debug hook for the primary file.
4012 2001-07-04  Kazu Hirata  <kazu@hxi.com>
4014         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
4015         from shll.
4017 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
4019         * cppinit.c (remove_dup_dirs): Inform if a system include
4020         directory is being reordered.
4021         * doc/invoke.texi (Directory Options): GCC warns if you hide a
4022         system include.
4023         * doc/cpp.texi (Search Paths): Likewise.
4024         * doc/gcc.texi (Interoperation): Remove information about
4025         -I/usr/include.
4027 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
4029         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
4030         (VARRAY_TOP_CHAR_PTR): Likewise.
4032 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4034         * gcc.c (process_command): Don't assign elements of a const char*.
4036 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4038         * emit-rtl.c (change_address): Don't abort if invalid address while
4039         reload is in progress.
4041 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
4043         * c-lex.c (cb_file_change): Pass line number to
4044         debug_start_source_file.
4045         (cb_undefine): Pass correct line number to debug_undef.
4047         * toplev.c (debug_start_source_file): Add line number to
4048         parameters. Pass it along to dwarf2out_start_source_file.
4049         (decode_g_option): Stop resetting debug level back to normal when
4050         we change debug formats, unless the current level is
4051         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
4052         3).
4054         * toplev.h (debug_start_source_file): Add line number to
4055         parameters.
4057         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
4058         parameters.
4060         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
4061         parameters.
4062         Output debug_macinfo data for starting file if requested.
4063         (dwarf2out_end_source_file): Output debug_macinfo data for ending
4064         file if requested.
4065         (dwarf2out_define): Output debug_macinfo data for defining a macro
4066         if requested.
4067         (dwarf2out_undef): Output debug_macinfo data for undefining a
4068         macro if requested.
4069         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
4070         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
4071         (macinfo_section_label): New. DWARF2 macro info section label.
4072         (dwarf2out_init): If we want macro info, output the start label
4073         for the section.
4074         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
4075         attribute to the compilation unit die pointing to the macro info.
4077 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
4079         * dwarf2out.c (new_loc_list): Move to inside #ifdef
4080         DWARF2_DEBUGGING_INFO.
4081         (add_loc_descr_to_loc_list): Ditto.
4082         (output_loc_list): Ditto.
4083         Also, fix thinko in curr not being initialized.
4084         (gen_internal_sym): Ditto.
4086 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4088         * emit-rtl.c (replace_equiv_address): New function.
4089         * expr.h (replace_equiv_address): New declaration.
4090         * explow.c (validize_mem): Call it instead of change_address and
4091         also call if -fforce-addr and address is constant.
4092         * expr.c: Replace more calls to change_address with adjust_address
4093         and/or replace_equiv_address or to validize_mem.
4094         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
4095         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
4096         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
4097         * config/i370/i370.md, config/i860/i860.md: Likewise.
4098         * config/i960/i960.md, config/mips/mips.c: Likewise.
4099         * config/mips/mips.md, config/pa/pa.md: Likewise.
4100         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
4101         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
4103 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4105         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
4107         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
4108         function.
4110 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
4112         * doc/include: New directory.
4113         * doc/fdl.texi: Move to doc/include/fdl.texi.
4114         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
4115         * doc/include/funding.texi, doc/include/gpl.texi: New files.
4116         * doc/gcc.texi: Use funding.texi and gpl.texi.
4117         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
4118         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
4119         Update dependencies and use -I $(docdir)/include.
4121 2001-07-04  Anthony Green  <green@redhat.com>
4123         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
4125 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4127         * doc/install.texi (sparc64-*-*): Remove garbage.
4129 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
4131         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
4132         Fix typo in last change to use adjust_address.
4134 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4136         * doc/install.texi (Specific): Update information for *-*-solaris*.
4138 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4140         * explow.c (plus_constant_wide): Reinitialize Y for restart.
4142 2001-07-03  Stan Shebs  <shebs@apple.com>
4144         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
4145         case for flag_no_mach_text_sections.
4146         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
4147         * config/darwin.c (flag_no_mach_text_sections): Remove.
4148         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
4150 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4152         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
4153         and avoid checking for constant as first operand.
4154         * recog.c (find_constant_term_loc): No longer static.
4155         (adj_offettable_operand): Delete.
4156         * rtl.h (adj_offsettable_operand): Delete declaration.
4157         (find_constant_term): Add declaration.
4158         * caller-save.c: Replace calls to adj_offsettable_operand with calls
4159         to adjust_address.
4160         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
4161         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
4162         * config/i386/i386.c, config/i386/i386.md: Likewise.
4163         * config/i860/i860.c, config/i960/i960.c: Likewise.
4164         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
4165         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
4166         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
4167         * config/mips/mips.c, config/mips/mips.md: Likewise.
4168         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
4169         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
4170         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
4171         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
4172         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
4173         * config/ns32k/ns32k.md: Likewise.
4175 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
4177         * rtl.c (copy_rtx): Handle 'T' format letter.
4178         * gensupport.c (collect_insn_data): Likewise.
4179         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
4181 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
4183         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
4184         -B option.  Use 'dir' not 'foo' as example directory name.
4186 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4188         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
4189         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
4191 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4193         * doc/cppinternals.texi: Improve formatting and logical markup.
4195 2001-07-03  Andreas Jaeger  <aj@suse.de>
4197         * Makefile.in (insn-recog.o): Add dependency on reload.h.
4199         * genrecog.c (write_header): Include reload.h for prototypes in
4200         insn-recog.c.
4202 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
4204 config:
4205         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
4206         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
4207         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
4208         i386_pe_valid_type_attribute_p): Add.
4209         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
4210         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
4212 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4214         * explow.c (plus_constant_wide, case LO_SUM): New case.
4215         (plus_constant_for_output_wide): Delete.
4216         * rtl.h (plus_constant_for_output): Delete.
4217         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
4218         instead of plus_constant_for_output.
4219         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
4220         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
4221         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
4222         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
4223         * config/sparc/sparc.md: Likewise.
4224         Convert some change_address calls to adjust_address.
4226 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
4228         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
4229         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
4230         documentation of -std and -Wwrite-strings.
4232 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
4234         * cse.c (canon_hash): Don't register registers in very small
4235         register classes, as extending their lifetime might cause
4236         reload to fail.
4238 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
4240         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
4242         * flow.c (forwarder_block_p): Fix for fallthru blocks.
4243         (try_redirect_by_replacing_jump): Update properly the count
4244         and frequency information.
4246 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
4248         * toplev.c (dump_file_index): Move SSA dumps just after first
4249         jump dump.
4250         (dump_file): Corresponding changes.
4251         (rest_of_compilation): Move SSA path to just after the first
4252         jump pass.
4253         * doc/gcc.texi (Passes): Update due to movement of SSA path.
4254         * doc/invoke.texi: Update dump file #s as they were completely
4255         out of date with reality.
4257 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
4259         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
4261         * expr.c (emit_move_insn_1): Deal with non-default
4262         STACK_PUSH_CODE.
4264         * expr.c (emit_single_push_insn): Fix warning.
4266 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
4268         * expr.c (emit_move_insn_1): Avoid modifying
4269         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
4271 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4273         * emit-rtl.c (adjust_address): New function.
4274         * expr.h (adjust_address): Add declaration.
4275         * builtins.c: Replace some calls to change_address with calls to it
4276         or to validize_mem.
4277         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
4278         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
4279         * config/arm/arm.c, config/convex/convex.c: Likewise.
4280         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
4281         * config/i386/i386.c, config/i386/i386.md: Likewise.
4282         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
4283         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
4284         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
4285         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
4286         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
4288 2001-07-02  Jim Wilson  <wilson@redhat.com>
4290         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
4292 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
4294         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
4295         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
4297 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
4299         * cppinit.c (lang_defaults): New table.
4300         (set_lang): Just read from lang_defaults into the live options
4301         structure.
4303 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
4305         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
4306         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
4307         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
4309 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4311         * doc/install.texi: Various spelling and markup fixes.
4312         (Installing GCC): Component specific installation instructions are
4313         gone.
4314         Fix reference.
4315         Warn about removing old install dir in the presence of shared libs.
4316         (Configuration): Invoke with options target to match configure
4317         --help.
4318         Consistently refer to gas, gld pathnames.
4319         Invert --enable-multilib documentation.
4320         Remove references to old compiler versions.
4322 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4324         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
4326 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
4328         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
4329         section.
4330         (Specific, mips*-sgi-irix5): Note IDO download.
4331         Reworded MIPS C hints.
4332         Use GNU as instead of GAS.
4333         Markup fixes.
4334         Removed SGI Freeware reference, IRIX 6 only.
4335         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
4336         Note N64 library requirement/workaround.
4337         Update O32 hints.
4338         Complete list of structure passing bug victims.
4340 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
4342         * doc/install.texi: Remove CVS Id.
4344 2001-07-02  Andreas Jaeger  <aj@suse.de>
4346         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
4347         (find_inherently_necessary): Remove unused variable.
4349 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
4351         * c-common.h (TDI_inlined): New ast dump phase.
4352         (dump_flag_name): New function.
4353         * c-dump.c (dump_files): Add inlined phase.
4354         (dump_flag_name): Define.
4355         * doc/invoke.texi (-fdump-ast-inlined): Document.
4357 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4359         * stor-layout.c (layout_decl): Revert change to handling of alignment
4360         in packed types.
4362 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4364         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
4365         for FIELD_DECL.
4367 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
4369         * doc/tm.texi (FUNCTION_ARG): Document that the last call
4370         is special.
4372 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
4374         * tlink.c (recompile_files): Remove COMPILER_PATH and
4375         LIBRARY_PATH from the environment.
4377 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
4379         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
4380         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
4381         enumerators.
4382         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
4384         * c-parse.in (OBJC_STRING): Kill.
4385         (objc_string): Decompose to [objc_string] '@' STRING.
4386         (reswords): Take the leading '@' off all the Objective C keywords.
4387         (objc_rid_sans_at): Kill.
4388         (init_reswords): Don't initialize it.
4389         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
4390         (_yylex): Kill reconsider label.  Look ahead one token after
4391         an '@'; if we get an identifier, check whether it's an
4392         Objective C @-keyword.  If so, return the keyword.  Otherwise,
4393         put back the token and return the '@' as a terminal.
4395         * cpplib.c (lex_macro_node): Remove unnecessary check for
4396         leading '@' on identifier.  Clarify control flow and commentary.
4398 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4400         * cse.c (new_label_ref): Variable deleted.
4401         (insert): Remove set of new_label_ref.
4402         (check_for_label_ref): New function.
4403         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
4405 See ChangeLog.5 for earlier changes.