Makefile.in: Add INSTALL_SCRIPT using INSTALL definition.
[official-gcc.git] / gcc / ChangeLog
blob7996d8b354b3a0d1ea5a5d3d9b06fae7d404033d
1 2001-12-04  Phil Edwards  <pme@gcc.gnu.org>
3         * Makefile.in:  Add INSTALL_SCRIPT using INSTALL definition.
5 2001-12-04  DJ Delorie  <dj@redhat.com>
7         * fixinc/fixincl.c (initialize): Avoid problemsome macro
8         parameter names (PR 3388).
10 2001-12-05  Alan Modra  <amodra@bigpond.net.au>
12         * config/rs6000/rs6000.c (rs6000_legitimize_address): Fix typo.
13         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Here too.
15 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
17         * c-common.def (COMPOUND_LITERAL_EXPR): New.
18         * c-common.c (c_expand_expr): Handle COMPOUND_LITERAL_EXPR.
19         (c_staticp): New function.
20         * c-common.h (COMPOUND_LITERAL_EXPR_DECL): New.
21         (c_staticp): Declare.
22         * c-typeck.c (default_function_array_conversion, build_unary_op):
23         Don't handle CONSTRUCTOR specially.
24         (lvalue_p, mark_addressable): Handle COMPOUND_LITERAL_EXPR.
25         * c-decl.c (build_compound_literal): New function.
26         * c-tree.h (build_compound_literal): Declare.
27         * c-parse.in (primary): Use build_compound_literal.
28         * c-lang.c (LANG_HOOKS_STATICP): Define.
29         * objc/objc-lang.c (LANG_HOOKS_STATICP): Likewise.
30         * doc/c-tree.texi: Document COMPOUND_LITERAL_EXPR.
31         * doc/extend.texi: Update documentation of compound literals.
32         Fixes PR c/4787.
34 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
36         * langhooks.h (struct lang_hooks): Add staticp.
37         * langhooks-def.h (lhd_staticp, LANG_HOOKS_STATICP): New.
38         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_STATICP.
39         * langhooks.c (lhd_staticp): New function.
40         * tree.c (staticp): Call lang_hooks.staticp for language-specific
41         tree codes.
43 2001-12-04  Neil Booth  <neil@daikokuya.demon.co.uk>
45         * cppspec.c (lang_specific_driver): Set is_cpp_driver.
46         * gcc.c (process_command): Ensure the cpp driver sees
47         --help and --target-help, and that the help is printed
48         exactly once.
50 2001-12-04  David Edelsohn  <edelsohn@gnu.org>
52         * config/elfos.h (ASM_OUTPUT_INTERNAL_LABEL): Display count unsigned.
54 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
56         * config/cris/cris.h (OPTIMIZATION_OPTIONS): Don't unset
57         flag_strict_aliasing.  Use separate assignment statements.
59 2001-12-04  Zack Weinberg  <zack@codesourcery.com>
61         * build-make, cross-make: Delete file.
62         * configure.in: Set and substitute CROSS, ALL,
63         SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_PREFIX_1, HOST_CC,
64         HOST_CFLAGS, STMP_FIXINC, and STMP_FIXPROTO depending on
65         whether build == host and host == target.  Do not
66         AC_SUBST_FILE build_overrides or cross_overrides.  Do not
67         AC_SUBST cross_defines or extra_c_flags.
68         * Makefile.in (NATIVE_SYSTEM_HEADER_DIR): New.
69         (SYSTEM_HEADER_DIR, HOST_PREFIX, HOST_CC, HOST_PREFIX,
70         HOST_PREFIX_1, HOST_CFLAGS, ALL, INTERNAL_CFLAGS): Set
71         partially or completely with autoconf-substituted @variable@
72         notation.
73         (INSTALL_TARGET, @cross_defines@, @cross_overrides@,
74         @build_overrides@, @extra_c_flags@, all.build, install-build,
75         install-cross-rest, install-float-h-cross): Deleted.
76         (install-normal): Rename to install.  Delete old "install"
77         indirection rule.
79 2001-12-04  Andrew MacLeod  <amacleod@redhat.com>
81         * stmt.c (expand_return): Clear destination instead of clobbering it 
82         when setting a return value via bitsets.
84 2001-12-04  Alexandre Oliva  <aoliva@redhat.com>
86         * tree.c (get_callee_fndecl): Only use DECL_ABSTRACT_ORIGIN if
87         it has DECL_SAVED_TREE.
88         
89         * c-decl.c (duplicate_decls): Revert rth's patch.  If newdecl
90         is in a different binding level, get its abstract origin to be
91         olddecl.
92         * tree-inline.c (expand_call_inline): Move DECL_INITIAL sanity
93         check earlier.
94         * tree.c (get_callee_fndecl): Follow DECL_ABSTRACT_ORIGIN if
95         DECL_INITIAL is NULL.
97 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
99         * flow.c (ior_reg_cond): Return NULL if ! add and rtx wasn't optimized.
100         Return correct value if one of the subexpressions was optimized to
101         0 resp. 1.  Optimize (x | A) | x and (x & A) | x.
102         (and_reg_cond): Similarly.
104 2001-12-04  Jakub Jelinek  <jakub@redhat.com>
106         * function.c (assign_parms): Set last_named only for last named
107         argument.
109 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
111         * doc/install.texi: Use the GFDL.  Include years from old install
112         manual in copyright notice.  Include copyright and GFDL notice on
113         HTML index page.  Include usual footer on testing.html.
114         * doc/install.texi2html: Build gfdl.html.  Use -I
115         $SOURCEDIR/include.
116         * doc/include/fdl.texi: Adapt for use in the install manual.
118 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
120         * doc/install.texi: Document that installed native compiler for
121         building cross compilers should be GCC 2.95 or later.
123 2001-12-03  Eric Christopher  <echristo@redhat.com>
125         * config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro.
126         * config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split
127         patterns.
129 2001-12-03  Janis Johnson  <janis187@us.ibm.com>
131         * rtl.def (PREFETCH): New rtx code.
132         * doc/rtl.texi (PREFETCH): Add documentation.
133         * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
134         * rtlanal.c (reg_referenced_p): Ditto.
135         * sched-vis.c (print_exp):  Ditto.
136         * ssa-dce.c (find_inherently_necessary):  Ditto.
138         * config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
139           (PREFETCH_BLOCK): Define.
140         * config/ia64/ia64.md (itanium_class): Add lfetch.
141           (prefetch, prefetch_internal): New.
143         * builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
144         * builtins.def (BUILT_IN_PREFETCH): New.
145         * builtins.c (expand_builtin_expect): New.
146           (expand_builtin): Call it.
147         * doc/extend.texi: Document __builtin_expect.
149         * config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
150           conflicts with new generic prefetch functionality.
151         * config/i386/i386.c (ix86_expand_builtin): Use new name for
152           prefetch_sse.
154 2001-12-02  Ziemowit Laski  <zlaski@apple.com>
156         * objc/Make-lang.in: Update copyright.
157         (OBJC_OBJS): Add objc-lang.o.
158         (objc-lang.o): New rule.
159         * objc/config-lang.in: Fix file description and update
160         copyright.
161         * objc/objc-act.c: Do not include langhooks.h and
162         langhooks-def.h
163         (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c.
164         (objc_post_options): Move to objc-lang.c.
165         (objc_init_options): Move to objc-lang.c.
166         (objc_init): Make non-static.
167         (objc_decode_option): Make non-static.
168         (HASHFUNCTION): Remove macro.
169         (hash_func): New function.
170         (hash_enter): Replace HASHFUNCTION with hash_func.
171         (hash_lookup): Replace HASHFUNCTION with hash_func.
172         (maybe_objc_tree_codes): New function.
173         (init_objc): Move ObjC tree code initialization to
174         maybe_objc_tree_codes().
175         * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard.
176         (objc_init): New public prototype.
177         (objc_decode_option): New public prototype.
178         (maybe_add_objc_tree_codes): New public prototype.
179         * objc/objc-lang.c: New file.
180         (lang_hooks): Moved from objc-act.c.
181         (objc_post_options): Moved from objc-act.c.
182         (objc_init_options): Moved from objc-act.c.
184 2001-12-03  Geoff Keating  <geoffk@redhat.com>
186         * emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
187         of array elements.
189 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
191         PR c/4988
192         * gcc.c (process_command): Don't add a preprocessor option for
193         --help and --target-help; cc1 is enough.
195 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
197         * c-decl.c (grokdeclarator): Use ISO word.
198         * cppinit.c: Remove leading capital from diagnostic messages, as
199         per GNU coding standards.
200         * emit-rtl.c: Similarly.
201         * final.c: Similarly.
202         * gcc.c: Similarly.
203         * tradcpp.c: Similarly.
204         * config/arm/arm.c: Similarly.
205         * config/arm/arm.h: Similarly.
206         * config/avr/avr.c: Similarly.
207         * config/avr/avr.h: Similarly.
208         * config/c4x/c4x.c: Similarly.
209         * config/cris/cris.c: Similarly.
210         * config/cris/cris.h: Similarly.
211         * config/d30v/d30v.c: Similarly.
212         * config/dsp16xx/dsp16xx.c: Similarly.
213         * config/dsp16xx/dsp16xx.h: Similarly.
214         * config/h8300/h8300.c: Similarly.
215         * config/i386/i386.c: Similarly.
216         * config/i386/xm-djgpp.h: Similarly.
217         * config/i960/i960.h: Similarly.
218         * config/m32r/m32r.c: Similarly.
219         * config/m68hc11/m68hc11.c: Similarly.
220         * config/m88k/m88k.c: Similarly.
221         * config/m88k/m88k.h: Similarly.
222         * config/mcore/mcore.c: Similarly.
223         * config/mcore/mcore.h: Similarly.
224         * config/mips/mips.c: Similarly.
225         * config/mmix/mmix.c: Similarly.
226         * config/pa/pa.c: Similarly.
227         * config/rs6000/rs6000.c: Similarly.
228         * config/rs6000/sysv4.h: Similarly.
229         * config/s390/s390.c: Similarly.
230         * config/sparc/sparc.c: Similarly.
231         * config/v850/v850-c.c: Similarly.
232         * config/v850/v850.c: Similarly.
234 2001-12-03  Zack Weinberg  <zack@codesourcery.com>
236         * rs6000.h (RETURN_IN_MEMORY): Cast result of
237         int_size_in_bytes to unsigned HOST_WIDEST_INT so that -1 > 8.
239 Mon Dec  3 09:18:34 2001  Jeffrey A Law  (law@cygnus.com)
241         * mn10200.md (negsf2): Use -0x8000 instead of 0x8000 for
242         bit twiddling constant.
244 Mon Dec  3 16:16:37 CET 2001  Jan Hubicka  <jh@suse.cz>
246         * gcse.c (delete_null_pointer_checks_1): Do not use delete_list;
247         call purge_dead_edges after removing.
248         (delete_null_pointer_checks): Do not handle delete_list.
250         * cfgbuild.c (inside_basic_block_p, control_flow_insn_p): Break out from ...
251         (count_basic_blocks): ... here.
252         (find_basic_blocks, find_bb_boundaries): Cleanup.
254         * stor-layout.c (fixup_signed_type, fixup_unsigned_type): Avoid
255         overflow for types greater then 2 * HOST_WIDE_INT.
257         * reload.c (find_reloads): Update the duplicates after swapingg.
259 Mon Dec  3 13:52:19 CET 2001  Jan Hubicka  <jh@suse.cz>
261         * i386.md (movabsqi*): Use 'b' prefix instead of 'q'.
263 2001-12-02  Zack Weinberg  <zack@codesourcery.com>
265         * config/rs6000/rs6000.h (MASK_ALTIVEC_ABI,
266         MASK_LONG_DOUBLE_128): Delete.
267         (MASK_AIX_STRUCT_RET, MASK_AIX_STRUCT_RET_SET,
268         TARGET_AIX_STRUCT_RET): New flags.
269         (TARGET_SWITCHES): Remove entries for -mlong-double-128 and
270         -mlong-double-64.  Add entries for -m(no-)aix-struct-return
271         and -m(no-)svr4-struct-return.
272         (TARGET_OPTIONS): Add entry for -mlong-double-.
273         (rs6000_long_double_size_string, rs6000_long_double_type_size,
274         rs6000_altivec_abi): Declare.
275         (TARGET_LONG_DOUBLE_128, TARGET_ALTIVEC_ABI,
276         LONG_DOUBLE_TYPE_SIZE): Change definitions to match.
277         (RETURN_IN_MEMORY): If !TARGET_AIX_STRUCT_RET, return
278         structures of size <= 8 bytes in registers.
279         (PRINT_OPERAND_PUNCT_VALID_P): Take out '$' and '*'.
281         * config/rs6000/rs6000.c (rs6000_long_double_size_string,
282         rs6000_long_double_type_size, rs6000_altivec_abi): New
283         globals.
284         (rs6000_override_options): Set rs6000_long_double_type_size
285         from rs6000_long_double_size_string, if nonzero.  Set the
286         MASK_AIX_STRUCT_RET bit in target_flags from DEFAULT_ABI, if
287         not already set.
288         (rs6000_parse_abi_options): Set rs6000_altivec_abi, not a
289         target_flags bit.
290         (rs6000_init_builtins): This hook now takes no arguments.
292         * config/rs6000/netbsd.h, config/rs6000/linux.h: Define
293         DRAFT_V4_STRUCT_RET to 1.
295 2001-12-03  Joseph S. Myers  <jsm28@cam.ac.uk>
297         * c-typeck.c (really_start_incremental_init, push_init_level):
298         Avoid constructor_max_index being other than an INTEGER_CST.
300 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
302         * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
303         unsigned.
304         (ASM_GENERATE_INTERNAL_LABEL): Same.
305         (UNIQUE_SECTION): Fix typo.
307 2001-12-02  Richard Henderson  <rth@redhat.com>
309         * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
311 2001-12-02  Richard Henderson  <rth@redhat.com>
313         * rtl.h (mem_attrs): Rename decl to expr; adjust all users.
314         (MEM_EXPR): Rename from MEM_DECL; adjust all users.
315         * emit-rtl.c (set_mem_expr): Rename from set_mem_decl.
316         * expr.h, final.c, reload1.c: Adjust users.
318         * alias.c (nonoverlapping_component_refs_p): New.
319         (decl_for_component_ref, adjust_offset_for_component_ref): New.
320         (nonoverlapping_memrefs_p): Use them.
321         * emit-rtl.c (component_ref_for_mem_expr): New.
322         (set_mem_attributes): Use it.
323         (set_mem_offset): New.
324         * expr.c (expand_assignment): Call set_mem_attributes for
325         inner references; adjust the memory offset as needed.
326         * print-rtl.c (print_mem_expr): New.
327         (print_rtx): Use it.
329 Sun Dec  2 09:22:25 2001  Douglas B. Rupp  <rupp@gnat.com>
331         * config/x-interix3 (SYSTEM_HEADER_DIR): Put back default.
333         * config/alpha/vms.h (VMS_DEBUGGING_INFO): New macro.
334         (PREFERRED_DEBUGGING_TYPE): Define as VMS_AND_DWARF2_DEBUG.
335         (ASM_SPEC): Don't redefine.
336         (OPTIMIZATION_OPTIONS, OVERRIDE_OPTIONS, LINK_SPEC): Define.
337         * config/alpha/t-vms (EXTRA_PARTS): Use; add rule for vms-dwarf2.asm.
338         * config/alpha/vms-dwarf2.asm: New file.
340         * Makefile.in (OBJS): Add vmsdbgout.c and its rule.
341         * c-lex.c (init_c_lex): Test for VMS_AND_DWARF2_DEBUG.
342         * debug.h (gcc_debug_hooks): Add vmsdbg_debug_hooks.
343         (vmsdbgout_after_prologue): New declaration.
344         * defaults.h (VMS_DEBUGGING_INFO): Add to PREFERRED_DEBUGGING_TYPE.
345         * dwarf2.h (dwarf_attribute): New DW_AT_VMS_rtnbeg_pd_address.
346         * dwarf2out.c (dwarf2out_do_frame): Test for VMS_AND_DWARF2_DEBUG.
347         (dwarf2out_frame_finish): Test for VMS_AND_DWARF2_DEBUG.
348         (dwarf_attr_name): Use DW_AT_VMS_rtnbeg_pd_address.
349         (add_name_and_src_coords_attributes): Test VMS_DEBUGGING_INFO
350         * final.c (final_start_function): Test for VMS_AND_DWARF2_DEBUG.
351         Test VMS_DEBUGGING_INFO.
352         (final_end_function): Test for VMS_AND_DWARF2_DEBUG.
353         (final_scan_insn): Test for VMS_AND_DWARF2_DEBUG and VMS_DEBUG.
354         * flags.h (debug_info_type): Add VMS_DEBUG and VMS_AND_DWARF2_DEBUG.
355         * toplev.c (compile_file): Test VMS_DEBUGGING_INFO, VMS_DEBUG, and
356         VMS_AND_DWARF2_DEBUG.
357         (rest_of_type_compilation): Test for VMS_AND_DWARF2_DEBUG.
358         (decode_g_option): Add "vms" to debug_type_names.
359         (process_options): Set vmsdbg_debug_hooks if -gvms.
360         (lang_independent_init): Emit line number for VMS unless -g0.
361         * tree.c: (build_complex_type): Test for VMS_AND_DWARF2_DEBUG.
362         * vmsdbg.h, vmsdbgout.c: New files.
364 Sun Dec  2 09:03:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
366         * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
368 2001-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
370         * cfgrtl.c (purge_all_dead_edges): Initialize variable.
371         * dwarf2out.c (is_cxx): Prototype.
372         * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true'
373         warning.
374         * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning.
376 Sun Dec  2 07:12:30 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
378         * libgcc2.c (__bb_exit_func): Fix line wrap problems.
380 2001-12-02  Geoff Keating  <geoffk@redhat.com>
382         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify.
383         * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address
384         rather than simplify_subreg.  Check for volatile-ness.  Check that
385         we're not splitting one slow operation into two slow operations.
387 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
389         * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
390         before shifting.
392 2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
394         * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
395         capital from diagnostics.
396         * c-lex.c (cb_file_change): Similarly.
397         * c-parse.in : Similarly.
398         * cfgrtl.c (verify_flow_info): Similarly.
399         * collect2.c: Similarly.
400         * cppfiles.c (find_include_file): Similarly.
401         * cppinit.c (cpp_handle_option): Similarly.
402         * cpplex.c (cpp_spell_token): Similarly.
403         * cppmain.c (do_preprocessing): Similarly.
404         * gcc.c (translate_options, process_command, do_spec1,
405         main, pfatal_execute): Similarly.
406         * genattr.c (main): Similarly.
407         * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp,
408         write_test_expr, main): Similarly.
409         * gencodes.c (main): Similarly.
410         * genconfig.c (main): Similarly.
411         * genconstants.c (main): Similarly.
412         * genemit.c (main): Similarly.
413         * genextract.c (main): Similarly.
414         * genflags.c (main): Similarly.
415         * genopinit.c (main): Similarly.
416         * genoutput.c (process_template, main): Similarly.
417         * genpeep.c (main): Similarly.
418         * genrecog.c (main): Similarly.
419         * gensupport.c (is_predicable, identify_predicable_attribute,
420         alter_predicate_for_insn, init_md_reader_args, main): Similarly.
421         * ggc-page.c (alloc_anon): Similarly.
422         * mips-tfile.c (add_string, add_procedure, add_file, read_line,
423         parse_begin, parse_bend, parse_def, parse_end, parse_file,
424         parse_stabs_common, parse_stabs, write_varray, write_object,
425         read_seek, copy_object, main, error): Similarly.
426         * profile.c (compute_branch_probabilities): Similarly.
427         * reg-stack.c (check_asm_stack_operands): Similarly.
428         * reload.c (find_reloads): Similarly.
429         * reload1.c (spill_failure, failed_reload): Similarly.
430         * rtl-error.c (_fatal_insn_not_found): Similarly.
431         * toplev.c (read_integral_parameter, crash_signal,
432         decode_f_option, set_target_switch, parse_options_and_default_flags)
433         : Similarly.
434         * tradcif.y (parse_number, yylex): Similarly.
435         * tradcpp.c (main, fancy_abort): Similarly.
436         * tree.c (tree_check_failed): Similarly.
437         * varray.c (varray_check_failed): Similarly.
438         * xcoffout.c (xcoff_output_standard_types): Similarly.
439 objc:
440         * objc-act.c (get_object_ref, lookup_and_install_protocols,
441         build_objc_string_object, objc_declare_alias, build_ivar_chain,
442         finish_message_expr, build_protocol_expr, is_public,
443         start_class): Similarly.
445 2001-12-01  Neil Booth  <neil@daikokuya.demon.co.uk>
447         * c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
448         trailing period from diagnostics.
449         * c-lex.c (cb_file_change): Similarly.
450         * cppmacro.c (check_trad_stringification): Similarly.
451         * gcc.c (do_spec_1): Similarly.
452         * genattr.c (main): Similarly.
453         * genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
454         * gencodes.c (main): Similarly.
455         * genconfig.c (main): Similarly.
456         * genconstants.c (main): Similarly.
457         * genemit.c (main): Similarly.
458         * genextract.c (main): Similarly.
459         * genopinit.c (main): Similarly.
460         * genoutput.c (main): Similarly.
461         * genpeep.c (main): Similarly.
462         * genrecog.c (main): Similarly.
463         * mips-tfile.c (add_file, error): Similarly.
464         * profile.c (init_branch_prob): Similarly.
465         * reload1.c (spill_failure): Similarly.
466         * stmt.c (parse_output_constraint): Similarly.
467         * varasm.c (assemble_variable): Similarly.
469 2001-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
471         * m68k.c (init_FPA_table): Provide static prototype.
472         * mips/abi64.h (mips_function_value): Move prototype to ...
473         * mips-protos.h (mips_function_value): ... here.
474         * mips.c: Include halfpic.h.
475         * output.h (rdata_section): Prototype.
477         * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
478         * m88k.c (m88k_svr3_asm_out_constructor,
479         m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
480         !OBJECT_FORMAT_ELF.
481         * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
482         * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
483         * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
485 2001-12-01  Geoff Keating  <geoffk@redhat.com>
487         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
488         LO_SUM addresses less than word size are not legitimate,
489         because they lead to invalid SUBREGs.
490         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
492 2001-12-01  Olivier Hainque <hainque@act-europe.fr>
494         * unroll.c (loop_iterations): Give up on jumps with null JUMP_LABEL
495         while scanning for multiple back edges.
497 2001-12-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
499         * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
500         * config/rs6000/tramp.asm: Use it.
502 2001-12-01  Zack Weinberg  <zack@codesourcery.com>
504         * gencheck.c, gengenrtl.c: Don't define xmalloc.
505         * gensupport.c: Don't define xstrdup, xcalloc, xrealloc,
506         xmalloc.
508 2001-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
510         * pa.c (output_ascii): Cast `p' to unsigned char.
512 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
514         * config/rs6000/rs6000.c (altivec_expand_builtin): add
515         ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
516         *_16qi,_8hi, rename existing V4SI ones to *_4si.
517         (altivec_init_builtins): Ditto.
518         (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.
520         * config/rs6000/rs6000.md: Add attribute types vecsimple,
521         veccomplex, vecfloat, and vecperm, for altivec instructions.
522         Modify altivec patterns to use approriate attribute type.
523         Modify altivec patterns to match RTL operations where approriate
524         (IE no unspec where we can avoid it).
525         Add vector unit scheduling for ppc7450.
526         Rename patterns to what they are where approriate
527         (altivec_vaddfp->addv4sf3, etc)
529         * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
530         Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.
532         * config/rs6000/sysv4.h: Add -mcpu=7450.
534         * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed
535         _builtin_altivec_ld_interal function.
537 2001-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
539         * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
540         strchr, strrchr, isascii, gettimeofday.
541         * config.in, configure: Regenerate.
543 2001-11-30  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
545         * unroll.c (unroll_loop): Correct special exit cases.
547 2001-11-30  Stephane Carrez  <Stephane.Carrez@sun.com>
549         * config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
550         accept DFmode and DImode only.
552 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
554         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
555         (STACK_DYNAMIC_OFFSET): Same.
557 2001-11-30  Richard Henderson  <rth@redhat.com>
559         * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
561 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
563         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): New.
564         (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
565         the values in call_used_registers.
567 Fri Nov 30 12:48:26 2001  Jeffrey A Law  (law@cygnus.com)
569         * gthr-dce.h: If _DCE_THREADS is not defined, then just include
570         gthr-single.
572 2001-11-30  Jason Merrill  <jason@redhat.com>
574         * dwarf2out.c (is_cxx): New fn.
575         (add_data_member_location_attribute): Check it.
576         * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
578 Fri Nov 30 08:26:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
580         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
582 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
584         * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
585         MODE_VECTOR_FLOAT as allowed.
587 2001-11-29  Zack Weinberg  <zack@codesourcery.com>
589         Purge cruft now we have build libiberty.
591         * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
592         HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
593         USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
594         USE_HOST_STRSTR): Delete variables.
595         (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
596         hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
597         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
598         $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
599         (LIBIBERTY, BUILD_LIBIBERTY): New variables.
600         (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
601         (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
602         (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
603         (HOST_LIBS): Ditto.
604         (HOST_RTL): Remove hashtab.o safe-ctype.o.
605         (OBJS): Remove splay-tree.o.
606         (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
607         (distclean): No need to delete splay-tree.c obstack.c
608         hashtab.c safe-ctype.c.
609         (mostlyclean): Delete build copies of print-rtl.c bitmap.c
610         errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
611         * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
612         Delete.
613         * configure.in: Don't use them.
614         Set and substitute @FORBUILD@.
615         * config.in, configure: Regenerate.
616         * doprint.c: Move to libiberty/_doprnt.c.
617         * doc/configterms.texi: Document that libiberty is now built
618         up to three times.  Fix typo.
620 2001-11-30  Jason Merrill  <jason@redhat.com>
622         * dwarf2out.c (add_data_member_location_attribute): Do the
623         right thing for virtual bases.
624         * dbxout.c (dbxout_type): For a virtual base, print the offset
625         within the vtable.
627 2001-11-29  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
629         * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
631 2001-11-29  Aldy Hernandez  <aldyh@redhat.com>
633         * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
634         go in memory.
635         Remove unused attribute for named.
637 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
639         * genattrtab.c (attr_rtx_1): New function containing the
640         majority of `attr_rtx'.  Move variable declarations into the
641         scope where they are used.  Eliminate unnecessary gotos.
642         (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
643         VA_FIXEDARG, and VA_CLOSE.
645 2001-11-30  Hans-Peter Nilsson  <hp@axis.com>
647         * config/cris/cris.c (cris_notice_update_cc): Check first
648         destination also against overlap with cc_status.value2 and second
649         destination against overlap with cc_status.value1.  For overlaps,
650         clear overlapped value, don't just CC_STATUS_INIT.
652         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
653         Fix typo in comment.
654         (LINK_SPEC): Remove whitespace at end of line.
656 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
658         * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
660 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
662         * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
663         macros for the supported debugging types.
665 2001-11-29  Craig Rodrigues  <rodrigc@gcc.gnu.org>
667         PR other/4932
668         * config/i386/i386.c (print_operand):  Verify that the
669           argument to %c is a constant and not a conditional which
670           needs to be reversed.
672 Thu Nov 29 11:12:59 2001  Geoffrey Keating (geoffk@redhat.com)
674         * emit-rtl.c (gen_lowpart_common): Fix conversion of
675         REAL_VALUE_TYPEs to an array of target integers.  Fix extraction
676         of low part of those arrays for 32bit and 64bit hosts.
678 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
680         * Makefile.in (insn-output.o): Depend on insn-codes.h.
682 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
684         * configure.in (target_list): Add generated-manpages.
685         * configure: Regenerate.
686         * Makefile.in (generated-manpages): Depend on
687         lang.generated-manpages.
688         * objc/Make-lang.in (objc.generated-manpages): New dummy target.
690 2001-11-29  Nick Clifton  <nickc@cambridge.redhat.com>
692         * config/arm/crti.asm (_init): Add .thumb_func if compiled
693         with -mthumb.
694         (_fini): Add .thumb_func if compiled with -mthumb.
696 2001-11-28  Eric Christopher  <echristo@redhat.com>
698         * config/mips/mips.c (override_options): Fix thinko in mips_tune
699         for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
701 Thu Nov 29 00:24:15 EST 2001  John Wehle  (john@feith.com)
703         * alpha.md (tablejump): Use pic_offset_table_rtx
704         instead of gen_rtx_REG.
706 Wed Nov 28 15:36:13 2001  Jeffrey A Law  (law@cygnus.com)
708         * expr.c (store_expr): When copying a string constant into an
709         array, reset the known alignment of the MEM for the section to
710         be cleared to BITS_PER_UNIT.
712 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
714         * config/cris/cris.c: Remove whitespace at end of line.
716 Wed Nov 28 14:51:23 2001  Douglas B. Rupp  <rupp@gnat.com>
718         * config.gcc (i[34567]86-*-interix3*): New case.
719         * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
720         New files.
722 2001-11-28  Richard Henderson  <rth@redhat.com>
724         * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
725         symbolic_operand as the predicate.
727 2001-11-28  Richard Henderson  <rth@redhat.com>
729         * doloop.c (doloop_modify_runtime): Properly select induction
730         variable; skip late entry test if biv initializer created by loop.
732 Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
734         * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
735         EXPR_WITH_FILE_LOCATION, so change checks and documentation.
737         * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
739         * tree.h: Add missing checks on some macros; make formatting more
740         consistent.
742         * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
743         level; only add to pending_sizes if find it.
745         * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
747         * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
748         Add casts to remove warnings.
750         * Makefile.in (OBJS): Sort alphabetically.
752         * print-rtl.c (print_rtx): If RTX code is bad, just say so.
753         Also minor cleanups.
755 Wed Nov 28 06:52:27 2001  Arnaud Charlet  <charlet@ACT-Europe.FR>
757         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
758         (FLAGS_TO_PASS): Add STAGE_PREFIX.
759         (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
760         to STAGE_PREFIX.
762 Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
764         * cse.c (true_dependence_in_rtx): New function.
765         (invalidate): Use it.
767         * c-common.h (GOTO_FAKE_P): New macro.
768         * tree-inline.c (GOTO_FAKE_P): Set.
769         * c-tree.texi (GOTO_FAKE_P): Document.
771         * varasm.c (assemble_variable): Set reloc to 3 for error_mark
772         containing pointers.
773         (output_addressed_constants): Check for local/external relocations.
774         * elfos.h (SELECT_SECTION): Classify data section.
775         * tm.texi (SELECT_SECTION): Update documentation.
777         * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
778         (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
780 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
782         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
783         UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
784         OBJECT_FORMAT_ROSE.
786 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
788         * config/cris/cris.c: Tweak spacing for prototypes.
789         (LOSE_AND_RETURN): New macro.
790         (cris_operand_lossage): New function.
791         (cris_print_index, cris_print_base): Use cris_operand_lossage
792         rather than fatal_insn.
793         (cris_print_operand, cris_print_operand_address): Use
794         LOSE_AND_RETURN rather than fatal_insn and internal_error.
795         (cris_output_addr_const): Use LOSE_AND_RETURN and
796         output_operand_lossage rather than fatal_insn and internal_error
797         for valid but unexpected rtx expressions.
799         * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
800         for a SUBREG in src or dest, abort instead.
802 2001-11-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
804         * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
805         doc.
807 2001-11-27  Jakub Jelinek  <jakub@redhat.com>
809         * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
810         preprocessor define.  If only DBX_DEBUGGING_INFO or only
811         DWARF2_DEBUGGING_INFO is supported for the target, provide
812         appropriate definitions.
814 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
816         * Makefile.in: Update, and add c-objc-common.o dependencies.
817         * c-lang.c: Remove unnecessary includes.
818         (c_init): Move bulk of code to c_objc_common_init, and call it.
819         (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
820         inline_forbidden_p, c_cannot_inline_tree_fn): Move to
821         c-objc-common.c.
822         * c-objc-common.c: New.  Mostly pulled from c-lang.c.
823         * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
824         c_objc_common_init, c_missing_noreturn_ok_p): New.
825         * toplev.c: Update comment.
826         * doc/passes.texi: Update.
827 objc:
828         * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
829         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
830         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
831         (objc_init): Update to use c_objc_common_init.
833 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
835         * cpphash.c (_cpp_init_hashtable): Update.
836         * cpphash.h (struct spec_nodes): Remove n_L.
837         * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
839 2001-11-17  Richard Henderson  <rth@redhat.com>
841         * unroll.c (loop_iterations): Move last change ...
842         * doloop.c (doloop_modify_runtime): ... here.
844 2001-11-17  Corey Minyard  <minyard@acm.org>
845             Richard Henderson  <rth@redhat.com>
847         * unroll.c (loop_iterations): Detect one situation in which we
848         overestimate the number of iterations.
850 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
852         * gcc.c (set_input): Export.
853         Move declaration ...
854         gcc.h (set_input): ... here.
856 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
858         * gcc.c (set_collect_gcc_options): New function, split out from
859         main.
860         Ignore elided switches.
861         (do_spec): Invoke before executing command.
862         (do_spec_1): Likewise.
863         Fixes PR other/3968.
865 2001-11-27  Hans-Peter Nilsson  <hp@axis.com>
867         * config/cris/cris.h (INT_ASM_OP): Remove.
869 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
871         * config/i386/sol2.h (WINT_TYPE): Redefine.
872         (WINT_TYPE_SIZE): Likewise.
874 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
876         * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
877         (dup2): Make static and add prototype.
878         * m68k/plexus.h: Don't define NO_DUP2.
879         * configure.in (AC_CHECK_FUNCS): Add dup2.
880         * config.in, configure: Regenerate.
882         * ia64/aix.h (REG_SIZE): Don't #undef.
883         * sparc.h (REG_SIZE): Delete.
884         * flow.c (mark_used_regs): Don't use REG_SIZE.
885         * regs.h (REG_SIZE): Delete.
887 2001-11-27  Andreas Schwab  <schwab@suse.de>
889         * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
890         PREFERRED_DEBUGGING_TYPE.
892 Tue Nov 27 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
894         * Makefile.in (c-lang.o): Depends on langhooks-def.h.
895         (expr.o, varasm.o): Depends on langhooks.h.
896         * c-common.c (c_safe_from_p): Always declare.
897         (c_expand_expr): Refine when declared.
898         * c-lang.c (c-common.h): Now include.
899         (LANG_HOOKS_SAFE_FROM_P): Define new hook.
900         (c_init): Don't set lang_safe_from_expr.
901         * expr.c (langhooks.h): Now include.
902         (lang_safe_from_p): No longer define.
903         (safe_from_p): Use lang hook.
904         (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
905         (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
906         * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
907         * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
908         (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
909         * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
910         * langhooks.h (struct lang_hooks): New fields expand_constant
911         and safe_from_p.
912         * output.h (output_constant): Size arg is HOST_WIDE_INT.
913         * stmt.c (expand_decl_init): No longer need to expand constant
914         for CONST_DECL.
915         * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
916         * toplev.c (lang_expand_constant): Delete var.
917         * tree.c (save_expr): Don't put another SAVE_EXPR around simple
918         operations on SAVE_EXPR.
919         * varasm.c (langhooks.h): Now include.
920         (compare_constant_1): Use lang_hooks, not lang_expand_constant.
921         (record_constant_1, output_addressed_constants): Likewise.
922         (initializer_constant_valid_p, output_constant): Likewise.
923         (output_constant_def): Process no-defer of string constant.
924         (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
925         (output_constant): Strip more conversions.
926         Track our size and pad for the rest.
927         (array_size_for_constructor): Remove code for non-byte STRING_CST.
928         (output_constructor): SIZE now HOST_WIDE_INT.
930 2001-11-27  Richard Henderson  <rth@redhat.com>
932         * ifcvt.c (noce_try_store_flag_constants): Test for overflow
933         in computing DIFF.
935 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
937         * cppfiles.c (read_include_file): Add comment.
939 2001-11-26  Richard Henderson  <rth@redhat.com>
941         * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
943 2001-11-26  Richard Henderson  <rth@redhat.com>
945         * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
946         * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
947         commented out override.
949 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
951         * cppfiles.c (stack_include_file): Don't optimize zero-length
952         files.
953         (read_include_file): NUL-terminate read files.
954         * cpplex.c (handle_newline, skip_escaped_newlines,
955         get_effective_char, skip_whitespace, parse_identifier,
956         parse_identifier_slow, parse_number, parse_string,
957         _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
958         NUL-terminated.
959         * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
960         Be sure buffers are NUL terminated.
961         * cppmacro.c (warn_of_redefinition): Kill compile warning.
963 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
965         * c-common.c: Include tree-inline.h.
966         (c_language): Move separate definitions here.
967         (c_common_init_options, c_common_post_options): New.
968         (c_common_lang_init): Rename c_common_init.
969         * c-common.h (c_common_lang_init): Similarly.
970         (c_common_init_options, c_common_post_options): New.
971         * c-lang.c (c_post_options): Move body to c_common_post_options.
972         (c_init_options): Use c_common_init_options.
973         (c_init): Update.
974         * langhooks.def: Rearrange.
975         * langhooks.h: Rearrange, and improve comments.
976         * toplev.c (do_compile): New function.
977         (toplev_main): Use it.
978         (lang_independent_f_options, parse_options_and_default_flags,
979         process_options): Remove trailing periods.
980         * Makefile.in: Update.
981 objc:   * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
982         functions.
983         (ojbc_init): Update.
985 2001-11-26  Richard Henderson  <rth@redhat.com>
987         * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
989 2001-11-26  DJ Delorie  <dj@redhat.com>
991         * expr.c (store_constructor): Actually use the value computed
992         if WORD_REGISTER_OPERATIONS.
994 2001-11-26  Richard Henderson  <rth@redhat.com>
996         * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
997         for CONSTRUCTOR.
999 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
1001         * rs6000.c (output_mi_thunk): Handle minimal-toc and call
1002         correct function on AIX.
1004 2001-11-26  Alexandre Oliva  <aoliva@redhat.com>
1006         * toplev.c (process_options): Don't force
1007         flag_optimize_sibling_calls to zero just because exceptions are
1008         enabled.
1010 Mon Nov 26 12:37:05 2001  Jeffrey A Law  (law@cygnus.com)
1012         * df.h (transfer_function_sbitmap): Use PARAMS around argument
1013         list in function prototypes.
1014         (transfer_function_bitmap): Likewise.
1016 2001-11-26  Loren J. Rittle  <ljrittle@acm.org>
1018         * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
1019         * config/i386/netbsd-elf.h: Likewise.
1021 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
1023         * doc/trouble.texi: Remove outdated RS/6000 comments.
1025 Mon Nov 26 13:49:41 CET 2001  Jan Hubicka  <jh@suse.cz>
1027         * final.c (walk_alter_subreg): Fix return value.
1029 Mon Nov 26 11:36:20 CET 2001  Jan Hubicka  <jh@suse.cz>
1031         * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
1032         alter_subreg.
1033         * sparc.md (post-reload splitters): Do not call alter_subreg.
1034         * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
1036 2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
1038         * regclass.c (choose_hard_reg_mode): Handle vector arguments.
1040 2001-11-26  Alan Modra  <amodra@bigpond.net.au>
1042         * final.c: (insn_lengths): Make it an int *, so that large jump
1043         tables don't overflow.
1045 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
1047         * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
1048         (format_types): Use it for scanf.
1049         (dollar_arguments_pointer_p): New.
1050         (init_dollar_format_checking): Store details of which arguments
1051         are pointers.
1052         (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
1053         (finish_dollar_format_checking): Take extra parameter
1054         pointer_gap_ok.  Treat unused arguments differently if
1055         pointer_gap_ok and the unused arguments are pointers.
1056         (check_format_info_main): Pass extra argument to
1057         finish_dollar_format_checking.
1058         * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
1059         unused arguments are present between used arguments with operand
1060         numbers.
1062 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
1064         * df.c: Add prototypes for hybrid_search_bitmap and
1065         hybrid_search_sbitmap.
1066         (hybrid_search_bitmap): New function.
1067         (hybrid_search_sbitmap): New function.
1068         (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
1069         (iterative_dataflow_bitmap): Ditto.
1071 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1073         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
1074         address computations.
1076 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1078         * config/m68hc11/m68hc11.c (d_register_operand): Must accept
1079         register b (low part of d).
1081 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1083         * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
1084         passed to mcount.
1086 Sun Nov 25 06:22:09 2001  Douglas B. Rupp  <rupp@gnat.com>
1088         * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
1089         * config/alpha/x-vms: New file, to compile the above.
1090         * config.gcc (alpha*-dec-vms*): Add x-vms.
1092 2001-11-24  Hans-Peter Nilsson  <hp@axis.com>
1094         * genextract.c (main): Set ro_loc for peepholes.
1096 Sat Nov 24 17:04:10 2001  Douglas B. Rupp  <rupp@gnat.com>
1098         * fix-header.c (main): Move inf_buffer termination and inf_limit
1099         calculation to after read.
1101         * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
1102         (__UNIX_FOPEN): Define.
1104 Sat Nov 24 16:11:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1106         * function.c (assign_stack_temp_for_type): Clear alias set before
1107         setting new one.
1109 2001-11-23  David Edelsohn  <edelsohn@gnu.org>
1111         * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
1112         format.
1113         * rs6000.md (cmptf): Fix typo.
1115 2001-11-23  Richard Sandiford  <rsandifo@redhat.com>
1117         * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
1118         * varasm.c (output_constructor): Use assemble_integer rather
1119         than ASM_OUTPUT_BYTE.
1121 2001-11-23  Andreas Jaeger  <aj@suse.de>
1123         * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
1124         extension.
1126 2001-11-23  Nick Clifton  <nickc@cambridge.redhat.com>
1128         * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
1129         default definition.
1130         (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
1131         (MULTILIB_DEFAULTS): Remove previous definition.
1133 2001-11-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1135         * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
1136         * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
1138 2001-11-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1140         * cris.h: Revert thinko in last patch.
1142 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1144         * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
1145         FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
1146         cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
1147         dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
1148         explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
1149         sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
1151         * predict.c, reg-stack.c: Fix spelling errors.
1153 2001-10-09  Andrew Haley  <aph@redhat.com>
1155         * calls.c (check_sibcall_argument_overlap): Use slot_offset for
1156         start of stack slot.
1158 2001-11-22  Graham Stott  <grahams@redhat.com>
1160         * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
1161         replacement jump after original jump.
1163         (verify_flow_info): Remove redundent initialisation.
1164         Handle reaching end of insn list before finding a BARRIER.
1165         Only issue one missing barrier diagnostic.
1167 2001-11-22  Graham Stott  <grahams@redhat.com>
1169         * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
1171 Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1173         * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
1174         insn actually does.
1176 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
1178         * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
1179         Fix typo -mm32rx=> -m32rx.
1181         * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
1182         targets.
1184         * config.gcc (xscale-coff): Add necessary header files to
1185         tm_file variable.
1187 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
1189         * rs6000.c (output_cbranch): Use $, not %$, in output template.
1191 2001-11-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1193         * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
1194         (lang_type_quals): Declare.
1195         (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
1196         retrieve language-specific qualifiers for a type node, instead of
1197         C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
1198         lang_dump_tree.
1199         * tree-dump.h: Rename from c-dump.h.
1200         * c-common.h (C_TYPE_QUALS): Removed.
1201         Move declarations for tree-dump.c interface to...
1202         * tree.h: ... here. Remove lang_dump_tree.
1203         * langhooks.h (struct lang_hooks_for_tree_dump): New.
1204         (struct lang_hooks): Add tree_dump hooks.
1205         * langhooks.c (lhd_tree_dump_dump_tree): New function.
1206         (lhd_tree_dump_type_quals): New function.
1207         * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
1208         Declare.
1209         (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
1210         * Makefile.in: Move tree-dump.o to language-independent back-end.
1212 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1214         * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
1215         * alpha.h (DBX_REGISTER_NUMBER): Likewise.
1216         * arc.h (DBX_REGISTER_NUMBER): Likewise.
1217         * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
1218         * avr.h (DBX_REGISTER_NUMBER): Likewise.
1219         * c4x.h (DBX_REGISTER_NUMBER): Likewise.
1220         * clipper.h (DBX_REGISTER_NUMBER): Likewise.
1221         * convex.h (DBX_REGISTER_NUMBER): Likewise.
1222         * cris.h (DBX_REGISTER_NUMBER): Likewise.
1223         * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
1224         * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
1225         * fr30.h (DBX_REGISTER_NUMBER): Likewise.
1226         * h8300.h (DBX_REGISTER_NUMBER): Likewise.
1227         * i370.h (DBX_REGISTER_NUMBER): Likewise.
1228         * i860.h (DBX_REGISTER_NUMBER): Likewise.
1229         * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
1230         * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
1231         * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
1232         * m32r.h (DBX_REGISTER_NUMBER): Likewise.
1233         * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
1234         * m88k.h (DBX_REGISTER_NUMBER): Likewise.
1235         * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
1236         * mcore.h (DBX_REGISTER_NUMBER): Likewise.
1237         * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
1238         * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
1239         * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
1240         * romp.h (DBX_REGISTER_NUMBER): Likewise.
1241         * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
1242         * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
1243         * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
1244         * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
1245         * v850.h (DBX_REGISTER_NUMBER): Likewise.
1246         * vax.h (DBX_REGISTER_NUMBER): Likewise.
1247         * we32k.h (DBX_REGISTER_NUMBER): Likewise.
1249         * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
1250         * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
1252 2001-11-21  H.J. Lu <hjl@gnu.org>
1254         * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
1256 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1258         * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
1259         emit_cmp_and_jump_insns.
1261         * stormy16.c (xstormy16_expand_builtin_va_arg,
1262         xstormy16_expand_casesi): Likewise.
1264 Wed Nov 21 17:37:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1266         * function.c (keep_stack_depressed): Major rework.
1267         (handle_epilogue_set, emit_equiv_load): New functions.
1268         (thread_prologue_and_epilogue_insns): keep_stack_depressed now
1269         has return value.
1270         * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
1271         * rtl.h (SET_IS_RETURN_P): New macro.
1273         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
1274         and also support TREE_ADDRESSABLE.
1275         * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
1277 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
1279         * rs6000.md (cmptf_internal1): Replace %$ with $.
1281 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
1283         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
1284         (read_include_file): Use STAT_SIZE_TOO_BIG.
1286         * cppinit.c (INO_T_COPY): Define.
1287         (INO_T_EQ): Uppercase parameters.
1288         (append_include_chain): Use INO_T_COPY.
1290 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
1292         * cfg.c: Fix typos and formatting in the introductory comment.
1294 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
1296         * profile.c (compute_branch_probabilites):  Compute probabilities
1297         for entry/exit edges; estimate probabilities for zero counts.
1299 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
1301         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
1302         to emit_library_call.
1303         * function.c (expand_main_function, expand_function_start,
1304         expand_function_end): Likewise.
1305         * profile.c (output_func_start_profiler): Likewise.
1306         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
1307         second argument to emit_library_call.
1308         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
1309         as second argument to emit_library_call.
1310         * calls.c (emit_library_call): Update fn_type description.
1312 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
1314         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
1315         if fndecl is still DECL_INLINE and has DECL_RESULT.
1317 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1319         * clipper.c (clipper_movstr): Avoid uninitialized warning.
1320         * i960.c (is_mask, legitimize_address): Likewise.
1321         * m88k.c (m88k_expand_prologue): Likewise.
1322         * m88k.md: Likewise.
1323         * mcore.c (emit_new_cond_insn): Likewise.
1324         * stormy16.c (xstormy16_emit_cbranch): Likewise.
1326 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
1328         * config.gcc: Delete powerpcle-*-solaris2* stanza.
1329         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
1330         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
1331         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1332         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
1333         config/rs6000/t-ppcos: Expunge all references to Solaris.
1335         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
1337         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
1338         output templates.
1339         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
1340         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
1342 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1344         * sh.md: Avoid uninitialized warnings.
1345         * vax.c (vax_rtx_cost): Likewise.
1347 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
1349         * rs6000.c (direct_return): Check if we are saving altivec
1350         registers.
1351         (first_altivec_reg_to_save): New.
1352         Updated stack frame layout comments.
1353         (rs6000_stack_info): Calculate altivec register save size.
1354         Save link register if we saved some altivec registers.
1355         (rs6000_stack_info): Align save size to 16 if altivec abi or
1356         abi_darwin.
1357         (rs6000_stack_info): Calculate altivec register offsets.
1358         (rs6000_stack_info): Add altivec info to save_size.
1359         (debug_stack_info): Add altivec debug info.
1360         (rs6000_emit_prologue): Save altivec registers and vrsave.
1361         (compute_vrsave_mask): New.
1362         (altivec_expand_builtin): Remove unused variables.
1363         (rs6000_parse_abi_options): Add static qualifier.
1364         (rs6000_expand_builtin): Remove unused parameters.
1365         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
1366         (altivec_init_builtins): Same.
1367         (is_altivec_return_reg): New.
1368         (vrsave_operation): New.
1369         (ALTIVEC_REG_BIT): New.
1370         (generate_set_vrsave): New.
1372         * rs6000.md (get_vrsave): New.
1373         (set_vrsave): New.
1374         (*set_vrsave_internal): New.
1376         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
1377         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
1378         altivec_padding_size, vrsave_mask.
1379         (TOTAL_ALTIVEC_REGS): New.
1380         (EPILOGUE_USES): Add VRSAVE_REGNO.
1382 2001-11-20  Jeff Law <law@redhat.com>
1384         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
1385         exit label as necessary.
1387 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
1389         * reload1.c (elimination_effects): Use function_invariant_p
1390         instead of CONSTANT_P when considering register equivalences.
1392 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
1394         * config.gcc: Add FreeBSD/PowerPC target.
1395         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
1396         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
1397         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
1398         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
1399         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
1400         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
1401         freebsd-spec.h to tm_file.
1402         (rs6000-*-lynxos*): Add lynx.h to tm_file.
1403         * config/freebsd.h: Tidy up.
1404         (USING_CONFIG_FREEBSD): Define.
1405         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
1406         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
1407         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
1408         (TARGET_HAS_F_SETLKW): Define.
1409         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
1410         * config/freebsd-spec.h: New file.
1411         * config/rs6000/freebsd.h: New file.
1412         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
1413         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
1414         USING_SVR4_H to know when to turn on ELF support.
1415         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
1416         define only if not already defined.
1417         Add FreeBSD support.
1418         * config/rs6000/aix.h (TARGET_VERSION): Define.
1419         * config/rs6000/beos.h: Likewise.
1420         * config/rs6000/darwin.h: Likewise.
1421         * config/rs6000/mach.h: Likewise.
1422         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
1423         Don't include lynx.h directly.
1425 2001-11-20  Graham Stott  <grahams@redhat.com>
1427         * unwind-dw2-fde.c (__deregister_frame_info_bases):
1428         Fix lossage in last change return OB.
1430 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
1432         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
1433         Remove unneeded exit related macros.
1435 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
1437         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
1439         * rs6000.c (rs6000_emit_move): Add TFmode case.
1440         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
1441         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
1442         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
1443         * rs6000.h: ... to here.
1444         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
1445         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
1446         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
1448 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1450         * emit-rtl.c (get_mem_attrs): Fix typo.
1452 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
1454         * c-lang.c (finish_file): Backout 2001-11-16
1455         changes, instead set DECL_DEFER_OUTPUT for static inline functions
1456         before calling c_expand_deferred_function.
1458 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
1460         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
1461         Don't register empty .eh_frame sections.
1462         (__deregister_frame_info_bases, __deregister_frame): Don't
1463         unregister them either.
1465 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
1467         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
1468         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
1469         * configure: Regenerate.
1470         * config.in: Add dummy definitions of new flags.
1471         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
1472         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
1473         * gcc.c (ASM_DEBUG_SPEC): New macro.
1474         (asm_debug): New static variable.
1475         (default_compilers): Add asm_debug when assembling from
1476         user input.
1477         (static_specs): Add asm_debug.
1479 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
1481         * config.gcc (*-*-freebsd*): Remove configuration block.
1483 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
1485         bootstrap/4422
1486         * configure.in: Setup ability to run ./stage[1234]/xgcc in
1487         fixinc *as if* it were a proper lang subdirectory.
1488         * configure: Rebuilt.
1490 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
1492         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
1494 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1496         * 1750a.md: Don't use hex format for a const_int.
1498 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
1500         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
1502 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
1504         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
1505         defined (prevents link errors when gettext isn't in the system
1506         library).
1508 2001-11-19  DJ Delorie  <dj@redhat.com>
1510         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
1511         (validate_const_int): New.
1512         (read_rtx): Validate constant integers.
1513         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
1515 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
1517         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
1519 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
1521         * toplev.c (DUMPFILE_FORMAT): Define default.
1522         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
1523         (close_dump_file, compile_file): Likewise.
1524         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
1525         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
1527 2001-11-19  Jeff Law <law@redhat.com>
1529         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
1530         a nop-jump.
1532 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1534         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
1535         Don't fall off the base token run.
1537 2001-11-19  Jason Wilkins <fenix@io.com>
1539         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
1541 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1543         * tree.def (VIEW_CONVERT_EXPR): New tree code.
1544         * tree.h (handled_component_p): New declaration.
1545         * alias.c (handled_component_p): Move function from here ...
1546         * expr.c (handled_component_p): ... to here and non longer static.
1547         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
1548         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
1549         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
1550         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
1551         (expand_expr, case VIEW_CONVERT_EXPR): New case.
1552         (expand_expr, cse ADDR_EXPR): No need to copy if already
1553         BIGGEST_ALIGNMENT.
1554         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
1555         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
1556         (output_constant): Handle VIEW_CONVERT_EXPR.
1557         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
1558         Add new case for VIEW_CONVERT_EXPR.
1560 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1562         * a29k/unix.h (ASM_FILE_START): Const-ify.
1563         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
1564         * i386/isc.h (ASM_FILE_START): Const-ify.
1565         * i386/sun386.h (ASM_FILE_START): Likewise.
1566         * m32r.md: Likewise.
1567         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
1568         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
1569         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
1570         * mn10200.md: Initialize variable.
1572 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
1574         * gcse.c (try_replace_reg): Copy RTX before creating note.
1576         * df.h (df_ref_flags): New uenum.
1577         (DF_REF_FLAGS): New macro.
1578         (struct ref): Add field "flags".
1579         * df.c (HANDLE_SUBREG): Remove.
1580         (df_ref_create): Likewise; set flags field of ref.
1581         (df_def_record_1): Strip down read_write subreg; remove
1582         commented out code; set READ_WRITE flag.
1583         (read_modify_subreg_p): New static function.
1584         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
1585         new argument "flags".
1586         (df_insn_refs_record): Update call of df_uses_record.
1587         (df_insn_modify): Avoid #if 0 around comment.
1588         (df_dump): Dump the read/write flag.
1590         * predict.c (propagate_freq): Make cyclic_probability and frequency
1591         volatile
1593         * i386.c (ix86_cc_mode): Accept USE.
1595         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
1596         jump is turned into simplejump.
1598 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
1600         * doc/fragments.texi, doc/trouble.texi: Remove links to old
1601         installation chapter.
1602         * doc/gcc.texi: Don't claim that this manual documents
1603         installation.  Mark Installation menu entry as being out of date.
1605 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
1607         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
1608         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
1609         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
1611 2001-11-19  Jason Merrill  <jason@redhat.com>
1613         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
1614         cur_token, not after.
1616         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
1617         Lose ASM_OUTPUT_CONSTRUCTOR.
1618         * system.h: Poison it and INT_ASM_OP.
1619         * c-lang.c (finish_file): Don't check for it.
1620         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
1622 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1624         * mmix.c (mmix_cc1_ignored_option): Const-ify.
1625         (mmix_init_machine_status): Make static to match declaration.
1626         (mmix_unique_section): Const-ify.
1627         (mmix_output_quoted_string): Avoid automatic aggregate
1628         initialization.
1629         (mmix_output_register_setting): Likewise.
1630         (mmix_output_shiftvalue_op_from_str): Likewise.
1632         * mmix.h (mmix_cc1_ignored_option): Const-ify.
1633         (ASM_OUTPUT_BYTE): Fix format specifier warning.
1634         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1636 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1638         PR c/4448
1639         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
1640         name __objc_thread_exit_status so that it matches the
1641         variable defined in objc/thr.h.
1643 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1645         PR bootstrap/4020
1646         * mklibgcc.in: Add missing semi-colons.
1647         * Makefile.in: Same.
1649 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1651         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
1652         after re-laying out decl in incomplete case.
1653         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
1655 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1657         * doc/install-old.texi: Move some sections out to ...
1658         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
1659         ... here.  New files.  Make into chapters rather than sections.
1660         * doc/gcc.texi: Include the new files and add menu entries for
1661         them.
1662         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1664 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1666         * tree.h (TYPE_ALIGN_OK): New flag.
1667         * emit-rtl.c (set_mem_attributes): Handle it.
1668         * expr.c (emit_single_push_insn): Only set to alias set 0 if
1669         doing sibcall optimization.
1670         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
1671         when make temporary.
1672         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
1673         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
1675         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
1677 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1679         * c-decl.c (c_decode_option): Give deprecation warning for
1680         -traditional.
1681         * doc/invoke.texi (-traditional): Note that this option is
1682         deprecated.
1684 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
1686         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
1687         arg to HOST_WIDE_INT, not long.
1689         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
1690         (HAS_INIT_SECTION): Define.
1691         (REAL_ARITHMETIC): Don't undefine.
1693 2001-11-18  Egor Duda  <deo@logos-m.ru>
1695         * config/i386/cygwin.h: Strip leading '*' from name, if any.
1697 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1699         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
1700         * c-common.c: Include diagnostic.h.
1701         (c_common_finish): New.
1702         * c-common.h (c_common_finish): New.
1703         * c-lang.c (LANG_HOOKS_FINISH): Override.
1704         * c-parse.in: Don't include diagnostic.h.
1705         (finish_parse): Remove.
1706         * langhooks.h: Update comments.
1707         * toplev.c (lang_dependent_init): New prototype.
1708         (finalize): New.
1709         (compile_file): Split cleanup code out to finalize.
1710         (lang_dependent_init): Stop if lang_hooks.init fails.
1711         (toplev_main): Update.
1712         * tree.h (finish_parse): Remove.
1713 objc:
1714         * objc-act.c (LANG_HOOKS_FINISH): Override.
1716 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
1718         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
1719         * config/alpha/vms_tramp.asm: New file.
1720         * config/alpha/vms-tramp.asm: Removed.
1722 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1724         * c-common.c (struct disabled_builtin, disabled_builtins,
1725         disable_builtin_function, builtin_function_disabled_p): New.
1726         (builtin_function_2): Check for disabled built-in functions.
1727         * c-common.h (disable_builtin_function): Declare.
1728         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
1729         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
1730         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
1732 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1734         PR target/4606
1735         * config.gcc: Remove reference to va-clipper.h.
1737 2001-11-17  Stan Shebs  <shebs@apple.com>
1739         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
1740         AltiVec-related bitfields.
1742 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1744         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
1745         (mark_eh_region, case ERT_UKNONW): New case.
1747 2001-11-17  Christopher Faylor  <cgf@redhat.com>
1748             Corinna Vinschen  <vinschen@redhat.com>
1750         * config/i386/cygwin.h: Search target specific include directory for
1751         w32api stuff, if appropriate.
1753 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
1755         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
1757 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
1759         * config/rs6000/rs6000.md: Change all ldvx to lvx.
1761 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
1763         * gensupport.c (process_rtx): Don't assume filename is the first
1764         argument of any rtl.
1766 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1768         * vax-protos.h (reg_was_0_p): New prototype.
1769         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
1770         * vax.c (follows_p, reg_was_0_p): New functions.
1772 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1774         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
1775         (casesi1): Likewise.  Define new pattern which arises by simplification
1776         when operand 1 is a constant int.  Correct pattern which arises by
1777         simplification when operand 1 is zero.
1779 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
1781         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
1782         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
1783         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
1784         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
1785         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
1786         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
1787         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
1788         * config/arm/aof.h: Don't include arm.h.
1789         * config/arm/aout.h: Likewise.
1790         * config/arm/coff.h: Don't include semi.h and aout.h.
1791         * config/arm/elf.h: Don't include aout.h.
1792         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
1793         (TARGET_VERSION): Undef before defining.
1794         (ARM_OS_NAME): Likewise
1795         (TARGET_DEFAULT): Likewise
1796         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
1797         * config/arm/pe.h: Don't include arm/coff.h.
1798         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
1799         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
1800         * config/arm/riscix1-1.h: Likewise.
1801         * config/arm/rix-gas.h: Don't include riscix.h.
1802         (DBX_CONTIN_LENGTH): Undef before defining.
1803         * config/arm/semi.h: Don't include aout.h.
1804         * config/arm/semiaof.h: Don't include aof.h.
1805         * config/arm/strongarm-coff.h: Don't include coff.h.
1806         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
1807         * config/arm/vxarm.h: Don't include arm/coff.h.
1808         * config/arm/xscale-coff.h: Don't include coff.h.
1810 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1812         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
1813         emit_cmp_insn.
1815 2001-11-16  Andreas Jaeger  <aj@suse.de>
1817         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
1818         to ....
1819         (fixup_fallthru_exit_predecessor): ... this.
1820         Change callers and prototype.
1822 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
1824         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
1825         hand; don't use gen_setcc_2.
1826         (ix86_expand_builtin): Fix pshufw.
1827         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
1828         case UNORDERED to emit the right assembler instruction.
1829         (mmx_pshufw): Lose operand 2.
1830         (cvtsi2ss): Fix representation.
1831         From Graham Stott:
1832         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
1834 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
1836         * doc/include/linux-and-gnu.texi: Remove.
1837         * doc/gnu.texi: New.
1838         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
1839         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1841 2001-11-16  Kazu Hirata  <kazu@hxi.com>
1843         * config/a29k/a29k.c: Fix comment formatting.
1844         * config/a29k/a29k.h: Likewise.
1845         * config/arc/arc.c: Likewise.
1846         * config/arc/arc.h: Likewise.
1847         * config/vax/vax.c: Likewise.
1848         * config/vax/vax.h: Likewise.
1849         * config/we32k/we32k.c: Likewise.
1850         * config/we32k/we32k.h: Likewise.
1852 2001-11-16  Jeff Law  <law@redhat.com>
1854         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
1855         creating a new jump insn.
1857 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1859         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
1860         copy misaligned data.
1861         * varasm.c (assemble_variable): Set alignment into MEM when changed.
1863 2001-11-16  Graham Stott  <grahams@redhat.com>
1865         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
1866         OPALIGN type.
1868 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
1870         * except.c: Support for catching a list of types with a single handler
1871         (struct eh_region): Change type and filter to lists for catch regions.
1872         (mark_eh_region): Mark the filter list for GC also.
1873         (expand_start_catch): Always build a list if argument not NULL and
1874         register each type of the list through add_type_for_runtime.
1875         (duplicate_eh_region_1): Change type into type_list for catch regions.
1876         (assign_filter_values): Assign a filter to each type associated with a
1877         catch region. Assign filter for NULL types in a unique entry in the
1878         filter list.
1879         (build_post_landing_pads): Emit compare and jump for each filter of
1880         the list associated with a catch region.
1881         (reachable_next_level): When the type thrown is known, stop the search
1882         as soon as one type within a catch list matches. Also, a handler is
1883         potentially reachable only if at least one of the types it catches
1884         has not been previously caught.
1885         (collect_one_action_chain): Retrieve the filter for a NULL type list
1886         from the first filter list entry. For non NULL type lists, add an
1887         action record for every filter assigned.
1888         * except.h: Reflect changes in comment before expand_start_catch.
1890 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1892         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
1893         BLKmode.
1895 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
1897         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
1899 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
1901         * c-lang.c (finish_file): Don't emit static inline functions if
1902         they weren't referenced.
1904 2001-11-15  Stan Shebs  <shebs@apple.com>
1906         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
1908 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1910         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
1911         call.
1912         * config/i386/i386.md: Likewise.
1914 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1916         * timevar.c (rtl.h): Include so get fancy abort.
1918 2001-11-15  Dale Johannesen  <dalej@apple.com>
1920         * config/darwin.h (SELECT_RTX_SECTION):  Force address
1921         initializers into 'const' section
1922         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
1923         if_then_else to match result, not operands
1925 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1927         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
1928         * emit-rtl.c (change_address): Fix typo in default alignment.
1929         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
1930         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
1931         * rtl.h (REGNO_PTR_FRAME_P): New macro.
1933         * expr.c (store_field): Pass tree instead of max size; callers changed.
1934         Change handling of alignment.
1935         Only copy to_rtx if is TARGET.
1936         (expand_expr_unaligned): Delete; callers now use expand_expr.
1937         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
1938         (expand_assignment): Change handling of alignment.
1939         Only copy to_rtx if was original.
1940         (get_inner_reference): No longer return alginment; callers changed.
1941         (expand_expr, case COMPONENT_REF): Change handling of alignment.
1942         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
1943         (compare_from_rtx): Delete ALIGN parm; all callers changed.
1944         (do_compare_rtx_and_jump): Likewise.
1945         * expr.h: Reflect above changes.
1946         * tree.h: Likewise.
1947         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
1948         to get_inner_reference.
1949         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
1950         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
1951         * optabs.c: Likewise.
1952         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
1953         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
1954         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
1955         compare_rtx_and_jump, and emit_cmp_jump_insns.
1956         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
1957         * function.c (assign_stack_temp_for_type): No longer static.
1958         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
1959         (prepare_cmp_insn): Delete declaration.
1960         * rtl.h (assign_stack_temp_for_type): Add declaration.
1961         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
1962         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
1963         * config/i386/i386.c,config/mips/mips.c: Likewise.
1964         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
1965         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
1967 2001-11-15  Stan Shebs  <shebs@apple.com>
1969         * config/rs6000/rs6000.h: Fix a comment typo.
1970         (RTX_COSTS): Sort processor versions better.
1972 2001-11-15  Kazu Hirata  <kazu@hxi.com>
1974         * config/h8300/h8300.md: Fix insn length of bit insns.
1976 2001-11-15  Jason Merrill  <jason@redhat.com>
1978         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
1979         DIEs if there were errors in the source.
1981         * config/alpha/alpha-interix.h, config/alpha/elf.h,
1982         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
1983         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
1984         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
1985         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
1986         config/elfos.h, config/lynx.h, config/netware.h,
1987         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
1988         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
1989         uses to use ASM_LONG.
1991 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
1993         * gensupport.c  process_include : Change call to alloca to
1994         xmalloc.
1996 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
1998         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
1999         templates.
2001 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2003         * final.c (alter_subreg): If simplify_subreg can't do anything,
2004         handle REG ourselves and abort for others.
2006 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
2008         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
2009         routines.
2011 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2013         * fix-header.c (read_scan_file): Update.
2015 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2017         * toplev.c (toplev_main): Don't start timing until after
2018         command-line options are parsed.
2020 2001-11-15  Andreas Schwab  <schwab@suse.de>
2022         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
2023         makefile frag, not host makefile frag.
2024         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
2025         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
2026         used.
2027         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
2028         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
2029         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
2030         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
2031         * config/i386/t-dgux (STMP_FIXPROTO): Define.
2032         * config/x-interix: Don't define STMP_FIXPROTO and
2033         FIXPROTO_DEFINES.
2034         * config/t-interix: New file, define STMP_FIXPROTO.
2035         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
2036         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
2037         * config/t-svr4 (FIXPROTO_DEFINES): Define.
2038         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
2039         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
2040         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
2041         * config/m68k/t-hp3200: Renamed from x-hp3200.
2042         * config/i370/t-oe: Renamed from x-oe.
2043         * config/mips/t-iris: Renamed from x-iris.
2044         * config/pa/t-bsd: Renamed from x-pa.
2045         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
2046         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
2047         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
2048         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
2049         config/rs6000/x-cygwin: Remove files.
2051         * configure.in: Check for target objdump and use that in eh_frame
2052         optimization test.
2053         * configure: Regenerated.
2055 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
2057         * jump.c (squeeze_notes): Return true if no real insns were found.
2058         * rtl.h (squeeze_notes): Adjust prototype.
2059         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
2060         squeeze_notes finds no real instructions, abort.
2061         (merge_blocks_move_successor_nojumps): Likewise.
2062         * loop.c (find_and_verify_loops): Likewise.
2063         * stmt.c (expand_end_case): Likewise.
2064         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
2065         find any real instructions.
2067         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
2069         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
2070         conditional jump, request updating life into for the block
2071         containing it.  Fix a typo which prevented life info update.
2072         Clear blocks bitmap before using it.
2074 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
2076         * c-common.c: Include c-lex.h.
2077         (c_common_lang_init): Change prototype.  Call init_c_lex and
2078         init_pragma from here.
2079         * c-common.h (c_common_lang_init): Change prototype.
2080         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
2081         * c-lang.c (c_init): Change prototype.  Update.
2082         (c_init_options): Update.
2083         * c-lex.c (cpp_filename): Remove.
2084         (init_c_lex): Update.  Read the main file, and get the original
2085         file name.
2086         (yyparse): Finish the command line options.
2087         * c-parse.in (c_parse_init): Call init_reswords here.
2088         (init_parse): Remove.
2089         * c-tree.h (c_init_decl_processing): New.
2090         * cpphash.c (_cpp_init_hashtable): After initializing the hash
2091         table, populate it.
2092         * cppinit.c (read_original_filename, cpp_finish_options): New.
2093         (cpp_create_reader): New prototype. Defer hash table initialization.
2094         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
2095         hash table.  Get the original filename.
2096         * cpplib.h (cpp_create_reader): Update.
2097         (cpp_start_read): Remove.
2098         (cpp_read_main_file, cpp_finish_options): New.
2099         * cppmain.c (main, do_preprocessing): Update.
2100         * langhooks.h (struct langhooks): Update init prototype.
2101         * toplev.c (general_init, parse_options_and_default_flags,
2102         process_options, lang_indpendent_init, lang_dependent_init,
2103         init_asm_output): New; perform the bulk of initialization.
2104         (compile_file): Move most of initialization to above functions.
2105         (debug_hooks): Initialize statically.
2106         (set_Wunused): Relocate.
2107         (toplev_main): Move most of initialization to other init functions.
2108         Have a clear logic flow.
2109         * tree.h (init_parse, init_decl_processing): Remove.
2110 objc:
2111         * objc-act.c (objc_init): Update prototype, combine with old
2112         init_parse.
2113         (objc_init_options): Update.
2116 2001-11-15  Andreas Jaeger  <aj@suse.de>
2118         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
2119         portability.
2120         * basic-block.h: Adjust prototype.
2122 2001-11-15  Kazu Hirata  <kazu@hxi.com>
2124         * config/rs6000/aix31.h: Fix comment formatting.
2125         * config/rs6000/beos.h: Likewise.
2126         * config/rs6000/darwin.h: Likewise.
2127         * config/rs6000/eabi.asm: Likewise.
2128         * config/rs6000/linux.h: Likewise.
2129         * config/rs6000/linux64.h: Likewise.
2130         * config/rs6000/lynx.h: Likewise.
2131         * config/rs6000/netbsd.h: Likewise.
2132         * config/rs6000/rs6000.c: Likewise.
2133         * config/rs6000/rs6000.h: Likewise.
2134         * config/rs6000/rs6000.md: Likewise.
2135         * config/rs6000/sol2.h: Likewise.
2136         * config/rs6000/tramp.asm: Likewise.
2137         * config/rs6000/xcoff.h: Likewise.
2138         * config/rs6000/xm-beos.h: Likewise.
2140 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
2142         * rtl.def (INCLUDE) : Define.
2143         * gensupport.c  (init_include_reader, process_include,
2144         save_string) :  New functions to implement an include facility
2145         in .md files.
2146         * gensupport.h : Add prototype for init_md_reader_args.
2147         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
2148         genextract.c genflags.c genopinit.c genoutput.c
2149         genpeep.c genrecog.c: Change call to init_md_reader to
2150         init_md_reader_args.
2151         * md.texi: Document (include "path") and -I directives for RTL
2152         generation tools.
2154 2001-11-14  DJ Delorie  <dj@redhat.com>
2156         * integrate.c (get_hard_reg_initial_reg): New.
2157         * integrate.h (get_hard_reg_initial_reg): Prototype.
2158         * local-alloc.c (block_alloc): Don't tie pseudos that
2159         represent call-saved hard regs' initial values.
2161 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2163         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
2164         recursion.
2166 2001-11-14  Roger Sayle <roger@eyesopen.com>
2168         * fold-const.c (fold): Optimize strlen comparisons against zero.
2170 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
2172         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
2173         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
2174         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
2175         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
2176         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
2177         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
2178         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
2179         Include various CPU headers via tm_file.  a.out based platforms now
2180         properly include sparc/aout.h.  sol2.h usage now implies including
2181         elfos.h, svr4.h, and sparc/sysv4.h.
2182         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
2183         Also define to '1'.
2184         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
2185         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
2186         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
2187         Remove.  They are a.out specific and belong in sparc/aout.h.
2188         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
2189         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2190         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
2191         sparc/sparc.h.
2192         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
2193         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
2194         Moved here from sparc/sparc.h.
2195         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
2196         defining.
2197         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
2198         * config/sparc/lynx.h:  Don't include lynx.h.
2199         (SELECT_SECTION): Do not undef.
2200         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
2201         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
2202         and sparc/sysv4.h.
2203         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
2204         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
2205         sparc/aout.h now.
2206         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
2207         Don't undef, there is no need.
2208         * config/sparc/splet.h (CPP_PREDEFINES): Define.
2209         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
2210         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
2211         Don't include sparc/sparc.h.
2212         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
2213         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
2214         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
2215         elfos.h and svr4.h.
2216         (TARGET_VERSION): Define.
2217         * config/sparc/vxsim.h (TARGET_VERSION): Define.
2219 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
2221         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
2222         (cfg_layout_finalize): Use it.
2223         * bb-reorder.c (HAVE_epilogue): Remove.
2224         (make_reorder_chain): Do not care special placement of
2225         last basic block.
2227         * predict.c (expected_value_to_br_prob): Delete the note
2228         once transformed.
2230         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
2231         measure integration time separately.
2233 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2235         * function.c (struct temp_slot): ALIGN now unsigned.
2237 2001-11-14  Kazu Hirata  <kazu@hxi.com>
2239         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
2240         * config/dsp16xx/dsp16xx.h: Likewise.
2241         * config/dsp16xx/dsp16xx.md: Likewise.
2243 2001-11-14  Kazu Hirata  <kazu@hxi.com>
2245         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
2246         that deals with 7-bit shifts in HImode.
2248 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
2250         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
2251         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
2252         (final_scan_insn): Update call of alter_subreg.
2253         (cleanup_subreg_operands): Likewise.
2254         (alter_subreg): Rewrite using simplify_subreg.
2255         (output_address, output_operand): Update call of alter_subreg.
2256         * output.h (alter_subreg): Update prototype.
2257         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
2258         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
2259         * Makefile.in (final.o): Add dependency on expr.h
2261 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2263         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
2265 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
2267         * doc/install.texi (sparc-*-linux*): Mention requirements for
2268         binutils and glibc.
2270 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
2272         * Makefile.in (POD2MAN): Don't include --section=1.
2273         (manext): Rename to man1ext.  All users changed.
2274         (man7ext): New.
2275         (man7dir): New.
2276         (generated-manpages): Also depend on $(docdir)/gfdl.7,
2277         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
2278         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
2279         --section=1 in calls to $(POD2MAN).
2280         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
2281         (maintainer-clean, install, uninstall): Handle the new man pages.
2282         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
2283         (installdirs): Create man7dir.
2284         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
2285         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
2286         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
2287         the SEE ALSO man page section.
2288         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
2289         and fsf-funding(7) in the SEE ALSO man page section.
2290         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
2291         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
2292         * doc/include/fdl.texi, doc/include/funding.texi,
2293         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
2294         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
2296 2001-11-13  Richard Henderson  <rth@redhat.com>
2298         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
2299         as appropriate for the artificial decl.
2301 2001-11-13  Richard Henderson  <rth@redhat.com>
2303         * loop.c (combine_movables): Turn off combination until
2304         move_movables validation bugs are fixed.
2306 2001-11-13  DJ Delorie  <dj@redhat.com>
2308         * config.gcc (powerpc|rs6000): Set default cpp options based
2309         on --with-cpu settings.
2310         * config/rs6000/softfloat.h: New.
2312 2001-11-13  Kazu Hirata  <kazu@hxi.com>
2314         * config/h8300/h8300.c (shift_alg_si): Use special code for
2315         25-bit shifts on H8/S.
2316         (get_shift_alg): Generate special code for 25-bit shifts on
2317         H8/S.
2319 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
2321         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
2322         (adjust_automodify_address_1): New.
2323         * expr.h (adjust_address, adjust_address_nv): Adjust.
2324         (adjust_automodify_address, adjust_automodify_address_nv): Define.
2325         (adjust_address_1): Update prototype.
2326         (adjust_automodify_address_1): Add prototype.
2327         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
2328         (store_by_pieces_2): Likewise.
2330 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2332         * Makefile.in (explow.o): Now depends on ggc.h.
2333         * explow.c (ggc.h): Include.
2334         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
2336         * Makefile.in (expr.o): Depends on insn-attr.h.
2337         * expr.c (insn-attr.h): New include.
2338         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
2339         of MEM.
2340         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
2341         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
2342         clean up related usage in ADDR_EXPR.
2343         (expand_expr_unaligned): Likewise.
2345         * emit-rtl.c (change_address): Fix typo in alias setting.
2347 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2349         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
2351 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2353         PR bootstrap/3451
2354         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
2355         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
2357 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
2359         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
2360         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
2361         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
2362         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
2363         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
2364         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
2365         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
2366         sparc64-*-linux*):  Include various CPU headers via tm_file.
2367         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
2368         (SELECT_SECTION): Likewise.
2369         (SELECT_RTX_SECTION): Likewise.
2370         * config/sparc/sparc_bi.h: New file.
2371         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
2372         * config/sparc/linux-aout.h: Likewise.
2373         * config/sparc/linux.h: Don't include sparc/sysv4.h.
2374         * config/sparc/linux64.h: Likewise.
2375         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
2376         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
2377         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
2378         and dbxcoff.h
2379         (ASM_OUTPUT_IDENT): Do not #undef.
2380         (SELECT_SECTION): Likewise.
2381         (SELECT_RTX_SECTION): Likewise.
2382         * config/sparc/liteelf.h: Don't include gofast.h.
2383         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
2384         * config/sparc/lynx.h: Don't include sparc/sparc.h.
2385         * config/sparc/pbd.h: Likewise.
2386         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
2387         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
2388         * config/sparc/rtemself.h: Don't include rtems.h.
2389         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
2390         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
2391         sparc_bi.h instead.
2392         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
2393         * config/sparc/sol2.h: Include sparc/sparc.h directly.
2394         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
2395         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
2396         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
2397         * config/sparc/sp86x-elf.h: Don't include gofast.h.
2398         * config/sparc/splet.h: Don't include sparc/aout.h.
2399         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
2400         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
2401         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
2402         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
2403         * config/sparc/vxsparc64.h: Don't include gofast.h.
2404         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
2406 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2408         * doc/standards.texi: Mention C99 TC1.
2410 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2412         * mips-protos.h (mips_output_conditional_branch): Const-ify.
2413         * mips.c (mips_output_conditional_branch): Likewise.
2415 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2417         * config/h8300/h8300.c (shift_alg_si): Use special code for
2418         15-bit logical shifts and 31-bit logical shifts.
2419         (get_shift_alg): Generate special code for 15-bit and 31-bit
2420         logical shifts.
2422 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2424         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
2425         doing 6-bit logical shifts on H8/S.
2426         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
2427         (get_shift_alg): Generate special code for 21-bit shifts on
2428         H8/S.
2430 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2432         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
2433         label.
2435 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2437         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
2438         if both size and offset known.
2440 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
2442         * config/ia64/freebsd.h: Fix misspelling.
2444 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2446         * doc/gcc.texi: Move several chapters out to ...
2447         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
2448         doc/include/linux-and-gnu.texi, doc/interface.texi,
2449         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
2450         ... here.  New files.
2451         * doc/gcc.texi, doc/contrib.texi: Move section headings into
2452         contrib.texi.
2453         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2455 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2457         * config/alpha/alpha-interix.h: Fix comment formatting.
2458         * config/alpha/alpha.c: Likewise.
2459         * config/alpha/alpha.h: Likewise.
2460         * config/alpha/alpha32.h: Likewise.
2461         * config/alpha/freebsd.h: Likewise.
2462         * config/alpha/unicosmk.h: Likewise.
2463         * config/alpha/vms.h: Likewise.
2465 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2467         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
2469 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
2471         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
2472         numbers.
2474 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2476         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
2477         from type.
2478         (replace_equiv_address): Call update_temp_slot_address.
2480         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
2482         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
2484 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2486         * config/h8300/h8300.c (shift_alg_qi): New.
2487         (shift_alg_hi): Likewise.
2488         (shift_alg_si): Likewise.
2489         (get_shift_alg): Change the type of count to unsigned int.
2490         Use the tables.
2492 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
2494         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
2495         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
2496         to decide whether to defer a function.
2497         (finish_function): Adjust.
2498         (c_expand_deferred_function): New function.
2499         * c-lang.c (deferred_fns): New variable.
2500         (c_init): Initialize it, and mark it as a root.
2501         (defer_fn): New function.
2502         (finish_file): Expand all deferred functions.
2503         * c-tree.h (defer_fn): Declare.
2504         (c_expand_deferred_function): Likewise.
2505         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
2506         * objc-act.c (deferred_fns): New variable.
2507         (objc_init): Initialize it, and mark it as a root.
2508         (defer_fn): New function.
2509         (finish_file): Expand all deferred functions.
2511 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2513         * alpha.c (unicosmk_special_name): Prototype.
2514         (unicosmk_ssib_name): Delete unused variable.
2515         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
2516         * alpha/vms.h (PREFIX): Undef before defining.
2517         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
2518         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
2519         controlling usage.  Const-ify.
2520         (alias_number): Delete unused variable.
2521         * m32r/m32r.c (m32r_sched_init): Add missing argument.
2522         (m32r_expand_block_move): Fix uninitialized warnings.
2523         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
2524         always true' warnings.
2525         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
2526         * sh/sh.c: Include "integrate.h".
2527         (output_far_jump): Fix uninitialized warning.
2528         * final.c (shorten_branches): Avoid automatic aggregate
2529         initialization.
2530         * integrate.c (subst_constants): Likewise.
2532 2001-11-11  Kazu Hirata  <kazu@hxi.com>
2534         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
2535         (get_shift_alg): Remove redundant code.
2537 2001-11-11  Kazu Hirata  <kazu@hxi.com>
2539         * config/pa/milli64.S: Fix comment formatting.
2540         * config/pa/pa-64.h: Likewise.
2541         * config/pa/pa-linux.h: Likewise.
2542         * config/pa/pa-protos.h: Likewise.
2543         * config/pa/pa.c: Likewise.
2544         * config/pa/pa.h: Likewise.
2545         * config/pa/pa32-linux.h: Likewise.
2546         * config/pa/pa32-regs.h: Likewise.
2547         * config/pa/pa64-hpux.h: Likewise.
2548         * config/pa/pa64-regs.h: Likewise.
2549         * config/pa/som.h: Likewise.
2551 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2553         * doc/gcc.texi: Move several chapters out to ...
2554         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
2555         doc/service.texi, doc/standards.texi, doc/trouble.texi,
2556         doc/vms.texi: ... here.  New files.
2557         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2559 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2561         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
2562         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
2563         collect2.c, combine.c, config.in, configure, configure.in,
2564         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
2565         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
2566         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
2567         spelling errors.
2569 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2571         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
2572         Adjust operand number in CONST_DOUBLE.
2574         * expmed.c (extract_bit_field): No longer pass in alignment.
2575         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
2576         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
2577         Likewise.
2578         * expr.c (store_constructor, store_constructor_field): Likewise.
2579         (store_field, emit_group_load, emit_group_store): Likewise.
2580         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
2581         (store_bit_field, extract_bit_field): Likewise.
2582         * calls.c, expr.c, function.c: Change calls to above functions.
2583         * ifcvt.c, stmt.c: Likewise.
2585         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
2586         constant and one is on frame.
2587         If know memref offset, adjust size from decl.
2589 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2591         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
2592         format specifier warning.
2593         * convex.h (ASM_OUTPUT_BYTE): Likewise.
2594         * elfos.h (ALIGN_ASM_OP): Undef before defining.
2595         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
2596         warning.
2597         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2598         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2599         * i386-interix.h (gen_stdcall_suffix): Prototype.
2600         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2601         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2602         ASM_OUTPUT_LONG_DOUBLE): Likewise.
2603         * i386/interix.c (gen_stdcall_suffix): Const-ify.
2604         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2605         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
2606         specifier warnings.
2607         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2608         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2609         ASM_OUTPUT_LONG_DOUBLE): Likewise.
2610         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2611         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2612         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2613         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2614         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
2615         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
2616         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2617         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
2618         Likewise.
2619         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
2620         Likewise.
2621         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
2622         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2623         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
2624         Likewise.
2625         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
2626         Likewise.
2627         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
2628         Likewise.
2629         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
2630         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2631         * m68k/news.h (PRINT_OPERAND): Likewise.
2632         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
2633         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2634         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2635         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
2636         definition.
2637         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2638         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
2639         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
2640         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2641         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
2642         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
2643         PRINT_OPERAND): Likewise.
2644         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
2645         Likewise.
2646         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
2647         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
2648         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
2649         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2650         * mips.c (mips_output_external_libcall): Mark parameter with
2651         ATTRIBUTE_UNUSED.
2652         (mips_asm_file_start): Move variable into the scope where it's
2653         used.
2654         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
2655         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2656         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
2657         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2658         * ns32k.c (print_operand): Likewise.
2659         * pa.c (print_operand, output_div_insn): Likewise.
2660         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
2661         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
2662         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
2663         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
2664         specifier warnings.
2665         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2666         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2667         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
2668         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
2669         specifier warnings.
2670         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2672         * sdbout.c (sdbout_end_epilogue): Mark parameter with
2673         ATTRIBUTE_UNUSED.
2674         * varasm.c (assemble_global): Likewise.
2676 2001-11-11  H.J. Lu <hjl@gnu.org>
2678         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
2680 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
2682         * final.c (*_MAX_SKIP): Use *_max_skip variables.
2683         * flags.h (align_loops_max_skip, align_jumps_max_skip,
2684         align_labels_max_skip): New global variables.
2685         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
2686         align_labels_max_skip): New global variables.
2687         (toplev_main): Set new variables.
2688         * i386.c (override_options): Set max_skip values.
2690 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
2692         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
2693         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
2694         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
2695         don't print an @fptr for labels either.
2696         (xstormy16_output_addr_vec): Don't print @fptr here.
2697         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
2699 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
2701         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
2702         an ANSI/ISO definitino.
2703         (ssa_const_prop): Likewise.
2705 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
2707         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
2708         altivec registers.
2710 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2712         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
2713         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
2714         * cppmain.c (general_init): Call hex_init.
2715         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
2717         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
2719         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
2720         of dgux.c:output_file_start().
2722         * i386/dgux.c: Delete file.
2724 2001-11-09  Richard Henderson  <rth@redhat.com>
2726         * config/alpha/alpha.c (decl_in_text_section): New.
2727         (current_file_function_operand): Use it.
2728         (alpha_encode_section_info, alpha_end_function): Likewise.
2730 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
2732         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
2733         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
2734         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
2735         so OS specific files and use CPP_PREDEFINES for their needs.
2736         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
2737         target headers to tm_file.
2738         * config/ia64/aix.h (TARGET_VERSION): Likewise.
2739         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
2740         * config/ia64/linux.h (TARGET_VERSION): Likewise.
2741         (FUNCTION_PROFILER): Remove.
2742         * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
2743         version in config/ia64/linux.h.
2744         * config/ia64/freebsd.h: New file.
2745         * config/freebsd.h: Tidy up.
2746         (_USING_CONFIG_FREEBSD): Define.
2747         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
2748         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
2749         (FBSD_STARTFILE_SPEC): Likewise.
2750         (FBSD_ENDFILE_SPEC): Likewise.
2751         (FBSD_LIB_SPEC): Likewise.
2752         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
2753         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
2754         set an ELF-improper one.
2756 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2758         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
2759         constant can be loaded in a single instruction to a register.  When
2760         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
2761         depdi for insertion of most significant 32-bits on 64-bit hosts.
2762         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
2763         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
2764         * pa.md: New addmove pattern for adding constant_int to HImode
2765         register and moving result to HImode register.  Remove HImode HIGH
2766         and LO_SUM patterns.
2768 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2770         * Makefile.in: Update.
2771         * c-decl.c (print_lang_decl, print_lang_type): Remove.
2772         (print_lang_identifier): Rename c_print_identifier.
2773         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2774         (print_lang_statistics, lang_print_xnode): Remove.
2775         * c-parse.in (set_yydebug): Rename c_set_yydebug.
2776         * c-tree.h (c_set_yydebug, c_print_identifier): New.
2777         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
2778         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
2779         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
2780         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2781         (LANG_HOOKS_INITIALIZER): Update.
2782         * langhooks.h (struct lang_hooks): New members.
2783         (lang_print_tree_hook): New.
2784         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
2785         * print-tree.c: Include langhooks.h.
2786         (print_node): Update.
2787         * toplev.c (decode_d_option): Update.
2788         * tree.c: Include langhooks.h.
2789         (dump_tree_statistics): Update.
2790         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
2791         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
2792 objc:
2793         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
2794         LANG_HOOKS_SET_YYDEBUG): Override.
2795         (lang_print_xnode, print_lang_statistics): Remove.
2797 2001-11-09  Richard Henderson  <rth@redhat.com>
2799         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
2800         on the symbol string.
2802 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2804         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
2805         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
2806         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
2808         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
2810         * tlink.c (recompile_files): Copy strings passed to `putenv'.
2812 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
2814         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
2815         (TYPE_READONLY): Likewise.
2817         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
2819         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
2820         don't pass --gdwarf2 to the assembler if the compiler will also
2821         provide debug info.
2823         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
2824         Don't change INDEX.
2826 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2828         * alias.c (nonoverlapping_memrefs_p): New function.
2829         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
2831         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
2833 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
2835         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
2836         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
2837         generating altivec code.
2838         (FIXED_REGISTERS): VRSAVE is fixed.
2839         (CALL_USED_REGISTERS): VRSAVE is call used.
2841 2001-11-09  Jason Eckhardt  <jle@rice.edu>
2843         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
2844         code the branch target as ".+16/.+12", but rather use labels.
2846 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
2848         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
2849         to work around limitations of certain versions of GAS.
2851         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
2852         (muldi3): Update due to SUBREG_BYTE changes.
2853         (casesi): Similarly.
2855 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
2857         * doc/invoke.texi: Remove comment referring to -xf77-version.
2859 2001-11-09  Kazu Hirata  <kazu@hxi.com>
2861         * config/convex/convex.c: Fix comment formatting.
2862         * config/convex/convex.h: Likewise.
2864 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
2866         * Makefile.in (.po.pox): Look both in srcdir and builddir
2867         for $(PACKAGE).pot.
2868         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
2869         to the source directory.
2871 2001-11-09 Ben Elliston  <bje@redhat.com>
2872            Michael Meissner  <meissner@redhat.com>
2873            Andrew MacLeod  <amacleod@redhat.com>
2874            Richard Henderson  <rth@redhat.com>
2875            Nick Clifton  <nickc@redhat.com>
2876            Catherine Moore  <clm@redhat.com>
2878         * m32r.c: Add support for m32rx processor.
2879         * m32r.h: Ditto.
2880         * m32r.md: Ditto.
2881         * t-m32r: Ditto.
2882         * m32r-protos.h: Add prototypes for m32rx functions.
2883         * doc/invoke.texi: Document -m32rx option.
2885 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
2887         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
2888         or after reload.
2890 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2892         * doc/install.texi2html: Use $MAKEINFO --no-split.
2894 2001-11-09  Andreas Schwab  <schwab@suse.de>
2896         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
2897         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
2898         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
2899         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
2900         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
2902 2001-11-09  H.J. Lu <hjl@gnu.org>
2904         * config/mips/mips.c (mips_output_function_prologues): Cast
2905         `tsize' to long for output.
2907 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2909         * c-lang.c (LANG_HOOKS_NAME): New.
2910         (lang_hooks): Constify.
2911         (c_init_options): Update.
2912         (lang_identify): Remove.
2913         * c-parse.in (language_string): Remove.
2914         * dbxout.c: Include langhooks.h.
2915         (dbxout_symbol_location): Update.
2916         * dwarf2out.c: Include langhooks.h.
2917         (gen_compile_unit_die): Update.
2918         * dwarfout.c: Include langhooks.h.
2919         (prototyped_attribute, output_compile_unit_die): Update.
2920         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
2921         (LANG_HOOKS_INITIALIZER): Update.
2922         * langhooks.h (struct lang_hooks): New members.  Constify.
2923         * stringpool.c: Don't include toplev.h.
2924         (set_identifier_size): Remove.
2925         * toplev.c (toplev_main): Initialize identifier size.
2926         (print_version): Update.
2927         * tree.h (language_string, init_lex, lang_identify,
2928         set_identifier_size): Remove.
2929         * Makefile.in: Update dependencies.
2930         * config/darwin.c: Include langhooks.h.
2931         (func_name_maybe_scoped): Update.
2932         * config/darwin.h (ASM_END_FILE): Update.
2933         * config/nextstep.h (ASM_END_FILE): Update.
2934         * config/nextstep21.h (ASM_END_FILE): Update.
2935         * config/i386/sun386.h (ASM_END_FILE): Update.
2936         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
2937         (rs6000_output_function_epilogue): Update.
2938 objc:
2939         * objc-act.c (LANG_HOOKS_NAME): Override.
2940         (struct lang_hooks): Constify.
2941         (objc_init_options): Update.
2942         (lang_identify): Remove.
2944 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
2946         * fold-const.c (lshift_double): Honor PREC.
2947         (rshift_double): Likewise.
2949 2001-11-08  Kazu Hirata  <kazu@hxi.com>
2951         * config/1750a/1750a.c: Fix comment formatting.
2952         * config/1750a/1750a.h: Likewise.
2954 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
2956         * configure.in (--enable-languages): Be more permissive about
2957         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
2958         * configure: Regenerated.
2960 2001-11-08  Richard Henderson  <rth@redhat.com>
2962         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
2964 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
2966         * config.gcc: Rename stormy16 to xstormy16.
2967         * config/stormy16/stormy-abi: Likewise.
2968         * config/stormy16/stormy16-protos.h: Likewise.
2969         * config/stormy16/stormy16.c: Likewise.
2970         * config/stormy16/stormy16.h: Likewise.
2971         * config/stormy16/stormy16.md: Likewise.
2973 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
2975         * tree.h (TYPE_VOLATILE): Add enable-checking code.
2976         (TYPE_READONLY): Likewise.
2978 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2980         * reload1.c (reload): Don't delete equiv insn if can throw.
2982         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
2983         (clear_storage): Likewise, for OBJECT.
2985 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
2987         * pa.c (emit_move_sequence): Fix SUBREG expression to
2988         use proper byte offset when extending a constant from
2989         SImode to DImode.
2991 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
2993         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
2994         which cannot throw.
2996 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2998         * explow.c (convert_memory_address, case SUBREG): Only return
2999         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
3001 2001-11-08  Richard Henderson  <rth@redhat.com>
3003         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
3004         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
3005         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
3007 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
3009         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
3011 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
3013         * dwarf2out.c (debug_str_hash): New.
3014         (struct indirect_string_node): New.
3015         (struct dw_val_struct): Change type of val_str to it.
3016         (DEBUG_STR_SECTION_FLAGS): Define.
3017         (add_AT_string): Push string into hashtable, increment reference
3018         counter.
3019         (AT_string): Return string from ht_identifier.
3020         (AT_string_form): New.
3021         (free_AT): For dw_val_class_str, just decrement reference counter.
3022         (size_of_string): Remove.
3023         (size_of_die): Use AT_string_form to decide what size the string
3024         occupies in DIE.
3025         (size_of_pubnames): Use strlen instead of size_of_string.
3026         (value_format): Use AT_string_form for dw_val_class_str.
3027         (output_die): Output DW_FORM_strp strings using
3028         dw2_asm_output_offset.
3029         (indirect_string_alloc, output_indirect_string): New.
3030         (dwarf2out_finish): Emit .debug_str strings if there are any.
3032 2001-11-08  Andreas Franck  <afranck@gmx.de>
3034         * configure.in: Add AC_ARG_PROGRAM to support program name
3035         transformation with --program-prefix, --program-suffix and
3036         --program-transform-name.
3037         * configure: Regenerated.
3038         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
3039         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
3040         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
3041         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
3042         program_transform_name the way suggested by autoconf.
3043         (GCC_TARGET_INSTALL_NAME): Define.
3044         (install-driver): Use the transformed target alias name.
3046 2001-11-08  Richard Henderson  <rth@redhat.com>
3048         * config/mips/mips.c (save_restore_insns): Remove GP from the
3049         restore registers mask early instead of special casing it inside
3050         the loop.
3052 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
3054         * cp/decl.c (shadow_warning): New function.
3055         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
3056         and an error when a block scope decl shadows a parameter.
3058 2001-11-08  Richard Henderson  <rth@redhat.com>
3060         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
3061         case as well.
3063 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3065         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
3066         to implement floating negation on processors prior to PA 2.0.
3068 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
3070         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
3071         (USE_LINKONCE_INDIRECT): Define.
3072         (dw2_output_indirect_constant_1): Try to output indirect constants
3073         into linkonce sections if possible.
3074         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
3075         (dw2_output_indirect_constants): Likewise.
3077 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
3079         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
3081 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
3083         * c-decl.c (pushdecl): Remove file and line.
3084         * c-typeck.c (pop_init_level): Remove size.
3086 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
3088         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
3089         for rs6000.
3091         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
3092         (TARGET_ALTIVEC): New.
3093         (TARGET_SWITCHES): Add altivec.
3094         (FIRST_PSEUDO_REGISTER): Change to 109.
3095         (CALL_USED_REGISTERS): Same.
3096         (FIRST_ALTIVEC_REGNO): New.
3097         (LAST_ALTIVEC_REGNO): New.
3098         (ALTIVEC_REGNO_P): New.
3099         (UNITS_PER_ALTIVEC_WORD): New.
3100         (ALTIVEC_VECTOR_MODE): New.
3101         (FIXED_REGISTERS): Add altivec registers.
3102         (REG_ALLOC_ORDER): Same.
3103         (HARD_REGNO_NREGS): Adjust for altivec registers.
3104         (HARD_REGNO_MODE_OK): Same.
3105         (MODES_TIEABLE_P): Same.
3106         (REGISTER_MOVE_COST): Same.
3107         (REGNO_REG_CLASS): Same.
3108         (reg_class): Add ALTIVEC_REGS.
3109         (REG_CLASS_NAMES): Same.
3110         (REG_CLASS_CONTENTS): Same.
3111         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
3112         (ALTIVEC_ARG_RETURN): New.
3113         (FUNCTION_VALUE): Handle VECTOR_TYPE.
3114         (LIBCALL_VALUE): Handle altivec vector modes.
3115         (VECTOR_MODE_SUPPORTED_P): New.
3116         (ALTIVEC_ARG_MIN_REG): New.
3117         (ALTIVEC_ARG_MAX_REG): New.
3118         (ALTIVEC_ARG_NUM_REG): New.
3119         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
3120         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
3121         (REGISTER_NAMES): Add altivec regs.
3122         (DEBUG_REGISTER_NAMES): Same.
3123         (ADDITIONAL_REGISTER_NAMES): Same.
3124         (rs6000_builtins): New.
3125         (MD_EXPAND_BUILTIN): New.
3126         (MD_INIT_BUILTINS): New.
3127         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
3128         for AltiVec instructions.
3129         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
3130         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
3131         registers.
3132         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
3133         (TARGET_SWITCHES): Add no-altivec.
3134         (DATA_ALIGNMENT): Align vectors to 128 bits.
3135         (TARGET_OPTIONS): Add abi= option.
3136         Add rs6000_abi_string extern.
3137         (LOCAL_ALIGNMENT): New.
3138         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
3139         (MASK_ALTIVEC_ABI): New.
3140         (TARGET_ALTIVEC_ABI): New.
3141         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
3142         call-saved.
3143         (STACK_BOUNDARY): Adjust for altivec.
3144         (BIGGEST_ALIGNMENT): Same.
3145         (rs6000_args): Add vregno.
3146         (USE_ALTIVEC_FOR_ARG_P): New.
3147         (FIXED_REGISTERS): Add vrsave register.
3148         (CALL_USED_REGISTERS): Same.
3149         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
3150         (VRSAVE_REGNO): New.
3151         (reg_class): Add VRSAVE_REGS.
3152         (REG_CLASS_NAMES): Same.
3153         (REG_CLASS_CONTENTS): Same.
3154         (REGNO_REG_CLASS): Same.
3156         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
3157         (ABI_STACK_BOUNDARY): Same.
3158         (BIGGEST_ALIGNMENT): Same.
3159         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
3160         (ROUND_TYPE_ALIGN): Same.
3162         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3163         to 64.
3165         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3166         to 64.
3168         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3169         to 64.
3171         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
3172         (altivec_expand_builtin): New.
3173         (altivec_init_builtins): New.
3174         (TARGET_EXPAND_BUILTIN): New.
3175         (TARGET_INIT_BUILTINS): New.
3176         (rs6000_init_builtins): New.
3177         (struct builtin_description): New.
3178         (bdesc_2arg): New.
3179         (rs6000_reg_names): Add altivec registers.
3180         (alt_reg_names): Same.
3181         (secondary_reload_class): Altivec regs can hold altivec regs and
3182         memory.
3183         (rs6000_emit_move): Force constants into memory for AltiVec moves.
3184         (print_operand): Add 'y' case for printing altivec memory
3185         operands.
3186         (rs6000_legitimize_address): Legitimize vector addresses into
3187         [REG+REG] or [REG].
3188         (altivec_expand_binop_builtin): New.
3189         New string rs6000_current_abi.
3190         (rs6000_override_options): Call rs6000_parse_abi_options.
3191         (rs6000_parse_abi_options): New.
3192         (function_arg_boundary): Vector arguments must be 16
3193         byte aligned.
3194         (function_arg_advance): Handle vector arguments.
3195         (function_arg_partial_nregs): Same.
3196         (init_cumulative_args): Same.
3197         (function_arg): Same.
3199         * config/rs6000/rs6000.md (altivec_lvx): New.
3200         (type): Add altivec attribute.
3201         (movv4si): New.
3202         (*movv4si_internal): New.
3203         (movv16qi): New.
3204         (*movv16qi_internal): New.
3205         (movv8hi): New.
3206         (*movv8hi_internal1): New.
3207         (movv4sf): New.
3208         (*movv4sf_internal1): New.
3209         (altivec_stvx): New.
3210         (vaddubm): New.
3211         (vadduhm): New.
3212         (vadduwm): New.
3213         (vaddfp): New.
3214         (vaddcuw): New.
3215         (vaddubs): New.
3216         (vaddsbs): New.
3217         (vadduhs): New.
3218         (vaddshs): New.
3219         (vadduws): New.
3220         (vaddsws): New.
3221         (vand): New.
3222         (vandc): New.
3223         (vavgub): New.
3224         (vavgsb): New.
3225         (vavguh): New.
3226         (vavgsh): New.
3227         (vavguw): New.
3228         (vavgsw): New.
3229         (vcmpbfp): New.
3230         (vcmpequb): New.
3231         (vcmpequh): New.
3232         (vcmpequw): New.
3233         (vcmpeqfp): New.
3234         (vcmpgefp): New.
3235         (vcmpgtub): New.
3236         (vcmpgtsb): New.
3237         (vcmpgtuh): New.
3238         (vcmpgtsh): New.
3239         (vcmpgtuw): New.
3240         (vcmpgtsw): New.
3241         (vcmpgtfp): New.
3242         (vcmpgefp): New.
3243         (vcmpgtub): New.
3244         (vcmpgtsb): New.
3245         (vcmpgtuh): New.
3246         (vcmpgtsh): New.
3247         (vcmpgtuw): New.
3248         (vcmpgtsw): New.
3249         (vcmpgtfp): New.
3250         (vmaxub): New.
3251         (vmaxsb): New.
3252         (vmaxuh): New.
3253         (vmaxsh): New.
3254         (vmaxuw): New.
3255         (vmaxsw): New.
3256         (vmaxfp): New.
3257         (vmrghb): New.
3258         (vmrghh): New.
3259         (vmrghw): New.
3260         (vmrglb): New.
3261         (vmrglh): New.
3262         (vmrglw): New.
3263         (vminub): New.
3264         (vminsb): New.
3265         (vminuh): New.
3266         (vminsh): New.
3267         (vminuw): New.
3268         (vminsw): New.
3269         (vminfp): New.
3270         (vmuleub): New.
3271         (vmulesb): New.
3272         (vmuleuh): New.
3273         (vmulesh): New.
3274         (vmuloub): New.
3275         (vmulosb): New.
3276         (vmulouh): New.
3277         (vmulosh): New.
3278         (vnor): New.
3279         (vor): New.
3280         (vpkuhum): New.
3281         (vpkuwum): New.
3282         (vpkpx): New.
3283         (vpkuhss): New.
3284         (vpkshss): New.
3285         (vpkuwss): New.
3286         (vpkswss): New.
3287         (vpkuhus): New.
3288         (vpkshus): New.
3289         (vpkuwus): New.
3290         (vpkswus): New.
3291         (vrlb): New.
3292         (vrlh): New.
3293         (vrlw): New.
3294         (vslb): New.
3295         (vslh): New.
3296         (vslw): New.
3297         (vsl): New.
3298         (vslo): New.
3299         (vsrb): New.
3300         (vrsh): New.
3301         (vrsw): New.
3302         (vsrab): New.
3303         (vsrah): New.
3304         (vsraw): New.
3305         (vsr): New.
3306         (vsro): New.
3307         (vsububm): New.
3308         (vsubuhm): New.
3309         (vsubuwm): New.
3310         (vsubfp): New.
3311         (vsubcuw): New.
3312         (vsububs): New.
3313         (vsubsbs): New.
3314         (vsubuhs): New.
3315         (vsubshs): New.
3316         (vsubuws): New.
3317         (vsubsws): New.
3318         (vsum4ubs): New.
3319         (vsum4sbs): New.
3320         (vsum4shs): New.
3321         (vsum2sws): New.
3322         (vsumsws): New.
3323         (vxor): New.
3325 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
3327         * Makefile.in (df.o): Add fibheap.h to dependencies.
3329         * df.h: Add prototypes for transfer functions, iterative_dataflow
3330         functions.
3331         (enum df_flow_dir): New enum.
3332         (enum df_confluence_op): New enum.
3333         (struct df): Add inverse_rts_map.
3335         * df.c: Add sbitmap.h to the list of includes.
3336         (df_rd_global_compute): Removed.
3337         (df_ru_global_compute): Removed.
3338         (df_lr_global_compute): Removed.
3339         (df_rd_transfer_function): New function.
3340         (df_ru_transfer_function): New function.
3341         (df_lr_transfer_function): New function.
3342         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
3343         Use iterative_dataflow_bitmap instead of df_*_global_compute.
3344         (iterative_dataflow_sbitmap): New function.
3345         (iterative_dataflow_bitmap): New function.
3347 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3349         * doc/gcc.texi: Move terminology and spelling conventions to
3350         htdocs/codingconventions.html.
3352 2001-11-07  Graham Stott  <grahams@redhat.com>
3354         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
3356 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
3358         * expmed.c (expand_mult): Force operand to register before computing
3359         cost.
3360         * i386.c (x86_decompose_lea): New global vairable.
3361         * i386.h (x86_decompose_lea): Declare.
3362         (TARGET_DECOMPOSE_LEA): New macro.
3363         (RTX_COST): Handle leas properly.
3365 2001-11-06  Richard Henderson  <rth@redhat.com>
3367         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
3368         defined for a CONSTRUCTOR; don't check it.
3370 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
3372         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
3373         test for absolute pathnames.
3375 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
3377         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
3378         instructions up to the target pc inclusive.
3380 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
3382         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
3384 2001-11-06  Eric Christopher  <echristo@redhat.com>
3386         * config/mips/mips.md(movdf_internal2): Add constraints for float
3387         to general register move.
3388         * config/mips/elf64.h: Add default ABI.
3390 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3392         * alias.c:: Include langhooks.h.
3393         * emit-rtl.c: Similarly.
3394         * toplev.c: Similarly.
3395         * tree-inline.c: Similarly.
3396         * langhooks-def.h: New, the old langhooks.h.  Give the default
3397         hooks a common prefix.
3398         * langhooks.h: Contents extracted from toplev.h.
3399         * toplev.h: Move langhook stuff to langhooks.h.
3400         * langhooks.c: Give default hooks a common prefix.
3402         * c-lang.c: Include langhooks-def.h.
3403         * objc/objc-act.c: Similarly.
3404         * Makefile.in: Update.
3405         * objc/Make-lang.in: Update.
3407 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
3409         * doc/install.texi: Document that configure options not listed in
3410         this file are unsupported.  Document --with-system-zlib.
3412 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3414         * rtl.h (mem_for_const_double): New declaration.
3415         * varasm.c (mem_for_const_double): New function.
3416         * config/convex/convex.md (movdf): Use it.
3417         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
3418         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
3419         * config/m68k/m68kv4.h: Likewise.
3421         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
3422         of new GP reg classes.
3424         * expr.c (store_field): When making temp object for unaligned
3425         component, set it to alias set 0.
3427 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
3429         * c-common.c (c_expand_expr_stmt): Apply default conversions to
3430         non-lvalue arrays if C99.
3431         * c-typeck.c (default_conversion): Split out code handling
3432         array-to-pointer and function-to-pointer conversions into a
3433         separate default_function_array_conversion function.
3434         (default_function_array_conversion): New function.  Keep track of
3435         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
3436         arrays unchanged outside C99 mode instead of giving an error for
3437         them.
3438         (build_component_ref): Use pedantic_non_lvalue when handling
3439         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
3440         (convert_arguments): Use default_function_array_conversion.
3441         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
3442         non-lvalues are OK.
3443         (unary_complex_lvalue): Likewise.
3444         (internal_build_compound_expr): Use
3445         default_function_array_conversion.  Apply default conversions to
3446         function in compound expression.
3447         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
3448         Use default_function_array_conversion.
3449         * doc/extend.texi: Update documentation of subscripting non-lvalue
3450         arrays.
3451         Fixes PR c/461.
3453 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
3455         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
3456         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
3457         corresponding to the complete set of .po and .gmo files in
3458         the source directory's po subdir, modified by LINGUAS.  Don't
3459         look at ALL_LINGUAS.
3460         * configure.in: Don't set ALL_LINGUAS.
3461         * configure: Regenerate.
3463         * Makefile.in (.po.gmo): Don't move into source directory.
3464         (.po.pox): Clarify comments.
3465         (install-po): Look for .gmo files in both srcdir and objdir;
3466         don't fail if a file is totally missing.
3467         (distclean): rmdir ada subdirectory too.
3469 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
3471         * config/rs6000/rs6000.c (rs6000_select_section): Handle
3472         CONSTRUCTORs _correctly_.
3474 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3476         * c-decl.c (delete_block): Remove.
3477         * c-tree.h (delete_block): Remove.
3479 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3481         * cppexp.c (lex, parse_defined): Update warning about defined.
3483 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
3485         * config/rs6000/rs6000.c (rs6000_select_section): Handle
3486         CONSTRUCTORs too.
3488 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
3490         * config/arm/arm.c (arm_return_in_memory): Cope with
3491         int_size_in_bytes returning -1.
3493         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
3494         DECL being NULL.
3496 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
3498         * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
3499         remove unneeded dependencies;
3500         (cfglayout.o): New.
3501         * cfglayout.c, cfglayout.h: New files; break out from ...
3502         * bb-reorder.c: ... here; Remove unneeded includes;
3504 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
3506         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
3508 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
3510         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
3511         mode as well.  Do not explicitly create intermediate regs.
3513 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3515         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
3516         (common_section): Delete unused variable.
3517         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
3518         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
3519         * arm-protos.h (arm_poke_function_name, aof_add_import,
3520         aof_delete_import): Const-ify.
3521         * arm.c (legitimize_pic_address): Wrap variables in the macro
3522         controlling their usage.
3523         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
3524         (arm_poke_function_name, pic_chain, import, aof_add_import,
3525         aof_delete_import): Const-ify.
3526         * i386.c (ix86_osf_output_function_prologue): Const-ify.
3527         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3528         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
3529         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
3530         * i860/sysv3.h: Add missing comment closure.
3531         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
3532         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
3533         to symbolic_operand.
3535         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
3536         (i960-*-*): Set tmake_file.
3537         (sparc86x-*-elf*): Fix typo in header name.
3539         * sched-rgn.c (schedule_insns): Delete unused variable.
3541 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3543         PR c/2820
3544         * c-typeck.c (lookup_field): Rework to return a chain down to
3545         the looked-up field.
3546         (build_component_ref): Use the new lookup_field to handle
3547         nested anonymous entities correctly.
3549 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3551         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
3552         Change parameters to gen_rtx_CONST_DOUBLE.
3553         (GEN_INT64, sparc_emit_set_const64): Likewise.
3554         * config/sparc/sparc.md (movdf split): Likewise.
3556 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
3558         * unroll.c (calculate_giv_inc): Use find_last_value rather
3559         than just hoping the last instruction is the right SET.
3560         [Fixes 990604-1.c on stormy16.]
3562         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
3563         library at all if -T is used.
3565         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
3566         some uses of uninitialized variables in error cases.
3568         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
3569         look at 'temp' if we won't be using it.
3571         * config/stormy16/stormy16.h (CONST_COSTS): Define.
3572         (RTX_COSTS): Define.
3573         (ADDRESS_COST): Define.
3574         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
3576         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
3578         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
3579         stormy16_asm_output_mi_thunk.
3580         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
3581         function.
3582         * config/stormy16/stormy16-protos.h
3583         (stormy16_asm_output_mi_thunk): New prototype.
3585 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
3587         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
3588         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
3589         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
3590         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
3591         sched-int.h, toplev.c, config/alpha/alpha.c,
3592         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
3593         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
3594         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
3595         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
3596         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
3597         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
3598         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
3600 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3602         * Makefile.in (dbxout.o): Depend on function.h.
3603         * collect2.c (is_in_list): Hide unused function.
3604         * dbxout.c: Include function.h.
3605         (source_label_number, dbxout_source_line, dbxout_source_file,
3606         dbxout_function_end, dbxout_begin_function): Wrap/move inside
3607         macros controlling usage.
3608         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
3609         * output.h (exports_section): Prototype.
3611         * convex.c (convex_output_function_prologue): Fix format specifier
3612         warning.
3613         (asm_declare_function_name): Fix signed/unsigned warning.
3614         (print_operand): Fix format specifier warning.
3615         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
3616         * dsp16xx-protos.h (uns_comparison_operator,
3617         num_1600_core_shifts): Prototype.
3618         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
3619         (frame_size, frame_pointer_offset): Delete.
3620         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
3621         Make static.  Fix format specifier warnings.
3622         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
3623         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
3624         * dsp16xx.md: Add default case in switches.
3625         * fr30.h (IN_RANGE): Delete.
3626         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
3627         * mcore-protos.h (mcore_output_cmov): Const-ify.
3628         * mcore.c (mcore_output_cmov): Likewise.
3629         * mcore.h (switch_to_section): Make static and prototype.
3630         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
3631         unsigned>=0 warnings.
3632         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
3633         * rs6000-protos.h (read_only_data_section,
3634         read_only_private_data_section): Prototype.
3635         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3636         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
3637         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
3639 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3641         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
3642         ATTRIBUTE_UNUSED.
3643         * final.c (final_scan_insn): Add brackets around body of if-stmt.
3644         * gcc.c (convert_filename): Add static prototype.  Const-ify.
3645         Wrap variable in macros controlling its use.
3646         * output.h (sdata_section): Add prototype.
3648         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3649         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
3650         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
3651         (ASM_FILE_START): Const-ify.
3652         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
3653         specifier warning.
3654         * c4x.md: Don't use the 'U' integer suffix.
3655         * clipper.md (clipper_movstr): Delete declaration.
3656         * d30v-protos.h (d30v_move_2words): Const-ify.
3657         (debug_stack_info): Add prototype.
3658         * d30v.c: Include "integrate.h".
3659         (d30v_function_arg_boundary, d30v_function_arg,
3660         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
3661         signed/unsigned warnings.
3662         (d30v_print_operand_memory_reference, d30v_move_2words):
3663         Const-ify.
3664         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
3665         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
3666         * fr30.md: Const-ify.
3667         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3668         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
3669         (mvs_get_label_page): Hide unused static function.
3670         * i860.c (current_function_original_name): Const-ify.
3671         * i860/sysv3.h (current_function_original_name): Likewise.
3672         * i860/sysv4.h (current_function_original_name): Likewise.
3673         * i960.md: Add default case in switches.  Remove unused variable.
3674         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
3675         * m32r.md: Const-ify.
3676         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
3677         * m68hc11.c: Include "reload.h".
3678         (static_chain_reg, print_options, m68hc11_asm_file_start):
3679         Const-ify.
3680         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
3681         around & in comparison.
3682         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
3683         * mn10200.c (shift_mode): Remove trailing comma.
3684         * mn10300-protos.h (output_tst): Const-ify.
3685         * mn10300.c (output_tst): Likewise.
3686         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
3687         warnings.
3688         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
3689         * pa.c (output_ascii): Likewise.
3690         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3691         * pdp11.md (expand_unop): Delete declarations.
3692         * pj-protos.h (pj_output_addsi3): Const-ify.
3693         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
3694         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
3695         unique_src_operand): Add prototypes.
3696         (pj_output_store_into_lval): Make definition static.
3697         (pj_function_incoming_arg): Don't use unary plus.
3698         (pj_output_addsi3): Const-ify.
3699         * romp.md (get_symref): Delete declarations.
3700         * v850-c.c (mark_current_function_as_interrupt): Don't return
3701         value from void function.
3702         * v850.c: Include "integrate.h".
3703         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
3704         * vax-protos.h (const_section): Add prototype.
3706 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
3708         * machmode.def: Add documentation for the seventh argument in
3709         vector modes.
3711 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
3713         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
3714         consistently.
3715         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
3716         <-melf>: Don't have markup for ELF acronym.
3718 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
3720         * config.gcc (mmix-*-*): New target.
3721         * doc/invoke.texi: Document MMIX options.
3722         * doc/contrib.texi: Add note about MMIX port to my entry.
3723         * config/mmix/t-mmix: New file.
3724         * config/mmix/mmix.h: New file.
3725         * config/mmix/mmix-protos.h: New file.
3726         * config/mmix/mmix.c: New file.
3727         * config/mmix/mmix.md: New file.
3728         * config/mmix/crti.asm: New file.
3729         * config/mmix/crtn.asm: New file.
3731 2001-11-03  Kazu Hirata  <kazu@hxi.com>
3733         * config/sparc/linux-aout.h: Fix comment formatting.
3734         * config/sparc/linux.h: Likewise.
3735         * config/sparc/linux64.h: Likewise.
3736         * config/sparc/lynx.h: Likewise.
3737         * config/sparc/pbd.h: Likewise.
3738         * config/sparc/sol2-sld-64.h: Likewise.
3739         * config/sparc/sol2.h: Likewise.
3740         * config/sparc/sparc.c: Likewise.
3741         * config/sparc/sparc.h: Likewise.
3742         * config/sparc/sparc.md: Likewise.
3743         * config/sparc/sunos4.h: Likewise.
3744         * config/sparc/vxsim.h: Likewise.
3745         * config/sparc/vxsparc.h: Likewise.
3746         * config/sparc/vxsparc64.h: Likewise.
3748 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3750         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
3751         reference to CONST_DOUBLE_MEM in comment.
3752         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
3753         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
3754         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
3755         * function.c (pop_function_context_from): Don't call
3756         restore_varasm_status.
3757         * function.h (restore_varasm_status): Delete declaration.
3758         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
3759         * rtl.c: Likewise.
3760         * rtl.def (CONST_DOUBLE): Update comment.
3761         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
3762         (CONST_DOUBLE_CHAIN): Likewise.
3763         (CONST_DOUBLE_MEM): Delete.
3764         (gen_rtx_CONST_DOUBLE): Update parameters.
3765         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
3766         Remove reference to CONST_DOUBLE_MEM.
3767         (const_alias_set): New variable.
3768         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
3769         (immed_real_const_1): Adjust tests for 0, 1, and 2.
3770         Don't set CONST_DOUBLE_MEM.
3771         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
3772         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
3773         Put constant in const_alias_set.
3774         (struct pool_constant): ALIGN now unsigned.
3775         OFFSET now HOST_WIDE_INT.
3776         Delete LABEL.
3777         (restore_varasm_status): Deleted.
3778         (mark_pool_constant): Mark desc->rtl.
3779         (force_const_mem): Rework to store rtl in hash table,
3780         not CONST_DOUBLE_MEM.
3781         Put constant in const_alias_set.
3782         (find_pool_constant): Check desc->rtl.
3783         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
3784         (init_varasm_once): Initialize const_alias_set.
3786         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
3787         force_const_mem.
3789         * reload.c (combine_reloads): Don't combine an output reload if there
3790         are other reloads around for part of the output.
3792         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
3793         constant expression.
3794         (set_mem_decl): New function.
3795         * expr.h (set_mem_decl): New declaration.
3796         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
3797         (output_asm_operand_names): Add tab.
3798         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
3800         * builtins.c (get_memory_rtx): Properly set MEM alias set and
3801         attributes.
3803 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3805         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
3806         Use "invalid" instead of "illegal".  Use @r in comments in
3807         examples.
3809 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3811         * c-decl.c (pushdecl): Move block inside if conditional to remove
3812         possibility of a segfault.  Lookup block-level extern
3813         variables in enclosing scopes correctly.
3815         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
3817 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
3819         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
3820         SUBREG so we avoid SUBREGing memory.
3822         * expmed.c (store_bit_field): Same.
3824 2001-11-02  DJ Delorie  <dj@redhat.com>
3826         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
3827         using FP registers for DImode mem-mem moves is acceptable.
3829 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
3831         * builtins.c (apply_args_size): Handle vector arguments.
3832         (apply_result_size): Same.
3834         * machmode.def: Set WIDER mode field for all vector entries.
3836 2001-11-02  Graham Stott  <grahams@redhat.com>
3838         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
3840 2001-11-01  Eric Christopher  <echristo@redhat.com>
3842         * config.gcc: Revert part of earlier patch.
3843         * config/mips/linux.h: Ditto.
3844         * df.c: Include tm_p.h to avoid warnings.
3845         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
3846         #if/#endif.
3847         * config/mips/mips.c: Define mips_abi regardless.
3848         (mips_output_function_prologues): Add long casts for .frame
3849         output.
3850         (override_options): Allow use of ABI_32.
3852 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3854         * config/m68hc11/m68hc11.c: Fix comment formatting.
3855         * config/m68hc11/m68hc11.h: Likewise.
3856         * config/m68hc11/m68hc11.md: Likewise.
3858 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3860         * c-typeck.c (default_conversion): Retain the original expression
3861         codes.
3862         * gcc.dg/Wparentheses.c: New tests.
3864 2001-11-01  David S. Miller  <davem@redhat.com>
3866         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
3867         64-bit Sparc description more in line with reality.
3869 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
3871         * Makefile.in (GCOV_OBJS): Add version.o.
3872         * gcov.c: Include "version.h" and <getopt.h>.
3873         (gcov_version_string): Remove.
3874         (print_usage): Take a parameter to determine whether this is a
3875         call from --help or an error message.  Give fuller output that
3876         follows the GNU Coding Standards for --help.
3877         (print_version): New function.
3878         (options): New.
3879         (process_args): Use getopt_long.  Support long options.  Follow
3880         GNU Coding Standards for --help and --version.
3881         * doc/gcov.texi: Document long options.
3882         Addresses part of PR other/704.
3884 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3886         * pa.c (output_move_double): Fix typo in double load.
3888 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3890         * config/h8300/h8300.c (h8300_encode_label): Compute a string
3891         before passing it to ggc_alloc_string.
3893 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3895         * config/m68k/3b1.h: Fix comment formatting.
3896         * config/m68k/3b1g.h: Likewise.
3897         * config/m68k/a-ux.h: Likewise.
3898         * config/m68k/amix.h: Likewise.
3899         * config/m68k/apollo68.h: Likewise.
3900         * config/m68k/atari.h: Likewise.
3901         * config/m68k/aux-exit.c: Likewise.
3902         * config/m68k/ccur-GAS.h: Likewise.
3903         * config/m68k/crds.h: Likewise.
3904         * config/m68k/dpx2.h: Likewise.
3905         * config/m68k/dpx2g.h: Likewise.
3906         * config/m68k/hp310.h: Likewise.
3907         * config/m68k/hp320.h: Likewise.
3908         * config/m68k/isi.h: Likewise.
3909         * config/m68k/linux.h: Likewise.
3910         * config/m68k/lynx.h: Likewise.
3911         * config/m68k/m68k-psos.h: Likewise.
3912         * config/m68k/m68k.c: Likewise.
3913         * config/m68k/m68k.h: Likewise.
3914         * config/m68k/m68k.md: Likewise.
3915         * config/m68k/m68kelf.h: Likewise.
3916         * config/m68k/m68kv4.h: Likewise.
3917         * config/m68k/mot3300.h: Likewise.
3918         * config/m68k/news.h: Likewise.
3919         * config/m68k/next.h: Likewise.
3920         * config/m68k/pbb.h: Likewise.
3921         * config/m68k/plexus.h: Likewise.
3922         * config/m68k/sgs.h: Likewise.
3923         * config/m68k/sun3.h: Likewise.
3924         * config/m68k/tower.h: Likewise.
3925         * config/m68k/vxm68k.h: Likewise.
3927 2001-10-31  DJ Delorie  <dj@redhat.com>
3929         * config/mips/mips.h (mips_cache_flush_func): Prototype.
3930         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
3931         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
3932         * config/mips/mips.c (mips_cache_flush_func): New.
3933         * doc/invoke.texi: Document the new options.
3935 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
3937         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
3938         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
3940         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
3942         * config/cris/cris.c: Include output.h after tree.h but before
3943         target.h.
3945 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
3947         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
3948         (INTL_SUBDIRS): Just intl.
3949         (.SUFFIXES): Add .gmo .po .pox.
3950         (native): Also depend on build-@POSUB@.
3951         (intl.all, intl.install): Depend on config.h and things it includes.
3952         (po-generated): New target; depend on c-parse.c and tradcif.c.
3953         (install-normal): Also depend on install-@POSUB@.
3954         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
3955         (build-, install-, build-po, update-po, install-po,
3956         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
3958         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
3959         * configure.in: Don't munge XGETTEXT.  Don't generate
3960         po/Makefile.in.
3961         * configure: Regenerate.
3963         * exgettext: Delete.
3964         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
3965         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
3967 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3969         * config/h8300/h8300.md (two anonymous patterns): New.
3971 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
3973         * tree.h (tree_index): Add support for V16QI and V8HI.
3974         (V8HI_type_node): New.
3975         (V16QI_type_node): New.
3977         * tree.c (build_common_tree_nodes_2): Same.
3979         * c-common.c (type_for_mode): Same.
3981 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3983         * config/i386/att.h: Fix comment formatting.
3984         * config/i386/beos-elf.h: Likewise.
3985         * config/i386/bsd.h: Likewise.
3986         * config/i386/bsd386.h: Likewise.
3987         * config/i386/crtdll.h: Likewise.
3988         * config/i386/cygwin.asm: Likewise.
3989         * config/i386/cygwin.h: Likewise.
3990         * config/i386/djgpp.h: Likewise.
3991         * config/i386/freebsd-aout.h: Likewise.
3992         * config/i386/freebsd.h: Likewise.
3993         * config/i386/gas.h: Likewise.
3994         * config/i386/i386-interix.h: Likewise.
3995         * config/i386/i386-protos.h: Likewise.
3996         * config/i386/i386.c: Likewise.
3997         * config/i386/i386.h: Likewise.
3998         * config/i386/i386.md: Likewise.
3999         * config/i386/i386elf.h: Likewise.
4000         * config/i386/interix.c: Likewise.
4001         * config/i386/isc.h: Likewise.
4002         * config/i386/isccoff.h: Likewise.
4003         * config/i386/iscdbx.h: Likewise.
4004         * config/i386/linux.h: Likewise.
4005         * config/i386/lynx.h: Likewise.
4006         * config/i386/mingw32.h: Likewise.
4007         * config/i386/netbsd-elf.h: Likewise.
4008         * config/i386/next.h: Likewise.
4009         * config/i386/osf1elf.h: Likewise.
4010         * config/i386/osfrose.h: Likewise.
4011         * config/i386/sco5.h: Likewise.
4012         * config/i386/seq-gas.h: Likewise.
4013         * config/i386/seq-sysv3.h: Likewise.
4014         * config/i386/sequent.h: Likewise.
4015         * config/i386/sol2.h: Likewise.
4016         * config/i386/sun386.h: Likewise.
4017         * config/i386/uwin.asm: Likewise.
4018         * config/i386/uwin.h: Likewise.
4019         * config/i386/vxi386.h: Likewise.
4020         * config/i386/win32.h: Likewise.
4021         * config/i386/winnt.c: Likewise.
4022         * config/i386/xm-cygwin.h: Likewise.
4023         * config/i386/xm-mingw32.h: Likewise.
4025 2001-10-31  Kazu Hirata  <kazu@hxi.com>
4027         * builtins.def: Fix comment typos.
4028         * config/alpha.c: Likewise.
4029         * config/arm/arm.c: Likewise.
4030         * config/avr/avr.h: Likewise.
4031         * config/d30v/d30v.c: Likewise.
4032         * config/d30v/d30v.h: Likewise.
4033         * config/d30v/d30v.md: Likewise.
4034         * config/dsp16xx/dsp16xx.c: Likewise.
4035         * config/fr30/fr30.c: Likewise.
4036         * config/fr30/fr30.md: Likewise.
4037         * config/i386/i386.c: Likewise.
4038         * config/i860/i860.c: Likewise.
4039         * config/i960/i960.c: Likewise.
4040         * config/ia64/ia64.c: Likewise.
4041         * config/mips/mips.c: Likewise.
4042         * config/pa/pa.c: Likewise.
4043         * config/rs6000/rs6000.c: Likewise.
4044         * config/s390/s390.c: Likewise.
4045         * config/sparc/sparc.c: Likewise.
4047 2001-10-30  Kazu Hirata  <kazu@hxi.com>
4049         * config/mips/elf.h: Fix comment formatting.
4050         * config/mips/elf64.h: Likewise.
4051         * config/mips/iris5.h: Likewise.
4052         * config/mips/iris5gas.h: Likewise.
4053         * config/mips/iris6.h: Likewise.
4054         * config/mips/isa3264.h: Likewise.
4055         * config/mips/linux.h: Likewise.
4056         * config/mips/mips.c: Likewise.
4057         * config/mips/mips.h: Likewise.
4058         * config/mips/mips.md: Likewise.
4059         * config/mips/mips16.S: Likewise.
4060         * config/mips/netbsd.h: Likewise.
4061         * config/mips/osfrose.h: Likewise.
4062         * config/mips/r3900.h: Likewise.
4063         * config/mips/sni-svr4.h: Likewise.
4064         * config/mips/svr4-t.h: Likewise.
4065         * config/mips/ultrix.h: Likewise.
4067 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
4069         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
4070         when we update head->current.
4072 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
4074         * tree.c (id_string_size): Remove.
4075         (dump_tree_statistics): Update.
4076         * toplev.c (compile_file): If dumping stats, dump tree stats too.
4078 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
4080         * sched-rgn.c (schedule_insns): Fix comment.
4082 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
4084         * configure.in: Correct previous change: don't assume that
4085         gas's version number _isn't_ the last thing on the line, or
4086         isn't the only number on the line, either.
4087         * configure: Regenerate.
4089 2001-10-30  Kazu Hirata  <kazu@hxi.com>
4091         * cfgcleanup.c: Fix a comment typo.
4093 2001-10-30  Kazu Hirata  <kazu@hxi.com>
4095         * alias.c: Fix comment formatting.
4096         * recog.c: Likewise.
4097         * config/cris/cris.c: Likewise.
4098         * config/cris/cris.h: Likewise.
4099         * config/i960/i960.c: Likewise.
4100         * config/i960/i960.h: Likewise.
4102 2001-10-30  Kazu Hirata  <kazu@hxi.com>
4104         * config/arm/arm.c: Fix a comment typo.
4105         * config/arm/arm.h: Likewise.
4106         * config/ia64/ia64.c: Likewise.
4108 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
4110         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
4111         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
4112         * rtl.h (set_unique_reg_note): Change return value.
4113         * gcse.c (try_replace_reg): Use set_unique_reg_note.
4114         * cse.c (cse_insn): Likewise.
4115         * expr.c (emit_move_insn): Likewise.
4116         * explow.c (force_reg): Likewise.
4117         * local-alloc (update_equiv_regs): Likewise.
4118         * loop.c (move_moveables, load_mems): Likewise.
4119         * reload (find_reloads): Likewise.
4121 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
4123         Localization fixes.
4124         * c-decl.c (parmlist_tags_warning, start_struct,
4125         check_for_loop_decls): Separate messages for struct, union and
4126         enum cases to allow for languages in which they have different
4127         genders.
4128         * c-format.c (scanf_flag_specs): Separate short and long name of
4129         the assignment suppression feature.
4130         (check_format_types): Localize "pointer" and "different types"
4131         strings.
4132         * c-lex.c (lex_number): Localize "an unsigned long int" and
4133         related strings.
4134         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
4135         warning message.
4136         * c-typeck.c (build_unary_up): Separate messages for increment and
4137         decrement cases to allow for languages in which they use different
4138         articles.  Localize the strings "increment" and "decrement" in one
4139         case.
4141 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
4143         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
4144         when no changes has been made.
4146         * gcse.c (reg_set_bitmap): Turn into reg_set.
4147         (modify_mem_list_set, canon_modify_mem_list_set)
4148         (clear_modify_mem_tables, free_modify_mem_tables): New.
4149         (gcse_main); Use free_modify_mem_tables.
4150         (free_gcse_mem): Likewise; free the bitmaps.
4151         (alloc_gcse_main): Initialize the bitmaps.
4152         (canon_list_insert): Set canon_modify_mem_list_set.
4153         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
4154         (compute_hash_table): Use clear_modify_mem_tables.
4155         (reset_opr_set_tables): Likewise.
4156         (oprs_not_set_p): reg_set_bitmap is regset.
4157         (mark_set, mark_clobber): Likewise.
4159         * df.h (DF_EQUIV_NOTES): New constant.
4160         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
4161         when asked for.
4163         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
4164         (init_regions, schedule_insns): Conditionalize the checking
4165         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
4167 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
4169         * i386.md (movti_rex64 splitter): Fix condition.
4171 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
4173         * configure.in: Do not assume that gas's version number is the
4174         last thing on the first line of as --version output.
4175         * configure: Regenerate.
4177         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
4178         MT_WARNING, MT_ERROR, MT_FATAL.
4179         (main): Call gcc_init_libintl.
4180         (v_message): Call gettext on msgid and "warning: "
4181         * tradcif.y: Include intl.h.
4182         (yyerror): Make parameter definition consistent with
4183         prototype.  Call gettext on msgid argument.
4185 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4187         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
4188         warnings.
4190         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
4192 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4194         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
4195         before referencing it.
4197 2001-10-26  DJ Delorie  <dj@redhat.com>
4199         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
4200         override -G, and force -G0.
4202 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
4204         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
4205         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
4206         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
4207         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
4209         * loop.h (struct induction): Rename ext_dependant to
4210         ext_dependent.
4211         * loop.c: Change all uses.
4212         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
4213         All callers changed.
4214         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
4216 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
4218         * c-parse.in (expr_no_commas, primary), c-typeck.c
4219         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
4221 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
4223         Undo assemble_name change in earlier patch.
4225 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
4227         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
4228         determining the type of the receiver, do not check that TREE_CODE
4229         of receiver is CALL_EXPR before calling receiver_is_class_object().
4230         (receiver_is_class_object): For the GNU runtime: recognize
4231         the case that the receiver is self in a class method context.
4232         Check that TREE_CODE of receiver is CALL_EXPR when checking that
4233         the receiver is a call to objc_get_class.
4235 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4237         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
4239 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4241         * Makefile.in (OBJS): Put all files in alphabetical order.
4243         * dwarf2out.c (add_const_value_attribute): Fix error in last
4244         change.
4246 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
4248         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
4249         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
4250         fix warning.
4251         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
4252         (life_analysis): call purge_all_dead_edges after deleting noops.
4253         (delete_noop_move): Do not purge CFG.
4254         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
4256 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
4258         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
4259         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
4260         (ASM_GLOBALIZE_LABEL): Use assemble_name.
4261         (ASM_OUTPUT_COMMON): Likewise.
4262         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
4263         (rs6000_output_function_epilogue): Likewise.
4264         (output_mi_thunk): Fix typo.
4265         (rs6000_output_symbol_ref): Use assemble_name.
4266         (output_toc): Likewise.
4267         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
4268         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
4269         assemble_name calls STRIP_NAME_ENCODING.
4270         (ASM_OUTPUT_LABEL): Use assemble_name.
4271         (ASM_GLOBALIZE_LABEL): Likewise.
4272         (ASM_DECLARE_FUNCTION_NAME): Likewise.
4273         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
4274         (ASM_OUTPUT_LOCAL): Likewise.
4276 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4278         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
4279         (expand_builtin_apply, expand_builtin_return): Likewise.
4280         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
4282 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
4284         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
4285         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
4286         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
4287         configure, configure.in, except.c, except.h, flow.c, function.c,
4288         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
4289         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
4290         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
4291         unroll.c: Fix spelling errors.
4293         * doc/extend.texi, doc/invoke.texi: Fix spelling.
4295         * doc/gcc.texi: Document use of "dependent" and American spelling.
4297 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
4299         * expr.c (emit_group_load): Support CONCATs by storing them to memory
4300         and reloading.
4302 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4304         * expr.c (store_constructor_field): Only call adjust_address on MEM.
4306 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
4308         * genrecog.c (write_switch):  Output if before switch for
4309         DT_elt_zero_wide_safe.
4311 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4313         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
4314         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
4315         (FUNCTION_PROFILER): Const-ify.
4316         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
4317         (eliminate_constant_term, assemble_name, output_addr_const):
4318         Remove declarations.
4319         (ptr_half_pic_address_p, half_pic_hash): Prototype.
4320         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
4321         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
4322         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
4323         (half_pic_declare, half_pic_external): Const-ify.
4324         * toplev.c: Include "halfpic.h".
4326 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
4328         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
4329         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
4330         config/i386/i386.c, config/i386/i386-interix.h,
4331         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
4332         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
4333         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
4334         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
4335         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
4336         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
4337         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
4338         spelling errors.
4340         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
4341         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
4342         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
4343         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
4344         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
4345         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
4346         system.h, toplev.c: Fix spelling errors.
4348 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4350         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
4352         * dwarf2out.c (reg_number): Abort if pseudo.
4353         (reg_loc_descriptor): Return 0 if pseudo.
4354         (is_based_loc): Return 0 if pseudo.
4355         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
4356         recursive calls.
4357         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
4358         (loc_descriptor): Return 0 if can't find location and handle 0
4359         return from recursive calls.
4360         (loc_descriptor_from_tree): Likewise.
4361         Fix handling of indirect.
4362         Also return 0 for PLACEHOLDER_EXPR.
4363         Clean up COMPONENT_REF cases.
4364         (add_AT_location_descriptor): Simplify, but handle 0 return from
4365         loc_descriptor.
4366         (add_const_value_attribute): Avoid shift count warning.
4367         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
4368         Set comp_unit_die as context if not in function.
4370         * config/mips/mips-protos.h: Break up long lines.
4371         Remove needless #ifdef/#endif blocks.
4372         Don't declare functions declared in file made by genpreds or recog.h.
4373         * config/mips/mips.c (mips_output_function_prologue): TSIZE
4374         is now HOST_WIDE_INT; delete unneeded casts.
4375         * config/mips/mips.h: Don't use #elif.
4377         * expr.c (stor_constructor_field): Always call adjust_address.
4378         Copy TARGET before changing its alias set.
4379         (store_field): Likewise, for TO_RTX.
4380         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
4381         replacement.
4382         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
4383         (find_placeholder): Return 0 if can't find object.
4384         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
4385         returns 0.
4387 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
4389         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
4391 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
4393         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
4394         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
4395         (merge_blocks): Properly udpate life after making edge nonfallthru.
4396         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
4398 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4400         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
4402 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4404         * c-typeck.c (convert_arguments): When comparing for enumeral
4405         type equality, use TYPE_MAIN_VARIANT.
4406         * gcc.dg/Wconversion.c: New tests.
4408 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4410         * s390/s390.c: Fix comment typos.
4411         * s390/s390.h: Likewise.
4412         * s390/s390.md: Likewise.
4414 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
4416         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
4417         (walk_tree): Use it for tail calls where appropriate.
4419 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
4421         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
4422         non-local label_refs.
4424 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4426         * config/h8300/h8300.md (4 anonymous patterns): New.
4428 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4430         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
4431         algorithm through the shift_info structure.
4432         (emit_a_shift): Update the use of get_shift_alg.
4434 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
4436         * sched-rgn.c: Remove bitset typedef.
4437         Change bitset to sbitmap in prototypes / variable types.
4438         Remove bbset_size.
4439         Remove edgeset_bits.
4440         Remove edgeset_size.
4441         s/BITSET_ADD/SET_BIT/g
4442         s/BITSET_INVERT/sbitmap_ones/g
4443         s/BITSET_INTER/sbitmap_a_and_b/g
4444         s/BITSET_UNION/sbitmap_a_or_b/g
4445         s/BITSET_DIFFER/sbitmap_difference/g
4446         s/bitset_member/TEST_BIT/g
4447         (BITSET_*): Removed.
4448         (bitset_member): Removed.
4449         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
4450         EXECUTE_IF_SET_IN_SBITMAP.
4451         (split_edges): Rewrite, use sbitmap functions instead of bitset
4452         operations.
4453         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
4455 2001-10-26  Andreas Schwab  <schwab@suse.de>
4457         * reload1.c (emit_input_reload_insns): Fix parens in last
4458         (undocumented) change that was supposed to change only whitespace.
4460 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4462         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
4464         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
4465         ASM_OPERANDS.
4467 2001-10-26  Andreas Jaeger  <aj@suse.de>
4469         * flow.c (clear_log_links): Remove unused variable.
4470         * cfgcleanup.c (cleanup_cfg): Likewise.
4472 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
4474         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
4475         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
4477 2001-10-26  Richard Henderson  <rth@redhat.com>
4479         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
4480         rename PV_REG to R27_REG.
4481         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
4482         (REG_CLASS_FROM_LETTER): Update.
4483         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
4484         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
4485         (udivsi3, modsi3, umodsi3): Likewise.
4486         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
4488 2001-10-26  Richard Henderson  <rth@redhat.com>
4490         * cfg.c (clear_aux_for_blocks): Split out of ...
4491         (free_aux_for_blocks): here.
4492         (clear_aux_for_edges): Split from ...
4493         (free_aux_for_edges): here.
4494         * basic-block.h: Declare them.
4495         * lcm.c (compute_antinout_edge): Use them.
4496         (compute_laterin, compute_available, compute_nearerout): Likewise.
4497         (optimize_mode_switching): Likewise.
4499 2001-10-26  Richard Henderson  <rth@redhat.com>
4501         * Makefile.in (unstage*): Remove as, ld, collect-ld before
4502         moving everything back to the main build directory.
4504 2001-10-26  Christopher Faylor  <cgf@redhat.com>
4506         * config/i386/cygwin.h: Search target specific include directory, if
4507         appropriate.
4509 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4511         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
4512         of macro guards. Fix #endif comment.
4514         * output.h (default_exception_section, default_eh_frame_section):
4515         Move prototypes outside of macro guard.
4517         * crtstuff.c: Fix #endif comment.
4519 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
4521         * doc/md.texi (movMM): Clarify semantics of storing into a
4522         non-paradoxical SUBREG.
4524 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
4526         * langhooks.c (lang_hook_default_clear_binding_stack): New.
4527         (lang_hook_default_get_alias_set): Move next to other alias
4528         hooks.
4529         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
4530         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
4531         (LANG_HOOKS_INITIALIZER): Add it.
4532         * toplev.h (struct lang_hooks): Add clear_binding_stack.
4533         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
4534         instead of a loop calling poplevel.
4536 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
4538         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
4539         occurrences of #elif with #if...#endif.
4541 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4543         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
4545 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4547         * alias.c (can_address_p): No longer static.
4548         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
4549         Return 0 if all parameters are default values.
4550         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
4551         (adjust_address_1): Try harder to compute a size.
4552         * expr.c (expand_assignment, store_constructor): If can't address,
4553         set MEM_KEEP_ALIAS_SET_P.
4554         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
4555         (store_field): Likewise.
4556         (store_constructor): Simplify call to store_constructor_field.
4557         * expr.h (can_address_p): New declaration.
4558         * gensupport.c (gen_rtx_CONST_INT): New function.
4559         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
4560         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
4561         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
4563         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
4565 2001-10-24  Christopher Faylor  <cgf@redhat.com>
4567         * config/i386/cygwin.h: Use proper path for mingw crt files when
4568         -mno-cygwin.
4570 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4572         * dwarf2out.c (file_info_cmp): Always return consistent results.
4574 2001-10-24  Roger Sayle <roger@eyesopen.com>
4576         * stmt.c (expand_end_case): Index jumptables from zero for
4577         suitably small values of minval.
4579 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
4581         * stor-layout.c (place_union_field): If any field was aligned with
4582         attribute aligned, set record type's TYPE_USER_ALIGN.
4583         (place_field): Likewise.
4584         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
4585         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
4587 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
4589         * c-common.h (struct c_common_identifier): Remove rid_code field.
4590         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
4592         * c-typeck.c (constructor_designated): New local flag.
4593         (struct constructor_stack): Add "designated" field to match.
4594         (start_init): Clear it.
4595         (really_start_incremental_init, push_init_level): Push and
4596         clear it.
4597         (pop_init_level): Pop it.
4598         (set_designator): Set it.
4600         (pop_init_level): Suppress "missing initializer" warnings if
4601         constructor_designated is true.
4602         (process_init_element): Suppress warning about union
4603         initialization under traditional C, if constructor_designated
4604         is true.
4606 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4608         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
4609         change.
4611 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
4613         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
4615 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
4617         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
4618         the node was already a set to a constant.
4620 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4622         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
4623         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
4625 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4627         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
4628         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
4629         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
4630         * s390.c (s390_final_chunkify): Don't use string concatenation.
4631         (s390_function_prologue, s390_function_epilogue): Const-ify.
4632         * s390.h (FUNCTION_PROFILER): Remove unused variable.
4634 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
4636         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
4637         prototypes.
4639 2001-10-23  Stan Shebs  <shebs@apple.com>
4641         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
4642         -traditional-cpp in first-stage compilation.
4644 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4646         * gensupport.c (target_flags): Add.
4648 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
4650         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
4651         if needed.
4652         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
4653         * except.c (expand_builtin_frob_return_addr): Likewise.
4654         (expand_builtin_eh_return): Likewise.
4655         * stmt.c (expand_computed_goto): Likewise.
4656         * explow.c (memory_address): Likewise.
4657         (allocate_dynamic_stack_space): Clean up predicate testing.
4658         (probe_stack_range): Convert SIZE to Pmode.
4659         * calls.c (rtx_for_function_call): Only call convert_memory_address
4660         if needed.
4661         Pass function call operand as ptr_mode, not Pmode.
4662         * expr.c (expand_assignment): Clean up calls to convert_memory
4663         address by only doing so when needed and making offsets Pmode.
4664         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
4665         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
4666         is in Pmode, not ptr_mode.
4668 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4670         * darwin-protos.h (constructor_section, destructor_section,
4671         mod_init_section, mod_term_section): Prototype.
4672         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
4673         Const-ify.
4674         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
4675         Likewise.
4676         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
4677         objc_section_init declaration.
4678         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
4679         (objc_section_init, try_section_alias): Make static.
4680         (alias_section): Make static and hide unused function.
4681         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
4683 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4685         * alias.c (can_address_p): Compnonents are not addressable if
4686         the containing type has alias set 0.
4687         (get_alias_set): Rework to use STRIP_NOPS.
4688         Only call front-end routine on object, type, or object with
4689         NOPs stripped, not inner values.
4690         Use language hook to call front-end routine.
4691         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
4692         (expand_builtin_apply): Call set_mem_align on MEMs we make.
4693         Don't pass alignment to emit_block_move.
4694         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
4695         (expand_builtin_memset): Likewise, but for clear_storage.
4696         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
4697         and remove C++ specific parts.
4698         * c-common.h (c_common_get_alias_set): Add declaration.
4699         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
4700         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
4701         (save_fixed_argument_area): Call set_mem_align.
4702         Remove alignment in call to emit_block_move.
4703         (emit_library_call_value_1, store_one_arg): Likewise.
4704         (target_for_arg): Remove; disabled long ago.
4705         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
4706         once and similar cleanups.
4707         (offset_address): Use proper introductory comment.
4708         * expr.c (emit_block_move): Use alignment from that of MEM args, not
4709         from explicit operand; all callers changed.
4710         (clear_storage): Likewise.
4711         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
4712         (store_field): Remove kludge on alias set used for to_rtx.
4713         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
4714         (expand_expr_unaligned): Call set_mem_attributes instead of
4715         set_mem_alias_set.
4716         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
4717         * function.c (assign_stack_temp_for_type): Set MEM alignment.
4718         (expand_function_end): Track MEM attributes of trampolines.
4719         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
4720         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
4721         attributes from original.
4722         * langhooks.c (lang_hook_default_get_alias_set): New function.
4723         (hook_get_alias_set_0): New function.
4724         * langhooks.h (hook_get_alias_set_0): New declaration.
4725         (lang_hook_default_get_alias_set): Likewise.
4726         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
4727         * reload1.c (alter_reg): Use adjust_address_nv.
4728         * rtl.c (get_mode_alignment): Moved to here.
4729         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
4730         change default if unknown from 1 to BITS_PER_UNIT.
4731         * stor-layout.c (get_mode_alignment): Remove from here.
4732         * toplev.h (struct lang_hoks): Add get_alias_set field.
4733         * tree.h (lang_get_alias_set): Delete declaration.
4734         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
4735         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
4736         (ix86_va_arg): Likewise.
4737         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
4738         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4739         * config/sparc/sparc.c (sparc_va_arg): Likewise.
4740         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
4741         (expand_block_move_mem): Remove dead code.
4743 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4745         * c-common.c (warn_div_by_zero): New.
4746         * c-common.h (warn_div_by_zero): New.
4747         * c-decl.c (c_decode_option): Take it on the command line.
4748         * c-typeck.c (build_binary_op): Warn about division by zero.
4749         * doc/invoke.texi: Document the new command line option, fix
4750         documentation of -Wmultichar.
4751         * testsuite/gcc.dg/divbyzero.c: New tests.
4752         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
4754 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
4756         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
4758         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
4759         to avoid update_life_info call.
4760         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
4761         * cfgcleanup.c (bb_flags): New enum.
4762         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
4763         (notice_new_block, update_forwarder_flag): New functions.
4764         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
4765         (try_forward_edges): Likewise; update flags.
4766         (merge_blocks): Likewise.
4767         (outgoing_edges_match): Likewise.
4768         (try_crossjump_to_edge): Likewise.
4769         (try_optimize_cfg): Likewise; initialize and clear the flags;
4770         recompute life info if needed.
4771         (cleanup_cfg): No need to clear aux pointers.
4773 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
4775         * config/i386/i386.c (override_options): Default to minimum
4776         stack alignment when optimizing for code size.
4777         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
4778         change.
4780         * config/i386/i386.c (override_options): Set upper limit of
4781         -mpreferred-stack-boundary to 12.
4783 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
4785         * recog.c (peephole2_optimize): Add default case to switch.
4787 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
4789         * doc/gcc.texi (Sending Patches): Remove.
4791 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
4793         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
4794         fields when comparing.
4796 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4798         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
4799         * arm.c (HOST_INT, HOST_UINT): Likewise.
4801 2001-10-22  Stan Shebs  <shebs@apple.com>
4803         * config/darwin-protos.h (darwin_exception_section): Declare.
4804         (darwin_eh_frame_section): Declare.
4806 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
4808         * i386.md (movti_rex64): Fix mode.
4810 2001-10-22  Stan Shebs  <shebs@apple.com>
4812         * target.h (struct gcc_target): Add asm_out.exception_section,
4813         asm_out.eh_frame_section.
4814         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
4815         (TARGET_ASM_EH_FRAME_SECTION): New.
4816         (TARGET_INITIALIZER): Update.
4817         * output.h (default_exception_section): Declare.
4818         (default_eh_frame_section): Declare.
4819         * dwarf2out.c: Include target.h.
4820         (output_call_frame_info): Call target hook for eh frames.
4821         (default_eh_frame_section): New function.
4822         * except.c: Include target.h.
4823         (output_function_exception_table): Call target hook for exception
4824         section.
4825         * varasm.c (default_exception_section): Rename from
4826         exception_section, remove EXCEPTION_SECTION macro.
4828         * config/darwin.h (darwin_eh_frame_section): New function.
4829         (EXCEPTION_SECTION): Remove.
4830         (TARGET_ASM_EXCEPTION_SECTION): Define.
4831         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
4832         (nextstep_exception_section): New function.
4833         (nextstep_eh_frame_section): New function.
4834         (TARGET_ASM_EXCEPTION_SECTION): Define.
4835         (TARGET_ASM_EH_FRAME_SECTION): Define.
4837         * config/pa/som.h (EXCEPTION_SECTION): Remove.
4838         (TARGET_ASM_EXCEPTION_SECTION): Define.
4839         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
4840         (EXCEPTION_SECTION): Remove.
4841         (TARGET_ASM_EXCEPTION_SECTION): Define.
4842         * config/stormy16/stormy16.h: Remove comments referencing
4843         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
4845         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
4846         TARGET_ASM_EH_FRAME_SECTION.
4848 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
4850         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
4851         terms.
4853         * c-format.c: Fix spelling typo in comment.
4855         * sched-int.h: Fix typo in GCC preamble.
4857 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4859         PR debug/4252
4860         * doc/invoke.texi: Remove references to -fdump-translation-unit.
4862 2001-10-22  Richard Henderson  <rth@redhat.com>
4864         * config/i386/i386.c (ix86_expand_clear): New.
4865         * config/i386/i386-protos.h: Declare it.
4866         * config/i386/i386.md (setcc peep2s): Use it.
4867         (movsi_xor): Unexport.
4869 2001-10-22  Richard Henderson  <rth@redhat.com>
4871         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
4872         free_EXPR_LIST_list for LOG_LINKS.
4874 2001-10-21  Robert Lipe  <robertlipe@usa.net>
4876         * config/i386/i386.c (sco_asm_named_section): Delete.
4877         (sco_asm_out_constructor): Delete.
4878         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
4879         (ASM_OUTPUT_DOUBLE_INT): Likewise.
4880         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
4881         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
4882         (EXCEPTION_SECTION): Delete EH scn renaming hack.
4884 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4886         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
4887         and/or fold extra calls into fewer ones.
4888         * collect2.c (dump_file): Likewise.
4889         * cppexp.c (parse_number): Likewise.
4890         * cpplex.c (_cpp_lex_direct): Likewise.
4891         * final.c (output_asm_insn, asm_fprintf): Likewise.
4892         * fix-header.c (inf_scan_ident, main): Likewise.
4893         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4894         Likewise.
4895         * fold-const.c (real_hex_to_f): Likewise.
4896         * gen-protos.c (parse_fn_proto): Likewise.
4897         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
4898         * genrecog.c (change_state, write_action): Likewise.
4899         * gensupport.c (shift_output_template): Likewise.
4900         * local-alloc.c (requires_inout): Likewise.
4901         * mips-tfile.c (IS_ASM_IDENT): Likewise.
4902         * protoize.c (is_id_char, main): Likewise.
4903         * real.c (asctoeg): Likewise.
4904         * recog.c (asm_operand_ok): Likewise.
4905         * reload.c (find_reloads): Likewise.
4906         * scan.c (scan_identget_token): Likewise.
4907         * sched-vis.c (print_value): Likewise.
4908         * stringpool.c (ggc_alloc_string): Likewise.
4909         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
4910         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
4911         * tradcpp.c (rescan): Likewise.
4912         * tree.c (clean_symbol_name): Likewise.
4913         * varasm.c (decode_reg_name): Likewise.
4915         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
4916         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
4917         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
4918         * m88k.c (output_ascii): Likewise.
4919         * m88k.h (OVERRIDE_OPTIONS): Likewise.
4920         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
4921         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
4922         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
4924 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4926         * langhooks.c (lang_hook_default_do_nothing,
4927         lang_hook_default_decode_option): New defaults.
4928         * langhooks.h: Make hooks unconditional and non-NULL.
4929         * toplev.c (compile_file, toplev_main): Update.
4930         * toplev.h: Update comments.
4931         * objc/objc-act.c (lang_hooks): Update to new paradigm.
4933 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4935         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
4937         * system.h (IN_RANGE): New macro.
4939 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
4941         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
4942         INTLDEPS variable, which does not include $LIBICONV.
4943         * Makefile.in: Use INTLDEPS in LIBDEPS.
4944         * configure: Regenerate.
4946 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4948         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
4949         * cpplex.c (lex_percent, lex_dot): Remove.
4950         (get_effective_char, skip_block_comment, skip_line_comment,
4951         parse_identifier_slow, parse_number, parse_string, save_comment,
4952         _cpp_lex_direct): Update to do lookback freely.
4953         (IF_NEXT_IS, BACKUP): New macros.
4954         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
4955         * cppmacro.c (paste_tokens): Update.
4957 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
4959         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
4961 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
4963         * reload1.c (reload): Check CONSTANT_P before calling
4964         LEGITIMATE_PIC_OPERAND_P.
4965         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
4966         workaround of 2001-10-13.
4968 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
4970         * i386.c (split_di): Handle splitting of DFmode.
4972 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4974         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
4975         (adjust_address_1, offset_address): Likewise.
4977         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
4978         (output_asm_insn): Call it for each line output.
4979         Don't record an operand more than once.
4981         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
4982         * main.c: Include config.h and system.h, but not ansidecl.h.
4983         * Makefile.in (main.o): Update accordingly.
4985 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
4987         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
4989 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
4991         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
4992         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
4993         Break out from ...
4994         (find_sub_basic_blocks): ... here;
4995         (find_many_sub_basic_blocks): New.
4996         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
4998         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
5000         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
5002         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
5004         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
5005         * flow.c (update_life_info): Measure time.
5006         * c-decl.c: Include timevar.h
5007         (c_expand_body): Measure time.
5008         * toplev.c (rest_of_compilation): Measure time of mode switching
5009         separately.
5010         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
5012         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
5013         (lang_independent_options): Add asynchronous-unwind-tables
5014         (toplev_main): flag_asynchronous_unwind_tables implies
5015         flag_unwind_tables.
5016         * flags.h (flag_asynchronous_unwind_tables): Declare.
5017         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
5018         flag_asynchronous_unwind_tables.
5019         (output_call_frame_info): Likewise.
5020         * invoke.texi (-fasynchronous-unwind-tables): Document.
5021         * i386.c (optimization_options): Enable
5022         flag_asynchronous_unwind_tables.
5024         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
5025         * i386.md (s* expanders): Destination is QImode.
5027         * toplev.c (rest_of_compilation): Do not call clear_log_links.
5028         * rtl.h (clear_log_links): Kill.
5029         * flow.c (clear_log_links): Make static; accept blocks parameter;
5030         do no clear life info.
5031         (update_life_info): Call clear_log_links.
5033         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
5035 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
5037         * cpplex.c (handle_newline, skip_escaped_newlines,
5038         get_effective_char, skip_block_comment, skip_line_comment,
5039         parse_identifier_slow, parse_number, parse_string,
5040         _cpp_lex_direct): Update to do more stepping back.
5041         (trigraph_ok): Similarly.  Rename trigraph_p.
5042         (SAVE_STATE, RESTORE_STATE): Remove.
5043         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
5045         * cpplib.c (destringize): Rename destringize_and_run, and
5046         call run_directive directly.
5047         (_cpp_do__Pragma): Simplify.
5049 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5051         * pe.c (arm_pe_unique_section): Const-ify.
5052         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
5053         (switch_to_section): Add static prototype.
5055         * output.h (drectve_section): Prototype.
5057 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5059         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
5060         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
5061         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
5062         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
5063         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
5064         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
5065         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
5066         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
5067         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
5068         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
5069         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
5070         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
5071         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
5072         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
5073         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
5074         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
5075         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
5076         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
5077         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
5078         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
5079         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
5080         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
5081         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
5082         cris-*-none, cris-*-linux*: Update ${tmfile} list.
5083         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
5084         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
5085         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
5086         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
5087         v850-*-*): Delete superflous ${cpu_type} setting.
5088         * config/linux.h: Delete svr4.h include.
5089         (SET_ASM_OP): Delete.
5090         * config/netware.h (INT_ASM_OP): Undef before define.
5091         * config/ptx4.h: Delete elfos.h include.
5092         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
5093         * config/svr4.h: Delete elfos.h include. Update commentary.
5094         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
5095         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
5096         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
5097         config/v850/v850.h: Delete svr4.h include.
5098         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
5099         config/m68k/m68kv4.h, config/m88k/sysv4.h,
5100         config/sparc/sysv4.h: Update includes.
5101         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
5102         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
5103         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
5104         config/m88k/dguxbcs.h: Delete includes.
5105         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
5106         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
5107         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
5108         it.
5109         * config/m88k/dgux.h: Delete include.
5110         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
5111         defining it.
5112         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
5113         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
5114         * config/sh/elf.h: Update include.
5115         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
5116         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
5118 2001-10-19  Catherine Moore  <clm@redhat.com>
5120         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
5121         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
5122         base and count fields.
5123         (stormy16_expand_builtin_va_start):  last_reg_count changed to
5124         size_of_reg_args.  Use count + size in first comparison.
5126 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5128         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
5129         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
5130         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
5131         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
5132         Set alignment from type if INDIRECT_REF.
5133         (adjust_address_1, offset_address): Simplify alignment compuitation.
5134         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
5135         here; done by set_mem_attributes.
5137 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5139         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
5140         * arm-protos.h (rdata_section, zero_init_section, common_section):
5141         Prototype.
5142         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
5143         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
5144         traditional mode stringification.
5145         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
5146         in macros controling its use.
5147         * rtlanal.c: Include tm_p.h.
5148         * varasm.c (asm_output_aligned_bss): Mark parameter with
5149         ATTRIBUTE_UNUSED.
5150         (assemble_constant_align, assemble_start_function, assemble_align,
5151         assemble_variable, assemble_trampoline_template,
5152         output_constant_def_contents): Wrap potentially empty if-stmt body
5153         in brackets.
5155 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5157         * a29k-protos.h (literal_section): Prototype.
5158         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
5159         * a29k.md: Ensure function pointers are prototyped.
5160         * genattrtab.c (write_eligible_delay): Mark parameter with
5161         ATTRIBUTE_UNUSED.
5163 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5165         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
5166         * 1750a.c (print_operand): Fix format specifier warning.
5167         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
5168         * 1750a.md: Likewise.
5169         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
5170         * genemit.c (output_add_clobbers): Mark parameter with
5171         ATTRIBUTE_UNUSED.
5172         * genrecog.c (write_subroutine): Likewise.
5173         * integrate.c (expand_inline_function): Delete unused variable.
5174         * varasm.c (remove_from_pending_weak_list): Wrap with
5175         ASM_WEAKEN_LABEL.
5177 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
5179         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
5180         field is different to previous argument's neg field.
5182         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
5184 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5186         * final.c (get_decl_from_op): New function.
5187         (output_asm_insn): Call it; write "*" when item with decl is address.
5189 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
5191         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
5192         about 64-bit support from the 3.0_branch version.
5194 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
5196         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
5197         USE_INCLUDED_LIBINTL when appropriate.
5198         * configure, config.in: Regenerate.
5199         * Makefile.in (datadir): Set to @datadir@.
5200         (intl.o): Also depend on $(CONFIG_H) and system.h.
5202         * intl.c: Factor out common gettext initialization sequence.
5203         (gcc_init_libintl):  New function.
5204         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
5205         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
5206         off NLS.  Add multiple include guard.  No need to #ifdef-guard
5207         an #undef.  Prototype gcc_init_libintl here.
5209         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
5210         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
5211         Use gcc_init_libintl.
5213 2001-10-19  Catherine Moore  <clm@redhat.com>
5215         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
5217         * config/stormy16/stormy16.c (stormy16_split_move):  Make
5218         sure that REG_INC notes are present for auto_inc operands.
5220 2001-10-19  Andreas Jaeger  <aj@suse.de>
5222         * configure: Regenerated.
5223         * configure.in: Add x86_64 to switch statements.
5225 2001-10-18  Richard Henderson  <rth@redhat.com>
5227         * config/alpha/alpha.md (sibcall_osf_1): Load destination
5228         address into $27 explicitly.
5229         (sibcall_value_osf_1): Likewise.
5231 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5233         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
5234         (offset_address): New function.
5235         (free_emit_status): Free regno_decl.
5236         (init_emit): Pass proper number of elements to xcalloc.
5237         Allocate regno_decl.
5238         (mark_emit_status): Mark regno_decl values.
5239         * expr.c (highest_pow2_factor): New function.
5240         (expand_assigment): Use it and offset_address.
5241         Properly handle ptr_mode vs. Pmode in offset calculation.
5242         (store_constructor, expand_expr_unaligned): Likewise.
5243         (expand_expr, case COMPONENT_EXPR): Likewise.
5244         * expr.h (offset_address): New decl.
5245         * function.h (struct emit_status): Add regno_decl.
5246         (REGNO_DECL): New macro.
5247         * final.c (output_asm_name): Move in file and don't conditionalize
5248         on flag_print_asm_name.
5249         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
5250         Output names of operands, if known.
5251         * function.c (assign_parms): Set REGNO_DECL.
5252         * integrate.c (integrate_decl_tree): Likewise.
5253         * stmt.c (expand_decl): Likewise.
5254         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
5256 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
5258         * attribs.c (handle_noinline_attribute): New function.
5259         (handle_used_attribute): Likewise.
5260         (c_common_attribute_table): Added noinline and used.
5261         * doc/extend.texi (Function Attributes): Document them.
5262         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
5263         Warn when merging inline with attribute noinline.
5264         (start_decl, start_function): Warn if inline and attribute
5265         noinline appear in the same declaration.
5267 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5269         * config.gcc: Update c4x and i370 for C front end-specific
5270         dependencies.
5271         * config/c4x/c4x-c.c: New.
5272         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
5273         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
5274         New declarations.
5275         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
5276         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
5277         Make extern.
5278         (c4x_init_pragma): Remove.
5279         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
5280         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
5281         c4x_pr_ignored): Move to c4x-c.c.
5282         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
5283         * config/c4x/t-c4x: Update.
5284         * config/i370/i370-c.c: New.
5285         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
5286         (i370_pr_map): Move to i370-c.c.
5287         * config/i370/t-i370: New.
5289         * doc/tm.texi: Update.
5291 2001-10-17  Stan Shebs  <shebs@apple.com>
5293         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
5294         typo fixes throughout.
5295         (machopic_output_stub): Remove some dead code.
5297 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
5299         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
5300         leak.
5302 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5304         * Makefile.in (print-rtl.o): Depend on TREE_H.
5305         * alias.c (get_alias_set): Make two passes over objects to first
5306         see if inner object is access via restricted pointer.
5307         Defer allocating alias set for restricted pointer until here.
5308         Call find_placeholder with second arg nonzero.
5309         Minor cleanups.
5310         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
5311         set for restricted pointer types.
5312         * emit-rtl.c (set_mem_attributes): Set more attributes.
5313         (set_mem_align, change_address, adjust_address_1): New functions.
5314         (change_address_1): Now static.
5315         (adjust_address, adjust_address_nv): Deleted.
5316         (replace_equiv_address): Call change_address_1.
5317         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
5318         (find_placeholder): Get starting point from PLIST arg.
5319         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
5320         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
5321         (adjust_address, adjust_address_nv): New macros.
5322         * print-rtl.c (tree.h): New include.
5323         (print_rtx, case MEM): Print all memory attributes.
5325 2001-10-17  Richard Henderson  <rth@redhat.com>
5327         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
5329 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5331         * c-tree.texi: Eliminate duplicated word.
5332         * cpp.texi: Likewise.
5333         * install.texi: Likewise.
5334         * invoke.texi: Likewise.
5335         * tm.texi: Likewise.
5337 2001-10-17  Michael Collison  <collison@isisinc.net>
5339         * dsp16xx.c: Fix comment formatting to match GNU standards.
5340         (dsp16xx_output_function_prologue): Change type of 'size'
5341         parameter from 'int' to HOST_WIDE_INT.
5342         (dsp16xx_output_function_epilogue): Change type of 'size'
5343         parameter from 'int' to HOST_WIDE_INT.
5345 2001-10-16  Richard Henderson  <rth@redhat.com>
5347         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
5348         * configure, config.in: Rebuild.
5350         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
5351         (ix86_output_addr_diff_elt): New.
5352         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
5353         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5354         (JUMP_TABLES_IN_TEXT_SECTION): New.
5355         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
5356         * config/i386/i386-protos.h: Update.
5358         * config/i386/386bsd.h, config/i386/beos-elf.h,
5359         config/i386/freebsd-aout.h, config/i386/freebsd.h,
5360         config/i386/i386-interix.h, config/i386/i386elf.h,
5361         config/i386/linux.h, config/i386/netbsd-elf.h,
5362         config/i386/netbsd.h, config/i386/openbsd.h,
5363         config/i386/ptx4-i.h, config/i386/rtemself.h,
5364         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
5365         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
5367 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
5369         * stmt.c (expand_asm_operands): Update commentary.
5371 2001-10-16  Stan Shebs  <shebs@apple.com>
5373         * config/darwin.h (GCC_NAME): Remove, no longer used.
5374         (NO_MATH_LIBRARY): Ditto.
5375         (MATH_LIBRARY): Define to emptiness.
5376         (DWARF2_DEBUGGING_INFO): Define.
5377         (PREFERRED_DEBUGGING_TYPE): Define.
5378         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
5379         (EXCEPTION_SECTION): Define.
5380         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5381         * config/darwin.c (darwin_encode_section_info): Handle case of
5382         DECL_INITIAL being error_mark_node.
5384 2001-10-16  Richard Henderson  <rth@redhat.com>
5386         * alpha.c (current_file_function_operand): Don't fail for profiling.
5387         (direct_call_operand): New.
5388         * alpha-protos.h: Declare it.
5389         * alpha.h (EXTRA_CONSTRAINT): Use it.
5390         (PREDICATE_CODES): Add it.
5391         (ASM_OUTPUT_MI_THUNK): Remove.
5392         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
5393         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
5395 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
5397         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
5398         (JUMP_TABLES_IN_TEXT_SECTION): Define.
5400 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
5402         * cfg.c (free_edge): Break out from ....
5403         (remove_edge): ... here.
5404         (clear_edges): Use free_edge.
5406         * att.h (ASM_QUAD): Add comment.
5407         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
5409 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
5411         * i386.c (split_ti): New function.
5412         (ix86_split_to_parts): Support TImodes.
5413         * i386.h (VALID_INT_MODE_P): Add TImode.
5414         * i386.md (movdi splitter): Fix.
5415         (movti): Support 64bit integer registers.
5416         (movti_rex64): New function and splitter.
5418         * i386.c (*_cost): Add movsx/movzx cost.
5419         * i386.h (struct processor_costs): Add movsx/movzx fields.
5420         (RTX_COSTS): Handle zero/sign extend + avoid believing that
5421         64bit operations require split on 64bit machine.
5422         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
5424         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
5425         (ix86_expand_move): Avoid pushes of memory if size does not match;
5426         move long constants to register.
5427         (x86_initialize_trampoline): Fix mode.
5428         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
5429         Use ASM_QUAD on 64bit.
5430         * i386.md (test pattern): Disallow impossible constants.
5431         (tablejump PIC expander): Fix emitting of sum.
5432         (movdicc_rex64): Rename to movdicc.
5433         * linux64.h (LINK_SPEC): Add missing '%'.
5435 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
5437         * tree-inline.c (inlinable_function_p): Leave it up to the
5438         front-end to turn -finline-functions into DECL_INLINE set for all
5439         functions.
5441 2001-10-16  Stan Shebs  <shebs@apple.com>
5443         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
5445 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
5447         * recog.c: Formatting and comment typo fixes.
5449         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
5450         version in single tree build.
5451         * configure: Regenerate.
5453 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
5455         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
5456         MODE arguments to gen_rtx and compare operand with const0_rtx.
5458 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5460         * system.h: Poison old unused target macros.
5461         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
5462         * config/stormy16/stormy16.c: Update references to obsolete macros.
5463         * config/stormy16/stormy16.h: Similarly.
5464         * config/stormy16/stormy16.md: Similarly.
5465         * config/cris/cris.h: Similarly.
5467 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5469         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
5470         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
5471         cpp_register_pragma): Update accordingly.
5473 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5475         * c-pragma.h (cpp_register_pragma_space): Remove.
5476         * cpplib.h (cpp_register_pragma_space): Remove.
5477         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
5478         (cpp_register_pragma_space): Remove.
5479         (cpp_register_pragma): Simplify using lookup_pragma_entry,
5480         add sanity checks.
5481         (do_pragma): Similarly.
5482         (_cpp_init_internal_pragmas): Don't register namespaces.
5484         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
5485         Don't register namespaces.
5486         * cp/lex.c (init_cp_pragma): Similarly.
5487         * doc/tm.texi: Update.
5489 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5491         PR c/4157
5492         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
5494 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
5496         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
5497         add scheduling support.
5498         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
5499         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
5500         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
5503 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
5505         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
5506         missing CONSTANT_P test in core GCC.
5508 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5510         * cppmain.c (struct printer): New member source.
5511         (scan_translation_unit): Fix spacing at start of lines.
5512         (cb_line_change): Update.
5514         * gcc.dg/cpp/spacing2.c: New test.
5516 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
5518         * config/cris/arit.c: Use __builtin_labs, not abs.
5520         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
5522         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
5523         misplaced sprintf and fprintf argument.
5525 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
5527         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
5528         * configure.in, Makefile.in: Take out obsolete check-po logic.
5529         * configure, config.in: Regenerate.
5531 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
5533         * objc/objc-act.c (finish_objc): Correct precondition for emitting
5534         symtab declarations.
5536 2001-10-12  Stan Shebs  <shebs@apple.com>
5538         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
5539         declarations of arguments and local variables.
5541 2001-10-12  Christopher Faylor  <cgf@redhat.com>
5543         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
5544         ENDFILE_SPEC definition.
5546 2001-10-12  Kazu Hirata  <kazu@hxi.com>
5548         * gthr-dce.h: Fix comment formatting.
5549         * gthr-posix.h: Likewise.
5550         * gthr-single.h: Likewise.
5551         * gthr-solaris.h: Likewise.
5552         * gthr-vxworks.h: Likewise.
5553         * gthr-win32.h: Likewise.
5555 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
5557         * final.c (output_asm_insn): Make sure assembly dialects are
5558         terminated, not nested.  Output `|' and `}' characters if they
5559         don't appear inside assembly dialect selection.
5560         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
5561         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
5562         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
5563         strsetsi_rex_1): Add {} braces.
5565 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
5567         * toplev.c (compile_file): Ignore return value from yyparse.
5568         Always pop any nested binding levels after yyparse returns.
5570 2001-10-11  Richard Henderson  <rth@redhat.com>
5572         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
5574 2001-10-11  Richard Henderson  <rth@redhat.com>
5576         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
5577         fall back to add_AT_long_long for large CONST_INT.
5579 2001-10-11  Richard Henderson  <rth@redhat.com>
5581         * config/i386/i386.md (setcc splitters): Add four splitters to
5582         simplify compound compares that simplify_comparison can't handle.
5584 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
5586         * cpplex.c (digraph_spellings, token_spellings): Make static.
5588 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5590         * unroll.c (loop_iterations): Fixup last patch.
5592 2001-10-11  Richard Henderson  <rth@redhat.com>
5594         * rtl.h (REG_VTABLE_REF): New.
5595         * rtl.c (reg_note_name): Add it.
5596         * combine.c (distribute_notes): Handle it.
5597         * final.c (final_scan_insn): Handle it.
5598         * tree.def (VTABLE_REF): New.
5599         * expr.c (expand_expr): Handle it.
5600         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
5601         * output.h: Declare them.
5603 2001-10-11  Richard Henderson  <rth@redhat.com>
5605         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
5606         for a DECL_INITIAL.
5608 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
5610         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
5611         available in 64-bit mode.
5613 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
5615         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
5616         cris-*-linux* cases.
5617         * config/cris/cris-protos.h: New file.
5618         * config/cris/cris.c: New file.
5619         * config/cris/cris.h: New file.
5620         * config/cris/cris.md: New file.
5621         * config/cris/linux.h: New file.
5622         * config/cris/aout.h: New file.
5623         * config/cris/arit.c: New file.
5624         * config/cris/cris_abi_symbol.c: New file.
5625         * config/cris/mulsi3.asm: New file.
5626         * config/cris/t-aout: New file.
5627         * config/cris/t-cris: New file.
5628         * config/cris/t-elfmulti: New file.
5629         * config/cris/t-linux: New file.
5630         * doc/invoke.texi: Add CRIS options.
5631         * doc/install.texi (Specific): Add blurb for CRIS.
5633 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
5635         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
5636         before using it.
5637         * config/float/i32.h: Likewise.
5638         * config/float-i386.h: Likewise.
5639         * config/float-i64.h: Likewise.
5640         * config/float-m68k.h: Likewise.
5641         * config/float-sh.h: Likewise.
5642         * config/float-sparc.h: Likewise.
5644 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
5646         * doc/contrib.texi: Add note about CRIS port to my entry.
5648 2001-10-11  Kazu Hirata  <kazu@hxi.com>
5650         * basic-block.h: Fix formatting.
5651         * bitmap.h: Likewise.
5652         * cpplib.h: Likewise.
5653         * c-tree.h: Likewise.
5654         * diagnostic.h: Likewise.
5655         * flags.h: Likewise.
5656         * ggc.h: Likewise.
5657         * longlong.h: Likewise.
5658         * real.h: Likewise.
5659         * reload.h: Likewise.
5660         * rtl.h: Likewise.
5661         * tree.h: Likewise.
5663 2001-10-10  Richard Henderson  <rth@redhat.com>
5665         * c-parse.in (asm_operand): Allow named operands.
5666         * genconfig.c (max_recog_operands): Set to 29.
5667         * local-alloc.c (requires_inout): Skip multiple digits.
5668         * recog.c (asm_operand_ok): Likewise.
5669         (preprocess_constraints): Use strtoul for matching constraints.
5670         (constrain_operands): Likewise.
5671         * regmove.c (find_matches): Likewise.
5672         * reload.c (find_reloads): Likewise.
5673         * stmt.c (parse_output_constraint): Don't reject in-out
5674         constraint on operands > 9.  Reject '[' in constraint.
5675         (expand_asm_operands): Handle named operands.  Use strtoul
5676         for matching constraints.
5677         (check_operand_nalternatives): Split out from expand_asm_operands.
5678         (check_unique_operand_names): New.
5679         (resolve_operand_names, resolve_operand_name_1): New.
5681         * doc/extend.texi (Extended Asm): Document named operands.
5682         * doc/md.texi (Simple Constraints): Document matching constraints
5683         on operands > 9.
5685 2001-10-10  Richard Henderson  <rth@redhat.com>
5687         * combine.c (try_combine): Handle a SEQUENCE of one insn.
5689         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
5690         (jcc splitters): Add two splitters to simplify compound compares
5691         that simplify_comparison can't handle.
5693 2001-10-10  Richard Henderson  <rth@redhat.com>
5695         * langhooks.c: Include langhooks.h.
5696         * Makefile.in (langhooks.o): Depend on it.
5698 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
5700         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
5701         should not be considered as a no-op.
5702         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
5704 2001-10-10  Stan Shebs  <shebs@apple.com>
5706         * alias.c: Remove uses of "register" specifier in declarations
5707         of arguments and local variables.
5708         * c-common.c: Ditto.
5709         * c-convert.c: Ditto.
5710         * c-decl.c: Ditto.
5711         * c-format.c: Ditto.
5712         * c-semantics.c: Ditto.
5713         * c-typeck.c: Ditto.
5714         * caller-save.c: Ditto.
5715         * calls.c: Ditto.
5716         * cfg.c: Ditto.
5717         * cfgbuild.c: Ditto.
5718         * cfgrtl.c: Ditto.
5719         * collect2.c: Ditto.
5720         * combine.c: Ditto.
5721         * convert.c: Ditto.
5722         * cppexp.c: Ditto.
5723         * cppfiles.c: Ditto.
5724         * cse.c: Ditto.
5725         * dbxout.c: Ditto.
5726         * defaults.h: Ditto.
5727         * df.c: Ditto.
5728         * dwarf2out.c: Ditto.
5729         * dwarfout.c: Ditto.
5730         * emit-rtl.c: Ditto.
5731         * explow.c: Ditto.
5732         * expmed.c: Ditto.
5733         * expr.c: Ditto.
5734         * final.c: Ditto.
5735         * fix-header.c: Ditto.
5736         * floatlib.c: Ditto.
5737         * flow.c: Ditto.
5738         * fold-const.c: Ditto.
5739         * function.c: Ditto.
5740         * gcc.c: Ditto.
5741         * gcse.c: Ditto.
5742         * gen-protos.c: Ditto.
5743         * genattrtab.c: Ditto.
5744         * gencheck.c: Ditto.
5745         * genconfig.c: Ditto.
5746         * genemit.c: Ditto.
5747         * genextract.c: Ditto.
5748         * genflags.c: Ditto.
5749         * gengenrtl.c: Ditto.
5750         * genoutput.c: Ditto.
5751         * genpeep.c: Ditto.
5752         * genrecog.c: Ditto.
5753         * gensupport.c: Ditto.
5754         * global.c: Ditto.
5755         * gmon.c: Ditto.
5756         * graph.c: Ditto.
5757         * haifa-sched.c: Ditto.
5758         * hard-reg-set.h: Ditto.
5759         * hash.c: Ditto.
5760         * integrate.c: Ditto.
5761         * jump.c: Ditto.
5762         * lists.c: Ditto.
5763         * local-alloc.c: Ditto.
5764         * loop.c: Ditto.
5765         * mips-tdump.c: Ditto.
5766         * mips-tfile.c: Ditto.
5767         * optabs.c: Ditto.
5768         * prefix.c: Ditto.
5769         * print-rtl.c: Ditto.
5770         * read-rtl.c: Ditto.
5771         * real.c: Ditto.
5772         * recog.c: Ditto.
5773         * reg-stack.c: Ditto.
5774         * regclass.c: Ditto.
5775         * regmove.c: Ditto.
5776         * reload.c: Ditto.
5777         * reload1.c: Ditto.
5778         * reorg.c: Ditto.
5779         * resource.c: Ditto.
5780         * rtl.c: Ditto.
5781         * rtlanal.c: Ditto.
5782         * scan.c: Ditto.
5783         * sched-deps.c: Ditto.
5784         * sched-rgn.c: Ditto.
5785         * sdbout.c: Ditto.
5786         * simplify-rtx.c: Ditto.
5787         * stmt.c: Ditto.
5788         * stor-layout.c: Ditto.
5789         * toplev.c: Ditto.
5790         * tradcif.y: Ditto.
5791         * tradcpp.c: Ditto.
5792         * tree.c: Ditto.
5793         * unroll.c: Ditto.
5794         * varasm.c: Ditto.
5795         * xcoffout.c: Ditto.
5797 2001-10-10  Richard Henderson  <rth@redhat.com>
5799         * rtl.h (can_reverse_comparison_p): Remove.
5801 2001-10-10  Christopher Faylor <cgf@redhat.com>
5803         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
5804         used.
5806 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5808         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
5809         (Thanks to Chris Faylor for suggesting macro name).
5810         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
5811         WIN32 defines.
5812         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
5813         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
5814         (MATH_LIBRARY): Undef before definition.
5815         (OUTPUT_QUOTED_STRING): Likewise.
5816         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
5818 2001-10-10  Richard Henderson  <rth@redhat.com>
5820         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
5821         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
5822         a tristate comparison value.
5823         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
5825 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5827         PR c++/4512
5828         * unroll.c (loop_iterations): Ignore insns generated by loop
5829         unrolling.
5831         * config.gcc (mips*-*-gnu*): Delete support.
5832         * config/mips/gnu.h: Remove.
5834 2001-10-10  Kazu Hirata  <kazu@hxi.com>
5836         * calls.c: Fix formatting.
5837         * c-decl.c: Likewise.
5838         * cfgcleanup.c: Likewise.
5839         * combine.c: Likewise.
5840         * cppfiles.c: Likewise.
5841         * cpplib.c: Likewise.
5842         * cppmacro.c: Likewise.
5843         * crtstuff.c: Likewise.
5844         * cse.c: Likewise.
5845         * dwarf2out.c: Likewise.
5846         * expmed.c: Likewise.
5847         * expr.c: Likewise.
5848         * fold-const.c: Likewise.
5849         * function.c: Likewise.
5850         * gcse.c: Likewise.
5851         * genattrtab.c: Likewise.
5852         * ggc-page.c: Likewise.
5853         * integrate.c: Likewise.
5854         * libgcc2.c: Likewise.
5855         * loop.c: Likewise.
5856         * optabs.c: Likewise.
5857         * profile.c: Likewise.
5858         * protoize.c: Likewise.
5859         * real.c: Likewise.
5860         * recog.c: Likewise.
5861         * reload1.c: Likewise.
5862         * reload.c: Likewise.
5863         * reorg.c: Likewise.
5864         * resource.c: Likewise.
5865         * sched-rgn.c: Likewise.
5866         * sdbout.c: Likewise.
5867         * stmt.c: Likewise.
5868         * toplev.c: Likewise.
5869         * varasm.c: Likewise.
5871 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
5873         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
5874         * Makefile.in (langhooks.o): Add dependencies.
5876 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
5878         * rs6000.c (rs6000_emit_load_toc_table): Don't
5879         strdup the toc label.
5880         (create_TOC_reference): Likewise.
5882 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5884         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
5885         version default.
5887 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5889         * config/i386/i386.c (ix86_attribute_table): Correct
5890         min_len, max_len fields for dllimport, dllexport and shared.
5892 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
5894         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
5895         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
5896         Consistently use "nonzero" instead of "non-zero".
5898 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5900         * acconfig.h: Fix comment formatting.
5901         * c-dump.h: Likewise.
5902         * c-tree.h: Likewise.
5903         * conditions.h: Likewise.
5904         * expr.h: Likewise.
5905         * function.h: Likewise.
5906         * gthr.h: Likewise.
5907         * hwint.h: Likewise.
5908         * integrate.h: Likewise.
5909         * intl.h: Likewise.
5910         * loop.h: Likewise.
5911         * optabs.h: Likewise.
5913 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5915         * c-common.h: Fix comment formatting.
5916         * c-dump.c: Likewise.
5917         * cfg.c: Likewise.
5918         * diagnostic.h: Likewise.
5919         * except.c: Likewise.
5920         * gcc.h: Likewise.
5921         * gcov-io.h: Likewise.
5922         * genattrtab.c: Likewise.
5923         * output.h: Likewise.
5924         * predict.h: Likewise.
5925         * reload1.c: Likewise.
5926         * reload.h: Likewise.
5927         * resource.h: Likewise.
5928         * scan.h: Likewise.
5929         * system.h: Likewise.
5930         * tree.h: Likewise.
5931         * tree-inline.c: Likewise.
5932         * tsystem.h: Likewise.
5933         * varasm.c: Likewise.
5934         * xcoffout.h: Likewise.
5936 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
5938         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
5940 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
5942         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
5943         config/i386/i386elf.h, config/i386/netbsd-elf.h,
5944         config/i386/netware.h, config/mcore/gfloat.h,
5945         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
5946         config/netware.h, gccbug.in: Update FSF address.
5948 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5950         * c-common.c: Fix comment typos.
5951         * cfgrtl.c: Likewise.
5952         * collect2.c: Likewise.
5953         * cpplex.c: Likewise.
5954         * doloop.c: Likewise.
5955         * dwarf2out.c: Likewise.
5956         * dwarfout.c: Likewise.
5957         * expr.c: Likewise.
5958         * fold-const.c: Likewise.
5959         * gcc.c: Likewise.
5960         * gcov.c: Likewise.
5961         * gcse.c: Likewise.
5962         * global.c: Likewise.
5963         * ifcvt.c: Likewise.
5964         * loop.c: Likewise.
5965         * optabs.c: Likewise.
5966         * protoize.c: Likewise.
5967         * regclass.c: Likewise.
5968         * reorg.c: Likewise.
5969         * rtl.h: Likewise.
5970         * stmt.c: Likewise.
5971         * tree.h: Likewise.
5972         * doc/cpp.texi: Likewise.
5973         * doc/c-tree.texi: Likewise.
5974         * doc/extend.texi: Likewise.
5975         * doc/invoke.texi: Likewise.
5976         * doc/objc.texi: Likewise.
5977         * doc/tm.texi: Likewise.
5979 2001-10-08  Richard Henderson  <rth@redhat.com>
5981         * varasm.c (set_named_section_flags): Initialize "declared".
5983 2001-10-08  Robert Lipe  <robertlipe@usa.net>
5985         * varasm.c (struct in_named_entry): Add declared.
5986         (named_section_first_declaration): New function.
5987         (default_elf_asm_named_section): Use it.
5988         * output.h (named_section_first_declaration): New.
5990 2001-10-08  Richard Henderson  <rth@redhat.com>
5992         * i386.md (movsi_xor): Export.
5993         (setcc peep2): Use it when available; add an alternative to
5994         match zero_extendhisi2_and.
5996 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5998         * romp-protos.h (romp_initialize_trampoline): New function.
5999         * romp.c (romp_initialize_trampoline): Likewise.
6000         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
6001         romp_initialize_trampoline.
6003 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6005         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
6006         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6007         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6008         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
6010 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
6012         * unroll.c (loop_iterations): Extend check for multiple back edges.
6014 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
6016         * langhooks.h: New file.
6017         * Makefile.in (OBJS): Added langhooks.o.
6018         (c-lang.o): Depend on langhooks.h.
6019         (c-common.o): Don't depend on tree-inline.h.
6020         (tree-inline.o): Depend on toplev.h.
6021         (langhooks.o): New rule.
6022         * c-common.c: Don't include tree-inline.h.
6023         (c_mark_lang_decl): Mark argument c as unused.
6024         (c_common_lang_init): Don't initialize hooks here.
6025         * c-lang.c: Include langhooks.h, then override some macros.
6026         (lang_hooks): Initialize with macros in langhooks.h.
6027         (c_init): Don't initialize hooks here.
6028         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
6029         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
6030         * tree-inline.c: Include toplev.h.  Don't define hook variables.
6031         * tree-inline.h: Don't define hook types nor declare hook
6032         variables.  Move macros to...
6033         * langhooks.c: ... new file, as functions.  Adjust all callers.
6035 2001-10-08  Jeffrey A Law  <law@cygnus.com>
6037         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
6038         purge_mem_unchanging_flag on all instructions, not just on those
6039         before NOTE_INSN_FUNCTION_BEG.
6041 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6043         * cppmacro.c (_cpp_create_definition): Leave comments off.
6045         * doc/cpp.texi: Update.
6047 2001-10-08  DJ Delorie  <dj@redhat.com>
6049         * c-decl.c (grokfield): Make sure the only unnamed fields
6050         we're allowing are either structs or unions.
6051         * doc/extend.texi: Add documentation for the unnamed field
6052         extension.
6054 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
6056         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
6057         * configure.in: Use it.
6058         * configure: Regenerated.
6059         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
6060         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
6062 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6064         * cppfiles.c (open_file): Don't mark zero-length files
6065         never-reread here.  Don't output diagnostics here either.
6066         (stack_include_file): Mark them never-reread here.
6067         (_cpp_read_file): Update.
6069 2001-10-08  Richard Henderson  <rth@redhat.com>
6071         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
6073 2001-10-08  Richard Henderson  <rth@redhat.com>
6075         * expr.c (store_expr): When converting a CONST_INT for storage
6076         in a SUBREG, convert it to both SUBREG modes before stripping
6077         the SUBREG.
6079 2001-10-08  Richard Henderson  <rth@redhat.com>
6081         * varasm.c (restore_varasm_status): New.
6082         * function.h: Declare it.
6083         * function.c (pop_function_context_from): Call it.
6085 2001-10-08  Richard Henderson  <rth@redhat.com>
6087         * c-common.h (struct c_lang_decl): Add declared_inline.
6088         * c-tree.h (DECL_DECLARED_INLINE_P): New.
6089         * c-lang.c (c_disregard_inline_limits): Use it.
6090         * c-decl.c (duplicate_decls): Likewise.
6091         (pushdecl, redeclaration_error_message): Likewise.
6092         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
6093         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
6094         Set DECL_INLINE if -finline-functions.
6095         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
6097 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
6099         * cppmacro.c (funlike_invocation_p): Move some logic to caller
6100         in enter_macro_context.  Create a padding token in its own context
6101         if necessary when the search for '(' fails.
6102         (enter_macro_context): Update.
6104 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6106         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
6107         genmultilib, toplev.c: Fix spelling errors of "separate" as
6108         "seperate", and corresponding spelling errors of related words.
6110 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6112         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
6113         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
6114         Likewise.
6115         * c-dump.c (dump_option_value_info): Likewise.
6116         * c-format.c (format_length_info, format_char_info,
6117         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
6118         * collect2.c (names): Likewise.
6119         * cppdefault.h (default_include): Likewise.
6120         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
6121         * flow.c (life_analysis): Likewise.
6122         * gcc.c (dir_separator_str, modify_target, option_map,
6123         target_option_translations, spec_list_1, extra_specs_1,
6124         init_spec): Likewise.
6125         * gcov.c (gcov_version_string): Likewise.
6126         * genattr.c (write_units): Likewise.
6127         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
6128         * gengenrtl.c (rtx_definition, defs): Likewise.
6129         * genrecog.c (pred_table): Likewise.
6130         * global.c (global_alloc): Likewise.
6131         * lcm.c (optimize_mode_switching): Likewise.
6132         * local-alloc.c (find_free_reg): Likewise.
6133         * params.h (param_info): Likewise.
6134         * predict.c (predictor_info): Likewise.
6135         * protoize.c (unexpansion_struct): Likewise.
6136         * real.c (bmask): Likewise.
6137         * recog.h (insn_operand_data, insn_data): Likewise.
6138         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
6139         * stmt.c (expand_nl_goto_receiver): Likewise.
6140         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
6141         target_switches, target_options): Likewise.
6142         * tradcif.y (token, tokentab2, yylex): Likewise.
6143         * tree.h (attribute_spec): Likewise.
6145         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
6146         Likewise.
6147         * arc.c (arc_output_function_epilogue): Likewise.
6148         * arm.c (processors, all_cores, all_architectures,
6149         arm_override_options, isr_attribute_arg, isr_attribute_args,
6150         arm_isr_value): Likewise.
6151         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
6152         Likewise.
6153         * c4x.c (c4x_int_reglist): Likewise.
6154         * d30v.c (override_options): Likewise.
6155         * h8300.c (shift_insn): Likewise.
6156         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
6157         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
6158         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
6159         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
6160         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
6161         * i386.h (processor_costs, ix86_cost): Likewise.
6162         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
6163         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
6164         * m68k.c (codes_68881, codes_FPA): Likewise.
6165         * m88k.c (mode_from_align, max_from_align, all_from_align,
6166         best_from_align, m_options): Likewise.
6167         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
6168         * mcore.c (mode_from_align): Likewise.
6169         * mips/elf64.h (UNIQUE_SECTION): Likewise.
6170         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
6171         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
6172         * mips.h (mips_regno_to_class): Likewise.
6173         * ns32k.c (scales): Likewise.
6174         * pa.c (import_string, magic_milli): Likewise.
6175         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
6176         * sparc.c (leaf_reg_remap, sparc_override_options,
6177         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
6178         Likewise.
6179         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
6181 2001-10-07  Dale Johannesen  <dalej@apple.com>
6183         * reload1.c (reload_reg_free_p): Teach register interference
6184         checking that multiple output reloads are emitted in
6185         reverse order.
6186         reload1.c (reload_reg_reaches_end_p):  Ditto.
6187         reload1.c (reloads_conflict):  Ditto.
6189 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6191         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
6192         NULL_TREE inside @code.
6194 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6196         * doc/gcc.texi: Document consistent style of "32-bit",
6197         "Objective-C", and "@code{NULL}".
6199 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
6201         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
6202         (cpp_token_len, cpp_spell_token, cpp_output_token,
6203         _cpp_equiv_tokens): Handle it.
6204         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
6205         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
6206         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
6207         error messages.
6209 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6211         * gcc.c (default_compilers): Remove .ada.
6213 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6215         * doc/cppinternals.texi: Update.
6217 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
6219         * gcc.c (main): Set this_file_error if the appropriate
6220         compiler for a language has not been installed.
6222 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
6224         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
6226 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
6228         * gccbug.in (CATEGORIES): Add ada.
6230 2001-10-05  Catherine Moore  <clm@redhat.com>
6232         * config/stormy16/stormy-abi:  Document abi changes.
6233         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
6234         (ICALL_REGS): New register class.
6235         (NUM_ARGUMENT_REGISTERS): Now 6.
6236         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
6237         in registers.
6238         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
6239         * config/stormy16.md (call_internal, call_value_internal,
6240         indirect_jump): Use new 'z' constraint.
6242 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6244         * doc/cppinternals.texi: Update.
6246 2001-10-05  Richard Henderson  <rth@redhat.com>
6248         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
6249         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
6250         the gas section-name-as-label feature.
6252 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6254         * doc/cppinternals.texi: Update.
6256 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6258         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
6259         to ensure valid SImode constants.
6261 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
6263         * Makefile.in (c-decl.o): Depend on tree-inline.h.
6264         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
6265         * c-decl.c: Include tree-inline.h.
6266         (c_expand_body): Call optimize_inline_calls. Determine whether
6267         a function is inlinable upfront, and only clear
6268         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
6269         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
6270         (c_disregard_inline_limits): New function.
6271         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
6272         (c_post_options): Enable tree inlining if inlining is enabled.
6273         Don't inline trees when instrumenting functions.
6274         (c_init): Initialize lang_disregard_inline_limits and
6275         lang_cannot_inline_tree_fn.
6276         * tree-inline.c (initialize_inlined_parameters): Handle calls
6277         with fewer arguments than declared parameters, and fewer
6278         parameters than passed arguments.  Don't assume value is a
6279         DECL.
6280         (declare_return_variable): Convert return value back to the
6281         original type, if it was promoted.
6282         (tree_inlinable_function_p): New function.
6283         (inlinable_function_p): Don't look at DECL_INLINE if we're
6284         inlining all functions.  Make it work with a NULL id.
6285         Re-check DECL_UNINLINABLE after language-specific checks.
6286         * tree-inline.h (tree_inlinable_function_p): Declare it.
6287         * integrate.c (save_for_inline): Don't bother to prepare argvec
6288         when not inlining.
6289         * cse.c (check_for_label_ref): Don't check deleted labels.
6291         * Makefile.in (tree-inline.o): Depend on newly-included headers.
6292         * tree-inline.c: Include headers needed for the functions moved in.
6293         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
6294         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
6295         (copy_body, initialize_inlined_parameters): Likewise.
6296         (declare_return_variable, inlinable_function_p): Likewise.
6297         (expand_call_inline, expand_calls_inline): Likewise.
6298         (optimize_inline_calls, clone_body): Likewise.
6299         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
6300         (copy_tree_r, remap_save_expr): Likewise.
6302 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
6304         * Makefile.in (OBJS): Added tree-inline.o.
6305         (c-common.o): Depend on tree-inline.h.
6306         (tree-inline.o): New target.
6307         * c-common.c: Include tree-inline.h.
6308         (c_mark_lang_decl): Don't mark saved_tree.
6309         (c_common_lang_init): Set lang_anon_aggr_type_p.
6310         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
6311         (struct c_lang_decl): Moved saved_tree to tree_decl.
6312         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
6313         * integrate.h (function_attribute_inlinable_p): Declare it.
6314         * integrate.c (function_attribute_inlinable_p): Export it.
6315         * tree-inline.c: New file.  Define variables declared in...
6316         * tree-inline.h: New file.  Declare functions to be moved to
6317         tree-inline.c.  Define macros and declare types and hooks for
6318         language-specific tree inlining.
6319         (flag_inline_trees): Moved definition from cp/decl2.c.
6320         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
6321         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
6322         (struct tree_decl): Moved saved_tree from c_lang_decl and
6323         inlined_fns from C++'s lang_decl.
6325 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
6327         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
6328         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
6330 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6332         * doc/cppinternals.texi: Update.
6334 2001-10-04  Eric Christopher  <echristo@redhat.com>
6336         * config/mips/mips.c (init_cumulative_args): Remember to set
6337         cum->prototype.
6338         * config.gcc: Redo linux configuration. Add target_cpu_default
6339         of soft-float to all mipsisa32 combinations and tx39.
6340         * config/mips/linux.h: Remove include of mips.h.
6342 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
6344         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
6345         HOST_LDFLAGS and HOST_CPPFLAGS.
6347 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
6349         * c-parse.in (objc_inherit_code, objc_pq_context,
6350         objc_public_flag): Make static.
6351         (objc_interface_context, objc_implementation_context,
6352         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
6353         global tree array in objc/objc-act.[ch].
6354         (methoddef): Remove unnecessary code.
6356         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
6357         Hoist struct definitions to objc-act.h.
6358         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
6359         cat_count): Place declaration in objc-act.h.
6360         (objc_tree_index): Move enumeration to objc-act.h.
6361         (objc_global_trees): Place declaration and macro accessors in
6362         objc-act.h.
6363         (implementation_context): Remove duplicate; use
6364         objc_implementation_context instead:
6365         (method_context): Remove duplicate; use objc_method_context
6366         instead.
6367         (objc_ellipsis_node, objc_method_prototype_template,
6368         implemented_classes, function_type): Move global vars to
6369         objc_global_trees.
6370         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
6371         (build_message_expr): Move actual construction of ObjC message
6372         send nodes to finish_message_expr.
6373         (finish_message_expr): New routine, contains code formerly in
6374         build_message_expr.
6375         * objc/objc-act.h (finish_message_expr): New prototype.
6376         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
6377         declarations; these vars are now part of objc_global_trees.
6378         (objc_tree_index, objc_global_trees): Move definitions from
6379         objc-act.c.
6380         * objc/objc-tree.def: Update copyright info.
6382 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
6384         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
6385         op is NULL.
6386         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
6387         only if TARGET_ARCH64.
6389 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
6391         * doc/extend.texi: Fix some problems with previous checkin.
6392         * doc/invoke.texi: Likewise.
6394 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
6396         * cpphash.h: Update comments.
6397         (cpp_context): Update.
6398         (spec_nodes): Remove n__Pragma.
6399         * cppinit.c (cpp_create_reader): Update.
6400         (builtin_array): Add _Pragma.
6401         * cpplib.h: Update comments.
6402         (NODE_DISABLED, BT_PRAGMA): New.
6403         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
6404         * cppmacro.c (struct cpp_macro): Remove disabled.
6405         (builtin_macro): Return int, handle _Pragma, push the new token
6406         on the context stack.
6407         (funlike_invocation_p): Unconstify, update.
6408         (enter_macro_context): Handle builtins here.
6409         (replace_args, push_token_context, push_ptoken_context):
6410         Update for prototype changes.
6411         (_cpp_pop_context): Update.
6412         (cpp_get_token): Don't handle buitins, nor _Pragma here.
6413         (cpp_sys_macro_p): Update.
6414         (_cpp_free_definition): Clear disabled flag.
6415         (_cpp_create_definition): Upate.
6416         * cppmain.c: Update comments.
6418 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
6419                                 Andreas Jaeger <aj@suse.de>,
6420                                 Jan Hubicka    <jh@suse.cz>
6422         * doc/invoke.texi (i386 Options): Document x86-64 options.
6423         (i386 and x86-64 Options): Rename i386 options section.
6425         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
6426         (TARGET_SWITCHES): Add -munwind-info.
6427         (MASK_NO_UNWIND_INFO): New.
6428         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
6429         biarch compilation.
6430         (ASM_OUTPUT_DOUBLE_INT): New.
6432         * config/i386/linux64.h: New spec file for Linux x86-64 support.
6433         * config.gcc: Fix tm_file settings for x86-64.
6434         * config/i386/x86-64.h: New file with OS independent x86-64
6435         definitions.
6436         * config/i386/biarch64.h: New file used to configure compiler
6437         to biarch/64bit compilation.
6439         * config/i386/i386.c: (override_options): Set flags default
6440         for 64bit compilation.
6442 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
6444         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
6445         (ix86_expand_int_movcc): Optimize DImode conditional moves with
6446         constants on x86_64.
6447         (ix86_attr_length_immediate_default): Support MODE_DI.
6448         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
6449         condition.
6450         (indirect_jump, tablejump): Turn into expander.
6452 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6454         * c-common.c (c_format_attribute_table): Make format and
6455         format_arg attributes apply to function types rather than to
6456         decls.
6457         (is_valid_printf_arglist): Construct an attribute list and pass
6458         that to check_function_format rather than a name.
6459         * c-common.h (check_function_format): Adjust prototype.
6460         * c-decl.c (duplicate_decls): Preserve attributes from type of
6461         built-in decl when allowing for harmless conflict in types.
6462         * c-format.c (record_function_format,
6463         record_international_format, function_format_list,
6464         international_format_info, international_format_list): Remove.
6465         (function_format_info): Remove next, name and assembler_name.
6466         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
6467         (decode_format_attr): New.
6468         (handle_format_attribute): Handle receiving a type rather than a
6469         decl.  Call decode_format_attr.  Store format information in a
6470         function_format_info.
6471         (handle_format_arg_attribute): Correct comment.  Handle receiving
6472         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
6473         arg_num.
6474         (check_format_info_recurse, check_format_info_main): Take argument
6475         numbers as unsigned HOST_WIDE_INT.
6476         (check_function_format): Take a list of attributes from the
6477         function type rather than a name or assembler name.  Check for
6478         format attributes in that list and the attributes on the type of
6479         the current function rather than looking through
6480         function_format_list.
6481         (check_format_info): Use unsigned HOST_WIDE_INT for argument
6482         numbers.
6483         (check_format_info_recurse): Take format_arg attributes from the
6484         type of the function calls rather than using
6485         international_format_list.  Allow for multiple format_arg
6486         attributes.
6487         * c-typeck.c (build_function_call): Pass type attributes to
6488         check_function_format rather than name or assembler name.  Don't
6489         require there to be a name or assembler name to check formats.
6491 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6493         * attribs.c (decl_attributes): Possibly call
6494         insert_default_attributes to insert default attributes on
6495         functions in a lazy manner.
6496         * builtin-attrs.def: New file; define the default format and
6497         format_arg attributes.
6498         * c-common.c (c_format_attribute_table): Move to earlier in the
6499         file.
6500         (c_common_nodes_and_builtins): Initialize format_attribute_table.
6501         (enum built_in_attribute, built_in_attributes,
6502         c_attrs_initialized, c_init_attributes,
6503         c_common_insert_default_attributes): New.
6504         (c_common_lang_init): Don't initialize format_attribute_table.  Do
6505         call c_init_attributes.
6506         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
6507         * c-common.h (init_function_format_info): Don't declare.
6508         (c_common_insert_default_attributes): Declare.
6509         * c-decl.c (implicitly_declare, builtin_function): Call
6510         decl_attributes.
6511         (init_decl_processing): Don't call init_function_format_info.
6512         (insert_default_attributes): New.
6513         * c-format.c (handle_format_attribute,
6514         handle_format_arg_attribute): Be quiet about inappropriate
6515         declaration when applying default attributes.
6516         (init_function_format_info): Remove.
6517         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
6518         (insert_default_attributes): Declare.
6520 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6522         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
6524 2001-10-01  Jim Wilson  <wilson@redhat.com>
6526         * sched-deps.c (add_dependence): When elide conditional dependence,
6527         check that insn doesn't modify cond2.
6529 2001-10-01  Dale Johannesen  <dalej@apple.com>
6531         * config/rs6000/rs6000.h (enum processor_type): Add support
6532         for 7400 (G4) and 7450.
6533         (RTX_COSTS): Ditto.
6534         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
6535         (rs6000_issue_rate): Ditto.
6536         (rs6000_adjust_cost): Fix cycle counts for compares.
6537         (debug_stack_info):  Fix an obvious typo.
6538         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
6539         * doc/invoke.texi: Document.
6540         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
6541         for Darwin.
6542         (PROCESSOR_DEFAULT): Ditto.
6544 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
6546         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
6547         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
6548         later recursive make invocation.
6550 2001-10-01  Hans Boehm  <boehm@acm.org>
6552         * optabs.c (emit_libcall_block): When using non-call exceptions,
6553         don't add REG_LIBCALL reg notes to trapping calls.
6555 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
6557         * flow.c (propagate_block_delete_libcall): Remove unused first arg
6558         (propagate_one_insn):  Update for above change
6560 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
6562         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
6563         _Unwind_GetTextRelBase): Argument is unused.
6565 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6567         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
6568         Loop through NOPs, placeholders, and components.
6569         Don't go through NOPs if change mode.
6570         (record_alias_subset): Do nothing if SUBSET and SET are the same.
6571         * emit-rtl.c (set_mem_alias_set): Enable check.
6572         * expr.c (find_placeholder): New function.
6573         (expand_expr, case PLACEHOLDER_EXPR): Use it.
6574         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
6575         to modify it and avoid unneeded copies.
6576         * expr.h (expand_expr): Always define.
6577         (find_placeholder): New declaration.
6579 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6581         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
6582         operand 2 is the stack pointer.
6583         ("addr-peephole"): Fix address computation peephole when operand 2
6584         is the stack pointer.
6586 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6588         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
6589         (ix86_setup_incoming_varargs): Likewise.
6591 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
6593         * stor-layout.c (layout_type): Don't complain about too-large
6594         array here.
6596 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6598         * function.c (keep_stack_depressed): Don't use delete_insn.
6600         * expr.h (set_mem_alias_set): Move decl to here.
6601         * rtl.h (mem_attrs): New typedef and struct.
6602         (union rtunion_def): Add field for mem_attrs.
6603         (X0MEMATTR, MEM_ATTRS): New macros.
6604         (MEM_ALIAS_SET): Use MEM_ATTRS.
6605         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
6606         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
6607         (set_mem_alias_set): Delete decl from here.
6609         * alias.c (set_mem_alias_set): Delete from here.
6610         * emit-rtl.c (mem_attrs_htab): New variable.
6611         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
6612         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
6613         (mem_attrs_mark, get_mem_attrs): Likewise.
6614         (gen_rtx_MEM): Clear MEM_ATTRS.
6615         (set_mem_attributes): Move to here.
6616         (set_mem_alias_set): Likewise, and call get_mem_attrs.
6617         (init_emit_once): const_int_htab now deletable htab.
6618         Initialize mem_attrs_htab.
6619         * explow.c (set_mem_attributes): Delete from here.
6620         * function.c (put_var_into_stack): Clear MEM_ATTRS.
6621         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
6622         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
6623         * reload1.c (reload): Rework changing REG to MEM.
6625 2001-09-30  H.J. Lu <hjl@gnu.org>
6627         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
6628         * config.in: Rebuild.
6630 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6632         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
6633         ("tsthi_1"): Avoid allocation in register y.
6634         ("*movqi_68hc12"): Reorganize and fix constraints.
6635         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
6636         ("addqi3"): Likewise.
6637         ("addhi3"): Fix constraints.
6638         ("*logicalhi3_zexthi"): Disparage soft registers.
6640 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6642         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
6643         to tmp reg.
6645 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6647         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
6648         that we use setjmp/longjmp exceptions.
6650 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
6652         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
6653         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
6654         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
6655         _cpp_pool_alloc, _cpp_next_chunk): Remove.
6656         (_cpp_extend_buff, BUFF_ROOM): Update.
6657         (_cpp_append_extend_buff): New.
6658         (struct cpp_reader): Remove macro_pool, add a_buff.
6659         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
6660         macro_pool.
6661         (cpp_destroy): Free a_buff instead of macro_pool.
6662         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
6663         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
6664         _cpp_pool_alloc, ): Remove.
6665         (parse_number, parse_string): Update use of _cpp_extend_buff.
6666         (_cpp_extend_buff): Update.
6667         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
6668         * cpplib.c (glue_header_name, parse_answer):
6669         Update use of _cpp_extend_buff.
6670         (cpp_register_pragma, cpp_register_pragma_space): Use
6671         _cpp_aligned_alloc.
6672         (do_assert, do_unassert): Check for EOL, update.
6673         * cppmacro.c (stringify_arg, collect_args): Update to use
6674         _cpp_extend_buff and _cpp_append_extend_buff.
6675         (save_parameter, parse_params, alloc_expansion_token,
6676         _cpp_create_definition): Rework memory management.
6678 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
6680         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
6681         update md_exec_prefix.
6682         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
6683         to string constant.
6685 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
6687         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
6688         (SELECT_CC_MODE): Use s390_select_ccmode.
6689         * config/s390/s390-protos.h (s390_select_ccmode): Add.
6690         * config/s390/s390.c (s390_select_ccmode): New.
6691         (s390_match_ccmode): Add CCLmode.
6692         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
6693         (output_branch_condition, output_inverse_branch_condition): Removed.
6694         (print_operand): Use s390_branch_condition_mnemonic.
6695         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
6696         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
6697         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
6699         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
6700         when converting conditional branches to far branches.
6701         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
6702         cmpint_di): Use CCSmode instead of CCUmode.
6704         * config/s390/s390.c (legitimate_la_operand_p): New.
6705         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
6706         * config/s390/s390.md (movsi): Convert load address patterns to
6707         arithmetic operations when necessary.
6708         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
6709         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
6710         (*do_la_reg_0): Don't use before reload.
6712         * config/s390/s390.c (legitimize_address): Make more efficient
6713         use of two-register addressing mode.
6715         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
6716         with -mno-backchain in some corner cases.
6718         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
6720 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
6722         * reload.c (find_reloads): Mark new USE insns with QImode.
6723         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
6724         find_reloads_subreg_address): Likewise.
6725         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
6726         encountered.
6727         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
6728         CLOBBERs.
6729         (reload): Make sure there are no USEs with mode other than
6730         VOIDmode.  At the end, remove those marked with QImode.
6732 2001-09-29  Per Bothner  <per@bothner.com>
6734         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
6735         * Makefile.in (includedir):  Rename to local_includedir.
6736         (includedir):  Define as $(prefix)/include.
6737         * config.in (PREFIX_INCLUDE_DIR):  New variable.
6738         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
6740 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
6742         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
6743         storehps builtins.
6744         * doc/extend.texi (Vector Extensions): New node.
6745         * doc/invoke.texi (Machine Dependent Options): Add documentation for
6746         i386 -mmmx, -msse, -m3dnow.
6748 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
6750         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
6752 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
6754         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
6756         * doc/invoke.texi (Optimize Options): Delete spurious @table.
6758 2001-09-28  Richard Henderson  <rth@redhat.com>
6760         * varasm.c (assemble_integer): Bound alignment check by
6761         BIGGEST_ALIGNMENT.
6763         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
6765 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6767         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
6769 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
6771         Mostly from Graham Stott  <grahams@redhat.com>
6772         * c-common.c (type_for_mode): Add support for V2SFmode.
6773         * tree.c (build_common_tree_nodes_2): Likewise.
6774         * tree.h (enum tree_index, global_trees): Likewise.
6775         * config/i386/i386.c (x86_3dnow_a): New variable.
6776         (override_options): Support 3Dnow extensions.
6777         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
6778         Athlon's version of 3Dnow.
6779         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
6780         (ix86_expand_builtin): Handle them.
6781         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
6782         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
6783         TARGET_3DNOW_A): New macros.
6784         (TARGET_SWITCHES): Add 3Dnow switches.
6785         (VALID_MMX_REG_MODE_3DNOW): New macro.
6786         (VECTOR_MODE_SUPPORTED_P): Use it.
6787         (enum ix86_builtins): Add entries for 3Dnow builtins.
6788         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
6789         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
6790         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
6791         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
6792         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
6793         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
6794         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
6795         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
6796         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
6797         sfence_insn, prefetch): Make these available if TARGET_SSE or
6798         TARGET_3DNOW_A.
6800 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
6802         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
6803         ix86_va_start, ix86_build_va_list): Declare.
6804         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
6805         ix86_va_start, ix86_build_va_list): New global functions.
6806         * i386.md (sse_prologue_save_insn): New insn.
6807         (sse_prologue_save): New expander.
6808         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
6809         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
6811 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6813         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
6814         Use size_t everywhere, make definitions consistent with
6815         prototypes.
6817 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
6819         * gcse.c (replace_store_insn): Use delete_insn.
6820         * loop.c (move_movables): Likewise; avoid delete_insn
6821         from clobbering notes moved elsewhere.
6822         (check_dbra_loop): Use delete_insn.
6823         * ssa.c (convert_from_ssa): Likewise.
6824         * cse.c (cse_insn): Use delete_insn.
6826 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6828         * cpphash.h (struct cpp_buff): Make unsigned.
6829         (_cpp_get_buff): Take length of size_t.
6830         (_cpp_unaligned_alloc): New.
6831         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
6832         (struct cpp_reader): Remove ident_pool.  Add u_buff.
6833         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
6834         (cpp_destroy): Destroy u_buff, not ident_pool.
6835         * cpplex.c (parse_number, parse_string, save_comment,
6836         cpp_token_as_text): Update to use the unaligned buffer.
6837         (new_buff): Make unsigned.
6838         (_cpp_unaligned_alloc): New.
6839         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
6840         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
6841         Similarly.
6842         (collect_args): Make unsigned.
6844 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
6846         * cpplex.c (cpp_output_token): Use a putc loop for
6847         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
6849         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
6850         * configure, config.in: Regenerate.
6851         * system.h: Replace fwrite and fprintf with their unlocked
6852         variants if available.
6854 2001-09-27  Richard Henderson  <rth@redhat.com>
6856         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
6857         in favour of .eh_frame.
6859 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
6861         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
6862         to macros.
6863         (LIBCALL_VALUE): Likewise.
6865 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6867         * cpphash.h: Update comment.
6868         * cpplex.c: Update comments.
6869         (_cpp_can_paste): Remove.
6870         * cpplib.h (_cpp_can_paste): Remove.
6871         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
6872         lexer rather than _cpp_can_paste.
6874 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6876         * doc/cppinternals.texi: Update.
6878 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6880         * cpphash.h (struct cpp_pool): Remove locks and locked.
6881         (struct cpp_context): Add member buff.
6882         (struct cpp_reader): Remove member argument_pool.
6883         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6884         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
6885         * cpplex.c (chunk_suitable): Remove pool argument.
6886         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
6887         (new_buff, _cpp_extend_buff): Update.
6888         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
6889         which buffer is returned.
6890         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
6891         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6892         * cppmacro.c (lock_pools, unlock_pools): Remove.
6893         (push_ptoken_context): Take a _cpp_buff.
6894         (enter_macro_context): Pool locking removed.
6895         (replace_args): Use a _cpp_buff for the replacement list with
6896         arguments replaced.
6897         (push_token_context): Clear buff.
6898         (expand_arg): Use _cpp_pop_context.
6899         (_cpp_pop_context): Free a context's buffer, if any.
6901 2001-09-26  DJ Delorie  <dj@redhat.com>
6903         * c-typeck.c (digest_init): Check for sizeless arrays.
6905 2001-09-26  Richard Henderson  <rth@redhat.com>
6907         * optabs.c (init_one_libfunc): Create a dummy function type
6908         instead of using error_mark_node.
6910 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6912         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
6913         _cpp_extend_buff, _cpp_free_buff): New.
6914         (struct cpp_reader): New member free_buffs.
6915         * cppinit.c (cpp_destroy): Free buffers.
6916         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
6917         _cpp_extend_buff, _cpp_free_buff): New.
6918         * cpplib.h (struct cpp_options): Remove unused member.
6919         * cppmacro.c (collect_args): New.  Combines the old parse_arg
6920         and parse_args.  Use _cpp_buff for memory allocation.
6921         (funlike_invocation_p, replace_args): Update.
6923 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
6925         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
6927 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
6929         * except.c (sjlj_mark_call_sites): Change address inside sequence.
6931 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
6933         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
6934         glibc.
6936 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
6937             Jim Wilson  <wilson@redhat.com>
6939         * doc/install.texi (Specific, ia64-*-linux): Document.
6941 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
6943         * Makefile.in (cfgrtl.o): Add.
6944         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6945         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6946         free_aux_for_edge): Declare.
6947         * cfg.c
6948         (HAVE_return): Undefine.
6949         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6950         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6951         free_aux_for_edge): New global functions.
6952         (first_delete_block): New static variable.
6953         (init_flow): Clear first_delete_block.
6954         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
6955          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
6956          try_redirect_by_replacing_jump, last_loop_beg_note,
6957          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
6958          delete_insn, delete_insn_chain, create_basic_block_structure,
6959          create_basic_block, flow_delete_block, compute_bb_for_insn,
6960          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
6961          set_block_for_new_insns, split_block, merge_blocks_nomove,
6962          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
6963          redirect_edge_and_branch, force_nonfallthru_and_redirect,
6964          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
6965          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
6966          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
6967          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6968          purge_all_dead_edges): Move to ....
6969         * cfgrtl.c: New file; .... Here.
6971         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
6972         (reroder_basic_block): Use alloc_aux_for_blocks.
6973         * predict.c (estimate_bb_frequencies): Likewise; use
6974         alloc_aux_for_edges.
6975         * profile.c (compute_branch_probabilities): Likewise.
6976         (branch_prob): Likewise.
6977         * reg-stack.c (reg_to_stack): Likewise.
6979         * emit-rtl.c (emit_insns_after): Never return NULL.
6981         * basic-block.h (set_block_for_new_insns): Delete.
6982         * cfgrtl.c (set_block_for_new_insns): Delete.
6984         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
6985         calls when crossjumping.
6987         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
6988         * unroll.c (copy_loop_body): Use delete_insn.
6990         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
6991         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
6992         keep_stack_depressed): Likewise.
6993         * gcse.c (cprop_cc0_jump): Likewise.
6994         * local-alloc.c (update_equiv_regs): Likewise.
6995         * loop.c (scan_loop, loop_delete_insns): Likewise.
6996         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
6997         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
6998         delete_output_reload, delete_address_reloads_1,
6999         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
7000         Likewise.
7001         * sibcall.c (replace_call_placeholder): Likewise.
7002         * cse.c (cse_insn): Likewise.
7004 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
7006         From Graham Stott  <grahams@redhat.com>
7007         (def_builtin): Only define builtins appropriate for target_flags.  All
7008         callers changed.
7009         (builtin_decsription): Add new field mask which is used to determine
7010         when to define the builtin via the macro def_builtin.
7012         (bdesc_comi): Initialise new mask fields.
7013         (bdesc_2srg): Likewise.
7014         (bdesc_1arg): Likewise.
7016         * config/i386/i386.c (ix86_init_builtins): Correct return type
7017         building v4hi_ftype_v4hi_int_int tree node.
7018         (ix86_expand_sse_comi): Fix typo swapping operands.
7019         Don't swap comparision condition, it is already swapped.
7020         (ix86_expand_sse_compare): Before swapping operands
7021         move operand 1 into new rtx and not the target rtx.
7022         Don't swap comparison condition, it is already swapped.
7023         Always check whether we need to create a new TARGET.
7025         * config/i386/i386.md: (sse_comi) Fix typos.
7026         (sse_ucomi): Likewise.
7027         (cvtss2si): Fix operand 0 contraint.
7028         (cvttss2si): Likewise.
7029         (sse_unpckhps): Fix mode for operand 2.
7030         (sse_unpcklps): Likewise.
7032 2001-09-25  Graham Stott  <grahams@redhat.com>
7034         * sibcall.c (skip_copy_to_return_value): Tighten return value
7035         copy check.
7037 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
7039         * rs6000.c (lwa_operand): Address must be word aligned.
7041 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7043         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
7044         number has been set.
7045         (type_hash_mark): Mark type itself.
7047 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
7049         * c-lex.c (cb_def_pragma): Update.
7050         (c_lex): Update, and skip padding.
7051         * cppexp.c (lex, parse_defined): Update, remove unused variable.
7052         * cpphash.h (struct toklist): Delete.
7053         (union utoken): New.
7054         (struct cpp_context): Update.
7055         (struct cpp_reader): New members eof, avoid_paste.
7056         (_cpp_temp_token): New.
7057         * cppinit.c (cpp_create_reader): Update.
7058         * cpplex.c (_cpp_temp_token): New.
7059         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
7060         (cpp_output_token): Don't print leading whitespace.
7061         (cpp_output_line): Update.
7062         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
7063         do_include_common, do_line, do_ident, do_pragma,
7064         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
7065         parse_assertion): Update.
7066         (get_token_no_padding): New.
7067         * cpplib.h (CPP_PADDING): New.
7068         (AVOID_LPASTE): Delete.
7069         (struct cpp_token): New union member source.
7070         (cpp_get_token): Update.
7071         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
7072         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
7073         replace_args, quote_string, stringify_arg, parse_arg, next_context,
7074         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
7075         _cpp_backup_tokens, _cpp_create_definition): Update.
7076         (push_arg_context): Delete.
7077         (padding_token, push_token_context, push_ptoken_context): New.
7078         (make_string_token, make_number_token): Update, rename.
7079         (cpp_get_token): Update to handle tokens as pointers to const,
7080         and insert padding appropriately.
7081         * cppmain.c (struct printer): New member prev.
7082         (check_multiline_token): Constify.
7083         (do_preprocessing, cb_line_change): Update.
7084         (scan_translation_unit): Update to handle spacing.
7085         * scan-decls.c (get_a_token): New.
7086         (skip_to_closing_brace, scan_decls): Update.
7087         * fix-header.c (read_scan_file): Update.
7089         * doc/cpp.texi: Update.
7091 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7093         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
7094         leak by passing malloc'ed pointer to reconcat, not concat.
7096 2001-09-24  DJ Delorie  <dj@redhat.com>
7098         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
7100 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
7102         * flow.c (delete_dead_jumptables): Delete jumptable if the only
7103         reference is from the literal pool.
7105 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
7107         * doc/install.texi (Final install): Request additional information
7108         in mail about successful builds.
7110 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7112         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
7113         initial value of return pointer register instead of value in frame-20.
7114         Revise comments.
7116 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7118         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
7119         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
7120         the libcall if there isn't a referenced identifier for the symbol.
7122 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7124         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
7125         non 64-bit machines.  Use these as a plabel for the trampoline.
7126         (TRAMPOLINE_SIZE): Adjust size for new words.
7127         (INITIALIZE_TRAMPOLINE): Initialize new words.
7128         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
7129         pointer to the plabel in the trampoline.
7131 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7133         * pa.c (function_arg): Pass floating arguments in both general and
7134         floating registers in indirect (dynamic) calls when generating code
7135         for the 32 bit ABI and the HP assembler.
7137 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7139         * doc/install.texi: Markup fixes.
7140         Use Solaris 2, SunOS 4 as appropriate.
7141         (Specific, *-*-solaris2*): Explain this.
7142         Unconditionally warn against /usr/ucb tools.
7143         Remove Sun as warning, obsolete.
7144         Move X11 header bug workaround here, update patches.
7145         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
7146         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
7148 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
7150         * errors.h (warning, error, fatal, internal_error): Don't mark
7151         with ATTRIBUTE_PRINTF_n.
7152         * toplev.h (internal_error, fatal_io_error, warning, error,
7153         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
7154         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
7155         Likewise.
7157 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7159         * function.c (pop_function_context_from): var_refs_queue
7160         and temp slots now in GC memory.
7161         (mark_function_status, free_after_compilation): Likewise;
7162         also struct function now in GC memory.
7163         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
7164         (combine_temp_slots): Likewise.
7165         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
7166         (prepare_function_start): Use GC memory for struct function.
7167         (mark_temp_slot): Deleted.
7168         (gcc_mark_struct_function): struct function now in GC memory.
7170         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
7171         code for division, not modulus.
7173         * rtl.def (MEM): Remove obsolete part of comment.
7175 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
7177         * c-format.c (init_function_format_info): Check __builtin_printf
7178         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
7179         in gnu89 mode.
7181 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7183         * c-common.c (format_attribute_table): Remove decl.
7184         * tree.h (format_attribute_table, lang_attribute_table): New decls.
7185         (lang_attribute_common): Likewise.
7187         * function.c (fix_lexical_address): Use set_mem_alias_set.
7188         (expand_function_start): Likewise.
7189         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
7191         * varasm.c (output_constant): Fix unused variable warning.
7193         * attribs.c: New file, from c-common.c.
7194         (attribute_tables): Now four elements.
7195         (format_attribute_table, lang_attribute_common): New variables.
7196         (init_attributes): Reflect above changes.
7197         (handle_mode_attribute): Delete check for wider than uintmax.
7198         * c-common.c: Delete parts moved to attribs.c.
7199         (enum attrs): Deleted; unused.
7200         (c_format_attribute_table): New variable.
7201         (c_common_lang_init): Initialize format_attribute_table with it.
7202         * c-common.h (decl_attributes): Remove decl.
7203         * tree.h (decl_attribute): Move it to here.
7204         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
7205         (attribs.o): New rule.
7207 2001-09-22  Andreas Jaeger  <aj@suse.de>
7209         * builtins.c (c_getstr): Remove unused variable.
7211 2001-09-21  Richard Henderson  <rth@redhat.com>
7213         * reload1.c (reload): Use delete_insn instead of splatting
7214         NOTE_INSN_DELETED.
7216 2001-09-21  Richard Henderson  <rth@redhat.com>
7218         * reload.c (push_secondary_reload): Don't check for "=" in output
7219         constraint after ""->ALL_REGS check.
7221 2001-09-21  Richard Henderson  <rth@redhat.com>
7223         * predict.c (expected_value_to_br_prob): Use pc_set.
7225         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
7226         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
7228 2001-09-21  Richard Henderson  <rth@redhat.com>
7230         * rtl.h (LCT_RETURNS_TWICE): New.
7231         * calls.c (emit_call_1): Set current_function_calls_setjmp for
7232         ECF_RETURNS_TWICE.
7233         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
7234         to ECF_RETURNS_TWICE.
7235         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
7236         call to setjmp.
7238         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
7240         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
7241         (JMP_BUF_SIZE): New.
7243 2001-09-21  Richard Henderson  <rth@redhat.com>
7245         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
7246         to R8_REGS.
7248 2001-09-21  Richard Henderson  <rth@redhat.com>
7250         * tree.def (FDESC_EXPR): New.
7251         * expr.c (expand_expr): Handle it.
7252         * varasm.c (initializer_constant_valid_p): Likewise.
7253         (output_constant): Likewise.
7254         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
7255         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
7256         (ASM_OUTPUT_FDESC): New.
7257         * doc/tm.texi: Document the new macros.
7259 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
7261         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
7262         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
7263         once merging is complete.
7265 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7267         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
7269 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
7271         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
7272         that would be invalid after a merge.
7274 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
7276         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
7277         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
7278         remove some labels.
7279         (flow_delete_insn): This one.
7280         (delete_insn_chain): Rename from ...; do not care labels.
7281         (flow_delete_insn_chain): ... this one.
7282         (flow_delete_block): Remove the insns one BB has been expunged.
7283         (merge_blocks_nomove): Likewise.
7284         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
7285         updating BB boundaries.
7286         (tidy_fallthru_edge): Likewise.
7287         (commit_one_edge_insertion): Likewise.
7288         * cfgbuild.c (find_basic_block): Likewise.
7289         (find_basic_blocks_1): Likewise.
7290         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
7291         (try_crossjump_to_edge): Likewise.
7292         (try_optimize_cfg): Likewise.
7293         * cse.c (delete_trivially_dead_insns): Likewise.
7294         * df.c (df_insn_delete): Likewise.
7295         * doloop.c (doloop_modify): Use delete_related_insns.
7296         * emit-rtl.c (try_split): Likewise.
7297         (remove_insn): Update BB boundaries.
7298         * expect.c (connect_post_landing_pads): Use delete_related_insns.
7299         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
7300         updating BB boundaries.
7301         (propagate_block_delete_insn): Likewise.
7302         (propagate_block_delete_libcall): Likewise.
7303         * function.c (delete_handlers): Use delete_related_insns.
7304         (thread_prologue_and_epilogue_insns): Likewise.
7305         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
7306         * genpeep.c (gen_peephole): Use delete_related_insns.
7307         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
7308         BB boundaries.
7309         (find_cond_trap): Likewise.
7310         * integrate.c (save_for_inline): Use delete_related_insns.
7311         (copy_insn_list): Likewise.
7312         * jump.c (pruge_linie_number_notes): Likewise.
7313         (duplicate_loop_exit_test): Likewise.
7314         (delete_computation): Likewise.
7315         (delete_related_insn): Rename from ...; use delete_insn
7316         (delete_insn): ... this one.
7317         (redirect_jump): Use delete_related_insns.
7318         * loop.c (scan_loop): Likewise.
7319         (move_movables): Likewise.
7320         (find_and_verify_loops): Likewise.
7321         (check_dbra_loop): Likewise.
7322         * recog.c (peephole2_optimize): Likewise.
7323         * reg-stack.c (delete_insn_for_stacker): Remove.
7324         (move_for_stack_reg): Use delete_insn.
7325         * regmove.c (combine_stack_adjustments_for_block): Likewise.
7326         * reload1.c (delete_address_reloads): Use delete_related_insns.
7327         (fixup_abnormal_edges): Use delete_insn.
7328         * recog.c (emit_delay_sequence): Use delete_related_insns.
7329         (delete_from-delay_slot): Likewise.
7330         (delete_scheduled_jump): likewise.
7331         (optimize_skip): Likewise.
7332         (try_merge_delay_insns): Likewise.
7333         (full_simple_delay_slots): Likewise.
7334         (fill_slots_from_thread): Likewise.
7335         (relax_delay_slots): Likewise.
7336         (make_return_insns): Likewise.
7337         (dbr_schedule): Likewise.
7338         * rtl.h (delete_insn): Rename to delete_related_insns.
7339         (delete_insn, delete_insn_chain): New prototypes.
7340         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
7341         by df_insn_delete already.
7342         * ssa-dce.c (delete_insn_bb): Use delete_insn.
7343         * ssa.c (convert_from_ssa): Use delete_related_insns.
7344         * unroll.c (unroll_loop): Likewise.
7345         (calculate_giv_inc): Likewise.
7346         (copy_loop_body): Likewise.
7348         * i386-protos.h (ix86_libcall_value, ix86_function_value,
7349         ix86_function_arg_regno_p, ix86_function_arg_boundary,
7350         ix86_return_in_memory, ix86_function_value): Declare.
7351         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
7352         new static valurables.
7353         (x86_64_reg_class): New enum
7354         (x86_64_reg_class_name): New array.
7355         (classify_argument, examine_argument, construct_container,
7356          merge_classes): New static functions.
7357         (optimization_options): Enable flag_omit_frame_pointer and disable
7358         flag_pcc_struct_return on 64bit.
7359         (ix86_libcall_value, ix86_function_value,
7360         ix86_function_arg_regno_p, ix86_function_arg_boundary,
7361         ix86_return_in_memory, ix86_function_value): New global functions.
7362         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
7363         (function_arg_advance): Handle x86_64 passing conventions.
7364         (function_arg): Likewise.
7365         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
7366         (RETURN_IN_MEMORY): Move offline.
7367         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
7368         (FUNCTION_VALUE_REGNO_P): New macro.
7369         (FUNCTION_ARG_REGNO_P): Move offline.
7370         (struct ix86_args): Add maybe_vaarg.
7371         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
7372         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
7374 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
7376         * s390.md: Changed attributes for scheduling.
7377         * s390.c: (s390_adjust_cost, s390_adjust_priority)
7378         Changed scheduling
7380 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7382         Table-driven attributes.
7383         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
7384         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
7385         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
7386         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
7387         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
7388         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
7389         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
7390         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
7391         * tree.h (struct tree_decl): Change machine_attributes to
7392         attributes.
7393         * doc/c-tree.texi: Document that all attributes are now attached
7394         to decls and types.
7395         * c-common.c (add_attribute, attrtab, attrtab_idx,
7396         default_valid_lang_attribute, valid_lang_attribute): Remove.
7397         (attribute_tables, attributes_initialized,
7398         c_common_attribute_table, default_lang_attribute_table): New
7399         variables.
7400         (handle_packed_attribute, handle_nocommon_attribute,
7401         handle_common_attribute, handle_noreturn_attribute,
7402         handle_unused_attribute, handle_const_attribute,
7403         handle_transparent_union_attribute, handle_constructor_attribute,
7404         handle_destructor_attribute, handle_mode_attribute,
7405         handle_section_attribute, handle_aligned_attribute,
7406         handle_weak_attribute, handle_alias_attribute,
7407         handle_no_instrument_function_attribute,
7408         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
7409         handle_no_limit_stack_attribute, handle_pure_attribute): New
7410         functions.
7411         (init_attributes, decl_attributes): Rewrite to implement
7412         table-driven attributes.
7413         * c-common.h (enum attribute_flags): Move to tree.h.
7414         * c-format.c (decl_handle_format_attribute,
7415         decl_handle_format_arg_attribute): Rename to
7416         handle_format_attribute and handle_format_arg_attribute.  Update
7417         for table-driven attributes.
7418         * c-common.h (decl_handle_format_attribute,
7419         decl_handle_format_arg_attribute): Remove prototypes.
7420         (handle_format_attribute, handle_format_arg_attribute): Add
7421         prototypes.
7422         * c-decl.c (grokdeclarator): Handle attributes nested inside
7423         declarators.
7424         * c-parse.in (setattrs, maybe_setattrs): Remove.
7425         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
7426         Update to handle nested attributes properly.
7427         (maybe_resetattrs, after_type_declarator,
7428         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
7429         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
7430         properly.
7431         (make_pointer_declarator): Update to handle nested attributes
7432         properly.
7433         * doc/extend.texi: Update documentation of limits of attributes
7434         syntax.  Warn about problems with attribute semantics in C++.
7435         * target.h (struct target): Remove valid_decl_attribute and
7436         valid_type_attribute.  Add attribute_table and
7437         function_attribute_inlinable_p.
7438         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
7439         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
7440         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
7441         Add.
7442         (TARGET_INITIALIZER): Update.
7443         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
7444         definition.
7445         (function_attribute_inlinable_p): New function.  Check for the
7446         presence of any machine attributes before using
7447         targetm.function_attribute_inlinable_p.
7448         (function_cannot_inline_p): Update.
7449         * Makefile.in (integrate.o): Update dependencies.
7450         * doc/tm.texi: Update documentation of target attributes and
7451         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
7452         * tree.c (default_valid_attribute_p, valid_machine_attribute):
7453         Remove.
7454         (default_target_attribute_table,
7455         default_function_attribute_inlinable_p): New.
7456         (lookup_attribute): Update comment to clarify handling of multiple
7457         attributes with the same name.
7458         (merge_attributes, attribute_list_contained): Allow multiple
7459         attributes with the same name but different arguments to appear in
7460         the same attribute list.
7461         * tree.h (default_valid_attribute_p): Remove prototype.
7462         (struct attribute_spec): New.
7463         (default_target_attribute_table): Declare.
7464         (enum attribute_flags): Move from c-common.h.  Add
7465         ATTR_FLAG_TYPE_IN_PLACE.
7466         (default_function_attribute_inlinable_p): Declare.
7467         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
7468         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7469         (TARGET_ATTRIBUTE_TABLE): Define.
7470         (vms_attribute_table): New.
7471         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
7472         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7473         (TARGET_ATTRIBUTE_TABLE): Define.
7474         (arc_attribute_table, arc_handle_interrupt_attribute): New.
7475         * config/arm/arm.c (arm_valid_type_attribute_p,
7476         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
7477         Remove.
7478         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
7479         define.
7480         (TARGET_ATTRIBUTE_TABLE): Define.
7481         (arm_attribute_table, arm_handle_fndecl_attribute,
7482         arm_handle_isr_attribute): New.
7483         * config/avr/avr.c (avr_valid_type_attribute,
7484         avr_valid_decl_attribute): Remove.
7485         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
7486         define.
7487         (TARGET_ATTRIBUTE_TABLE): Define.
7488         (avr_attribute_table, avr_handle_progmem_attribute,
7489         avr_handle_fndecl_attribute): New.
7490         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
7491         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7492         (TARGET_ATTRIBUTE_TABLE): Define.
7493         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
7494         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
7495         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7496         (TARGET_ATTRIBUTE_TABLE): Define.
7497         (h8300_attribute_table, h8300_handle_fndecl_attribute,
7498         h8300_handle_eightbit_data_attribute,
7499         h8300_handle_tiny_data_attribute): New.
7500         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
7501         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
7502         Remove prototypes.
7503         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
7504         declarations.
7505         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
7506         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
7507         define.
7508         (TARGET_ATTRIBUTE_TABLE): Define.
7509         (ix86_attribute_table, ix86_handle_cdecl_attribute,
7510         ix86_handle_regparm_attribute): New.
7511         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
7512         i386_pe_valid_type_attribute_p): Remove.
7513         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
7514         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
7515         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7516         (TARGET_ATTRIBUTE_TABLE): Define.
7517         (ia64_attribute_table): New.
7518         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
7519         interrupt_ident2, model_ident1, model_ident2): Remove.
7520         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7521         (TARGET_ATTRIBUTE_TABLE): Define.
7522         (init_idents): Update.
7523         (m32r_attribute_table, m32r_handle_model_attribute): New.
7524         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
7525         Remove.
7526         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7527         (TARGET_ATTRIBUTE_TABLE): Define.
7528         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
7529         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
7530         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7531         (TARGET_ATTRIBUTE_TABLE): Define.
7532         (mcore_attribute_table, mcore_handle_naked_attribute): New.
7533         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
7534         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7535         (TARGET_ATTRIBUTE_TABLE): Define.
7536         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
7537         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
7538         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7539         (TARGET_ATTRIBUTE_TABLE): Define.
7540         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
7541         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
7542         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7543         (TARGET_ATTRIBUTE_TABLE): Define.
7544         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
7545         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
7546         New.
7547         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
7548         Remove.
7549         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
7550         (TARGET_ATTRIBUTE_TABLE): Define.
7551         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
7552         New.
7553         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
7554         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7555         (TARGET_ATTRIBUTE_TABLE): Define.
7556         (v850_attribute_table, v850_handle_interrupt_attribute,
7557         v850_handle_data_area_attribute): New.
7558         * config/v850/v850-c.c (mark_current_function_as_interrupt):
7559         Return void.  Call decl_attributes instead of
7560         valid_machine_attribute.
7562 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
7564         * sh-protos.h (sh_pr_n_sets): Declare.
7565         * sh.c (calc_live_regs): If the initial value for PR has been copied,
7566         look at the copy to determine if PR needs to be saved.
7567         sh_pr_n_sets: New function.
7568         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
7569         (ALLOCATE_INITIAL_VALUE): Define.
7571         * sh.c (initial_elimination_offset):
7572         Fix RETURN_ADDRESS_POINTER_REGNUM case.
7574 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
7576         * integrate.c (allocate_initial_values): New function.
7577         * integrate.h (allocate_initial_values): Declare.
7578         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
7579         here...
7580         * reload1.c (reload): And initialization of reg_equiv_memory_loc
7581         from here...
7582         * toplev.c (rest_of_compilation): To here.
7583         Call allocate_initial_values.
7584         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
7586 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7588         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
7590 2001-09-20  DJ Delorie  <dj@redhat.com>
7592         * c-typeck.c (really_start_incremental_init): Discriminate
7593         between zero-length arrays and flexible arrays.
7594         (push_init_level): Detect zero-length arrays and handle them
7595         like fixed-sized arrays.
7596         * expr.c (store_constructor): Handle zero-length arrays and
7597         flexible arrays correctly.
7598         * doc/extend.texi: Update zero-length array notes.
7600 2001-09-20  Jim Wilson  <wilson@redhat.com>
7602         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
7603         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
7604         for issue port conflicts.
7605         (cycle_end_fill_slots): TYPE_L instructions take two slots.
7607 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
7609         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
7610         on ia64.
7612 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7614         * fold-const.c (hashtab.h): Include.
7615         (int_const_binop): Remove FORSIZE arg and compute from type; all
7616         callers changed.
7617         Call size_int_type_wide for all single-word constants.
7618         (size_htab_hash, size_htab_eq): New functions.
7619         (size_int_type_wide): Rework to use hash table.
7620         * ggc-common.c (hashtab.h): Include.
7621         (struct d_htab_root): New struct.
7622         (d_htab_roots): New variable.
7623         (ggc_add_deletable_htab, ggc_htab_delete): New functions
7624         (ggc_mark_roots): Handle deletable htabs.
7625         * ggc-page.c (ggc_marked_p): New function.
7626         * ggc-simple.c (ggc_marked_p): Likewise.
7627         * ggc.h: Reformatting throughout.
7628         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
7629         * tree.c (init_obstacks): Make type_hash_table a deletable root.
7630         (type_hash_add): Allocate struct type_hash from GC memory.
7631         (mark_hash_entry, mark_type_hash): Deleted.
7632         (type_hash_marked_p, type_hash_mark): New functions.
7633         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
7635 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
7637         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
7638         than SImode.
7640 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7642         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
7643         array-too-large test for signed sizetype.
7645 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
7647         * i386.md (indirect_jump): Allow Pmode operand.
7648         (tablejump): LIkewise; perform expansion to 64bit mode.
7649         * i386.c (symbolic_operand): Allow 64bit PIC references.
7650         (pic_symbolic_operand): Likewise.
7651         (ix86_find_base_term): Strip the 64bit PIC references.
7652         (legitimate_pic_address_disp_p): Handle 64bit PIC.
7653         (legitimize_pic_address): Likewise.
7654         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
7655         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
7657 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
7659         * stringpool.c (get_identifier_with_length): New function.
7660         * tree.h (get_identifier_with_length): New prototype.
7662 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
7663             David Edelsohn  <edelsohn@gnu.org>
7665         Revert:
7666         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
7667         already sign-extended.
7669         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
7670         * config/rs6000/rs6000.c (logical_operand): Always compare op as
7671         HOST_WIDE_INT.
7672         (rs6000_emit_set_long_const): Avoid unnecessary shift.
7673         (output_profile_hook): Declare label_name const.
7674         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
7675         to match constraints.
7677 2001-09-19  Stan Shebs  <shebs@apple.com>
7679         * alias.c: Fix typos in comments.
7680         * sched-rgn.c (init_ready_list): Ditto.
7681         * unwind-dw2.c (uw_frame_state_for): Ditto.
7682         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
7683         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
7684         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
7686 2001-09-19  Richard Henderson  <rth@redhat.com>
7688         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
7689         to the exit block.
7690         * Makefile.in (cfg.o): Depend on TM_P_H.
7692 2001-09-19  Richard Henderson  <rth@redhat.com>
7694         * config/alpha/alpha.c (local_symbol_p): Split out from ...
7695         (local_symbolic_operand): ... here.
7696         (small_symbolic_operand): Check mode.
7697         (global_symbolic_operand): New.
7698         (input_operand): Reject symbolics if explicit relocs.
7699         (call_operand): Tidy.
7700         (alpha_legitimize_address): Use movdi_er_high_g.
7701         (alpha_expand_mov): Likewise.
7702         * config/alpha/alpha-protos.h: Update.
7703         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7704         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
7705         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
7706         (UNSPECV_LDGP2): Remove.
7707         (all call patterns): Use 's' not 'i' for symbolic constraint.
7708         (call_osf call_value_osf): Use call_operand.
7709         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
7710         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
7711         (prologue_ldgp_1_er): Remove.
7712         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
7713         (builtin_setjmp_receiver_er patterns): Use them.
7714         (exception_receiver_er): Likewise.
7716 2001-09-19  Richard Henderson  <rth@redhat.com>
7718         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
7720         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
7721         and NON_LOCAL_GOTO notes.
7722         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
7723         copy over CALL_INSN_FUNCTION_USAGE.
7725 2001-09-18  Catherine Moore  <clm@redhat.com>
7727         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
7728         Define as 0.
7730 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
7732         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
7733         new-style tm_file specification.  Specify correct tm_p_file,
7734         md_file, and out_file for s390x.
7736         * config/s390/linux.h, linux64.h:  Don't include other target
7737         macro header files.  Now handled via tm_file.
7739         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
7740         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
7741         are defined before use.
7743 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
7745         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
7746         code generation only for Gnu assembler.
7748 2001-09-18  Catherine Moore  <clm@redhat.com>
7750         * config/stormy16 (LIB_SPEC): Remove -lnosys.
7752 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
7754         * config/mips/mips.c (mips_frame_set): New.
7755         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
7756         a parallel frame-related expression with a set for each register.
7758 2001-09-18  Philip Blundell  <philb@gnu.org>
7760         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
7761         header files.
7763 2001-09-17  Dale Johannesen  <dalej@apple.com>
7765         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
7766         * config/rs6000/aix.h (FIXED_R2): Define.
7767         * config/rs6000/darwin.h (FIXED_R2): Define.
7768         * config/rs6000/sysv4.h (FIXED_R2): Define.
7770 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
7772         * except.c (dw2_build_landing_pads): New local
7773         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
7774         barrier after clobbers.  Fixes c++/4012.
7776 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7778         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
7780 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
7782         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
7783         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
7785 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7787         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
7788         alloca/strcpy.
7790 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7792         * cpphash.h (_cpp_lex_direct): New.
7793         * cpplex.c (_cpp_lex_token): Update.
7794         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
7795         and increment that pointer.
7796         * cppmacro.c (alloc_expansion_token): New.
7797         (lex_expansion_token): Lex macro expansion directly into
7798         macro storage.
7800 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
7802         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
7804 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
7806         * basic-block.h (free_bb_for_insn): Declare.
7807         * bb-reorder.c (label_for_bb): Use block_label.
7808         (emit_jump_to_block_after): Remove.
7809         (insert_intra_1): Do not update block_for_insn.
7810         (insert_inter_bb_scope_notes): Likewise; update bb->end
7811         * cfg.c (free_bb_for_insn): New.
7812         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
7813         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
7814         (commit_one_edge_insertion): Likewise.
7815         (commit_one_edge_insertion): Do not update BB boundary.
7816         (commit_edge_insertions): Do not call compute_bb_for_insn.
7817         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
7818         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
7819         (merge_blocks_move_successor_nojumps): Likewise.
7820         (try_crossjump_to_edge): Do not update block_for_insn.
7821         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
7822         * df.c (df_pattern_emit_later): Do not update BB boundary.
7823         (df_jump_pattern_emit_after): Likewise.
7824         (df_insn_move_before): Use emit_insn_before.
7825         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
7826          properly.
7827         (add_insn_after, add_insn_before, emit_insns_after): Update BB
7828         boundaries and basic_block_for_insn.
7829         (reorder_insns_nobb): Rename from reorder_insns.
7830         (reorder_insns): New.
7831         (emit_block_insn_before, emit_block_insn_after): Kill.
7832         * flow.c (check_function_return_warnings): Do not call
7833         compute_bb_for_insn; Do not free basic_block_for_insn.
7834         (attempt_auto_inc): Do not update basic_block_for_insn.
7835         * function.c (emit_return_into_block): Likewise;
7836         do not update BB boundaries.
7837         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
7838         (insert_insn_end_bb): Use emit_insn_before; Likewise.
7839         (pre_insert_copy_insn): Likewise.
7840         (update_ld_motion_notes): Likewise.
7841         (insert_insn_start_bb): Likewise.
7842         (replace_store_insn): Likewise.
7843         * ifcvt.c (noce_process_if_block): Likewise.
7844         (if_convert): Do not call compute_bb_for_insn.
7845         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
7846         Use emit_insn_before and emit_insn_after.
7847         * recog.c (split_all_insns): Do not update BB boundaries;
7848         Do not call compute_bb_for_insn.
7849         (peephole2_optimize): Do not update BB boundaries.
7850         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
7851         emit_insn_before.
7852         (emit_swap_insn): Likewise.
7853         (convert_regs_1): Likewise.
7854         * reload1.c (reload): Call compute_bb_for_insn.
7855         * rtl.h (reorder_insns_nobb): Declare.
7856         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
7857         * toplev.c (rest_of_compilation): Call free_bb_for_insn
7858         at places CFG is invalidated; do not call compute_bb_for_insn.
7860         * cfg.c (expunge_block): Invalidate BB structure.
7862         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
7863         array.
7865         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
7867 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7869         * cpphash.h (_cpp_lex_token): Update prototype.
7870         * cpplex.c (_cpp_lex_token): New prototype.
7871         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
7872         lex_macro_node, read_flag, do_pragma_poison): Update.
7873         * cppmacro.c (cpp_get_token, parse_params,
7874         lex_expansion_token): Update.
7876 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7878         * cppmain.c (scan_translation_unit): Don't worry about
7879         putting a space after hashes.
7880         * cpplib.c (directive_diagnostics): New.
7881         (_cpp_handle_directive): Update to use directive_diagnostics.
7882         (run_directive): Don't toggle prevent_expansion.
7883         (do_line): Backup in case of the line extension.
7884         * cpplib.h (cpp_lexer_pos): Remove.
7885         * cppmacro.c (_cpp_create_definition): Precede a leading #
7886         with whitespace.
7888 2001-09-15  Richard Henderson  <rth@redhat.com>
7890         * c-typeck.c (comptypes): Handle zero-length arrays properly.
7892 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7894         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
7896 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7898         PR preprocessor/3571
7899         * tradcpp.c (handle_directive): Skip non-vertical space.
7901 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7903         * cppmain.c (setup_callbacks): Set line callback only
7904         if outputting preprocessed source.
7906 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7908         * collect2.c (main): Const-ification.
7909         * gcc.c (translate_options, process_command): Use xstrdup in
7910         lieu of xmalloc/strcpy.
7911         (main): Use concat in lieu of xmalloc/strcpy/strcat.
7913 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7915         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
7916         example.
7918 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7920         * scan-decls.c (scan_decls): Fix typo.
7922 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7924         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
7925         Split mlstring_pos into mls_line and mls_col.
7926         * cppinit.c (cpp_create_reader): Initialize line to 1.
7927         (cpp_destroy): Free tokenruns.
7928         (push_include): Don't update lexer_pos.
7929         * cpplex.c (unterminated, parse_string): Update.
7930         (lex_token): Don't update lexer_pos, update.
7931         * cpplib.c (if_stack): Save line instead of line + col.
7932         (start_directive, _cpp_do__Pragma, do_else, do_elif,
7933         push_conditional, _cpp_pop_buffer): Update.
7934         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
7935         (_cpp_create_definition): Update.
7937 2001-09-15  Eric Christopher  <echristo@redhat.com>
7939         * config/mips/abi64.h: Add support for MEABI.
7941 2001-09-15  Eric Christopher  <echristo@redhat.com>
7943         * config/mips/mips.md: Add unspec #2.
7944         (reload_indi): Use.
7945         (reload_outdi): Ditto.
7946         (reload_outsi): Ditto.
7947         (HILO_delay): New.
7949 2001-09-15  Eric Christopher  <echristo@redhat.com>
7950             Jason Eckhardt  <jle@redhat.com>
7952         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
7953         * config/mips/isa32-linux.h: New file.
7954         * config/mips/isa3264.h: Ditto.
7955         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
7956         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
7957         (output_block_mode): Support MEABI.
7958         (function_arg): Ditto. Fix floating point arg passing.
7959         (mips_va_start): Ditto.
7960         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
7961         processors.
7962         (mips_asm_file_start): Add new section to pass abi to gdb.
7963         (function_arg_pass_by_reference): Support MEABI.
7964         (mips_parse_cpu): Support mips32 and mips64 processors.
7965         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
7966         TARGET_MIPS5KC.  Support isa32 and isa64.
7967         (processor_type): Add r4kc, r5kc, r20kc.
7968         (GENERATE_MULT3_SI): New.
7969         (GENERATE_MULT3_DI): Ditto.
7970         (GENERATE_MULT3): Remove.
7971         (ISA_HAS_64BIT_REGS): Add isa == 64.
7972         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
7973         (ISA_HAS_MADD_MSUB): New.
7974         (ISA_HAS_CLZ_CLO): Ditto.
7975         (ISA_HAS_DCLZ_DCLO): Ditto.
7976         (ABI_GAS_ASM_SPEC): New.
7977         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
7978         (ASM_SPEC): Ditto.
7979         (LINK_SPEC): Ditto.
7980         (SUBTARGET_CC1_SPEC): Ditto.
7981         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
7982         (PAD_VARARGS_DOWN): Support MEABI.
7983         (HARD_REGNO_NREGS): Move to mips.c.
7984         (ASM_OUTPUT_IDENT): Add #undef.
7985         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
7986         (mulsi3): Use GENERATE_MULT3_SI.
7987         (mulsi3_mult3): Ditto.  Support mips32, mips64.
7988         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
7989         (mul_sub_si): New pattern.
7990         (unnamed splitters): New.
7991         (muldi3): Use GENERATE_MULT3_DI.
7992         (muldi3_internal2): Ditto.
7993         (movdicc): Support mips32.
7994         * config/mips/t-isa3264: New file.
7996 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
7998         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
7999         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
8000         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
8002         * reorg.c (fill_slots_from_thread): After call to
8003         steal_delay_list_from_target, update own_thread as new_thread may
8004         have branched.
8006 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
8008         * cpperror.c (print_location): Take line and column, for
8009         default positioning use the previously lexed token.
8010         (_cpp_begin_message): Take line and column.
8011         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
8012         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
8013         * cpphash.h (_cpp_begin_message): Update prototype.
8014         * cppinit.c (push_include): Don't set output line.
8015         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
8016         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
8017         (do_pragma): Kludge for front ends.  Don't expand macros at all.
8018         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
8019         (struct cpp_token): Remove output_line.
8020         (struct cpp_callbacks): New member line_change.
8021         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
8022         cpp_get_token): Preserve BOL flag.
8023         (cpp_get_line): Remove.
8024         (_cpp_backup_tokens): Remove useless abort().
8025         * cppmain.c (cb_line_change): New.
8026         (scan_translation_unit): Don't worry about starting new lines here.
8027         * scan-decls.c (scan_decls): Update.
8028         * c-lex.c (c_lex, init_c_lex): Update.
8029         (cb_line_change, src_lineno): New.
8031 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
8033         * tree.c (append_random_chars): Generate the random
8034         characters in a reproducable fashion.
8036 2001-09-14  Richard Henderson  <rth@redhat.com>
8038         * config/i386/i386.c (internal_label_prefix): New.
8039         (internal_label_prefix_len): New.
8040         (override_options): Set them.
8041         (local_symbolic_operand): New.
8042         (legitimate_pic_address_disp_p): Use it.
8043         (legitimize_pic_address): Likewise.
8045 2001-09-14  Marc Espie <espie@openbsd.org>
8047         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
8048         correctly.
8050 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8052         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
8053         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
8055 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
8057         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
8058         invocation of SUBREG_REGNO_OFFSET.
8060         * haifa-sched.c: Fix typo in FSF copyright statement.
8061         * sched-deps.c: Fix typo in FSF copyright statement.
8062         * sched-ebb.c: Fix typo in FSF copyright statement.
8063         * sched-rgn.c: Fix typo in FSF copyright statement.
8064         * sched-vis.c: Fix typo in FSF copyright statement.
8066         * config.gcc: Move inclusion of arm elf specific header files
8067         from the files themselves into the tm_file variable.  Make
8068         sure that elfos.h is included before target specific elf
8069         headers.
8070         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
8071         already defined.
8072         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
8073         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
8074         ASM_OUTPUT_CASE_LABEL): Protect definition.
8075         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
8076         not already defined.
8077         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
8078         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
8079         Remove duplicate definition.
8080         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
8081         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
8082         (RDATA_SECTION_FUNCTION): Remove redundant definition.
8083         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
8084         Remove inclusion of arm/elf.h.
8085         * config/arm/unknown-elf.h: as for conix-elf.h.
8086         (STARTFILE_SPEC): Include crti.o and crtn.o.
8087         * config/arm/linux-elf.h: as for conix-elf.h.
8088         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
8089         * config/arm/strongarm-elf.h: Remove inclusion of
8090         unknown-elf.h.
8091         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
8092         * config/arm/unknown-elf-oabi.h: Remove inclusion of
8093         unknown-elf.h and elf.h.
8094         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
8095         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
8096         ASM_WEAKEN_LABEL): Remove redundant definition.
8097         * config/arm/elf.h: Test for inclusion of elfos.h
8098         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
8099         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
8100         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
8101         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
8102         redundant definition.
8103         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
8104         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
8105         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
8106         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
8107         Add rules to build crti.o and crtn.o
8108         * crti.asm: New file.
8109         * crtn.asm: New file.
8111 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8113         * c-parse.in (_yylex): Use _cpp_backup_tokens.
8114         * cpphash.h (struct tokenrun): Add prev.
8115         (struct lexer_state): Remove bol.
8116         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
8117         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
8118         : Remove.
8119         * cppinit.c (cpp_create_reader): Don't set bol.
8120         (cpp_destroy): Don't free lookaheads.
8121         * cpplex.c (lex_directive): Remove.
8122         (next_tokenrun): Update.
8123         (_cpp_lex_token): Clean up logic.
8124         (lex_token): Update to return a pointer to lexed token, since it
8125         can move to the start of the buffer.  Simpify newline handling.
8126         * cpplib.c (SEEN_EOL): Update.
8127         (skip_rest_of_line): Remove lookahead stuff.
8128         (end_directive): Line numbers are already incremented.  Revert
8129         to start of lexed token buffer if we can.
8130         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
8131         parse_answer): Use _cpp_backup_tokens.
8132         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
8133         instead.  Don't check for EOL.
8134         (do_include_common, do_line, do_pragma_system_header): Use
8135         skip_rest_of_line.
8136         * cpplib.h (BOL, _cpp_backup_tokens): New.
8137         * cppmacro.c (save_lookahead_token, take_lookahead_token,
8138         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
8139         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
8140         (builtin_macro): Don't use cpp_get_line.
8141         (cpp_get_line): Short term kludge.
8142         (parse_arg): Handle directives in arguments here.  Back up when
8143         appropriate.  Store EOF at end of argument list.
8144         (funlike_invocation_p): Use _cpp_backup_tokens.
8145         (push_arg_context): Account for EOF at end of list.
8146         (cpp_get_token): Remove lookahead stuff.  Update.
8148 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8150         * c-parse.in (yyerror): Const-ification and/or static-ization.
8151         * c-typeck.c (push_member_name): Likewise.
8152         * collect2.c (main): Likewise.
8153         * dbxout.c (dbxout_parms): Likewise.
8154         * diagnostic.c (format_with_decl): Likewise.
8155         * dwarf2out.c (output_ranges): Likewise.
8156         * dwarfout.c (fundamental_type_code): Likewise.
8157         * except.c (dw2_output_call_site_table): Likewise.
8158         * gcc.c (do_spec_1): Likewise.
8159         * genopinit.c (optabs): Likewise.
8160         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
8161         gen_declaration_1, handle_impent): Likewise.
8162         * protoize.c (default_include, in_system_include_dir, abspath):
8163         Likewise.
8164         * sched-vis.c (visualize_stall_cycles): Likewise.
8165         * sdbout.c (plain_type_1, sdbout_end_function,
8166         sdbout_end_epilogue): Likewise.
8167         * varasm.c (decode_reg_name): Likewise.
8169         * 1750a.c (mod_regno_adjust): Likewise.
8170         * alpha.c (alpha_write_one_linkage,
8171         unicosmk_output_default_externs): Likewise.
8172         * arm.c (arm_condition_codes): Likewise.
8173         * arm.h (arm_condition_codes): Likewise.
8174         * avr.c (output_movsisf, encode_section_info): Likewise.
8175         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
8176         Likewise.
8177         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
8178         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
8179         * m88k.c (output_function_profiler): Likewise.
8180         * mips.c (mips_output_conditional_branch): Likewise.
8181         * ns32k.c (ns32k_out_reg_names): Likewise.
8182         * ns32k.h (ns32k_out_reg_names): Likewise.
8183         * pj.c (pj_output_rval): Likewise.
8184         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
8185         * sparc.c (sparc_flat_function_prologue,
8186         sparc_flat_function_epilogue): Likewise.
8188 2001-09-13  Markus Werle <numerical.simulation@web.de>
8189             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8191         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
8192         Aachen University of Technology".
8194 2001-09-13  Andreas Schwab  <schwab@suse.de>
8196         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
8197         C99.
8199 2001-09-13  Richard Henderson  <rth@redhat.com>
8201         * config/alpha/alpha.c (small_symbolic_operand): New.
8202         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
8203         (some_operand, input_operand): Don't handle HIGH.
8204         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
8205         (alpha_expand_mov): Likewise.
8206         (print_operand) [H]: Just print HIGH symbol.
8207         (print_operand_address): Handle small data.
8208         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
8209         (TARGET_SWITCHES): Add -msmall-data/large-data.
8210         (PIC_OFFSET_TABLE_REGNUM): New.
8211         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
8212         (PREDICATE_COES): Update.
8213         * config/alpha/alpha.md (adddi_er_high): New.
8214         (adddi_er_low): Handle small data.
8215         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
8216         prefer .sdata to .rodata.
8217         (SELECT_RTX_SECTION): Likewise.
8219 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
8221         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
8222         defining __size_t and leaving size_t undefined.
8224 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
8226         * basic-block.h (expunge_block): Declare.
8227         * cfg.c (expunge_block): Remove static declaration.
8229 2001-09-12  Richard Henderson  <rth@redhat.com>
8231         * integrate.c (copy_insn_list): Copy label name from
8232         NOTE_INSN_DELETED_LABEL.
8234 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8236         * c-common.c (c_tree_code_name): Const-ification.
8237         * c-decl.c (c_decode_option): Likewise.
8238         * c-typeck.c (warn_for_assignment): Likewise.
8239         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
8240         Likewise.
8241         * cppinit.c (output_deps): Likewise.
8242         * dependence.c (dependence_string, direction_string): Likewise.
8243         * dwarf2out.c (output_ranges): Likewise.
8244         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
8245         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
8246         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
8247         standard_startfile_prefix, standard_startfile_prefix_1,
8248         standard_startfile_prefix_2, tooldir_base_prefix,
8249         standard_bindir_prefix, find_a_file): Likewise.
8250         * genattrtab.c (make_length_attrs): Likewise.
8251         * gencheck.c (tree_codes): Likewise.
8252         * genemit.c (gen_split): Likewise.
8253         * genrecog.c (special_mode_pred_table): Likewise.
8254         * graph.c (graph_ext): Likewise.
8255         * protoize (default_include): Likewise.
8256         * reload.c (reload_when_needed_name): Likewise.
8257         * sched-vis.c (visualize_stall_cycles): Likewise.
8258         * tlink.c (recompile_files): Likewise.
8259         * toplev.c (decode_g_option): Likewise.
8260         * tradcpp.c (output_deps): Likewise.
8261         * varasm.c (decode_reg_name): Likewise.
8263         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
8264         Const-ification.
8265         * arm.md: Likewise.
8266         * avr.c (avr_regnames, encode_section_info): Likewise.
8267         * c4x.c (float_reg_names): Likewise.
8268         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
8269         * elfos.h (const_section): Likewise.
8270         * i386.c (ix86_comp_type_attributes): Likewise.
8271         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
8272         * ia64/aix.h (UNIQUE_SECTION): Likewise.
8273         * ia64.c (type_names): Likewise.
8274         * m68hc11.c (reg_class_names): Likewise.
8275         * m88k.c (m_options): Likewise.
8276         * mips.c (mips_output_conditional_branch, mips_unique_section):
8277         Likewise.
8278         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8279         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
8280         ultra_code_names): Likewise.
8281         * sparc.h (OVERRIDE_OPTIONS): Likewise.
8283 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
8285         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
8286         Use --fatal-warnings option for gas.
8287         * configure: Rebuilt.
8289 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8291         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
8293 2001-09-11  Jim Wilson  <wilson@redhat.com>
8295         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
8297 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8299         * builtins.c (c_strlen): Treat an offset too large for a
8300         HOST_WIDE_INT as out of range.
8302 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
8304         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
8305         (EDGE_CRITICAL_P): New predicate.
8306         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
8307         handling.
8308         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
8309         (dump_edge_info): Remove "crit".
8310         * cfganal.c (mark_critical_edges): Kill.
8311         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
8312         * cfgcleanup.c (cleanup_cfg): Likewise.
8313         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
8314         (find_spanning_tree): Likewise.
8315         * reg-stack.c (convert_regs_1): Likewise.
8316         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
8318         * basic-block.h (create_basic_block_structure): New.
8319         (create_basic_block): Update prototype.
8320         (force_nonfallthru): New.
8321         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
8322         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
8323         handle updating of block_for_insn, creating of empty BBs and BBs at
8324         the end of INSN chain.
8325         (create_basic_block): New function.
8326         (split_block): Use create_basic_block.
8327         (force_nonfallthru_and_redirect): Break out from ...; cleanup
8328         (redirect_edge_and_branch_force): ... here.
8329         (force_nonfallthru): New.
8330         (split_edge): Rewrite to use force_nonfallthru and create_block.
8331         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
8332         (find_basic_blocks): Free basic_block_for_insn.
8333         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
8335         * cfg.c: Fix formating.
8336         * cfgcleanup.c: Fix formating.
8337         (merge_blocks, tail_recursion_label_p): Return bool.
8338         (merge_blocks_move_predecessor_nojumps,
8339          merge_blocks_move_successor_nojumps): Return void.
8341 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
8343         * configure.in: Check whether assembler supports section merging.
8344         * config.in: Rebuilt.
8345         * configure: Rebuilt.
8346         * varasm.c (variable_section, output_constant_pool): Pass alignment
8347         to SELECT_SECTION and SELECT_RTX_SECTION.
8348         (mergeable_string_section): New.
8349         (mergeable_constant_section): New.
8350         (default_elf_asm_named_section): Output SECTION_MERGE and
8351         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
8352         * output.h (mergeable_string_section): New.
8353         (mergeable_constant_section): New.
8354         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
8355         * toplev.c (flag_merge_constants): New.
8356         (f_options): Add -fmerge-constants and -fmerge-all-constants
8357         options.
8358         (toplev_main): Default to -fno-merge-constants if not optimizing.
8359         * flags.h (flag_merge_constants): Add extern.
8360         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
8361         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
8362         argument.
8363         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
8364         Define if assembler has working .subsection -1 support.
8365         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
8366         Put constant into special SHF_MERGE sections if the linker should
8367         attempt to merge duplicates.
8368         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
8369         macro argument.
8370         Put constant into special SHF_MERGE sections if the linker should
8371         attempt to merge duplicates.
8372         * config/alpha/elf.h: Likewise.
8373         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
8374         has working .subsection -1 support.
8375         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
8376         SELECT_SECTION.
8377         * config/svr3.h: Likewise.
8378         * config/darwin.h: Likewise.
8379         * config/arm/aof.h: Likewise.
8380         * config/arm/linux-elf.h: Likewise.
8381         * config/avr/avr.h: Likewise.
8382         * config/c4x/c4x.h: Likewise.
8383         * config/d30v/d30v.h: Likewise.
8384         * config/i386/dgux.h: Likewise.
8385         * config/i386/osfrose.h: Likewise.
8386         * config/i386/sco5.h: Likewise.
8387         * config/i386/svr3gas.h: Likewise.
8388         * config/ia64/aix.h: Likewise.
8389         * config/m32r/m32r.h: Likewise.
8390         * config/m68k/m68k.h: Likewise.
8391         * config/m88k/dgux.h: Likewise.
8392         * config/m88k/m88k.h: Likewise.
8393         * config/mcore/mcore-pe.h: Likewise.
8394         * config/mips/mips.h: Likewise.
8395         * config/pa/pa.h: Likewise.
8396         * config/pa/pa-linux.h: Likewise.
8397         * config/romp/romp.h: Likewise.
8398         * config/rs6000/sysv4.h: Likewise.
8399         * config/rs6000/xcoff.h: Likewise.
8400         * config/s390/linux.h: Likewise.
8401         * config/sparc/sparc.h: Likewise.
8402         * config/sparc/sysv4.h: Likewise.
8403         * config/stormy16/stormy16.h: Likewise.
8404         * config/v850/v850.h: Likewise.
8405         * config/vax/vms.h: Likewise.
8406         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
8407         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
8408         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
8409         default_elf_asm_named_section for SHF_MERGE sections.
8411 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
8413         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
8414         is OK.
8416 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
8418         * c-common.c (split_specs_attrs): Allow for empty attributes with
8419         empty TREE_PURPOSE.  Fixes PR c/4294.
8421 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
8423         * basic-block.h (cached_make_edge, make_single_succ): New.
8424         (make_edge): Remove first parameter.
8425         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
8426         * cfg.c (cached_make_edge): Rename from make_edge; return newly
8427         created edge; use obstack allocation.
8428         (make_edge, make_single_succ_edge): New.
8429         (first_removed_edge): New static variable.
8430         (init_flow): Initialize first_removed_edge and n_edges.
8431         (clear_edges): Use remove_edge.
8432         (flow_delete_block): Likewise.
8433         (remove_edge): Add removed edges to the removed edges list.
8434         (split_block, redirect_edge_and_branch_force, split_edge):
8435         Use make_edge.
8436         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
8437         (add_noreturn_fake_exit_edges): Likewise.
8438         (connect_infinite_loops_to_exit): Liekwise.
8439         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
8440         Use cached_make_edge.
8441         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
8442         * profile.c (branch_prob): Update make_edge call.
8443         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8445 2001-09-11  Richard Henderson  <rth@redhat.com>
8447         * config/alpha/alpha.c: Tidy formatting.
8448         (local_symbolic_operand): Verify mode.
8449         (alpha_sa_mask): Ignore unicos for eh_return.
8450         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
8451         * config/alpha/alpha.md (umk divsi patterns): Remove.
8452         (extendsfdf2): Remove unicos check.
8453         (tablejump): Merge vms and unicos code; always use direct set
8454         plus label_ref use.
8456 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8458         * config.gcc (alpha*-*-unicosmk*): New target.
8460         * config/alpha/alpha-protos.h (symbolic_operand,
8461         unicosmk_add_call_info_word, unicosmk_add_extern,
8462         unicosmk_defer_case_vector, unicosmk_unique_section,
8463         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
8464         unicosmk_asm_file_start, unicosmk_asm_file_end,
8465         unicosmk_output_common): Declare.
8467         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
8468         direct_return, function_arg, alpha_va_start, alpha_va_arg,
8469         alpha_does_function_need_gp, alpha_end_function): Support Cray
8470         Unicos/Mk.
8471         (alpha_init_machine_status, alpha_mark_machine_status,
8472         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
8473         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
8474         unicosmk_asm_named_section, unicosmk_insert_attributes,
8475         unicosmk_section_type_flags, symbolic_operand,
8476         unicosmk_output_module_name, unicosmk_output_default_externs,
8477         unicosmk_output_dex, unicosmk_output_externs,
8478         unicosmk_output_addr_vec, unicosmk_ssib_name,
8479         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
8480         unicosmk_asm_file_end, unicosmk_output_common,
8481         unicosmk_section_type_flags, unicosmk_unique_section,
8482         unicosmk_add_call_info_word, unicosmk_text_section,
8483         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
8484         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
8485         unicosmk_dex_count, unicosmk_special_name): New.
8486         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
8487         TARGET_ABI_UNICOSMK.
8488         (get_aligned_mem, alpha_expand_unaligned_load,
8489         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
8490         alpha_expand_unaligned_store_words): Support big-endian mode.
8491         (print_operand): Likewise. New format specifier 't'. Use
8492         TARGET_AS_SLASH_BEFORE_SUFFIX.
8493         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
8494         (alpha_pv_save_size): Update with above change.
8495         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
8496         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
8497         Unicos/Mk.
8499         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
8500         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
8501         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
8502         (EXTRA_CONSTRAINT): New constraint 'U'.
8503         (PREDICATE_CODES): Add symbolic_operand.
8505         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
8506         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
8507         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
8508         (integer division and modulus patterns): Split in default and
8509         Unicos/Mk versions.
8510         (*divmodsi_internal, *divmoddi_internal): Disable for
8511         TARGET_ABI_UNICOSMK.
8512         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
8513         little-endian and big-endian versions.
8514         (ext, ins, msk): Likewise.
8515         (extv, extzv, insv): Support big-endian mode.
8516         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
8517         (call_umk, call_value_umk, *call_umk, tablejump_umk,
8518         *tablejump_umk_internal, *call_value_umk): New.
8519         (*movdi_nofix): Add pattern for loading an address into a register on
8520         TARGET_ABI_UNICOSMK.
8521         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
8522         (umk_mismatch_args, arg_home_umk): New.
8523         (various insns): Don't use mov, fmov, nop, fnop and unop.
8524         (realign): Support TARGET_ABI_UNICOSMK.
8526         * config/alpha/unicosmk.h: New file.
8527         * config/alpha/t-unicosmk: New file.
8529         * fixinc/inclhack.def (unicosmk_restrict): New.
8530         * fixinc/fixincl.x: Regenerate.
8532         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
8533         (wchar_t): Check for and define __WCHAR_T__.
8535 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
8537         * combine.c (simplify_shift_const): Treat shifts by the mode
8538         size as undefined.
8540 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8542         * cpphash.h (struct tokenrun): New.
8543         (struct cpp_context): New member bol.
8544         (struct cpp_reader): New members.
8545         (_cpp_init_tokenrun): New.
8546         * cppinit.c (cpp_create_reader): Set up the token runs.
8547         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
8548         (lex_token): New internalised version of _cpp_lex_token.  Don't
8549         handle directives or the multiple include optimization here any
8550         more.  Simply lex a token.
8551         * cpplib.c (run_directive): Clear bol.
8552         (_cpp_pop_buffer): Set bol.
8553         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
8554         arguments.
8556 2001-09-11  Michael Meissner  <meissner@redhat.com>
8558         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
8559         give an error if the user uses -mfp32.
8560         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
8561         default options.
8562         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
8563         floating point register size.
8564         (EXTRA_SPECS): Add CPP_FPR_SPEC.
8566         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
8567         HOST_WIDE_INT_PRINT_DEC to properly print the result of
8568         int_size_in_bytes.
8569         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
8570         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
8572 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
8574         * dbxout.c (dbxout_parms): Fix typo in comment.
8575         * unroll.c (loop_find_equiv_value): Ditto.
8576         * toplev.c (rest_of_compilation): Ditto.
8577         * loop.c (scan_loop): Ditto.
8578         * dwarf2out.c (struct dw_fde_struct): Ditto.
8580 2001-09-10  Zack Weinberg  <zackw@panix.com>
8582         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
8583         copying identifier when we're just going to throw it away.
8584         (parse_identifier_slow): New routine to handle abnormal cases.
8585         (_cpp_lex_token): Update call site.
8587         * hashtable.c (ht_lookup): Don't assume that the string we've
8588         been given is NUL-terminated.
8589         * system.h: #define __builtin_expect(a, b) to (a) if not
8590         GCC >=3.0.
8592 2001-09-10  Michael Meissner  <meissner@redhat.com>
8594         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
8595         binutils, gdb.
8597 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
8599         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
8601 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8603         * builtins.c (c_getstr): Correct thinko in last change and further
8604         cleanup.
8606 2001-09-10  Tim Freeman <tim@fungibole.com>
8608         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
8609         into varray's and register them as roots with the garbage
8610         collector so they are not collected too soon.
8612 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
8614         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
8615         New.
8616         * basic-block.h (flow_obstack, label_value_list,
8617         tail_recursion_label_list): Declare
8618         (tidy_fallthru_edges): Declare.
8619         (expunge_block, last_loop_beg_note): Delete.
8620         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
8621         * cfg.c: New file
8622         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
8623         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
8624         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
8625         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
8626         expunge_block, flow_delete_block, compute_bb_for_insn,
8627         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
8628         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
8629         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
8630         try_redirect_by_replacing_jump, last_loop_beg_note,
8631         redirect_edge_and_branch, redirect_edge_and_branch_force,
8632         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
8633         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
8634         commit_edge_insertions, dump_flow_info, debug_flow_info,
8635         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
8636         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
8637         Move here from flow.c
8638         * cfganal.c: New file.
8639         (forwarder_block_p, can_fallthru, mark_critical_edges,
8640          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
8641          find_unreachable_blocks, create_edge_list, free_edge_list,
8642          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
8643          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
8644          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
8645          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
8646          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
8647          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
8648         Move here from flow.c
8649         * cfgbuild.c: New file
8650         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
8651          make_edges, find_basic_blocks_1, find_basic_blocks,
8652          find_sub_basic_blocks): Move here from flow.c
8653         * cfgcleanup.c: New file.
8654         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
8655          merge_blocks_move_predecessor_nojumps,
8656          merge_blocks_move_successor_nojumps, merge_blocks,
8657          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
8658          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
8659         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
8660         if succeeded.
8661         * cfgloop.c: New file
8662         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
8663          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
8664          flow_loop_exit_edges_find, flow_loop_nodes_find,
8665          flow_loop_pre_header_scan, flow_loop_pre_header_find,
8666          flow_loop_tree_node_add, flow_loops_tree_build,
8667          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
8668          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
8669         Move here from flow.c
8670         * flow.c: Remove everything moved elsewhere
8671         * output.h (cleanup_cfg): Return bool.
8673         * bb-reorder.c (reorder_block_def): Remove 'index'.
8674         (insert_intra_1): Add argument BB, set block for new note.
8675         (make_reorder_chain): Do not depdent on BB indexes.
8676         (make_reorder_chain_1): Do not use BB indexes.
8677         (label_for_bb): Likewise; set BB for new insn.
8678         (emit_jump_to_block_after): Likewise.
8679         (fixup_reorder_chain): Sanity check that all basic blocks
8680         are chained; verify newly created insn chain; remove
8681         undocnitional jump simplifying; Do not use BB indexes;
8682         properly initialize count and frequency information;
8683         dump reordered sequence.
8684         (insert_intra_bb_scope_notes): update call of insert_intra_1.
8685         (insert_inter_bb_scope_notes): Set block for new insn.
8686         (reorder_basic_blocks): Dump flow info before reoredering.
8688 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8690         * alias.c (clear_reg_alias_info): Use K&R format definition.
8691         Avoid unsigned warning.
8692         * builtins.c: Use "unsigned int", not "unsigned".
8693         (target_char_cast): Use host_integerp and tree_low_cst.
8694         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
8695         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
8696         (c_getstr): Likewise.
8697         (std_expand_builtin_va_arg): Use int_size_in_bytes.
8698         (builtin_memcpy_read_str): Avoid unsigned warning.
8699         (expand_builtin_memcpy): Alignments are unsigned.
8700         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
8701         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
8702         * predict.c (expensive_function_p): LIMIT now unsigned.
8703         * resource.c (mark_target_live_regs): Make some vars unsigned.
8704         * sdbout.c: Use "unsigned int", not "unsigned".
8705         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
8706         (sdbout_source_line): Likewise.
8707         (sdbout_record_type_name): Remove "const" for NAME declaration.
8708         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
8710 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
8712         * calls.c (store_one_arg): Expand comment.
8714 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8716         * calls.c (store_one_arg): Make sure that the entire argument is
8717         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
8719 2001-09-09  Richard Henderson  <rth@redhat.com>
8721         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
8723 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
8725         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
8727 2001-09-09  Richard Henderson  <rth@redhat.com>
8729         * config/alpha/alpha.c (alpha_next_sequence_number): New.
8730         (alpha_this_literal_sequence_number): New.
8731         (alpha_this_gpdisp_sequence_number): New.
8732         (some_operand, input_operand): Add HIGH.
8733         (local_symbolic_operand): New.
8734         (alpha_encode_section_info): New.
8735         (alpha_legitimate_address_p): Allow LO_SUM.
8736         (alpha_legitimize_address): Generate HIGH+LO_SUM.
8737         (alpha_expand_mov): Likewise.
8738         (secondary_reload_class): Check memory_operand not general_operand
8739         for FP_REGS test.
8740         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
8741         (alpha_expand_unaligned_store): Likewise.
8742         (alpha_expand_unaligned_load_words): Likewise.
8743         (alpha_expand_unaligned_store_words): Likewise.
8744         (alpha_expand_block_clear): Likewise.
8745         (print_operand): Handle %#, %*, %H.
8746         (print_operand_address): Handle LO_SUM.
8747         (find_lo_sum): New.
8748         (alpha_does_function_need_gp): Use it.
8749         (alpha_expand_block_move): Fix signed compare warnings.
8750         (alpha_sa_mask, alpha_align_insns): Likewise.
8751         * config/alpha/alpha-protos.h: Update.
8752         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
8753         (MASK_EXPLICIT_RELOCS): New.
8754         (TARGET_SWITCHES): Add -mexplicit-relocs.
8755         (EXTRA_CONSTRAINT): Add 'T'.
8756         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
8757         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
8758         (ENCODE_SECTION_INFO): Out line.
8759         (REDO_SECTION_INFO_P): New.
8760         (STRIP_NAME_ENCODING): New.
8761         (ASM_OUTPUT_LABELREF): New.
8762         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
8763         (PREDICATE_CODES): Update.
8764         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
8765         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
8766         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
8767         builtin_setjmp_receiver_er, exception_receiver_1_er,
8768         call_value_osf_1_er): New patterns.
8769         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
8770         (movqi, movhi, movsi): Add explicit $31 base register to lda.
8771         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
8772         (FINAL_PRESCAN_INSN): New.
8774 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
8776         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
8778 2001-09-08  Andreas Jaeger  <aj@suse.de>
8780         * i386.h (TARGET_SWITCHES): Fix description.
8782 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
8784         * rs6000.c (num_insns_constant): Compute number of instructions
8785         more accurately.
8787         * doc/install.texi: Explain AIX exception handling work-around.
8788         Update URL for AIX fixes.
8790 2001-09-07  Jim Wilson  <wilson@redhat.com>
8792         * alias.c (clear_reg_alias_info): New.
8793         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
8794         * rtl.h (clear_reg_alias_info): Declare.
8796 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8798         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
8799         available.
8800         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
8801         (m16m,edivm,emulm): Change declaration to match definition.
8803 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
8805         * reload.c (push_reload): Check for subreg_lowpart_p instead of
8806         SUBREG_BYTE being 0 when determining if the inner part of a subreg
8807         can be reloaded.
8809 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8811         * c-common.c (signed_or_unsigned_type): Handle machine mode types
8812         which have no corresponding C type.
8813         * fold_const.c (target_isinf,target_isnan,target_negative): Update
8814         the representation of 64-bit doubles to work with 64-bit ints.
8816 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
8818         * config/mips/mips.c (override_options): Do not override ISA when ABI
8819         specified if MIPS_CPU_STRING_DEFAULT was specified.
8821 2001-09-07  Richard Henderson  <rth@redhat.com>
8823         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
8824         (express_from_1): Wrap lines.
8825         * rtlanal.c (commutative_operand_precedence): Rename from
8826         operand_preference; export.
8827         * rtl.h: Declare it.
8828         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
8829         (simplify_binary_operation): Invoke simplify_plus_minus on
8830         (CONST (PLUS ...)) as well.
8831         (struct simplify_plus_minus_op_data): New.
8832         (simplify_plus_minus_op_data_cmp): New.
8833         (simplify_plus_minus): Use them.  Avoid infinite recursion with
8834         simplify_binary_operation wrt CONST.
8836 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
8838         * h8300-protos.h (general_operand_dst_push): Remove.
8839         * h8300.c (general_operand_dst_push): Likewise.
8840         * h8300.h (OK_FOR_T): Likewise.
8841         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
8842         * h8300.md (pushqi_h8300): New.
8843         (pushqi_h8300hs): Likewise.
8844         (pushqi): Likewise.
8845         (pushhi_h8300): Likewise.
8846         (pushhi_h8300hs): Likewise.
8847         (pushhi): Likewise.
8849 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8851         * genattrtab.c (attr_printf): First arg is unsigned.
8852         Clean up formatting of callers.
8854 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
8856         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
8857         registers.
8859 2001-09-07  Andreas Jaeger  <aj@suse.de>
8861         * i386.h (TARGET_SWITCHES): Fix descriptions.
8863 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8865         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
8867 2001-09-06  Ira Ruben  <ira@apple.com>
8869         Remove OP_IDENTIFIER.
8870         * tree.def (OP_IDENTIFIER): Remove.
8871         * tree.c (tree_node_kind enum): Remove op_id_kind.
8872         (tree_node_kind_names): Remove "op_identifiers".
8873         (make_node): Remove OP_IDENTIFIER test.
8874         (build_op_identifier): Removed because it isn't being used.
8875         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
8876         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
8878 2001-09-06  Richard Henderson  <rth@redhat.com>
8880         * simplify-rtx.c (simplify_binary_operation): Revert last change.
8882 2001-09-06  Richard Henderson  <rth@redhat.com>
8884         * simplify-rtx.c (simplify_binary_operation): Simplify contents
8885         of CONST.
8887 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8889         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
8890         number used for CR register.
8892 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
8893                           Joern Rennecke (amylaar@cygnus.com)
8895         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
8896         * h8300.c (initial_offset): Handle offset between RP and FP.
8897         (h8300_return_addr_rtx): New function.
8898         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
8899         return register.
8900         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
8901         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8902         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
8903         (CAN_ELIMINATE, REGISTER_NAMES):
8904         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
8906 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
8908         Remove TYPE_NONCOPIED_PARTS.
8909         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
8910         (struct tree_type): Remove noncopied_parts.
8911         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
8912         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
8913         (fixed_type_p): Remove.
8914         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
8915         (expand_expr, MODIFY_EXPR): Likewise.
8916         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
8917         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
8919 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
8921         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
8922         compiler warnings.
8923         (mask64_operand): Likewise.
8924         (includes_rldic_lshift_p): Likewise.
8925         (includes_rldicr_lshift_p): Likewise.
8927 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
8929         * objc/objc-act.c (build_message_expr): If a class method cannot
8930         be found, do not issue a warning if a corresponding instance
8931         method exists in the root class.
8933 2001-09-05  Richard Henderson  <rth@redhat.com>
8935         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
8937 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
8939         * function.c (ggc_mark_struct_function): Mark f->outer.
8940         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
8941         * integrate.c (output_inline_function): ... not here.
8943 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
8945         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
8947         * i386.c (size_cost): New static variable.
8948         (override_function): Use size_cost when -Os is specified.
8950         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
8951         properly;  Use current_function_calls_eh_return.
8952         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
8953         use leave to avoid dependency chain.
8955         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
8956         get BB loop_depth instead of computing it from LOOP notes.
8958         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
8960 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8962         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8963         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8964         UNALIGNED_DOUBLE_INT_ASM_OP): Define
8966 2001-09-05  Jeffrey A Law  (law@cygnus.com)
8967             Jason Merrill (jason@redhat.com)
8969         * stor-layout.c (layout_type): Complain if an array's size can
8970         not be represented in a size_t.
8972         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
8974 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
8976         * gcc.c: (process_command) Add parentheses around assignment
8977         used as truth value.
8979 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
8981         * config/mips/mips.c (save_restore_insns): Don't mark any register
8982         save slots as unchanging if current_function_calls_eh_return.
8984 2001-09-05  Richard Henderson  <rth@redhat.com>
8986         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
8987         * config/alpha/alpha-protos.h: Declare it.
8988         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
8989         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
8990         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
8991         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
8992         (REG_OK_FOR_BASE_P): Select one of the above.
8994 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
8996         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
8997         (crti.o): Prefix name of object file with $(T).
8998         (crtn.o): Likewise.
9000 2001-09-05  David S. Miller  <davem@redhat.com>
9002         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
9003         * config/sparc/linux64.h: Likewise.
9005 2001-09-05  Andreas Jaeger  <aj@suse.de>
9007         * doc/invoke.texi (i386 Options): -mwide-multiply is not
9008         available anymore, remove the documentation.
9009         (i386 Options): Fix typo, cleanup index entries.
9011         * prefix.c (concat): Remove, we can use the version from liberty.
9013 2001-09-05  Richard Henderson  <rth@redhat.com>
9015         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
9016         New functions split out of md file expanders.
9017         * config/alpha/alpha-protos.h: Declare them.
9018         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
9020 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
9022         * cppmacro.c (funlike_invocation_p): No need to restore context.
9024 2001-09-04  Richard Henderson  <rth@redhat.com>
9026         * reload.c (push_reload): Export.
9027         * reload.h (push_reload): Declare it.
9029         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
9030         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
9031         * config/alpha/alpha.c (alpha_legitimize_address): New.
9032         (alpha_legitimize_reload_address): Likewise.
9033         * config/alpha/alpha-protos.h: Declare them.
9035 2001-09-04  Stan Shebs  <shebs@apple.com>
9037         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
9038         * config/darwin.c (machopic_stub_name): Account for internally
9039         generated lib calls such as memcpy.
9041 2001-09-04  Richard Henderson  <rth@redhat.com>
9043         * unwind.h (_UA_END_OF_STACK): New flag.
9044         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
9046 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
9048         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
9050 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
9052         * config/mips/mips.c (save_restore_insns): Change base_offset to
9053         fp_offset in second call to mips_emit_frame_related_store.
9055 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
9057         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
9058         sometimes be represented as a NOTE of type
9059         NOTE_INSN_DELETED_LABEL.
9060         (Insns): Document NOTE_INSN_DELETED_LABEL.
9062 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
9064         * c-common.h (tree_dump_index): Add more comments.
9065         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
9066         (dump_option_value_info): New struct.
9067         (dump_options): New array.
9068         (dump_switch_p): Parse switch options symbolically.
9069         * doc/invoke.texi (-fdump-ast): Rename to ...
9070         (-fdump-tree): ... here. Document that options are symbolic, and
9071         not all are applicable.
9073 2001-09-04  David S. Miller  <davem@redhat.com>
9075         * config/sparc/sparc.md (define_splits): Kill constraints.
9077         Cleanup redundant and unused insn attributes.
9078         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
9079         binary, and move.  Mark ialu as default.
9080         (commented out define_function_unit "alu"): Kill.
9081         (define_attr "use_clobbered"): Kill.
9082         (whole file): Kill address insn type references.  Replace
9083         all unary/binary/move references with ialu.
9084         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
9085         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
9086         TYPE_IALU.
9088         Simplify length insn attribute and make more judicious use
9089         of insn attribute defaulting.
9090         * config/sparc/sparc.md (all insns with length > one): Mark as
9091         insn type multi if real instructions, else use default if
9092         it is a forced splitter.
9093         (all insns with length == one): Use default insn length.
9094         (all insns of type ialu): Use default insn type.
9096         Fix erroneous insn attribute settings.
9097         (addx): Set insn type to misc.
9098         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
9099         const_umulsidi3_sp64): Set insn type to imul.
9101         Track SFmode vs DFmode insns according to UltraSPARC
9102         scheduling rules.
9103         * config/sparc/sparc.md ("fptype"): New attribute, default
9104         to "single".
9105         (all DFmode single insns): Mark as fptype "double".
9107 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
9109         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
9111 2001-09-03  Richard Henderson  <rth@redhat.com>
9113         * function.h (struct function): Add arg_pointer_save_area_init.
9114         * function.c (expand_function_end): Init arg_pointer_save_area.
9115         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
9116         when called from a nested function.
9118 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
9120         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
9121         is enabled.
9123 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
9125         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
9127 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
9129         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
9130         (emit_push_insn): Use specified padding direction when
9131         STACK_PUSH_CODE is POST_INC.
9133         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
9135 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9137         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
9139 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
9141         * cppinit.c (cpp_start_read): Free the imacros list as we
9142         traverse it.  Don't free the chains before returning.
9143         (_cpp_push_next_buffer): Only try pushing buffers if we've
9144         completed -imacros handling.
9146 2001-08-31  Eric Christopher  <echristo@redhat.com>
9148         * gcc.c (handle_braces): Add explaination for abort.
9150 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
9152         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
9153         move adjustment of bitpos instead.
9155 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
9157         * function.c: Remove all_functions.  Make outer_function_chain
9158         static.
9159         (init_function_start): Don't add new function structure to
9160         all_functions.
9161         (find_function_data, push_function_context_to,
9162         pop_function_context_from, put_var_into_stack,
9163         trampoline_address): Update for changed structure element names.
9164         (push_function_context_to): Disentangle.
9165         (free_after_compilation): Also free F.
9166         (expand_dummy_function_end): Don't free cfun here.
9167         (put_var_into_stack): Comment why we can't use find_function_data here.
9168         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
9169         (mark_function_chain): Split into maybe_mark_struct_function and
9170         ggc_mark_struct_function.  Export the latter.
9171         (init_function_once): Mark from cfun and outer_function_chain;
9172         not all_functions.
9174         * function.h (struct function): Kill next_global.  Rename next
9175         to outer.  All users updated to match.
9176         (all_functions, outer_function_chain): Don't declare.
9178         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
9179         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
9180         don't touch f->inlinable, after calling rest_of_compilation.
9182         * tree.h: Forward-declare struct function.  Prototype
9183         ggc_mark_struct_function.
9185 2001-08-31  Kazu Hirata  <kazu@hxi.com>
9187         * config/h8300/h8300.md (*andorhi3): Fix typos.
9189 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9191         * calls.c (emit_library_call_value): Don't use a fixed
9192         argument after VA_CLOSE, i.e. out of scope in traditional C.
9194         * emit-rtl.c (gen_rtvec): Likewise.
9196 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9198         * Makefile.in (c-pragma.o): Depend on output.h.
9199         (reorg.o): Depend on except.h.
9201         * c-pragma.c: Include output.h.
9203         * reorg.c: Include except.h.
9205         * unwind-dw2.c: Call __builtin_alloca, not alloca.
9207 2001-08-31  Richard Henderson  <rth@redhat.com>
9209         * sched-deps.c (add_dependence): Don't elide dependency if the
9210         conditional used by insn is modified in elem.
9212 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
9214         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
9216 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
9218         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
9219         dump_switch_p.
9221 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
9223         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
9224         function.
9225         (stormy16_asm_out_constructor): New function.
9226         (TARGET_ASM_CONSTRUCTOR): Define.
9227         (TARGET_ASM_DESTRUCTOR): Define.
9229 2001-08-31  Andreas Jaeger  <aj@suse.de>
9231         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
9232         * loop.c (add_label_notes): Likewise.
9233         * reload.c (find_reloads): Likewise.
9234         * config/sh/sh.c (machine_dependent_reorg): Likewise.
9236 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
9238         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
9239         code here.  Take _Unwind_{W,Sw}ord*.
9240         (read_encoded_value_with_base): Use them.
9241         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
9242         words.
9243         (extract_cie_info): Simplify read_?leb128 handling.
9244         (execute_stack_op, execute_cfa_program): Likewise.
9245         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
9247 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
9249         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
9250         the frame pointer to pop the stack if convenient.
9252         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
9253         Don't use post-increment before combine.
9254         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
9255         a call-saved register.
9257 2001-08-31  Andreas Jaeger  <aj@suse.de>
9259         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
9260         code was correct.
9262 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
9264         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
9265         not DIV/MOD, of course.
9267 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
9269         * rtl.def: Undo my patch commited 2001-08-27.
9271         * genattrtab.c: Ditto.
9273         * rtl.h: Ditto.
9275         * sched-int.h: Ditto.
9277         * target-def.h: Ditto.
9279         * target.h: Ditto.
9281         * haifa-sched.c: Ditto.
9283         * sched-rgn.c: Ditto.
9285         * sched-vis.c: Ditto.
9287         * Makefile.in: Ditto.
9289         * doc/md.texi: Ditto.
9291         * doc/tm.texi: Ditto.
9293         * doc/contrib.texi: Ditto.
9295         * doc/gcc.texi: Ditto.
9297         * genattrtab.h: Remove it.
9299         * genautomata.c: Remove it.
9301         * genattr.c: Undo my patch and Richard Henderson's patch commited
9302         2001-08-27.
9304 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
9306         * config.gcc (h8300-*-elf*): New case.
9307         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
9308         (SUBTARGET_CPP_SPEC): Define.
9309         (EXTRA_SPECS): Define.
9310         (SUBTARGET_EXTRA_SPECS): Define.
9311         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
9312         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
9314 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
9316         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
9317         (LIB2FUNCS_EXTRA): Define.
9318         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
9319         config/h8300/fixunssfsi.c: New file.
9321 2001-08-30  Kazu Hirata  <kazu@hxi.com>
9323         * config/h8300/h8300.md (zero_extendqihi2): Changes to
9324         define_expand to accommodate target-specific attributes.
9325         (anonymous zero_extendqihi2 patterns): New.
9327 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
9329         * h8300.md (*andorhi3): New pattern.
9331 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
9333         * h8300.c (dosize): Fix test for "sub".
9335 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
9337         * c-typeck.c (pointer_diff): Try to eliminate common term before
9338         doing conversions.
9340 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
9342         * config/arm/arm.c (arm_compute_initial_elimination_offset):
9343         Account for the saves of the FP registers.
9345         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
9346         (TEXT_SECTION_ASM_OP): Define.
9347         (INIT_SECTION_ASM_OP): Define.
9348         (FINI_SECTION_ASM_OP): Define.
9349         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
9350         (RDATA_SECTION_FUNCITON): Provide prototype.
9352 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
9354         * reload1.c (move2add_note_store): Correct typo checking for
9355         argument pushes.
9357 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
9359         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
9360         note should not be considered outside the libcall block.
9362 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9364         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
9366 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9368         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
9370 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9372         * config/h8300/h8300-protos.h: Add a prototype for
9373         emit_logical_op.
9374         * config/h8300/h8300.c (emit_logical_op): New.
9375         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
9376         (andsi3): Likewise.
9377         (iorhi3): Likewise.
9378         (iorsi3): Likewise.
9379         (xorhi3): Likewise.
9380         (xorsi3): Likewise.
9382 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9384         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
9385         comparison with rtx INTVAL.
9386         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
9387         expression.
9388         * pa.h (FUNCTION_ARG_SIZE): Likewise.
9390 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9392         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
9393         comment typos.
9395 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9397         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
9398         (reg n) to (mem (pre_dec (reg n))
9399         (anonymous movsi pattern): Likewise.
9401 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9403         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
9405 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9407         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
9408         several special constants.
9410 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9412         * config/h8300/lib1funcs.asm: Fix comment typos.
9414 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9416         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
9417         Fix format specifier warnings.
9419         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
9420         inet_makeaddr, semctl): Prototype.
9422         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
9423         (save_restore_insns): Use base_offset, not gp_offset.
9425         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
9426         (ASM_OUTPUT_BYTE): Fix format specifier warning.
9428 2001-08-29  Richard Henderson  <rth@redhat.com>
9430         * bb-reorder.c (function_tail_eff_head): New.
9431         (record_effective_endpoints): Set it.
9432         (fixup_reorder_chain): Use it.
9434 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9436         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
9438 2001-08-28  Dale Johannesen  <dalej@apple.com>
9440         * config/darwin.c (machopic_function_base_name): Add const
9441         qualifier to a string.
9442         (darwin_encode_section_info): Ditto.
9444 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9446         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
9447         function definition.
9449 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
9451         * df.h (struct df): Add rts_order variable.
9453         * df.c (df_visit_next_rts): New function.
9454         (df_visit_next): Renamed to df_visit_next_rc
9455         (df_analyse_1): Allocate/compute/free rts_order as well.
9456         (df_rd_global_compute): Use df_visit_next_rc instead of
9457         df_visit_next.
9458         (df_ru_global_compute): Use df_visit_next_rts instead of
9459         df_visit_next.
9461         * flow.c (flow_reverse_top_sort_order_compute): New function.
9463         * basic-block.h: Add prototype.
9465 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
9467         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
9468         blocks, the BB_REACHABLE is now set, rather than aux being
9469         non-NULL. Update the test to reflect this.
9471 2001-08-28  Eric Christopher  <echristo@redhat.com>
9473         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
9474         config/mips/crti.asm: Ditto.
9476 2001-08-28  Eric Christopher <echristo@redhat.com>
9477             Richard Henderson <rth@redhat.com>
9479         * c-pragma.h (add_weak): Move prototype from here...
9480         * output.h (add_weak): ... to here.
9481         * varasm.c (add_weak): Fix typo.
9482         * config/mips/crti.asm: New file.
9483         * config/mips/crtn.asm: Ditto.
9484         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
9485         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
9486         (INVOKE__main): Ditto.
9487         (INIT_SECTION_ASM_OP): New.
9488         (FINI_SECTION_ASM_OP): Ditto.
9489         (STARTFILE_SPEC): Add crti.
9490         (ENDFILE_SPEC): Add crtn.
9491         * config/mips/elf64.h: Same.
9492         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
9493         Remove.
9494         * config/mips/vxworks.h: Ditto.
9495         * config/mips/t-elf: Support crti and crtn.
9497 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
9499         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
9500         INSN_LIST.
9502 2001-08-28  Richard Henderson  <rth@redhat.com>
9504         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
9505         (one_cmplbi2 splitter): Remove redundant test.
9507 2001-08-28  Dale Johannesen  <dalej@apple.com>
9509         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
9511 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
9513         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
9515 2001-08-28  Stan Shebs  <shebs@apple.com>
9517         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
9518         (UNALIGNED_SHORT_ASM_OP): Define.
9519         (UNALIGNED_INT_ASM_OP): Define.
9521 2001-08-28  Will Cohen  <wcohen@redhat.com>
9523         * config/rs6000/rs6000.md (store_multiple): Correct RTL
9524         generation for first set.
9526 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
9528         * flow.c (redirect_edge_succ_nodup): Return new edge.
9529         (try_simplify_condjump): Use new edge.
9530         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
9532         * cse.c (cse_basic_block): Skip note instructions.
9534 2001-08-27  Richard Henderson  <rth@redhat.com>
9536         * combine.c (combine_simplify_rtx): Don't reverse condition
9537         if there is no reverse for the condition.
9538         (simplify_comparison): Don't simplify subregs from INT to FP.
9540         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
9541         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
9542         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
9543         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
9544         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
9545         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
9547 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
9549         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
9550         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
9551         (pushqi1): New.
9552         (adddi_dilshr32, adddi_dishl32): Only data register can be
9553         source for mem destination.
9555         * expmed.c (store_bit_field): Ignore adjustment to bitpos
9556         and use bitnum to decide about register move.
9558 2001-08-27  Richard Henderson  <rth@redhat.com>
9560         * genattr.c (main): Emit state_t even when not doing scheduling.
9562 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
9563             Richard Henderson  <rth@redhat.com>
9565         * gcse.c (reg_first_set, reg_last_set): Replace with ...
9566         (reg_avail_info, current_bb): ... these.
9567         (oprs_unchanged_p, record_last_reg_set_info): Use them.
9568         (compute_hash_table): Likewise.
9570 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
9572         * flow.c (verify_flow_info): Use checksums to verify edges.
9574 2001-08-27  Richard Henderson  <rth@redhat.com>
9576         * genautomata.c (expand_automata): Always create a description.
9578 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
9580         * optabs.c (expand_binop): Correctly handle the carry in multiword
9581         add/subtract operations.
9583 2001-08-27  Fred Fish  <fnf@be.com>
9585         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
9586         __SIZE_TYPE__.
9588 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
9590         * reload.c (find_reloads_toplev): Back out this change:
9592         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
9594         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
9595         mem if the address is a mode_dependent_address_p.
9597 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
9599         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9600         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9601         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9602         RTL constructions.
9604         * genattr.c (main): New variable num_insn_reservations.  Increase
9605         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
9606         pipeline hazard recognizer interface.
9608         * genattrtab.h: New file.
9610         * genattrtab.c: Include genattrtab.h.
9611         (attr_printf, check_attr_test, make_internal_attr,
9612         make_numeric_value): Move protypes into genattrtab.h.  Define them
9613         as external.
9614         (num_dfa_decls): New global variable.
9615         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9616         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9617         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9618         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
9620         * genautomata.c: New file.
9622         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9624         * sched-int.h: (curr_state): Add the external definition for
9625         automaton pipeline interface.
9626         (haifa_insn_data): Add comments for members blockage and units.
9628         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9629         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9630         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9631         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9632         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9633         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9634         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9635         macros.
9636         (TARGET_SCHED): Use the new macros.
9638         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9639         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9640         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9641         dfa_bubble): New members in gcc_target.sched.
9643         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9644         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9645         (insn_queue): Redefine it as pointer to array.
9646         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9647         INSN_QUEUE_SIZE.
9648         (max_insn_queue_index_macro_value): New variable.
9649         (curr_state, dfa_state_size, ready_try): New varaibles for
9650         automaton interface.
9651         (ready_element, ready_remove, max_issue): New function prototypes
9652         for automaton interface.
9653         (choose_ready): New function prototype.
9654         (insn_unit, blockage_range): Add comments.
9655         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9656         FUNCTION_UNITS_SIZE == 0.
9657         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9658         actual_hazard, potential_hazard): Add comments.
9659         (insn_cost): Use cost -1 as undefined value.  Remove
9660         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
9661         pipeline interface.
9662         (ready_element, ready_remove): New functions for automaton
9663         interface.
9664         (schedule_insn): Add new code for automaton pipeline interface.
9665         (queue_to_ready): Add new code for automaton pipeline interface.
9666         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9667         (debug_ready_list): Print newline when the queue is empty.
9668         (max_issue): New function for automaton pipeline interface.
9669         (choose_ready): New function.
9670         (schedule_block): Add new code for automaton pipeline interface.
9671         Print ready list before scheduling each insn.
9672         (sched_init): Add new code for automaton pipeline interface.
9673         Initiate insn cost by -1.
9674         (sched_finish): Free the current automaton state and finalize
9675         automaton pipeline interface.
9677         * sched-rgn.c: Include target.h.
9678         (init_ready_list, new_ready, debug_dependencies): Add new code for
9679         automaton pipeline interface.
9681         * sched-vis.c: Include target.h.
9682         (get_visual_tbl_length): Add code for automaton interface.
9683         (target_units, print_block_visualization):  Add comments.
9685         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9686         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9687         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9688         (getruntime.o, genautomata.o): New entries.
9689         (genattrtab.o): Add new dependency file genattrtab.h.
9690         (genattrtab): Add new dependencies.  Link it with `libm.a'.
9691         (getruntime.o, hashtab.o): New entries for canadian cross.
9693         * doc/md.texi: Description of automaton based model.
9695         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9696         Add comments.
9697         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9698         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9699         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9700         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9701         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9702         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9703         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9704         hook descriptions.
9705         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9706         MAX_DFA_ISSUE_RATE): New macro descriptions.
9708         * doc/contrib.texi: Add dfa based scheduler contribution.
9710         * doc/gcc.texi: Add more information about genattrtab.
9712 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
9714         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
9715         an RTL basic block.
9717 2001-08-27  Richard Henderson  <rth@redhat.com>
9719         * function.c (expand_function_end): Don't init arg_pointer_save_area.
9720         (get_arg_pointer_save_area): New.  Create an init it here.
9721         (fix_lexical_addr): Use it.
9722         * function.h: Declare it.
9723         * builtins.c (expand_builtin_setjmp_receiver): Use it.
9724         * stmt.c (expand_nl_goto_receiver): Use it.
9726 2001-08-27  Richard Henderson  <rth@redhat.com>
9728         * final.c (final_scan_insn): Don't enter APP_ON mode for
9729         empty asm strings.
9731         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
9732         alignment for assemble_integer for DW_EH_PE_aligned.
9733         * except.c (output_function_exception_table): Likewise.
9735 2001-08-26  Andreas Jaeger  <aj@suse.de>
9737         * c-tree.h: Add prototyp for c_sizeof_nowarn.
9739 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
9741         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
9743 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
9745         * config/rs6000/rs6000.c (mask_operand): Rewrite without
9746         bit-shifting loop.
9747         (mask64_operand): Likewise.
9748         (rldic_operand): Delete.
9749         (includes_lshift64_p): Delete.
9750         (includes_rldic_lshift_p): New function.
9751         (includes_rldicr_lshift_p): New function.
9752         (print_operand): Don't call rldic_operand in case 'W'.
9753         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
9754         (includes_lshift64_p): Remove.
9755         (includes_rldic_lshift_p): Declare.
9756         (includes_rldicr_lshift_p): Declare.
9757         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
9758         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
9759         Replace match_operand rldic_operand predicate with
9760         const_int_operand.  Replace includes_lshift64_p condition with
9761         includes_rldic_lshift_p.
9762         <ashldi3_internal 64 bit rldicr patterns>: New.
9764 2001-08-27  Andreas Jaeger  <aj@suse.de>
9766         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9767         * errors.c: Likewise.
9768         * final.c: Likewise.
9769         * dwarf2asm.c: Likewise.
9770         * doprint.c (checkit): Likewise.
9771         * diagnostic.c: Likewise.
9772         * collect2.c: Likewise.
9773         * calls.c: Likewise.
9774         * c-semantics.c (build_stmt): Likewise.
9775         * c-format.c (status_warning): Likewise.
9776         * c-errors.c (pedwarn_c99): Likewise.
9777         * builtins.c (validate_arglist): Likewise.
9778         * config/pj/pj.c (pj_printf): Likewise.
9779         * fix-header.c: Likewise.
9780         * gcc.c: Likewise.
9781         * gcov.c (fnotice): Likewise.
9782         * gensupport.c (message_with_line): Likewise.
9783         * mips-tfile.c: Likewise.
9784         * protoize.c (notice): Likewise.
9785         * read-rtl.c (fatal_with_file_and_line): Likewise.
9786         * rtl-error.c: Likewise.
9787         * tradcpp.c: Likewise.
9788         * tree.c: Likewise.
9789         * cp/tree.c (build_min_nt): Likewise.
9790         (build_min): Likewise.
9791         * cp/lex.c: Likewise.
9792         * cp/errfn.c: Likewise.
9793         * cp/rtti.c (create_pseudo_type_info): Likewise.
9795 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
9797         * df.c (df_uses_record): Return after recording all uses
9798         in ASM_OPERANDS.
9800 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
9802         * df.c (df_insn_modify): Realloc the INSN table here, if
9803         necessary, here, too.
9805 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
9807         * config/mips/mips.c (mips_function_value): Handle complex return
9808         values.
9810 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
9812         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
9813         unshared.
9814         * reload.c (make_memloc): Copy result if it is still
9815         reg_equiv_memory_loc[regno] on return.
9816         (subst_reloads) [ENABLE_CHECKING]: Check that none of
9817         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
9818         reg_equiv_mem are modified by the substitutions.
9820 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9822         * predict.c (expensive_function_p): New.
9823         * rtl.h (expensive_function_p): Declare.
9824         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
9825         (use_fast_prologue_epilogue): New static variable.
9826         (expand_prologue): Set it; emit short prologues if unset.
9827         (expand_epilogue): Likewise.
9829 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
9831         * config.gcc: Add stormy16-*-elf case.
9832         * config/stormy16/stormy-abi: New file.
9833         * config/stormy16/stormy16-lib2.c: New file.
9834         * config/stormy16/stormy16-protos.h: New file.
9835         * config/stormy16/stormy16.c: New file.
9836         * config/stormy16/stormy16.h: New file.
9837         * config/stormy16/stormy16.md: New file.
9838         * config/stormy16/t-stormy16: New file.
9840 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
9842         * i386.h (no-accumulate-outgoing-args): Use proper mask.
9844 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
9846         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
9847         descriptor members are pointer size, not constant 4.
9848         * config/rs6000/rs6000.md (define_splits): Remove more unused
9849         constraints.
9851 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9853         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
9855 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
9857         * cp/rtti.c (VPARAMS): Fix parameter.
9859 2001-08-24  Zack Weinberg  <zackw@panix.com>
9861         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
9862         to zero.
9863         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
9864         to switch.
9865         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
9866         in if controlling use of insv.
9867         (extract_bit_field): Likewise, for extv and extzv.
9869 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
9871         * i386.md (movcc peep2): Fix load of 0.
9873 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9875         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
9876         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
9878 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
9880         * c-pragma.h: Move weak_syms and weak_decls...
9881         * varasm.c: ...here.  Now static.
9882         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
9883         depend on HANDLE_PRAGMA_WEAK.
9885         * c-common.c (c_alignof, c_alignof_expr): Move here...
9886         * c-typeck.c: ...from here.
9887         * c-tree.h, c-common.h: Adjust.
9889 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
9891         * config/ia64/ia64.c (rws_update): If !pred, set write_count
9892         instead of incrementing it.
9894         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
9895         asm ready, don't try to move them all into the same array element.
9897 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
9899         * function.c (thread_prologue_and_epilogue_insns): Avoid
9900         fallthru flag on edge to exit.
9902         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
9904         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
9905         dead edges.
9907 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
9909         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
9910         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
9911         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
9912         Remove prototype.
9914 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
9916         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
9917         replace "GNU CC" with "GCC".
9919 2001-08-23  Richard Henderson  <rth@redhat.com>
9921         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
9922         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
9923         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
9924         Need GR between FR and not GR_AND_FR.
9925         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
9926         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
9927         AR regs before GR regs.
9928         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
9929         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
9930         (REGISTER_MOVE_COST): Update.
9931         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
9933 2001-08-23  Richard Henderson  <rth@redhat.com>
9935         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
9936         a register class.
9938 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
9940         * reload1.c (emit_reload_insns): Don't look for notes
9941         on a NULL store_insn.
9943 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9945         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
9946         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
9947         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
9948         format specifier warnings.
9949         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
9951 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
9953         * config/i386/i386-protos.h: Correct declaration of
9954         i386_pe_asm_named_section.
9956 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9958         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
9959         variable i.
9960         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
9962 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9964         * cpperror.c (print_location): Don't show _Pragma.
9965         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
9966         and file change callback generation here.
9967         (stack_include_file): Update use of cpp_push_buffer.
9968         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
9969         (struct cpp_buffer): Remove type, pfile members.
9970         * cppinit.c (cpp_handle_option): Use free_chain.
9971         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
9972         (skip_escaped_newlines, get_effective_char, lex_percent): Take
9973         a cpp_reader rather than a cpp_buffer.
9974         (skip_escaped_newlines, get_effective_char, skip_block_comment,
9975         skip_line_comment, parse_string, lex_percent, lex_dot,
9976         _cpp_lex_token): Update accordingly.
9977         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
9978         generation here.
9979         (cpp_push_buffer): Update prototype.
9980         (run_directive): Update use of cpp_push_buffer.
9981         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
9982         handle_assertion): Update use of run_directive.
9983         * cpplib.h (enum cpp_buffer_type): Remove.
9984         (cpp_push_buffer): Update prototype.
9985         * fix-header.c (read_scan_file): Update.
9987 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9989         * gcc.c (struct prefix_list): Change prefix to const char *.
9991 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9993         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
9995 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
9997         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
9998         from a new MEM.
10000         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
10001         a squeezable note.
10002         * rtl.h: Adjust.
10003         * ifcvt.c (dead_or_predicable): Adjust.
10004         * loop.c (find_and_verify_loops): Adjust.
10005         * stmt.c (expand_end_case): Adjust.
10006         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
10007         head and end insn pointers in the basic block, not just local copies.
10008         (merge_blocks_move_predecessor_nojumps): Likewise.
10010 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
10012         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
10013         bitmap.h, builtin-types.def, builtins.c, builtins.def,
10014         c-aux-info.c, c-common.c, c-common.def, c-common.h,
10015         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
10016         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
10017         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
10018         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
10019         conditions.h, config.gcc, configure.frag, configure.in,
10020         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
10021         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
10022         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
10023         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
10024         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
10025         emit-rtl.c, errors.c, errors.h, except.c, except.h,
10026         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
10027         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
10028         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
10029         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
10030         gencheck.c, gencodes.c, genconfig.c, genemit.c,
10031         genextract.c, genflags.c, gengenrtl.c, genmultilib,
10032         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
10033         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
10034         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
10035         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
10036         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
10037         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
10038         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
10039         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
10040         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
10041         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
10042         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
10043         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
10044         params.h, predict.c, predict.def, predict.h, prefix.c,
10045         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
10046         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
10047         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
10048         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
10049         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
10050         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
10051         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
10052         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
10053         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
10054         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
10055         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
10056         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
10057         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
10058         xcoffout.h: replace "GNU CC" with "GCC".
10060 2001-08-21  Richard Henderson  <rth@redhat.com>
10062         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
10063         (final_scan_insn): Consider jump tables data even if we have no
10064         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
10065         ADDR_VEC_ALIGN.
10066         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
10067         (ASM_OUTPUT_CASE_END): Remove.
10068         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
10069         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
10070         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
10072 2001-08-21  Richard Henderson  <rth@redhat.com>
10074         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
10075         at barrier insns.  Emit stop bits before barriers.
10077         * flow.c (flow_find_cross_jump): Don't consider unconditional
10078         return insns for commoning.
10080         * final.c (compute_alignments): Fix typo.
10082         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
10083         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
10084         (store_bit_field): Use mode_for_extraction more places.
10085         (extract_bit_field): Likewise.
10087 2001-08-21  Zack Weinberg  <zackw@panix.com>
10089         * caller-save.c: Don't include insn-codes.h.
10090         (reg_save_code, reg_restore_code): Make arrays of int.
10091         All uses updated to match.
10092         (insert_save, insert_restore): No need to initialize "code"
10093         variable upon declaration.
10094         * Makefile.in: update dependencies; fix typo in clean rule.
10096 2001-08-21  Richard Henderson  <rth@redhat.com>
10098         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
10099         (merge_if_block): Handle fallout from same.
10101 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10103         * builtins.c (type_to_class): Fix typo in last change.
10105 2001-08-21  Richard Henderson  <rth@redhat.com>
10107         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
10108         ia64_asm_output_label.
10110         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
10111         copy of gp while the real gp register contains garbage.
10113 2001-08-21  Zack Weinberg  <zackw@panix.com>
10115         * expmed.c (mode_for_extraction): New function.
10116         (store_bit_field, extract_bit_field): Use it.
10117         * expr.h: Prototype it and provide an enum for its first argument.
10119         * combine.c, function.c, recog.c: Don't include insn-codes.h.
10120         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
10121         and digging through the insn_data tables.
10122         * Makefile.in: Update dependencies.
10124 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10126         * cppfiles.c (stack_include_file): line-map.c now handles include
10127         depth.
10128         (handle_missing_handler): Similarly.
10129         (_cpp_execute_include): Similarly.
10130         (_cpp_pop_file_buffer): Similarly.
10131         * cpphash.h (struct cpp_reader): Remove system_include_depth,
10132         buffer_stack_depth and include_depth.
10133         * cpplib.c (do_include_common): line-map.c now handles include depth.
10134         (cpp_push_buffer): Similarly.
10135         (_cpp_pop_buffer): Similarly.
10136         * cppmacro.c (builtin_macro): Update.
10137         * line-map.c (init_line_maps): Set depth.
10138         (add_line_map): Increment "used" earlier.  Update and use the
10139         include depth.
10140         (trace_include): Use the include depth.
10141         * line-map.h (struct line_maps): New member depth.
10143 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10145         * cppfiles.c (stack_include_file): Don't handle -H here.
10146         * cppinit.c (cpp_start_read): Set include tracing after
10147         cpp_post_options and after stacking the main file.
10148         * line-map.c (trace_include): New.
10149         (init_line_maps, add_line_map): Update.
10150         * line-map.h (struct line_maps): New member trace_includes.
10152 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10154         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
10155         * cppfiles.c (stack_include_file): Only stack a file if there
10156         is something to do.  Return a boolean indicating whether a
10157         buffer was stacked or not.
10158         (_cpp_execute_include): Similarly.
10159         (_cpp_read_file): Similarly.
10160         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
10162 2001-08-21  Sam Steingold  <sds@gnu.org>
10164         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
10165         (RECACHE): keep obufp_before_macroname up to date
10167 2001-08-21  Zack Weinberg  <zackw@panix.com>
10169         * stmt.c: Don't include insn-codes.h.
10170         (expand_end_case): Machine specific logic moved to expr.c.
10171         No need to worry about __builtin_classify_type.
10172         (check_for_full_enumeration_handling, emit_case_nodes):
10173         Kill #if 0 blocks.
10175         * builtins.o (expand_builtin_classify_type): Split up so code
10176         can be shared with fold_builtin_classify_type.
10177         (type_to_class, fold_builtin_classify_type): New functions.
10178         (fold_builtins): Handle __builtin_classify_type.
10180         * expr.c (do_tablejump): Now static.
10181         (case_values_threshold, try_casesi, try_tablejump): New;
10182         code mostly from stmt.c (expand_end_case).
10183         (expr.h): Update prototypes.
10185         * Makefile.in (stmt.o): Update dependencies.
10187 2001-08-21  Will Cohen  <wcohen@redhat.com>
10189         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
10190         declaration of variable i.
10191         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
10192         declaration of variable i.
10194 2001-08-21  Richard Henderson  <rth@redhat.com>
10196         * crtstuff.c: Fix thinko last change.  Move list tails to start
10197         of CRT_END section.  Tidy ifdefs.
10198         (__EH_FRAME_BEGIN__): Always static for ELF.
10199         (__do_global_ctors_1): Rename from __frame_dummy.
10200         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
10201         name change; don't hide __EH_FRAME_BEGIN__.
10203 2001-08-21  Richard Henderson  <rth@redhat.com>
10205         * gdbinit.in: Move break on exit after break on fancy_abort.
10207         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
10208         sized types.
10210 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10212         * cpphash.h (_cpp_push_next_buffer): New.
10213         * cppinit.c (do_includes): Remove.
10214         (push_include, free_chain, _cpp_push_next_buffer): New.
10215         (cpp_start_read): Use them to rework command line option handling.
10216         (cpp_handle_option): Combine handling of -include and -imacros.
10217         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
10218         appropriate.  Always insert missing \n at EOF.
10219         * cpplib.c (start_directive): Get the directive position right.
10220         * cppmain.c (cb_file_change): Always print the first line, unless
10221         preprocessed.
10223 2001-08-20  Andreas Jaeger  <aj@suse.de>
10225         * profile.c (compute_branch_probabilities): Remove extra new-line
10226         in error message.
10227         * flow.c (verify_flow_info): Likewise.
10229 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
10231         * basic-block.h (basic_block): Add new field 'flags'.
10232         (BB_REACHABLE): Define.
10233         (expunge_block): Declare.
10234         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
10235         (EXIT_BLOCK_PTR): Ditto.
10236         (expunge_block): Remove static declaration.
10237         (cleanup_cfg): Clear bb->aux on every basic block.
10238         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
10239         computing reachability.
10240         (delete_unreachable_blocks): Delete block b if b->flags has
10241         BB_REACHABLE unset.
10243 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
10245         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
10247 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10249         * sparc.c (sparc_variable_issue): Fix typo in last change.
10251 2001-08-20  Richard Henderson  <rth@redhat.com>
10253         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
10255 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10257         * pa.h (RETURN_IN_MEMORY): Improve comment.
10259 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
10261         * doc/invoke.texi (Profiling options): Clarify the interactions
10262         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
10264 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
10266         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
10267         command.
10269 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10271         * gcc.c (make_relative_prefix): Allocate a sufficiently large
10272         buffer.
10274 2001-08-20  Richard Henderson  <rth@redhat.com>
10276         * final.c (end_final): Fix typo last change.
10278 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10280         * cppinit.c (init_standard_includes): The returned buffer
10281         is already malloc-ed.
10282         * gcc.c (add_prefix): Similarly.
10283         * prefix.c (translate_name): Update to support clear buffer
10284         ownership rules.
10285         (update_path): Similarly.  Be sure to free any newly allocated
10286         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
10287         (tr): New function.
10288         * prefix.h (update_path): Update prototype and document.
10289         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
10290         up and update to new buffer ownership rules.
10291         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
10293 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
10295         * final.c (compute_alignments): New function.
10296         (init_insn_lengths): Do not care label_align.
10297         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
10298         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
10299         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
10300         (shorted_branches): Realloc label_align array; do
10301         not call init_insn_lengths; Do not care about loop alignments.
10302         * output.h (compute_alignments): Declare.
10303         * toplev.c (rest_of_compilation): Call compute_alignments.
10304         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
10306         * predict.c (block_info_def): Add npredecesors, remove nvisited;
10307         change visited to tovisit.
10308         (propagate_freq): Use faster traversing algorithm.
10309         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
10310         to tovisit; reverse meaning.
10312         * predict.c (struct block_info_def): Remove nvisited.
10313         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
10314         (estimate_bb_frequencies): Call mark_dfs_back_edges.
10316 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
10318         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
10319         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
10320         (TARGET_FUSED_MADD): New.
10321         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
10322         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
10323         the multiply-add instructions.
10325 2001-08-19  Richard Henderson  <rth@redhat.com>
10327         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
10328         is aligned to pointer size.
10330 2001-08-19  Richard Henderson  <rth@redhat.com>
10332         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
10333         display markers during final schedule.
10335 2001-08-19  Richard Henderson  <rth@redhat.com>
10337         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
10339 2001-08-19  Richard Henderson  <rth@redhat.com>
10341         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
10342         in the same string.
10343         (ASM_NAME_TO_STRING): Remove.
10344         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
10345         in the same string.  Remove support for expressions.
10347 2001-08-19  Richard Henderson  <rth@redhat.com>
10349         * config/i386/i386.md (tablejump): Make an expander; handle
10350         pic relative addressing here.
10351         (tablejump_1): Rename from tablejump_pic.
10352         (casesi): Remove.
10354 2001-08-19  Richard Henderson  <rth@redhat.com>
10356         * regclass.c (fix_register): Fix typo.
10358 2001-08-18  Richard Henderson  <rth@redhat.com>
10360         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
10361         (struct _Unwind_Context): Expand br_loc to hold it.
10362         (uw_frame_state_for): Handle leaf functions better.
10363         (uw_update_reg_address): Update for br_loc change.
10365 2001-08-18  Richard Henderson  <rth@redhat.com>
10367         * crtstuff.c: Move list heads before code that uses them.
10368         (__JCR_LIST__): Remove initial null.
10369         (frame_dummy, __frame_dummy): Do java registration here ...
10370         (__do_global_ctors_aux): ... not here.
10372         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
10373         (__do_global_dtors_aux): Update to match.
10374         (__JCR_LIST__, __do_jv_register_classes): New.
10375         (.init): Call it.
10376         * config/ia64/crtend.asm (__JCR_END__): New.
10377         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
10378         instead of an indirect LTOFF22 reloc.
10380 2001-08-18  Richard Henderson  <rth@redhat.com>
10382         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
10383         * regclass.c (init_reg_sets_1): Fix typo.
10384         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
10385         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
10386         (ia64_compute_frame_size): Make ar.unat live when in use.
10387         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
10388         for ar.pfs; remove ar.unat handling.
10389         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
10390         call-saved.
10391         (PREDICATE_CODES): Add ar_pfs_reg_operand.
10392         * config/ia64/ia64-protos.h: Update decls.
10393         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
10394         (sibcall_pic): Likewise.
10396 2001-08-18  Richard Henderson  <rth@redhat.com>
10398         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
10399         pred_rel_mutex when searching for insn_group_barrier.
10400         * config/ia64/ia64.md (cycle_display): Combine the expander
10401         and insn patterns.
10403         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
10404         bit before asm as needed.
10406 2001-08-18  Richard Henderson  <rth@redhat.com>
10408         * timevar.def (TV_MACH_DEP): New.
10409         * toplev.c (rest_of_compilation): Use it.
10410         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
10412 2001-08-18  Zack Weinberg  <zackw@panix.com>
10414         * unwind-dw2.c (execute_stack_op): Add default aborts to
10415         the inner switches to prevent warnings.
10417 2001-08-18  Richard Henderson  <rth@redhat.com>
10419         * timevar.h (struct timevar_time_def): Change element type to float.
10420         (ticks_to_msec, clocks_to_msec): Likewise.
10421         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
10422         (get_time): Likewise.
10423         (timevar_print): Adjust zero check and printing to match.
10425 2001-08-18  Zack Weinberg  <zackw@panix.com>
10427         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
10428         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
10429         Eliminate overfull or underfull hboxes.
10431 2001-08-18  Zack Weinberg  <zackw@panix.com>
10433         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
10435 2001-08-18  Zack Weinberg  <zackw@panix.com>
10437         * haifa-sched.c: Convert to target hooks.  Macros replaced
10438         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
10439         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
10440         MD_SCHED_FINISH, and HAVE_cycle_display.
10441         * target-def.h (TARGET_SCHED_ADJUST_COST,
10442         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
10443         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
10444         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
10445         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
10446         New hook #defines to be overridden.
10447         (TARGET_SCHED): Bring them all together.
10448         (TARGET_INITIALIZER): Update.
10449         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
10450         instead of 'struct rtx_def *' throughout.
10451         (struct sched): New set of hooks for the scheduler.
10452         * Makefile.in (haifa-sched.o): Depend on target.h.
10453         * doc/tm.texi: Document the new scheduler hooks, together in
10454         their own section, instead of scattered around.
10455         Fix a bunch of underfull/overfull hboxes.
10457         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
10458         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
10459         sparc.h: Don't define any of the old scheduler macros.
10461         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
10462         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
10463         sparc.c: Create hook functions from code extracted from
10464         corresponding target header, or make existing hooks static, as
10465         appropriate.  Set the appropriate entries in targetm.
10467         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
10468         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
10469         rs6000-protos.h, s390-protos.h, sparc-protos.h:
10470         Remove prototypes for functions which are now static.
10472         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
10473         related gunk; the Haifa scheduler is now the only choice.
10475 2001-08-18  Zack Weinberg  <zackw@panix.com>
10477         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
10478         * genopinit.c: Put floating point divide insns in sdiv_optab.
10479         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
10480         * config/gofast.h, config/c4x/c4x.h,
10481         config/ia64/hpux_longdouble.h, config/mips/mips.h,
10482         config/pa/long_double.h, config/rs6000/sysv4.h,
10483         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
10484         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
10485         (init_optabs): Use init_optabv for overflow-trapping optabs.
10486         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
10487         cmp_optab RTX codes so have_insn_for can find them.
10489         * optabs.c (expand_simple_binop, expand_simple_unop,
10490         have_insn_for, gen_sub3_insn): New interfaces.
10491         * expr.h: Prototype new functions.
10492         (enum optab_methods): Move here from optabs.h.
10494         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
10495         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
10496         Use new functions instead of working directly with optabs.
10497         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
10498         unroll.c: Don't include optabs.h.
10499         * caller-save.c, combine.c, function.c, stmt.c: Just include
10500         insn-codes.h, not optabs.h.
10501         * Makefile.in: Update dependencies.
10503         * combine.c (make_compound_operation, simplify_comparison):
10504         Fix typos testing for this or that instruction.
10506 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
10508         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
10509         generating libgcc.a.
10511 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10513         * except.c (TYPE_HASH): Delete.
10515         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
10516         HOST_WIDE_INT.
10518         * tree.c (TYPE_HASH): Delete.
10520         * tree.h (TYPE_HASH): Define.
10522 2001-08-18  Graham Stott  <grahams@redhat.com>
10524         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
10525         define_split.
10526         (adddi3_internal_2+2): Likewise.
10527         (eh_set_lr_di+1): Likewise.
10529 2001-08-17  Richard Henderson  <rth@redhat.com>
10531         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
10532         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
10533         * dwarf2asm.c: ... here.
10534         * dwarfout.c: Remove them.
10536         * varasm.c (assemble_integer): Add align parameter.
10537         (assemble_real, output_constant, output_constructor): Likewise.
10538         * output.h: Update decls.
10539         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
10540         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
10541         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
10542         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
10543         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
10544         Update all callers.
10546         * final.c (end_final): Abort profile block generation if we
10547         haven't layed it out properly.
10548         * output.h (assemble_eh_integer): Remove stale decl.
10549         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
10550         (min_align): New.
10551         (assemble_integer): Handle unaligned data.
10552         (assemble_real): Abort on unaligned data.
10553         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
10554         anything useful.
10555         (default_dtor_section_asm_out_destructor): Use assemble_align.
10556         (default_named_section_asm_out_constructor): Likewise.
10557         (default_ctor_section_asm_out_constructor): Likewise.
10558         * config/darwin.c (machopic_asm_out_constructor): Likewise.
10559         (machopic_asm_out_destructor): Likewise.
10560         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
10561         (nextstep_asm_out_destructor): Likewise.
10562         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
10563         (vms_asm_out_destructor): Likewise.
10565 2001-08-17  Richard Henderson  <rth@redhat.com>
10567         * config/mips/iris6.h (TARGET_IRIX6): New.
10568         (current_section_name, current_section_flags): New.
10569         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
10570         (MAX_OFILE_ALIGNMENT): New.
10571         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
10572         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
10573         (copy_file_data): Split out from
10574         (mips_asm_file_end): ... here.
10575         (mips_asm_file_start): Remove extra .section directive.  Use
10576         tmpfile instead of mips_make_temp_file.
10577         (mips_unique_section): Use const char * as needed for warnings.
10578         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
10579         re-add align parameter.
10580         (iris6_asm_named_section): New.
10581         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
10582         (iris6_asm_output_align, iris6_section_align_1): New.
10583         (iris6_asm_file_start, iris6_asm_file_end): New.
10584         * config/mips/mips-protos.h: Update decls.
10586 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
10588         * doc/install.texi (Install GCC): Add links to build status pages.
10589         (Specific): Ditto.
10590         (Final install): Ditto; request updates for specific info
10592 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
10594         * cpperror.c (print_location):  Don't take a file name; use the
10595         line map instead.
10596         (_cpp_begin_message): Similarly.
10597         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
10598         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
10599         (cpp_pedwarn_with_file_and_line): Remove.
10600         * cppfiles.c (stack_include_file): Update; set filename to stdin
10601         here when appropriate.
10602         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
10603         (_cpp_begin_message): Don't take a file name.
10604         * cppinit.c: Add comment.
10605         * cpplex.c: Fix end-of-directive indicator.
10606         * cpplib.c: Don't include intl.h.
10607         (run_directive, do_diagnostic): Update.
10608         (do_line): Update to not use nominal_fname.
10609         (cpp_push_buffer): Don't take a filename.
10610         * cpplib.h (struct ht): Remove.
10611         (cpp_push_buffer): Don't take a filename.
10612         (cpp_pedwarn_with_file_and_line): Remove.
10613         * cppmacro.c (struct cpp_macro): Remove file.
10614         (builtin_macro): Update.
10615         (_cpp_create_definition): Update.
10616         * cppmain.c: Correct comment.
10617         * fix-header.c (read_scan_file): Update.
10619 2001-08-17  Kazu Hirata  <kazu@hxi.com>
10621         * sbitmap.c: Fix comment formatting.
10622         * sched-deps.c: Likewise.
10623         * sibcall.c: Likewise.
10624         * simplify-rtx.c: Likewise.
10625         * ssa.c: Likewise.
10626         * ssa-ccp.c: Likewise.
10627         * stor-layout.c: Likewise.
10628         * timevar.c: Likewise.
10629         * toplev.c: Likewise.
10630         * unwind-dw2.c: Likewise.
10631         * unwind-dw2-fde.c: Likewise.
10632         * varasm.c: Likewise.
10634 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10636         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
10637         or larger than an integer in memory.
10639 2001-08-17  Zack Weinberg  <zackw@panix.com>
10641         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
10642         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
10643         * rtl.h: Don't forward-declare union tree_node here.  Don't
10644         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
10645         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
10646         and tree respectively.
10647         * tree.h: Don't forward-declare struct rtx_def here.  Don't
10648         typedef tree here.  Change all uses of struct rtx_def *,
10649         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
10650         and tree respectively.
10652 2001-08-17  Richard Henderson  <rth@redhat.com>
10654         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
10655         config/mips/openbsd.h: Fix typos last change.
10657 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10659         * doc/invoke.texi (Optimize Options): The default for
10660         -finline-limit is 600.
10662 2001-08-17  Richard Henderson  <rth@redhat.com>
10664         * varasm.c (text_section): Allow TEXT_SECTION to override the
10665         printing of TEXT_SECTION_ASM_OP.
10666         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
10667         (DATA_SECTION, BSS_SECTION): Remove.
10668         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
10669         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
10670         Rename from s/_NAME//.
10671         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
10672         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
10673         (TEXT_SECTION): ... here.  New.
10674         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
10675         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
10676         * config/mips/openbsd.h: Likewise.
10677         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
10678         (mips_asm_file_end): Likewise test.
10679         (mips_output_function_epilogue): Likewise.  Switch back to data
10680         section after emitting the function.
10682         * doc/tm.texi (Sections): Document TEXT_SECTION.
10684 2001-08-17  Richard Henderson  <rth@redhat.com>
10686         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
10687         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
10689 2001-08-17  Richard Henderson  <rth@redhat.com>
10691         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
10692         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
10693         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
10694         Add aligned attribute.
10696 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
10698         * config/sh/sh.md: Add modes to unspecs in first insn to match
10699         those in the second.
10701         * Makefile.in: Fix collect2 copy for Cygwin.
10703 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
10705         Install the proper patch.
10706         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10707         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10708         (expand_function_start): Likewise.
10709         * stmt.c (expand_decl): Likewise.
10710         * varasm.c (make_decl_rtx): Likewise.
10712 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
10714         * final.c: Undo my previous accidental checkin.
10715         * output.h: Likewise.
10716         * tm.texi: Likewise.
10718 2001-08-16  Richard Henderson  <rth@redhat.com>
10720         * varasm.c (named_section_flags): Remove align parameter.
10721         * varasm.c, dwarf2out.c: Update all callers.
10722         * output.h: Update prototypes.
10724         * target.h (target.asm_out.named_section): Remove align parameter.
10725         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
10726         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
10727         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
10728         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
10729         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
10731         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
10732         (get_named_section_flags, set_named_section_flags): New.
10733         (named_section_flags): Use them.
10734         (named_section): Do decl vs section flags check here...
10735         (default_section_type_flags): ... not here.
10736         (init_varasm_once): Create in_named_htab.
10737         (resolve_unique_section): Mark reloc unused.
10739 2001-08-16  Richard Henderson  <rth@redhat.com>
10741         * varasm.c (force_const_mem): Keep pool alignment in bits.
10742         (output_constant_pool): Use assemble_align.
10744 2001-08-16  Zack Weinberg  <zackw@panix.com>
10746         * doc/tm.texi: Remove extra @table command.
10748 2001-08-16  Zack Weinberg  <zackw@panix.com>
10750         * final.c (shorten_branches): Clear the end of the label_align
10751         array only if we made it larger.  Break up messy expressions
10752         for clarity.
10754         * diagnostic.c (internal_error): Check for error recursion
10755         before doing ICE suppression.
10757         * timevar.c: Timing variables now count in milliseconds.
10758         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
10759         (get_time): Not here.
10760         (timevar_print): Don't print any timer whose user, cpu, and
10761         wall times are all zero as displayed.
10762         * timevar.h: Update comment aboout units.  Make timevar
10763         counters unsigned.
10765 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
10767         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10768         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10769         (expand_function_start): Likewise.
10770         * stmt.c (expand_decl): Likewise.
10771         * varasm.c (make_decl_rtx): Likewise.
10773 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
10775         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
10776         (finalize_record_size): Don't set TYPE_USER_ALIGN.
10778 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10780         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
10781         variables.
10783 2001-08-16  Andreas Jaeger  <aj@suse.de>
10785         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
10786         prototype.
10788 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
10790         * rtl.h (only_sets_cc0_p): New prototype.
10791         * jump.c (sets_cc0_p): Handle INSN.
10792         (only_sets_cc0_p): New function.
10793         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
10794         (tidy_fallthru_edge): Likewise.
10795         * integrate.c (copy_insn_list): Likewise.
10796         * unroll.c (unroll_loop): Likewise.
10797         (copy_loop_body): Likewise.
10799 2001-08-15  Jason Eckhardt  <jle@redhat.com>
10801         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
10803 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10805         * predict.c (struct block_info_def): Remove nvisited.
10806         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
10807         (estimate_bb_frequencies): Call mark_dfs_back_edges.
10809         * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
10810         (ix86_adjust_cost): Teach scheduler that latency to load operand can
10811         be masked.
10813 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
10815         * predict.def: Update hitrates.
10817 2001-08-15  Richard Henderson  <rth@redhat.com>
10819         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
10821 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
10823         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
10824         note from its associated jump.
10826 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
10828         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
10829         also on 64-bit s390x targets.
10831 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
10833         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
10834         function.
10835         (arm_expand_prologue): Handled nested functions which take a
10836         variable argument list.
10837         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
10838         macro with an invocation of
10839         arm_compute_initial_elimination_offset.
10840         * config/arm/arm-protos.h: Prototype
10841         arm_compute_initial_elimination_offset.
10843 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10845         * doc/install.texi (Specific, avr): Fix markup.
10846         (Specific, c4x): Ditto.
10848 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10850         * predict.c (dump_prediction): Change `bool' parameter to `int'.
10852 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
10854         * Makefile.in (OBJS): Add rtl-error.o
10855         (rtl-error.o): New rule.
10856         (diagnostic.o): Adjust dependency.
10857         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
10858         error_for_asm, _fatal_insn, _fatal_insn_not_found,
10859         warning_for_asm): Move to...
10860         rtl-error.c: ...here.  New file.
10862 2001-08-14  Richard Henderson  <rth@redhat.com>
10864         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
10865         if USING_SJLJ_EXCEPTIONS.
10867 2001-08-14  Steve Ellcey <sje@cup.hp.com>
10869         * tlink.c (scan_linker_output): Check string for unsatisfied in
10870         addition to undefined and unresolved.
10872 2001-08-14  Graham Stott  <grahams@redhat.com>
10874         * libgcc2.c (*): Replace EH_FRAME_SECTION with
10875         EH_FRAME_SECTION_NAME.
10877 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
10879         * genattrtab.c (simplify_test_exp_in_temp): New function.
10880         (simplify_test_exp): Avoid explicit use of temporary obstack.
10881         (simplify_cond, insert_right_side, evaluate_eq_attr,
10882         simplify_and_tree, simplify_or_tree, eliminate_known_true):
10883         Use simplify_test_exp_in_temp.
10884         (optimize_attrs): Iterate until expression stabilizes.
10886 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
10888         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
10889         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
10891 2001-08-13  Richard Henderson  <rth@redhat.com>
10893         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
10894         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
10895         * config/arm/conix-elf.h: Likewise.
10897 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
10899         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
10900         in gcc.c.
10901         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10903         * gcse.c (hash_scan_set): Expressions that are set as part of
10904         jump instructions are not available.
10906 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
10908         * config/s390/s390.c (print_operand, s390_function_prologue,
10909         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
10911 2001-08-13  Richard Henderson  <rth@redhat.com>
10913         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
10914         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
10915         * doc/tm.texi (Exception Region Output): Document it.
10917 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
10919         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
10920         DWARF2 instead of stabs by default.
10922 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
10924         * config/rs6000/rs6000.c: Include optabs.h.
10926 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
10928         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
10929         save/restore routines.
10930         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
10932 2001-08-13  Andreas Jaeger  <aj@suse.de>
10934         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
10935         the english is correct.
10937 2001-08-13  Zack Weinberg  <zackw@panix.com>
10939         * expr.h: Split out optab- and libfunc-related code to...
10940         * optabs.h, libfuncs.h: ... these new headers.
10942         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
10943         (OPTABS_H): New.
10944         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
10945         dependencies.
10946         * mkconfig.sh: Don't include insn-codes.h from config.h.
10948         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
10949         enum insn_code is available.  Move reload_in_optab and
10950         reload_out_optab array declarations to optabs.h.
10951         * regmove.c (gen_add3_insn): Move to optabs.c, export from
10952         there, prototype in expr.h.
10953         * gencodes.c: Cleanup: zap global variables, don't use
10954         printf where puts will do, don't bother defining MAX_INSN_CODE
10955         which nothing uses, let CODE_FOR_nothing get its value implicitly.
10957         * genemit.c, genopinit.c: Include optabs.h in generated file.
10958         * genoutput.c: Include insn-codes.h in generated file.
10959         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
10960         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
10961         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
10962         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
10963         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
10964         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
10965         Include optabs.h.
10966         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
10967         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
10968         config/m88k/m88k.c, config/sparc/sparc.c:
10969         Include libfuncs.h.
10970         * reload.c: Include expr.h and optabs.h before reload.h.
10971         * config/alpha/alpha.c: Include tree.h before reload.h.
10972         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
10973         and reload.h in that order.
10974         * config/sparc/sparc.c: Include debug.h.
10975         * recog.c: Include insn-codes.h.
10977 2001-08-13  Andreas Jaeger  <aj@suse.de>
10979         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
10980         s390*linux.
10982 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10984         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
10985         * gcc.c (init_spec): Fix typo in comment.
10986         * varasm.c (data_section): Fix typo in comment.
10988 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
10990         * predict.c (dump_prediction): New argument "USED".
10991         (combine_predictions_for_insn): Determine the used heuristics,
10992         output the case no heuristic applied.
10993         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
10995 2001-08-13  Andreas Jaeger  <aj@suse.de>
10997         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
10998         register %rip.
11000 2001-08-13  Kazu Hirata  <kazu@hxi.com>
11002         * jump.c: Fix formatting.
11004 2001-08-13  Kazu Hirata  <kazu@hxi.com>
11006         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
11007         length.
11009 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
11011         * loop.c (check_dbra_loop): Use condjump_label to compute
11012         jump_label.
11014         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
11015         to better document the files they're in.
11017 2001-08-12  Zack Weinberg  <zackw@panix.com>
11019         * recog.h (struct insn_operand_data): Shrink 'mode' field
11020         to 16 bits.
11022 2001-08-12  Kazu Hirata  <kazu@hxi.com>
11024         * gcc.c: Fix comment formatting.
11025         * gccspec.c: Likewise.
11026         * gcov.c: Likewise.
11027         * gcse.c: Likewise.
11028         * genemit.c: Likewise.
11029         * gengenrtl.c: Likewise.
11030         * genrecog.c: Likewise.
11031         * gensupport.c: Likewise.
11032         * ggc-page.c: Likewise.
11033         * global.c: Likewise.
11034         * graph.c: Likewise.
11035         * ifcvt.c: Likewise.
11036         * integrate.c: Likewise.
11037         * lcm.c: Likewise.
11038         * libgcc2.c: Likewise.
11039         * loop.c: Likewise.
11040         * mbchar.c: Likewise.
11041         * optabs.c: Likewise.
11042         * predict.c: Likewise.
11043         * prefix.c: Likewise.
11044         * profile.c: Likewise.
11045         * protoize.c: Likewise.
11046         * real.c: Likewise.
11047         * recog.c: Likewise.
11048         * regclass.c: Likewise.
11049         * regmove.c: Likewise.
11050         * reg-stack.c: Likewise.
11051         * reload1.c: Likewise.
11052         * resource.c: Likewise.
11053         * rtlanal.c: Likewise.
11054         * rtl.c: Likewise.
11056 2001-08-12  Kazu Hirata  <kazu@hxi.com>
11058         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
11059         a tree representing a constant is passed to the macro.
11061 2001-08-12  Richard Henderson  <rth@redhat.com>
11063         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
11064         (rs6000_elf_asm_out_destructor): New.
11065         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
11066         (DTORS_SECTION_ASM_OP): Remove.
11067         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11068         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
11070 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
11072         Revert:
11073         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
11074         * gcc.c (set_collect_gcc_options): New function, split out from
11075         main.
11076         Ignore elided switches.
11077         (do_spec_1): Invoke before executing command.
11078         (set_input): Export.
11079         Move declaration ...
11080         * gcc.h (set_input): ... here.
11081         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
11082         file.
11084 2001-08-12  Richard Henderson  <rth@redhat.com>
11086         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
11087         thinko wrt TARGET_RELOCATABLE.
11089 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
11091         * fix-header.c (cb_file_change): Update prototype.
11093 2001-08-11  Zack Weinberg  <zackw@panix.com>
11095         * toplev.c (set_float_handler): Make static.
11096         * toplev.h: Don't prototype set_float_handler.
11098         * simplify-rtx.c: Don't include setjmp.h.
11099         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
11100         New functions.
11101         (simplify_unary_operation, simplify_binary_operation): Use them,
11102         via do_float_handler.
11104         * fold-const.c: Don't include setjmp.h.
11105         (exact_real_inverse_1): New function.
11106         (exact_real_inverse): Use it, via do_float_handler.
11108         * varasm.c: Don't include setjmp.h.
11109         (assemble_real_1): New function.
11110         (assemble_real): Use it, via do_float_handler.
11111         Call internal_error if we get a trap here.
11113         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
11114         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
11116 2001-08-11  Zack Weinberg  <zackw@panix.com>
11118         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
11119         STACK_BOUNDARY if not already defined.
11121         * calls.c, function.c, reload1.c, explow.c: Don't default
11122         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
11123         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
11125         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
11126         to run-time test.
11128         * doc/tm.texi: Document that STACK_BOUNDARY is required;
11129         clarify difference between it and PREFERRED_STACK_BOUNDARY.
11131 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11133         * cppmacro.c (enter_macro_context): Push macro expansions even
11134         if empty.
11136 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11138         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
11139         (rs6000_elf_section_type_flags): Actually return a value.
11141 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
11143         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
11144         Clean up code: add missing comments and prototypes, fix warnings,
11145         remove obsolete code, fix spacing to conform to coding style.
11147 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
11149         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
11150         and TARGET_ASM_CLOSE_PAREN.
11151         (regclass_map): CC register belongs to class NO_REGS.
11152         (legitimize_pic_address): Don't generate unnecessary moves
11153         (to avoid confusing loop optimization).
11154         (check_and_change_labels): Replace jump_long by indirect_jump.
11155         (s390_final_chunkify): Don't start a new literal pool on section
11156         switch in 64-bit code.
11157         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
11159         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
11160         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
11161         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
11162         modes correctly.
11163         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
11164         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
11165         (CONST_COSTS): Fixed incorrect costs.
11167         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
11168         Use emit_jump instead of emit_jump_insn (gen_jump).
11169         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
11170         (to avoid confusing flow analysis).
11171         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
11172         (casesi, casesi_jump): New.
11173         (jump_long): Removed.  Functionality merged into indirect_jump.
11174         (indirect_jump): Accept address_operand, not just register_operand.
11175         (cjump_long, icjump_long): Use same logic as indirect_jump.
11176         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
11177         Fixed broken setjmp/longjmp handling.
11178         (do_builtin_setjmp_setup): Removed.
11180         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
11181         broken GNU as versions that don't accept .quad with large
11182         negative values.  Use hexadecimal output instead.
11183         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
11184         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
11185         FUNCTION_EPILOGUE): Removed.  Now in targetm.
11187         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
11189         * config/s390/fixdfdi.h: Add missing copyright statement.
11190         Fix type conflicts on 64-bit.  Add missing SFmode routines.
11192         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
11193         email address.
11195 2001-08-11  Richard Henderson  <rth@redhat.com>
11197         * rtl.h (REG_EH_RETHROW): Remove.
11198         * rtl.c (reg_note_name): Update.
11199         * combine.c (distribute_notes): Don't check for it.
11201 2001-08-11  Richard Henderson  <rth@redhat.com>
11203         * combine.c (distribute_notes): Place REG_SETJMP.
11205 2001-08-11  Richard Henderson  <rth@redhat.com>
11207         * doc/extend.texi (Arrays and pointers implementation): Discourage
11208         relying on sign-extension of pointers.
11210 2001-08-11  H.J. Lu <hjl@gnu.org>
11212         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
11213         in_dtors.
11214         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
11215         RDATA_SECTION_ASM_OP.
11217 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11219         * doc/install.texi (Specific, c4x): Fix cross-reference to the
11220         main manual to work both for info and HTML versions.
11222 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11223             Matt Kraai <kraai@alumni.carnegiemellon.edu>
11225         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
11226         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
11227         (struct cpp_pool): New member first.
11228         * cppinit.c (append_include_chain): Plug memory leaks.
11229         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
11230         Allocate pragma structures from the (aligned) macro pool to
11231         avoid leaking memory.
11232         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
11233         so we don't leak memory.
11234         * hashtable.c (ht_destroy): New.
11235         * hashtable.h (ht_destroy): New.
11237 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11238             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11240         * c-lex.c (map): Make const.
11241         (cb_file_change): Update for callback passing a line map.
11242         Don't assume we have a previous map.  Remove sanity check
11243         about popping too many files.
11244         * cpperror.c (print_location): Make map const.
11245         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
11246         (cpp_make_system_header): Similarly.
11247         (search_from): Similarly.
11248         (_cpp_execute_include): Don't remember where we came from.
11249         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
11250         (struct cpp_reader): Make map const.
11251         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
11252         * cpplib.c (do_line): Update; line maps now hold sysp.
11253         (cpp_push_buffer): Similarly.
11254         (_cpp_do_file_change): Similarly; callback with map instead.
11255         (cpp_get_line_maps): Constify return value.
11256         (_cpp_pop_buffer): Update.
11257         * cpplib.h (struct cpp_file_change): Remove.
11258         (struct cpp_callbacks): Update.
11259         (cpp_get_line_maps): Constify return value.
11260         * cppmacro.c (_cpp_create_definition): Update.
11261         * cppmain.c (struct printer): Constify map.
11262         (maybe_print_line): Similarly.
11263         (print_line): Similarly.  Deduce flags 1 and 2 here.
11264         (cb_file_change): Update.
11265         * line-map.c (free_line_maps): Warn regardless.
11266         (add_line_map): Return pointer to const.  When passed NULL to_file
11267         with LC_LEAVE, use the obvious values for the return point so the
11268         caller doesn't have to figure them out.
11269         (lookup_line): Return pointer to const.
11270         (print_containing_files): Take pointer to const.
11271         * line-map.h (struct line_map): New members reason, sysp.
11272         (add_line_map): Return pointer to const.
11273         (lookup_line): Similarly.
11274         (print_containing_files): Take pointer to const.
11276 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
11277             Richard Henderson  <rth@redhat.com>
11279         * regmove.c (regmove_optimize): Avoid setting a register twice in
11280         a parallel set.
11282 2001-08-10  Richard Henderson  <rth@redhat.com>
11284         * doc/extend.texi (Arrays and pointers implementation): Document
11285         behavior of pointer/integer conversion.
11287 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
11289         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
11291 2001-08-10  Richard Henderson  <rth@redhat.com>
11293         * doc/extend.texi (C Implementation): New chapter.
11294         * doc/gcc.texi (Top): Link it in.
11296 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
11298         * doc/install.texi (Specific): Fix CVS merge botch.
11300 2001-08-10  Richard Henderson  <rth@redhat.com>
11302         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
11303         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
11305 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
11307         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
11308         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
11309         this macro is now required.
11311         * cselib.c (cselib_process_insn), flow.c (propagate_block),
11312         loop.c (find_and_verify_loops), reload.c (reload): Check
11313         for rtx code of CALL_INSN, not CALL, when deciding if we
11314         need to check for REG_SETJMP note.
11316         * gcse.c (compute_hash_table, compute_store_table): Update
11317         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
11318         logic.
11320         * config/avr/avr.c: Fix typo.
11321         * config/convex/convex.c (expand_movstr): Use adjust_address.
11322         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
11323         variable.
11324         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
11325         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
11326         Fix typo.
11327         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
11328         Do define STACK_BOUNDARY.
11329         * config/i370/i370.c: Include expr.h.
11330         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
11331         config/pa/som.h, config/v850/v850.h: Take in_ctors and
11332         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
11333         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
11334         * config/m88k/m88k.c: Include c-tree.h after expr.h.
11335         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
11336         * config/romp/romp.c: Include expr.h after tree.h.
11337         Include toplev.h.
11338         (output_fpop): Use xmalloc, not oballoc.
11339         * config/we32k/we32k.c: Include expr.h.
11341 2001-08-10  Kazu Hirata  <kazu@hxi.com>
11343         * config/h8300/h8300.h: Fix formatting.
11345 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
11347         * c-common.h (RETURN_NULLIFIED_P): Lose.
11348         * c-semantics.c (genrtl_return_stmt): Don't check it.
11350 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
11352         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
11353         (mips_annotate_frame_insn): New function.
11354         (mips_emit_frame_related_store): New function.
11355         (save_restore_insns): Don't mark instructions that set up the base
11356         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
11357         the store instructions instead.
11358         (mips_expand_prologue): If the stack size is moved into a temporary
11359         register, do not mark that move as frame-related.  Add a
11360         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
11362 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
11364         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
11365         stack slot as unchanging if current_function_calls_eh_return.
11367 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
11369         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
11370         access the second half of the TFmode scratch operand.
11372 2001-08-10  Anthony Green  <green@redhat.com>
11374         * java/class.c (emit_register_classes): Conditionalize code on
11375         JCR_SECTION_NAME.
11377 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11379         * doc/install.texi (Specific, avr): Fix cross-reference to the
11380         main manual to work both for info and HTML versions.
11382 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11384         * stmt.c (expand_null_return_1): Remove code to generate simple returns
11385         and "use_goto" argument.
11386         (expand_null_return, expand_value_return): Update all callers.
11387         * function.c (expand_function_end): Remove code to generate simple
11388         return.
11389         * config/vax/vax.md (epilogue): New expander for function return.
11390         * doc/md.texi (epilogue): Remove "if defined".
11392 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
11394         * Makefile.in: Partially revert my previous change:
11395         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
11396         of the hashtab.o and safe-ctype.o rules.
11398 2001-08-09  Richard Henderson  <rth@redhat.com>
11400         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
11401         (USE_COLLECT2): Remove duplicate definition.
11402         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
11403         (use_collect2): Remove dead code.
11404         * configure.in (use_collect2): Remove will_use_collect2 and
11405         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
11406         * configure: Rebuild.
11408         * target.h (targetm.asm_out.constructor): New.
11409         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
11410         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
11411         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
11412         * varasm.c (in_ctors, in_dtors): New.
11413         (assemble_constructor, assemble_destructor): Remove.
11414         (default_stabs_asm_out_destructor): New.
11415         (default_named_section_asm_out_destructor): New.
11416         (dtors_section, default_dtor_section_asm_out_destructor): New.
11417         (default_stabs_asm_out_constructor): New.
11418         (default_named_section_asm_out_constructor): New.
11419         (ctors_section, default_ctor_section_asm_out_constructor): New.
11420         * output.h: Update declarations.
11421         * c-decl.c (c_expand_body): Use target hooks instead of
11422         assemble_constructor and assemble_destructor.
11423         * profile.c (output_func_start_profiler): Likewise.
11424         * objc/objc-act.c (finish_objc): Likewise.
11425         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
11426         for the constructor.
11427         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
11429         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
11430         (DTORS_SECTION_ASM_OP): Likewise.
11431         (__CTOR_LIST__): Use attribute section when possible.
11432         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
11434         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
11435         ASM_OUTPUT_CONSTRUCTOR.
11437         * config/darwin.c (machopic_asm_out_constructor): New.
11438         (machopic_asm_out_destructor): New.
11439         * config/darwin-protos.h: Update declarations.
11440         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11441         (ASM_OUTPUT_DESTRUCTOR): Remove.
11442         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11443         * config/nextstep.c (nextstep_asm_out_constructor): New.
11444         (nextstep_asm_out_destructor): New.
11445         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11446         (ASM_OUTPUT_DESTRUCTOR): Remove.
11447         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11448         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
11449         ASM_OUTPUT_*STRUCTOR.
11450         * config/i386/aix386ng.h: Likewise.
11452         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
11453         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
11454         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
11455         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11456         * config/lynx.h: Likewise.
11457         * config/netware.h: Likewise.
11458         * config/psos.h: Likewise.
11459         * config/alpha/alpha-interix.h: Likewise.
11460         * config/alpha/elf.h: Likewise.
11461         * config/arc/arc.h: Likewise.
11462         * config/arm/aof.h: Likewise.
11463         * config/arm/coff.h: Likewise.
11464         * config/arm/elf.h: Likewise.
11465         * config/c4x/c4x.h: Likewise.
11466         * config/h8300/h8300.h: Likewise.
11467         * config/i386/cygwin.h: Likewise.
11468         * config/i386/djgpp.h: Likewise.
11469         * config/i386/i386-coff.h: Likewise.
11470         * config/i386/i386-interix.h: Likewise.
11471         * config/i386/sco5.h: Likewise.
11472         * config/i386/vsta.h: Likewise.
11473         * config/i386/win32.h: Likewise.
11474         * config/i960/i960-coff.h: Likewise.
11475         * config/ia64/sysv4.h: Likewise.
11476         * config/m68hc11/m68hc11.h: Likewise.
11477         * config/m68k/coff.h: Likewise.
11478         * config/m68k/mot3300.h: Likewise.
11479         * config/m88k/m88k.h: Likewise.
11480         * config/mcore/mcore-pe.h: Likewise.
11481         * config/mcore/mcore.h: Likewise.
11482         * config/mips/elf.h: Likewise.
11483         * config/mips/elf64.h: Likewise.
11484         * config/mips/iris6.h: Likewise.
11485         * config/pa/pa64-hpux.h: Likewise.
11486         * config/rs6000/sysv4.h: Likewise.
11487         * config/sh/sh.h: Likewise.
11488         * config/sparc/litecoff.h: Likewise.
11490         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
11491         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
11492         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11493         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11494         (ASM_OUTPUT_DESTRUCTOR): Remove.
11495         * config/a29k/a29k.c: Move include of tree.h.
11496         * config/a29k/udi.h: Delete file.
11497         * config/alpha/alpha.c (vms_asm_out_constructor): New.
11498         (vms_asm_out_destructor): New.
11499         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
11500         (EXTRA_SECTION_FUNCTIONS): Likewise.
11501         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11502         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11503         * config/c4x/c4x.c: Move include of tree.h.
11504         * config/clipper/clipper.c (clix_asm_out_constructor): New.
11505         (clix_asm_out_destructor): New.
11506         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11507         (ASM_OUTPUT_DESTRUCTOR): Remove.
11508         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11509         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11510         (TARGET_ASM_CONSTRUCTOR): New.
11511         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
11512         (sco_asm_out_constructor): New.
11513         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
11514         * config/i386/svr3gas.h: Remove stack grows up code.
11515         Remove code duplicated from i386/sysv3.h.
11516         (TARGET_ASM_CONSTRUCTOR): New.
11517         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11518         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
11519         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11520         (TARGET_ASM_CONSTRUCTOR): New.
11521         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
11522         (m68hc11_asm_out_destructor): New.
11523         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
11524         (TARGET_ASM_DESTRUCTOR): New.
11525         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
11526         * config/m68k/dpx2.h: Properly undef all the bits inherited from
11527         config/svr3.h pertaining to section manipulation.
11528         * config/m68k/dpx2g.h: Remove #if 0 code.
11529         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
11530         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
11531         (ASM_OUTPUT_CONSTRUCTOR): Remove.
11532         (TARGET_ASM_CONSTRUCTOR): New.
11533         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
11534         (m88k_svr3_asm_out_constructor): New.
11535         (m88k_svr3_asm_out_destructor): New.
11536         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11537         (ASM_OUTPUT_DESTRUCTOR): Remove.
11538         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11539         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
11540         * config/rs6000/aix.h: Likewise.
11541         * config/mips/rtems64.h: Don't undef removed constructor related bits.
11542         * config/mips/vxworks.h: Likewise.
11543         * config/rs6000/lynx.h: Likewise.
11544         * config/sh/elf.h: Likewise.
11545         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
11546         (DTORS_SECTION_ASM_OP): New.
11547         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11548         (ASM_OUTPUT_DESTRUCTOR): Remove.
11549         * config/sparc/sol2-sld-64.h: Likewise.
11550         * config/vax/vax.c (vms_asm_out_constructor): New.
11551         (vms_asm_out_destructor): New.
11552         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11553         (ASM_OUTPUT_DESTRUCTOR): Remove.
11554         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11556         * doc/tm.texi (@node Initialization): Update.
11558 2001-08-09  Richard Henderson  <rth@redhat.com>
11560         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
11561         (__do_global_dtors_aux): Use gp-relative static data to avoid
11562         one dynamic relocation.
11563         (__do_frame_setup): Register Java classes.
11564         * config/alpha/crtend.asm (__JCR_END__): New.
11566 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
11568         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
11569         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
11570         (GEN, STAGESTUFF): Add new files.
11571         (insn-constants.h, s-constants, tm-preds.h, s-preds,
11572         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
11573         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
11574         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
11575         as well as insn-codes.h and insn-flags.h in config.h; and no
11576         extra headers in tconfig.h and hconfig.h.
11578         * gencodes.c: Eliminate code to generate predicate declarations
11579         or #defines for md-file constants.
11580         * genconstants.c, genpreds.c: New files.
11582         * i386.md: Re-order guard expressions such that TARGET_64BIT
11583         comes first, when this permits better optimization.  Add
11584         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
11585         why this is desirable.
11587 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
11589         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
11590         (find_fde_for_dso): Remove.
11591         (_Unwind_IteratePhdrCallback): New.
11592         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
11593         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
11595 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11597         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
11598         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
11600 2001-08-09  Graham Stott  <grahams@redhat.com>
11602         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
11603         (vis_no_unit): Use it.
11604         (visualize_no_unit): Add the insn only if room exists.
11606 2001-08-09  Graham Stott  <grahams@redhat.com>
11608         * predict.c (estimate_probability): Replace magic numbers with
11609         appropriate enumeration.
11611 2001-08-09  Graham Stott  <grahams@redhat.com>
11613         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
11614         parameter.
11615         (EXTRACT_FLAGS): Likewise.
11617 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
11619         * config/mips/mips.c    (mips_legitimate_address_p): Check for
11620         CONST_INT in last patch.
11622 2001-08-08  Anthony Green  <green@redhat.com>
11624         * java/class.c (emit_register_classes): Use assemble_jcr if
11625         possible.  Keep the original mechanism as a fallback.
11626         * defaults.h (JCR_SECTION_NAME): Define if we have named section
11627         and weak symbol support.
11628         * crtstuff.c (__JCR_LIST__): Define.
11629         (__JCR_END__): Define.
11630         (_Jv_RegiserClasses): Define weak symbol if possible.
11631         (__do_global_ctors_aux): Register classes for ELF targets with
11632         weak symbol support.
11634 2001-08-08  Kazu Hirata  <kazu@hxi.com>
11636         * dbxout.c: Fix comment formatting.
11637         * dependence.c: Likewise.
11638         * df.c: Likewise.
11639         * diagnostic.c: Likewise.
11640         * dominance.c: Likewise.
11641         * doprint.c: Likewise.
11642         * dwarf2out.c: Likewise.
11643         * dwarfout.c: Likewise.
11644         * emit-rtl.c: Likewise.
11645         * except.c: Likewise.
11646         * explow.c: Likewise.
11647         * expmed.c: Likewise.
11648         * expr.c: Likewise.
11649         * flow.c: Likewise.
11650         * fold-const.c: Likewise.
11651         * function.c: Likewise.
11653 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11655         * global.c (retry_global_alloc): Avoid shadowing allocno.
11657 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
11659         * except.c (remove_fixup_regions): Fix typo.
11661 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
11663         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
11664         unsigned HOST_WIDE_INT to avoid warning.
11665         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
11666         * flow.c (set_block_for_new_insns): Likewise.
11668 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
11670         * sibcall.c (return_value_pseudo): New static variable.
11671         (skip_copy_to_return_value): Handle return_value_pseudo.
11672         (call_ends_block_p): Ensure that return_value_pseudo is set.
11673         (optimize_sibling_and_tail_recursive_call): Discover the
11674         load of pseudo return value in alternate exit block.
11676 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
11678         * calls.c (ECF_ALWAYS_RETURN): New constant.
11679         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
11680         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
11681         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
11682         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
11683         * rtl.c (reg_note_name): New name.
11684         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
11686 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
11688         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
11690 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
11692         * alias.c (get_alias_set): Return a previously calculated
11693         alias set for a VAR_DECL.
11694         * function.c (gen_mem_addressof): Calculate the alias set before
11695         touching the RTL.
11697 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
11699         * predict.def: Set hitrates according our experimental run.
11701 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
11703         * i386.h (HARD_REGNO_RENAME_OK): New macro.
11705 2001-08-08  H.J. Lu <hjl@gnu.org>
11707         * config/mips/mips.c (mips_unique_section): New. Copied from
11708         config/mips/elf.h.
11710         * config/mips/mips-protos.h (mips_unique_section): New
11711         prototype.
11713         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
11715         * config/mips/little.h: New. Generic little endian mips
11716         targets. Only mips*-*-linux* is converted to use it so far.
11718         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
11719         (WCHAR_TYPE): Defined
11720         (WCHAR_TYPE_SIZE): Likewise.
11721         (INIT_SUBTARGET_OPTABS): Likewise.
11722         (BSS_SECTION_ASM_OP): Likewise.
11723         (SBSS_SECTION_ASM_OP): Likewise.
11724         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11725         (ASM_DECLARE_OBJECT_NAME): Likewise.
11726         (UNIQUE_SECTION): Likewise.
11727         (EXTRA_SECTIONS): Likewise.
11728         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
11729         (ASM_OUTPUT_DESTRUCTOR): Likewise.
11730         (ASM_OUTPUT_DEF): Likewise.
11731         (HANDLE_SYSV_PRAGMA): Removed.
11732         (NO_IMPLICIT_EXTERN_C): Likewise.
11733         (TARGET_MEM_FUNCTIONS): Likewise.
11734         (STARTFILE_SPEC): Likewise.
11735         (ENDFILE_SPEC): Likewise.
11736         (LIB_SPEC): Likewise.
11737         (INVOKE__main): Likewise.
11738         (CTOR_LIST_BEGIN): Likewise.
11739         (CTOR_LIST_END): Likewise.
11740         (DTOR_LIST_BEGIN): Likewise.
11741         (DTOR_LIST_END): Likewise.
11742         (SET_ASM_OP): Likewise.
11743         (ASM_OUTPUT_SOURCE_LINE): Likewise.
11744         (ASM_OUTPUT_DEF): Likewise.
11745         (ASM_OUTPUT_IDENT): Likewise.
11747         * config/mips/mips.h (ASM_SPEC): Undefine before define.
11748         (CPLUSPLUS_CPP_SPEC): Likewise.
11749         (ASM_APP_ON) Redefine only if not defined.
11750         (ASM_APP_OFF): Likewise.
11751         (ASM_OUTPUT_SOURCE_LINE): Likewise.
11752         (ASM_OUTPUT_IDENT): Likewise.
11754         * config.gcc: Update tm_file for Linux/mips.
11756 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
11758         * cselib.c (cselib_record_sets): If insn is predicated, turn
11759         sources into IF_THEN_ELSEs.
11761         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
11762         Turn into define_insn_and_split.
11764         * sched-deps.c: Include "cselib.h".
11765         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
11766         Use cselib to turn memory addresses into VALUEs.
11767         (sched_analyze): Call cselib_init/cselib_finish if necessary.
11768         * sched-int.h (struct sched_info): New member USE_CSELIB.
11769         * sched-ebb.c (ebb_sched_info): Initialize it.
11770         * sched-rgn.c (rgn_sched_info): Likewise.
11771         * Makefile.in (sched-deps.o): Update dependencies.
11773         * cselib.h (cselib_subst_to_values): Declare.
11774         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
11775         that have no value and autoincs to be handled by generating a new
11776         dummy value.
11778 2001-08-08  Graham Stott  <grahams@redhat.com>
11780         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
11781         within fixed length SEQUENCE.
11783 2001-08-08  Graham Stott  <grahams@redhat.com>
11785         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
11786         (diagnostic_prefixing_rule): Likewise.
11787         (diagnostic_line_cutoff): Likewise.
11788         (diagnostic_kind_count): Likewise.
11790 2001-08-08  Graham Stott  <grahams@redhat.com>
11792         * alias.c (find_base_decl): Delete redundent assignment.
11794 2001-08-08  Graham Stott  <grahams@redhat.com>
11796         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
11797         (abs): Uppercase and paranthesize macro parameter.
11798         (MEM_DEPENDENCY): Add whitespace.
11800 2001-08-08  Graham Stott  <grahams@redhat.com>
11802         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
11803         failure check for CONST_INT
11805 2001-08-08  Graham Stott  <grahams@redhat.com>
11807         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
11808         (libcall_dead_p): Likewise.
11810         (mark_used_regs): Constify fmt.
11811         (find_use_as_address): Likewise.
11813 2001-08-08  Graham Stott  <grahams@redhat.com>
11815         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
11816          parameter.
11818 2001-08-08  Graham Stott  <grahams@redhat.com>
11820         * combine.c (combine_simplify_rtx): Update comment and
11821         remove erroneous test.
11823 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
11825         * cppinit.c (cpp_finish): Pop the final buffer without comment.
11826         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
11827         take care to avoid multiple no-newline at EOF warnings in that
11828         case.
11830 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
11832         * calls.c (expand_call): Do not emit INSN_SETJMP note.
11833         (emit_library_call_value_1): Likewise.
11834         (emit_call_1): Emit REG_SETJMP note.
11835         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
11836         of INSN_SETJMP
11837         * cselib.c (cselib_process_insn): Likewise.
11838         * flow.c (propagate_block): Likewise.
11839         * loop.c (find_and_verify_loops): Likewise.
11840         * reload.c (find_equiv_regs): Likewise.
11841         * reload1.c (reload): Likewise.
11842         * resource.c (mark_referenced_resources,
11843         mark_set_resources): Likewise.
11844         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
11845         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
11846         * haifa-sched.c (unlink_other_notes): Likewise.
11847         (reemit_notes): Likewise.
11848         * sched-ebb.c (sched_ebb): Likewise.
11849         * sched-rgc.c (sched_region): Likewise.
11850         * rtl.c (note_insn_name): Likewise.
11851         (reg_note_name): Add REG_SETJMP
11852         * rtl.h (reg_note): Add REG_SETJMP.
11853         (insn_note): Remove NOTE_INSN_SETJMP.
11855         * profile.c (branch_prob): Add fake edges for setjmp.
11857 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
11859         * config.gcc: Quote target_cpu_default2 correctly for
11860         powerpc*-*-* targets.
11862 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
11864         * cpplib.h, line-map.h: Update comments.
11865         * cppmain.c (printer_init): Move inline.
11866         (maybe_print_line, print_line): Take a map pointer.
11867         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
11868         (cb_file_change): Don't use prior value of print.map.
11870 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
11872         * doc/install.texi: Document fine-grained multilib configuration.
11874 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11876         * rtlanal.c (find_first_parameter_load): Call note_stores
11877         only on the instructions.
11879 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11881         * alias.c (nonlocal_mentioned_p):
11882         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
11883         * calls.c (emit_call_1): Likewise.
11884         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
11885         * cselib.c (cselib_process_insn): Likewise.
11886         * df.c (df_insns_modify): Likewise.
11887         * flow.c (need_fake_edge_p): Likewise.
11888         (propagate_one_insn): Likewise.
11889         * haifa-sched.c (reemit_notes): Likewise.
11890         * integrate.c (copy_insn_list): Likewise.
11891         * jump.c (delete_prior_computation): Likewise.
11892         * local-alloc.c (validate_equiv_mem): Likewise.
11893         * loop.c (scan_loop): Likewise.
11894         * predict.c (estimate_probability): Likewise.
11895         * reload.c (reload): Likewise.
11896         * sched-deps (sched_analyze): Likewise.
11897         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
11898         * gcse.c (compute_hash_table): Likewise.
11899         (mark_call): Likewise.
11900         (store_killed_in_insn): Likewise.
11902 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
11904         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
11906 2001-08-06  Richard Henderson  <rth@redhat.com>
11908         * varasm.c (assemble_gc_entry): Remove.
11909         * output.h: Likewise.
11911 2001-08-06  Richard Henderson  <rth@redhat.com>
11913         * varasm.c (assemble_constructor): Take a symbol_ref and a
11914         priority instead of a bare string.  Move priority handling
11915         here from cp/decl2.c.
11916         * output.h: Update decls.
11918         * c-decl.c (c_expand_body): Update calls to assemble_constructor
11919         and assemble_destructor.
11920         * profile.c (output_func_start_profiler): Likewise.
11921         * objc/objc-act.c (finish_objc): Likewise.
11922         (build_module_descriptor): Return the symbol not the symbol name.
11924 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
11926         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
11927         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
11928         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
11929         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
11930         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
11931         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
11933 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11935         * cpperror.c (print_containing_files): Moved to line-map.c.
11936         (print_location): line-map.c handles re-listing or otherwise.
11937         * cpphash.h (struct lexer_state): Remove next_bol.
11938         (struct cpp_buffer): Remove include_stack_listed.
11939         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
11940         Remove faked buffer handling.
11941         (_cpp_do_file_change): Tweak.
11942         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
11943         * cppmain.c (struct printer): Remove filename.
11944         (print_line, cb_file_change): Update accordingly.
11945         * line-map.c: Include intl.h.
11946         (init_line_maps): Initialize last_listed.
11947         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
11948         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
11949         (print_containing_files): New.
11950         * line-map.h (struct line_maps): New member last_listed.
11951         (print_containing_files, INCLUDED_FROM): New.
11952         * Makefile.in: Update.
11953         * po/POTFILES.in: Add line-map.c.
11955 2001-08-06  Richard Henderson  <rth@redhat.com>
11957         * except.c (convert_from_eh_region_ranges_1): Never mark
11958         USE or CLOBBER insns as throwing.
11960         * expr.c (store_constructor): Don't clobber memory targets.
11962 2001-08-06  Andreas Jaeger  <aj@suse.de>
11964         * profile.c (branch_prob): Remove unused variable insn.
11966         * Makefile.in (local-alloc.o): Add dependency on except.h.
11968         * local-alloc.c: Include except.h for can_throw_internal prototype.
11970 2001-08-06  Richard Henderson  <rth@redhat.com>
11972         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
11973         * function.c (expand_main_function): Implement it.
11974         * doc/tm.texi: Document it.
11976 2001-08-06  Stan Shebs  <shebs@apple.com>
11978         * doc/install.texi: Document powerpc-*-darwin* details.
11980 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
11982         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
11983         (ASM_CPU_SPEC): Move back to rs6000.h
11984         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
11986         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
11988         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
11989         readded.
11991         * config/rs6000/linux64.h: Ditto.
11993         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11994         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
11995         nothing.
11997         Remove accidently readded definitions of FUNCTION_PROLOGUE,
11998         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
12000         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
12001         to rs6000.h
12003 2001-08-05  Richard Henderson  <rth@redhat.com>
12005         * local-alloc.c (update_equiv_regs): Do not move insns that
12006         can throw.
12008 2001-08-05  Jan Hubicka  <jh@suse.cz>
12010         * Makefile.in (reload1.o): Add dedendancy on except.h
12011         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
12012         prototypes.
12013         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
12014         indicating wehther edges has been cleaned up.
12015         * reload1.c: Inlucde except.h
12016         (fixup_abnormal_edges): Accept deleted insns.
12017         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
12018         after combine.
12020 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
12022         * cpplib.c (do_line): Correct line number after pop_buffer.
12024 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12026         PR preprocessor/3824
12027         * line-map.c: Update comments.
12028         * line-map.h: Update comments.
12029         * tradcif.y: Don't consider large numbers unsigned.
12031 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
12033         PR preprocessor/3081
12034         * c-lex.c (map): New.
12035         (cb_file_change): Update map and use it.
12036         (cb_def_pragma, cb_define, cb_undef): Use map and line.
12037         (c_lex): Update to use map.
12038         * cpperror.c (print_location): Move to using logical line numbers.
12039         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
12040         (cpp_make_system_header): Similarly.
12041         (_cpp_execute_include): Stop line numbering hacks.  Store the
12042         line we will return to.
12043         * cpphash.h (CPP_BUF_LINE): Remove.
12044         (struct cpp_buffer): Remove lineno and pseudo_newlines.
12045         Add map and return_to_line.
12046         (_cpp_do_file_change): Update.
12047         * cppinit.c (cpp_start_read): Update line kludge.
12048         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
12049         (trigraph_ok): Use logical line numbers for diagnostics.
12050         (skip_block_comment): Likewise.
12051         (skip_whitespace): Likewise.
12052         (skip_line_comment): Use pfile->line instead.
12053         (_cpp_lex_token): Update to use logical line numbering exclusively.
12054         Handle BOL locally.  Accept new lines in directives, but keep
12055         pfile->line decremented.  Diagnostics use logical lines.  Update
12056         directive handling.
12057         * cpplib.c (SEEN_EOL): New.
12058         (skip_rest_of_line, check_eol): Use it.
12059         (end_directive): Increase line number when accepting the newline
12060         at the end of a directive.
12061         (run_directive): Simplify.
12062         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
12063         (_cpp_do_file_change): Update to take buffer line number as an
12064         argument, and store the current map in the cpp_reader.  Remove
12065         line number kludges.
12066         (_cpp_do__Pragma): Restore output position after a _Pragma.
12067         (cpp_push_buffer): Don't set output line or lineno.
12068         (_cpp_pop_buffer): Transfer more info from a faked buffer.
12069         Remove line kludge.  Set output_line.
12070         * cppmacro.c (builtin_macro): Update handling of __LINE__.
12071         (parse_arg): Use logical lines.
12072         (save_lookahead_token): Save EOFs too now.
12073         * cppmain.c (struct printer): Fix comments.
12074         (printer_init): Simplify, let caller do errors.
12075         (scan_translation_unit, check_multiline_token, dump_macro): Update.
12076         (maybe_print_line): Simplify.
12077         (print_line): Don't print a linemarker if -P.
12078         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
12079         (cb_file_change): Simplify.
12080         * line-map.h (LAST_SOURCE_LINE): Fix.
12081         (CURRENT_LINE_MAP): New.
12083 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
12085         * doloop.c (doloop_modify_runtime): Properly compute number of
12086         iterations if loop was unrolled.
12088         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
12089         if their CSELIB_VAL_PTRs are.
12091         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
12092         (setup_spill_pointers): Initialize it.
12093         (spill_restore_mem): Set it.
12094         (do_spill, do_restore): Use it to add REG_INC note.
12095         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
12097         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
12098         asms if other insns are available.
12100         * config/ia64/ia64.c (condop_operator): New predicate.
12101         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
12102         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
12103         patterns.
12105         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
12106         temporary register than directly using a MEM.
12108 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
12110         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
12111         parameter in last change.
12113 2001-08-04  Zack Weinberg  <zackw@panix.com>
12115         * sparc.md: Don't use #if inside C test expression.
12117 2001-08-04  Richard Henderson  <rth@redhat.com>
12119         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
12121 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12123         * cpphash.h (struct cpp_reader): New member directive_line.
12124         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
12125         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
12126         do_pragma): Pass line to callbacks.
12127         (start_directive): Record line of directive.
12128         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
12129         cb_include): Similarly.
12130         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
12131         Similarly.
12133 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
12135         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
12136         comment.
12138 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
12140         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
12142         * reload1.c (fixup_abnormal_edges): New static function.
12143         (reload): Use it.
12145         * flow.c (need_fake_edge_p): New function.
12146         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
12147         avoid call insn to be very last insn in the insn stream.
12149         * profile.c (branch_prob): Call flow_call_edges_add instead of
12150         doing that by hand; cleanup cfg to re-merge basic blocks once
12151         we are done.
12153 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12155         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
12156         are also on line-map.h.
12157         * cppfiles.c (stack_include_file): Update.
12158         * cpphash.h (struct cpp_buffer): New member return_at_eof.
12159         (_cpp_pop_buffer): New.
12160         * cppinit.c (cpp_destroy, cpp_finish): Update.
12161         (do_includes): Mark each buffer to return at EOF.
12162         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
12163         return as requested.
12164         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
12165         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
12166         * cpplib.h (cpp_pop_buffer): Remove.
12167         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
12168         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
12169         buffers.
12170         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
12171         to pop buffers.
12172         (do_preprocessing): Update.
12173         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
12174         * c-parse.in (_yylex): Similarly.
12175         * scan-decls.c (scan_decls): Similarly.
12176         * line-map.h: Update comments.
12178         * objc/Make-lang.in (objc-act.o): Update dependencies.
12180 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12182         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
12183         and soft register for operand 0.
12184         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
12186 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12188         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
12189         register for operand 0.
12190         ("bitcmpqi_z_used"): Allow memory for operand 0.
12191         (split "bitcmpqi"): New split to handle address reg as operand 1.
12193 2001-08-04  Andreas Jaeger  <aj@suse.de>
12195         * gcse.c: Revert Daniel's last patch.
12197 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
12199         * sparc-protos.h: Add prototypes for fp_zero_operand and
12200         reg_or_0_operand.
12201         * sh-protos.h: Add prototype for fpul_operand.
12203 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
12205         * doc/extend.texi (Other Builtins): Fix typo in last change.
12207 2001-08-03  Richard Henderson  <rth@redhat.com>
12209         * target.h (gcc_target): Add asm_out.named_section,
12210         section_type_flags, have_named_sections.
12211         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
12212         (TARGET_HAVE_NAMED_SECTIONS): New.
12213         (TARGET_SECTION_TYPE_FLAGS): New.
12215         * Makefile.in (toplev.o): Depend on TARGET_H.
12216         (varasm.o, dbxout.o): Likewise.
12217         * c-common.c (decl_attributes): Check targetm.have_named_sections
12218         instead of ifdef ASM_OUTPUT_SECTION_NAME.
12219         * dbxout.c (dbxout_function_decl): Likewise.
12220         (dbxout_function_end): Likewise.
12221         * toplev.c (compile_file): Likewise.
12222         * varasm.c (exception_section): Likewise.
12223         * cp/decl2.c (finish_objects): Likewise.
12225         * defaults.h (EH_FRAME_SECTION): Remove.
12226         (EH_FRAME_SECTION_ASM_OP): Remove.
12227         (EH_FRAME_SECTION_NAME): New.
12228         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
12229         (UNIQUE_SECTION_P): Remove.
12230         * dwarf2out.c (SECTION_FORMAT): Remove.
12231         (ASM_OUTPUT_SECTION): Remove.
12232         (output_call_frame_info): Use named_section_flags.
12233         (output_comp_unit, dwarf2out_start_source_file): Likewise.
12234         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
12235         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
12236         * varasm.c (in_eh_frame, eh_frame_section): Remove.
12237         (named_section_flags): New.
12238         (named_section): Use it and targetm.section_type_flags.
12239         (resolve_unique_section): New.
12240         (assemble_start_function): Use it.
12241         (asm_emit_uninitialised, assemble_variable): Likewise.
12242         (default_section_type_flags): New.
12243         (default_no_named_section, default_elf_asm_named_section): New.
12244         (default_coff_asm_named_section, default_pe_asm_named_section): New.
12245         * output.h: Update varasm.c decls.
12246         (SECTION_*): New flags.
12248         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
12249         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
12251         * config/elfos.h (UNIQUE_SECTION_P): Remove.
12252         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
12253         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
12254         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
12255         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
12256         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
12257         * config/mips/elf.h, config/mips/elf64.h: Likewise.
12258         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
12259         * config/pa/pa64-hpux.h,
12261         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
12262         (TARGET_ASM_NAMED_SECTION): New.
12263         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
12264         * config/alpha/vms.h, config/arm/coff.h: Likewise.
12265         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
12266         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
12267         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
12268         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
12269         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
12270         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
12271         * config/i386/sco5.h, config/i386/win32.h: Likewise.
12272         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
12273         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
12274         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
12275         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
12276         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
12277         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
12278         * config/sparc/sysv4.h: Likewise.
12280         * config/nextstep.h: Error until named sections implemented.
12282         * config/a29k/a29k.c (a29k_asm_named_section): New.
12283         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
12284         (vms_section_type_flags, vms_asm_named_section): New.
12285         * config/arm/arm.c (arm_elf_asm_named_section): New.
12286         * config/avr/avr.c (asm_output_section_name): Remove.
12287         * config/avr/avr-protos.h: Update.
12288         * config/c4x/c4x.c (c4x_asm_named_section): New.
12289         * config/h8300/h8300.c (h8300_asm_named_section): New.
12290         * config/i386/i386.c (sco_asm_named_section): New.
12291         * config/i386/winnt.c (SECTION_PE_SHARED): New.
12292         (i386_pe_section_type_flags): New.
12293         (i386_pe_asm_named_section): New.
12294         * config/i386/i386-protos.h: Update.
12295         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
12296         * config/mcore/mcore.c (mcore_asm_named_section): New.
12297         * config/mips/mips.c (iris6_asm_named_section): New.
12298         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
12299         instead of UNIQUE_SECTION_P.
12300         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
12301         (xcoff_asm_named_section): New.
12302         * config/sh/sh.c (sh_asm_named_section): New.
12303         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
12305         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
12306         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
12307         (EH_FRAME_SECTION_NAME): New.
12308         (EXCEPTION_SECTION): New.
12309         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
12310         (DEBUG_*_SECTION): Remove.
12311         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
12312         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
12313         (EH_FRAME_SECTION_ASM_OP): Remove.
12315         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
12316         (ASM_OUTPUT_SECTION_NAME): Remove.
12317         (TARGET_ASM_NAMED_SECTION): New.
12318         (TARGET_HAVE_NAMED_SECTIONS): New.
12319         (TARGET_SECTION_TYPE_FLAGS): New.
12320         (EH_FRAME_SECTION_ASM_OP): Remove.
12321         (EH_FRAME_SECTION_NAME): New.
12323 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
12325         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
12326         for complex expressions when cfun == 0.
12327         * doc/extend.texi: Document that __builtin_constant_p can be
12328         used in data initializers as well as functions.
12330 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
12332         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
12333         variable I locally, instead of expecting a declaration in the
12334         calling context.
12336 2001-08-03  Richard Henderson  <rth@redhat.com>
12338         * except.c (collect_one_action_chain): Add an explicit cleanup
12339         action if regions surrounding a catch were encoded entirely
12340         within the call-site entry.
12342 2001-08-03  Richard Henderson  <rth@redhat.com>
12344         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
12345         don't take REGNO of a non-register.
12347 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12349         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
12350         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
12351         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
12352         (__gthread_mutex_init_function): New function for mutex initialization.
12354 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
12356         * Makefile.in: Revert screwed up commit.
12358 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12360         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
12361         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
12362         merged by linker script to get a final _exit().
12363         (__do_global_dtors): New for destructor handling in specific exit
12364         section.
12365         (__do_global_ctors): New for constructors in specific install section.
12366         (__map_data_section): Map data sections before running constructors.
12367         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
12368         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
12369         (DTORS_SECTION_ASM_OP): Likewise.
12370         (CTORS_SECTION_FUNCTION): Define to force a reference to
12371         __do_global_ctors.
12372         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
12374 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
12376         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
12378         * Makefile.in: Add df.h to gcse.c dependencies.
12380 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12382         * varasm.c (output_constant_def_contents): Use for the length of a
12383         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
12384         depending on which is larger.
12386 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
12388         * gcse.c: Include df.h for use as a dataflow analyzer.
12389         Remove regvec.
12390         Declaration of reg_set_info: gone.
12391         New df_analyzer variable used by store motion.
12392         (reg_set_info): Deleted.
12393         (mark_mem_regs): New function, analyze regs used by a mem.
12394         (store_ops_ok): Use dataflow analyzer results to determine if
12395         necessary regs are changed in the block.
12396         (find_moveable_store): Remove check for symbol ref, we can handle
12397         much more complex expressions now.
12398         (compute_store_table): Remove most of the code, it's unnecessary
12399         now that the dataflow analyzer records the info for us.
12400         (store_killed_after): Add parameter to say whether to do the
12401         store_ops_okay test, used to speed up testing when we already know
12402         the answer, and just want to know if the store itself was killed.
12403         (build_store_vector): Largely rewritten to calculate the various
12404         vectors properly, and somewhat optimized.
12405         (store_motion): Init the df_analyzer, get REG_DEF chains.
12406         Also handle trapping expressions (since mems almost always trap)
12407         (simple_mem): Redefine what a simple mem is.
12409 2001-08-03  DJ Delorie  <dj@redhat.com>
12411         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
12412         set from a constant part of the condition.
12414 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
12416         * mkdeps.c (deps_add_default_target): Make local variable
12417         ``start'' a const char pointer.
12418         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
12420 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12422         * doc/install.texi (Configuration): Fix markup.
12423         (Specific, i?86-*-udk): Likewise.
12424         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
12425         --with-gnu-ld.
12426         Document --enable-threads and --enable-libgcj status.
12427         (Specific, mips-sgi-irix*): Canonicalize triples.
12428         (Specific, mips-sgi-irix5): Warn about problems with this config.
12429         Mention required GNU as patch.
12430         Native assembler problems are fixed.
12431         (Specific, mips-sgi-irix6): Update O32 ABI support status.
12432         Document --enable-threads and --enable-libgcj status.
12434 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
12436         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
12437         of mkinstalldirs.
12439 2001-08-03  Richard Henderson  <rth@redhat.com>
12441         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
12442         constant data.
12444 2001-08-03  Richard Henderson  <rth@redhat.com>
12446         * rtlanal.c (find_first_parameter_load): Stop if we
12447         reach a CODE_LABEL at BOUNDARY.
12449 2001-08-03  Richard Henderson  <rth@redhat.com>
12451         * config/alpha/alpha.md (force_movdi): New insn.
12452         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
12453         Tweek FRP marking of VMS prologue insns.
12454         * config/alpha/vms.h (EPILOGUE_USES): New.
12456 2001-08-02  Richard Henderson  <rth@redhat.com>
12458         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
12460 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
12462         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
12463         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
12464         config/convex/convex.h, config/d30v/d30v.c,
12465         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12466         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
12467         config/mips/mips.h, config/mn10200/mn10200.h,
12468         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
12469         config/v850/v850.h, config/vax/openbsd.h,
12470         config/vax/openbsd1.h, config/vax/ultrix.h,
12471         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
12472         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
12473         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
12474         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
12475         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
12476         in comments and documentation.
12478 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12480         * line-map.c: New.
12481         * line-map.h: New.
12482         * Makefile.in (line-map.o): New.
12483         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
12484         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
12485         * cpperror.c (print_containing_files): Similarly.
12486         (print_location): Update.  Don't output a space before _Pragma.
12487         * cppfiles.c (stack_include_file): Set to line 1 immediately.
12488         (stack_include_filee, cpp_make_system_header): Update.
12489         (_cpp_execute_include): Get logical line number right for calling
12490         as-yet-unterminated #include.
12491         * cpphash.h (struct cpp_reader): Add line_maps.
12492         (_cpp_do_file_change): Update.
12493         * cppinit.c (cpp_create_reader): Initialize line maps.
12494         (cpp_destroy): Destroy line maps.
12495         (cpp_start_read): Get logical line number right.
12496         * cpplex.c (parse_string): Only warn once for multi-line strings.
12497         Use boolean variable for null warning.
12498         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
12499         already.
12500         (do_include_common): End the directive early.
12501         (do_line): Don't warn about out-of-range lines in preprocessed
12502         source.  Update.  Remove unused variables.
12503         (_cpp_do_file_change): Update for new line mapping.
12504         (pragma_cb): New typedef.
12505         (cpp_register_pragma): Stop looking ahead before calling the
12506         handler.  Clean up.
12507         (do_pragma_system_header): End directive early.
12508         (cpp_get_line_maps): New.
12509         (cpp_pop_buffer): Fudge logical line.  Update.
12510         * cpplib.h: Include line-map.h
12511         (enum cpp_fc_reason): Remove.
12512         (struct cpp_file_change): Update.
12513         (cpp_get_line_maps): New.
12514         * cppmain.c (struct_printer): New member map.
12515         (cb_file_change): Update for new mappings.
12516         * fix-header.c (cb_file_change): Similarly.
12518 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
12520         * Makefile.in (libgcc.mk): Define mkinstalldirs.
12521         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
12523 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
12525         * config/vax/vax.c: include expr.h.
12527 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
12529         * Makefile.in ($(srcdir)/configure): Only rebuild in
12530         maintainer mode.
12531         ($(srcdir)/config.in): Only define in maintainer mode.
12532         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
12534 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
12536         * doc/install.texi (Install GCC: Binaries): Update Bull info.
12538 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12540         * gcc.c (set_collect_gcc_options): New function, split out from
12541         main.
12542         Ignore elided switches.
12543         (do_spec_1): Invoke before executing command.
12544         (set_input): Export.
12545         Move declaration ...
12546         * gcc.h (set_input): ... here.
12547         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
12548         file.
12550 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
12552         Kill -fhonor-std.
12553         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
12554         interaction.
12555         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
12557 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
12559         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
12560         for the unnamed instructions it expands to.
12562 2001-08-02  Richard Henderson  <rth@redhat.com>
12564         * regclass.c (call_really_used_regs): Conditionally define.
12565         (init_reg_sets_1): Don't use it if not defined.
12566         (fix_register): Similarly, don't set it.
12568 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12570         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
12571         Correct comment that had been missed in the previous change.
12573 2001-08-01  Stan Shebs  <shebs@apple.com>
12575         * config/darwin.c (machopic_stub_name): Try matching by name.
12576         (update_stubs): New function.
12577         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
12578         unconditionally.
12580 2001-08-01  Richard Henderson  <rth@redhat.com>
12582         * except.c (output_function_exception_table): Use assemble_align.
12583         * varasm.c (assemble_eh_label): Remove.
12584         (assemble_eh_align, assemble_eh_integer): Remove.
12586 2001-08-01  Robert Lipe  <robertl@caldera.com>
12588         * dwarfout.c: Remove reference to README.DWARF.
12590 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
12592         * regclass.c (call_really_used_regs): New array for registers which
12593         are actually used by a call.
12594         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
12595         new array.
12596         (fix_register): Set call_really_used too.
12597         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
12598         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
12600 2001-08-01  Richard Henderson  <rth@redhat.com>
12602         * read-rtl.c (read_name): Consider \r whitespace.
12604 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
12606         * config.gcc: Recognize powerpc-*-netbsd*.
12608         * doc/install.texi (Host/target specific installation notes for
12609         GCC): Mention powerpc-*-netbsd*.
12611         * config/rs6000/netbsd.h: New file.
12612         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
12613         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
12614         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
12615         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
12616         (TARGET_VERSION): Redefine.
12618         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
12619         mcall-netbsd as a match for mcall-sysv.
12620         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
12621         (ncrti.S, ncrtn.S): New targets.
12622         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
12624         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
12625         "netbsd' as a V4 ABI.
12626         (ASM_SPEC): Check for -mcall-netbsd.
12627         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
12628         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
12629         (LIB_SPEC, ENDFILE_SPEC): Ditto.
12630         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
12631         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
12632         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
12633         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
12635         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
12636         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
12638 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12640         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
12641         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
12642         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
12643         including "unwind-pe.h".
12645 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
12647         * rs6000.md (define_splits): Kill unused constraints.
12649 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
12650                               Jan Hubicka  <jh@suse.cz>
12652         * function.c (thread_prologue_and_epilogue_insns): Kill code
12653         dealing with non-existent CFG.
12655 2001-08-01  Kazu Hirata  <kazu@hxi.com>
12657         * alias.c: Fix comment formatting.
12658         * bitmap.c: Likewise.
12659         * builtins.c: Likewise.
12660         * calls.c: Likewise.
12661         * c-common.c: Likewise.
12662         * c-decl.c: Likewise.
12663         * c-dump.c: Likewise.
12664         * c-lex.c: Likewise.
12665         * collect2.c: Likewise.
12666         * combine.c: Likewise.
12667         * conflict.c: Likewise.
12668         * cppfiles.c: Likewise.
12669         * cppinit.c: Likewise.
12670         * cpplex.c: Likewise.
12671         * cpplib.c: Likewise.
12672         * cppmacro.c: Likewise.
12673         * cppspec.c: Likewise.
12674         * c-pragma.c: Likewise.
12675         * crtstuff.c: Likewise.
12676         * cse.c: Likewise.
12677         * cselib.c: Likewise.
12678         * c-semantics.c: Likewise.
12679         * c-typeck.c: Likewise.
12681 2001-08-01  H.J. Lu <hjl@gnu.org>
12683         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
12685 2001-08-01  H.J. Lu <hjl@gnu.org>
12687         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
12689 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
12691         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
12692         contextualizing Objective-C class name lookup by the lexer.
12693         (typespec_reserved_nonattr): Disable ObjC class name lookup after
12694         seeing a TYPESPEC.
12695         (protocoldef): Add support for forward @protocol declarations.
12696         (yylexname): Suppress ObjC class name lookup in certain contexts;
12697         re-enable after lookup is complete.
12698         (_yylex): Re-enable ObjC class name lookup when certain
12699         punctuation marks are seen.
12701         * objc/objc-act.c (check_protocol_recursively): New function used
12702         for finding circular dependencies in protocols.
12703         (objc_declare_protocols): New function for handling forward
12704         @protocol declarations.
12705         (receiver_is_class_object): Detect the case when 'self' is used
12706         inside of a class method.
12707         (build_message_expr): Issue a warning if class method is desired
12708         but instance method is found instead.
12709         (conforms_to_protocol): Streamline.
12710         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
12711         protocol Foo, even if 'Bar foo' does not.
12712         (check_protocols): Streamline.
12713         (start_protocol): Add checks for circular and duplicate protocol
12714         definitions.
12715         (encode_aggregate_within): For typedefs of structs, encode the
12716         underlying struct.
12717         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
12718         (objc_declare_protocols): New prototype.
12720 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12722         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
12723         * cpplex.c (handle_newline): Update prototype.  Maintain logical
12724         line number.
12725         (skip_escaped_newlines, skip_block_comment, parse_string):
12726         Update accordingly.
12727         (_cpp_lex_token): Update, and store token position within the token.
12728         * cpplib.h (struct cpp_token): Add line and column entries.
12729         * cppmacro.c (replace_args): Position stringified tokens correctly.
12731 2001-08-01  Andreas Jaeger  <aj@suse.de>
12733         * basic-block.h: Add prototype for last_loop_beg_note.
12735 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
12737         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
12738         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
12739         comment.
12740         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
12741         while handling WITH_CLEANUP_EXPR node. Use second operand calling
12742         expand_decl_cleanup.
12743         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
12744         the first RTX.
12745         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
12746         operand while calling simple_cst_equal.
12747         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
12748         operand is the cleanup expression, the third is the RTL_EXPR.
12749         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
12751 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
12753         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
12755 2001-07-31  matthew green  <mrg@eterna.com.au>
12757         * config.gcc (i386-*-netbsdelf): New description.
12758         * config/i386/netbsd-elf.h: New file.
12760 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
12762         * loop.c (check_dbra_loop): Use single_set to compute
12763         jump_label.
12765 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
12767         PowerPC reorg and support for powerpc64-*-linux*.
12769         Also fixes emitting of constants on 32 bit and 64 bit
12770         platforms.
12772         * config.gcc: powerpc64-*-linux* is a new target.
12773         Things that needed aix.h now also include xcoff.h
12775         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
12776         xcoff.h.
12777         Move AIX specific stuff into aix.h.
12778         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
12779         with more than just XCOFF now.
12780         (SET_ASM_OP): Remove, now defined where needed.
12781         (FUNCTION_PROLOGUE): New macro definition.
12782         (FUNCTION_EPILOGUE): New macro definition.
12783         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
12785         * config/rs6000/xcoff.h: New file.
12787         * config/rs6000/linux64.h: New file.
12789         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
12791 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
12793         * rs6000.c (print_operand_address): Handle ELF syntax.
12794         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
12795         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
12796         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
12798 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
12800         * rs6000.c (rs6000_override_options): Only disable
12801         flag_function_sections for XCOFF.
12802         (exact_log2_cint_operand): New predicate.
12803         (reg_or_{add,sub}_cint64_operand): New predicates.
12804         (add_operand): Compare CONST_INT with fewer function calls.
12805         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
12806         (print_operand, case 'p'): Ensure positive operand.
12807         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
12808         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
12809         (PREDICATE_CODES): Add new predicates.
12810         * rs6000.md (addsi3): Split 32-bit constants more correctly.
12811         (divsi3, modsi3): Ensure positive power-of-2.
12812         (adddi3): Use new predicate.  Split 32-bit constants more
12813         correctly.  Re-arrange splitter to handle any constant.
12814         (subdi3): Use new predicate.
12815         (divdi3, moddi3): Ensure positive power-of-2.
12816         (movdi): Use rs6000_emit_set_const.
12817         (load_toc_v4_pic_di): Delete.
12819 2001-07-31  Graham Stott <grahams@redhat.com>
12821         * function.c (pad_below): Revert 2001-07-26 patch.
12823 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
12825         * reg-stack (convert_regs_1): Fix best edge condition.
12827 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
12829         * jump.c (duplicate_loop_exit_test): Better test for jumps
12830         entering the loop; create loop pre_header.
12832 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
12834         * doc/install.texi: Add s390 and s390x as new targets.
12835         * doc/invoke.texi: Add documentation of S/390 and zSeries
12836         target options.
12837         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
12839 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
12841         * config/m68k/m68k.md: Replace all general_operand with
12842         nonimmediate_operand for all destinations.
12843         * config/m68k/m68k.c (not_sp_operand): Likewise.
12845 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
12847         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
12849 2001-07-30  Richard Henderson  <rth@redhat.com>
12851         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
12852         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
12854 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
12856         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
12857         Add missing doc strings
12858         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
12859         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
12861 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
12863         * i386.c (ix86_output_main_function_alignment_hack): New function.
12864         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
12866         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
12867         edges by EDGE_DFS_BACK flag.
12868         (dump_edge_info): Add dfs_back flag.
12869         * basic-block.h (EDGE_DFS_BACK): New constant.
12870         (mark_dfs_back_edges): Declare.
12871         * alias.c (loop_p): Remove.
12872         (mark_constant_function): Use mark_dfs_back_edges.
12874         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
12875         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
12876         (compensate_edge): Break out from ...
12877         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
12878         (convert_regs_2): Set block_done once block is really done;
12879         Do updating of the predecessors counts.
12881         * toplev.c (rest_of_compilation): Recompute block_for_insn
12882         before post-reload cfg_cleanup.
12883         * function.c (thread_prologue_epilogue_insns):
12884         Call set_block_for_new_insns when emitting prologue directly.
12886 2001-07-30  Andreas Jaeger  <aj@suse.de>
12888         * jump.c: Add prototype for mark_modified_reg.
12890         * cse.c (set_live_p): Add unused attribute.
12892         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
12893         overflow.
12894         (scan_for_source_files): Use long for count to avoid overflow.
12895         (output_data): Likewise.
12896         (output_data): Don't use string concatatenation to silence gcc
12897         -traditional.
12899         * predict.c: Fix typos and grammar.
12901         * gcse.c (insert_insn_end_bb): Remove unused variables.
12903 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
12905         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
12906         (attempt_auto_inc): LIkewise.
12907         (mark_used_reg): Likewise.
12908         (try_pre_increment_1): Likewise.
12909         * regclass.c (regclass): Likewise.
12910         * global.c (allocno_compare): Update comment; change scaling factor.
12911         * local-alloc.c (QTY_CMP_PRI): Likewise.
12912         * regs.h (REG_FREQ_FROM_BB): New.
12913         (REG_FREQ_MAX): Likewise.
12915 2001-07-30  H.J. Lu <hjl@gnu.org>
12917         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
12918         -D_GNU_SOURCE.
12920 2001-07-30  H.J. Lu  (hjl@gnu.org)
12922         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
12923         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
12924         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
12926 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
12928         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
12929         as -mthumb-interwork when -mcpu=arm7 is specified.
12931 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
12933         * predict.def (noreturn, loop branch, loop exit): Mark as first
12934         match heuristics.
12936 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
12938         * combine.c (try_combine): Avoid barrier after noop jumps.
12940 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12942         * cpphash.h (struct cpp_reader): Remove import_warning.
12943         * cpplib.c (skip_rest_of_line): Don't bother turning off
12944         macro expansion.
12945         (parse_include): Move include handling to...
12946         (do_include_common): ... here.  Move import warning from...
12947         (do_import): ... here.
12948         (do_pragma_poison): Don't do a callback for poison identifiers.
12949         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
12950         * cppmain.c (setup_callbacks): Similarly.
12952 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
12954         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
12955         handle multiple sets.
12956         * except.c (sjlj_mark_call_sites): .... here.
12957         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
12959 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
12961         Suggested by Richard Henderson and Richard Kenner:
12962         * combine.c (recog_for_combine): Use the fake recog
12963         only if instruction does not match.
12964         * rtl.h (NOOP_MOVE_INSN_CODE): New.
12965         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
12967         * combine.c (try_combine): Discover noop jump as direct jump.
12969 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
12971         * df.c (df_rd_global_compute): Add successors to worklist, not
12972         current item.
12973         (df_ru_global_compute): Ditto.
12975 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
12977         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
12978         increment REG_N_SETS.
12980 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
12982         * sbitmap.h: New prototype for sbitmap_a_xor_b.
12984         * sbitmap.c (sbitmap_a_xor_b): New function.
12985         ifdef the basic block stuff on IN_GCC.
12987 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12989         * cppexp.c (parse_defined): Always record the macro name.
12990         (lex): Don't worry about identifiers, or special-case
12991         CPP_NOT here.
12992         (_cpp_parse_expr): Figure out at the end of the routine
12993         whether we saw a valid !defined() expression.
12994         * cppfiles.c (stack_include_file): Update for mi_valid.
12995         (_cpp_pop_file_buffer): Similarly.
12996         * cpplex.c (_cpp_lex_token): Similarly.
12997         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
12998         mi_if_not_defined, mi_lexed): Remove.
12999         (mi_valid): New.
13000         * cpplib.c (do_if): Simplify.
13001         (do_endif, push_conditional, _cpp_handle_directive): Update
13002         for renaming of mi_state to mi_valid.
13003 doc:
13004         * cpp.texi: Add index entries for digraphs, and add comment
13005         that C++ refers to them as alternative tokens.
13007 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
13009         * basic-block.h (CLEANUP_PRE_LOOP): New.
13010         * except.c (finish_eh_generation): Update call of cleanup_cfg.
13011         * sibcall.c (optimize_sibling_calls): Likewise.
13012         * toplev.c (rest_of_compilation): Likewise.
13013         * flow.c (try_forward_edges): Take argument MODE;
13014         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
13015         (try_optimize_cfg): Update call of try_forward_edges.
13017 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
13018                                 Jan Hubicka  <jh@suse.cz>
13020         * (validate_replace_rtx_1): Fix simplification of MINUS.
13022 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
13024         PR preprocessor/3669
13025         * cppinit.c (init_dependency_output): Turn off dump requests
13026         if sending dependencies to stdout.
13028 2001-07-28  Richard Henderson  <rth@redhat.com>
13030         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
13031         not optimizing.
13033 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
13035         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
13037 2001-07-28  Kazu Hirata  <kazu@hxi.com>
13039         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
13040         is VAR_DECL first to prevent an ICE.
13042 2001-07-28  Richard Henderson  <rth@redhat.com>
13044         * varasm.c (immed_real_const_1): Don't elide special cases for
13045         nested functions.
13046         (clear_const_double_mem): Clear const_tiny_rtx too.
13048 2001-07-28  Richard Henderson  <rth@redhat.com>
13050         * dwarf2out.c (dw_val_class_offset): New.
13051         (struct dw_ranges_struct, dw_ranges_ref): New.
13052         (ranges_table, ranges_table_allocated): New.
13053         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
13054         (add_AT_offset, add_ranges, output_ranges): New.
13055         (print_die, output_die): Handle dw_val_class_offset.
13056         (attr_checksum, size_of_die, value_format): Likewise.
13057         (gen_lexical_block_die): Handle non-contiguous blocks.
13058         (gen_block_die): Likewise.
13059         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
13060         if needed.  Dump the ranges table.
13061         * final.c (final_start_function): Remove unnecessary notes and
13062         rebuild the block tree before numbering the blocks.
13063         * function.c (reorder_blocks_0): Walk the existing block tree
13064         to unmark all blocks.
13065         (reorder_blocks_1): Create block fragments when duplicate block
13066         notes are seen.
13067         (reorder_fix_fragments): New.
13068         (reorder_blocks): Call it.
13069         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
13071 2001-07-28  Richard Henderson  <rth@redhat.com>
13073         * emit-rtl.c (adjust_address): Make a copy of the memory address.
13075 2001-07-28  Richard Henderson  <rth@redhat.com>
13077         * flow.c (add_to_mem_set_list): New function.
13078         (init_propagate_block_info): Use it.
13079         (mark_set_1): Likewise.
13080         (insn_dead_p): Canonicalize memory address for dead store
13081         comparison.  Allow wider mode stores to kill narrower mode stores.
13082         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
13083         (invalidate_mems_from_set): Don't handle MEMs.
13085 2001-07-28  Kazu Hirata  <kazu@hxi.com>
13087         * config/h8300/h8300.h: Fix formatting.
13089 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
13091         * basic-block.h (EDGE_FREQUENCY): New macro.
13092         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
13093         for new BB/edges.
13094         * flow.c (find_sub_basic_blocks): Likewise.
13095         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
13096         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
13098         * predict.c (DEF_PREDICTOR): New argument FLAGS.
13099         (HITRATE): New macro.
13100         (PRED_FLAG_FIRST_MATCH): New constant.
13101         (predictor_info): New field flgags.
13102         (combine_predictions_for_insn): Use DS theory to combine
13103         probabilities; set the edge probabilities when finished.
13104         (estimate_probability): Avoid duplicated matches
13105         of LOOP_BRANCH heuristics for nested loops; update comment.
13106         * predict.def: Add flags for each prediction, set probabilities
13107         according to B&L paper.
13108         * predict.h (DEF_PREDICTOR): New argument FLAGS.
13110         * profile.c (compute_branch_probabilities):  Cleanup way the edge
13111         probabilities are computed and REG_BR_PROB notes are dropped; if
13112         values does not match, emit error.
13113         (init_branch_prob): Do error instead of warning when profile driven
13114         feedback is missing or corrupt.
13116 2001-07-27  DJ Delorie  <dj@redhat.com>
13118         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
13119         against a constant, try to adjust the compare to have the desired
13120         constant in it so that min/max optimizations happen more often.
13122 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13124         * flow.c (last_loop_beg_note): New function.
13125         (redirect_edge_and_branch): Use it.
13126         (split_edge): Likewise.
13128         * alias.c (loop_p): Avoid uninitialized memory access.
13130         * flow.c (try_forward_edges): Avoid accessing freed memory.
13132         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
13133         variable access.
13135 2001-07-26  Andrew Haley  <aph@redhat.com>
13136         Joern Rennecke <amylaar@redhat.com>
13138         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
13139         (SUBTARGET_CPP_ENDIAN_SPEC): New.
13140         (SUBTARGET_CPP_SPEC): New.
13141         (CPP_SPEC): Remove.
13142         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
13143         (SUBTARGET_CPP_PTR_SPEC): New.
13144         (CPP_DEFAULT_CPU_SPEC): New.
13145         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
13146         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
13147         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
13148         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
13149         (SUBTARGET_CPP_SPEC): Define as an empty string.
13151 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13153         * doc/install.texi (Configuration): Properly link the host
13154         specific instructions also when generating HTML.
13156 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
13158         * flow.c (redirect_edge_and_branch_force): Test
13159         target->global_live_at_start.
13161 2001-07-26  Richard Henderson  <rth@redhat.com>
13163         * simplify-rtx.c (avoid_constant_pool_reference): Export.
13164         * rtl.h (avoid_constant_pool_reference): Declare it.
13165         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
13166         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
13168 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
13170         * rtl.h (cleanup_barriers): Declare.
13171         * jump.c (cleanup_barriers): New function.
13172         * toplev.c (rest_of_compilation): Call cleanup_barriers
13173         before loop optimizer and after bb_reorder.
13175         * flow.c (back_edge_of_syntactic_loop_p): New.
13176         (split_edge): Use it.
13178 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13180         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
13182 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
13184         * cse.c (cse_process_notes): Replace any registers if the address
13185         remains valid.
13187 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
13189         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
13190         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
13191         (propagate_block): Update prototype.
13192         * flow.c (update_life_info): Simplify the CFG and
13193         recalculate the global regs which are alive when
13194         removing dead code during a global update.
13195         (propagate_block): Return non-zero if an INSN is
13196         deleted.
13198 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13200         * Makefile.in (LIBICONV): Define.
13202 2001-07-26  Catherine Moore  <clm@redhat.com>
13204         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
13205         of conditional to avoid tree checking errors.
13207 2001-07-26  Kazu Hirata  <kazu@hxi.com>
13209         * regmove.c (regmove_optimize): Don't replace a reg with
13210         another reg of a different mode.
13212 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
13214         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
13215         limit length of dependency flush list.
13216         * params.h (MAX_PENDING_LIST_LENGTH): Define.
13217         * sched-int.h  (struct deps): Add pending_flush_length field.
13218         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
13219         has 1 element in it.
13220         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
13221         (sched_analyze): After a jump, if the pending memory flush list is too
13222         large, flush the pending lists.
13223         (init_deps): Initialize pending_flush_length to 0.
13224         * doc/invoke.texi (max_pending_list_length): Document parameter.
13226 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
13228         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
13229         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
13230         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
13232 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13234         * cpphash.h (struct_lexer_state): Delete was_skipping.
13235         Move skipping here from struct cpp_reader.
13236         * cpplex.c (parse_identifier): Update.
13237         (_cpp_lex_token): Don't skip tokens in a directive.
13238         * cpplib.c (struct if_stack): Update.
13239         (start_directive, end_directive): Don't change skipping state.
13240         (_cpp_handle_directive): Update.
13241         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
13242         (do_else, do_endif): Update; only check for excess tokens if not
13243         in a skipped conditional block.
13244         (push_conditional): Update for new struct if_stack.
13246 2001-07-26  Graham Stott  <grahams@redhat.com>
13248         * function.c (locate_and_pad_parm): Also pad initial offset
13249         so that the total argument size also includes the padding.
13251 2001-07-26  Graham Stott <grahams@redhat.com>
13253         * gensupport.c (alter_output_for_insn): Correct enable checking failure
13254         change XSTR to XTMPL.
13256         (process_one_cond_exec): Likewise
13258 2001-07-25  Richard Henderson  <rth@redhat.com>
13260         * varasm.c (assemble_variable): Create DECL_RTL before setting
13261         TREE_ASM_WRITTEN.
13263 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
13265         * predict.c (estimate_probability): Avoid duplicated predictions.
13267         * loop.c (find_and_verify_loops): Grok multiple barriers.
13269 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13271         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
13273         * dbxout.c: Consistently use putc instead of fputc.
13274         (print_wide_int): New function; call instead of direct fprintf.
13275         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
13276         (dbxout_type_fields, dbxout_type_method_1): Likewise.
13277         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
13278         (print_int_cst_octal): Likewise.
13279         (print_octal): Show we wrote characters.
13280         (dbxout_type): Set have_used_extensions in more places.
13282 2001-07-25  Catherine Moore  <clm@redhat.com>
13284         * config/v850/v850.c (v850_va_arg):  Use addr
13285         instead of valist to build incr.
13287 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
13289         * flow.c (delete_dead_jumptables): New function.
13290         (life_analyzis): Call it.
13291         * bb-reorder.c (skip_insns_after_block): Handle contradictory
13292         sequences.
13294 2001-07-25  Richard Henderson  <rth@redhat.com>
13296         * except.c (reachable_handlers): Handle a region being removed
13297         out from under a RESX.
13299 2001-07-25  Richard Henderson  <rth@redhat.com>
13301         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
13302         swap GE/GT if it is an fp comparison.
13304 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
13306         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
13307         operands.
13309 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
13311         * ssa.c (rename_insn_1): Do not wrap an assignment to a
13312         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
13313         glitch.
13315         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
13316         throw an exception.
13317         (visit_expression): When attempting to simplify an expression,
13318         retrieve any modes for arguments before they are simplified
13319         to constants.
13321 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
13322             Janis Johnson  <janis@us.ibm.com>
13324         * stmt.c (expand_goto): A nonlocal goto can be a call too.
13325         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
13326         pointer parameters to match documented usage of nonlocal_goto.
13327         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
13328         parameters to their correct order.
13329         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
13330         parameters to their correct order.
13332 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
13334         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
13336 2001-07-25  Jan Hubicka  <jh@suse.cz>
13337             Richard Henderson  <rth@redhat.com>
13339         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
13340         the sequence.
13341         (make_edges): New argument update_p; populate the edge cache if set.
13342         (find_basic_blocks): Update make_edges invocation.
13344 2001-07-24  Joel Sherrill <joel@OARcorp.com>
13346         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
13348 2001-07-24  Joel Sherrill <joel@OARcorp.com>
13350         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
13351         -Acpu and -Amachine.h.
13352         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
13353         Corrected header to say ELF not a.out.
13354         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
13355         when given -msoft-float.
13357 2001-07-24  Joel Sherrill <joel@OARcorp.com>
13359         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
13360         extra multilib parts like arm-elf.
13361         (i960-*-coff*, i960-*-rtems): Should not use collect2.
13362         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
13363         crtfini.o as extra multilib parts.
13365 2001-07-24  Joel Sherrill <joel@OARcorp.com>
13367         * configure.in: Add rtems as a supported thread model.
13368         * gthr-rtems.h: Add missing entry point __gthread_active_p.
13369         * configure: Rebuilt.
13371 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
13373         * stor-layout.c (get_mode_alignment): make it work when
13374         BITS_PER_UNIT is not a power of two.
13375         * builtins.c (get_pointer_alignment): Likewise.
13377 2001-07-24  Richard Henderson  <rth@redhat.com>
13379         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
13380         the retrieved constant into the expected mode.
13382 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
13384         * flow.c (try_simplify_condjump): Avoid duplicated edges.
13385         (verify_flow_info): Check for duplicated edges; clarify
13386         error reporting.
13388         * flow.c (block_label): Update basic_block_for_insn.
13389         (commit_edge_insertions): Call compute_bb_for_insn.
13391         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
13392         returns too.
13394         * flow.c (redirect_edge_and_branch,
13395         try_optimize_cfg): Use redirect_edge_succ_nodup
13396         (redirect_edge_succ_nodup): New.
13397         * basic_block.h (redirect_edge_succ_nodup): Declare.
13399         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
13400         after gcse.
13402 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
13404         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
13405         (try_crossjump_to_edge): Update commetns.
13406         (try_crossjump_bb): Likewise.
13408 2001-07-24  Richard Henderson  <rth@redhat.com>
13410         * combine.c (distribute_notes): Move set of need_refresh
13411         for noop_move_p down to catch all cases.
13413 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
13415         * recog.c (split_all_insns_noflow): New.
13416         * rtl.h (split_all_insns_noflow): Declare.
13417         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
13418         * m68hc11.c (m68hc11_reorg): Likewise.
13419         * sh.c (machine_dependent_reorg): Likewise.
13420         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
13421         call.
13423 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
13425         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
13426         (ashlsi3_n splitter): Likewise.
13427         (lshrsi3_n splitter): Likewise.
13429         (GOTaddr2picreg): Make const SImode.
13430         (sym_label2reg): Likewise.
13431         (symGOT2reg): Likewise.
13432         (symGOTOFF2reg) Likewise.
13434         (casesi_worker_0): Make unspec SImode.
13436 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
13438         * config/sh/sh.c (barrier_align): Check that an operand really is
13439         an insn before extracting its INSN_CODE.
13441 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
13443         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
13444         dangling else.
13446         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
13447         for SImode to prevent overflow.
13449 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13451         * config/mips/irix6-libc-compat.c: New file.
13452         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
13453         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
13454         passing workaround.
13456 2001-07-24  lars brinkhoff  <lars@nocrew.org>
13458         * rtl.texi (REG_POINTER): Document.
13459         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
13460         QFmode, HFmode, TQFmode, QCmode, and HCmode.
13462 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
13464         * flow.c (delete_noop_moves): Do not confuse libcall regions.
13466 2001-07-23  Richard Henderson  <rth@redhat.com>
13468         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
13470 2001-07-23  Kazu Hirata  <kazu@hxi.com>
13472         * config/h8300/h8300-protos.h: Add a prototype for
13473         general_operand_dst_push.
13474         * config/h8300/h8300.c (general_operand_dst_push): New.
13475         * config/h8300/h8300.h (OK_FOR_T): New.
13476         (EXTRA_CONSTRAINT): Use it.
13477         * config/h8300/h8300.md (movqi_push): Remove and integrate into
13478         the existing movqi pattern.
13479         (movhi_push): Likewise.
13481         * reload.c: Fix comment typos.
13483 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
13485         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
13487 2001-07-23  H.J. Lu  (hjl@gnu.org)
13489         * doc/extend.texi: Update __builtin_return_address and
13490         __builtin_frame_address.
13492 2001-07-23  Richard Henderson  <rth@redhat.com>
13494         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
13495         before CSE.
13496         * config/i386/i386.md: New setcc+movzbl peephole2.
13498 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13500         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
13501         * objc/objc-act.c: Include debug.h.
13502         (synth_module_prologue): Save and restore debug hooks too.
13504 2001-07-23  lars brinkhoff  <lars@nocrew.org>
13506         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
13507         and C4X_FLOAT_FORMAT.
13508         (BOOL_TYPE_SIZE): Document.
13510 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
13512         * unroll.c (loop_iterations): Fix miscalculation of initial
13513         giv offset.
13515 2001-07-13  Andrew Haley  <aph@redhat.com>
13517         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
13518         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
13519         * config/sh/sh.c (sh_can_redirect_branch): New function.
13520         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
13521         * reorg.c (steal_delay_list_from_target): Use
13522         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
13524 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
13526         * flow.c (try_simplify_condjump): Unlink insn chain on
13527         fallthru edge; use can_fallthru.
13529 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
13531         * basic-block.h (find_sub_basic_block): Declare.
13532         * flow.c (make_edges): New arguments MIN and MAX;
13533         (find_sub_basic_blocks): Revamp to use make_edges
13534         and purge_dead_edges.
13535         (find_basic_blocks): Update call of find_sub_basic_block.
13537         * recog.c (split_all_insns): Always expect CFG to be consistent;
13538         call find_sub_basic_blocks in case something has changed.
13539         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
13540         has been built.
13542         * basic-block.h (delete_noop_moves): Declare.
13543         * combine.c (combine_instructions): Call it.
13544         (recog_for_combine): Tolerate noop moves
13545         (distribute_notes): Force refresh when register dies at noop move.
13546         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
13547         too.
13548         (life_analysis): Update delete_noop_moves call.
13549         (set_noop_p): Move too ...
13550         * rtlanal.c (noop_move_p): ... here.
13551         * rtl.h (noop_move_p): Declare.
13553         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
13554         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
13555         after combine.
13556         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
13557         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
13559 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
13561         * reload.c (push_reload): Fix typo in comment.
13562         (find_reloads_address): Ditto.
13563         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
13565 2001-07-22  Richard Henderson  <rth@redhat.com>
13567         * flow.c: Grammar check and clarify a lot of comments.
13568         (try_simplify_condjump): Rename variables to be clearer.
13569         (try_forward_edges): Skip complex and fallthru edges.
13570         Rearrange tests to avoid duplicate checks.
13571         (flow_find_cross_jump): Likewise.
13572         (outgoing_edges_match): Allow match if neither branch has
13573         probability data.  Loosen probability match to 5%.
13574         (try_crossjump_to_edge): Hoist repeated indirection into
13575         local variables.
13576         (try_crossjump_bb): Don't check complex edges.  Eliminate
13577         redundant crossjump tests.
13578         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
13579         checks before more expensive checks.
13581 2001-07-22  Richard Henderson  <rth@redhat.com>
13583         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
13584         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
13585         arguments.
13587 2001-07-22  Richard Henderson  <rth@redhat.com>
13589         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
13590         (const_sint32_operand): Likewise.
13591         * m68k.md (anon mulsi pattern): Use const_int_operand not
13592         const_sint32_operand.
13593         (umulsi3_highpart): Zero extend a constant input.
13594         (smulsi3_highpart): Don't bother checking SImode constant.
13595         (const_umulsi3_highpart): Give op3 DImode.
13596         (const_smulsi3_highpart): Likewise.
13598 2001-07-22  Richard Henderson  <rth@redhat.com>
13600         * flow.c (split_block): Make sure bb_note is included in the
13601         new block when splitting before a label.
13603 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
13605         * basic-block.h (redirect_edge_and_branch_force,
13606         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
13607         * flow.c (redirect_edge_and_branch_force,
13608         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
13609         (redirect_edge_and_branch_force): Fix copying of lifeness information.
13610         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
13611         * ifcvt.c (dead_or_predictable): Take BB as an new destination
13612         instead of label; update CFG after transformation.
13613         (find_if_case_1): Update call, use redirect_edge_and_branch_force
13614         for finishing the transformation; handle even case where ELSE
13615         does not follow THEN.
13616         (find_if_case_2): Update call of dead_or_predictable; simplify
13617         CFG update.
13619         * emit-rtl.c (split_branch_probability): New global variable.
13620         (try_split): Take care to set split_branch_probability and
13621         create REG_BR_PROB note for new jump insns.
13622         * md.texi (define_split): Document new feature.
13624         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
13626 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13628         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
13629         (asm_out_file): Remove redundant declaration.
13630         (assemble_asm): Remove old #if 0 block.
13631         (assemble_variable): Remove end of function; debug output is
13632         now handled with global_decl.  Remove old #if 0 block.  Update.
13633         Remove saved_in_section and associated no-op code.
13634         * Makefile.in (varasm.o): Correct dependencies.
13636 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
13638         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13639         the definition in defaults.h.
13641 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
13643         * jump.c: Update comments.
13644         (delete_barrier_successors, delete_unreferenced_labels,
13645         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
13646         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
13647         jump_optimize, jump_optimize_minimal): Kill.
13648         (rebuild_jump_labels): Move code from jump_optimize_1.
13649         (purge_line_number_notes): Likewise.
13650         (copy_loop_headers): Likewise.
13651         * reg-stack.c: Update comment.
13652         * stmt.c: Likewise.
13653         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
13654         JUMP_AFTER_REGSCAN): Kill.
13655         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
13656         purge_line_number_notes and copy_loop_headers.
13658 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
13659            Richard Henderson  <rth@redhat.com>
13661         * dbxout.c (dbxout_global_decl): New.
13662         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
13663         * sdbout.c (sdbout_finish): New.
13664         (sdbout_debug_hooks): Use it, add comments.
13665         (sdbout_global_decl): Defer initialised public vars to
13666         sdbout_finish.
13667         * varasm.c (assemble_variable): Don't output debug information
13668         for file-scope variables.
13670 2001-07-22  Richard Henderson  <rth@redhat.com>
13672         * config/alpha/alpha.c (get_trap_mode_suffix): New.
13673         (get_round_mode_suffix): New.
13674         (print_operand): Use them for [/].  Remove support for [&'`()+].
13675         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
13676         * config/alpha/alpha.md (attr round_suffix): New.
13677         (attr trap_suffix): New.
13678         (all insns): Set them appropriately.  Use %/ instead of the
13679         myriad punctuators.
13681 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13683         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
13685 2001-07-22  Richard Henderson  <rth@redhat.com>
13687         * regrename.c (regrename_optimize): Compute nregs for each
13688         potential target register.
13690 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
13691            Richard Henderson  <rth@redhat.com>
13693         * dbxout.c (dbxout_global_decl): New.
13694         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
13695         * sdbout.c (sdbout_finish): New.
13696         (sdbout_debug_hooks): Use it, add comments.
13697         (sdbout_global_decl): Defer initialised public vars to
13698         sdbout_finish.
13699         * varasm.c (assemble_variable): Don't output debug information
13700         for file-scope variables.
13702 2001-07-21  H.J. Lu  (hjl@gnu.org)
13704         * config/mips/mips.c (mips_cpu): Moved into ...
13705         (override_options): Here.
13707         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
13708         mips_tune.
13709         (mips_cpu): Removed.
13711 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13713         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
13714         ("iorqi3"): Likewise.
13715         ("xorqi3"): Likewise.
13716         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
13717         ("*subhi3_sp): Likewise.
13718         ("*subhi3"): Likewise.
13719         ("extendhisi2"): Accept D, X and Y as source operand to avoid
13720         reload problems.
13722 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
13724         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
13725         * config/freebsd.h: Likewise.
13726         * config/linux.h: Likewise.
13727         * config/openbsd.h: Likewise.
13728         * config/alpha/linux-elf.h: Likewise.
13729         * config/arm/linux-elf.h: Likewise.
13730         * config/d30v/d30v.h: Likewise.
13731         * config/fr30/fr30.h: Likewise.
13732         * config/ia64/aix.h: Likewise.
13733         * config/ia64/ia64.h: Likewise.
13734         * config/mips/linux.h: Likewise.
13735         * config/pj/pj.h: Likewise.
13736         * config/rs6000/linux.h: Likewise.
13737         * config/sparc/linux.h: Likewise.
13738         * config/sparc/linux64.h: Likewise.
13740 2001-07-20  Bruce Korb  <bkorb@gnu.org>
13742         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
13743         because getc() and char* may disagree on signedness.
13745 2001-07-20  Richard Henderson  <rth@redhat.com>
13747         * doc/rtl.texi (REG_DEAD): Update for current semantics.
13749         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
13750         insns to delete in the presence of cc0 in a jump insn.
13752 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
13753                                 Jan Hubicka  <jh@suse.cz>
13755         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
13756         of doing the change by hand.
13758 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
13760         * rtlanal.c (set_noop_p): Return true for noop jumps.
13762         * expr.c (emit_single_push_insn): Add call to push expander.
13763         * expr.h (optab_index): Add OTI_push
13764         (push_optab): New constant.
13765         * genopinit.c (optabs): Add push_optab.
13766         * optabs.c (init_optab): Init push optab.
13767         * md.texi (push??1): Document
13769 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13771         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
13772         expand to emit the pattern; put a REG_INC note for push/pop
13773         instructions.
13774         ("movdf", "movdf_internal"): Likewise.
13775         ("movsi", "movsi_internal"): Likewise.
13776         ("movsf", "movsf_internal"): Likewise.
13777         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
13779 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13781         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
13782         gen_highpart.
13784 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
13786         * params.def: Change default max inline insns to 100.
13788 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
13790         * combine.c (combine_simplify_rtx): Generate a new shift operation
13791         when simplifying the first operand of a (neg (ashift)) expression.
13793 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
13795         * regclass.c (N_REG_INTS): Use only 32 bits per element.
13797 2001-07-20  Kelley Cook  <kelley.cook@home.com>
13799         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
13800         information.   Move rest into ...
13801         (*-*-solaris): ... here.  Eliminate redundant information and
13802         reword necessary packages section.  Delete 4.x assembler bug info.
13803         (sparc-sun-*): Merge into ...
13804         (sparc-sun-sunos*): here.
13806 2001-07-20  Catherine Moore  <clm@redhat.com>
13808         * config/v850/v850.md (casesi): Generate LABEL_REF
13809         with Pmode.
13811 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
13813         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
13814         * i386.c (ix86_zero_extend_to_Pmode): Make global.
13815         * i386.md (strclrsi expander): Use it.
13817 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13819         * integrate.c (copy_insn_list): handle
13820         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
13821         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
13822         identically as to CODE_LABEL.
13824         * fold-const (fold): Convert A/B/C to A/(B*C) and
13825         A/(B/C) to (A/B)*C
13827         * except.c (connect_post_landing_pads): Delete the RESX insns.
13829 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
13831         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
13833         * config/mips/mips.md (nmadd/nmsub): Use macro.
13835 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
13837         * cppinit.c (remove_dup_dir): Make static.
13838         (remove_dup_dirs): Make static. Only warn about preempting a
13839         system directory with a non-system directory.
13841 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
13843         * ifcvt.c (noce_try_store_flag_constants): Correct order
13844         of parameters to trunc_int_for_mode.
13846 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
13848         * reorg.c (fill_simple_delay_slots): If an instruction might throw
13849         an exception that will be caught within this function, do not fill
13850         its delay slot with any subsequent instruction.
13852 2001-07-19  Steve Ellcey <sje@cup.hp.com>
13854         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
13855         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
13856         pointer extension instruction.
13857         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
13858         * simplify-rtx.c (simplify_unary_operation) Likewise.
13859         * explow.c (convert_memory_address) Check value of
13860         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
13861         less than zero.
13862         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
13863         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
13864         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
13865         Add Multilib Support.
13866         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
13867         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
13868         Add Multilib Support.
13869         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
13870         support.
13871         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
13872         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
13873         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
13875 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
13877         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
13878         old and new operands in `<', `3' and `b'.
13880 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13882         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
13883         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
13884         (toplev.o): Don't depend on xcoffout.h.
13885         * c-decl.c: Include debug.h
13886         (duplicate_decls): Use debug hook.
13887         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
13888         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13889         (dbxout_types): Remove.
13890         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
13891         * debug.c (do_nothing_debug_hooks): Update.
13892         (debug_true_tree, debug_nothing_rtx): New.
13893         * debug.h (struct rtx_def): New.
13894         (struct gcc_debug_hooks): New hooks ignore_block,
13895         outlining_inline_function and label.
13896         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
13897         dwarf2out_frame_finish): New.
13898         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
13899         Make static, update prototype.
13900         (dwarf2_debug_hooks): Update.
13901         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
13902         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
13903         * dwarfout.c (dwarf_debug_hooks): Update.
13904         * emit-rtl.c: Include debug.h.
13905         (remove_unnecessary_notes): Use debug hook.
13906         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
13907         (final_scan_insn): Use debug hook.
13908         * integrate.c (output_inline_function): Use debug hook.
13909         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
13910         (sdb_debug_hooks): Update.
13911         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
13912         * toplev.c: Don't include xcoffout.h.
13913         (note_outlining_of_inline_function, debug_ignore_block): Remove.
13914         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
13915         Remove.
13916         * tree.h (dwarf2out_do_frame): Remove.
13918 2001-07-19  Catherine Moore  <clm@cygnus.com>
13920         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
13922 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
13924         * reload1.c (eliminate_regs_in_insn): When updating a set
13925         to the frame pointer to the hardware frame pointer, perform
13926         the update always not just when REPLACE is set.
13928         * reload1.c (choose_reload_regs): Don't inherit a reload
13929         that crosses multiple registers if registers past the first
13930         don't fit in the desired class.
13932         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
13933         when negating constants.
13935 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
13937         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
13938         * doc/tree.texi: Ditto.
13940 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
13941             Jakub Jelinek  <jakub@redhat.com>
13943         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
13944         (extract_cie_info): Handle "eh" augmentation properly,
13945         remember eh_ptr.
13946         (struct frame_state, __frame_state_for): New.
13948 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13950         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
13951         HANDLE_SYSV_PRAGMA): Define.
13952         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
13953         previous args.
13954         (copy_object): Caller changed.
13956 2001-07-19  Andreas Schwab  <schwab@suse.de>
13958         * configure.in (assembler dwarf2 debug_line support): Define nop
13959         insn for m68k.
13960         * configure: Regenerated.
13962 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13964         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
13965         dwarfout.h.
13966         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
13967         to conditionally compiled block.
13968         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13969         * dbxout.h (dbxout_function): Remove.
13970         * debug.c (do_nothing_debug_hooks): Update.
13971         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
13972         global_decl, deferred_inline_function.
13973         * dwarf2out.c (dwarf2_debug_hooks): Update.
13974         (dwarf2out_global_decl): New.
13975         * dwarfout.c: Don't include dwarfout.h.
13976         (dwarfout_global_decl, dwarfout_function_decl,
13977         dwarfout_deferred_inline_function): New.
13978         (dwarf_debug_hooks): Update.
13979         * dwarfout.h: Remove.
13980         * final.c: Don't include dwarfout.h.
13981         * sdbout.c (sdbout_global_decl): New.
13982         (sdbout_debug_hooks): Update.
13983         * toplev.c: Don't include dwarfout.h.
13984         (check_global_declarations, rest_of_compilation): Use new debug hooks.
13985         (note_deferral_of_defined_inline_function): Remove.
13986         * toplev.h (note_deferral_of_defined_inline_function): Remove.
13987         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
13988         * ch/lex.c: Don't include dwarfout.h.
13989         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
13990         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
13991         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
13992         * cp/optimize.c: Include debug.h.
13993         (maybe_clone_body): Use debug hook.
13994         * cp/semantics.c: Include debug.h.
13995         (expand_body): Use debug hook.
13996         * po/POTFILES.in: Remove dwarfout.h.
13998 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
14000         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
14001         * c-parse.in (yyerror, _yylex): Similarly.
14002         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
14003         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
14004         Update comments.
14005         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
14006         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
14008 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
14010         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
14011         in-class declaration at -g1.  Fixes c++/2814.
14013 2001-07-18  Richard Henderson  <rth@redhat.com>
14015         * doc/md.texi (reload_in/out): Document restrictions in predicates
14016         and constraints for these patterns.  Document empty string matching
14017         ALL_REGS.
14019 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
14021         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
14023 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
14025         * cse.c: Undo my previous patch.
14027 2001-07-18  Tom Tromey  <tromey@redhat.com>
14029         For PR java/2812:
14030         * configure: Rebuilt.
14031         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
14032         instead.
14033         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
14035 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
14036                                 Jan Hubicka  <jh@suse.cz>
14038         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
14039         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
14040         * jump.c (mark_jump_label): Do not forward branches.
14042 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
14044         * cse.c (delete_trivially_dead_insns): Delete the libcall block
14045         when return value is unused.
14047 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14049         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
14051 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
14053         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
14054         on error.  We can't blindly return the result of
14055         pthread_mutex_trylock because it returns a positive number on
14056         error, while we must return -1 on error.
14057         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
14058         fixes.
14059         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
14061 2001-07-18  Andreas Jaeger  <aj@suse.de>
14063         * integrate.c (output_inline_function): Correct type of debug_hooks.
14065 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
14067         * combine.c (combine_simplify_rtx): DIV can be treated
14068         associatively for floats if unsafe math optimisations are enabled.
14070 2001-07-17  Richard Henderson  <rth@redhat.com>
14072         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
14074 2001-07-17  Richard Henderson  <rth@redhat.com>
14076         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
14077         don't force the function address into a register.
14078         (expand_call, emit_library_call_value_1): Update callers.
14079         * builtins.c (expand_builtin_apply): Likewise.
14080         * expr.h (prepare_call_address): Update decl.
14082 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
14084         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
14085         config directory.
14086         * config/i386/chorus.h: Move up.
14087         * config/sparc/chorus.h: Likewise.
14088         * config/rs6000/chorus.h: Likewise.
14089         * config/chorus.h: Moved here.
14091 2001-07-17  Andreas Schwab  <schwab@suse.de>
14093         * configure.in  (assembler eh_frame optimization): Handle big
14094         endian.
14095         * configure: Regenerated.
14097 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
14099         * expr.c (epxand_expr): Convert divisions into multiplications by
14100         reciprocals if -ffast-math.
14102 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
14104         * dbxout.c (dbxout_really_begin_function): Rename to
14105         dbxout_begin_function.
14106         (dbx_debug_hooks, xcoff_debug_hooks): Update.
14107         (dbxout_begin_function): Remove.
14108         (dbxout_function): Update.
14109         (dbxout_source_line): Update prototype.
14110         * dbxout.h (dbxout_begin_function): Remove.
14111         * debug.c (do_nothing_debug_hooks): Update.
14112         (debug_nothing_tree): Update.
14113         (debug_nothing_charstar_rtx): Remove.
14114         * debug.h (union tree_node): Declare.
14115         (struct rtx_def): Remove.
14116         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
14117         begin_function.  Change source_line prototype.
14118         (debug_nothing_tree): New.
14119         (debug_nothing_charstar_rtx): Delete.
14120         (dwarf2out_begin_prologue): Moved from ...
14121         * tree.h: ... here.
14122         * dwarf2out.c (dwarf2_debug_hooks): Update.
14123         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
14124         debug info, call dwarf2out_source_line.
14125         (dwarf2out_souce_line): Update prototype.
14126         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
14127         Change prototype, make static.
14128         (dwarfout_source_line): Update prototype.
14129         (dwarf_debug_hooks): Update.
14130         * dwarfout.h (dwarfout_begin_function): Remove.
14131         * final.c (final_start_function, final_scan_insn): Use appropriate
14132         debug hooks, update to use notice_source_line.
14133         (output_source_line): Rename notice_source_line.  Don't call the
14134         source_line debug hook.
14135         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
14136         make static, update prototype.
14137         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
14138         prototype.
14139         (sdbout_end_prologue): New.
14140         (sdbout_source_line): Update prototype.
14141         (sdbout_debug_hooks): Update.
14142         (sdbout_symbol): Remove unused var.
14143         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
14144         Delete.
14145         * varasm.c: Include debug.h.
14146         (assemble_start_function): Use begin_function debug_hook.
14147         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
14148         update with prototype.
14149         (xcoffout_source_line): Update prototype.
14150         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
14151         update prototype.
14152         (xcoffout_source_line): Update prototype.
14154 2001-07-17  Richard Henderson  <rth@redhat.com>
14156         * c-typeck.c (build_binary_op): Do not shorten unsigned
14157         right shift after sign extension.
14159 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
14161         * combine.c (combine_simplify_rtx): Attempt to simplify
14162         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
14164         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
14165         (simplify_binary_operation, simplify_unary_operation,
14166          simplify_relational_operation): Use it.
14168         * combine.c (combine_simplify_rtx): Don't do associative law
14169         on divisions; allow associative law on floats.
14171 2001-07-17  H.J. Lu <hjl@gnu.org>
14172             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14174         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
14175         ASM_OUTPUT_WEAK_ALIAS are defined.
14176         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
14177         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
14178         Moved ...
14179         * config/mips/iris5.h: ... here.
14180         (HANDLE_SYSV_PRAGMA): Defined as 1.
14181         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
14182         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
14183         symbol.
14185 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
14187         * c-parse.in (all_prefix_attributes): New variable.
14188         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
14189         (maybe_resetattrs): New production.
14190         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
14191         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
14192         notype_initdcl, nested_function, notype_nested_function,
14193         component_decl, components, components_notype,
14194         component_declarator, component_notype_declarator,
14195         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
14196         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
14197         after a comma being applied to more than one declarator.
14198         * doc/extend.texi (Attribute Syntax): Update.  Remove
14199         documentation of bugs that are no longer present.
14201 2001-07-13  Eric Christopher  <echristo@redhat.com>
14203         * config/mips/mips.h: Change TUNE_MIPS* options to use
14204         mips_tune.
14205         (EXTRA_SPECS): Add cc1_cpu_spec.
14206         * config/mips/mips.md (muldf3): Fix typo.
14208 2001-07-16  Richard Henderson  <rth@redhat.com>
14210         * config/m68k/m68k.c: Include expr.h and reload.h.
14211         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
14212         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
14214 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
14215             Richard Henderson  <rth@redhat.com>
14217         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
14218         (insn_live_p): Fix fall off end of function.
14219         (dead_libcall_p): Remove COUNTS argument; update callers.
14220         (delete_trivially_dead_insns): Remove unused variables.
14222 2001-07-17  Andreas Jaeger  <aj@suse.de>
14224         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
14225         x86-64 pic support.
14227         * lcm.c (optimize_mode_switching): Avoid warning for unused
14228         variable if !NORMAL_MODE.
14230         * flow.c (try_crossjump_to_edge): Remove unused variable.
14232 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14234         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
14235         atexit declaration in stdlib.h.
14237 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
14239         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
14241 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
14243         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
14244         * except.c (finish_eh_generation): Update call of cleanup_cfg;
14245         do rebuild_jump_labels instead of jump_optimize
14246         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
14247         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
14248         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
14250         * flow.c: Include timevar.h
14251         (find_basic_block): Push/pop timevar;
14252         (cleanup_cfg): Likewise.
14253         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
14254         * Makefile: Add dependencies on timevar.h
14256         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
14257         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
14259         * rtl.h (delete_trivially_dead_insns): Add new parameter.
14260         * toplev.c (rest_of_compilation): Update calls.
14261         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
14262         (delete_trivially_dead_insns): ... here; accept new argument
14263         preserve_basic_blocks; preserve basic blocks if set.
14265         * reg-stack.c (stack_regs_mentioned): Return 0 if
14266         stack_regs_mentioned_data is not initialized.
14267         (reg_to_stack): Make stack_regs_mentioned survive after the
14268         reg-stack is completted; do not call cleanup_cfg.
14269         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
14270         make cleanup_cfg after bb-reorder to output to debug file.
14272 2001-07-16  Richard Henderson  <rth@redhat.com>
14274         * regclass.c (init_reg_sets): Use only 32 bits per initializer
14275         from int_reg_class_contents.
14277 2001-07-16  Richard Henderson  <rth@redhat.com>
14279         * hard-reg-set.h (regs_invalidated_by_call): Declare.
14280         * regclass.c (regs_invalidated_by_call): Move from cse.c.
14281         (init_reg_sets_1): Move initialization from cse_main.
14282         * cse.c (regs_invalidated_by_call): Move to regclass.c.
14283         (cse_main): Move its initialization also.
14284         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
14285         * flow.c (propagate_one_insn): Likewise.
14286         * gcse.c (compute_hash_table): Likewise.
14287         (compute_kill_rd, compute_store_table): Likewise.
14288         * sched-deps.c (sched_analyze_1): Likewise.
14290 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
14292         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
14293         gen_rtx_SET.
14295 2001-07-16  Steve Ellcey <sje@cup.hp.com>
14297         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
14298         in if statement so we don't access undefined memory.
14300 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
14302         * gcse.c: Update comment at top.
14303         Update comment on mem handling.
14304         mem_last_set, mem_first_set, mem_set_in_block: gone.
14305         Declaration of reg_set_info: gone.
14306         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
14307         pointless with load_killed_in_block_p (they are *more*
14308         conservative then it, not less, and less accurate).
14309         (oprs_not_set_p): Ditto.
14310         (alloc_gcse_mem): Don't allocate mem_set_in_block
14311         (free_gcse_mem): Don't free it, either.
14312         (record_last_mem_set_info): Update comment in front, remove
14313         mem_*set_* stuff. Note the reason we don't handle stores directly
14314         here.
14315         (compute_hash_table): Update comments to reflect reality. Remove
14316         mem_*set_* references.
14317         (reset_opr_set_tables): Remove mem_*set_* references.
14318         (mark_call): Ditto.
14319         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
14320         (mark_clobber): Ditto (on both parts, we double set here too).
14321         (expr_killed_p): Remove mem_set_in_block test.
14322         (compute_transp): Remove mem_set_in_block test.
14324         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
14325         of edge, and removal of phi alternative to dump file.
14326         (ssa_ccp_substitute_constants): Add note about register now being
14327         constant, and which uses were replaced in what insns to dump file.
14329 2001-07-16  Andreas Jaeger  <aj@suse.de>
14331         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
14332         variables of type HOST_WIDEST_INT.
14334         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
14335         (__bb_exit_func): Correct type of count_max to avoid overflow.
14336         (num_digits): Handle long long argument.
14338         * combine.c (gen_lowpart_for_combine): Remove unused variable.
14340 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14342         * output.h (sdb_begin_function_line): Restore as an extern
14343         variable.
14344         * sdbout.c (sdb_begin_function_line): Make extern.
14346 2001-07-15  Richard Henderson  <rth@redhat.com>
14348         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
14349         * genrecog.c (maybe_both_true_mode): New.
14350         (maybe_both_true_2): Use it.
14351         (write_switch): Don't put Pmode in a switch.
14352         * rtl.c (mode arrays): Don't explicitly size them.
14354 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
14356         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
14357         handling; move unconditional splitting before mode switching.
14359         * i386.md (type): Add fistp type.
14360         (i387, length_attr, scheduling definitions): Handle this type.
14361         (fix_trunc?f?i2): Revamp to use mode switching.
14362         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
14363         * i386.h (fp_cw_mode): New enum
14364         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
14365         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
14367 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14369         * Makefile.in (integrate.o): Add debug.h.
14370         * integrate.c (debug.h): Add.
14371         (output_inline_function): Save, reset, and restore debug_hooks.
14373 2001-07-15  Richard Henderson  <rth@redhat.com>
14375         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
14376         instead of COMPARE for the EQUIV expression.
14378 2001-07-15  Richard Henderson  <rth@redhat.com>
14380         * flow.c (redirect_edge_and_branch_force): Initialize
14381         global_live_at_start and global_live_at_end.
14382         (allocate_bb_life_data): Export.
14383         * basic-block.h (allocate_bb_life_data): Declare.
14384         * toplev.c (rest_of_compilation): Call it.
14386 2001-07-15  Richard Henderson  <rth@redhat.com>
14388         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
14389         (alpha_tablejump_best_label): New.
14390         * config/alpha/alpha-protos.h: Declare them.
14391         * config/alpha/alpha.md: Use braced strings for code blocks.
14392         (tablejump_osf): Break out add with r29.
14393         (tablejump_osf_internal): Remove.
14394         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
14395         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
14397 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
14399         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
14400         of the movable.
14402         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
14404         * i386-protos.h (ix86_split_fp_branch): Update prototype.
14405         (ix86_fp_jump_nontrivial_p): New.
14406         * i386.md (fp_jcc_?): Update call of split_fp_branch;
14407         use ix86_fp_jump_nontrivial_p.
14408         * i386.c (ix86_fp_jump_nontrivial_p): New.
14409         (ix86_split_fp_branch): Accept code instead of rtx.
14410         (ix86_expand_compare): Expand comparison early in case
14411         doing so is resonably cheap.
14413 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
14415         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
14416         not 'machine'.
14417         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
14418         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
14420 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
14422         * dbxout.c (dbxout_source_line): Make static, update prototype.
14423         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
14424         (dbxout_init, dbxout_finish, dbxout_source_line,
14425         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
14426         * dbxout.h (dbxout_source_line): Delete.
14427         * debug.c (debug_nothing_file, debug_nothing_file_int,
14428         debug_nothing_file_charstar_rtx): New.
14429         (do_nothing_debug_hooks): Update.
14430         (debug_nothing_void, debug_nothing_charstar_rtx,
14431         dwarf2out_end_epilogue): New.
14432         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
14433         * debug.h (struct rtx_def): Declare.
14434         (gcc_debug_hooks): New hooks source_line, end_epilogue
14435         and end_function.
14436         (debug_nothing_void, debug_nothing_charstar_rtx,
14437         dwarf2out_end_epilogue): New.
14438         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
14439         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
14440         (dwarf2_debug_hooks): Update.
14441         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
14442         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
14443         * dwarf2out.h (dwarf2out_source_line): Remove.
14444         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
14445         Make static, update prototype.
14446         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
14447         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
14448         (dwarf_debug_hooks): Update.
14449         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
14450         dwarfout_end_function): Remove.
14451         * final.c (profile_function): Use debug hooks for ending functions
14452         and epilogues.
14453         (output_source_line, final_end_function): Update prototype,
14454         use debug hooks.
14455         (final_start_function, final_scan_insn): Update.
14456         * output.h (sdb_begin_function_line): Remove.
14457         (final_end_function): Update prototype.
14458         * sdbout.c (sdb_begin_function_line): Make static.
14459         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
14460         (sdbout_source_line): New.
14461         (sdbout_end_epilogue, sdbout_end_function): Make static, update
14462         prototypes.
14463         (sdb_debug_hooks): Update.
14464         (sdbout_init, sdbout_source_line,
14465         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
14466         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
14467         * toplev.c (compile_file, rest_of_compilation): Update.
14468         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
14469         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
14470         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
14471         Update for prototype changes.
14472         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
14473         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
14475 2001-07-15  Richard Henderson  <rth@redhat.com>
14477         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
14478         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
14479         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
14480         * config/alpha/alpha.c: Likewise.
14481         * config/alpha/alpha.md: Likewise.
14482         * config/alpha/alpha32.h: Likewise.
14483         * config/alpha/vms.h: Likewise.
14484         (OPEN_VMS): Remove.
14486 2001-07-14  Richard Henderson  <rth@redhat.com>
14488         * config/alpha/alpha.md: Use define_constants for unspec values.
14489         Substitute throughout.
14491 2001-07-14  Tim Josling  <tej@melbpc.org.au>
14493         * tree.def (EXPON_EXPR) remove. Never supported anyway.
14495 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14497         * pa.md: Remove unused constraints from define_split's.
14499 2001-04-14  Richard Henderson  <rth@redhat.com>
14501         * ifcvt.c (find_cond_trap): Test for exit block.
14503 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
14505         Re-install recently reverted patch.
14506         * emit-rtl.c (try_split): Update mark_jump_label call.
14507         * flow.c (find_sub_basic_blocks): Likewise.
14508         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
14509         jump_back_p): Kill.
14510         (mark_all_labels): Kill second parameter.
14511         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
14512         (rebuild_jump_labels, jump_optimize_minimal): Update call
14513         of jump_optimize_1.
14514         (jump_optimize_1): Kill crossjumping code.
14515         (mark_jump_label): Kill cross_jump parameter.
14516         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
14517         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
14518         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
14519          splitting.
14520         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
14521         DFI_bpro.
14522         (dump_file_info): Likewise.
14523         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
14524         reorganize passes to do reg-stack first, bb-reorder second.
14525         * invoke.texi (-d letters doc): Remove the jump2 pass.
14527 2001-07-14  Richard Henderson  <rth@redhat.com>
14529         * ifcvt.c (find_cond_trap): New.
14530         (find_if_header): Call it.
14531         (merge_if_block): Relax existing jump sanity check.
14532         * jump.c (jump_optimize_1): Remove conditional trap handling.
14534 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
14536         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
14537         millicode.
14538         (insn_refs_are_delayed): Correct comment.
14539         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
14540         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
14541         instead of r31.  Make associated insn !TARGET_64BIT, and
14542         provide an additional 64-bit insn that clobbers r2.
14543         (divsi3): Likewise.
14544         (udivsi3): Likewise.
14545         (modsi3): Likewise.
14546         (umodsi3): Likewise.
14548 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
14550         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
14552         * flow.c (redirect_edge_and_branch_force, split_edge,
14553         try_crossjump_to_edge): Use set_block_for_new_insns.
14554         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
14556 2001-07-13  H.J. Lu  (hjl@gnu.org)
14558         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
14559         the correct patch.
14561 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
14563         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
14565 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
14567         * c-common.c (decl_attributes): Take a pointer to the node to
14568         which attributes are to be attached, and a flags argument.
14569         * c-common.h (enum attribute_flags): New.
14570         (decl_attributes): Update prototype.
14571         * c-decl.c (start_decl, push_parm_decl, finish_struct,
14572         finish_enum, start_function): Update calls to decl_attributes.
14573         * c-parse.in (component_declarator, component_notype_declarator,
14574         label): Update calls to decl_attributes.
14576 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
14578         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
14579         * config/avr/avr.c (legitimate_address_p): Return value changed
14580         from letter to register classes. For better debugging.
14582 2001-07-13  Kazu Hirata  <kazu@hxi.com>
14584         * jump.c (reversed_comparison_code_parts): Fix comment typos.
14586 2001-07-13  H.J. Lu  (hjl@gnu.org)
14588         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
14590 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
14592         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
14593         correctly for shared configurations.
14594         * config/t-libgcc-pic:  New.
14595         * config/{i386,m68k,sparc}/t-openbsd:  New.
14596         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
14597         Support -shared.  Support debugging libraries with -g.
14598         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
14599         frame information does not emit pointer diffs.
14600         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
14601         emit pointer diffs.
14603 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
14605         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
14607 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
14609         * combine.c (try_combine): Ensure const_int pow2 is positive.
14611 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
14613         * config.gcc: Add configuration for s/390.
14614         * config/s390/s390.c: New. Subroutines for code generation.
14615         * config/s390/s390.h: New. Definitions for s/390.
14616         * config/s390/s390-protos.h: New. Prototypes.
14617         * config/s390/linux.h: New. Definitions for linux for s/390.
14618         * config/s390/linux64.h: New. Definitions for linux for zSeries.
14619         * config/s390/t-linux: New. Makefile fragment.
14620         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
14621         * config/s390/fixdfdi.h: New. Fix L_fix*di.
14623 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
14625         * emit-rtl.c (try_split): Update mark_jump_label call.
14626         * flow.c (find_sub_basic_blocks): Likewise.
14627         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
14628         jump_back_p): Kill.
14629         (mark_all_labels): Kill second parameter.
14630         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
14631         (rebuild_jump_labels, jump_optimize_minimal): Update call
14632         of jump_optimize_1.
14633         (jump_optimize_1): Kill crossjumping code.
14634         (mark_jump_label): Kill cross_jump parameter.
14635         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
14636         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
14637         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
14638          splitting.
14639         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
14640         DFI_bpro.
14641         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
14642         reorganize passes to do reg-stack first, bb-reorder second.
14643         * invoke.texi (-d letters doc): Remove the jump2 pass.
14645 2001-07-12  Steve Ellcey <sje@cup.hp.com>
14647         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
14649 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14651         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
14652         basic blocks.
14653         (verify_flow_info): Make diagnostics prettier.
14655 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
14657         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
14659         * flow.c (outgoing_edges_match): Return early if condition reversal
14660         failed.
14662 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
14664         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
14665         (mips_move_2words): When splitting a move into two instructions,
14666         prefix the second address operand with '%D'.
14668 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
14670         * Makefile.in (final.o): Depend on debug.h.
14671         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
14672         (dbx_debug_hooks): Add new hooks.
14673         (xcoff_debug_hooks): New.
14674         * debug.c (debug_nothing_file_int_int): New.
14675         (do_nothing_debug_hooks): Update.
14676         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
14677         (debug_nothing_file_int_int): New.
14678         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
14679         static, update prototype.
14680         (dwarf2_debug_hooks): Update.
14681         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
14682         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
14683         static, update prototype.
14684         (dwarf_debug_hooks): Update.
14685         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
14686         * final.c: Include debug.h.
14687         (final_scan_insn): Use debug hooks when beginning and ending blocks.
14688         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
14689         static, update prototype.
14690         (sdb_debug_hooks): Update.
14691         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
14692         * toplev.c: Distinguish between xcoff and dbx.
14694         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
14695         Call all debug hooks, not just dwarf ones.
14697 2001-07-11  Timothy Wall  <twall@redhat.com>
14699         * config.gcc: Add configuration for AIX5/IA64.
14700         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
14701         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
14702         support prefix/suffix code.
14703         * config/ia64/t-aix: New.  Makefile fragment.
14704         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
14706 2001-07-11  Kazu Hirata  <kazu@hxi.com>
14708         * recog.c (validate_change): Fix a comment typo.
14710 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14712         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
14713         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
14714         hooks directly.
14715         * dbxout.c (dbx_debug_hooks): Add new hooks.
14716         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
14717         make static.
14718         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
14719         make static.
14720         * dbxout.h (dbxout_start_new_source_file,
14721         dbxout_resume_previous_source_file): Delete.
14722         * debug.c (do_nothing_debug_hooks): Add new hooks.
14723         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
14724         (debug_nothing_int_charstar, debug_nothing_int): New.
14725         * debug.h (gcc_debug_hooks): New hooks define, undef,
14726         start_source_file and end_source_file.
14727         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
14728         (debug_nothing_int_charstar, debug_nothing_int): New.
14729         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
14730         the conditionally compiled section.
14731         (dwarf2out_start_source_file, dwarf2out_end_source_file,
14732         dwarf2out_define, dwarf2out_undef): Make static.
14733         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
14734         dwarf2out_define, dwarf2out_undef): Remove.
14735         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
14736         (dwarfout_start_source_file, dwarfout_end_source_file,
14737         dwarfout_define, dwarfout_undef): Make static.
14738         (dwarfout_start_source_file_check,
14739         dwarfout_end_source_file_check): New.
14740         (dwarfout_define, dwarfout_finish): Update.
14741         * dwarfout.h (dwarfout_start_new_source_file,
14742         dwarfout_resume_previous_source_file, dwarfout_define,
14743         dwarfout_undef): Remove.
14744         * sdbout.c (sdb_debug_hooks): Add new hooks.
14745         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
14746         make static.
14747         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
14748         make static, take an arg.
14749         * sdbout.h (sdbout_start_new_source_file,
14750         sdbout_resume_previous_source_file): Delete.
14751         * toplev.c (debug_start_source_file, debug_end_source_file,
14752         debug_define, debug_undef): Delete.
14753         * toplev.h (debug_start_source_file, debug_end_source_file,
14754         debug_define, debug_undef): Delete.
14756         * java/jcf-parse.c: Include debug.h.
14757         (parse_class_file): Update to use debug hooks directly.
14758         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
14760 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14762         * alias.c (set_mem_alias_set): New function.
14763         * rtl.h (set_mem_alias_set): Declare it.
14764         * builtins.c (expand_builtin_return_addr): Call it instead of
14765         using MEM_ALIAS_SET accessor.
14766         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
14767         (get_memory_rtx, expand_builtin_va_arg): Likewise.
14768         (expand_builtin_va_copy):Likewise.
14769         * caller-save.c (setup_save_areas): Likewise.
14770         * calls.c (compute_argument_addresses): Likewise.
14771         * explow.c (set_mem_attributes): Likewise.
14772         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
14773         (expand_assignment, store_constructor_field, store_field): Likewise.
14774         (expand_expr_unaligned): Likewise.
14775         * function.c (assign_stack_temp_for_type): Likewise.
14776         (put_reg_into_stack, gen_mem_addressof): Likewise.
14777         * ifcvt.c (noce_try_cmove_arith): Likewise.
14778         * reload1.c (reload, alter_reg): Likewise.
14779         * config/alpha/alpha.c (get_aligned_mem): Likewise.
14780         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
14781         (alpha_expand_unaligned_store): Likewise
14782         (alpha_expand_unaligned_load_words): Likewise.
14783         (alpha_expand_unaligned_store_words): Likewise.
14784         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
14785         (alpha_expand_epilogue): Likewise.
14786         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14787         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
14788         * config/i386/i386.c (legitimize_pic_address): Likewise.
14789         * config/i960/i960.c (setup_incoming_varargs): Likewise.
14790         * config/ia64/ia64.c (spill_restore_mem): Likewise.
14791         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14792         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
14793         * config/mips/mips.c (mips_va_arg): Likewise.
14794         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
14795         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
14796         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
14797         (setup_incoming_varargs, rs6000_va_arg): Likewise.
14798         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
14799         (rs6000_emit_epilogue): Likewise.
14800         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
14801         * config/sparc/sparc.c (sparc_va_arg): Likewise.
14802         * config/v850/v850.c (v850_va_arg): Likewise.
14804 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
14806         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
14807         when fallthru edge is present.
14808         (mege_blocks): Handle case where creation of jump insn
14809         is required.
14811         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
14812         CLEANUP_POST_REGSTACK): New constants.
14813         * except.c (finish_eh_generation): Update call of cleanup_cfg,
14814         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
14815         * output.h (cleanup_cfg): Update prototype.
14816         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
14817         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
14818         cleanup_cfg call; kill missleading comment.
14819         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
14820         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
14821         parameter; control optimizations performed using it.
14822         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
14823         try_crossjump_bb): New functions.
14825 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14827         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
14828         extern.
14829         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
14830         pa_output_function_prologue.
14831         * pa-protos.h (pa_output_function_prologue): New prototype.
14833 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14835         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
14836         and low to get correct sign extension in low+high test.
14838 2001-07-11  Janis Johnson <janis@us.ibm.com>
14840         * gcov.c (arcdata): Use gcov_type to fix branch percentage
14841         for large hit count.
14843         * profile.c (branch_prob): Fix .bbg info for computed gotos
14844         and C++ EH code.
14846 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
14848         * stmt.c (parse_output_constraint): New function, split out
14849         from ...
14850         (expand_asm_operands): ... here.  Use parse_output_constraint.
14851         * tree.h (parse_output_constraint): Declare it.
14853 2001-07-11  Richard Henderson  <rth@redhat.com>
14855         * bitmap.c: Comment some functions; fiddle whitespace.
14856         (bitmap_free): Don't export.
14857         (bitmap_element_allocate): Use memset.
14858         * bitmap.h (bitmap_free): Don't declare.
14860 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
14862         * gcse.c, lcm.c, sched-deps.c:
14863         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
14865         * flow.c (flow_loops_find): Free dom if we found no loops, since
14866         we aren't going to save it.
14868         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
14869         done.
14871 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
14873         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
14875 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14877         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
14878         #ifndef DWARF2_DEBUGGING_INFO.
14880 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14882         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
14884 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14886         * config/mips/mips.c (gen_int_relational): Tell the caller not to
14887         reverse a branch if a NE comparison is implemented with GTU.
14889 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14890             H.J. Lu  <hjl@gnu.org>
14892         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
14893         constant addresses.
14894         (call_internal2): Likewise.
14895         (call_value_internal1): Likewise.
14896         (call_value_internal2): Likewise.
14897         (call_value_multiple_internal1): Likewise.
14898         (call_value_multiple_internal2): Likewise.
14900 2001-07-10  Kazu Hirata  <kazu@hxi.com>
14902         * calls.c (emit_library_call_value_1): Fix a comment typo.
14903         * dwarf2out.c (mem_loc_descriptor): Likewise.
14904         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
14906 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
14908         * simplify-rtx.c (simplify_subreg): Fix typo in comment
14910 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14912         * recog.c (offsettable_address_p): Handle LO_SUM case.
14913         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
14914         instead of plus_constant.
14916 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14918         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
14919         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
14921 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14923         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
14924         adjust_address_nv instead of plus_constant.
14926 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
14928         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
14929         dwarf2out.o): Depend on debug.h, wrap long lines.
14930         * dbxout.c: Include debug.h.
14931         (dbx_debug_hooks): New.
14932         (dbxout_init): Make static, take just 2 args.
14933         (dbxout_finish): Make static.
14934         * dbxout.h (dbxout_init, dbxout_finish): Delete.
14935         * debug.c: New file.
14936         * debug.h: New file.
14937         * dwarf2out.c: Include debug.h.
14938         (dwarf2_debug_hooks): New.
14939         (dwarf2out_init): Make static.
14940         (dwarf2out_finish): Make static, take 2 args.
14941         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
14942         * dwarfout.c: Include debug.h.
14943         (dwarf_debug_hooks): New.
14944         (dwarfout_init): Make static.
14945         (dwarfout_finish): Make static, take 2 args.
14946         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
14947         * sdbout.c: Include debug.h.
14948         (sdb_debug_hooks): New.
14949         (sdbout_init): Make static, take 2 args.
14950         * sdbout.h (sdbout_init): Delete.
14951         * toplev.c: Include debug.h.
14952         (debug_hooks): New.
14953         (compile_file): Set deubg_hooks based on command line options.
14954         Use the hooks unconditionally rather than conditional compilation.
14956 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
14958         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
14959         first_insn_after_basic_block_note instead.
14961         * df.c (df_bb_refs_unlink): #if 0 out for now.
14963 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
14965         * ssa.h: Add prototype for ssa_const_prop
14966         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
14967         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
14968         (ssa_fast_dce): Remove unused variable
14970 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
14972         * diagnostic.c (finish_diagnostic): Rename to
14973         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
14974         calls thourghout.
14976 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
14978         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
14979         .loc support.
14981         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
14982         (dump_file): Only pad the demangled name with spaces if the
14983         mangled name was padded with spaces.
14985 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
14987         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
14988         edge detection.
14990 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14992         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
14993         extraction if no direct load if either EXPAND_CONST_ADDRESS or
14994         EXPAND_INITIALIZER.
14996         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
14997         whether can put offset inside LO_SUM to check mode alignment, not size.
14999 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
15001         * doc/tm.texi (Misc): Fix thinko.
15003 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
15005         * regmove.c (replace_in_call_usage): Fix warnings.
15006         * sched-deps.c (add_dependence): Fix warnings.
15007         * simplify-rtx.c (simplify_subreg): Likewise.
15008         Return NULL_RTX instead of NULL.
15010         * reg-stack.c (emit_swap_insn): Eliminate warnings.
15011         (subst_asm_stack_regs): Likewise.
15013         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
15014         warnings.
15016         * dwarf2out.c (output_call_frame_info): Declare i as int.
15017         (build_abbrev_table): Declare n_alloc as int.
15018         (dwarf2out_finish): Initialize die.
15019         * except.c: Declare sjlj_funcdef_number as unsigned.
15020         (connect_post_landing_pads): Declare j as unsigned.
15021         (convert_to_eh_region_ranges): Initialize call_site.
15022         (output_function_exception_table): Initialize tt_format_size.
15023         * expr.c (move_by_pieces_1): Initialize to1.
15024         (store_constructor): Initialize minelt and maxelt.
15025         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
15026         * function.c (instantiate_decls): Avoid signed/unsigned warning.
15028         * c-decl.c (combine_parm_decls): Unused, remove.
15029         * c-tree.h: Remove prototype for combine_parm_decls.
15031         * reload.c (push_reload): Fix warning.
15032         (regno_clobbered_p): Likewise.
15033         * reload1.c (replace_pseudos_in_call_usage): Likewise.
15034         (reload_combine): Likewise.
15036         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
15037         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
15038         warnings.
15039         * bitmap.c (bitmap_operation): Change user.
15040         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
15042 2001-07-10  Eric Christopher  <echristo@redhat.com>
15044         * config/mips/mips.c (override_options): Fix typo.
15046 2001-07-09  Stan Shebs  <shebs@apple.com>
15048         * target.h (struct gcc_target): New fields init_builtins and
15049         expand_builtin.
15050         * target-def.h (TARGET_INIT_BUILTINS): New macro.
15051         (TARGET_EXPAND_BUILTIN): New macro.
15052         (TARGET_INITIALIZER): Add them.
15053         * builtins.c: Include target.h.
15054         (expand_builtin): Use targetm.expand_builtin.
15055         (default_init_builtins): New function.
15056         (default_expand_builtin): New function.
15057         * expr.h (default_init_builtins): Declare.
15058         (default_expand_builtin): Declare.
15059         * c-common.c (c_common_nodes_and_builtins): Use
15060         targetm.init_builtins.
15061         * defaults.h (MD_INIT_BUILTINS): Remove.
15062         * Makefile.in (builtins.o): Depend on target.h.
15064         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
15065         (TARGET_EXPAND_BUILTIN): Define.
15066         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
15067         (MD_EXPAND_BUILTIN): Remove.
15069         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
15070         (TARGET_EXPAND_BUILTIN): Define.
15071         (c4x_init_builtins): Make endlink arg a local.
15072         (c4x_print_operand): Fix typos in adjust_address usages.
15073         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
15074         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
15075         (MD_EXPAND_BUILTIN): Remove.
15077         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
15078         (TARGET_EXPAND_BUILTIN): Define.
15079         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
15080         (ix86_init_builtins): Call new function only if TARGET_MMX.
15081         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
15082         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
15083         (MD_EXPAND_BUILTIN): Remove.
15085         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
15086         (TARGET_EXPAND_BUILTIN): Define.
15087         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
15088         (MD_EXPAND_BUILTIN): Remove.
15090         * doc/tm.texi: Document these changes.
15092 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
15094         * basic-block.h (tree_node): Forward declare if needed.
15095         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
15096         (BLOCK_HEAD_TREE): Define.
15097         (BLOCK_END_TREE): Define.
15098         (struct loops): Rename field 'tree' to 'tree_root'.
15099         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
15100         'end_tree'.
15101         (flow_loops_tree_build): Rename reference to field 'tree' to
15102         'tree_root'.
15103         (flow_loops_level_compute): Ditto.
15104         * predict.c (estimate_bb_frequencies): Ditto.
15105         * tree.h (struct tree_common): Add field 'aux'.
15107 2001-07-09  Stan Shebs  <shebs@apple.com>
15109         * config/darwin.c (darwin_encode_section_info): Don't mark any
15110         DECL_EXTERNAL node as defined.
15112 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15114         * pa.c (pa_init_machine_status, pa_mark_machine_status,
15115         pa_free_machine_status, hppa_init_pic_save): Delete.
15116         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
15117         (hppa_profile_hook): Use hppa_pic_save_rtx.
15118         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
15119         hppa_init_pic_save): Delete.
15120         (hppa_pic_save_rtx): Declare.
15121         * pa.md (call, call_value, sibcall, sibcall_value,
15122         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
15124 2001-07-09  Kazu Hirata  <kazu@hxi.com>
15126         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
15127         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
15129 2001-07-09  Andreas Jaeger  <aj@suse.de>
15131         * output.h: Add declaration of final_forward_branch_p.
15133         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
15135         * varray.c: Include errors.h for internal_error and trim_filename
15136         declarations.
15138         * Makefile.in (varray.o): Add errors.h.
15140 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
15142         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
15143         * optabs.c (have_add2_insn): Check whether the add insn chosen
15144         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
15145         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
15147 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
15149         * Makefile.in (OBJS): Add ssa-ccp.o
15150         (ssa-ccp.o): Add dependencies.
15151         * toplev.c (DFI_ssa_ccp): New dump file enum.
15152         (dump_file): Add entry for dumping after SSA CCP.
15153         (flag_ssa_ccp): New flag variable.
15154         (f_options): Add -fssa-ccp.
15155         (rest_of_compilation): Run SSA CCP if requested.
15156         * timevar.def (TV_SSA_CCP): New timevar.
15157         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
15158         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
15159         Fix minor typo in SSA DCE documentation.
15160         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
15161         Add documentation for new dump option.  Renumber dump files
15162         appropriately.
15164 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15166         * emit-rtl.c (gen_highpart_mode): New.
15167         * rtl.h (gen_highpart_mode): Declare.
15168         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
15169         operand can be VOIDmode constant.
15171 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
15173         * flow.c (redirect_edge_and_branch_force): New.
15174         (can_fallthru): Ensure that basic blocks are succeeding.
15175         (try_optimize_cfg): Do not delete basic block if it is the last one.
15177         * flow.c (try_redirect_by_replacing_jump): Do not remove
15178         jumps with side effects, unlink chain on fallthru edge;
15179         set block for new jump instruction; avoid basic block to
15180         over by line number note.
15182         * flow.c (try_simplify_condjump): Verify that the condjump
15183         is not always falling through.
15185         Re-install patch:
15186         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
15188         * flow.c (forwarder_block_p): Fix for fallthru blocks.
15189         (try_redirect_by_replacing_jump): Update properly the count
15190         and frequency information.
15192 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15194         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
15195         address that is a LO_SUM specially.
15196         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
15198         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
15200         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
15201         (operand_subword): Use them.
15202         (change_address_1): Renamed from change_address; new arg VALIDATE.
15203         * expr.h: Reflect above changes; change_address now macro.
15204         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
15205         making MEM.
15206         * cselib.c (add_mem_for_addr): Likewise.
15207         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
15208         * regmove.c (try_apply_stack_adjustment): Likewise.
15209         * reload.c (push_reload, make_memloc): Likewise.
15210         * reload1.c (eliminate_regs): Likewise.
15211         * simplify-rtx.c (simplify_replace_rtx): Likewise.
15212         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
15213         adjust_addess.
15214         * combine.c (make_extraction, simplify_shift_const): Likewise.
15215         (gen_lowpart_for_combine): Likewise.
15216         * cse.c (gen_lowpart_if_possible): Likewise.
15217         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
15218         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
15219         * optabs.c (gen_move_insn): Likewise.
15220         * reload1.c (alter_reg): Likewise.
15221         * simplify-rtx.c (simplify_subreg): Likewise.
15222         * stmt.c (expand_anon_union_decl): Likewise.
15223         * recog.c (validate_replace_rtx_1): Likewise.
15224         (expr.h): Include.
15225         * Makefile.in (recog.o): Add $(EXPR_H).
15226         * explow.c (stabilize): Call replace_equiv_address.
15227         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15228         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
15230 2001-07-03  Andrew Haley  <aph@redhat.com>
15232         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
15233         the mode of the memory location.
15235 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
15237         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
15239 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15241         * final.c (output_addr_const): Use target opening and
15242         closing parentheses.
15243         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
15244         defaults, add to TARGET_ASM_OUT.
15245         * target.h (struct gcc_target): Add open_paren and close_paren.
15246         * doc/md.texi: Update.
15247         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
15248         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
15249         TARGET_ASM_CLOSE_PAREN.
15250         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
15251         Override.
15252         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
15253         Override.
15254         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
15255         * config/a29k/a29k.h: Similarly.
15256         * config/alpha/alpha.h: Similarly.
15257         * config/arc/arc.h: Similarly.
15258         * config/arm/aof.h: Similarly.
15259         * config/arm/aout.h: Similarly.
15260         * config/avr/avr.h: Similarly.
15261         * config/c4x/c4x.h: Similarly.
15262         * config/clipper/clipper.h: Similarly.
15263         * config/convex/convex.h: Similarly.
15264         * config/d30v/d30v.h: Similarly.
15265         * config/dsp16xx/dsp16xx.h: Similarly.
15266         * config/elxsi/elxsi.h: Similarly.
15267         * config/fr30/fr30.h: Similarly.
15268         * config/h8300/h8300.h: Similarly.
15269         * config/i370/i370.h: Similarly.
15270         * config/i386/i386.h: Similarly.
15271         * config/i860/i860.h: Similarly.
15272         * config/i960/i960.h: Similarly.
15273         * config/ia64/ia64.h: Similarly.
15274         * config/m32r/m32r.h: Similarly.
15275         * config/m68hc11/m68hc11.h: Similarly.
15276         * config/m68k/m68k.h: Similarly.
15277         * config/m88k/m88k.h: Similarly.
15278         * config/mcore/mcore.h: Similarly.
15279         * config/mips/mips.h: Similarly.
15280         * config/mn10200/mn10200.h: Similarly.
15281         * config/mn10300/mn10300.h: Similarly.
15282         * config/ns32k/ns32k.h: Similarly.
15283         * config/pa/pa.h: Similarly.
15284         * config/pdp11/pdp11.h: Similarly.
15285         * config/pj/pj.h: Similarly.
15286         * config/romp/romp.h: Similarly.
15287         * config/rs6000/rs6000.h: Similarly.
15288         * config/sh/sh.h: Similarly.
15289         * config/sparc/sparc.h: Similarly.
15290         * config/v850/v850.h: Similarly.
15291         * config/vax/vax.h: Similarly.
15292         * config/we32k/we32k.h: Similarly.
15294 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
15296         * doc/c-tree.texi: Document representation of attributes.
15298 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15300         * doc/tm.texi: Update some places for the rename of target to
15301         targetm.  Fix typo.
15303 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15305         * target.h (struct gcc_target): Add insert_attributes.
15306         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
15307         (TARGET_INITIALIZER): Update.
15308         * tree.c, tree.h (default_insert_attributes): New function.
15309         Update comments on other default functions to refer to targetm,
15310         not target.
15311         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
15312         TARGET_INSERT_ATTRIBUTES.
15313         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
15314         * c-common.c (decl_attributes): Use targetm.insert_attributes.
15315         Don't use PRAGMA_INSERT_ATTRIBUTES.
15316         * Makefile.in (c-common.o): Depend on $(TARGET_H).
15317         * c-decl.c (start_decl, start_function): Don't call
15318         SET_DEFAULT_DECL_ATTRIBUTES.
15319         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
15320         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
15321         declare.
15322         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
15323         (c4x_check_attribute): Avoid modifying attribute list itself.
15324         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
15325         Make static.
15326         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
15327         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
15328         declare.
15329         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
15330         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
15331         Make static.
15332         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
15333         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
15334         declare.
15335         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
15336         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
15337         Adjust parameters.  Make static.
15339 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15341         * c-common.c (decl_attributes): Only take a single attributes
15342         parameter.
15343         * c-common.h (decl_attributes): Update prototype.
15344         * c-decl.c (start_decl, start_function): Only take a single
15345         attributes parameter.  Update calls to decl_attributes.
15346         (finish_struct, finish_enum): Update calls to decl_attributes.
15347         (push_parm_decl): Expect unified list of attributes.  Update call
15348         to decl_attributes.
15349         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
15350         notype_nested_function, component_declarator,
15351         component_notype_declarator, label): Update calls to
15352         decl_attributes.
15353         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
15354         lists that are passed to push_parm_decl.
15355         * c-tree.h (start_function, start_decl): Update prototypes.
15356         * config/sh/sh-protos.h, config/sh/sh.c
15357         (sh_pragma_insert_attributes): Only take a single attributes
15358         parameter.
15359         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
15360         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
15361         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
15362         build_module_descriptor, generate_static_references,
15363         generate_strings, build_selector_translation_table,
15364         generate_descriptor_table, generate_protocols,
15365         generate_ivars_list, generate_dispatch_table,
15366         generate_protocol_list, generate_category,
15367         generate_shared_structures, really_start_method, add_objc_decls,
15368         generate_classref_translation_entry): Update calls to start_decl
15369         and start_function.
15370         (build_tmp_function_decl, start_method_def): Unify attribute lists
15371         that are passed to push_parm_decl.
15373 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
15375         * final.c (no_asm_to_stream): New.
15376         (final_scan_insn): Use target structures for prologue ends
15377         and epilogue starts.
15378         * output.h (no_asm_to_stream): New.
15379         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
15380         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
15381         (TARGET_ASM_OUT): Update.
15382         * target.h (struct gcc_target): New members function_end_prologue
15383         and function_begin_epilogue.
15384         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
15385         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
15386         * config/alpha/alpha.c (output_end_prologue): Rename to
15387         alpha_output_function_end_prologue.  Use in target struct
15388         and make static.
15389         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
15390         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
15391         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
15392         ia64_output_function_end_prologue.  Use in target struct
15393         and make static.
15394         (ia64_function_prologue, ia64_funciton_epilogue): Rename
15395         mistyped prototypes.
15396         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
15397         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
15398         Delete.
15399         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
15400         an use in target struct, make static.
15401         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
15402         Delete.
15404 2001-07-08  Richard Henderson  <rth@redhat.com>
15406         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
15408 2001-07-08  Richard Henderson  <rth@redhat.com>
15410         * config/i386/i386.md: Remove constraints strings from define_split
15411         and define_peephole2 patterns.
15412         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
15413         (eh_return): Use them.
15415 2001-07-08  Richard Henderson  <rth@redhat.com>
15417         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
15418         Document MD_FALLBACK_FRAME_STATE_FOR.
15420 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15422         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
15423         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
15424         elimination.
15425         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
15427 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
15429         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
15430         of the label inside NAME as opposed to just the end of NAME.
15432 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
15434         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
15435         * config/alpha/alpha.c (alpha_init_machine_status,
15436         alpha_mark_machine_status, alpha_free_machine_status): Delete.
15437         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
15438         (vms_valid_decl_attribute_p): Make static, conditionally compile.
15439         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
15441 2001-07-06  Stan Shebs  <shebs@apple.com>
15443         * target.h (targetm): Rename global from "target", so as not to
15444         conflict with local variables.
15445         * c-decl.c: Ditto.
15446         * c-typeck.c: Ditto.
15447         * final.c: Ditto.
15448         * tree.c: Ditto.
15449         * cp/decl.c: Ditto.
15450         * cp/decl2.c: Ditto.
15451         * cp/typeck.c: Ditto.
15452         * 1750a/1750a.c: Ditto.
15453         * a29k/a29k.c: Ditto.
15454         * arc/arc.c: Ditto.
15455         * arm/arm.c: Ditto.
15456         * avr/avr.c: Ditto.
15457         * clipper/clipper.c: Ditto.
15458         * convex/convex.c: Ditto.
15459         * d30v/d30v.c: Ditto.
15460         * dsp16xx/dsp16xx.c: Ditto.
15461         * elxsi/elxsi.c: Ditto.
15462         * fr30/fr30.c: Ditto.
15463         * h8300/h8300.c: Ditto.
15464         * i370/i370.c: Ditto.
15465         * i386/i386.c: Ditto.
15466         * i860/i860.c: Ditto.
15467         * i960/i960.c: Ditto.
15468         * ia64/ia64.c: Ditto.
15469         * m32r/m32r.c: Ditto.
15470         * m68hc11/m68hc11.c: Ditto.
15471         * m68k/m68k.c: Ditto.
15472         * m88k/m88k.c: Ditto.
15473         * mips/mips.c: Ditto.
15474         * ns32k/ns32k.c: Ditto.
15475         * pa/pa.c: Ditto.
15476         * pdp11/pdp11.c: Ditto.
15477         * romp/romp.c: Ditto.
15478         * rs6000/rs6000.c: Ditto.
15479         * sh/sh.c: Ditto.
15480         * sparc/sparc.c: Ditto.
15481         * vax/vax.c: Ditto.
15482         * we32k/we32k.c: Ditto.
15483         * doc/tm.texi: Update the manual to match.
15485 2001-07-06  Richard Henderson  <rth@redhat.com>
15487         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
15488         DWARF2_UNWIND_INFO not just whether it is defined.
15490 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
15492         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
15493         call to simplify_binary_operation returns a new pattern.
15495 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
15497         * glimits.h (__SHRT_MAX__): New.
15498         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
15499         (SHRT_MAX): Define in terms of __SHRT_MAX__.
15501 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
15503         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
15504         avoid warnings.
15506 2001-07-06  Richard Henderson  <rth@redhat.com>
15508         * bitmap.c (bitmap_release_memory): Move adjacent to the
15509         allocation functions.
15510         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
15511         the implementation.  Binary search for the set bit.
15512         (bitmap_union_of_diff): Allocate the temporary on the stack
15513         instead of using xmalloc.
15515 2001-07-06  Richard Henderson  <rth@redhat.com>
15517         * genrecog.c (validate_pattern): Warn for constraints in
15518         define_{expand,split,peephole2}.  Remove strict_low_part
15519         before looking up match_dup.
15521 2001-07-06  DJ Delorie  <dj@redhat.com>
15523         * doc/gcc.texi (Makefile): Rename to be a more general purpose
15524         chapter about various build hints and history.  Add section
15525         talking about the various types of native and cross builds.
15527 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
15529         * Makefile.in (final.o): Depend on target.h.
15530         * final.c: Include target.h.
15531         (default_function_pro_epilogue): New.
15532         (final_start_function): Use target structure for function prologues.
15533         (final_end_function): Use target structure for function epilogues.
15534         * fold-const.c (real_hex_to_f): Constify s and p.
15535         * output.h (default_function_pro_epilogue): New.
15536         * real.h (real_hex_to_f): Update prototype.
15537         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
15538         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
15539         (TARGET_INITIALIZER): Update.
15540         * target.h (gcc_target): Add struct asm_out.
15541         * doc/tm.texi: Update.
15543 config:
15544         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
15545         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
15546         in cpu/cpu.c, or rename old functions consistently.  Take
15547         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
15548         redundant macros and prototypes.  Make new functions static.
15550         * 1750a/1750a.c: Similarly.
15551         * 1750a/1750a.h: Similarly.
15552         * a29k/a29k-protos.h: Similarly.
15553         * a29k/a29k.c: Similarly.
15554         * a29k/a29k.h: Similarly.
15555         * arc/arc-protos.h: Similarly.
15556         * arc/arc.c: Similarly.
15557         * arc/arc.h: Similarly.
15558         * arm/arm-protos.h: Similarly.
15559         * arm/arm.c: Similarly.
15560         * arm/arm.h: Similarly.
15561         * avr/avr-protos.h: Similarly.
15562         * avr/avr.c: Similarly.
15563         * avr/avr.h: Similarly.
15564         * clipper/clipper-protos.h: Similarly.
15565         * clipper/clipper.c: Similarly.
15566         * clipper/clipper.h: Similarly.
15567         * convex/convex.c: Similarly.
15568         * convex/convex.h: Similarly.
15569         * d30v/d30v-protos.h: Similarly.
15570         * d30v/d30v.c: Similarly.
15571         * d30v/d30v.h: Similarly.
15572         * d30v/d30v.md: Similarly.
15573         * dsp16xx/dsp16xx-protos.h: Similarly.
15574         * dsp16xx/dsp16xx.c: Similarly.
15575         * dsp16xx/dsp16xx.h: Similarly.
15576         * elxsi/elxsi.c: Similarly.
15577         * elxsi/elxsi.h: Similarly.
15578         * fr30/fr30.c: Similarly.
15579         * fr30/fr30.md: Similarly.
15580         * h8300/h8300-protos.h: Similarly.
15581         * h8300/h8300.c: Similarly.
15582         * h8300/h8300.h: Similarly.
15583         * i370/i370-protos.h: Similarly.
15584         * i370/i370.c: Similarly.
15585         * i370/i370.h: Similarly.
15586         * i386/i386.c: Similarly.
15587         * i386/osf1elf.h: Similarly.
15588         * i386/osfrose.h: Similarly.
15589         * i860/i860-protos.h: Similarly.
15590         * i860/i860.c: Similarly.
15591         * i860/i860.h: Similarly.
15592         * i960/i960-protos.h: Similarly.
15593         * i960/i960.c: Similarly.
15594         * i960/i960.h: Similarly.
15595         * ia64/ia64-protos.h: Similarly.
15596         * ia64/ia64.c: Similarly.
15597         * ia64/ia64.h: Similarly.
15598         * m32r/m32r-protos.h: Similarly.
15599         * m32r/m32r.c: Similarly.
15600         * m32r/m32r.h: Similarly.
15601         * m68hc11/m68hc11-protos.h: Similarly.
15602         * m68hc11/m68hc11.c: Similarly.
15603         * m68hc11/m68hc11.h: Similarly.
15604         * m68k/crds.h: Similarly.
15605         * m68k/dpx2.h: Similarly.
15606         * m68k/m68k-protos.h: Similarly.
15607         * m68k/m68k.c: Similarly.
15608         * m68k/m68k.h: Similarly.
15609         * m68k/news.h: Similarly.
15610         * m88k/m88k-protos.h: Similarly.
15611         * m88k/m88k.c: Similarly.
15612         * m88k/m88k.h: Similarly.
15613         * mips/mips-protos.h: Similarly.
15614         * mips/mips.c: Similarly.
15615         * mips/mips.h: Similarly.
15616         * ns32k/merlin.h: Similarly.
15617         * ns32k/ns32k.c: Similarly.
15618         * ns32k/ns32k.h: Similarly.
15619         * ns32k/tek6000.h: Similarly.
15620         * pa/pa-protos.h: Similarly.
15621         * pa/pa.c: Similarly.
15622         * pa/pa.h: Similarly.
15623         * pdp11/2bsd.h: Similarly.
15624         * pdp11/pdp11-protos.h: Similarly.
15625         * pdp11/pdp11.c: Similarly.
15626         * pdp11/pdp11.h: Similarly.
15627         * romp/romp-protos.h: Similarly.
15628         * romp/romp.c: Similarly.
15629         * romp/romp.h: Similarly.
15630         * rs6000/rs6000-protos.h: Similarly.
15631         * rs6000/rs6000.c: Similarly.
15632         * rs6000/rs6000.h: Similarly.
15633         * rs6000/sysv4.h: Similarly.
15634         * sh/sh-protos.h: Similarly.
15635         * sh/sh.c: Similarly.
15636         * sh/sh.h: Similarly.
15637         * sparc/sparc-protos.h: Similarly.
15638         * sparc/sparc.c: Similarly.
15639         * sparc/sparc.h: Similarly.
15640         * vax/vax.c: Similarly.
15641         * vax/vax.h: Similarly.
15642         * vax/vms.h: Similarly.
15643         * we32k/we32k.c: Similarly.
15644         * we32k/we32k.h: Similarly.
15646 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
15648         * basic-block.h (first_insn_after_basic_block_note): Declare.
15649         * flow.c (first_insn_after_basic_block_note): Define.  Moved
15650         from...
15651         * ssa.c (first_insn_after_basic_block_note): Remove.
15652         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
15653         necessary.
15654         (ssa_eliminate_dead_code): Properly update the CFG and PHI
15655         nodes when we find a dead conditional branch.  Insert BARRIERs
15656         after any blocks with no successors, but which do not have
15657         any BARRIERs.
15659 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
15661         * varray.c (varray_check_failed): Use internal_error.
15663 2001-07-05  Andrew Haley  <aph@redhat.com>
15665         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
15666         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
15667         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
15669 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
15671         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
15672         reference if the target constant is also a SYMBOL_REF.
15674 2001-07-05  Eric Christopher  <echristo@redhat.com>
15676         * config/mips/mips.h (MASK_MIPS3900): Remove.
15677         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
15678         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
15679         (TARGET_MIPS3900): Change to use mips_arch.
15680         (TARGET_MIPS4000): New.
15681         (TARGET_MIPS4100): New.
15682         (TARGET_MIPS4300): New.
15683         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
15684         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
15685         for -mipsX.
15686         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
15687         (ISA_HAS_BRANCHLIKELY): To here.
15688         (CC1_CPU_SPEC):  New.
15689         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
15690         (mips_arch_string): Declare.
15691         (mips_arch): Declare.
15692         (TARGET_OPTIONS): Add -march and -mtune.
15694         * config/mips/mips.c (mips_arch_string): New.
15695         (mips_arch): New.
15696         (override_options): Handle -march for codegen and -mtune
15697         for scheduling. Use mips_arch. Move tx39 target default here.
15698         (mips_parse_cpu): Move error message to override_options.
15700         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
15702         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
15704         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
15705         (MIPS Options): Ditto.  Change mcpu entry to historical text.
15707 2001-07-05  H.J. Lu  (hjl@gnu.org)
15709         * config/mips/mips.c (mips_parse_cpu): New function to parse
15710         -march=*/-mcpu=*.
15712 2001-07-05  Jim Wilson  <wilson@redhat.com>
15714         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
15715         * config/ia64/t-ia64: Likewise.
15716         (LIB1ASMFUNCS): Update comment.
15718 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
15720         * doc/install.texi (Install GCC: Binaries): Fix typo.
15722 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15724         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
15725         reference using the stack pointer, adjust it since we push Y
15726         temporarily.
15727         ("*ashrsi3"): Likewise.
15728         ("*lshrsi3"): Likewise.
15730 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15732         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
15733         when -fomit-frame-pointer is used.
15735 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
15737         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
15738         (try_redirect_by_replacing_jump): Reverse updating properly the
15739         count and frequency information.  Reverse removing cc0 setter.
15740         (forwarder_block_p): Reverse fixing for fallthru blocks.
15742 2001-07-05  DJ Delorie  <dj@redhat.com>
15744         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
15745         (translate_options): If the above is defined, use it to map
15746         given options to new options.
15747         * doc/tm.texi: Document it.
15749 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
15750             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15752         * doc/invoke.texi (Optimize Options): Document that -fgcse may
15753         cause programs using computed gotos to run more slowly.
15755 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15757         * doc/install.texi (Specific): Markup, spelling and typo fixes.
15758         Fixed sorting.
15759         Consistently require binutils 2.11.2, not prereleases.
15760         (Specific, decstation-*): Canonicalize as mips-dec-*.
15761         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
15762         always necessary.
15763         (Specific, m68k-altos): Removed reference to README.altos, deleted.
15764         (Specific, mips-*): Reword MIPS C compiler requirements.
15765         (Specific, powerpc*-*-*): New, mention --with-cpu once.
15766         (Specific, sunv5): Removed, obsolete.
15768 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
15770         * dwarf2out.c (output_loc_list): Use an all ones mask for
15771         .text asm output and don't rely on long long
15772         literals. Reformat some long lines.
15774 2001-07-05  Andreas Jaeger  <aj@suse.de>
15776         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
15777         section.
15779 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15781         * dwarf2out.c (dwarf2out_define): Update comment.
15782         (dwarf2out_undef): Ditto.
15783         (dwarf2out_start_source_file): Ditto.
15784         (dwarf2out_end_source_file): Ditto.
15785         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
15786         since we never call the start/end debug hook for the primary file.
15788 2001-07-04  Kazu Hirata  <kazu@hxi.com>
15790         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
15791         from shll.
15793 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
15795         * cppinit.c (remove_dup_dirs): Inform if a system include
15796         directory is being reordered.
15797         * doc/invoke.texi (Directory Options): GCC warns if you hide a
15798         system include.
15799         * doc/cpp.texi (Search Paths): Likewise.
15800         * doc/gcc.texi (Interoperation): Remove information about
15801         -I/usr/include.
15803 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
15805         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
15806         (VARRAY_TOP_CHAR_PTR): Likewise.
15808 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15810         * gcc.c (process_command): Don't assign elements of a const char*.
15812 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15814         * emit-rtl.c (change_address): Don't abort if invalid address while
15815         reload is in progress.
15817 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15819         * c-lex.c (cb_file_change): Pass line number to
15820         debug_start_source_file.
15821         (cb_undefine): Pass correct line number to debug_undef.
15823         * toplev.c (debug_start_source_file): Add line number to
15824         parameters. Pass it along to dwarf2out_start_source_file.
15825         (decode_g_option): Stop resetting debug level back to normal when
15826         we change debug formats, unless the current level is
15827         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
15828         3).
15830         * toplev.h (debug_start_source_file): Add line number to
15831         parameters.
15833         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
15834         parameters.
15836         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
15837         parameters.
15838         Output debug_macinfo data for starting file if requested.
15839         (dwarf2out_end_source_file): Output debug_macinfo data for ending
15840         file if requested.
15841         (dwarf2out_define): Output debug_macinfo data for defining a macro
15842         if requested.
15843         (dwarf2out_undef): Output debug_macinfo data for undefining a
15844         macro if requested.
15845         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
15846         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
15847         (macinfo_section_label): New. DWARF2 macro info section label.
15848         (dwarf2out_init): If we want macro info, output the start label
15849         for the section.
15850         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
15851         attribute to the compilation unit die pointing to the macro info.
15853 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15855         * dwarf2out.c (new_loc_list): Move to inside #ifdef
15856         DWARF2_DEBUGGING_INFO.
15857         (add_loc_descr_to_loc_list): Ditto.
15858         (output_loc_list): Ditto.
15859         Also, fix thinko in curr not being initialized.
15860         (gen_internal_sym): Ditto.
15862 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15864         * emit-rtl.c (replace_equiv_address): New function.
15865         * expr.h (replace_equiv_address): New declaration.
15866         * explow.c (validize_mem): Call it instead of change_address and
15867         also call if -fforce-addr and address is constant.
15868         * expr.c: Replace more calls to change_address with adjust_address
15869         and/or replace_equiv_address or to validize_mem.
15870         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
15871         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
15872         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15873         * config/i370/i370.md, config/i860/i860.md: Likewise.
15874         * config/i960/i960.md, config/mips/mips.c: Likewise.
15875         * config/mips/mips.md, config/pa/pa.md: Likewise.
15876         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
15877         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
15879 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15881         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
15883         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
15884         function.
15886 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
15888         * doc/include: New directory.
15889         * doc/fdl.texi: Move to doc/include/fdl.texi.
15890         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
15891         * doc/include/funding.texi, doc/include/gpl.texi: New files.
15892         * doc/gcc.texi: Use funding.texi and gpl.texi.
15893         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
15894         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
15895         Update dependencies and use -I $(docdir)/include.
15897 2001-07-04  Anthony Green  <green@redhat.com>
15899         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
15901 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15903         * doc/install.texi (sparc64-*-*): Remove garbage.
15905 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
15907         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
15908         Fix typo in last change to use adjust_address.
15910 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15912         * doc/install.texi (Specific): Update information for *-*-solaris*.
15914 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15916         * explow.c (plus_constant_wide): Reinitialize Y for restart.
15918 2001-07-03  Stan Shebs  <shebs@apple.com>
15920         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
15921         case for flag_no_mach_text_sections.
15922         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
15923         * config/darwin.c (flag_no_mach_text_sections): Remove.
15924         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
15926 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15928         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
15929         and avoid checking for constant as first operand.
15930         * recog.c (find_constant_term_loc): No longer static.
15931         (adj_offettable_operand): Delete.
15932         * rtl.h (adj_offsettable_operand): Delete declaration.
15933         (find_constant_term): Add declaration.
15934         * caller-save.c: Replace calls to adj_offsettable_operand with calls
15935         to adjust_address.
15936         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
15937         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
15938         * config/i386/i386.c, config/i386/i386.md: Likewise.
15939         * config/i860/i860.c, config/i960/i960.c: Likewise.
15940         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
15941         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
15942         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
15943         * config/mips/mips.c, config/mips/mips.md: Likewise.
15944         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
15945         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
15946         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
15947         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
15948         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
15949         * config/ns32k/ns32k.md: Likewise.
15951 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
15953         * rtl.c (copy_rtx): Handle 'T' format letter.
15954         * gensupport.c (collect_insn_data): Likewise.
15955         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
15957 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
15959         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
15960         -B option.  Use 'dir' not 'foo' as example directory name.
15962 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15964         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15965         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
15967 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
15969         * doc/cppinternals.texi: Improve formatting and logical markup.
15971 2001-07-03  Andreas Jaeger  <aj@suse.de>
15973         * Makefile.in (insn-recog.o): Add dependency on reload.h.
15975         * genrecog.c (write_header): Include reload.h for prototypes in
15976         insn-recog.c.
15978 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
15980 config:
15981         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
15982         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
15983         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
15984         i386_pe_valid_type_attribute_p): Add.
15985         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
15986         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
15988 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15990         * explow.c (plus_constant_wide, case LO_SUM): New case.
15991         (plus_constant_for_output_wide): Delete.
15992         * rtl.h (plus_constant_for_output): Delete.
15993         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
15994         instead of plus_constant_for_output.
15995         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
15996         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
15997         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
15998         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
15999         * config/sparc/sparc.md: Likewise.
16000         Convert some change_address calls to adjust_address.
16002 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
16004         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
16005         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
16006         documentation of -std and -Wwrite-strings.
16008 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
16010         * cse.c (canon_hash): Don't register registers in very small
16011         register classes, as extending their lifetime might cause
16012         reload to fail.
16014 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
16016         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
16018         * flow.c (forwarder_block_p): Fix for fallthru blocks.
16019         (try_redirect_by_replacing_jump): Update properly the count
16020         and frequency information.
16022 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
16024         * toplev.c (dump_file_index): Move SSA dumps just after first
16025         jump dump.
16026         (dump_file): Corresponding changes.
16027         (rest_of_compilation): Move SSA path to just after the first
16028         jump pass.
16029         * doc/gcc.texi (Passes): Update due to movement of SSA path.
16030         * doc/invoke.texi: Update dump file #s as they were completely
16031         out of date with reality.
16033 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
16035         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
16037         * expr.c (emit_move_insn_1): Deal with non-default
16038         STACK_PUSH_CODE.
16040         * expr.c (emit_single_push_insn): Fix warning.
16042 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
16044         * expr.c (emit_move_insn_1): Avoid modifying
16045         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
16047 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16049         * emit-rtl.c (adjust_address): New function.
16050         * expr.h (adjust_address): Add declaration.
16051         * builtins.c: Replace some calls to change_address with calls to it
16052         or to validize_mem.
16053         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
16054         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
16055         * config/arm/arm.c, config/convex/convex.c: Likewise.
16056         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
16057         * config/i386/i386.c, config/i386/i386.md: Likewise.
16058         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
16059         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
16060         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
16061         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
16062         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
16064 2001-07-02  Jim Wilson  <wilson@redhat.com>
16066         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
16068 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
16070         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
16071         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
16073 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
16075         * cppinit.c (lang_defaults): New table.
16076         (set_lang): Just read from lang_defaults into the live options
16077         structure.
16079 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
16081         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
16082         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
16083         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
16085 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16087         * doc/install.texi: Various spelling and markup fixes.
16088         (Installing GCC): Component specific installation instructions are
16089         gone.
16090         Fix reference.
16091         Warn about removing old install dir in the presence of shared libs.
16092         (Configuration): Invoke with options target to match configure
16093         --help.
16094         Consistently refer to gas, gld pathnames.
16095         Invert --enable-multilib documentation.
16096         Remove references to old compiler versions.
16098 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16100         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
16102 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
16104         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
16105         section.
16106         (Specific, mips*-sgi-irix5): Note IDO download.
16107         Reworded MIPS C hints.
16108         Use GNU as instead of GAS.
16109         Markup fixes.
16110         Removed SGI Freeware reference, IRIX 6 only.
16111         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
16112         Note N64 library requirement/workaround.
16113         Update O32 hints.
16114         Complete list of structure passing bug victims.
16116 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16118         * doc/install.texi: Remove CVS Id.
16120 2001-07-02  Andreas Jaeger  <aj@suse.de>
16122         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
16123         (find_inherently_necessary): Remove unused variable.
16125 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
16127         * c-common.h (TDI_inlined): New ast dump phase.
16128         (dump_flag_name): New function.
16129         * c-dump.c (dump_files): Add inlined phase.
16130         (dump_flag_name): Define.
16131         * doc/invoke.texi (-fdump-ast-inlined): Document.
16133 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16135         * stor-layout.c (layout_decl): Revert change to handling of alignment
16136         in packed types.
16138 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16140         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
16141         for FIELD_DECL.
16143 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
16145         * doc/tm.texi (FUNCTION_ARG): Document that the last call
16146         is special.
16148 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
16150         * tlink.c (recompile_files): Remove COMPILER_PATH and
16151         LIBRARY_PATH from the environment.
16153 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
16155         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
16156         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
16157         enumerators.
16158         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
16160         * c-parse.in (OBJC_STRING): Kill.
16161         (objc_string): Decompose to [objc_string] '@' STRING.
16162         (reswords): Take the leading '@' off all the Objective C keywords.
16163         (objc_rid_sans_at): Kill.
16164         (init_reswords): Don't initialize it.
16165         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
16166         (_yylex): Kill reconsider label.  Look ahead one token after
16167         an '@'; if we get an identifier, check whether it's an
16168         Objective C @-keyword.  If so, return the keyword.  Otherwise,
16169         put back the token and return the '@' as a terminal.
16171         * cpplib.c (lex_macro_node): Remove unnecessary check for
16172         leading '@' on identifier.  Clarify control flow and commentary.
16174 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16176         * cse.c (new_label_ref): Variable deleted.
16177         (insert): Remove set of new_label_ref.
16178         (check_for_label_ref): New function.
16179         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
16181 See ChangeLog.5 for earlier changes.