OSDN Git Service

* doc/install.texi: Use the GFDL. Include years from old install
[pf3gnuchains/gcc-fork.git] / gcc / ChangeLog
1 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
2
3         * doc/install.texi: Use the GFDL.  Include years from old install
4         manual in copyright notice.  Include copyright and GFDL notice on
5         HTML index page.  Include usual footer on testing.html.
6         * doc/install.texi2html: Build gfdl.html.  Use -I
7         $SOURCEDIR/include.
8         * doc/include/fdl.texi: Adapt for use in the install manual.
9
10 2001-12-04  Joseph S. Myers  <jsm28@cam.ac.uk>
11
12         * doc/install.texi: Document that installed native compiler for
13         building cross compilers should be GCC 2.95 or later.
14
15 2001-12-03  Eric Christopher  <echristo@redhat.com>
16
17         * config/mips/mips.h (CALL_REALLY_USED_REGISTERS): New macro.
18         * config/mips/mips.md: Check TARGET_DEBUG_D_MODE before split
19         patterns.
20
21 2001-12-03  Janis Johnson  <janis187@us.ibm.com>
22
23         * rtl.def (PREFETCH): New rtx code.
24         * doc/rtl.texi (PREFETCH): Add documentation.
25         * function.c (instantiate_virtual_regs_1): Handle PREFETCH rtx.
26         * rtlanal.c (reg_referenced_p): Ditto.
27         * sched-vis.c (print_exp):  Ditto.
28         * ssa-dce.c (find_inherently_necessary):  Ditto.
29
30         * config/ia64/ia64.h (SIMULTANEOUS PREFETCHES): Define.
31           (PREFETCH_BLOCK): Define.
32         * config/ia64/ia64.md (itanium_class): Add lfetch.
33           (prefetch, prefetch_internal): New.
34
35         * builtin-types.def (BT_FN_VOID_PTR_INT_INT): New.
36         * builtins.def (BUILT_IN_PREFETCH): New.
37         * builtins.c (expand_builtin_expect): New.
38           (expand_builtin): Call it.
39         * doc/extend.texi: Document __builtin_expect.
40
41         * config/i386/i386.md (prefetch): Rename as prefetch_sse to avoid
42           conflicts with new generic prefetch functionality.
43         * config/i386/i386.c (ix86_expand_builtin): Use new name for
44           prefetch_sse.
45
46 2001-12-02  Ziemowit Laski  <zlaski@apple.com>
47
48         * objc/Make-lang.in: Update copyright.
49         (OBJC_OBJS): Add objc-lang.o.
50         (objc-lang.o): New rule.
51         * objc/config-lang.in: Fix file description and update
52         copyright.
53         * objc/objc-act.c: Do not include langhooks.h and
54         langhooks-def.h
55         (lang_hooks): Move (along with LANG_HOOKS...) to objc-lang.c.
56         (objc_post_options): Move to objc-lang.c.
57         (objc_init_options): Move to objc-lang.c.
58         (objc_init): Make non-static.
59         (objc_decode_option): Make non-static.
60         (HASHFUNCTION): Remove macro.
61         (hash_func): New function.
62         (hash_enter): Replace HASHFUNCTION with hash_func.
63         (hash_lookup): Replace HASHFUNCTION with hash_func.
64         (maybe_objc_tree_codes): New function.
65         (init_objc): Move ObjC tree code initialization to
66         maybe_objc_tree_codes().
67         * objc/objc-act.h (GCC_OBJC_ACT_H): New include guard.
68         (objc_init): New public prototype.
69         (objc_decode_option): New public prototype.
70         (maybe_add_objc_tree_codes): New public prototype.
71         * objc/objc-lang.c: New file.
72         (lang_hooks): Moved from objc-act.c.
73         (objc_post_options): Moved from objc-act.c.
74         (objc_init_options): Moved from objc-act.c.
75
76 2001-12-03  Geoff Keating  <geoffk@redhat.com>
77
78         * emit-rtl.c (gen_lowpart_common): Avoid unwanted sign-extension
79         of array elements.
80
81 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
82
83         PR c/4988
84         * (process_command): Don't add a preprocessor option for
85         --help and --target-help; cc1 is enough.
86
87 2001-12-03  Neil Booth  <neil@daikokuya.demon.co.uk>
88
89         * c-decl.c (grokdeclarator): Use ISO word.
90         * cppinit.c: Remove leading capital from diagnostic messages, as
91         per GNU coding standards.
92         * emit-rtl.c: Similarly.
93         * final.c: Similarly.
94         * gcc.c: Similarly.
95         * tradcpp.c: Similarly.
96         * config/arm/arm.c: Similarly.
97         * config/arm/arm.h: Similarly.
98         * config/avr/avr.c: Similarly.
99         * config/avr/avr.h: Similarly.
100         * config/c4x/c4x.c: Similarly.
101         * config/cris/cris.c: Similarly.
102         * config/cris/cris.h: Similarly.
103         * config/d30v/d30v.c: Similarly.
104         * config/dsp16xx/dsp16xx.c: Similarly.
105         * config/dsp16xx/dsp16xx.h: Similarly.
106         * config/h8300/h8300.c: Similarly.
107         * config/i386/i386.c: Similarly.
108         * config/i386/xm-djgpp.h: Similarly.
109         * config/i960/i960.h: Similarly.
110         * config/m32r/m32r.c: Similarly.
111         * config/m68hc11/m68hc11.c: Similarly.
112         * config/m88k/m88k.c: Similarly.
113         * config/m88k/m88k.h: Similarly.
114         * config/mcore/mcore.c: Similarly.
115         * config/mcore/mcore.h: Similarly.
116         * config/mips/mips.c: Similarly.
117         * config/mmix/mmix.c: Similarly.
118         * config/pa/pa.c: Similarly.
119         * config/rs6000/rs6000.c: Similarly.
120         * config/rs6000/sysv4.h: Similarly.
121         * config/s390/s390.c: Similarly.
122         * config/sparc/sparc.c: Similarly.
123         * config/v850/v850-c.c: Similarly.
124         * config/v850/v850.c: Similarly.
125
126 2001-12-03  Zack Weinberg  <zack@codesourcery.com>
127
128         * rs6000.h (RETURN_IN_MEMORY): Cast result of
129         int_size_in_bytes to unsigned HOST_WIDEST_INT so that -1 > 8.
130
131 Mon Dec  3 09:18:34 2001  Jeffrey A Law  (law@cygnus.com)
132
133         * mn10200.md (negsf2): Use -0x8000 instead of 0x8000 for
134         bit twiddling constant.
135
136 Mon Dec  3 16:16:37 CET 2001  Jan Hubicka  <jh@suse.cz>
137
138         * gcse.c (delete_null_pointer_checks_1): Do not use delete_list;
139         call purge_dead_edges after removing.
140         (delete_null_pointer_checks): Do not handle delete_list.
141
142         * cfgbuild.c (inside_basic_block_p, control_flow_insn_p): Break out from ...
143         (count_basic_blocks): ... here.
144         (find_basic_blocks, find_bb_boundaries): Cleanup.
145
146         * stor-layout.c (fixup_signed_type, fixup_unsigned_type): Avoid
147         overflow for types greater then 2 * HOST_WIDE_INT.
148
149         * reload.c (find_reloads): Update the duplicates after swapingg.
150
151 Mon Dec  3 13:52:19 CET 2001  Jan Hubicka  <jh@suse.cz>
152
153         * i386.md (movabsqi*): Use 'b' prefix instead of 'q'.
154
155 2001-12-02  Zack Weinberg  <zack@codesourcery.com>
156
157         * config/rs6000/rs6000.h (MASK_ALTIVEC_ABI,
158         MASK_LONG_DOUBLE_128): Delete.
159         (MASK_AIX_STRUCT_RET, MASK_AIX_STRUCT_RET_SET,
160         TARGET_AIX_STRUCT_RET): New flags.
161         (TARGET_SWITCHES): Remove entries for -mlong-double-128 and
162         -mlong-double-64.  Add entries for -m(no-)aix-struct-return
163         and -m(no-)svr4-struct-return.
164         (TARGET_OPTIONS): Add entry for -mlong-double-.
165         (rs6000_long_double_size_string, rs6000_long_double_type_size,
166         rs6000_altivec_abi): Declare.
167         (TARGET_LONG_DOUBLE_128, TARGET_ALTIVEC_ABI,
168         LONG_DOUBLE_TYPE_SIZE): Change definitions to match.
169         (RETURN_IN_MEMORY): If !TARGET_AIX_STRUCT_RET, return
170         structures of size <= 8 bytes in registers.
171         (PRINT_OPERAND_PUNCT_VALID_P): Take out '$' and '*'.
172
173         * config/rs6000/rs6000.c (rs6000_long_double_size_string,
174         rs6000_long_double_type_size, rs6000_altivec_abi): New
175         globals.
176         (rs6000_override_options): Set rs6000_long_double_type_size
177         from rs6000_long_double_size_string, if nonzero.  Set the
178         MASK_AIX_STRUCT_RET bit in target_flags from DEFAULT_ABI, if
179         not already set.
180         (rs6000_parse_abi_options): Set rs6000_altivec_abi, not a
181         target_flags bit.
182         (rs6000_init_builtins): This hook now takes no arguments.
183
184         * config/rs6000/netbsd.h, config/rs6000/linux.h: Define
185         DRAFT_V4_STRUCT_RET to 1.
186
187 2001-12-03  Joseph S. Myers  <jsm28@cam.ac.uk>
188
189         * c-typeck.c (really_start_incremental_init, push_init_level):
190         Avoid constructor_max_index being other than an INTEGER_CST.
191
192 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
193
194         * config/rs6000/xcoff.h (ASM_OUTPUT_INTERNAL_LABEL): Display count
195         unsigned.
196         (ASM_GENERATE_INTERNAL_LABEL): Same.
197         (UNIQUE_SECTION): Fix typo.
198
199 2001-12-02  Richard Henderson  <rth@redhat.com>
200
201         * c-decl.c (duplicate_decls): Conditionalize DECL_SAVED_TREE copy.
202
203 2001-12-02  Richard Henderson  <rth@redhat.com>
204
205         * rtl.h (mem_attrs): Rename decl to expr; adjust all users.
206         (MEM_EXPR): Rename from MEM_DECL; adjust all users.
207         * emit-rtl.c (set_mem_expr): Rename from set_mem_decl.
208         * expr.h, final.c, reload1.c: Adjust users.
209
210         * alias.c (nonoverlapping_component_refs_p): New.
211         (decl_for_component_ref, adjust_offset_for_component_ref): New.
212         (nonoverlapping_memrefs_p): Use them.
213         * emit-rtl.c (component_ref_for_mem_expr): New.
214         (set_mem_attributes): Use it.
215         (set_mem_offset): New.
216         * expr.c (expand_assignment): Call set_mem_attributes for
217         inner references; adjust the memory offset as needed.
218         * print-rtl.c (print_mem_expr): New.
219         (print_rtx): Use it.
220
221 Sun Dec  2 09:22:25 2001  Douglas B. Rupp  <rupp@gnat.com>
222
223         * config/x-interix3 (SYSTEM_HEADER_DIR): Put back default.
224
225         * config/alpha/vms.h (VMS_DEBUGGING_INFO): New macro.
226         (PREFERRED_DEBUGGING_TYPE): Define as VMS_AND_DWARF2_DEBUG.
227         (ASM_SPEC): Don't redefine.
228         (OPTIMIZATION_OPTIONS, OVERRIDE_OPTIONS, LINK_SPEC): Define.
229         * config/alpha/t-vms (EXTRA_PARTS): Use; add rule for vms-dwarf2.asm.
230         * config/alpha/vms-dwarf2.asm: New file.
231
232         * Makefile.in (OBJS): Add vmsdbgout.c and its rule.
233         * c-lex.c (init_c_lex): Test for VMS_AND_DWARF2_DEBUG.
234         * debug.h (gcc_debug_hooks): Add vmsdbg_debug_hooks.
235         (vmsdbgout_after_prologue): New declaration.
236         * defaults.h (VMS_DEBUGGING_INFO): Add to PREFERRED_DEBUGGING_TYPE.
237         * dwarf2.h (dwarf_attribute): New DW_AT_VMS_rtnbeg_pd_address.
238         * dwarf2out.c (dwarf2out_do_frame): Test for VMS_AND_DWARF2_DEBUG.
239         (dwarf2out_frame_finish): Test for VMS_AND_DWARF2_DEBUG.
240         (dwarf_attr_name): Use DW_AT_VMS_rtnbeg_pd_address.
241         (add_name_and_src_coords_attributes): Test VMS_DEBUGGING_INFO
242         * final.c (final_start_function): Test for VMS_AND_DWARF2_DEBUG.
243         Test VMS_DEBUGGING_INFO.
244         (final_end_function): Test for VMS_AND_DWARF2_DEBUG.
245         (final_scan_insn): Test for VMS_AND_DWARF2_DEBUG and VMS_DEBUG.
246         * flags.h (debug_info_type): Add VMS_DEBUG and VMS_AND_DWARF2_DEBUG.
247         * toplev.c (compile_file): Test VMS_DEBUGGING_INFO, VMS_DEBUG, and
248         VMS_AND_DWARF2_DEBUG.
249         (rest_of_type_compilation): Test for VMS_AND_DWARF2_DEBUG.
250         (decode_g_option): Add "vms" to debug_type_names.
251         (process_options): Set vmsdbg_debug_hooks if -gvms.
252         (lang_independent_init): Emit line number for VMS unless -g0.
253         * tree.c: (build_complex_type): Test for VMS_AND_DWARF2_DEBUG.
254         * vmsdbg.h, vmsdbgout.c: New files.
255
256 Sun Dec  2 09:03:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
257
258         * cfgbuild.c (SET_STATE): Add cast to eliminate warning.a
259
260 2001-12-02  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
261
262         * cfgrtl.c (purge_all_dead_edges): Initialize variable.
263         * dwarf2out.c (is_cxx): Prototype.
264         * local-alloc.c (block_alloc): Avoid 'unsigned>=0 is always true'
265         warning.
266         * objc/objc-act.c (defer_fn): Avoid signed/unsigned warning.
267
268 Sun Dec  2 07:12:30 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
269
270         * libgcc2.c (__bb_exit_func): Fix line wrap problems.
271
272 2001-12-02  Geoff Keating  <geoffk@redhat.com>
273
274         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Simplify.
275         * config/rs6000/rs6000.c (rs6000_emit_move): Use adjust_address
276         rather than simplify_subreg.  Check for volatile-ness.  Check that
277         we're not splitting one slow operation into two slow operations.
278
279 2001-12-02  David Edelsohn  <edelsohn@gnu.org>
280
281         * emit-rtl.c (gen_lowpart_common): Cast array element to HOST_WIDE_INT
282         before shifting.
283
284 2001-12-02  Neil Booth  <neil@daikokuya.demon.co.uk>
285
286         * c-decl.c (duplicate_decls, push_parm_decl): Remove leading
287         capital from diagnostics.
288         * c-lex.c (cb_file_change): Similarly.
289         * c-parse.in : Similarly.
290         * cfgrtl.c (verify_flow_info): Similarly.
291         * collect2.c: Similarly.
292         * cppfiles.c (find_include_file): Similarly.
293         * cppinit.c (cpp_handle_option): Similarly.
294         * cpplex.c (cpp_spell_token): Similarly.
295         * cppmain.c (do_preprocessing): Similarly.
296         * gcc.c (translate_options, process_command, do_spec1,
297         main, pfatal_execute): Similarly.
298         * genattr.c (main): Similarly.
299         * genattrtab.c (check_attr_test, operate_exp, simplify_test_exp,
300         write_test_expr, main): Similarly.
301         * gencodes.c (main): Similarly.
302         * genconfig.c (main): Similarly.
303         * genconstants.c (main): Similarly.
304         * genemit.c (main): Similarly.
305         * genextract.c (main): Similarly.
306         * genflags.c (main): Similarly.
307         * genopinit.c (main): Similarly.
308         * genoutput.c (process_template, main): Similarly.
309         * genpeep.c (main): Similarly.
310         * genrecog.c (main): Similarly.
311         * gensupport.c (is_predicable, identify_predicable_attribute,
312         alter_predicate_for_insn, init_md_reader_args, main): Similarly.
313         * ggc-page.c (alloc_anon): Similarly.
314         * mips-tfile.c (add_string, add_procedure, add_file, read_line,
315         parse_begin, parse_bend, parse_def, parse_end, parse_file,
316         parse_stabs_common, parse_stabs, write_varray, write_object,
317         read_seek, copy_object, main, error): Similarly.
318         * profile.c (compute_branch_probabilities): Similarly.
319         * reg-stack.c (check_asm_stack_operands): Similarly.
320         * reload.c (find_reloads): Similarly.
321         * reload1.c (spill_failure, failed_reload): Similarly.
322         * rtl-error.c (_fatal_insn_not_found): Similarly.
323         * toplev.c (read_integral_parameter, crash_signal,
324         decode_f_option, set_target_switch, parse_options_and_default_flags)
325         : Similarly.
326         * tradcif.y (parse_number, yylex): Similarly.
327         * tradcpp.c (main, fancy_abort): Similarly.
328         * tree.c (tree_check_failed): Similarly.
329         * varray.c (varray_check_failed): Similarly.
330         * xcoffout.c (xcoff_output_standard_types): Similarly.
331 objc:
332         * objc-act.c (get_object_ref, lookup_and_install_protocols,
333         build_objc_string_object, objc_declare_alias, build_ivar_chain,
334         finish_message_expr, build_protocol_expr, is_public,
335         start_class): Similarly.
336
337 2001-12-01  Neil Booth  <neil@daikokuya.demon.co.uk>
338
339         * c-decl.c (duplicate_decls, parmlist_tags_warning): Remove
340         trailing period from diagnostics.
341         * c-lex.c (cb_file_change): Similarly.
342         * cppmacro.c (check_trad_stringification): Similarly.
343         * gcc.c (do_spec_1): Similarly.
344         * genattr.c (main): Similarly.
345         * genattrtab.c (main, operate_exp, make_length_attrs): Similarly.
346         * gencodes.c (main): Similarly.
347         * genconfig.c (main): Similarly.
348         * genconstants.c (main): Similarly.
349         * genemit.c (main): Similarly.
350         * genextract.c (main): Similarly.
351         * genopinit.c (main): Similarly.
352         * genoutput.c (main): Similarly.
353         * genpeep.c (main): Similarly.
354         * genrecog.c (main): Similarly.
355         * mips-tfile.c (add_file, error): Similarly.
356         * profile.c (init_branch_prob): Similarly.
357         * reload1.c (spill_failure): Similarly.
358         * stmt.c (parse_output_constraint): Similarly.
359         * varasm.c (assemble_variable): Similarly.
360
361 2001-12-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
362
363         * m68k.c (init_FPA_table): Provide static prototype.
364         * mips/abi64.h (mips_function_value): Move prototype to ...
365         * mips-protos.h (mips_function_value): ... here.
366         * mips.c: Include halfpic.h.
367         * output.h (rdata_section): Prototype.
368
369         * h8300.c (h8300_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
370         * m88k.c (m88k_svr3_asm_out_constructor,
371         m88k_svr3_asm_out_destructor): Wrap with CTOR_LIST_BEGIN &&
372         !OBJECT_FORMAT_ELF.
373         * mcore.c (mcore_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
374         * sh.c (sh_asm_named_section): Wrap with !OBJECT_FORMAT_ELF.
375         * sparc.c (sparc_elf_asm_named_section): Wrap with OBJECT_FORMAT_ELF.
376
377 2001-12-01  Geoff Keating  <geoffk@redhat.com>
378
379         * config/rs6000/rs6000.h (LEGITIMATE_LO_SUM_ADDRESS_P): Complex
380         LO_SUM addresses less than word size are not legitimate,
381         because they lead to invalid SUBREGs.
382         * config/rs6000/rs6000.c (rs6000_legitimize_address): Likewise.
383
384 2001-12-01  Olivier Hainque <hainque@act-europe.fr>
385
386         * unroll.c (loop_iterations): Give up on jumps with null JUMP_LABEL
387         while scanning for multiple back edges.
388
389 2001-12-01  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
390
391         * ginclude/ppc-asm.h (JUMP_TARGET): New macro.
392         * config/rs6000/tramp.asm: Use it.
393
394 2001-12-01  Zack Weinberg  <zack@codesourcery.com>
395
396         * gencheck.c, gengenrtl.c: Don't define xmalloc.
397         * gensupport.c: Don't define xstrdup, xcalloc, xrealloc,
398         xmalloc.
399
400 2001-11-30  John David Anglin  <dave@hiauly1.hia.nrc.ca>
401
402         * pa.c (output_ascii): Cast `p' to unsigned char.
403
404 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
405
406         * config/rs6000/rs6000.c (altivec_expand_builtin): add
407         ALTIVEC_BUILTIN_LD_INTERNAL_4sf and ALTIVEC_BUILTIN_ST_INTERNAL_4sf,
408         *_16qi,_8hi, rename existing V4SI ones to *_4si.
409         (altivec_init_builtins): Ditto.
410         (bdesc_2arg): Rename CODE_FOR_* to match changes in MD file.
411
412         * config/rs6000/rs6000.md: Add attribute types vecsimple,
413         veccomplex, vecfloat, and vecperm, for altivec instructions.
414         Modify altivec patterns to use approriate attribute type.
415         Modify altivec patterns to match RTL operations where approriate
416         (IE no unspec where we can avoid it).
417         Add vector unit scheduling for ppc7450.
418         Rename patterns to what they are where approriate
419         (altivec_vaddfp->addv4sf3, etc)
420
421         * config/rs6000/rs6000.h (enum rs6000_builtins): Change VRS->VSR.
422         Pass -mppc, and define _ARCH_PPC, if -mcpu=7450 is used.
423
424         * config/rs6000/sysv4.h: Add -mcpu=7450.
425
426         * testsuite/gcc.dg/altivec-1.c: Update test to take into account renamed
427         _builtin_altivec_ld_interal function.
428
429 2001-11-30  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
430
431         * configure.in (AC_CHECK_FUNCS): Delete strtoul, bsearch, popen,
432         strchr, strrchr, isascii, gettimeofday.
433         * config.in, configure: Regenerate.
434
435 2001-11-30  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
436
437         * unroll.c (unroll_loop): Correct special exit cases.
438
439 2001-11-30  Stephane Carrez  <Stephane.Carrez@sun.com>
440
441         * config/sparc/sparc.c (DF_MODES_NO_S): Fix pr/3623, define to
442         accept DFmode and DImode only.
443
444 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
445
446         * config/rs6000/rs6000.h (STARTING_FRAME_OFFSET): Adjust for altivec.
447         (STACK_DYNAMIC_OFFSET): Same.
448
449 2001-11-30  Richard Henderson  <rth@redhat.com>
450
451         * c-decl.c (duplicate_decls): Copy DECL_SAVED_TREE.
452
453 2001-11-30  Aldy Hernandez  <aldyh@redhat.com>
454
455         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): New.
456         (CONDITIONAL_REGISTER_USAGE): Set call_really_used_registers to
457         the values in call_used_registers.
458
459 Fri Nov 30 12:48:26 2001  Jeffrey A Law  (law@cygnus.com)
460
461         * gthr-dce.h: If _DCE_THREADS is not defined, then just include
462         gthr-single.
463
464 2001-11-30  Jason Merrill  <jason@redhat.com>
465
466         * dwarf2out.c (is_cxx): New fn.
467         (add_data_member_location_attribute): Check it.
468         * dbxout.c (dbxout_type): Only look at BINFO_VPTR_FIELD for C++.
469
470 Fri Nov 30 08:26:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
471
472         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Handle const1_rtx.
473
474 2001-11-30  Daniel Berlin  <dan@cgsoftware.com>
475
476         * genopinit.c (gen_insn): Handle MODE_VECTOR_INT and
477         MODE_VECTOR_FLOAT as allowed.
478
479 2001-11-29  Zack Weinberg  <zack@codesourcery.com>
480
481         Purge cruft now we have build libiberty.
482
483         * Makefile.in (OBSTACK, VFPRINTF, DOPRINT, STRSTR,
484         HOST_OBSTACK, HOST_VFPRINTF, HOST_DOPRINT, HOST_STRSTR,
485         USE_HOST_OBSTACK, USE_HOST_VFPRINTF, USE_HOST_DOPRINT,
486         USE_HOST_STRSTR): Delete variables.
487         (vfprintf.o, doprint.o, strstr.o, splay-tree.o, obstack.o,
488         hashtab.o, safe-ctype.o, $(HOST_PREFIX_1)obstack.o,
489         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
490         $(HOST_PREFIX_1)strstr.o), $(HOST_PREFIX_1)): Delete rules.
491         (LIBIBERTY, BUILD_LIBIBERTY): New variables.
492         (LIBDEPS): Now just $(INTLDEPS) $(LIBIBERTY).
493         (LIBS): Now just $(INTLLIBS) @LIBS@ $(LIBIBERTY).
494         (HOST_LIBDEPS): Now just $(BUILD_LIBIBERTY).
495         (HOST_LIBS): Ditto.
496         (HOST_RTL): Remove hashtab.o safe-ctype.o.
497         (OBJS): Remove splay-tree.o.
498         (gen-protos): Depend on $(HOST_LIBS), not ../libiberty/libiberty.a.
499         (distclean): No need to delete splay-tree.c obstack.c
500         hashtab.c safe-ctype.c.
501         (mostlyclean): Delete build copies of print-rtl.c bitmap.c
502         errors.c ggc-none.c (all prefixed with $(HOST_PREFIX_1).
503         * aclocal.m4 (gcc_AC_FUNC_VFPRINTF_DOPRNT, gcc_AC_FUNC_STRSTR):
504         Delete.
505         * configure.in: Don't use them.
506         Set and substitute @FORBUILD@.
507         * config.in, configure: Regenerate.
508         * doprint.c: Move to libiberty/_doprnt.c.
509         * doc/configterms.texi: Document that libiberty is now built
510         up to three times.  Fix typo.
511
512 2001-11-30  Jason Merrill  <jason@redhat.com>
513
514         * dwarf2out.c (add_data_member_location_attribute): Do the
515         right thing for virtual bases.
516         * dbxout.c (dbxout_type): For a virtual base, print the offset
517         within the vtable.
518
519 2001-11-29  Zoltan Hidvegi  <hzoli@hzoli.2y.net>
520
521         * doloop.c (doloop_valid_p): Check for LTU and GTU as well.
522
523 2001-11-29  Aldy Hernandez  <aldyh@redhat.com>
524
525         * config/rs6000/rs6000.c (function_arg): Unnamed vector arguments
526         go in memory.
527         Remove unused attribute for named.
528
529 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
530
531         * genattrtab.c (attr_rtx_1): New function containing the
532         majority of `attr_rtx'.  Move variable declarations into the
533         scope where they are used.  Eliminate unnecessary gotos.
534         (attr_rtx): Now just a wrapper for `attr_rtx_1' using VA_OPEN,
535         VA_FIXEDARG, and VA_CLOSE.
536
537 2001-11-30  Hans-Peter Nilsson  <hp@axis.com>
538
539         * config/cris/cris.c (cris_notice_update_cc): Check first
540         destination also against overlap with cc_status.value2 and second
541         destination against overlap with cc_status.value1.  For overlaps,
542         clear overlapped value, don't just CC_STATUS_INIT.
543
544         * config/cris/cris.h (EXTRA_CONSTRAINT_T): Fix spacing and FIXME.
545         Fix typo in comment.
546         (LINK_SPEC): Remove whitespace at end of line.
547
548 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
549
550         * c-lex.c (init_c_lex): Canonicalize "-" filename to "".
551
552 2001-11-29  Jakub Jelinek  <jakub@redhat.com>
553
554         * gcc.c (ASM_DEBUG_SPEC): Only check HAVE_AS_G*_DEBUG_FLAG
555         macros for the supported debugging types.
556
557 2001-11-29  Craig Rodrigues  <rodrigc@gcc.gnu.org>
558
559         PR other/4932
560         * config/i386/i386.c (print_operand):  Verify that the
561           argument to %c is a constant and not a conditional which
562           needs to be reversed.
563
564 Thu Nov 29 11:12:59 2001  Geoffrey Keating (geoffk@redhat.com)
565
566         * emit-rtl.c (gen_lowpart_common): Fix conversion of
567         REAL_VALUE_TYPEs to an array of target integers.  Fix extraction
568         of low part of those arrays for 32bit and 64bit hosts.
569
570 2001-11-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
571
572         * Makefile.in (insn-output.o): Depend on insn-codes.h.
573
574 2001-11-29  Joseph S. Myers  <jsm28@cam.ac.uk>
575
576         * configure.in (target_list): Add generated-manpages.
577         * configure: Regenerate.
578         * Makefile.in (generated-manpages): Depend on
579         lang.generated-manpages.
580         * objc/Make-lang.in (objc.generated-manpages): New dummy target.
581
582 2001-11-29  Nick Clifton  <nickc@cambridge.redhat.com>
583
584         * config/arm/crti.asm (_init): Add .thumb_func if compiled
585         with -mthumb.
586         (_fini): Add .thumb_func if compiled with -mthumb.
587
588 2001-11-28  Eric Christopher  <echristo@redhat.com>
589
590         * config/mips/mips.c (override_options): Fix thinko in mips_tune
591         for mips32/mips64. Remove MASK_SOFT_FLOAT configuration bits.
592
593 Thu Nov 29 00:24:15 EST 2001  John Wehle  (john@feith.com)
594
595         * alpha.md (tablejump): Use pic_offset_table_rtx
596         instead of gen_rtx_REG.
597
598 Wed Nov 28 15:36:13 2001  Jeffrey A Law  (law@cygnus.com)
599
600         * expr.c (store_expr): When copying a string constant into an
601         array, reset the known alignment of the MEM for the section to
602         be cleared to BITS_PER_UNIT.
603
604 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
605
606         * config/cris/cris.c: Remove whitespace at end of line.
607
608 Wed Nov 28 14:51:23 2001  Douglas B. Rupp  <rupp@gnat.com>
609
610         * config.gcc (i[34567]86-*-interix3*): New case.
611         * config/x-interix3, config/interix3.h, config/i386/i386-interix3.h:
612         New files.
613
614 2001-11-28  Richard Henderson  <rth@redhat.com>
615
616         * config/alpha/alpha.md (sibcall_osf_1, sibcall_value_osf_1): Use
617         symbolic_operand as the predicate.
618
619 2001-11-28  Richard Henderson  <rth@redhat.com>
620
621         * doloop.c (doloop_modify_runtime): Properly select induction
622         variable; skip late entry test if biv initializer created by loop.
623
624 Wed Nov 28 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
625
626         * tree.h (EXPR_WFL_LINECOL): Used by Java in node other than
627         EXPR_WITH_FILE_LOCATION, so change checks and documentation.
628
629         * tree.h (TREE_VIA_PROTECTED): Update to show can be in TREE_VEC.
630
631         * tree.h: Add missing checks on some macros; make formatting more
632         consistent.
633
634         * stor-layout.c (put_pending_size): Look for SAVE_EXPR if not at top
635         level; only add to pending_sizes if find it.
636
637         * langhooks.c (lhd_safe_from_p): Add ATTRIBUTE_UNUSED.
638
639         * df.c (iterate_dataflow_sbitmap, iterate_dataflow_bitmap):
640         Add casts to remove warnings.
641
642         * Makefile.in (OBJS): Sort alphabetically.
643
644         * print-rtl.c (print_rtx): If RTX code is bad, just say so.
645         Also minor cleanups.
646
647 Wed Nov 28 06:52:27 2001  Arnaud Charlet  <charlet@ACT-Europe.FR>
648
649         * Makefile.in (ORDINARY_FLAGS_TO_PASS): Remove STAGE_PREFIX.
650         (FLAGS_TO_PASS): Add STAGE_PREFIX.
651         (SUBDIR_FLAGS_TO_PASS): Apply PREPEND_DOTDOT_TO_RELATIVE_PATH
652         to STAGE_PREFIX.
653
654 Wed Nov 28 10:42:19 CET 2001  Jan Hubicka  <jh@suse.cz>
655
656         * cse.c (true_dependence_in_rtx): New function.
657         (invalidate): Use it.
658
659         * c-common.h (GOTO_FAKE_P): New macro.
660         * tree-inline.c (GOTO_FAKE_P): Set.
661         * c-tree.texi (GOTO_FAKE_P): Document.
662
663         * varasm.c (assemble_variable): Set reloc to 3 for error_mark
664         containing pointers.
665         (output_addressed_constants): Check for local/external relocations.
666         * elfos.h (SELECT_SECTION): Classify data section.
667         * tm.texi (SELECT_SECTION): Update documentation.
668
669         * cfganal.c (flow_dfs_compute_reverse_add_bb): set visited bit.
670         (flow_dfs_compute_reverse_execute): Add only unvisited blocks.
671
672 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
673
674         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
675         UNALIGNED_DOUBLE_INT_ASM_OP): Also provide defaults when we have
676         OBJECT_FORMAT_ROSE.
677
678 2001-11-28  Hans-Peter Nilsson  <hp@axis.com>
679
680         * config/cris/cris.c: Tweak spacing for prototypes.
681         (LOSE_AND_RETURN): New macro.
682         (cris_operand_lossage): New function.
683         (cris_print_index, cris_print_base): Use cris_operand_lossage
684         rather than fatal_insn.
685         (cris_print_operand, cris_print_operand_address): Use
686         LOSE_AND_RETURN rather than fatal_insn and internal_error.
687         (cris_output_addr_const): Use LOSE_AND_RETURN and
688         output_operand_lossage rather than fatal_insn and internal_error
689         for valid but unexpected rtx expressions.
690
691         * config/cris/cris.c (cris_split_movdx): Don't call alter_subreg
692         for a SUBREG in src or dest, abort instead.
693
694 2001-11-28  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
695
696         * doc/passes.texi: Remove reference to c-dump.c. Update tree inlining
697         doc.
698
699 2001-11-27  Jakub Jelinek  <jakub@redhat.com>
700
701         * gcc.c (ASM_DEBUG_SPEC): Use conditional expression rather than
702         preprocessor define.  If only DBX_DEBUGGING_INFO or only
703         DWARF2_DEBUGGING_INFO is supported for the target, provide
704         appropriate definitions.
705
706 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
707
708         * Makefile.in: Update, and add c-objc-common.o dependencies.
709         * c-lang.c: Remove unnecessary includes.
710         (c_init): Move bulk of code to c_objc_common_init, and call it.
711         (c_tree_printer, c_missing_noreturn_ok_p, c_disregard_inline_limits,
712         inline_forbidden_p, c_cannot_inline_tree_fn): Move to
713         c-objc-common.c.
714         * c-objc-common.c: New.  Mostly pulled from c-lang.c.
715         * c-tree.h (c_disregard_inline_limits, c_cannot_inline_fn,
716         c_objc_common_init, c_missing_noreturn_ok_p): New.
717         * toplev.c: Update comment.
718         * doc/passes.texi: Update.
719 objc:
720         * objc-act.c (LANG_HOOKS_TREE_INLINING_CANNOT_INLINE_TREE_FN,
721         LANG_HOOKS_TREE_INLINING_DISREGARD_INLINE_LIMITS,
722         LANG_HOOKS_TREE_INLINING_ANON_AGGR_TYPE_P): Override.
723         (objc_init): Update to use c_objc_common_init.
724
725 2001-11-27  Neil Booth  <neil@daikokuya.demon.co.uk>
726
727         * cpphash.c (_cpp_init_hashtable): Update.
728         * cpphash.h (struct spec_nodes): Remove n_L.
729         * cpplex.c (_cpp_lex_direct): Check for prefix L separately.
730
731 2001-11-17  Richard Henderson  <rth@redhat.com>
732
733         * unroll.c (loop_iterations): Move last change ...
734         * doloop.c (doloop_modify_runtime): ... here.
735
736 2001-11-17  Corey Minyard  <minyard@acm.org>
737             Richard Henderson  <rth@redhat.com>
738
739         * unroll.c (loop_iterations): Detect one situation in which we
740         overestimate the number of iterations.
741
742 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
743
744         * gcc.c (set_input): Export.
745         Move declaration ...
746         gcc.h (set_input): ... here.
747
748 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
749
750         * gcc.c (set_collect_gcc_options): New function, split out from
751         main.
752         Ignore elided switches.
753         (do_spec): Invoke before executing command.
754         (do_spec_1): Likewise.
755         Fixes PR other/3968.
756
757 2001-11-27  Hans-Peter Nilsson  <hp@axis.com>
758
759         * config/cris/cris.h (INT_ASM_OP): Remove.
760
761 2001-11-27  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
762
763         * config/i386/sol2.h (WINT_TYPE): Redefine.
764         (WINT_TYPE_SIZE): Likewise.
765
766 2001-11-27  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
767
768         * collect2.c: Check HAVE_DUP2 instead of NO_DUP2.
769         (dup2): Make static and add prototype.
770         * m68k/plexus.h: Don't define NO_DUP2.
771         * configure.in (AC_CHECK_FUNCS): Add dup2.
772         * config.in, configure: Regenerate.
773
774         * ia64/aix.h (REG_SIZE): Don't #undef.
775         * sparc.h (REG_SIZE): Delete.
776         * flow.c (mark_used_regs): Don't use REG_SIZE.
777         * regs.h (REG_SIZE): Delete.
778
779 2001-11-27  Andreas Schwab  <schwab@suse.de>
780
781         * gcc.c: Fix typo PREFERRED_DEBUGGING_FORMAT ->
782         PREFERRED_DEBUGGING_TYPE.
783
784 Tue Nov 27 08:21:47 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
785
786         * Makefile.in (c-lang.o): Depends on langhooks-def.h.
787         (expr.o, varasm.o): Depends on langhooks.h.
788         * c-common.c (c_safe_from_p): Always declare.
789         (c_expand_expr): Refine when declared.
790         * c-lang.c (c-common.h): Now include.
791         (LANG_HOOKS_SAFE_FROM_P): Define new hook.
792         (c_init): Don't set lang_safe_from_expr.
793         * expr.c (langhooks.h): Now include.
794         (lang_safe_from_p): No longer define.
795         (safe_from_p): Use lang hook.
796         (expand_expr): Set IGNORE if VOID_TYPE result of VIEW_CONVERT_EXPR too.
797         (expand_expr, case VIEW_CONVERT_EXPR): Pass ro_modifier down.
798         * expr.h (lang_expand_constant, lang_safe_from_p): Delete.
799         * langhooks-def.h (lhd_return_tree, lhd_safe_from_p): New decls.
800         (LANG_HOOKS_EXPAND_CONSTANT, LANG_HOOKS_SAFE_FROM_P): New hooks.
801         * langhooks.c (lhd_return_tree, lhd_safe_from_p): New functions.
802         * langhooks.h (struct lang_hooks): New fields expand_constant
803         and safe_from_p.
804         * output.h (output_constant): Size arg is HOST_WIDE_INT.
805         * stmt.c (expand_decl_init): No longer need to expand constant
806         for CONST_DECL.
807         * stor-layout.c (put_pending_size): Don't check for SAVE_EXPR.
808         * toplev.c (lang_expand_constant): Delete var.
809         * tree.c (save_expr): Don't put another SAVE_EXPR around simple
810         operations on SAVE_EXPR.
811         * varasm.c (langhooks.h): Now include.
812         (compare_constant_1): Use lang_hooks, not lang_expand_constant.
813         (record_constant_1, output_addressed_constants): Likewise.
814         (initializer_constant_valid_p, output_constant): Likewise.
815         (output_constant_def): Process no-defer of string constant.
816         (output_addressed_constants, case ADDR_EXPR): Use handled_component_p.
817         (output_constant): Strip more conversions.
818         Track our size and pad for the rest.
819         (array_size_for_constructor): Remove code for non-byte STRING_CST.
820         (output_constructor): SIZE now HOST_WIDE_INT.
821
822 2001-11-27  Richard Henderson  <rth@redhat.com>
823
824         * ifcvt.c (noce_try_store_flag_constants): Test for overflow
825         in computing DIFF.
826
827 2001-11-27  Zack Weinberg  <zack@codesourcery.com>
828
829         * cppfiles.c (read_include_file): Add comment.
830
831 2001-11-26  Richard Henderson  <rth@redhat.com>
832
833         * toplev.c (rest_of_compilation): Call free_bb_for_insn before exit.
834
835 2001-11-26  Richard Henderson  <rth@redhat.com>
836
837         * config/ia64/sysv4.h (DBX_DEBUGGING_INFO): Undef.
838         * config/ia64/aix.h (PREFERRED_DEBUGGING_TYPE): Remove
839         commented out override.
840
841 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
842
843         * cppfiles.c (stack_include_file): Don't optimize zero-length
844         files.
845         (read_include_file): NUL-terminate read files.
846         * cpplex.c (handle_newline, skip_escaped_newlines,
847         get_effective_char, skip_whitespace, parse_identifier,
848         parse_identifier_slow, parse_number, parse_string,
849         _cpp_lex_direct): Optimize for the fact that buffers are guaranteed
850         NUL-terminated.
851         * cpplib.c (destringize_and_run, cpp_define, handle_assertion):
852         Be sure buffers are NUL terminated.
853         * cppmacro.c (warn_of_redefinition): Kill compile warning.
854
855 2001-11-26  Neil Booth  <neil@daikokuya.demon.co.uk>
856
857         * c-common.c: Include tree-inline.h.
858         (c_language): Move separate definitions here.
859         (c_common_init_options, c_common_post_options): New.
860         (c_common_lang_init): Rename c_common_init.
861         * c-common.h (c_common_lang_init): Similarly.
862         (c_common_init_options, c_common_post_options): New.
863         * c-lang.c (c_post_options): Move body to c_common_post_options.
864         (c_init_options): Use c_common_init_options.
865         (c_init): Update.
866         * langhooks.def: Rearrange.
867         * langhooks.h: Rearrange, and improve comments.
868         * toplev.c (do_compile): New function.
869         (toplev_main): Use it.
870         (lang_independent_f_options, parse_options_and_default_flags,
871         process_options): Remove trailing periods.
872         * Makefile.in: Update.
873 objc:   * objc-act.c (objc_post_options, objc_init_options): Use c-common.c
874         functions.
875         (ojbc_init): Update.
876
877 2001-11-26  Richard Henderson  <rth@redhat.com>
878
879         * config/alpha/alpha.md (unop): Add 0 offset for some gas versions.
880
881 2001-11-26  DJ Delorie  <dj@redhat.com>
882
883         * expr.c (store_constructor): Actually use the value computed
884         if WORD_REGISTER_OPERATIONS.
885
886 2001-11-26  Richard Henderson  <rth@redhat.com>
887
888         * config/elfos.h (SELECT_SECTION): Don't check TREE_READONLY
889         for CONSTRUCTOR.
890
891 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
892
893         * rs6000.c (output_mi_thunk): Handle minimal-toc and call
894         correct function on AIX.
895
896 2001-11-26  Alexandre Oliva  <aoliva@redhat.com>
897
898         * toplev.c (process_options): Don't force
899         flag_optimize_sibling_calls to zero just because exceptions are
900         enabled.
901
902 Mon Nov 26 12:37:05 2001  Jeffrey A Law  (law@cygnus.com)
903
904         * df.h (transfer_function_sbitmap): Use PARAMS around argument
905         list in function prototypes.
906         (transfer_function_bitmap): Likewise.
907
908 2001-11-26  Loren J. Rittle  <ljrittle@acm.org>
909
910         * config/stormy16/stormy16.h: Remove DEFAULT_VTABLE_THUNKS.
911         * config/i386/netbsd-elf.h: Likewise.
912
913 2001-11-26  David Edelsohn  <edelsohn@gnu.org>
914
915         * doc/trouble.texi: Remove outdated RS/6000 comments.
916
917 Mon Nov 26 13:49:41 CET 2001  Jan Hubicka  <jh@suse.cz>
918
919         * final.c (walk_alter_subreg): Fix return value.
920
921 Mon Nov 26 11:36:20 CET 2001  Jan Hubicka  <jh@suse.cz>
922
923         * sparc.c (sparc_absnegfloat_split_legitimate): Do not call
924         alter_subreg.
925         * sparc.md (post-reload splitters): Do not call alter_subreg.
926         * cfgrtl.c (purge_dead_edges): Fix typo in previous fix.
927
928 2001-11-25  Aldy Hernandez  <aldyh@redhat.com>
929
930         * regclass.c (choose_hard_reg_mode): Handle vector arguments.
931
932 2001-11-26  Alan Modra  <amodra@bigpond.net.au>
933
934         * final.c: (insn_lengths): Make it an int *, so that large jump
935         tables don't overflow.
936
937 2001-11-25  Joseph S. Myers  <jsm28@cam.ac.uk>
938
939         * c-format.c (FMT_FLAG_DOLLAR_GAP_POINTER_OK): New.
940         (format_types): Use it for scanf.
941         (dollar_arguments_pointer_p): New.
942         (init_dollar_format_checking): Store details of which arguments
943         are pointers.
944         (maybe_read_dollar_number): Reallocate dollar_arguments_pointer_p.
945         (finish_dollar_format_checking): Take extra parameter
946         pointer_gap_ok.  Treat unused arguments differently if
947         pointer_gap_ok and the unused arguments are pointers.
948         (check_format_info_main): Pass extra argument to
949         finish_dollar_format_checking.
950         * doc/invoke.texi (-Wno-format-extra-args): Document behavior when
951         unused arguments are present between used arguments with operand
952         numbers.
953
954 2001-11-25  Daniel Berlin  <dan@cgsoftware.com>
955
956         * df.c: Add prototypes for hybrid_search_bitmap and
957         hybrid_search_sbitmap.
958         (hybrid_search_bitmap): New function.
959         (hybrid_search_sbitmap): New function.
960         (iterative_dataflow_sbitmap): Change to use hybrid_search_sbitmap.
961         (iterative_dataflow_bitmap): Ditto.
962
963 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
964
965         * config/m68hc11/m68hc11.md (peephole2): New peephole2 to optimize
966         address computations.
967
968 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
969
970         * config/m68hc11/m68hc11.c (d_register_operand): Must accept
971         register b (low part of d).
972
973 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
974
975         * config/m68hc11/m68hc11.h (FUNCTION_PROFILER): Fix label name
976         passed to mcount.
977
978 Sun Nov 25 06:22:09 2001  Douglas B. Rupp  <rupp@gnat.com>
979
980         * config/alpha/vms-ld.c, config/alpha/vms-cc.c: New files.
981         * config/alpha/x-vms: New file, to compile the above.
982         * config.gcc (alpha*-dec-vms*): Add x-vms.
983
984 2001-11-24  Hans-Peter Nilsson  <hp@axis.com>
985
986         * genextract.c (main): Set ro_loc for peepholes.
987
988 Sat Nov 24 17:04:10 2001  Douglas B. Rupp  <rupp@gnat.com>
989
990         * fix-header.c (main): Move inf_buffer termination and inf_limit
991         calculation to after read.
992
993         * config/alpha/xm-vms.h (FILE_TYPE): Remove undef and baggage.
994         (__UNIX_FOPEN): Define.
995
996 Sat Nov 24 16:11:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
997
998         * function.c (assign_stack_temp_for_type): Clear alias set before
999         setting new one.
1000
1001 2001-11-23  David Edelsohn  <edelsohn@gnu.org>
1002
1003         * rs6000.c (print_operand, case 'v'): Use HOST_WIDE_INT_PRINT_HEX
1004         format.
1005         * rs6000.md (cmptf): Fix typo.
1006
1007 2001-11-23  Richard Sandiford  <rsandifo@redhat.com>
1008
1009         * final.c (output_addr_const): Output PC as '.' even if !flag_pic.
1010         * varasm.c (output_constructor): Use assemble_integer rather
1011         than ASM_OUTPUT_BYTE.
1012
1013 2001-11-23  Andreas Jaeger  <aj@suse.de>
1014
1015         * cpplex.c (cpp_interpret_charconst): Use HOST_WIDE_INT for sign
1016         extension.
1017
1018 2001-11-23  Nick Clifton  <nickc@cambridge.redhat.com>
1019
1020         * config/arm/xscale-coff.h (SUBTARGET_CPU_DEFAULT): Override
1021         default definition.
1022         (SUBTARGET_EXTRA_ASM_SPEC): Remove previous definition.
1023         (MULTILIB_DEFAULTS): Remove previous definition.
1024
1025 2001-11-23  Neil Booth  <neil@daikokuya.demon.co.uk>
1026
1027         * cppmacro.c (warn_of_redefinition): Warn regardless of -pedantic.
1028         * gcc.dg/cpp/mi6.c, gcc.dg/cpp/redef2.c: Update.
1029
1030 2001-11-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1031
1032         * cris.h: Revert thinko in last patch.
1033
1034 2001-11-23  Joseph S. Myers  <jsm28@cam.ac.uk>
1035
1036         * ChangeLog.0, ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog,
1037         FSFChangeLog.10, c-decl.c, cppfiles.c, cppinit.c, cpplex.c,
1038         cpplib.c, cppmain.c, cse.c, df.c, diagnostic.c, dominance.c,
1039         dwarf2out.c, dwarfout.c, emit-rtl.c, errors.c, except.c, except.h,
1040         explow.c, function.c, gcse.c, genrecog.c, predict.c, regmove.c,
1041         sched-rgn.c, ssa-ccp.c, stmt.c, toplev.c: Fix spelling errors.
1042
1043         * predict.c, reg-stack.c: Fix spelling errors.
1044
1045 2001-10-09  Andrew Haley  <aph@redhat.com>
1046
1047         * calls.c (check_sibcall_argument_overlap): Use slot_offset for
1048         start of stack slot.
1049
1050 2001-11-22  Graham Stott  <grahams@redhat.com>
1051
1052         * cfgrtl.c (try_redirect_by_replacing_jump): Fix typo, emit
1053         replacement jump after original jump.
1054
1055         (verify_flow_info): Remove redundent initialisation.
1056         Handle reaching end of insn list before finding a BARRIER.
1057         Only issue one missing barrier diagnostic.
1058
1059 2001-11-22  Graham Stott  <grahams@redhat.com>
1060
1061         * local-alloc.c (combine_regs): Handle SUBREG_REG being a MEM.
1062
1063 Thu Nov 22 06:49:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1064
1065         * config/i386/i386.md (leave, leave_rex64): Have RTL reflect what
1066         insn actually does.
1067
1068 2001-11-22  Nick Clifton  <nickc@cambridge.redhat.com>
1069
1070         * doc/invoke.texi (M32R/D Option Summary): Document -m32r switch.
1071         Fix typo -mm32rx=> -m32rx.
1072
1073         * config/arm/arm.c (arm_elf_asm_named_section): Only build for elf
1074         targets.
1075
1076         * config.gcc (xscale-coff): Add necessary header files to
1077         tm_file variable.
1078
1079 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
1080
1081         * rs6000.c (output_cbranch): Use $, not %$, in output template.
1082
1083 2001-11-21  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1084
1085         * tree-dump.c: Rename from c-dump.c. Include c-tree.h, not c-common.h.
1086         (lang_type_quals): Declare.
1087         (dequeue_and_dump): Use lang_hooks.tree_dump.type_quals function to
1088         retrieve language-specific qualifiers for a type node, instead of
1089         C_TYPE_QUALS. Likewise for lang_hooks.tree_dump.dump_tree instead of
1090         lang_dump_tree.
1091         * tree-dump.h: Rename from c-dump.h.
1092         * c-common.h (C_TYPE_QUALS): Removed.
1093         Move declarations for tree-dump.c interface to...
1094         * tree.h: ... here. Remove lang_dump_tree.
1095         * langhooks.h (struct lang_hooks_for_tree_dump): New.
1096         (struct lang_hooks): Add tree_dump hooks.
1097         * langhooks.c (lhd_tree_dump_dump_tree): New function.
1098         (lhd_tree_dump_type_quals): New function.
1099         * langhooks-def.h (lhd_tree_dump_dump_tree, lhd_tree_dump_type_quals):
1100         Declare.
1101         (LANG_HOOKS_INITIALIZER): Add tree_dump hooks.
1102         * Makefile.in: Move tree-dump.o to language-independent back-end.
1103
1104 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1105
1106         * 1750a.h (DBX_REGISTER_NUMBER): Don't define.
1107         * alpha.h (DBX_REGISTER_NUMBER): Likewise.
1108         * arc.h (DBX_REGISTER_NUMBER): Likewise.
1109         * arm/aout.h (DBX_REGISTER_NUMBER): Likewise.
1110         * avr.h (DBX_REGISTER_NUMBER): Likewise.
1111         * c4x.h (DBX_REGISTER_NUMBER): Likewise.
1112         * clipper.h (DBX_REGISTER_NUMBER): Likewise.
1113         * convex.h (DBX_REGISTER_NUMBER): Likewise.
1114         * cris.h (DBX_REGISTER_NUMBER): Likewise.
1115         * dsp16xx.h (DBX_REGISTER_NUMBER): Likewise.
1116         * elxsi.h (DBX_REGISTER_NUMBER): Likewise.
1117         * fr30.h (DBX_REGISTER_NUMBER): Likewise.
1118         * h8300.h (DBX_REGISTER_NUMBER): Likewise.
1119         * i370.h (DBX_REGISTER_NUMBER): Likewise.
1120         * i860.h (DBX_REGISTER_NUMBER): Likewise.
1121         * i860/paragon.h (DBX_REGISTER_NUMBER): Likewise.
1122         * i860/sysv3.h (DBX_REGISTER_NUMBER): Likewise.
1123         * i860/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
1124         * m32r.h (DBX_REGISTER_NUMBER): Likewise.
1125         * m68hc11.h (DBX_REGISTER_NUMBER): Likewise.
1126         * m88k.h (DBX_REGISTER_NUMBER): Likewise.
1127         * mcore/mcore-elf.h (DBX_REGISTER_NUMBER): Likewise.
1128         * mcore.h (DBX_REGISTER_NUMBER): Likewise.
1129         * mn10200.h (DBX_REGISTER_NUMBER): Likewise.
1130         * mn10300.h (DBX_REGISTER_NUMBER): Likewise.
1131         * pdp11.h (DBX_REGISTER_NUMBER): Likewise.
1132         * romp.h (DBX_REGISTER_NUMBER): Likewise.
1133         * rs6000.h (DBX_REGISTER_NUMBER): Likewise.
1134         * rs6000/sysv4.h (DBX_REGISTER_NUMBER): Likewise.
1135         * s390/linux.h (DBX_REGISTER_NUMBER): Likewise.
1136         * stormy16.h (DBX_REGISTER_NUMBER): Likewise.
1137         * v850.h (DBX_REGISTER_NUMBER): Likewise.
1138         * vax.h (DBX_REGISTER_NUMBER): Likewise.
1139         * we32k.h (DBX_REGISTER_NUMBER): Likewise.
1140
1141         * defaults.h (DBX_REGISTER_NUMBER): Provide a default.
1142         * doc/tm.texi (DBX_REGISTER_NUMBER): Update.
1143
1144 2001-11-21  H.J. Lu <hjl@gnu.org>
1145
1146         * config/rs6000/sysv4.h (LIB_SPEC): Fix a typo.
1147
1148 2001-11-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1149
1150         * s390.c (s390_va_arg): Eliminate ALIGN parameter in call to
1151         emit_cmp_and_jump_insns.
1152
1153         * stormy16.c (xstormy16_expand_builtin_va_arg,
1154         xstormy16_expand_casesi): Likewise.
1155
1156 Wed Nov 21 17:37:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1157
1158         * function.c (keep_stack_depressed): Major rework.
1159         (handle_epilogue_set, emit_equiv_load): New functions.
1160         (thread_prologue_and_epilogue_insns): keep_stack_depressed now
1161         has return value.
1162         * jump.c (returnjump_p_1): Also return 1 if SET with SET_IS_RETURN_P.
1163         * rtl.h (SET_IS_RETURN_P): New macro.
1164
1165         * expr.c (expand_expr, case VIEW_CONVERT_EXPR): Refine slightly
1166         and also support TREE_ADDRESSABLE.
1167         * tree.def (VIEW_CONVERT_EXPR): Document TREE_ADDRESSABLE.
1168
1169 2001-11-21  David Edelsohn  <edelsohn@gnu.org>
1170
1171         * rs6000.md (cmptf_internal1): Replace %$ with $.
1172
1173 Wed Nov 21 16:44:01 2001  Douglas B. Rupp  <rupp@gnat.com>
1174
1175         * cppfiles.c (STAT_SIZE_TOO_BIG): Define.
1176         (read_include_file): Use STAT_SIZE_TOO_BIG.
1177
1178         * cppinit.c (INO_T_COPY): Define.
1179         (INO_T_EQ): Uppercase parameters.
1180         (append_include_chain): Use INO_T_COPY.
1181
1182 2001-11-21  Richard Sandiford  <rsandifo@redhat.com>
1183
1184         * cfg.c: Fix typos and formatting in the introductory comment.
1185
1186 Wed Nov 21 12:38:37 CET 2001  Jan Hubicka
1187
1188         * profile.c (compute_branch_probabilites):  Compute probabilities
1189         for entry/exit edges; estimate probabilities for zero counts.
1190
1191 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
1192
1193         * explow.c (probe_stack_range): Use LCT_NORMAL as second argument
1194         to emit_library_call.
1195         * function.c (expand_main_function, expand_function_start,
1196         expand_function_end): Likewise.
1197         * profile.c (output_func_start_profiler): Likewise.
1198         * stmt.c (expand_nl_goto_receivers): Use LCT_NORETURN as
1199         second argument to emit_library_call.
1200         * optabs.c (prepare_cmp_insn): Use LCT_CONST_MAKE_BLOCK
1201         as second argument to emit_library_call.
1202         * calls.c (emit_library_call): Update fn_type description.
1203
1204 2001-11-21  Jakub Jelinek  <jakub@redhat.com>
1205
1206         * c-decl.c (c_expand_deferred_function): Only call c_expand_body
1207         if fndecl is still DECL_INLINE and has DECL_RESULT.
1208
1209 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1210
1211         * clipper.c (clipper_movstr): Avoid uninitialized warning.
1212         * i960.c (is_mask, legitimize_address): Likewise.
1213         * m88k.c (m88k_expand_prologue): Likewise.
1214         * m88k.md: Likewise.
1215         * mcore.c (emit_new_cond_insn): Likewise.
1216         * stormy16.c (xstormy16_emit_cbranch): Likewise.
1217
1218 2001-11-20  Zack Weinberg  <zack@codesourcery.com>
1219
1220         * config.gcc: Delete powerpcle-*-solaris2* stanza.
1221         * config/rs6000/eabi.asm, config/rs6000/rs6000.c,
1222         config/rs6000/rs6000.h, config/rs6000/rs6000.md,
1223         config/rs6000/sol-ci.asm, config/rs6000/sol-cn.asm,
1224         config/rs6000/sysv4.h, config/rs6000/t-ppccomm,
1225         config/rs6000/t-ppcos: Expunge all references to Solaris.
1226
1227         * config/rs6000/sol-c0.c, config/rs6000/sol2.h: Delete.
1228
1229         * config/rs6000/rs6000.md: Replace '%$' with '$' in all
1230         output templates.
1231         * config/rs6000/rs6000.h: Define DEFAULT_PCC_STRUCT_RETURN to 0,
1232         and change RETURN_IN_MEMORY to just check AGGREGATE_TYPE_P.
1233
1234 2001-11-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1235
1236         * sh.md: Avoid uninitialized warnings.
1237         * vax.c (vax_rtx_cost): Likewise.
1238
1239 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
1240
1241         * rs6000.c (direct_return): Check if we are saving altivec
1242         registers.
1243         (first_altivec_reg_to_save): New.
1244         Updated stack frame layout comments.
1245         (rs6000_stack_info): Calculate altivec register save size.
1246         Save link register if we saved some altivec registers.
1247         (rs6000_stack_info): Align save size to 16 if altivec abi or
1248         abi_darwin.
1249         (rs6000_stack_info): Calculate altivec register offsets.
1250         (rs6000_stack_info): Add altivec info to save_size.
1251         (debug_stack_info): Add altivec debug info.
1252         (rs6000_emit_prologue): Save altivec registers and vrsave.
1253         (compute_vrsave_mask): New.
1254         (altivec_expand_builtin): Remove unused variables.
1255         (rs6000_parse_abi_options): Add static qualifier.
1256         (rs6000_expand_builtin): Remove unused parameters.
1257         (altivec_expand_builtin): Cast bdesc_2arg to get rid of warning.
1258         (altivec_init_builtins): Same.
1259         (is_altivec_return_reg): New.
1260         (vrsave_operation): New.
1261         (ALTIVEC_REG_BIT): New.
1262         (generate_set_vrsave): New.
1263
1264         * rs6000.md (get_vrsave): New.
1265         (set_vrsave): New.
1266         (*set_vrsave_internal): New.
1267
1268         * rs6000.h (rs6000_stack): Add first_altivec_reg_save,
1269         altivec_save_offset, vrsave_save_offset, altive_size, vrsave_size,
1270         altivec_padding_size, vrsave_mask.
1271         (TOTAL_ALTIVEC_REGS): New.
1272         (EPILOGUE_USES): Add VRSAVE_REGNO.
1273
1274 2001-11-20  Jeff Law <law@redhat.com>
1275
1276         * unroll.c (copy_loop_body): Update LABEL_NUSES for the
1277         exit label as necessary.
1278
1279 2001-11-20  Brad Kaiser  <bkaiser@acelink.net>
1280
1281         * reload1.c (elimination_effects): Use function_invariant_p
1282         instead of CONSTANT_P when considering register equivalences.
1283
1284 2001-11-20  David O'Brien  <obrien@FreeBSD.org>
1285
1286         * config.gcc: Add FreeBSD/PowerPC target.
1287         (powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
1288         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
1289         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
1290         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
1291         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
1292         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*): Add
1293         freebsd-spec.h to tm_file.
1294         (rs6000-*-lynxos*): Add lynx.h to tm_file.
1295         * config/freebsd.h: Tidy up.
1296         (USING_CONFIG_FREEBSD): Define.
1297         (FBSD_SWITCH_TAKES_ARG, FBSD_WORD_SWITCH_TAKES_ARG,
1298         FBSD_CPP_PREDEFINES, FBSD_CPP_SPEC, FBSD_STARTFILE_SPEC,
1299         FBSD_ENDFILE_SPEC, FBSD_LIB_SPEC): Remove (moved to freebsd-spec.h).
1300         (TARGET_HAS_F_SETLKW): Define.
1301         (ASM_OUTPUT_IDENT): Delete, the elfos.h definition is fine.
1302         * config/freebsd-spec.h: New file.
1303         * config/rs6000/freebsd.h: New file.
1304         * config/rs6000/rs6000.h (TARGET_VERSION): Do not define.
1305         * config/rs6000/rs6000.c: Test for USING_ELFOS_H rather than
1306         USING_SVR4_H to know when to turn on ELF support.
1307         * config/rs6000/sysv4.h (TARGET_VERSION, CPP_PREDEFINES): Don't undef,
1308         define only if not already defined.
1309         Add FreeBSD support.
1310         * config/rs6000/aix.h (TARGET_VERSION): Define.
1311         * config/rs6000/beos.h: Likewise.
1312         * config/rs6000/darwin.h: Likewise.
1313         * config/rs6000/mach.h: Likewise.
1314         * config/rs6000/lynx.h (TARGET_VERSION): Likewise.
1315         Don't include lynx.h directly.
1316
1317 2001-11-20  Graham Stott  <grahams@redhat.com>
1318
1319         * unwind-dw2-fde.c (__deregister_frame_info_bases):
1320         Fix lossage in last change return OB.
1321
1322 Tue Nov 20 11:56:12 2001  Douglas B. Rupp  <rupp@gnat.com>
1323
1324         * config/alpha/xm-vms.h (_POSIX_EXIT): Define.
1325         Remove unneeded exit related macros.
1326
1327 2001-11-20  David Edelsohn  <edelsohn@gnu.org>
1328
1329         * rs6000.c (rs6000_emit_eh_toc_restore): Remove ALIGN parm.
1330
1331         * rs6000.c (rs6000_emit_move): Add TFmode case.
1332         * sysv4.h (MASK_LONG_DOUBLE_128, TARGET_LONG_DOUBLE_128,
1333         LONG_DOUBLE_TYPE_SIZE, MAX_LONG_DOUBLE_TYPE_SIZE,
1334         LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Move from here...
1335         * rs6000.h: ... to here.
1336         * rs6000.md (movtf, extenddftf2, extendsftf2, trunctfdf2,
1337         trunctfsf2, floatditf2, floatsitf2, fix_trunctfdi2,
1338         fix_trunctfsi2, negtf2, abstf2, nabstf2, cmptf): New patterns.
1339
1340 Tue Nov 20 06:41:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1341
1342         * emit-rtl.c (get_mem_attrs): Fix typo.
1343
1344 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
1345
1346         * c-lang.c (finish_file): Backout 2001-11-16
1347         changes, instead set DECL_DEFER_OUTPUT for static inline functions
1348         before calling c_expand_deferred_function.
1349
1350 2001-11-20  Jakub Jelinek  <jakub@redhat.com>
1351
1352         * unwind-dw2-fde.c (__register_frame_info_bases, __register_frame):
1353         Don't register empty .eh_frame sections.
1354         (__deregister_frame_info_bases, __deregister_frame): Don't
1355         unregister them either.
1356
1357 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
1358
1359         * configure.in (HAVE_AS_GDWARF2_DEBUG_FLAG): Define.
1360         (HAVE_AS_GSTABS_DEBUG_FLAG): Define.
1361         * configure: Regenerate.
1362         * config.in: Add dummy definitions of new flags.
1363         * toplev.c (PREFERRED_DEBUGGING_TYPE): Move definition to...
1364         * defaults.h (PREFERRED_DEBUGGING_TYPE): ... here.
1365         * gcc.c (ASM_DEBUG_SPEC): New macro.
1366         (asm_debug): New static variable.
1367         (default_compilers): Add asm_debug when assembling from
1368         user input.
1369         (static_specs): Add asm_debug.
1370
1371 2001-11-20  Loren J. Rittle  <ljrittle@acm.org>
1372
1373         * config.gcc (*-*-freebsd*): Remove configuration block.
1374
1375 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
1376
1377         bootstrap/4422
1378         * configure.in: Setup ability to run ./stage[1234]/xgcc in
1379         fixinc *as if* it were a proper lang subdirectory.
1380         * configure: Rebuilt.
1381
1382 2001-11-19  Loren J. Rittle  <ljrittle@acm.org>
1383
1384         * config/freebsd.h: Remove DEFAULT_VTABLE_THUNKS (again).
1385
1386 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1387
1388         * 1750a.md: Don't use hex format for a const_int.
1389
1390 2001-11-19  Geoffrey Keating  <geoffk@redhat.com>
1391
1392         * expmed.c (extract_bit_field): Don't create invalid SUBREGs.
1393
1394 2001-11-19  Zack Weinberg  <zack@codesourcery.com>
1395
1396         * mkconfig.sh: Undefine ENABLE_NLS if GENERATOR_FILE is
1397         defined (prevents link errors when gettext isn't in the system
1398         library).
1399
1400 2001-11-19  DJ Delorie  <dj@redhat.com>
1401
1402         * read-rtl.c (ISDIGIT, ISSPACE): Make sure we have these.
1403         (validate_const_int): New.
1404         (read_rtx): Validate constant integers.
1405         * config/i386/i386.md (pmulhrwv4hi3): Use decimal constants.
1406
1407 2001-11-19  Jakub Jelinek  <jakub@redhat.com>
1408
1409         * doc/hostconfig.texi (DUMPFILE_FORMAT): Move into the table.
1410
1411 Mon Nov 19 16:57:44 2001  Douglas B. Rupp  <rupp@gnat.com>
1412
1413         * toplev.c (DUMPFILE_FORMAT): Define default.
1414         (open_dump_file): Use DUMPFILE_FORMAT in sprintf.
1415         (close_dump_file, compile_file): Likewise.
1416         * config/alpha/xm-vms.h (DUMPFILE_FORMAT): Define.
1417         * doc/hostconfig.texi (DUMPFILE_FORMAT): Document
1418
1419 2001-11-19  Jeff Law <law@redhat.com>
1420
1421         * gcse.c (cprop_jump): Clear JUMP_LABEL field when we create
1422         a nop-jump.
1423
1424 2000-11-19  Neil Booth  <neil@daikokuya.demon.co.uk>
1425
1426         * cppmacro.c (_cpp_backup_tokens): Revert previous check-in.
1427         Don't fall off the base token run.
1428
1429 2001-11-19  Jason Wilkins <fenix@io.com>
1430
1431         * Makefile.in: Use INSTALL_SCRIPT not INSTALL_PROGRAM.
1432
1433 Mon Nov 19 15:13:43 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1434
1435         * tree.def (VIEW_CONVERT_EXPR): New tree code.
1436         * tree.h (handled_component_p): New declaration.
1437         * alias.c (handled_component_p): Move function from here ...
1438         * expr.c (handled_component_p): ... to here and non longer static.
1439         (is_zeros_p, case VIEW_CONVERT_EXPR): New case.
1440         (store_field): Remove unneeded MEM_COPY_ATTRIBUTES call.
1441         (get_inner_reference): Handle VIEW_CONVERT_EXPR.
1442         (expand_expr, case VAR_DECL): Clean up handling of re-layout case.
1443         (expand_expr, case VIEW_CONVERT_EXPR): New case.
1444         (expand_expr, cse ADDR_EXPR): No need to copy if already
1445         BIGGEST_ALIGNMENT.
1446         * fold-const.c (fold, case VIEW_CONVERT_EXPR): New case.
1447         * varasm.c (initializer_constant_value_p, case VIEW_CONVERT_EXPR): New.
1448         (output_constant): Handle VIEW_CONVERT_EXPR.
1449         * dwarf2out.c (loc-descriptor_from_tree, add_bound_info):
1450         Add new case for VIEW_CONVERT_EXPR.
1451
1452 2001-11-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1453
1454         * a29k/unix.h (ASM_FILE_START): Const-ify.
1455         * i386/beos-elf.h (INCLUDE_DEFAULTS): Remove semi-colon.
1456         * i386/isc.h (ASM_FILE_START): Const-ify.
1457         * i386/sun386.h (ASM_FILE_START): Likewise.
1458         * m32r.md: Likewise.
1459         * m68k/auxas.h (ADDITIONAL_REGISTER_NAMES): Add missing brackets.
1460         * m68k/auxgas.h ADDITIONAL_REGISTER_NAMES): Likewise.
1461         * m68k/tower.h (REGISTER_NAMES): Remove semi-colon.
1462         * mn10200.md: Initialize variable.
1463
1464 Mon Nov 19 18:06:21 CET 2001  Jan Hubicka  <jh@suse.cz>
1465
1466         * gcse.c (try_replace_reg): Copy RTX before creating note.
1467
1468         * df.h (df_ref_flags): New uenum.
1469         (DF_REF_FLAGS): New macro.
1470         (struct ref): Add field "flags".
1471         * df.c (HANDLE_SUBREG): Remove.
1472         (df_ref_create): Likewise; set flags field of ref.
1473         (df_def_record_1): Strip down read_write subreg; remove
1474         commented out code; set READ_WRITE flag.
1475         (read_modify_subreg_p): New static function.
1476         (df_uses_record): Cleanup SET handling; set READ_WRITE flag;
1477         new argument "flags".
1478         (df_insn_refs_record): Update call of df_uses_record.
1479         (df_insn_modify): Avoid #if 0 around comment.
1480         (df_dump): Dump the read/write flag.
1481
1482         * predict.c (propagate_freq): Make cyclic_probability and frequency
1483         volatile
1484
1485         * i386.c (ix86_cc_mode): Accept USE.
1486
1487         * cfgrtl.c (purge_dead_edges):  Cleanup EDGE_ABNORMAL flag if computed
1488         jump is turned into simplejump.
1489
1490 2001-11-19  Joseph S. Myers  <jsm28@cam.ac.uk>
1491
1492         * doc/fragments.texi, doc/trouble.texi: Remove links to old
1493         installation chapter.
1494         * doc/gcc.texi: Don't claim that this manual documents
1495         installation.  Mark Installation menu entry as being out of date.
1496
1497 Mon Nov 19 07:21:35 2001  Douglas B. Rupp  <rupp@gnat.com>
1498
1499         * config/alpha/xm-vms.h: Don't define macros that autoconf handles.
1500         (SUCCESS_EXIT_CODE, FATAL_EXIT_CODE): Define for posix compatibility.
1501         * gcc.c (exit): Remove definition for VMS; moved to xm-vms.h.
1502
1503 2001-11-19  Jason Merrill  <jason@redhat.com>
1504
1505         * cppmacro.c (_cpp_backup_tokens): Pop cur_run before decrementing
1506         cur_token, not after.
1507
1508         * config/clipper/clix.h, config/h8300/elf.h, config/mips/linux.h:
1509         Lose ASM_OUTPUT_CONSTRUCTOR.
1510         * system.h: Poison it and INT_ASM_OP.
1511         * c-lang.c (finish_file): Don't check for it.
1512         * libgcc2.c (L_ctors): Check TARGET_ASM_CONSTRUCTOR instead.
1513
1514 2001-11-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
1515
1516         * mmix.c (mmix_cc1_ignored_option): Const-ify.
1517         (mmix_init_machine_status): Make static to match declaration.
1518         (mmix_unique_section): Const-ify.
1519         (mmix_output_quoted_string): Avoid automatic aggregate
1520         initialization.
1521         (mmix_output_register_setting): Likewise.
1522         (mmix_output_shiftvalue_op_from_str): Likewise.
1523
1524         * mmix.h (mmix_cc1_ignored_option): Const-ify.
1525         (ASM_OUTPUT_BYTE): Fix format specifier warning.
1526         (ASM_GENERATE_INTERNAL_LABEL): Likewise.
1527
1528 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1529
1530         PR c/4448
1531         * gthr-win32.h: (__gthread_objc_thread_exit): Fix variable
1532         name __objc_thread_exit_status so that it matches the
1533         variable defined in objc/thr.h.
1534
1535 2001-11-18  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1536
1537         PR bootstrap/4020
1538         * mklibgcc.in: Add missing semi-colons.
1539         * Makefile.in: Same.
1540
1541 Sun Nov 18 16:47:00 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1542
1543         * expr.c (expand_expr, case VAR_DECL): Update alignment of DECL_RTL
1544         after re-laying out decl in incomplete case.
1545         (expand_expr, case ADDR_EXPR): Fix typo in copy case.
1546
1547 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1548
1549         * doc/install-old.texi: Move some sections out to ...
1550         * doc/collect2.texi, doc/configfiles.texi, doc/headerdirs.texi:
1551         ... here.  New files.  Make into chapters rather than sections.
1552         * doc/gcc.texi: Include the new files and add menu entries for
1553         them.
1554         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1555
1556 Sun Nov 18 14:13:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1557
1558         * tree.h (TYPE_ALIGN_OK): New flag.
1559         * emit-rtl.c (set_mem_attributes): Handle it.
1560         * expr.c (emit_single_push_insn): Only set to alias set 0 if
1561         doing sibcall optimization.
1562         (expand_expr, case COMPONENT_REF): Call set_mem_attributes on case
1563         when make temporary.
1564         (expand_expr, case CONVERT_EXPR): Simplify convert-to-union case.
1565         (expand_expr, case ADDR_EXPR): Abort if TYPE_ALIGN_OK and need copy.
1566
1567         * sdbout.c (sdbout_symbol): Avoid warning due to &DECL_RTL.
1568
1569 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1570
1571         * c-decl.c (c_decode_option): Give deprecation warning for
1572         -traditional.
1573         * doc/invoke.texi (-traditional): Note that this option is
1574         deprecated.
1575
1576 Sun Nov 18 07:40:07 2001  Douglas B. Rupp  <rupp@gnat.com>
1577
1578         * config/alpha/alpha.c (alpha_start_function, VMS): Cast shift
1579         arg to HOST_WIDE_INT, not long.
1580
1581         * config/alpha/vms.h (DIR_SEPARATOR, PREFIX). Don't define.
1582         (HAS_INIT_SECTION): Define.
1583         (REAL_ARITHMETIC): Don't undefine.
1584
1585 2001-11-18  Egor Duda  <deo@logos-m.ru>
1586
1587         * config/i386/cygwin.h: Strip leading '*' from name, if any.
1588
1589 2001-11-18  Neil Booth  <neil@daikokuya.demon.co.uk>
1590
1591         * Makefile.in (c-parse.o, c-common.o): Update dependencies.
1592         * c-common.c: Include diagnostic.h.
1593         (c_common_finish): New.
1594         * c-common.h (c_common_finish): New.
1595         * c-lang.c (LANG_HOOKS_FINISH): Override.
1596         * c-parse.in: Don't include diagnostic.h.
1597         (finish_parse): Remove.
1598         * langhooks.h: Update comments.
1599         * toplev.c (lang_dependent_init): New prototype.
1600         (finalize): New.
1601         (compile_file): Split cleanup code out to finalize.
1602         (lang_dependent_init): Stop if lang_hooks.init fails.
1603         (toplev_main): Update.
1604         * tree.h (finish_parse): Remove.
1605 objc:
1606         * objc-act.c (LANG_HOOKS_FINISH): Override.
1607
1608 Sat Nov 17 23:30:44 2001  Douglas B. Rupp  <rupp@gnat.com>
1609
1610         * config/alpha/t-vms (LIB2FUNCS_EXTRA): Add vms_tramp.asm.
1611         * config/alpha/vms_tramp.asm: New file.
1612         * config/alpha/vms-tramp.asm: Removed.
1613
1614 2001-11-18  Joseph S. Myers  <jsm28@cam.ac.uk>
1615
1616         * c-common.c (struct disabled_builtin, disabled_builtins,
1617         disable_builtin_function, builtin_function_disabled_p): New.
1618         (builtin_function_2): Check for disabled built-in functions.
1619         * c-common.h (disable_builtin_function): Declare.
1620         * c-decl.c (c_decode_option): Handle -fno-builtin-FUNCTION.
1621         * doc/invoke.texi: Document -fno-builtin-FUNCTION.
1622         * doc/extend.texi: Mention -fno-builtin-FUNCTION.
1623
1624 2001-11-17  Craig Rodrigues  <rodrigc@gcc.gnu.org>
1625
1626         PR target/4606
1627         * config.gcc: Remove reference to va-clipper.h.
1628
1629 2001-11-17  Stan Shebs  <shebs@apple.com>
1630
1631         * config/rs6000/rs6000.h (REG_CLASS_CONTENTS): Fix the
1632         AltiVec-related bitfields.
1633
1634 Sat Nov 17 12:06:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1635
1636         * except.c (enum eh_region_type): Add ERT_UNKNOWN.
1637         (mark_eh_region, case ERT_UKNONW): New case.
1638
1639 2001-11-17  Christopher Faylor  <cgf@redhat.com>
1640             Corinna Vinschen  <vinschen@redhat.com>
1641
1642         * config/i386/cygwin.h: Search target specific include directory for
1643         w32api stuff, if appropriate.
1644
1645 Sat Nov 17 08:20:44 2001  Douglas Rupp  <rupp@gnat.com>
1646
1647         * config/alpha/vms.h (REG_ALLOC_ORDER): Redefine.
1648
1649 2001-11-16  Aldy Hernandez  <aldyh@redhat.com>
1650
1651         * config/rs6000/rs6000.md: Change all ldvx to lvx.
1652
1653 2001-11-16  Alexandre Oliva  <aoliva@redhat.com>
1654
1655         * gensupport.c (process_rtx): Don't assume filename is the first
1656         argument of any rtl.
1657
1658 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1659
1660         * vax-protos.h (reg_was_0_p): New prototype.
1661         * vax.md (movsi, movhi, movqi): Use reg_was_0_p.
1662         * vax.c (follows_p, reg_was_0_p): New functions.
1663
1664 2001-11-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
1665
1666         * vax.md (casesi): Swap arguments in "(plus:SI (pc) (mult))". Reformat.
1667         (casesi1): Likewise.  Define new pattern which arises by simplification
1668         when operand 1 is a constant int.  Correct pattern which arises by
1669         simplification when operand 1 is zero.
1670
1671 2001-11-16  David O'Brien  <obrien@FreeBSD.org>
1672
1673         * config.gcc (arm*-*-rtems*, arm-*-coff*, armel-*-coff*,
1674         arm-*-vxworks*, arm-*-riscix1.[01]*, arm-*-riscix*,
1675         arm-semi-aout, armel-semi-aout, arm-semi-aof, armel-semi-aof,
1676         arm*-*-netbsd*, arm*-*-linux*, arm*-*-uclinux*, arm*-*-aout,
1677         arm*-*-ecos-elf, arm*-*-elf, arm*-*-conix*, arm*-*-oabi,
1678         arm-*-pe*, strongarm-*-elf*, strongarm-*-coff*, strongarm-*-pe,
1679         xscale-*-elf, xscale-*-coff: Include various CPU headers via tm_file.
1680         * config/arm/aof.h: Don't include arm.h.
1681         * config/arm/aout.h: Likewise.
1682         * config/arm/coff.h: Don't include semi.h and aout.h.
1683         * config/arm/elf.h: Don't include aout.h.
1684         * config/arm/netbsd.h: Don't include netbsd.h and aout.h.
1685         (TARGET_VERSION): Undef before defining.
1686         (ARM_OS_NAME): Likewise
1687         (TARGET_DEFAULT): Likewise
1688         (TARGET_MEM_FUNCTIONS): Do not need to undefine now.
1689         * config/arm/pe.h: Don't include arm/coff.h.
1690         * config/arm/riscix.h (CPP_SPEC, SUBTARGET_CPP_SPEC): Use
1691         SUBTARGET_CPP_SPEC rather than overiding the arm.h CPP_SPEC definition.
1692         * config/arm/riscix1-1.h: Likewise.
1693         * config/arm/rix-gas.h: Don't include riscix.h.
1694         (DBX_CONTIN_LENGTH): Undef before defining.
1695         * config/arm/semi.h: Don't include aout.h.
1696         * config/arm/semiaof.h: Don't include aof.h.
1697         * config/arm/strongarm-coff.h: Don't include coff.h.
1698         * config/arm/strongarm-pe.h: Don't include strongarm-coff.h and pe.h.
1699         * config/arm/vxarm.h: Don't include arm/coff.h.
1700         * config/arm/xscale-coff.h: Don't include coff.h.
1701
1702 Fri Nov 16 15:22:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1703
1704         * config/pa/pa.c: Reflect changes in calling sequences of alter_reg and
1705         emit_cmp_insn.
1706
1707 2001-11-16  Andreas Jaeger  <aj@suse.de>
1708
1709         * cfglayout.c (fixup_fallthru_exit_predecesor): Make void, rename
1710         to ....
1711         (fixup_fallthru_exit_predecessor): ... this.
1712         Change callers and prototype.
1713
1714 2001-11-16  Bernd Schmidt  <bernds@redhat.com>
1715
1716         * config/i386/i386.c (ix86_expand_sse_comi): Generate setcc by
1717         hand; don't use gen_setcc_2.
1718         (ix86_expand_builtin): Fix pshufw.
1719         * config/i386/i386.md (maskncmpv4sf3, vmmmaskncmpv4sf3): Special
1720         case UNORDERED to emit the right assembler instruction.
1721         (mmx_pshufw): Lose operand 2.
1722         (cvtsi2ss): Fix representation.
1723         From Graham Stott:
1724         (mmx_clrdi, sse_clrti, stmxcsr, ldmxcsr): Set memory attribute.
1725
1726 2001-11-16  Joseph S. Myers  <jsm28@cam.ac.uk>
1727
1728         * doc/include/linux-and-gnu.texi: Remove.
1729         * doc/gnu.texi: New.
1730         * doc/gcc.texi: Include gnu.texi instead of linux-and-gnu.texi.
1731         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
1732
1733 2001-11-16  Kazu Hirata  <kazu@hxi.com>
1734
1735         * config/a29k/a29k.c: Fix comment formatting.
1736         * config/a29k/a29k.h: Likewise.
1737         * config/arc/arc.c: Likewise.
1738         * config/arc/arc.h: Likewise.
1739         * config/vax/vax.c: Likewise.
1740         * config/vax/vax.h: Likewise.
1741         * config/we32k/we32k.c: Likewise.
1742         * config/we32k/we32k.h: Likewise.
1743
1744 2001-11-16  Jeff Law  <law@redhat.com>
1745
1746         * unroll.c (copy_loop_body): Initialize JUMP_LABEL field after
1747         creating a new jump insn.
1748
1749 Fri Nov 13 09:06:25 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1750
1751         * expr.c (expand_expr, case ADDR_EXPR): Refine test for when to
1752         copy misaligned data.
1753         * varasm.c (assemble_variable): Set alignment into MEM when changed.
1754
1755 2001-11-16  Graham Stott  <grahams@redhat.com>
1756
1757         * optabs.c (prepare_cmp_insn): Correct lossage in last change fix
1758         OPALIGN type.
1759
1760 2001-11-16  Olivier Hainque <hainque@act-europe.fr>
1761
1762         * except.c: Support for catching a list of types with a single handler
1763         (struct eh_region): Change type and filter to lists for catch regions.
1764         (mark_eh_region): Mark the filter list for GC also.
1765         (expand_start_catch): Always build a list if argument not NULL and
1766         register each type of the list through add_type_for_runtime.
1767         (duplicate_eh_region_1): Change type into type_list for catch regions.
1768         (assign_filter_values): Assign a filter to each type associated with a
1769         catch region. Assign filter for NULL types in a unique entry in the
1770         filter list.
1771         (build_post_landing_pads): Emit compare and jump for each filter of
1772         the list associated with a catch region.
1773         (reachable_next_level): When the type thrown is known, stop the search
1774         as soon as one type within a catch list matches. Also, a handler is
1775         potentially reachable only if at least one of the types it catches
1776         has not been previously caught.
1777         (collect_one_action_chain): Retrieve the filter for a NULL type list
1778         from the first filter list entry. For non NULL type lists, add an
1779         action record for every filter assigned.
1780         * except.h: Reflect changes in comment before expand_start_catch.
1781
1782 Fri Nov 16 07:12:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1783
1784         * expr.c (expand_expr, case ADDR_EXPR): Only copy for misaligned if
1785         BLKmode.
1786
1787 Fri Nov 16 06:37:05 2001  Andreas Tobler  <a.tobler@schweiz.ch>
1788
1789         * config/sparc/sparc.c: Remove ALIGN arg from emit_cmp_insn.
1790
1791 2001-11-16  Jakub Jelinek  <jakub@redhat.com>
1792
1793         * c-lang.c (finish_file): Don't emit static inline functions if
1794         they weren't referenced.
1795
1796 2001-11-15  Stan Shebs  <shebs@apple.com>
1797
1798         * expr.c (expand_expr, case COMPONENT_REF): Fix variable ref.
1799
1800 2001-11-16  Bryce McKinlay  <bryce@waitaki.otago.ac.nz>
1801
1802         * config/s390/s390.md: Remove ALIGN arg from emit_cmp_and_jump_insns
1803         call.
1804         * config/i386/i386.md: Likewise.
1805
1806 Thu Nov 15 21:40:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1807
1808         * timevar.c (rtl.h): Include so get fancy abort.
1809
1810 2001-11-15  Dale Johannesen  <dalej@apple.com>
1811
1812         * config/darwin.h (SELECT_RTX_SECTION):  Force address
1813         initializers into 'const' section
1814         * config/rs6000/rs6000.c (rs6000_emit_cmove):  Fix mode of
1815         if_then_else to match result, not operands
1816
1817 Thu Nov 15 17:57:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1818
1819         * alias.c (nonoverlapping_memrefs): Use REGNO_PTR_FRAME_P.
1820         * emit-rtl.c (change_address): Fix typo in default alignment.
1821         (adjust_address_1): Use mode of NEW, not MODE, when setting size.
1822         * expr.c (highest_pow2_factor, case WITH_RECORD_EXPR): New case.
1823         * rtl.h (REGNO_PTR_FRAME_P): New macro.
1824
1825         * expr.c (store_field): Pass tree instead of max size; callers changed.
1826         Change handling of alignment.
1827         Only copy to_rtx if is TARGET.
1828         (expand_expr_unaligned): Delete; callers now use expand_expr.
1829         (emit_cmp_insn): No longer take ALIGN parm; all callers changed.
1830         (expand_assignment): Change handling of alignment.
1831         Only copy to_rtx if was original.
1832         (get_inner_reference): No longer return alginment; callers changed.
1833         (expand_expr, case COMPONENT_REF): Change handling of alignment.
1834         (expand_expr, case ADDR_EXPR): Make copy if not sufficiently aligned.
1835         (compare_from_rtx): Delete ALIGN parm; all callers changed.
1836         (do_compare_rtx_and_jump): Likewise.
1837         * expr.h: Reflect above changes.
1838         * tree.h: Likewise.
1839         * dwarf2out.c (loc_descriptor_from_tree): Remove ALIGN parameter
1840         to get_inner_reference.
1841         * builtins.c: Remove ALIGN parm in call to emit_cmp_and_jump_insns.
1842         * doloop.c, except.c, explow.c, loop.c, stmt.c, unroll.c: Likewise.
1843         * optabs.c: Likewise.
1844         (prepare_cmp_insn): Now static; remove ALIGN parm.  Callers changed.
1845         (emit_cmp_and_jump_insns): Remove ALIGN parm; all callers changed.
1846         * expmed.c: Remove ALIGN arg from calls to compare_from_rtx,
1847         compare_rtx_and_jump, and emit_cmp_jump_insns.
1848         * fold-const.c: Remove PALIGN in calls to get_inner_reference.
1849         * function.c (assign_stack_temp_for_type): No longer static.
1850         * optabs.h (emit_cmp_insn): Remove ALIGN parm.
1851         (prepare_cmp_insn): Delete declaration.
1852         * rtl.h (assign_stack_temp_for_type): Add declaration.
1853         * config/alpha/alpha.c, config/d30v/d30v.c: Reflect above changes.
1854         * config/clipper/clipper.c, config/h8300/h8300.c: Likewise.
1855         * config/i386/i386.c,config/mips/mips.c: Likewise.
1856         * config/i860/i860.c, config/ia64/ia64.c: Likewise.
1857         * config/rs6000/rs6000.c, config/sh/sh.c: Likewise.
1858
1859 2001-11-15  Stan Shebs  <shebs@apple.com>
1860
1861         * config/rs6000/rs6000.h: Fix a comment typo.
1862         (RTX_COSTS): Sort processor versions better.
1863
1864 2001-11-15  Kazu Hirata  <kazu@hxi.com>
1865
1866         * config/h8300/h8300.md: Fix insn length of bit insns.
1867
1868 2001-11-15  Jason Merrill  <jason@redhat.com>
1869
1870         * dwarf2out.c (dwarf2out_finish): Don't abort because of orphan
1871         DIEs if there were errors in the source.
1872
1873         * config/alpha/alpha-interix.h, config/alpha/elf.h,
1874         config/arm/coff.h, config/i386/djgpp.h, config/i386/i386.c,
1875         config/i386/i386.h, config/i386/sco5.h, config/i960/i960-coff.h,
1876         config/m68k/coff.h, config/m88k/m88k.h, config/m88k/m88k.c,
1877         config/pa/pa64-hpux.h, config/sh/sh.h, config/sparc/litecoff.h,
1878         config/elfos.h, config/lynx.h, config/netware.h,
1879         config/m68hc11/m68hc11.h, config/mcore/mcore-pe.h,
1880         config/s390/linux64.h: Remove definitions of INT_ASM_OP, change
1881         uses to use ASM_LONG.
1882
1883 2001-11-15  Alan Matsuoka  <alanm@redhat.com>
1884
1885         * gensupport.c  process_include : Change call to alloca to
1886         xmalloc.
1887
1888 2001-11-15  Aldy Hernandez  <aldyh@redhat.com>
1889
1890         * config/rs6000/rs6000.md: Use spaces instead of tabs in output
1891         templates.
1892
1893 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1894
1895         * final.c (alter_subreg): If simplify_subreg can't do anything,
1896         handle REG ourselves and abort for others.
1897
1898 2001-11-15  Richard Hodson  <hodsonr@dionecorp.com>
1899
1900         * config/h8300/h8300.c (dosize): Avoid corrupting R3 in interrupt
1901         routines.
1902
1903 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1904
1905         * fix-header.c (read_scan_file): Update.
1906
1907 Thu Nov 15 08:36:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
1908
1909         * toplev.c (toplev_main): Don't start timing until after
1910         command-line options are parsed.
1911
1912 2001-11-15  Andreas Schwab  <schwab@suse.de>
1913
1914         * config.gcc: Set STMP_FIXPROTO and FIXPROTO_DEFINES in target
1915         makefile frag, not host makefile frag.
1916         (m88k-dg-dguxbcs*): Add m88k/t-dgux to tmake_file.
1917         (hppa*): Add pa/t-bsd to tmake_file where no special xmake_file is
1918         used.
1919         (hppa*-*-openbsd*): Don't use nonexitent pa/t-openbsd.
1920         * config/m88k/t-dguxbcs: Remove definitions already in t-dgux.
1921         * config/m88k/t-dgux (STMP_FIXPROTO): Define.
1922         * config/i386/t-cygwin (STMP_FIXPROTO): Define.
1923         * config/i386/t-dgux (STMP_FIXPROTO): Define.
1924         * config/x-interix: Don't define STMP_FIXPROTO and
1925         FIXPROTO_DEFINES.
1926         * config/t-interix: New file, define STMP_FIXPROTO.
1927         * config/i386/x-beos (STMP_FIXPROTO): Don't define here.
1928         * config/i386/t-beos (STMP_FIXPROTO): Define here instead.
1929         * config/t-svr4 (FIXPROTO_DEFINES): Define.
1930         * config/arm/t-riscix (FIXPROTO_DEFINES): Define.
1931         * config/i386/t-sco5 (FIXPROTO_DEFINES): Define.
1932         * config/i386/t-sco5gas (FIXPROTO_DEFINES): Define.
1933         * config/m68k/t-hp3200: Renamed from x-hp3200.
1934         * config/i370/t-oe: Renamed from x-oe.
1935         * config/mips/t-iris: Renamed from x-iris.
1936         * config/pa/t-bsd: Renamed from x-pa.
1937         * config/pa/t-pa-hpux: Renamed from x-pa-hpux.
1938         * config/x-linux, config/i386/x-cygwin, config/i386/x-dgux,
1939         config/m88k/x-dgux, config/x-svr4, config/arm/x-riscix,
1940         config/i386/x-sco5, config/m68k/x-hp320g, config/mips/x-iris6,
1941         config/rs6000/x-cygwin: Remove files.
1942
1943         * configure.in: Check for target objdump and use that in eh_frame
1944         optimization test.
1945         * configure: Regenerated.
1946
1947 2001-11-15  Jakub Jelinek  <jakub@redhat.com>
1948
1949         * jump.c (squeeze_notes): Return true if no real insns were found.
1950         * rtl.h (squeeze_notes): Adjust prototype.
1951         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): If
1952         squeeze_notes finds no real instructions, abort.
1953         (merge_blocks_move_successor_nojumps): Likewise.
1954         * loop.c (find_and_verify_loops): Likewise.
1955         * stmt.c (expand_end_case): Likewise.
1956         * ifcvt.c (dead_or_predicable): Return TRUE if squeeze_notes doesn't
1957         find any real instructions.
1958
1959         * config/ia64/ia64.c (ia64_adjust_cost): Handle SUBREGs.
1960
1961         * cfgcleanup.c (try_optimize_cfg): If try_simplify_condjump optimized
1962         conditional jump, request updating life into for the block
1963         containing it.  Fix a typo which prevented life info update.
1964         Clear blocks bitmap before using it.
1965
1966 2001-11-15  Neil Booth  <neil@daikokuya.demon.co.uk>
1967
1968         * c-common.c: Include c-lex.h.
1969         (c_common_lang_init): Change prototype.  Call init_c_lex and
1970         init_pragma from here.
1971         * c-common.h (c_common_lang_init): Change prototype.
1972         * c-decl.c (init_decl_processing): Rename.  Call c_parse_init.
1973         * c-lang.c (c_init): Change prototype.  Update.
1974         (c_init_options): Update.
1975         * c-lex.c (cpp_filename): Remove.
1976         (init_c_lex): Update.  Read the main file, and get the original
1977         file name.
1978         (yyparse): Finish the command line options.
1979         * c-parse.in (c_parse_init): Call init_reswords here.
1980         (init_parse): Remove.
1981         * c-tree.h (c_init_decl_processing): New.
1982         * cpphash.c (_cpp_init_hashtable): After initializing the hash
1983         table, populate it.
1984         * cppinit.c (read_original_filename, cpp_finish_options): New.
1985         (cpp_create_reader): New prototype. Defer hash table initialization.
1986         (cpp_start_read): Rename cpp_read_main_file.  Initialize the
1987         hash table.  Get the original filename.
1988         * cpplib.h (cpp_create_reader): Update.
1989         (cpp_start_read): Remove.
1990         (cpp_read_main_file, cpp_finish_options): New.
1991         * cppmain.c (main, do_preprocessing): Update.
1992         * langhooks.h (struct langhooks): Update init prototype.
1993         * toplev.c (general_init, parse_options_and_default_flags,
1994         process_options, lang_indpendent_init, lang_dependent_init,
1995         init_asm_output): New; perform the bulk of initialization.
1996         (compile_file): Move most of initialization to above functions.
1997         (debug_hooks): Initialize statically.
1998         (set_Wunused): Relocate.
1999         (toplev_main): Move most of initialization to other init functions.
2000         Have a clear logic flow.
2001         * tree.h (init_parse, init_decl_processing): Remove.
2002 objc:
2003         * objc-act.c (objc_init): Update prototype, combine with old
2004         init_parse.
2005         (objc_init_options): Update.
2006
2007
2008 2001-11-15  Andreas Jaeger  <aj@suse.de>
2009
2010         * cfgrtl.c (purge_all_dead_edges): Use int as argument for
2011         portability.
2012         * basic-block.h: Adjust prototype.
2013
2014 2001-11-15  Kazu Hirata  <kazu@hxi.com>
2015
2016         * config/rs6000/aix31.h: Fix comment formatting.
2017         * config/rs6000/beos.h: Likewise.
2018         * config/rs6000/darwin.h: Likewise.
2019         * config/rs6000/eabi.asm: Likewise.
2020         * config/rs6000/linux.h: Likewise.
2021         * config/rs6000/linux64.h: Likewise.
2022         * config/rs6000/lynx.h: Likewise.
2023         * config/rs6000/netbsd.h: Likewise.
2024         * config/rs6000/rs6000.c: Likewise.
2025         * config/rs6000/rs6000.h: Likewise.
2026         * config/rs6000/rs6000.md: Likewise.
2027         * config/rs6000/sol2.h: Likewise.
2028         * config/rs6000/tramp.asm: Likewise.
2029         * config/rs6000/xcoff.h: Likewise.
2030         * config/rs6000/xm-beos.h: Likewise.
2031
2032 2001-11-14  Alan Matsuoka  <alanm@redhat.com>
2033
2034         * rtl.def (INCLUDE) : Define.
2035         * gensupport.c  (init_include_reader, process_include,
2036         save_string) :  New functions to implement an include facility
2037         in .md files.
2038         * gensupport.h : Add prototype for init_md_reader_args.
2039         * genattr.c genattrtab.c gencodes.c genconfig.c genemit.c
2040         genextract.c genflags.c genopinit.c genoutput.c
2041         genpeep.c genrecog.c: Change call to init_md_reader to
2042         init_md_reader_args.
2043         * md.texi: Document (include "path") and -I directives for RTL
2044         generation tools.
2045
2046 2001-11-14  DJ Delorie  <dj@redhat.com>
2047
2048         * integrate.c (get_hard_reg_initial_reg): New.
2049         * integrate.h (get_hard_reg_initial_reg): Prototype.
2050         * local-alloc.c (block_alloc): Don't tie pseudos that
2051         represent call-saved hard regs' initial values.
2052
2053 2001-11-14  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2054
2055         * m68k/linux.h: Include <linux.h> not "linux.h" to avoid infinite
2056         recursion.
2057
2058 2001-11-14  Roger Sayle <roger@eyesopen.com>
2059
2060         * fold-const.c (fold): Optimize strlen comparisons against zero.
2061
2062 2001-11-14  David O'Brien  <obrien@FreeBSD.org>
2063
2064         * config.gcc (sparc64-wrs-vxworks*, sparc-*-netbsd*, sparc-*-openbsd*,
2065         sparc-*-chorusos*, sparc-*-elf*, sparc-*-linux*aout*,
2066         sparc-*-linux*libc1*, sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtems*,
2067         sparc-*-rtemself*, sparc-hal-solaris2*, sparc-*-solaris2*,
2068         sparc-*-sunos4.0*, sparc-*-sunos4*, sparc-*-sunos3*, sparc-*-sysv4*,
2069         sparc-*-vxsim*, sparclite-*-aout*, sparclite-*-elf*, sparc86x-*-aout*,
2070         sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*, sparc64-*-linux*):
2071         Include various CPU headers via tm_file.  a.out based platforms now
2072         properly include sparc/aout.h.  sol2.h usage now implies including
2073         elfos.h, svr4.h, and sparc/sysv4.h.
2074         * config/netbsd.h (TARGET_MEM_FUNCTIONS): Undef before defining it.
2075         Also define to '1'.
2076         * sparc/sparc.h (CPP_PREDEFINES, TARGET_VERSION, WORD_SWITCH_TAKES_ARG,
2077         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
2078         DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE):
2079         Remove.  They are a.out specific and belong in sparc/aout.h.
2080         * sparc/aout.h (TARGET_VERSION, WORD_SWITCH_TAKES_ARG, SELECT_SECTION,
2081         ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP,
2082         DBX_REGISTER_NUMBER, ASM_OUTPUT_SOURCE_LINE): Define.  Moved here from
2083         sparc/sparc.h.
2084         * sparc/litecoff.h (WORD_SWITCH_TAKES_ARG, ASM_DECLARE_FUNCTION_NAME,
2085         TEXT_SECTION_ASM_OP, DATA_SECTION_ASM_OP, DBX_REGISTER_NUMBER): Define.
2086         Moved here from sparc/sparc.h.
2087         * config/sparc/linux-aout.h (DEFAULT_PCC_STRUCT_RETURN): Undef before
2088         defining.
2089         * config/sparc/linux64.h (UNALIGNED_DOUBLE_INT_ASM_OP): Undef before
2090         * config/sparc/lynx.h:  Don't include lynx.h.
2091         (SELECT_SECTION): Do not undef.
2092         * config/sparc/openbsd.h: Don't include sparc/sparc.h.
2093         * config/sparc/sol2-sld-64.h: Include sparc/sparc.h, elfos.h, svr4.h,
2094         and sparc/sysv4.h.
2095         * config/sparc/sol2.h: Don't include sparc/sparc.h and sparc/sysv4.h.
2096         * config/sparc/sp64-aout.h (CPP_PREDEFINES): Don't define.  Get from
2097         sparc/aout.h now.
2098         * config/sparc/sp64-elf.h (DWARF_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO):
2099         Don't undef, there is no need.
2100         * config/sparc/splet.h (CPP_PREDEFINES): Define.
2101         * config/sparc/sun4o3.h (CPP_PREDEFINES): Likewise.
2102         * config/sparc/sunos4.h (CPP_PREDEFINES): Likewise.
2103         Don't include sparc/sparc.h.
2104         * config/sparc/sysv4.h (WORD_SWITCH_TAKES_ARG, ASM_OUTPUT_SOURCE_LINE,
2105         SELECT_SECTION, ASM_DECLARE_FUNCTION_NAME, TEXT_SECTION_ASM_OP,
2106         DATA_SECTION_ASM_OP): Don't undef, there is no need now.  Don't include
2107         elfos.h and svr4.h.
2108         (TARGET_VERSION): Define.
2109         * config/sparc/vxsim.h (TARGET_VERSION): Define.
2110
2111 Wed Nov 14 19:46:08 CET 2001  Jan Hubicka  <jh@suse.cz>
2112
2113         * cfglayout.c (fixup_fallthru_exit_predecesor): New static function.
2114         (cfg_layout_finalize): Use it.
2115         * bb-reorder.c (HAVE_epilogue): Remove.
2116         (make_reorder_chain): Do not care special placement of
2117         last basic block.
2118
2119         * predict.c (expected_value_to_br_prob): Delete the note
2120         once transformed.
2121
2122         * c-decl.c (c_expand_body): Fix TV_EXPAND nesting problem;
2123         measure integration time separately.
2124
2125 Wed Nov 14 12:30:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2126
2127         * function.c (struct temp_slot): ALIGN now unsigned.
2128
2129 2001-11-14  Kazu Hirata  <kazu@hxi.com>
2130
2131         * config/dsp16xx/dsp16xx.c: Fix comment formatting.
2132         * config/dsp16xx/dsp16xx.h: Likewise.
2133         * config/dsp16xx/dsp16xx.md: Likewise.
2134
2135 2001-11-14  Kazu Hirata  <kazu@hxi.com>
2136
2137         * config/h8300/h8300.c (get_shift_alg): Reorganize the code
2138         that deals with 7-bit shifts in HImode.
2139
2140 Wed Nov 14 14:17:05 CET 2001  Jan Hubicka  <jh@suse.cz>
2141
2142         * dbxout.c (dbxout_symbol_location): Update call of alter_subreg.
2143         * final.c (walk_alter_subreg): Take pointer; update call of alter_subreg.
2144         (final_scan_insn): Update call of alter_subreg.
2145         (cleanup_subreg_operands): Likewise.
2146         (alter_subreg): Rewrite using simplify_subreg.
2147         (output_address, output_operand): Update call of alter_subreg.
2148         * output.h (alter_subreg): Update prototype.
2149         * sdbout.c (sdbout_symbol): Update call of alter_subreg.
2150         * simplify-rtx.c (simplify_subreg): Copy ORIGINAL_REGNO.
2151         * Makefile.in (final.o): Add dependency on expr.h
2152
2153 Wed Nov 14 06:37:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2154
2155         * c-lang.c (finish_file): Make I unsigned to eliminate warning.
2156
2157 2001-11-13  Jeff Sturm  <jsturm@one-point.com>
2158
2159         * doc/install.texi (sparc-*-linux*): Mention requirements for
2160         binutils and glibc.
2161
2162 2001-11-14  Joseph S. Myers  <jsm28@cam.ac.uk>
2163
2164         * Makefile.in (POD2MAN): Don't include --section=1.
2165         (manext): Rename to man1ext.  All users changed.
2166         (man7ext): New.
2167         (man7dir): New.
2168         (generated-manpages): Also depend on $(docdir)/gfdl.7,
2169         $(docdir)/gpl.7, and $(docdir)/fsf-funding.7.
2170         ($(docdir)/gcov.1, $(docdir)/cpp.1, $(docdir)/gcc.1): Include
2171         --section=1 in calls to $(POD2MAN).
2172         ($(docdir)/gfdl.7, $(docdir)/gpl.7, $(docdir)/fsf-funding.7): New.
2173         (maintainer-clean, install, uninstall): Handle the new man pages.
2174         ($(docdir)/cpp.info, cpp.dvi): Depend on fdl.texi.
2175         (installdirs): Create man7dir.
2176         * doc/cpp.texi: Include GFDL in this manual.  In the man page,
2177         refer to gfdl(7) for the GFDL.  Apply Front Cover and Back Cover
2178         texts to man page.  Include gpl(7), gfdl(7) and fsf-funding(7) in
2179         the SEE ALSO man page section.
2180         * doc/gcov.texi: Apply GFDL to man page.  Include gpl(7), gfdl(7)
2181         and fsf-funding(7) in the SEE ALSO man page section.
2182         * doc/invoke.texi: Apply GFDL to man page.  Include gpl(7),
2183         gfdl(7) and fsf-funding(7) in the SEE ALSO man page section.
2184         * doc/include/fdl.texi, doc/include/funding.texi,
2185         doc/include/gpl.texi: Adjust for conversion by texi2pod.pl.
2186         * doc/.cvsignore: Add gfdl.7, gpl.7 and fsf-funding.7.
2187
2188 2001-11-13  Richard Henderson  <rth@redhat.com>
2189
2190         * dwarf2asm.c (dw2_force_const_mem): Set PUBLIC or STATIC
2191         as appropriate for the artificial decl.
2192
2193 2001-11-13  Richard Henderson  <rth@redhat.com>
2194
2195         * loop.c (combine_movables): Turn off combination until
2196         move_movables validation bugs are fixed.
2197
2198 2001-11-13  DJ Delorie  <dj@redhat.com>
2199
2200         * config.gcc (powerpc|rs6000): Set default cpp options based
2201         on --with-cpu settings.
2202         * config/rs6000/softfloat.h: New.
2203
2204 2001-11-13  Kazu Hirata  <kazu@hxi.com>
2205
2206         * config/h8300/h8300.c (shift_alg_si): Use special code for
2207         25-bit shifts on H8/S.
2208         (get_shift_alg): Generate special code for 25-bit shifts on
2209         H8/S.
2210
2211 2001-11-13  Jakub Jelinek  <jakub@redhat.com>
2212
2213         * emit-rtl.c (adjust_address_1): Add ADJUST argument.
2214         (adjust_automodify_address_1): New.
2215         * expr.h (adjust_address, adjust_address_nv): Adjust.
2216         (adjust_automodify_address, adjust_automodify_address_nv): Define.
2217         (adjust_address_1): Update prototype.
2218         (adjust_automodify_address_1): Add prototype.
2219         * expr.c (move_by_pieces_1): Use adjust_automodify_address.
2220         (store_by_pieces_2): Likewise.
2221
2222 Tue Nov 13 05:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2223
2224         * Makefile.in (explow.o): Now depends on ggc.h.
2225         * explow.c (ggc.h): Include.
2226         (set_stack_check_libfunc): Mark stack_check_libfunc as ggc root.
2227
2228         * Makefile.in (expr.o): Depends on insn-attr.h.
2229         * expr.c (insn-attr.h): New include.
2230         (force_operand): If INSN_SCHEDULING, deal with paradoxical SUBREG
2231         of MEM.
2232         (highest_pow2_factor, case INTEGER_CST): Handle negative values.
2233         (expand_expr): Remove unneeded mark_temp_addr_taken calls and
2234         clean up related usage in ADDR_EXPR.
2235         (expand_expr_unaligned): Likewise.
2236
2237         * emit-rtl.c (change_address): Fix typo in alias setting.
2238
2239 2001-11-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2240
2241         * Makefile.in (cfgcleanup.o): Depend on insn-config.h
2242
2243 2001-11-12  Craig Rodrigues  <rodrigc@gcc.gnu.org>
2244
2245         PR bootstrap/3451
2246         * c-pragma.c: Rename macros BAD, BAD2, BAD_ACTION to
2247         GCC_BAD, GCC_BAD2, GCC_BAD_ACTION.
2248
2249 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
2250
2251         * config.gcc (sparc-tti-*, sparc64-wrs-vxworks*, sparc-wrs-vxworks*,
2252         sparclite-wrs-vxworks*, sparc-*-aout*, sparc-*-netbsd*,
2253         sparc-*-chorusos*, sparc-*-linux*aout*, sparc-*-linux*libc1*,
2254         sparc-*-linux*, sparc-*-lynxos*, sparc-*-rtemsaout*, sparc-*-rtems*,
2255         sparc-*-rtemself*, sparc-*-solaris2*, sparc-*-sunos3*, sparc-*-sysv4*,
2256         sparc-*-vxsim*, sparclet-*-aout*, sparclite-*-coff*, sparclite-*-aout*,
2257         sparc86x-*-aout*, sparc86x-*-elf*, sparc64-*-aout*, sparc64-*-elf*,
2258         sparc64-*-linux*):  Include various CPU headers via tm_file.
2259         * config/svr3.h (ASM_OUTPUT_IDENT): Undef before defining it.
2260         (SELECT_SECTION): Likewise.
2261         (SELECT_RTX_SECTION): Likewise.
2262         * config/sparc/sparc_bi.h: New file.
2263         * config/sparc/aout.h: Don't include sparc/sparc.h and aoutos.h.
2264         * config/sparc/linux-aout.h: Likewise.
2265         * config/sparc/linux.h: Don't include sparc/sysv4.h.
2266         * config/sparc/linux64.h: Likewise.
2267         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
2268         * config/sparc/lite.h:  Don't include sparc/sparc.h and gofast.h.
2269         * config/sparc/litecoff.h: Don't include sparc/lite.h, svr3.h,
2270         and dbxcoff.h
2271         (ASM_OUTPUT_IDENT): Do not #undef.
2272         (SELECT_SECTION): Likewise.
2273         (SELECT_RTX_SECTION): Likewise.
2274         * config/sparc/liteelf.h: Don't include gofast.h.
2275         * config/sparc/lynx-ng.h: Don't include sparc/sparc.h and lynx-ng.h.
2276         * config/sparc/lynx.h: Don't include sparc/sparc.h.
2277         * config/sparc/pbd.h: Likewise.
2278         * config/sparc/netbsd.h: Don't include sparc/sparc.h and netbsd.h.
2279         * config/sparc/rtems.h: Don't include sparc/aout.h and rtems.h.
2280         * config/sparc/rtemself.h: Don't include rtems.h.
2281         * config/sparc/sol2-64.h: Don't include sparc/sol2-sld-64.h.
2282         * config/sparc/sol2-sld-64.h (SPARC_BI_ARCH): Don't define, include
2283         sparc_bi.h instead.
2284         * config/sparc/sol2-sld.h: Don't include sparc/sol2.h.
2285         * config/sparc/sol2.h: Include sparc/sparc.h directly.
2286         * config/sparc/sp64-aout.h: Don't include sparc/sparc.h and aoutos.h.
2287         * config/sparc/sp64-elf.h: Don't include sparc/sol2.h.
2288         * config/sparc/sp86x-aout.h: Don't include sparc/sparc.h and gofast.h.
2289         * config/sparc/sp86x-elf.h: Don't include gofast.h.
2290         * config/sparc/splet.h: Don't include sparc/aout.h.
2291         * config/sparc/sun4o3.h: Don't include sparc/sparc.h.
2292         * config/sparc/sysv4.h: Don't include sparc/sparc.h directly.
2293         * config/sparc/vxsim.h: Don't include sparc/sysv4.h.
2294         * config/sparc/vxsparc.h: Don't include sparc/aout.h and gofast.h.
2295         * config/sparc/vxsparc64.h: Don't include gofast.h.
2296         (SPARC_BI_ARCH): Don't define.  sparc_bi.h will do it instead.
2297
2298 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2299
2300         * doc/standards.texi: Mention C99 TC1.
2301
2302 2001-11-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2303
2304         * mips-protos.h (mips_output_conditional_branch): Const-ify.
2305         * mips.c (mips_output_conditional_branch): Likewise.
2306
2307 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2308
2309         * config/h8300/h8300.c (shift_alg_si): Use special code for
2310         15-bit logical shifts and 31-bit logical shifts.
2311         (get_shift_alg): Generate special code for 15-bit and 31-bit
2312         logical shifts.
2313
2314 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2315
2316         * config/h8300/h8300.c (shift_alg_qi): Use rotations when
2317         doing 6-bit logical shifts on H8/S.
2318         (shift_alg_qi): Use special code for 21-bit shifts on H8/S.
2319         (get_shift_alg): Generate special code for 21-bit shifts on
2320         H8/S.
2321
2322 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2323
2324         * config/h8300/h8300.c (get_shift_alg): Remove a redundant
2325         label.
2326
2327 Mon Nov 12 11:58:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2328
2329         * alias.c (nonoverlapping_memrefs_p): Only update size from memref
2330         if both size and offset known.
2331
2332 2001-11-12  David O'Brien  <obrien@FreeBSD.org>
2333
2334         * config/ia64/freebsd.h: Fix misspelling.
2335
2336 2001-11-12  Joseph S. Myers  <jsm28@cam.ac.uk>
2337
2338         * doc/gcc.texi: Move several chapters out to ...
2339         * doc/configterms.texi, doc/fragments.texi, doc/hostconfig.texi,
2340         doc/include/linux-and-gnu.texi, doc/interface.texi,
2341         doc/makefile.texi, doc/passes.texi, doc/portability.texi:
2342         ... here.  New files.
2343         * doc/gcc.texi, doc/contrib.texi: Move section headings into
2344         contrib.texi.
2345         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2346
2347 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2348
2349         * config/alpha/alpha-interix.h: Fix comment formatting.
2350         * config/alpha/alpha.c: Likewise.
2351         * config/alpha/alpha.h: Likewise.
2352         * config/alpha/alpha32.h: Likewise.
2353         * config/alpha/freebsd.h: Likewise.
2354         * config/alpha/unicosmk.h: Likewise.
2355         * config/alpha/vms.h: Likewise.
2356
2357 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2358
2359         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
2360
2361 2001-11-12  Jakub Jelinek  <jakub@redhat.com>
2362
2363         * dbxout.c (dbxout_symbol_location): Avoid emitting invalid register
2364         numbers.
2365
2366 Mon Nov 12 05:18:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2367
2368         * emit-rtl.c (set_mem_attributes): If making object, can set alignment
2369         from type.
2370         (replace_equiv_address): Call update_temp_slot_address.
2371
2372         * dwarf2out.c (loc_descriptor_from_tree, case COMPOUND_EXPR): New case.
2373
2374         * alias.c (nonoverlapping_memrefs_p): Handle DECL_RTL being a CONCAT.
2375
2376 2001-11-12  Kazu Hirata  <kazu@hxi.com>
2377
2378         * config/h8300/h8300.c (shift_alg_qi): New.
2379         (shift_alg_hi): Likewise.
2380         (shift_alg_si): Likewise.
2381         (get_shift_alg): Change the type of count to unsigned int.
2382         Use the tables.
2383
2384 2001-11-11  Alexandre Oliva  <aoliva@redhat.com>
2385
2386         * Makefile.in (c-lang.o): Depend on $(VARRAY_H).
2387         * c-decl.c (c_expand_body): Take argument can_defer_p.  Use it
2388         to decide whether to defer a function.
2389         (finish_function): Adjust.
2390         (c_expand_deferred_function): New function.
2391         * c-lang.c (deferred_fns): New variable.
2392         (c_init): Initialize it, and mark it as a root.
2393         (defer_fn): New function.
2394         (finish_file): Expand all deferred functions.
2395         * c-tree.h (defer_fn): Declare.
2396         (c_expand_deferred_function): Likewise.
2397         * objc/Make-lang.in (objc-act.o): Depend on $(VARRAY_H).
2398         * objc-act.c (deferred_fns): New variable.
2399         (objc_init): Initialize it, and mark it as a root.
2400         (defer_fn): New function.
2401         (finish_file): Expand all deferred functions.
2402
2403 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2404
2405         * alpha.c (unicosmk_special_name): Prototype.
2406         (unicosmk_ssib_name): Delete unused variable.
2407         * alpha/unicosmk.h (common_section, ssib_section): Prototype.
2408         * alpha/vms.h (PREFIX): Undef before defining.
2409         * arm/pe.h (SUBTARGET_NAME_ENCODING_LENGTHS): Likewise.
2410         * i370/i370.c (mvs_hash_alias): Prototype.  Wrap with macro
2411         controlling usage.  Const-ify.
2412         (alias_number): Delete unused variable.
2413         * m32r/m32r.c (m32r_sched_init): Add missing argument.
2414         (m32r_expand_block_move): Fix uninitialized warnings.
2415         * mn10300/mn10300.h (REGNO_IN_RANGE_P): Fix 'unsigned >=0 is
2416         always true' warnings.
2417         * openbsd.h (TARGET_MEM_FUNCTIONS): Don't redefine.
2418         * sh/sh.c: Include "integrate.h".
2419         (output_far_jump): Fix uninitialized warning.
2420         * final.c (shorten_branches): Avoid automatic aggregate
2421         initialization.
2422         * integrate.c (subst_constants): Likewise.
2423
2424 2001-11-11  Kazu Hirata  <kazu@hxi.com>
2425
2426         * config/h8300/h8300.c (shift_alg): Remove SHIFT_MAX.
2427         (get_shift_alg): Remove redundant code.
2428
2429 2001-11-11  Kazu Hirata  <kazu@hxi.com>
2430
2431         * config/pa/milli64.S: Fix comment formatting.
2432         * config/pa/pa-64.h: Likewise.
2433         * config/pa/pa-linux.h: Likewise.
2434         * config/pa/pa-protos.h: Likewise.
2435         * config/pa/pa.c: Likewise.
2436         * config/pa/pa.h: Likewise.
2437         * config/pa/pa32-linux.h: Likewise.
2438         * config/pa/pa32-regs.h: Likewise.
2439         * config/pa/pa64-hpux.h: Likewise.
2440         * config/pa/pa64-regs.h: Likewise.
2441         * config/pa/som.h: Likewise.
2442
2443 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2444
2445         * doc/gcc.texi: Move several chapters out to ...
2446         * doc/bugreport.texi, doc/contribute.texi, doc/frontends.texi,
2447         doc/service.texi, doc/standards.texi, doc/trouble.texi,
2448         doc/vms.texi: ... here.  New files.
2449         * Makefile.in ($(docdir)/gcc.info, gcc.dvi): Update dependencies.
2450
2451 2001-11-11  Joseph S. Myers  <jsm28@cam.ac.uk>
2452
2453         * ChangeLog.2, ChangeLog.3, ChangeLog.4, ChangeLog.5, ChangeLog,
2454         cfg.c, cfganal.c, cfgcleanup.c, cfglayout.c, cfgloop.c, cfgrtl.c,
2455         collect2.c, combine.c, config.in, configure, configure.in,
2456         conflict.c, dwarf2out.c, dwarfout.c, except.c, final.c, flow.c,
2457         genattrtab.c, ggc-page.c, jump.c, lcm.c, predict.c, reg-stack.c,
2458         reload1.c, rtlanal.c, sched-rgn.c, toplev.c, unwind-dw2-fde.h: Fix
2459         spelling errors.
2460
2461 Sun Nov 11 05:56:01 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2462
2463         * config/rs6000/rs6000.c (rs6000_hash_constant, toc_hash_eq):
2464         Adjust operand number in CONST_DOUBLE.
2465
2466         * expmed.c (extract_bit_field): No longer pass in alignment.
2467         (extract_fixed_bit_field, extract_split_bit_field): Likewise.
2468         (store_bit_field, store_fixed_bit_field, store_split_bit_field):
2469         Likewise.
2470         * expr.c (store_constructor, store_constructor_field): Likewise.
2471         (store_field, emit_group_load, emit_group_store): Likewise.
2472         * expr.h (emit_group_load, emit_group_store): Delete ALIGN parm.
2473         (store_bit_field, extract_bit_field): Likewise.
2474         * calls.c, expr.c, function.c: Change calls to above functions.
2475         * ifcvt.c, stmt.c: Likewise.
2476
2477         * alias.c (nonoverlapping_memrefs_p): Not overlapping if one base is
2478         constant and one is on frame.
2479         If know memref offset, adjust size from decl.
2480
2481 2001-11-11  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2482
2483         * alpha/unicosmk.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT): Fix
2484         format specifier warning.
2485         * convex.h (ASM_OUTPUT_BYTE): Likewise.
2486         * elfos.h (ALIGN_ASM_OP): Undef before defining.
2487         * i386/att.h (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier
2488         warning.
2489         * i386/bsd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2490         * i386/gas.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2491         * i386-interix.h (gen_stdcall_suffix): Prototype.
2492         * i386.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2493         * i386elf.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2494         ASM_OUTPUT_LONG_DOUBLE): Likewise.
2495         * i386/interix.c (gen_stdcall_suffix): Const-ify.
2496         * i386/next.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2497         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Fix format
2498         specifier warnings.
2499         * i386/osfrose.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2500         * i386/ptx4-i.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
2501         ASM_OUTPUT_LONG_DOUBLE): Likewise.
2502         * i386/sco5.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2503         * i386/sequent.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2504         * i386/sun386.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2505         * i386/svr3dbx.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2506         * m68k/3b1.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_LONG_DOUBLE,
2507         ASM_OUTPUT_FLOAT, ASM_GENERATE_INTERNAL_LABEL): Likewise.
2508         * m68k/altos3068.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2509         * m68k/amix.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
2510         Likewise.
2511         * m68k/atari.h (ASM_OUTPUT_ASCII, ASM_GENERATE_INTERNAL_LABEL):
2512         Likewise.
2513         * m68k/crds.h (ASM_OUTPUT_DOUBLE, PRINT_OPERAND): Likewise.
2514         * m68k/dpx2.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2515         ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE, ASM_OUTPUT_FLOAT_OPERAND):
2516         Likewise.
2517         * m68k/hp320.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_BYTE):
2518         Likewise.
2519         * m68k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
2520         Likewise.
2521         * m68k/m68kv4.h (ASM_OUTPUT_ASCII): Delete unused variable.
2522         * m68k/mot3300.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
2523         * m68k/news.h (PRINT_OPERAND): Likewise.
2524         * m68k/next.h (ASM_OUTPUT_DOUBLE, ASM_OUTPUT_FLOAT,
2525         ASM_OUTPUT_FLOAT_OPERAND, ASM_OUTPUT_DOUBLE_OPERAND): Likewise.
2526         * m68k/next21.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2527         * m68k/plexus.h (ASM_SPEC): Insert space between macro name and
2528         definition.
2529         * m68k/sgs.h (ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_DOUBLE,
2530         ASM_OUTPUT_FLOAT, ASM_OUTPUT_ASCII, ASM_OUTPUT_FLOAT_OPERAND,
2531         ASM_OUTPUT_DOUBLE_OPERAND): Fix format specifier warnings.
2532         * m68k/sun3.h (ASM_OUTPUT_FLOAT_OPERAND): Likewise.
2533         * m68k/tower-as.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_DOUBLE,
2534         ASM_OUTPUT_LONG_DOUBLE, ASM_OUTPUT_FLOAT, ASM_OUTPUT_BYTE,
2535         PRINT_OPERAND): Likewise.
2536         * m88k/m88k.h (ASM_GENERATE_INTERNAL_LABEL, ASM_OUTPUT_BYTE):
2537         Likewise.
2538         * mips/elf.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
2539         * mips/elf64.h (PUT_SDB_SIZE, ASM_DECLARE_OBJECT_NAME): Likewise.
2540         * mips/iris5gas.h (PUT_SDB_SIZE): Likewise.
2541         * mips/linux.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2542         * mips.c (mips_output_external_libcall): Mark parameter with
2543         ATTRIBUTE_UNUSED.
2544         (mips_asm_file_start): Move variable into the scope where it's
2545         used.
2546         * mips.h (PUT_SDB_INT_VAL, PUT_SDB_SIZE): Likewise.
2547         * mips/netbsd.h (ASM_DECLARE_OBJECT_NAME): Likewise.
2548         * mips/sni-gas.h (PUT_SDB_SIZE): Likewise.
2549         * ns32k/encore.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2550         * ns32k.c (print_operand): Likewise.
2551         * pa.c (print_operand, output_div_insn): Likewise.
2552         * pa.h (ASM_OUTPUT_MI_THUNK, ASM_GENERATE_INTERNAL_LABEL,
2553         ASM_OUTPUT_BYTE, PRINT_OPERAND_ADDRESS): Likewise.
2554         * pa/pa64-hpux.h (UNIQUE_SECTION): Const-ify.
2555         * sparc/linux.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
2556         specifier warnings.
2557         * sparc/linux64.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2558         * sparc/pbd.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2559         (ASM_OUTPUT_SOURCE_LINE): Don't list macro arguments in undef.
2560         * sparc/vxsim.h (ASM_GENERATE_INTERNAL_LABEL): Fix format
2561         specifier warnings.
2562         * svr3.h (ASM_GENERATE_INTERNAL_LABEL): Likewise.
2563
2564         * sdbout.c (sdbout_end_epilogue): Mark parameter with
2565         ATTRIBUTE_UNUSED.
2566         * varasm.c (assemble_global): Likewise.
2567
2568 2001-11-11  H.J. Lu <hjl@gnu.org>
2569
2570         * config.gcc: Add "elfos.h svr4.h" to $tm_file for Linux/mips.
2571
2572 Sun Nov 11 01:26:00 CET 2001  Jan Hubicka  <jh@suse.cz>
2573
2574         * final.c (*_MAX_SKIP): Use *_max_skip variables.
2575         * flags.h (align_loops_max_skip, align_jumps_max_skip,
2576         align_labels_max_skip): New global variables.
2577         * toplev.c (align_loops_max_skip, align_jumps_max_skip,
2578         align_labels_max_skip): New global variables.
2579         (toplev_main): Set new variables.
2580         * i386.c (override_options): Set max_skip values.
2581
2582 2001-11-10  Geoffrey Keating  <geoffk@redhat.com>
2583
2584         * doc/tm.texi (Label Output): Document ASM_OUTPUT_LABEL_REF.
2585         * final.c (output_addr_const): Use ASM_OUTPUT_LABEL_REF.
2586         * config/stormy16/stormy16.c (xstormy16_print_operand): For '%C',
2587         don't print an @fptr for labels either.
2588         (xstormy16_output_addr_vec): Don't print @fptr here.
2589         * config/stormy16/stormy16.h (ASM_OUTPUT_LABEL_REF): New macro.
2590
2591 Sat Nov 10 08:50:50 2001  Jeffrey A Law  (law@cygnus.com)
2592
2593         * ssa-ccp.c (examine_flow_edges): Use old-style definition, not
2594         an ANSI/ISO definitino.
2595         (ssa_const_prop): Likewise.
2596
2597 2001-11-10  Aldy Hernandez  <aldyh@redhat.com>
2598
2599         * config/rs6000/rs6000.c (rs6000_reg_names): Remove leading "v" or
2600         altivec registers.
2601
2602 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2603
2604         * cppexp.c (parse_number): Use ISXDIGIT/hex_value.
2605         * cpplex.c (hex_digit_value): Use hex_p/hex_value.
2606         * cppmain.c (general_init): Call hex_init.
2607         * tradcif.y (parse_number): Use TOLOWER/ISXDIGIT/hex_value/hex_p.
2608
2609         * config.gcc (i[34567]86-dg-dgux*): Don't set `out_file'.
2610
2611         * i386/dgux.h (ASM_FILE_START): Set to the meaningful portions
2612         of dgux.c:output_file_start().
2613
2614         * i386/dgux.c: Delete file.
2615
2616 2001-11-09  Richard Henderson  <rth@redhat.com>
2617
2618         * config/alpha/alpha.c (decl_in_text_section): New.
2619         (current_file_function_operand): Use it.
2620         (alpha_encode_section_info, alpha_end_function): Likewise.
2621
2622 2001-11-07  David O'Brien  <obrien@FreeBSD.org>
2623
2624         * config.gcc: Add FreeBSD/IA-64 target. Expand config/i64/elf.h headers.
2625         * config/i64/ia64.h (TARGET_VERSION,ASM_SPEC,LINK_SPEC): Remove,
2626         they are OS specific.  Use CPP_CPU_SPEC rather than CPP_PREDEFINES,
2627         so OS specific files and use CPP_PREDEFINES for their needs.
2628         * config/i64/elf.h (TARGET_VERSION): Add.  Also, move inclusion of
2629         target headers to tm_file.
2630         * config/ia64/aix.h (TARGET_VERSION): Likewise.
2631         * config/ia64/hpux.h (TARGET_VERSION): Likewise.
2632         * config/ia64/linux.h (TARGET_VERSION): Likewise.
2633         (FUNCTION_PROFILER): Remove.
2634         * config/ia64/ia64.h (FUNCTION_PROFILER): Update definition using the
2635         version in config/ia64/linux.h.
2636         * config/ia64/freebsd.h: New file.
2637         * config/freebsd.h: Tidy up.
2638         (_USING_CONFIG_FREEBSD): Define.
2639         (FBSD_CPP_PREDEFINES): Add __KPRINTF_ATTRIBUTE__.
2640         (FBSD_CPP_SPEC): Define generic FreeBSD spec.
2641         (FBSD_STARTFILE_SPEC): Likewise.
2642         (FBSD_ENDFILE_SPEC): Likewise.
2643         (FBSD_LIB_SPEC): Likewise.
2644         (WCHAR_UNSIGNED): Undefine, FreeBSD's wchars are signed.
2645         (USER_LABEL_PREFIX): Define to ELF compatible value as some CPU headers
2646         set an ELF-improper one.
2647
2648 2001-11-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2649
2650         * pa.c (emit_move_sequence): Use cint_ok_for_move to check whether a
2651         constant can be loaded in a single instruction to a register.  When
2652         loading immediate constants, use PLUS instead of HIGH/LO_SUM.  Use
2653         depdi for insertion of most significant 32-bits on 64-bit hosts.
2654         * pa.h (LEGITIMATE_CONSTANT_P): Accept constants that can be built
2655         with ldil/ldo/depdi instruction sequence on 64-bit hosts.
2656         * pa.md: New addmove pattern for adding constant_int to HImode
2657         register and moving result to HImode register.  Remove HImode HIGH
2658         and LO_SUM patterns.
2659
2660 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2661
2662         * Makefile.in: Update.
2663         * c-decl.c (print_lang_decl, print_lang_type): Remove.
2664         (print_lang_identifier): Rename c_print_identifier.
2665         * c-lang.c (LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2666         (print_lang_statistics, lang_print_xnode): Remove.
2667         * c-parse.in (set_yydebug): Rename c_set_yydebug.
2668         * c-tree.h (c_set_yydebug, c_print_identifier): New.
2669         * langhooks-def.h (lhd_print_tree_nothing, lhd_set_yydebug): New.
2670         LANG_HOOKS_PRINT_STATISTICS, LANG_HOOKS_PRINT_XNODE,
2671         LANG_HOOKS_PRINT_DECL, LANG_HOOKS_PRINT_TYPE,
2672         LANG_HOOKS_PRINT_IDENTIFIER, LANG_HOOKS_SET_YYDEBUG): New.
2673         (LANG_HOOKS_INITIALIZER): Update.
2674         * langhooks.h (struct lang_hooks): New members.
2675         (lang_print_tree_hook): New.
2676         * langhooks.c (lhd_print_tree_nothing, lhd_set_yydebug): New.
2677         * print-tree.c: Include langhooks.h.
2678         (print_node): Update.
2679         * toplev.c (decode_d_option): Update.
2680         * tree.c: Include langhooks.h.
2681         (dump_tree_statistics): Update.
2682         * tree.h (print_lang_statistics, print_lang_decl, print_lang_type,
2683         print_lang_identifier, set_yydebug, lang_print_xnode): Remove.
2684 objc:
2685         * objc-act.c (LANG_HOOKS_PRINT_IDENTIFIER,
2686         LANG_HOOKS_SET_YYDEBUG): Override.
2687         (lang_print_xnode, print_lang_statistics): Remove.
2688
2689 2001-11-09  Richard Henderson  <rth@redhat.com>
2690
2691         * dwarf2asm.c (dw2_force_const_mem): Invoke STRIP_NAME_ENCODING
2692         on the symbol string.
2693
2694 2001-11-09  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
2695
2696         * pa/elf.h (ASM_DECLARE_FUNCTION_NAME,
2697         ASM_OUTPUT_EXTERNAL_LIBCALL): Undef before defining.
2698         * config.gcc (hppa1.1-*-rtems*): Remove duplicate clause.
2699
2700         * clipper.h (ASM_OUTPUT_REG_POP): Fix typo.
2701
2702         * tlink.c (recompile_files): Copy strings passed to `putenv'.
2703
2704 2001-11-09  Geoffrey Keating  <geoffk@redhat.com>
2705
2706         * tree.h (TYPE_VOLATILE): Trap use not on TYPEs.
2707         (TYPE_READONLY): Likewise.
2708
2709         * flow.c (insn_dead_p): Allow for AUTO_INC notes all the time.
2710
2711         * config/stormy16/stormy16.h (ASM_SPEC): Revert last change,
2712         don't pass --gdwarf2 to the assembler if the compiler will also
2713         provide debug info.
2714
2715         * config/stormy16/stormy16.c (xstormy16_expand_casesi):
2716         Don't change INDEX.
2717
2718 Fri Nov  9 17:51:09 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2719
2720         * alias.c (nonoverlapping_memrefs_p): New function.
2721         (true_dependence, canon_true_depenence, write_dependence_p): Call it.
2722
2723         * emit-rtl.c (set_mem_attributes): Get alignments for constants.
2724
2725 2001-11-09  Aldy Hernandez  <aldyh@redhat.com>
2726
2727         * rs6000.h (REG_CLASS_CONTENTS): Add VRSAVE bit to ALL_REGS.
2728         (CONDITIONAL_REGISTER_USAGE): Disable AltiVec registers unless
2729         generating altivec code.
2730         (FIXED_REGISTERS): VRSAVE is fixed.
2731         (CALL_USED_REGISTERS): VRSAVE is call used.
2732
2733 2001-11-09  Jason Eckhardt  <jle@rice.edu>
2734
2735         * config/mips/mips.c (mips_output_conditional_branch): Do not hard
2736         code the branch target as ".+16/.+12", but rather use labels.
2737
2738 Fri Nov  9 11:27:42 2001  Jeffrey A Law  (law@cygnus.com)
2739
2740         * config/pa/milli64.S: Use %r25 and %r0 instead of arg1 and r0
2741         to work around limitations of certain versions of GAS.
2742
2743         * pa.md (mulsi3): Remove PA64 hack to work around SUBREG issues.
2744         (muldi3): Update due to SUBREG_BYTE changes.
2745         (casesi): Similarly.
2746
2747 2001-11-09  Zack Weinberg  <zack@codesourcery.com>
2748
2749         * doc/invoke.texi: Remove comment referring to -xf77-version.
2750
2751 2001-11-09  Kazu Hirata  <kazu@hxi.com>
2752
2753         * config/convex/convex.c: Fix comment formatting.
2754         * config/convex/convex.h: Likewise.
2755
2756 2001-11-08  Zack Weinberg  <zack@codesourcery.com>
2757
2758         * Makefile.in (.po.pox): Look both in srcdir and builddir
2759         for $(PACKAGE).pot.
2760         (po/$(PACKAGE).pot): Don't move-if-change the new potfile over
2761         to the source directory.
2762
2763 2001-11-09 Ben Elliston  <bje@redhat.com>
2764            Michael Meissner  <meissner@redhat.com>
2765            Andrew MacLeod  <amacleod@redhat.com>
2766            Richard Henderson  <rth@redhat.com>
2767            Nick Clifton  <nickc@redhat.com>
2768            Catherine Moore  <clm@redhat.com>
2769
2770         * m32r.c: Add support for m32rx processor.
2771         * m32r.h: Ditto.
2772         * m32r.md: Ditto.
2773         * t-m32r: Ditto.
2774         * m32r-protos.h: Add prototypes for m32rx functions.
2775         * doc/invoke.texi: Document -m32rx option.
2776
2777 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
2778
2779         * config/sparc/sparc.md (movdf): Avoid calling validize_mem during
2780         or after reload.
2781
2782 2001-11-09  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
2783
2784         * doc/install.texi2html: Use $MAKEINFO --no-split.
2785
2786 2001-11-09  Andreas Schwab  <schwab@suse.de>
2787
2788         * Makefile.in ($(HOST_PREFIX_1)rtl.o,
2789         $(HOST_PREFIX_1)print-rtl.o, $(HOST_PREFIX_1)bitmap.o,
2790         $(HOST_PREFIX_1)vfprintf.o, $(HOST_PREFIX_1)doprint.o,
2791         $(HOST_PREFIX_1)strstr.o, $(HOST_PREFIX_1)errors.o,
2792         $(HOST_PREFIX_1)ggc-none.o): Update dependencies.
2793
2794 2001-11-09  H.J. Lu <hjl@gnu.org>
2795
2796         * config/mips/mips.c (mips_output_function_prologues): Cast
2797         `tsize' to long for output.
2798
2799 2001-11-09  Neil Booth  <neil@daikokuya.demon.co.uk>
2800
2801         * c-lang.c (LANG_HOOKS_NAME): New.
2802         (lang_hooks): Constify.
2803         (c_init_options): Update.
2804         (lang_identify): Remove.
2805         * c-parse.in (language_string): Remove.
2806         * dbxout.c: Include langhooks.h.
2807         (dbxout_symbol_location): Update.
2808         * dwarf2out.c: Include langhooks.h.
2809         (gen_compile_unit_die): Update.
2810         * dwarfout.c: Include langhooks.h.
2811         (prototyped_attribute, output_compile_unit_die): Update.
2812         * langhooks-def.h (LANG_HOOKS_NAME, LANG_HOOKS_IDENTIFIER_SIZE): New.
2813         (LANG_HOOKS_INITIALIZER): Update.
2814         * langhooks.h (struct lang_hooks): New members.  Constify.
2815         * stringpool.c: Don't include toplev.h.
2816         (set_identifier_size): Remove.
2817         * toplev.c (toplev_main): Initialize identifier size.
2818         (print_version): Update.
2819         * tree.h (language_string, init_lex, lang_identify,
2820         set_identifier_size): Remove.
2821         * Makefile.in: Update dependencies.
2822         * config/darwin.c: Include langhooks.h.
2823         (func_name_maybe_scoped): Update.
2824         * config/darwin.h (ASM_END_FILE): Update.
2825         * config/nextstep.h (ASM_END_FILE): Update.
2826         * config/nextstep21.h (ASM_END_FILE): Update.
2827         * config/i386/sun386.h (ASM_END_FILE): Update.
2828         * config/rs6000/rs6000.c (ASM_END_FILE): Include langhooks.h.
2829         (rs6000_output_function_epilogue): Update.
2830 objc:
2831         * objc-act.c (LANG_HOOKS_NAME): Override.
2832         (struct lang_hooks): Constify.
2833         (objc_init_options): Update.
2834         (lang_identify): Remove.
2835
2836 Fri Nov  9 00:25:18 EST 2001  John Wehle  (john@feith.com)
2837
2838         * fold-const.c (lshift_double): Honor PREC.
2839         (rshift_double): Likewise.
2840
2841 2001-11-08  Kazu Hirata  <kazu@hxi.com>
2842
2843         * config/1750a/1750a.c: Fix comment formatting.
2844         * config/1750a/1750a.h: Likewise.
2845
2846 2001-11-08  Phil Edwards  <pedwards@disaster.jaj.com>
2847
2848         * configure.in (--enable-languages): Be more permissive about
2849         syntax.  Check for empty lists better.  Warn about $LANGUAGES.
2850         * configure: Regenerated.
2851
2852 2001-11-08  Richard Henderson  <rth@redhat.com>
2853
2854         * dwarf2asm.c (dw2_force_const_mem): Fix typo.
2855
2856 2001-11-08  Geoffrey Keating  <geoffk@redhat.com>
2857
2858         * config.gcc: Rename stormy16 to xstormy16.
2859         * config/stormy16/stormy-abi: Likewise.
2860         * config/stormy16/stormy16-protos.h: Likewise.
2861         * config/stormy16/stormy16.c: Likewise.
2862         * config/stormy16/stormy16.h: Likewise.
2863         * config/stormy16/stormy16.md: Likewise.
2864
2865 2001-11-06  Geoffrey Keating  <geoffk@redhat.com>
2866
2867         * tree.h (TYPE_VOLATILE): Add enable-checking code.
2868         (TYPE_READONLY): Likewise.
2869
2870 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2871
2872         * reload1.c (reload): Don't delete equiv insn if can throw.
2873
2874         * expr.c (emit_block_move): If X is readonly emit CLOBBER for it.
2875         (clear_storage): Likewise, for OBJECT.
2876
2877 Thu Nov  8 16:23:51 2001  Jeffrey A Law  (law@cygnus.com)
2878
2879         * pa.c (emit_move_sequence): Fix SUBREG expression to
2880         use proper byte offset when extending a constant from
2881         SImode to DImode.
2882
2883 2001-11-09  Jakub Jelinek  <jakub@redhat.com>
2884
2885         * cfgrtl.c (purge_dead_edges): Remove REG_EH_REGION note for insns
2886         which cannot throw.
2887
2888 Thu Nov  8 18:00:55 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
2889
2890         * explow.c (convert_memory_address, case SUBREG): Only return
2891         inner object if SUBREG_PROMOTED_VAR_P or known to be pointer.
2892
2893 2001-11-08  Richard Henderson  <rth@redhat.com>
2894
2895         * Makefile.in (GCC_FOR_TARGET): Add build_tooldir/sys-include.
2896         (CROSS_SYSTEM_HEADER_DIR): Use build_tooldir not tooldir.
2897         (ORDINARY_FLAGS_TO_PASS, stmp-fixinc): Likewise.
2898
2899 2001-11-08  Aldy Hernandez  <aldyh@redhat.com>
2900
2901         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add -maltivec.
2902
2903 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
2904
2905         * dwarf2out.c (debug_str_hash): New.
2906         (struct indirect_string_node): New.
2907         (struct dw_val_struct): Change type of val_str to it.
2908         (DEBUG_STR_SECTION_FLAGS): Define.
2909         (add_AT_string): Push string into hashtable, increment reference
2910         counter.
2911         (AT_string): Return string from ht_identifier.
2912         (AT_string_form): New.
2913         (free_AT): For dw_val_class_str, just decrement reference counter.
2914         (size_of_string): Remove.
2915         (size_of_die): Use AT_string_form to decide what size the string
2916         occupies in DIE.
2917         (size_of_pubnames): Use strlen instead of size_of_string.
2918         (value_format): Use AT_string_form for dw_val_class_str.
2919         (output_die): Output DW_FORM_strp strings using
2920         dw2_asm_output_offset.
2921         (indirect_string_alloc, output_indirect_string): New.
2922         (dwarf2out_finish): Emit .debug_str strings if there are any.
2923
2924 2001-11-08  Andreas Franck  <afranck@gmx.de>
2925
2926         * configure.in: Add AC_ARG_PROGRAM to support program name
2927         transformation with --program-prefix, --program-suffix and
2928         --program-transform-name.
2929         * configure: Regenerated.
2930         * Makefile.in (GCC_INSTALL_NAME, CPP_INSTALL_NAME,
2931         PROTOIZE_INSTALL_NAME, UNPROTOIZE_INSTALL_NAME, GCOV_INSTALL_NAME,
2932         GCCBUG_INSTALL_NAME, GCC_CROSS_NAME, CPP_CROSS_NAME,
2933         PROTOIZE_CROSS_NAME, UNPROTOIZE_CROSS_NAME): Handle
2934         program_transform_name the way suggested by autoconf.
2935         (GCC_TARGET_INSTALL_NAME): Define.
2936         (install-driver): Use the transformed target alias name.
2937
2938 2001-11-08  Richard Henderson  <rth@redhat.com>
2939
2940         * config/mips/mips.c (save_restore_insns): Remove GP from the
2941         restore registers mask early instead of special casing it inside
2942         the loop.
2943
2944 2001-11-08  Neil Booth  <neil@daikokuya.demon.co.uk>
2945
2946         * cp/decl.c (shadow_warning): New function.
2947         (pushdecl): Improve -Wshadow warnings.  Don't give both a warning
2948         and an error when a block scope decl shadows a parameter.
2949
2950 2001-11-08  Richard Henderson  <rth@redhat.com>
2951
2952         * config/fp-bit.h (usi_to_float): Define for US_SOFTWARE_GOFAST
2953         case as well.
2954
2955 2001-11-08  John David Anglin  <dave@hiauly1.hia.nrc.ca>
2956
2957         * pa.md (negdf2, negsf2): Use multiplication rather than subtraction
2958         to implement floating negation on processors prior to PA 2.0.
2959
2960 2001-11-08  Jakub Jelinek  <jakub@redhat.com>
2961
2962         * dwarf2asm.c (mark_indirect_pool_entry, mark_indirect_pool): New.
2963         (USE_LINKONCE_INDIRECT): Define.
2964         (dw2_output_indirect_constant_1): Try to output indirect constants
2965         into linkonce sections if possible.
2966         (dw2_force_const_mem): Likewise.  Register indirect_pool with GGC.
2967         (dw2_output_indirect_constants): Likewise.
2968
2969 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2970
2971         * config/rs6000/rs6000.h (REG_ALLOC_ORDER): Add vrsave.
2972
2973 2001-11-07  Neil Booth  <neil@daikokuya.demon.co.uk>
2974
2975         * c-decl.c (pushdecl): Remove file and line.
2976         * c-typeck.c (pop_init_level): Remove size.
2977
2978 2001-11-07  Aldy Hernandez  <aldyh@redhat.com>
2979
2980         * doc/invoke.texi: Add -maltivec, -mno-altivec, and -mabi=altivec
2981         for rs6000.
2982
2983         * config/rs6000/rs6000.h (MASK_ALTIVEC): New.
2984         (TARGET_ALTIVEC): New.
2985         (TARGET_SWITCHES): Add altivec.
2986         (FIRST_PSEUDO_REGISTER): Change to 109.
2987         (CALL_USED_REGISTERS): Same.
2988         (FIRST_ALTIVEC_REGNO): New.
2989         (LAST_ALTIVEC_REGNO): New.
2990         (ALTIVEC_REGNO_P): New.
2991         (UNITS_PER_ALTIVEC_WORD): New.
2992         (ALTIVEC_VECTOR_MODE): New.
2993         (FIXED_REGISTERS): Add altivec registers.
2994         (REG_ALLOC_ORDER): Same.
2995         (HARD_REGNO_NREGS): Adjust for altivec registers.
2996         (HARD_REGNO_MODE_OK): Same.
2997         (MODES_TIEABLE_P): Same.
2998         (REGISTER_MOVE_COST): Same.
2999         (REGNO_REG_CLASS): Same.
3000         (reg_class): Add ALTIVEC_REGS.
3001         (REG_CLASS_NAMES): Same.
3002         (REG_CLASS_CONTENTS): Same.
3003         (REG_CLASS_FROM_LETTER): Add 'v' constraint for ALTIVEC_REGS.
3004         (ALTIVEC_ARG_RETURN): New.
3005         (FUNCTION_VALUE): Handle VECTOR_TYPE.
3006         (LIBCALL_VALUE): Handle altivec vector modes.
3007         (VECTOR_MODE_SUPPORTED_P): New.
3008         (ALTIVEC_ARG_MIN_REG): New.
3009         (ALTIVEC_ARG_MAX_REG): New.
3010         (ALTIVEC_ARG_NUM_REG): New.
3011         (FUNCTION_VALUE_REGNO_P): Return true for altivec return register.
3012         (FUNCTION_ARG_REGNO_P): Support passing args in altivec registers.
3013         (REGISTER_NAMES): Add altivec regs.
3014         (DEBUG_REGISTER_NAMES): Same.
3015         (ADDITIONAL_REGISTER_NAMES): Same.
3016         (rs6000_builtins): New.
3017         (MD_EXPAND_BUILTIN): New.
3018         (MD_INIT_BUILTINS): New.
3019         (LEGITIMATE_OFFSET_ADDRESS_P): This addressing mode is not valid
3020         for AltiVec instructions.
3021         (LEGITIMATE_LO_SUM_ADDRESS_P): Same.
3022         (HARD_REGNO_MODE_OK): Altivec modes can only go in altivec
3023         registers.
3024         (SECONDARY_MEMORY_NEEDED): We need memory to copy vector modes.
3025         (TARGET_SWITCHES): Add no-altivec.
3026         (DATA_ALIGNMENT): Align vectors to 128 bits.
3027         (TARGET_OPTIONS): Add abi= option.
3028         Add rs6000_abi_string extern.
3029         (LOCAL_ALIGNMENT): New.
3030         (CPP_CPU_SPEC): Define __ALTIVEC__ when -maltivec.
3031         (MASK_ALTIVEC_ABI): New.
3032         (TARGET_ALTIVEC_ABI): New.
3033         (CONDITIONAL_REGISTER_USAGE): Set first 20 AltiVec registers to
3034         call-saved.
3035         (STACK_BOUNDARY): Adjust for altivec.
3036         (BIGGEST_ALIGNMENT): Same.
3037         (rs6000_args): Add vregno.
3038         (USE_ALTIVEC_FOR_ARG_P): New.
3039         (FIXED_REGISTERS): Add vrsave register.
3040         (CALL_USED_REGISTERS): Same.
3041         (CONDITIONAL_REGISTER_USAGE): Set VRSAVE info.
3042         (VRSAVE_REGNO): New.
3043         (reg_class): Add VRSAVE_REGS.
3044         (REG_CLASS_NAMES): Same.
3045         (REG_CLASS_CONTENTS): Same.
3046         (REGNO_REG_CLASS): Same.
3047
3048         * config/rs6000/sysv4.h (STACK_BOUNDARY): Adjust for altivec.
3049         (ABI_STACK_BOUNDARY): Same.
3050         (BIGGEST_ALIGNMENT): Same.
3051         (ADJUST_FIELD_ALIGN): Remove undef.  Define anew.
3052         (ROUND_TYPE_ALIGN): Same.
3053
3054         * config/rs6000/aix.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3055         to 64.
3056
3057         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3058         to 64.
3059
3060         * config/rs6000/darwin.h (ROUND_TYPE_ALIGN): Change BIGGEST_ALIGNMENT
3061         to 64.
3062
3063         * config/rs6000/rs6000.c (rs6000_expand_builtin): New.
3064         (altivec_expand_builtin): New.
3065         (altivec_init_builtins): New.
3066         (TARGET_EXPAND_BUILTIN): New.
3067         (TARGET_INIT_BUILTINS): New.
3068         (rs6000_init_builtins): New.
3069         (struct builtin_description): New.
3070         (bdesc_2arg): New.
3071         (rs6000_reg_names): Add altivec registers.
3072         (alt_reg_names): Same.
3073         (secondary_reload_class): Altivec regs can hold altivec regs and
3074         memory.
3075         (rs6000_emit_move): Force constants into memory for AltiVec moves.
3076         (print_operand): Add 'y' case for printing altivec memory
3077         operands.
3078         (rs6000_legitimize_address): Legitimize vector addresses into
3079         [REG+REG] or [REG].
3080         (altivec_expand_binop_builtin): New.
3081         New string rs6000_current_abi.
3082         (rs6000_override_options): Call rs6000_parse_abi_options.
3083         (rs6000_parse_abi_options): New.
3084         (function_arg_boundary): Vector arguments must be 16
3085         byte aligned.
3086         (function_arg_advance): Handle vector arguments.
3087         (function_arg_partial_nregs): Same.
3088         (init_cumulative_args): Same.
3089         (function_arg): Same.
3090
3091         * config/rs6000/rs6000.md (altivec_lvx): New.
3092         (type): Add altivec attribute.
3093         (movv4si): New.
3094         (*movv4si_internal): New.
3095         (movv16qi): New.
3096         (*movv16qi_internal): New.
3097         (movv8hi): New.
3098         (*movv8hi_internal1): New.
3099         (movv4sf): New.
3100         (*movv4sf_internal1): New.
3101         (altivec_stvx): New.
3102         (vaddubm): New.
3103         (vadduhm): New.
3104         (vadduwm): New.
3105         (vaddfp): New.
3106         (vaddcuw): New.
3107         (vaddubs): New.
3108         (vaddsbs): New.
3109         (vadduhs): New.
3110         (vaddshs): New.
3111         (vadduws): New.
3112         (vaddsws): New.
3113         (vand): New.
3114         (vandc): New.
3115         (vavgub): New.
3116         (vavgsb): New.
3117         (vavguh): New.
3118         (vavgsh): New.
3119         (vavguw): New.
3120         (vavgsw): New.
3121         (vcmpbfp): New.
3122         (vcmpequb): New.
3123         (vcmpequh): New.
3124         (vcmpequw): New.
3125         (vcmpeqfp): New.
3126         (vcmpgefp): New.
3127         (vcmpgtub): New.
3128         (vcmpgtsb): New.
3129         (vcmpgtuh): New.
3130         (vcmpgtsh): New.
3131         (vcmpgtuw): New.
3132         (vcmpgtsw): New.
3133         (vcmpgtfp): New.
3134         (vcmpgefp): New.
3135         (vcmpgtub): New.
3136         (vcmpgtsb): New.
3137         (vcmpgtuh): New.
3138         (vcmpgtsh): New.
3139         (vcmpgtuw): New.
3140         (vcmpgtsw): New.
3141         (vcmpgtfp): New.
3142         (vmaxub): New.
3143         (vmaxsb): New.
3144         (vmaxuh): New.
3145         (vmaxsh): New.
3146         (vmaxuw): New.
3147         (vmaxsw): New.
3148         (vmaxfp): New.
3149         (vmrghb): New.
3150         (vmrghh): New.
3151         (vmrghw): New.
3152         (vmrglb): New.
3153         (vmrglh): New.
3154         (vmrglw): New.
3155         (vminub): New.
3156         (vminsb): New.
3157         (vminuh): New.
3158         (vminsh): New.
3159         (vminuw): New.
3160         (vminsw): New.
3161         (vminfp): New.
3162         (vmuleub): New.
3163         (vmulesb): New.
3164         (vmuleuh): New.
3165         (vmulesh): New.
3166         (vmuloub): New.
3167         (vmulosb): New.
3168         (vmulouh): New.
3169         (vmulosh): New.
3170         (vnor): New.
3171         (vor): New.
3172         (vpkuhum): New.
3173         (vpkuwum): New.
3174         (vpkpx): New.
3175         (vpkuhss): New.
3176         (vpkshss): New.
3177         (vpkuwss): New.
3178         (vpkswss): New.
3179         (vpkuhus): New.
3180         (vpkshus): New.
3181         (vpkuwus): New.
3182         (vpkswus): New.
3183         (vrlb): New.
3184         (vrlh): New.
3185         (vrlw): New.
3186         (vslb): New.
3187         (vslh): New.
3188         (vslw): New.
3189         (vsl): New.
3190         (vslo): New.
3191         (vsrb): New.
3192         (vrsh): New.
3193         (vrsw): New.
3194         (vsrab): New.
3195         (vsrah): New.
3196         (vsraw): New.
3197         (vsr): New.
3198         (vsro): New.
3199         (vsububm): New.
3200         (vsubuhm): New.
3201         (vsubuwm): New.
3202         (vsubfp): New.
3203         (vsubcuw): New.
3204         (vsububs): New.
3205         (vsubsbs): New.
3206         (vsubuhs): New.
3207         (vsubshs): New.
3208         (vsubuws): New.
3209         (vsubsws): New.
3210         (vsum4ubs): New.
3211         (vsum4sbs): New.
3212         (vsum4shs): New.
3213         (vsum2sws): New.
3214         (vsumsws): New.
3215         (vxor): New.
3216
3217 2001-11-07  Daniel Berlin  <dan@cgsoftware.com>
3218
3219         * Makefile.in (df.o): Add fibheap.h to dependencies.
3220
3221         * df.h: Add prototypes for transfer functions, iterative_dataflow
3222         functions.
3223         (enum df_flow_dir): New enum.
3224         (enum df_confluence_op): New enum.
3225         (struct df): Add inverse_rts_map.
3226
3227         * df.c: Add sbitmap.h to the list of includes.
3228         (df_rd_global_compute): Removed.
3229         (df_ru_global_compute): Removed.
3230         (df_lr_global_compute): Removed.
3231         (df_rd_transfer_function): New function.
3232         (df_ru_transfer_function): New function.
3233         (df_lr_transfer_function): New function.
3234         (df_analyse_1): allocate/compute/free df->inverse_rts_map.
3235         Use iterative_dataflow_bitmap instead of df_*_global_compute.
3236         (iterative_dataflow_sbitmap): New function.
3237         (iterative_dataflow_bitmap): New function.
3238
3239 2001-11-07  Joseph S. Myers  <jsm28@cam.ac.uk>
3240
3241         * doc/gcc.texi: Move terminology and spelling conventions to
3242         htdocs/codingconventions.html.
3243
3244 2001-11-07  Graham Stott  <grahams@redhat.com>
3245
3246         * cse.c (cse_insn): Emit BARRIER after unconditional jump.
3247
3248 Wed Nov  7 13:33:34 CET 2001  Jan Hubicka  <jh@suse.cz>
3249
3250         * expmed.c (expand_mult): Force operand to register before computing
3251         cost.
3252         * i386.c (x86_decompose_lea): New global vairable.
3253         * i386.h (x86_decompose_lea): Declare.
3254         (TARGET_DECOMPOSE_LEA): New macro.
3255         (RTX_COST): Handle leas properly.
3256
3257 2001-11-06  Richard Henderson  <rth@redhat.com>
3258
3259         * config/alpha/elf.h (DO_SELECT_SECTION): TREE_READONLY is not
3260         defined for a CONSTRUCTOR; don't check it.
3261
3262 2001-11-06  Danny Smith  <dannysmith@users.sourceforge.net>
3263
3264         * gcov.c (output_data): Use IS_ABSOLUTE_PATHNAME to
3265         test for absolute pathnames.
3266
3267 2001-11-06  Olivier Hainque <hainque@act-europe.fr>
3268
3269         * unwind-dw2.c (execute_cfa_program): Evaluate call frame
3270         instructions up to the target pc inclusive.
3271
3272 2001-11-06  Steve Christiansen  <smc@us.ibm.com>
3273
3274         * loop.c (loop_regs_scan):  Don't invalidate PIC register.
3275
3276 2001-11-06  Eric Christopher  <echristo@redhat.com>
3277
3278         * config/mips/mips.md(movdf_internal2): Add constraints for float
3279         to general register move.
3280         * config/mips/elf64.h: Add default ABI.
3281
3282 2001-11-06  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3283
3284         * alias.c:: Include langhooks.h.
3285         * emit-rtl.c: Similarly.
3286         * toplev.c: Similarly.
3287         * tree-inline.c: Similarly.
3288         * langhooks-def.h: New, the old langhooks.h.  Give the default
3289         hooks a common prefix.
3290         * langhooks.h: Contents extracted from toplev.h.
3291         * toplev.h: Move langhook stuff to langhooks.h.
3292         * langhooks.c: Give default hooks a common prefix.
3293
3294         * c-lang.c: Include langhooks-def.h.
3295         * objc/objc-act.c: Similarly.
3296         * Makefile.in: Update.
3297         * objc/Make-lang.in: Update.
3298
3299 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
3300
3301         * doc/install.texi: Document that configure options not listed in
3302         this file are unsupported.  Document --with-system-zlib.
3303
3304 Tue Nov  6 09:21:34 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3305
3306         * rtl.h (mem_for_const_double): New declaration.
3307         * varasm.c (mem_for_const_double): New function.
3308         * config/convex/convex.md (movdf): Use it.
3309         * config/m68k/hp320.h (LEGITIMATE_PIC_OPERAND_P): Likewise.
3310         * config/m68k/linux.h, config/m68k/m68k.h: Likewise.
3311         * config/m68k/m68kv4.h: Likewise.
3312
3313         * config/alpha/alpha.h (SECONDARY_MEMORY_NEEDED): Adjust for addition
3314         of new GP reg classes.
3315
3316         * expr.c (store_field): When making temp object for unaligned
3317         component, set it to alias set 0.
3318
3319 2001-11-06  Joseph S. Myers  <jsm28@cam.ac.uk>
3320
3321         * c-common.c (c_expand_expr_stmt): Apply default conversions to
3322         non-lvalue arrays if C99.
3323         * c-typeck.c (default_conversion): Split out code handling
3324         array-to-pointer and function-to-pointer conversions into a
3325         separate default_function_array_conversion function.
3326         (default_function_array_conversion): New function.  Keep track of
3327         whether any NON_LVALUE_EXPRs were stripped.  Return non-lvalue
3328         arrays unchanged outside C99 mode instead of giving an error for
3329         them.
3330         (build_component_ref): Use pedantic_non_lvalue when handling
3331         COMPOUND_EXPR.  Don't handle COND_EXPR specially.
3332         (convert_arguments): Use default_function_array_conversion.
3333         (build_unary_op): For ADDR_EXPR, take a flag indicating whether
3334         non-lvalues are OK.
3335         (unary_complex_lvalue): Likewise.
3336         (internal_build_compound_expr): Use
3337         default_function_array_conversion.  Apply default conversions to
3338         function in compound expression.
3339         (build_c_cast, build_modify_expr, digest_init, build_asm_stmt):
3340         Use default_function_array_conversion.
3341         * doc/extend.texi: Update documentation of subscripting non-lvalue
3342         arrays.
3343         Fixes PR c/461.
3344
3345 2001-11-05  Zack Weinberg  <zack@codesourcery.com>
3346
3347         * aclocal.m4: (AM_WITH_NLS): Don't look at ALL_LINGUAS.
3348         (AM_GNU_GETTEXT): Set CATALOGS to a list of .gmo files
3349         corresponding to the complete set of .po and .gmo files in
3350         the source directory's po subdir, modified by LINGUAS.  Don't
3351         look at ALL_LINGUAS.
3352         * configure.in: Don't set ALL_LINGUAS.
3353         * configure: Regenerate.
3354
3355         * Makefile.in (.po.gmo): Don't move into source directory.
3356         (.po.pox): Clarify comments.
3357         (install-po): Look for .gmo files in both srcdir and objdir;
3358         don't fail if a file is totally missing.
3359         (distclean): rmdir ada subdirectory too.
3360
3361 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
3362
3363         * config/rs6000/rs6000.c (rs6000_select_section): Handle
3364         CONSTRUCTORs _correctly_.
3365
3366 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3367
3368         * c-decl.c (delete_block): Remove.
3369         * c-tree.h (delete_block): Remove.
3370
3371 2001-11-05  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3372
3373         * cppexp.c (lex, parse_defined): Update warning about defined.
3374
3375 2001-11-05  Geoffrey Keating  <geoffk@redhat.com>
3376
3377         * config/rs6000/rs6000.c (rs6000_select_section): Handle
3378         CONSTRUCTORs too.
3379
3380 2001-11-05  Nick Clifton  <nickc@cambridge.redhat.com>
3381
3382         * config/arm/arm.c (arm_return_in_memory): Cope with
3383         int_size_in_bytes returning -1.
3384
3385         * config/arm/unknown-elf.h (ASM_OUTPUT_ALIGNED_DECL_LOCAL): Handle
3386         DECL being NULL.
3387
3388 Mon Nov  5 16:15:25 CET 2001  Jan Hubicka  <jh@suse.cz>
3389
3390         * Makefile.in (bb-reorder.o): Add dependency on cfglayout.h;
3391         remove unneeded dependencies;
3392         (cfglayout.o): New.
3393         * cfglayout.c, cfglayout.h: New files; break out from ...
3394         * bb-reorder.c: ... here; Remove unneeded includes;
3395
3396 2001-11-04  Alan Modra  <amodra@bigpond.net.au>
3397
3398         * config/rs6000/rs6000.md (load_toc_aix_{si,di}): Mark r2 as used.
3399
3400 2001-11-04  David Edelsohn  <edelsohn@gnu.org>
3401
3402         * config/rs6000/rs6000.c (rs6000_emit_move): Handle 64-bit
3403         mode as well.  Do not explicitly create intermediate regs.
3404
3405 2001-11-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3406
3407         * arm/aof.h (aof_text_section, aof_data_section): Don't declare.
3408         (common_section): Delete unused variable.
3409         (ASM_OUTPUT_ASCII): Fix signed/unsigned warnings.
3410         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
3411         * arm-protos.h (arm_poke_function_name, aof_add_import,
3412         aof_delete_import): Const-ify.
3413         * arm.c (legitimize_pic_address): Wrap variables in the macro
3414         controlling their usage.
3415         (arm_finalize_pic): Mark variable with ATTRIBUTE_UNUSED.
3416         (arm_poke_function_name, pic_chain, import, aof_add_import,
3417         aof_delete_import): Const-ify.
3418         * i386.c (ix86_osf_output_function_prologue): Const-ify.
3419         * i386/sysv4.h (ASM_OUTPUT_FLOAT, ASM_OUTPUT_DOUBLE,
3420         ASM_OUTPUT_LONG_DOUBLE): Fix format specifier warnings.
3421         * i860/fx2800.h (DBX_OUTPUT_STANDARD_TYPES): Const-ify.
3422         * i860/sysv3.h: Add missing comment closure.
3423         * m68k/apollo68.h (ASM_RETURN_CASE_JUMP): Add missing semi-colon.
3424         * m88k/dgux.h (SELECT_RTX_SECTION): Add missing argument in call
3425         to symbolic_operand.
3426
3427         * config.gcc (m680[02]0-*-*): Rename case from m68000-*-*.
3428         (i960-*-*): Set tmake_file.
3429         (sparc86x-*-elf*): Fix typo in header name.
3430
3431         * sched-rgn.c (schedule_insns): Delete unused variable.
3432
3433 2001-11-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
3434
3435         PR c/2820
3436         * c-typeck.c (lookup_field): Rework to return a chain down to
3437         the looked-up field.
3438         (build_component_ref): Use the new lookup_field to handle
3439         nested anonymous entities correctly.
3440
3441 Sun Nov  4 11:53:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3442
3443         * config/sparc/sparc.c (sparc_emit_set_const32, GEN_HIGHINT64):
3444         Change parameters to gen_rtx_CONST_DOUBLE.
3445         (GEN_INT64, sparc_emit_set_const64): Likewise.
3446         * config/sparc/sparc.md (movdf split): Likewise.
3447
3448 2001-11-03  Geoffrey Keating  <geoffk@redhat.com>
3449
3450         * unroll.c (calculate_giv_inc): Use find_last_value rather
3451         than just hoping the last instruction is the right SET.
3452         [Fixes 990604-1.c on stormy16.]
3453
3454         * config/stormy16/stormy16.h (LIB_SPEC): Don't supply any libgloss
3455         library at all if -T is used.
3456
3457         * config/stormy16/stormy16.c (stormy16_print_operand): Avoid
3458         some uses of uninitialized variables in error cases.
3459
3460         * config/stormy16/stormy16.c (stormy16_output_shift): Don't
3461         look at 'temp' if we won't be using it.
3462
3463         * config/stormy16/stormy16.h (CONST_COSTS): Define.
3464         (RTX_COSTS): Define.
3465         (ADDRESS_COST): Define.
3466         (MEMORY_MOVE_COST): Allow for memory_move_secondary_cost.
3467
3468         * config/stormy16/stormy16.h (ASM_SPEC): Pass -g to the assembler.
3469
3470         * config/stormy16/stormy16.h (ASM_OUTPUT_MI_THUNK): Call
3471         stormy16_asm_output_mi_thunk.
3472         * config/stormy16/stormy16.c (stormy16_asm_output_mi_thunk): New
3473         function.
3474         * config/stormy16/stormy16-protos.h
3475         (stormy16_asm_output_mi_thunk): New prototype.
3476
3477 2001-11-04  Joseph S. Myers  <jsm28@cam.ac.uk>
3478
3479         * ChangeLog.2, ChangeLog.4, ChangeLog.5, ChangeLog,
3480         FSFChangeLog.10, FSFChangeLog.11, alias.c, attribs.c,
3481         caller-save.c, calls.c, cfg.c, cfganal.c, cfgcleanup.c, cfgrtl.c,
3482         cppmacro.c, fold-const.c, ifcvt.c, local-alloc.c, profile.c,
3483         sched-int.h, toplev.c, config/alpha/alpha.c,
3484         config/alpha/alpha.md, config/c4x/c4x.h, config/cris/cris.h,
3485         config/cris/cris.md, config/i370/i370.md, config/i386/i386.c,
3486         config/i386/i386.h, config/i386/i386.md, config/i386/xm-djgpp.h,
3487         config/ia64/ia64.c, config/m68hc11/m68hc11.c, config/m68k/m68k.md,
3488         config/mcore/mcore.h, config/mmix/mmix.c, config/ns32k/ns32k.h,
3489         config/ns32k/ns32k.md, config/rs6000/rs6000.c,
3490         config/rs6000/sysv4.h, config/sh/sh.md: Fix spelling errors.
3491
3492 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3493
3494         * Makefile.in (dbxout.o): Depend on function.h.
3495         * collect2.c (is_in_list): Hide unused function.
3496         * dbxout.c: Include function.h.
3497         (source_label_number, dbxout_source_line, dbxout_source_file,
3498         dbxout_function_end, dbxout_begin_function): Wrap/move inside
3499         macros controlling usage.
3500         * gcc.c (TARGET_EXECUTABLE_SUFFIX): Undef before defining.
3501         * output.h (exports_section): Prototype.
3502
3503         * convex.c (convex_output_function_prologue): Fix format specifier
3504         warning.
3505         (asm_declare_function_name): Fix signed/unsigned warning.
3506         (print_operand): Fix format specifier warning.
3507         * convex.h (S_REGNO_P, A_REGNO_P): Fix signed/unsigned warning.
3508         * dsp16xx-protos.h (uns_comparison_operator,
3509         num_1600_core_shifts): Prototype.
3510         * dsp16xx.c: Include tm_p.h, not dsp16xx-protos.h.
3511         (frame_size, frame_pointer_offset): Delete.
3512         (dsp16xx_output_function_prologue, dsp16xx_output_function_epilogue):
3513         Make static.  Fix format specifier warnings.
3514         * dsp16xx.h (IS_ACCUM_REG): Fix unsigned>=0 warning.
3515         (EXTRA_SECTION_FUNCTIONS): Prototype const_section.
3516         * dsp16xx.md: Add default case in switches.
3517         * fr30.h (IN_RANGE): Delete.
3518         * ia64.h (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
3519         * mcore-protos.h (mcore_output_cmov): Const-ify.
3520         * mcore.c (mcore_output_cmov): Likewise.
3521         * mcore.h (switch_to_section): Make static and prototype.
3522         * mn10200.h (REGNO_OK_FOR_INDEX_P, REG_OK_FOR_INDEX_P): Fix
3523         unsigned>=0 warnings.
3524         * mn10300.h (REGNO_IN_RANGE_P): Likewise.
3525         * rs6000-protos.h (read_only_data_section,
3526         read_only_private_data_section): Prototype.
3527         * rs6000.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
3528         * sh.c (sh_adjust_cost): Mark parameter with ATTRIBUTE_UNUSED.
3529         * sh.h (GENERAL_REGISTER_P): Fix unsigned>=0 warning.
3530
3531 2001-11-03  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
3532
3533         * dwarf2asm.c (dw2_asm_output_pcrel): Mark parameters with
3534         ATTRIBUTE_UNUSED.
3535         * final.c (final_scan_insn): Add brackets around body of if-stmt.
3536         * gcc.c (convert_filename): Add static prototype.  Const-ify.
3537         Wrap variable in macros controlling its use.
3538         * output.h (sdata_section): Add prototype.
3539
3540         * 1750a.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3541         (ASM_OUTPUT_ASCII): Avoid signed/unsigned warning.
3542         * c4x.h (INIT_SECTION_FUNCTION): Add prototype.
3543         (ASM_FILE_START): Const-ify.
3544         (ASM_OUTPUT_BYTE_FLOAT, ASM_OUTPUT_SHORT_FLOAT): Fix format
3545         specifier warning.
3546         * c4x.md: Don't use the 'U' integer suffix.
3547         * clipper.md (clipper_movstr): Delete declaration.
3548         * d30v-protos.h (d30v_move_2words): Const-ify.
3549         (debug_stack_info): Add prototype.
3550         * d30v.c: Include "integrate.h".
3551         (d30v_function_arg_boundary, d30v_function_arg,
3552         d30v_function_arg_partial_nregs, d30v_function_arg_advance): Avoid
3553         signed/unsigned warnings.
3554         (d30v_print_operand_memory_reference, d30v_move_2words):
3555         Const-ify.
3556         * d30v.h (REG_CLASS_FROM_LETTER): Use unsigned array subscript.
3557         * fr30.c (fr30_pass_by_reference, fr30_pass_by_value): Prototype.
3558         * fr30.md: Const-ify.
3559         * h8300.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3560         * i370.c (i370_label_scan, mvs_get_label): Make definition static.
3561         (mvs_get_label_page): Hide unused static function.
3562         * i860.c (current_function_original_name): Const-ify.
3563         * i860/sysv3.h (current_function_original_name): Likewise.
3564         * i860/sysv4.h (current_function_original_name): Likewise.
3565         * i960.md: Add default case in switches.  Remove unused variable.
3566         * i960/vx960-coff.h (MULTILIB_DEFAULTS): Undef before defining.
3567         * m32r.md: Const-ify.
3568         * m68hc11-protos.h (m68hc11_asm_file_start): Const-ify.
3569         * m68hc11.c: Include "reload.h".
3570         (static_chain_reg, print_options, m68hc11_asm_file_start):
3571         Const-ify.
3572         * m68hc11.md: Delete unused variable.  Const-ify.  Add parens
3573         around & in comparison.
3574         * mcore.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
3575         * mn10200.c (shift_mode): Remove trailing comma.
3576         * mn10300-protos.h (output_tst): Const-ify.
3577         * mn10300.c (output_tst): Likewise.
3578         * pa/long_double.h (ASM_OUTPUT_LONG_DOUBLE): Fix format specifier
3579         warnings.
3580         * pa-protos.h (output_ascii): Use regular char *, not unsigned.
3581         * pa.c (output_ascii): Likewise.
3582         * pa/som.h (EXTRA_SECTION_FUNCTIONS): Add prototype.
3583         * pdp11.md (expand_unop): Delete declarations.
3584         * pj-protos.h (pj_output_addsi3): Const-ify.
3585         * pj.c (pj_output_push_int, pj_output_load, pj_output_inc,
3586         pj_output_cnv_op, mode_to_char, pj_output_varidx, pj_print_cond,
3587         unique_src_operand): Add prototypes.
3588         (pj_output_store_into_lval): Make definition static.
3589         (pj_function_incoming_arg): Don't use unary plus.
3590         (pj_output_addsi3): Const-ify.
3591         * romp.md (get_symref): Delete declarations.
3592         * v850-c.c (mark_current_function_as_interrupt): Don't return
3593         value from void function.
3594         * v850.c: Include "integrate.h".
3595         * v850.h (ASM_OUTPUT_LABELREF): Const-ify.
3596         * vax-protos.h (const_section): Add prototype.
3597
3598 2001-11-03  Aldy Hernandez  <aldyh@redhat.com>
3599
3600         * machmode.def: Add documentation for the seventh argument in
3601         vector modes.
3602
3603 2001-11-04  Hans-Peter Nilsson  <hp@bitrange.com>
3604
3605         * doc/invoke.texi (MMIX Options) <-mno-knuthdiv>: Say remainder
3606         consistently.
3607         <-mno-toplevel-symbols>: Change @code{:} to @samp{:}.
3608         <-melf>: Don't have markup for ELF acronym.
3609
3610 2001-11-03  Hans-Peter Nilsson  <hp@bitrange.com>
3611
3612         * config.gcc (mmix-*-*): New target.
3613         * doc/invoke.texi: Document MMIX options.
3614         * doc/contrib.texi: Add note about MMIX port to my entry.
3615         * config/mmix/t-mmix: New file.
3616         * config/mmix/mmix.h: New file.
3617         * config/mmix/mmix-protos.h: New file.
3618         * config/mmix/mmix.c: New file.
3619         * config/mmix/mmix.md: New file.
3620         * config/mmix/crti.asm: New file.
3621         * config/mmix/crtn.asm: New file.
3622
3623 2001-11-03  Kazu Hirata  <kazu@hxi.com>
3624
3625         * config/sparc/linux-aout.h: Fix comment formatting.
3626         * config/sparc/linux.h: Likewise.
3627         * config/sparc/linux64.h: Likewise.
3628         * config/sparc/lynx.h: Likewise.
3629         * config/sparc/pbd.h: Likewise.
3630         * config/sparc/sol2-sld-64.h: Likewise.
3631         * config/sparc/sol2.h: Likewise.
3632         * config/sparc/sparc.c: Likewise.
3633         * config/sparc/sparc.h: Likewise.
3634         * config/sparc/sparc.md: Likewise.
3635         * config/sparc/sunos4.h: Likewise.
3636         * config/sparc/vxsim.h: Likewise.
3637         * config/sparc/vxsparc.h: Likewise.
3638         * config/sparc/vxsparc64.h: Likewise.
3639
3640 Sat Nov  3 10:37:56 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
3641
3642         * cselib.c (cselib_subst_to_values, case CONST_DOUBLE): Remove
3643         reference to CONST_DOUBLE_MEM in comment.
3644         * emit-rtl.c (gen_rtx_CONST_DOUBLE): Remove one operand.
3645         (gen_rtx, case CONST_DOUBLE): Call it with one less operand.
3646         (init_emit_once): Don't clear CONST_DOUBLE_MEM.
3647         * function.c (pop_function_context_from): Don't call
3648         restore_varasm_status.
3649         * function.h (restore_varasm_status): Delete declaration.
3650         * gengenrtl.c (CONST_DOUBLE_FORMAT): Delete CONST_DOUBLE_MEM slot.
3651         * rtl.c: Likewise.
3652         * rtl.def (CONST_DOUBLE): Update comment.
3653         * rtl.h (CONST_DOUBLE_HIGH, CONST_DOUBLE_LOW): Update operand number.
3654         (CONST_DOUBLE_CHAIN): Likewise.
3655         (CONST_DOUBLE_MEM): Delete.
3656         (gen_rtx_CONST_DOUBLE): Update parameters.
3657         * varasm.c (struct varasm_status): x_pool_offset now HOST_WIDE_INT.
3658         Remove reference to CONST_DOUBLE_MEM.
3659         (const_alias_set): New variable.
3660         (immed_double_const): Change call to gen_rtx_CONST_DOUBLE.
3661         (immed_real_const_1): Adjust tests for 0, 1, and 2.
3662         Don't set CONST_DOUBLE_MEM.
3663         (clear_const_double_mem): Don't do anything with const_tiny_rtx.
3664         (output_constant_def): Don't look at TREE_CST_RTL if INTEGER_CST.
3665         Put constant in const_alias_set.
3666         (struct pool_constant): ALIGN now unsigned.
3667         OFFSET now HOST_WIDE_INT.
3668         Delete LABEL.
3669         (restore_varasm_status): Deleted.
3670         (mark_pool_constant): Mark desc->rtl.
3671         (force_const_mem): Rework to store rtl in hash table,
3672         not CONST_DOUBLE_MEM.
3673         Put constant in const_alias_set.
3674         (find_pool_constant): Check desc->rtl.
3675         (mark_constants, mark_constant): Don't special-case CONST_DOUBLE.
3676         (init_varasm_once): Initialize const_alias_set.
3677
3678         * expr.c (expand_expr, case ADDDR_EXPR): If at top level, don't call
3679         force_const_mem.
3680
3681         * reload.c (combine_reloads): Don't combine an output reload if there
3682         are other reloads around for part of the output.
3683
3684         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGINGP_P if T is a
3685         constant expression.
3686         (set_mem_decl): New function.
3687         * expr.h (set_mem_decl): New declaration.
3688         * final.c (get_decl_from_op): Don't use ORIGINAL_REGNO if not pseudo.
3689         (output_asm_operand_names): Add tab.
3690         * reload1.c (alter_reg): Set decl of MEM from REG_DECL.
3691
3692         * builtins.c (get_memory_rtx): Properly set MEM alias set and
3693         attributes.
3694
3695 2001-11-03  Joseph S. Myers  <jsm28@cam.ac.uk>
3696
3697         * doc/extend.texi, doc/gcc.texi, doc/install.texi, doc/tm.texi:
3698         Use "invalid" instead of "illegal".  Use @r in comments in
3699         examples.
3700
3701 2001-11-02  Neil Booth  <neil@daikokuya.demon.co.uk>
3702
3703         * c-decl.c (pushdecl): Move block inside if conditional to remove
3704         possibility of a segfault.  Lookup block-level extern
3705         variables in enclosing scopes correctly.
3706
3707         * testsuite/gcc.c-torture/compile/20001018-1.x: Remove XFAIL.
3708
3709 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
3710
3711         * expmed.c (store_bit_field): Use simplify_gen_subreg to make
3712         SUBREG so we avoid SUBREGing memory.
3713
3714         * expmed.c (store_bit_field): Same.
3715
3716 2001-11-02  DJ Delorie  <dj@redhat.com>
3717
3718         * config/rs6000/rs6000.c (rs6000_emit_move): Make sure that
3719         using FP registers for DImode mem-mem moves is acceptable.
3720
3721 2001-11-02  Aldy Hernandez  <aldyh@redhat.com>
3722
3723         * builtins.c (apply_args_size): Handle vector arguments.
3724         (apply_result_size): Same.
3725
3726         * machmode.def: Set WIDER mode field for all vector entries.
3727
3728 2001-11-02  Graham Stott  <grahams@redhat.com>
3729
3730         * recog.c (decode_asm_operands):  Check that the SRC is ASM_OPERANDS.
3731
3732 2001-11-01  Eric Christopher  <echristo@redhat.com>
3733
3734         * config.gcc: Revert part of earlier patch.
3735         * config/mips/linux.h: Ditto.
3736         * df.c: Include tm_p.h to avoid warnings.
3737         * config/mips/mips.h (ABI_GAS_ASM_SPEC): Add defaults.  Adjust
3738         #if/#endif.
3739         * config/mips/mips.c: Define mips_abi regardless.
3740         (mips_output_function_prologues): Add long casts for .frame
3741         output.
3742         (override_options): Allow use of ABI_32.
3743
3744 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3745
3746         * config/m68hc11/m68hc11.c: Fix comment formatting.
3747         * config/m68hc11/m68hc11.h: Likewise.
3748         * config/m68hc11/m68hc11.md: Likewise.
3749
3750 2001-11-01  Neil Booth  <neil@daikokuya.demon.co.uk>
3751
3752         * c-typeck.c (default_conversion): Retain the original expression
3753         codes.
3754         * gcc.dg/Wparentheses.c: New tests.
3755
3756 2001-11-01  David S. Miller  <davem@redhat.com>
3757
3758         * doc/install.texi (Specific, sparc-sun-solaris2*): Bring
3759         64-bit Sparc description more in line with reality.
3760
3761 2001-11-01  Joseph S. Myers  <jsm28@cam.ac.uk>
3762
3763         * Makefile.in (GCOV_OBJS): Add version.o.
3764         * gcov.c: Include "version.h" and <getopt.h>.
3765         (gcov_version_string): Remove.
3766         (print_usage): Take a parameter to determine whether this is a
3767         call from --help or an error message.  Give fuller output that
3768         follows the GNU Coding Standards for --help.
3769         (print_version): New function.
3770         (options): New.
3771         (process_args): Use getopt_long.  Support long options.  Follow
3772         GNU Coding Standards for --help and --version.
3773         * doc/gcov.texi: Document long options.
3774         Addresses part of PR other/704.
3775
3776 2001-11-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
3777
3778         * pa.c (output_move_double): Fix typo in double load.
3779
3780 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3781
3782         * config/h8300/h8300.c (h8300_encode_label): Compute a string
3783         before passing it to ggc_alloc_string.
3784
3785 2001-11-01  Kazu Hirata  <kazu@hxi.com>
3786
3787         * config/m68k/3b1.h: Fix comment formatting.
3788         * config/m68k/3b1g.h: Likewise.
3789         * config/m68k/a-ux.h: Likewise.
3790         * config/m68k/amix.h: Likewise.
3791         * config/m68k/apollo68.h: Likewise.
3792         * config/m68k/atari.h: Likewise.
3793         * config/m68k/aux-exit.c: Likewise.
3794         * config/m68k/ccur-GAS.h: Likewise.
3795         * config/m68k/crds.h: Likewise.
3796         * config/m68k/dpx2.h: Likewise.
3797         * config/m68k/dpx2g.h: Likewise.
3798         * config/m68k/hp310.h: Likewise.
3799         * config/m68k/hp320.h: Likewise.
3800         * config/m68k/isi.h: Likewise.
3801         * config/m68k/linux.h: Likewise.
3802         * config/m68k/lynx.h: Likewise.
3803         * config/m68k/m68k-psos.h: Likewise.
3804         * config/m68k/m68k.c: Likewise.
3805         * config/m68k/m68k.h: Likewise.
3806         * config/m68k/m68k.md: Likewise.
3807         * config/m68k/m68kelf.h: Likewise.
3808         * config/m68k/m68kv4.h: Likewise.
3809         * config/m68k/mot3300.h: Likewise.
3810         * config/m68k/news.h: Likewise.
3811         * config/m68k/next.h: Likewise.
3812         * config/m68k/pbb.h: Likewise.
3813         * config/m68k/plexus.h: Likewise.
3814         * config/m68k/sgs.h: Likewise.
3815         * config/m68k/sun3.h: Likewise.
3816         * config/m68k/tower.h: Likewise.
3817         * config/m68k/vxm68k.h: Likewise.
3818
3819 2001-10-31  DJ Delorie  <dj@redhat.com>
3820
3821         * config/mips/mips.h (mips_cache_flush_func): Prototype.
3822         (TARGET_OPTIONS): Support -mflush-func= and -mno-flush-func.
3823         (INITIALIZE_TRAMPOLINE): Use mips_cache_flush_func if nonzero.
3824         * config/mips/mips.c (mips_cache_flush_func): New.
3825         * doc/invoke.texi: Document the new options.
3826
3827 2001-10-31  Hans-Peter Nilsson  <hp@axis.com>
3828
3829         * config.gcc (cris-*-linux*, tm_file): Rearrange order.
3830         * config/cris/linux.h (LIB_SPEC, STARTFILE_SPEC): Don't redefine.
3831
3832         * config/cris/cris.h (EH_RETURN_DATA_REGNO): Fix formatting.
3833
3834         * config/cris/cris.c: Include output.h after tree.h but before
3835         target.h.
3836
3837 2001-10-31  Zack Weinberg  <zack@codesourcery.com>
3838
3839         * Makefile.in (INTL_TARGETS, POSUB): Delete all references.
3840         (INTL_SUBDIRS): Just intl.
3841         (.SUFFIXES): Add .gmo .po .pox.
3842         (native): Also depend on build-@POSUB@.
3843         (intl.all, intl.install): Depend on config.h and things it includes.
3844         (po-generated): New target; depend on c-parse.c and tradcif.c.
3845         (install-normal): Also depend on install-@POSUB@.
3846         (XGETTEXT, GMSGFMT, MSGMERGE, PACKAGE, CATALOGS): New variables.
3847         (build-, install-, build-po, update-po, install-po,
3848         .po.gmo, .po.pox, $(PACKAGE).pot, po/$(PACKAGE).pot): New rules.
3849
3850         * aclocal.m4: Prefix each entry in CATALOGS with "po/"
3851         * configure.in: Don't munge XGETTEXT.  Don't generate
3852         po/Makefile.in.
3853         * configure: Regenerate.
3854
3855         * exgettext: Delete.
3856         * config/m68k/m68k.h: Add doc strings for -msky and -mnosky.
3857         * objc/Make-lang.in: Replace $(INTL_TARGETS) with po-generated.
3858
3859 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3860
3861         * config/h8300/h8300.md (two anonymous patterns): New.
3862
3863 2001-10-31  Aldy Hernandez  <aldyh@redhat.com>
3864
3865         * tree.h (tree_index): Add support for V16QI and V8HI.
3866         (V8HI_type_node): New.
3867         (V16QI_type_node): New.
3868
3869         * tree.c (build_common_tree_nodes_2): Same.
3870
3871         * c-common.c (type_for_mode): Same.
3872
3873 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3874
3875         * config/i386/att.h: Fix comment formatting.
3876         * config/i386/beos-elf.h: Likewise.
3877         * config/i386/bsd.h: Likewise.
3878         * config/i386/bsd386.h: Likewise.
3879         * config/i386/crtdll.h: Likewise.
3880         * config/i386/cygwin.asm: Likewise.
3881         * config/i386/cygwin.h: Likewise.
3882         * config/i386/djgpp.h: Likewise.
3883         * config/i386/freebsd-aout.h: Likewise.
3884         * config/i386/freebsd.h: Likewise.
3885         * config/i386/gas.h: Likewise.
3886         * config/i386/i386-interix.h: Likewise.
3887         * config/i386/i386-protos.h: Likewise.
3888         * config/i386/i386.c: Likewise.
3889         * config/i386/i386.h: Likewise.
3890         * config/i386/i386.md: Likewise.
3891         * config/i386/i386elf.h: Likewise.
3892         * config/i386/interix.c: Likewise.
3893         * config/i386/isc.h: Likewise.
3894         * config/i386/isccoff.h: Likewise.
3895         * config/i386/iscdbx.h: Likewise.
3896         * config/i386/linux.h: Likewise.
3897         * config/i386/lynx.h: Likewise.
3898         * config/i386/mingw32.h: Likewise.
3899         * config/i386/netbsd-elf.h: Likewise.
3900         * config/i386/next.h: Likewise.
3901         * config/i386/osf1elf.h: Likewise.
3902         * config/i386/osfrose.h: Likewise.
3903         * config/i386/sco5.h: Likewise.
3904         * config/i386/seq-gas.h: Likewise.
3905         * config/i386/seq-sysv3.h: Likewise.
3906         * config/i386/sequent.h: Likewise.
3907         * config/i386/sol2.h: Likewise.
3908         * config/i386/sun386.h: Likewise.
3909         * config/i386/uwin.asm: Likewise.
3910         * config/i386/uwin.h: Likewise.
3911         * config/i386/vxi386.h: Likewise.
3912         * config/i386/win32.h: Likewise.
3913         * config/i386/winnt.c: Likewise.
3914         * config/i386/xm-cygwin.h: Likewise.
3915         * config/i386/xm-mingw32.h: Likewise.
3916
3917 2001-10-31  Kazu Hirata  <kazu@hxi.com>
3918
3919         * builtins.def: Fix comment typos.
3920         * config/alpha.c: Likewise.
3921         * config/arm/arm.c: Likewise.
3922         * config/avr/avr.h: Likewise.
3923         * config/d30v/d30v.c: Likewise.
3924         * config/d30v/d30v.h: Likewise.
3925         * config/d30v/d30v.md: Likewise.
3926         * config/dsp16xx/dsp16xx.c: Likewise.
3927         * config/fr30/fr30.c: Likewise.
3928         * config/fr30/fr30.md: Likewise.
3929         * config/i386/i386.c: Likewise.
3930         * config/i860/i860.c: Likewise.
3931         * config/i960/i960.c: Likewise.
3932         * config/ia64/ia64.c: Likewise.
3933         * config/mips/mips.c: Likewise.
3934         * config/pa/pa.c: Likewise.
3935         * config/rs6000/rs6000.c: Likewise.
3936         * config/s390/s390.c: Likewise.
3937         * config/sparc/sparc.c: Likewise.
3938
3939 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3940
3941         * config/mips/elf.h: Fix comment formatting.
3942         * config/mips/elf64.h: Likewise.
3943         * config/mips/iris5.h: Likewise.
3944         * config/mips/iris5gas.h: Likewise.
3945         * config/mips/iris6.h: Likewise.
3946         * config/mips/isa3264.h: Likewise.
3947         * config/mips/linux.h: Likewise.
3948         * config/mips/mips.c: Likewise.
3949         * config/mips/mips.h: Likewise.
3950         * config/mips/mips.md: Likewise.
3951         * config/mips/mips16.S: Likewise.
3952         * config/mips/netbsd.h: Likewise.
3953         * config/mips/osfrose.h: Likewise.
3954         * config/mips/r3900.h: Likewise.
3955         * config/mips/sni-svr4.h: Likewise.
3956         * config/mips/svr4-t.h: Likewise.
3957         * config/mips/ultrix.h: Likewise.
3958
3959 2001-10-30  Daniel Berlin  <dan@cgsoftware.com>
3960
3961         * bitmap.c (bitmap_element_free): Don't forget to update head->indx
3962         when we update head->current.
3963
3964 2001-10-30  Neil Booth  <neil@daikokuya.demon.co.uk>
3965
3966         * tree.c (id_string_size): Remove.
3967         (dump_tree_statistics): Update.
3968         * toplev.c (compile_file): If dumping stats, dump tree stats too.
3969
3970 Tue Oct 30 19:00:43 CET 2001  Jan Hubicka  <jh@suse.cz>
3971
3972         * sched-rgn.c (schedule_insns): Fix comment.
3973
3974 2001-10-30  Zack Weinberg  <zack@codesourcery.com>
3975
3976         * configure.in: Correct previous change: don't assume that
3977         gas's version number _isn't_ the last thing on the line, or
3978         isn't the only number on the line, either.
3979         * configure: Regenerate.
3980
3981 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3982
3983         * cfgcleanup.c: Fix a comment typo.
3984
3985 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3986
3987         * alias.c: Fix comment formatting.
3988         * recog.c: Likewise.
3989         * config/cris/cris.c: Likewise.
3990         * config/cris/cris.h: Likewise.
3991         * config/i960/i960.c: Likewise.
3992         * config/i960/i960.h: Likewise.
3993
3994 2001-10-30  Kazu Hirata  <kazu@hxi.com>
3995
3996         * config/arm/arm.c: Fix a comment typo.
3997         * config/arm/arm.h: Likewise.
3998         * config/ia64/ia64.c: Likewise.
3999
4000 2001-10-30  Jakub Jelinek  <jakub@redhat.com>
4001
4002         * emit-rtl.c (set_unique_reg_note): Don't create REG_EQUAL or
4003         REG_EQUIV notes for ASM_OPERANDS.  Return the new note (if any).
4004         * rtl.h (set_unique_reg_note): Change return value.
4005         * gcse.c (try_replace_reg): Use set_unique_reg_note.
4006         * cse.c (cse_insn): Likewise.
4007         * expr.c (emit_move_insn): Likewise.
4008         * explow.c (force_reg): Likewise.
4009         * local-alloc (update_equiv_regs): Likewise.
4010         * loop.c (move_moveables, load_mems): Likewise.
4011         * reload (find_reloads): Likewise.
4012
4013 2001-10-30  Paolo Bonzini  <bonzini@gnu.org>
4014
4015         Localization fixes.
4016         * c-decl.c (parmlist_tags_warning, start_struct,
4017         check_for_loop_decls): Separate messages for struct, union and
4018         enum cases to allow for languages in which they have different
4019         genders.
4020         * c-format.c (scanf_flag_specs): Separate short and long name of
4021         the assignment suppression feature.
4022         (check_format_types): Localize "pointer" and "different types"
4023         strings.
4024         * c-lex.c (lex_number): Localize "an unsigned long int" and
4025         related strings.
4026         (lex_string) [MULTIBYTE_CHARS]: Use initial lowercase letter on
4027         warning message.
4028         * c-typeck.c (build_unary_up): Separate messages for increment and
4029         decrement cases to allow for languages in which they use different
4030         articles.  Localize the strings "increment" and "decrement" in one
4031         case.
4032
4033 Tue Oct 30 11:08:11 CET 2001  Jan Hubicka  <jh@suse.cz>
4034
4035         * lcm.c (optimize_mode_switching):  Do not rebuild liveness information
4036         when no changes has been made.
4037
4038         * gcse.c (reg_set_bitmap): Turn into reg_set.
4039         (modify_mem_list_set, canon_modify_mem_list_set)
4040         (clear_modify_mem_tables, free_modify_mem_tables): New.
4041         (gcse_main); Use free_modify_mem_tables.
4042         (free_gcse_mem): Likewise; free the bitmaps.
4043         (alloc_gcse_main): Initialize the bitmaps.
4044         (canon_list_insert): Set canon_modify_mem_list_set.
4045         (record_last_mem_set_info): Likewise; set modify_mem_list_set.
4046         (compute_hash_table): Use clear_modify_mem_tables.
4047         (reset_opr_set_tables): Likewise.
4048         (oprs_not_set_p): reg_set_bitmap is regset.
4049         (mark_set, mark_clobber): Likewise.
4050
4051         * df.h (DF_EQUIV_NOTES): New constant.
4052         (df_insn_refs_record): Record uses inside or REG_EQUIV/EQUAL notes
4053         when asked for.
4054
4055         * sched-rgn.c (CHECK_DEAD_NOTES): New constant.
4056         (init_regions, schedule_insns): Conditionalize the checking
4057         code by CHECK_DEAD_NOTES; avoid multiple calls to update_life_info.
4058
4059 Tue Oct 30 11:02:31 CET 2001  Jan Hubicka  <jh@suse.cz>
4060
4061         * i386.md (movti_rex64 splitter): Fix condition.
4062
4063 2001-10-29  Zack Weinberg  <zack@codesourcery.com>
4064
4065         * configure.in: Do not assume that gas's version number is the
4066         last thing on the first line of as --version output.
4067         * configure: Regenerate.
4068
4069         * tradcpp.c: Include intl.h.  Rename WARNING, ERROR, FATAL to
4070         MT_WARNING, MT_ERROR, MT_FATAL.
4071         (main): Call gcc_init_libintl.
4072         (v_message): Call gettext on msgid and "warning: "
4073         * tradcif.y: Include intl.h.
4074         (yyerror): Make parameter definition consistent with
4075         prototype.  Call gettext on msgid argument.
4076
4077 2001-10-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4078
4079         * combine.c (num_sign_bit_copies): Avoid signed/unsigned
4080         warnings.
4081
4082         * sparc/sol2.h: Include <sys/mman.h> when L_trampoline is defined.
4083
4084 Mon Oct 29 19:22:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4085
4086         * reload1.c (eliminate_regs): Test for reg_renumber being allocated
4087         before referencing it.
4088
4089 2001-10-26  DJ Delorie  <dj@redhat.com>
4090
4091         * config/rs6000/sysv4.h (LINK_SPEC): Allow -msdata=none to
4092         override -G, and force -G0.
4093
4094 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
4095
4096         * ChangeLog.2, ChangeLog.3, ChangeLog.4, FSFChangeLog.10,
4097         FSFChangeLog.11, c-common.c, c-common.def, c-common.h, c-decl.c,
4098         c-dump.c, c-typeck.c, except.c, sdbout.c, simplify-rtx.c,
4099         timevar.h, tree.h, varasm.c: Fix spelling errors and typos.
4100
4101         * loop.h (struct induction): Rename ext_dependant to
4102         ext_dependent.
4103         * loop.c: Change all uses.
4104         (check_ext_dependant_givs): Rename to check_ext_dependent_givs.
4105         All callers changed.
4106         * timevar.c (DEFTIMEVAR): Fix spelling of identifier__ parameter.
4107
4108 2001-10-29  Joseph S. Myers  <jsm28@cam.ac.uk>
4109
4110         * c-parse.in (expr_no_commas, primary), c-typeck.c
4111         (parser_build_binary_op): Use IS_EXPR_CODE_CLASS.
4112
4113 2001-10-29  David Edelsohn  <edelsohn@gnu.org>
4114
4115         Undo assemble_name change in earlier patch.
4116
4117 Mon Oct 29 21:11:40 2001  Nicola Pero  <n.pero@mi.flashnet.it>
4118
4119         * objc/objc-act.c (finish_message_expr): For the GNU runtime: when
4120         determining the type of the receiver, do not check that TREE_CODE
4121         of receiver is CALL_EXPR before calling receiver_is_class_object().
4122         (receiver_is_class_object): For the GNU runtime: recognize
4123         the case that the receiver is self in a class method context.
4124         Check that TREE_CODE of receiver is CALL_EXPR when checking that
4125         the receiver is a call to objc_get_class.
4126
4127 2001-10-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
4128
4129         * pa.md (floatunssisf2): Set subreg 0 of operand 2 to zero.
4130
4131 Mon Oct 29 07:23:33 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4132
4133         * Makefile.in (OBJS): Put all files in alphabetical order.
4134
4135         * dwarf2out.c (add_const_value_attribute): Fix error in last
4136         change.
4137
4138 Mon Oct 29 12:43:06 CET 2001  Jan Hubicka  <jh@suse.cz>
4139
4140         * basic-block.h (purge_all_dead_edges): Add update_life_p argument.
4141         * cfgcleanup.c (merge_blocks): Update the life flag after merging;
4142         fix warning.
4143         * cfgrtl.c (purge_all_dead_edges): Allow updating of liveness.
4144         (life_analysis): call purge_all_dead_edges after deleting noops.
4145         (delete_noop_move): Do not purge CFG.
4146         * toplev.c (rest_of_compilation): Update purge_all_dead_edges call.
4147
4148 2001-10-28  David Edelsohn  <edelsohn@gnu.org>
4149
4150         * config/rs6000/aix31.h (ASM_OUTPUT_EXTERNAL): Use assemble_name.
4151         * config/rs6000/darwin.h (RS6000_OUTPUT_BASENAME): Delete.
4152         (ASM_GLOBALIZE_LABEL): Use assemble_name.
4153         (ASM_OUTPUT_COMMON): Likewise.
4154         * config/rs6000/rs6000.c (print_operand): Use assemble_name.
4155         (rs6000_output_function_epilogue): Likewise.
4156         (output_mi_thunk): Fix typo.
4157         (rs6000_output_symbol_ref): Use assemble_name.
4158         (output_toc): Likewise.
4159         * config/rs6000/sysv4.h (RS6000_OUTPUT_BASENAME): Delete.
4160         * config/rs6000/xcoff.h (RS6000_OUTPUT_BASENAME): Delete;
4161         assemble_name calls STRIP_NAME_ENCODING.
4162         (ASM_OUTPUT_LABEL): Use assemble_name.
4163         (ASM_GLOBALIZE_LABEL): Likewise.
4164         (ASM_DECLARE_FUNCTION_NAME): Likewise.
4165         (ASM_OUTPUT_ALIGNED_COMMON): Indent pseudo-op.  Use assemble_name.
4166         (ASM_OUTPUT_LOCAL): Likewise.
4167
4168 Sun Oct 28 15:45:16 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4169
4170         * builtins.c (get_memory_rtx): Handle POINTERS_EXTEND_UNSIGNED case.
4171         (expand_builtin_apply, expand_builtin_return): Likewise.
4172         (expand_builtin_va_arg, expand_builtin_va_copy): Likewise.
4173
4174 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
4175
4176         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
4177         ChangeLog.5, ChangeLog, FSFChangeLog.10, FSFChangeLog.11,
4178         c-common.c, c-common.h, c-parse.in, c-typeck.c, cfg.c, config.gcc,
4179         configure, configure.in, except.c, except.h, flow.c, function.c,
4180         gcc.c, gcse.c, genrecog.c, libgcc2.c, loop.c, loop.h, params.def,
4181         predict.def, predict.h, reg-stack.c, regmove.c, sched-deps.c,
4182         sched-int.h, sibcall.c, ssa.c, stringpool.c, toplev.c, tree.c,
4183         unroll.c: Fix spelling errors.
4184
4185         * doc/extend.texi, doc/invoke.texi: Fix spelling.
4186
4187         * doc/gcc.texi: Document use of "dependent" and American spelling.
4188
4189 Sun Oct 28 17:05:36 CET 2001  Jan Hubicka  <jh@suse.cz>
4190
4191         * expr.c (emit_group_load): Support CONCATs by storing them to memory
4192         and reloading.
4193
4194 Sun Oct 28 09:59:54 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4195
4196         * expr.c (store_constructor_field): Only call adjust_address on MEM.
4197
4198 Sun Oct 28 16:48:09 CET 2001  Jan Hubicka  <jh@suse.cz>
4199
4200         * genrecog.c (write_switch):  Output if before switch for
4201         DT_elt_zero_wide_safe.
4202
4203 2001-10-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4204
4205         * Makefile.in (toplev.o, halfpic.o): Depend on halfpic.h
4206         * i386/osfrose.h (SUBTARGET_SWITCHES): Add missing comma.
4207         (FUNCTION_PROFILER): Const-ify.
4208         * halfpic.c: Include "expr.h", "output.h" and "halfpic.h".
4209         (eliminate_constant_term, assemble_name, output_addr_const):
4210         Remove declarations.
4211         (ptr_half_pic_address_p, half_pic_hash): Prototype.
4212         (all_refs, half_pic_prefix, half_pic_hash, half_pic_declare,
4213         half_pic_external, half_pic_address_p, half_pic_ptr): Const-ify.
4214         * halfpic.h (ptr_half_pic_address_p, half_pic_finish): Prototype.
4215         (half_pic_declare, half_pic_external): Const-ify.
4216         * toplev.c: Include "halfpic.h".
4217
4218 2001-10-28  Joseph S. Myers  <jsm28@cam.ac.uk>
4219
4220         * config/alpha/alpha.md, config/arm/arm.c, config/arm/arm.h,
4221         config/d30v/d30v.h, config/fr30/fr30.c, config/i370/x-oe,
4222         config/i386/i386.c, config/i386/i386-interix.h,
4223         config/i386/i386.md, config/i386/i386.h, config/i386/sco5.h,
4224         config/i860/i860.h, config/i860/i860.md, config/m68k/aux-exit.c,
4225         config/m68k/m68k.c, config/mcore/mcore.c, config/mips/mips.md,
4226         config/ns32k/ns32k.h, config/pa/pa.c, config/rs6000/rs6000.c,
4227         config/sparc/sparc.c, config/m68hc11/m68hc11.c,
4228         config/cris/cris.c, config/cris/cris.h, config/s390/s390.c,
4229         config/s390/s390.h, config/stormy16/stormy16.h, doc/tm.texi: Fix
4230         spelling errors.
4231
4232         * ChangeLog.0, ChangeLog.1, ChangeLog.2, ChangeLog.3, ChangeLog.4,
4233         ChangeLog.5, ChangeLog, ChangeLog.lib, FSFChangeLog.10, ONEWS,
4234         c-common.c, caller-save.c, cfg.c, cfgcleanup.c, cfgrtl.c,
4235         collect2.c, df.h, diagnostic.h, final.c, gcse.c, gthr.h,
4236         haifa-sched.c, jump.c, local-alloc.c, profile.c, protoize.c,
4237         regmove.c, reload1.c, rtlanal.c, sched-vis.c, ssa.c, stmt.c,
4238         system.h, toplev.c: Fix spelling errors.
4239
4240 Sat Oct 27 17:32:04 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4241
4242         * gcse.c (insert_insn_end_bb): Don't assume PAT is a SET.
4243
4244         * dwarf2out.c (reg_number): Abort if pseudo.
4245         (reg_loc_descriptor): Return 0 if pseudo.
4246         (is_based_loc): Return 0 if pseudo.
4247         (mem_loc_descriptor): Return 0 for pseudo and handle 0 return from
4248         recursive calls.
4249         (concat_loc_descriptor): Return 0 if either part's descriptor is 0.
4250         (loc_descriptor): Return 0 if can't find location and handle 0
4251         return from recursive calls.
4252         (loc_descriptor_from_tree): Likewise.
4253         Fix handling of indirect.
4254         Also return 0 for PLACEHOLDER_EXPR.
4255         Clean up COMPONENT_REF cases.
4256         (add_AT_location_descriptor): Simplify, but handle 0 return from
4257         loc_descriptor.
4258         (add_const_value_attribute): Avoid shift count warning.
4259         (add_bound_info): Remove test for PLACEHOLDER_EXPR here.
4260         Set comp_unit_die as context if not in function.
4261
4262         * config/mips/mips-protos.h: Break up long lines.
4263         Remove needless #ifdef/#endif blocks.
4264         Don't declare functions declared in file made by genpreds or recog.h.
4265         * config/mips/mips.c (mips_output_function_prologue): TSIZE
4266         is now HOST_WIDE_INT; delete unneeded casts.
4267         * config/mips/mips.h: Don't use #elif.
4268
4269         * expr.c (stor_constructor_field): Always call adjust_address.
4270         Copy TARGET before changing its alias set.
4271         (store_field): Likewise, for TO_RTX.
4272         (get_inner_reference): Stop at PLACEHOLDER_EXPR if can't find
4273         replacement.
4274         (safe_from_p, case ADDR_EXPR): Properly check for conflict.
4275         (find_placeholder): Return 0 if can't find object.
4276         (expand_expr, case PLACEHOLDER_EXPR): Abort if find_placeholder
4277         returns 0.
4278
4279 Sat Oct 27 16:31:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
4280
4281         * ifcvt.c (if_convert): Call clear_aux_for_blocks.
4282
4283 Sat Oct 27 12:12:09 CEST 2001  Jan Hubicka  <jh@suse.cz>
4284
4285         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps,
4286         merge_blocks_move_successors_nojumps): Set BB_UPDATE_LIFE.
4287         (merge_blocks): Properly udpate life after making edge nonfallthru.
4288         * cfgrtl.c (merge_blocks_nomove): Update global_live_at_end.
4289
4290 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4291
4292         * config/h8300/h8300.c (get_shift_alg): Remove redundant code.
4293
4294 2001-10-26  Neil Booth  <neil@daikokuya.demon.co.uk>
4295
4296         * c-typeck.c (convert_arguments): When comparing for enumeral
4297         type equality, use TYPE_MAIN_VARIANT.
4298         * gcc.dg/Wconversion.c: New tests.
4299
4300 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4301
4302         * s390/s390.c: Fix comment typos.
4303         * s390/s390.h: Likewise.
4304         * s390/s390.md: Likewise.
4305
4306 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
4307
4308         * tree-inline.c (WALK_SUBTREE_TAIL): New macro.
4309         (walk_tree): Use it for tail calls where appropriate.
4310
4311 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
4312
4313         * cse.c (check_for_label_ref): Don't require REG_LABEL notes for
4314         non-local label_refs.
4315
4316 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4317
4318         * config/h8300/h8300.md (4 anonymous patterns): New.
4319
4320 2001-10-26  Kazu Hirata  <kazu@hxi.com>
4321
4322         * config/h8300/h8300.c (get_shift_alg): Clean up.  Return the
4323         algorithm through the shift_info structure.
4324         (emit_a_shift): Update the use of get_shift_alg.
4325
4326 2001-10-27  Daniel Berlin  <dan@cgsoftware.com>
4327
4328         * sched-rgn.c: Remove bitset typedef.
4329         Change bitset to sbitmap in prototypes / variable types.
4330         Remove bbset_size.
4331         Remove edgeset_bits.
4332         Remove edgeset_size.
4333         s/BITSET_ADD/SET_BIT/g
4334         s/BITSET_INVERT/sbitmap_ones/g
4335         s/BITSET_INTER/sbitmap_a_and_b/g
4336         s/BITSET_UNION/sbitmap_a_or_b/g
4337         s/BITSET_DIFFER/sbitmap_difference/g
4338         s/bitset_member/TEST_BIT/g
4339         (BITSET_*): Removed.
4340         (bitset_member): Removed.
4341         (extract_bitlst): Rewrite, now that we have sbitmaps, we can use
4342         EXECUTE_IF_SET_IN_SBITMAP.
4343         (split_edges): Rewrite, use sbitmap functions instead of bitset
4344         operations.
4345         (schedule_region): Allocate/free sbitmaps, rather than bitsets.
4346
4347 2001-10-26  Andreas Schwab  <schwab@suse.de>
4348
4349         * reload1.c (emit_input_reload_insns): Fix parens in last
4350         (undocumented) change that was supposed to change only whitespace.
4351
4352 Fri Oct 26 07:18:08 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4353
4354         * cfgcleanup.c (BB_SET_FLAG, BB_CLEAR_FLAG): Add cast to avoid warning.
4355
4356         * local-alloc.c (update_equiv_regs): Don't make REG_EQUAL note for
4357         ASM_OPERANDS.
4358
4359 2001-10-26  Andreas Jaeger  <aj@suse.de>
4360
4361         * flow.c (clear_log_links): Remove unused variable.
4362         * cfgcleanup.c (cleanup_cfg): Likewise.
4363
4364 2001-10-26  Alexandre Oliva  <aoliva@redhat.com>
4365
4366         * tree-inline.c (remap_decl): Don't copy size and size_unit here.
4367         (remap_save_expr): Map a remapped SAVE_EXPR to error_mark_node.
4368
4369 2001-10-26  Richard Henderson  <rth@redhat.com>
4370
4371         * config/alpha/alpha.h (enum reg_class): Add R24_REG, R25_REG;
4372         rename PV_REG to R27_REG.
4373         (REG_CLASS_CONTENTS, REGNO_REG_CLASS): Update.
4374         (REG_CLASS_FROM_LETTER): Update.
4375         (PREFERRED_RELOAD_CLASS): Don't widen a reg class.
4376         * config/alpha/alpha.md (divsi3): Don't hard-code r24, r25, r27.
4377         (udivsi3, modsi3, umodsi3): Likewise.
4378         (divdi3, udivdi3, moddi3, umoddi3): Likewise.
4379
4380 2001-10-26  Richard Henderson  <rth@redhat.com>
4381
4382         * cfg.c (clear_aux_for_blocks): Split out of ...
4383         (free_aux_for_blocks): here.
4384         (clear_aux_for_edges): Split from ...
4385         (free_aux_for_edges): here.
4386         * basic-block.h: Declare them.
4387         * lcm.c (compute_antinout_edge): Use them.
4388         (compute_laterin, compute_available, compute_nearerout): Likewise.
4389         (optimize_mode_switching): Likewise.
4390
4391 2001-10-26  Richard Henderson  <rth@redhat.com>
4392
4393         * Makefile.in (unstage*): Remove as, ld, collect-ld before
4394         moving everything back to the main build directory.
4395
4396 2001-10-26  Christopher Faylor  <cgf@redhat.com>
4397
4398         * config/i386/cygwin.h: Search target specific include directory, if
4399         appropriate.
4400
4401 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4402
4403         * dwarf2out.c (PTR_SIZE, default_eh_frame_section): Move outside
4404         of macro guards. Fix #endif comment.
4405
4406         * output.h (default_exception_section, default_eh_frame_section):
4407         Move prototypes outside of macro guard.
4408
4409         * crtstuff.c: Fix #endif comment.
4410
4411 Thu Oct 25 12:21:58 2001  Jeffrey A Law  (law@cygnus.com)
4412
4413         * doc/md.texi (movMM): Clarify semantics of storing into a
4414         non-paradoxical SUBREG.
4415
4416 2001-10-25  Zack Weinberg  <zack@codesourcery.com>
4417
4418         * langhooks.c (lang_hook_default_clear_binding_stack): New.
4419         (lang_hook_default_get_alias_set): Move next to other alias
4420         hooks.
4421         * langhooks.h: Prototype lang_hook_default_clear_binding_stack.
4422         (LANG_HOOKS_CLEAR_BINDING_STACK): New macro.
4423         (LANG_HOOKS_INITIALIZER): Add it.
4424         * toplev.h (struct lang_hooks): Add clear_binding_stack.
4425         * toplev.c (compile_file):  Call lang_hooks.clear_binding_stack
4426         instead of a loop calling poplevel.
4427
4428 2001-10-25  Nick Clifton  <nickc@cambridge.redhat.com>
4429
4430         * config/mips/isa3264.h (SUBTARGET_CPP_SIZE_SPEC): Replace
4431         occurrences of #elif with #if...#endif.
4432
4433 2001-10-25  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4434
4435         * cris.h (EH_RETURN_DATA_REGNO): Fix unsigned>=0 warning.
4436
4437 Thu Oct 25 08:46:06 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4438
4439         * alias.c (can_address_p): No longer static.
4440         * emit-rtl.c (get_mem_attrs): New parameter, MODE; all callers changed.
4441         Return 0 if all parameters are default values.
4442         (set_mem_attributes): Set MEM_KEEP_ALIAS_SET_P.
4443         (adjust_address_1): Try harder to compute a size.
4444         * expr.c (expand_assignment, store_constructor): If can't address,
4445         set MEM_KEEP_ALIAS_SET_P.
4446         (store_constructor_field): Don't change set if MEM_KEEP_ALIAS_SET_P.
4447         (store_field): Likewise.
4448         (store_constructor): Simplify call to store_constructor_field.
4449         * expr.h (can_address_p): New declaration.
4450         * gensupport.c (gen_rtx_CONST_INT): New function.
4451         * rtl.h (MEM_KEEP_ALIAS_SET_P): New macro.
4452         (MEM_SIZE): Get size from mode, if not set and not BLKmode.
4453         (MEM_COPY_ATTRIBUTES): Copy MEM_KEEP_ALIAS_SET_P.
4454
4455         * stmt.c (expand_end_case): Remove orig_minval and use tree_low_cst.
4456
4457 2001-10-24  Christopher Faylor  <cgf@redhat.com>
4458
4459         * config/i386/cygwin.h: Use proper path for mingw crt files when
4460         -mno-cygwin.
4461
4462 Wed Oct 24 18:43:42 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4463
4464         * dwarf2out.c (file_info_cmp): Always return consistent results.
4465
4466 2001-10-24  Roger Sayle <roger@eyesopen.com>
4467
4468         * stmt.c (expand_end_case): Index jumptables from zero for
4469         suitably small values of minval.
4470
4471 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
4472
4473         * stor-layout.c (place_union_field): If any field was aligned with
4474         attribute aligned, set record type's TYPE_USER_ALIGN.
4475         (place_field): Likewise.
4476         (finalize_record_size): Don't clear TYPE_USER_ALIGN.
4477         (layout_type) [ARRAY_TYPE]: Copy element's TYPE_USER_ALIGN.
4478
4479 2001-10-24  Zack Weinberg  <zack@codesourcery.com>
4480
4481         * c-common.h (struct c_common_identifier): Remove rid_code field.
4482         (C_RID_CODE): Use ->node.rid_code instead of ->rid_code.
4483
4484         * c-typeck.c (constructor_designated): New local flag.
4485         (struct constructor_stack): Add "designated" field to match.
4486         (start_init): Clear it.
4487         (really_start_incremental_init, push_init_level): Push and
4488         clear it.
4489         (pop_init_level): Pop it.
4490         (set_designator): Set it.
4491
4492         (pop_init_level): Suppress "missing initializer" warnings if
4493         constructor_designated is true.
4494         (process_init_element): Suppress warning about union
4495         initialization under traditional C, if constructor_designated
4496         is true.
4497
4498 Wed Oct 24 15:35:38 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4499
4500         * integrate.c (copy_rtx_and_substitute, case CALL): Fix error in last
4501         change.
4502
4503 Wed Oct 24 13:26:12 2001  Jeffrey A Law  (law@cygnus.com)
4504
4505         * h8300.h (RETURN_ADDR_RTX): Remove old, incorrect definition.
4506
4507 2001-10-24  Dan Nicolaescu  <dann@ics.uci.edu>
4508
4509         * ssa-ccp.c (ssa_ccp_substitute_constants): Don't do anything if
4510         the node was already a set to a constant.
4511
4512 Wed Oct 24 12:41:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4513
4514         * emit-rtl.c (set_mem_attributes): Fix typo in last change.
4515         * print-rtl.c (print_rtx, case MEM): Improve display of MEM_DECL.
4516
4517 2001-10-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4518
4519         * s390/linux.h (ASM_OUTPUT_BYTE): Fix format specifier warnings.
4520         (ASM_OUTPUT_ASCII): Const-ify.  Fix signed/unsigned warning.
4521         (ASM_OUTPUT_MI_THUNK): Fix format specifier warnings.
4522         * s390.c (s390_final_chunkify): Don't use string concatenation.
4523         (s390_function_prologue, s390_function_epilogue): Const-ify.
4524         * s390.h (FUNCTION_PROFILER): Remove unused variable.
4525
4526 2001-10-24  Jakub Jelinek  <jakub@redhat.com>
4527
4528         * c-decl.c (finish_decl): Don't add DECL_STMTs for nested function
4529         prototypes.
4530
4531 2001-10-23  Stan Shebs  <shebs@apple.com>
4532
4533         * config/rs6000/x-darwin: Use -no-cpp-precomp instead of
4534         -traditional-cpp in first-stage compilation.
4535
4536 Tue Oct 23 21:45:40 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4537
4538         * gensupport.c (target_flags): Add.
4539
4540 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.
4541
4542         * builtins.c (expand_builtin_setjmp): Only call convert_memory_address
4543         if needed.
4544         (expand_builtin_longjmp, expand_builtin_alloca): Likewise.
4545         * except.c (expand_builtin_frob_return_addr): Likewise.
4546         (expand_builtin_eh_return): Likewise.
4547         * stmt.c (expand_computed_goto): Likewise.
4548         * explow.c (memory_address): Likewise.
4549         (allocate_dynamic_stack_space): Clean up predicate testing.
4550         (probe_stack_range): Convert SIZE to Pmode.
4551         * calls.c (rtx_for_function_call): Only call convert_memory_address
4552         if needed.
4553         Pass function call operand as ptr_mode, not Pmode.
4554         * expr.c (expand_assignment): Clean up calls to convert_memory
4555         address by only doing so when needed and making offsets Pmode.
4556         (store_constructor, expand_expr, expand_expr_unaligned): Likewise.
4557         * function.c (assign_parms): Ensure address in MEM for RESULT_DECL
4558         is in Pmode, not ptr_mode.
4559
4560 2001-10-23  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4561
4562         * darwin-protos.h (constructor_section, destructor_section,
4563         mod_init_section, mod_term_section): Prototype.
4564         * darwin.c (machopic_finish, update_non_lazy_ptrs, update_stubs):
4565         Const-ify.
4566         * darwin.h (ASM_DECLARE_OBJECT_NAME, ASM_DECLARE_FUNCTION_NAME):
4567         Likewise.
4568         (SECTION_FUNCTION): Prototype `FUNCTION'.  Delete
4569         objc_section_init declaration.
4570         (EXTRA_SECTION_FUNCTIONS): Prototype objc_section_init.
4571         (objc_section_init, try_section_alias): Make static.
4572         (alias_section): Make static and hide unused function.
4573         (ASM_GENERATE_INTERNAL_LABEL): Fix format specifier warning.
4574
4575 Tue Oct 23 13:05:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4576
4577         * alias.c (can_address_p): Compnonents are not addressable if
4578         the containing type has alias set 0.
4579         (get_alias_set): Rework to use STRIP_NOPS.
4580         Only call front-end routine on object, type, or object with
4581         NOPs stripped, not inner values.
4582         Use language hook to call front-end routine.
4583         * builtins.c (get_memory_rtx): Always call set_mem_attributes.
4584         (expand_builtin_apply): Call set_mem_align on MEMs we make.
4585         Don't pass alignment to emit_block_move.
4586         (expand_builtin_memcpy, expand_builtin_va_copy): Likewise.
4587         (expand_builtin_memset): Likewise, but for clear_storage.
4588         * c-common.c (lang_get_alias_set): Renamed to c_common_alias_set
4589         and remove C++ specific parts.
4590         * c-common.h (c_common_get_alias_set): Add declaration.
4591         * c-lang.c (LANG_HOOKS_GET_ALIAS_SET): New macro.
4592         * calls.c (emit_call_1): Fix typo in sibcall_pop case.
4593         (save_fixed_argument_area): Call set_mem_align.
4594         Remove alignment in call to emit_block_move.
4595         (emit_library_call_value_1, store_one_arg): Likewise.
4596         (target_for_arg): Remove; disabled long ago.
4597         * emit-rtl.c (set_mem_attributes): Rework to only call get_mem_attrs
4598         once and similar cleanups.
4599         (offset_address): Use proper introductory comment.
4600         * expr.c (emit_block_move): Use alignment from that of MEM args, not
4601         from explicit operand; all callers changed.
4602         (clear_storage): Likewise.
4603         (expand_assignment): Don't call set_mem_alias_set on to_rtx.
4604         (store_field): Remove kludge on alias set used for to_rtx.
4605         (highest_pow2_factor, case *_DIV_EXPR): Never return 0.
4606         (expand_expr_unaligned): Call set_mem_attributes instead of
4607         set_mem_alias_set.
4608         * expr.h (emit_block_move, clear_storage): Remove ALIGN argument.
4609         * function.c (assign_stack_temp_for_type): Set MEM alignment.
4610         (expand_function_end): Track MEM attributes of trampolines.
4611         * ifcvt.c (noce_try_cmove_arith): Set alignment of new MEM.
4612         * integrate.c (copy_rtx_and_substitute, case CALL): Copy memory
4613         attributes from original.
4614         * langhooks.c (lang_hook_default_get_alias_set): New function.
4615         (hook_get_alias_set_0): New function.
4616         * langhooks.h (hook_get_alias_set_0): New declaration.
4617         (lang_hook_default_get_alias_set): Likewise.
4618         (LANG_HOOKS_GET_ALIAS_SET): New macro; add to initializer.
4619         * reload1.c (alter_reg): Use adjust_address_nv.
4620         * rtl.c (get_mode_alignment): Moved to here.
4621         * rtl.h (MEM_ALIGN): Take default from mode, if not BLKmode, and
4622         change default if unknown from 1 to BITS_PER_UNIT.
4623         * stor-layout.c (get_mode_alignment): Remove from here.
4624         * toplev.h (struct lang_hoks): Add get_alias_set field.
4625         * tree.h (lang_get_alias_set): Delete declaration.
4626         * config/arc/arc.c (arc_setup_incoming_varags): Set MEM alignment.
4627         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
4628         (ix86_va_arg): Likewise.
4629         * config/i960/i960.c (i960_setup_incoming_varargs): Likewise.
4630         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
4631         * config/sparc/sparc.c (sparc_va_arg): Likewise.
4632         * config/rs6000/rs6000.c (setup_incoming_varargs): Likewise.
4633         (expand_block_move_mem): Remove dead code.
4634
4635 2001-10-22  Neil Booth  <neil@daikokuya.demon.co.uk>
4636
4637         * c-common.c (warn_div_by_zero): New.
4638         * c-common.h (warn_div_by_zero): New.
4639         * c-decl.c (c_decode_option): Take it on the command line.
4640         * c-typeck.c (build_binary_op): Warn about division by zero.
4641         * doc/invoke.texi: Document the new command line option, fix
4642         documentation of -Wmultichar.
4643         * testsuite/gcc.dg/divbyzero.c: New tests.
4644         * testsuite/gcc.dg/noncompile/20010524-1.c: Update.
4645
4646 Tue Oct 23 15:30:23 CEST 2001  Jan Hubicka  <jh@suse.cz>
4647
4648         * i386.c (ix86_expand_int_movcc): Cleanup; use expand_simple_*op.
4649
4650         * toplev.c (rest_of_compilation): Use CLEANUP_UPDATE_LIFE
4651         to avoid update_life_info call.
4652         * basic-block.h (CLEANUP_UPATE_LIFE): Define.
4653         * cfgcleanup.c (bb_flags): New enum.
4654         (BB_FLAGS, BB_SET_FLAG, BB_CLEAR_FLAG, FORWARDER_BLOCK_P): New macros.
4655         (notice_new_block, update_forwarder_flag): New functions.
4656         (try_simplify_condjump): Use FORWARDER_BLOCK_P.
4657         (try_forward_edges): Likewise; update flags.
4658         (merge_blocks): Likewise.
4659         (outgoing_edges_match): Likewise.
4660         (try_crossjump_to_edge): Likewise.
4661         (try_optimize_cfg): Likewise; initialize and clear the flags;
4662         recompute life info if needed.
4663         (cleanup_cfg): No need to clear aux pointers.
4664
4665 2001-10-23  Alexandre Oliva  <aoliva@redhat.com>
4666
4667         * config/i386/i386.c (override_options): Default to minimum
4668         stack alignment when optimizing for code size.
4669         * doc/invoke.texi (-mpreferred-stack-boundary): Document the
4670         change.
4671
4672         * config/i386/i386.c (override_options): Set upper limit of
4673         -mpreferred-stack-boundary to 12.
4674
4675 2001-10-22  Zack Weinberg  <zack@codesourcery.com>
4676
4677         * recog.c (peephole2_optimize): Add default case to switch.
4678
4679 2001-10-23  Joseph S. Myers  <jsm28@cam.ac.uk>
4680
4681         * doc/gcc.texi (Sending Patches): Remove.
4682
4683 2001-10-22  Hans-Peter Nilsson  <hp@bitrange.com>
4684
4685         * unwind-dw2-fde.c (fde_unencoded_compare): Derefer pc_begin
4686         fields when comparing.
4687
4688 2001-10-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4689
4690         * arm.h (HOST_INT, HOST_UINT): Delete.  Remove all uses.
4691         * arm.c (HOST_INT, HOST_UINT): Likewise.
4692
4693 2001-10-22  Stan Shebs  <shebs@apple.com>
4694
4695         * config/darwin-protos.h (darwin_exception_section): Declare.
4696         (darwin_eh_frame_section): Declare.
4697
4698 Mon Oct 22 18:21:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
4699
4700         * i386.md (movti_rex64): Fix mode.
4701
4702 2001-10-22  Stan Shebs  <shebs@apple.com>
4703
4704         * target.h (struct gcc_target): Add asm_out.exception_section,
4705         asm_out.eh_frame_section.
4706         * target-def.h (TARGET_ASM_EXCEPTION_SECTION): New macro.
4707         (TARGET_ASM_EH_FRAME_SECTION): New.
4708         (TARGET_INITIALIZER): Update.
4709         * output.h (default_exception_section): Declare.
4710         (default_eh_frame_section): Declare.
4711         * dwarf2out.c: Include target.h.
4712         (output_call_frame_info): Call target hook for eh frames.
4713         (default_eh_frame_section): New function.
4714         * except.c: Include target.h.
4715         (output_function_exception_table): Call target hook for exception
4716         section.
4717         * varasm.c (default_exception_section): Rename from
4718         exception_section, remove EXCEPTION_SECTION macro.
4719
4720         * config/darwin.h (darwin_eh_frame_section): New function.
4721         (EXCEPTION_SECTION): Remove.
4722         (TARGET_ASM_EXCEPTION_SECTION): Define.
4723         * config/nextstep.h (EH_FRAME_SECTION_ASM_OP): Remove.
4724         (nextstep_exception_section): New function.
4725         (nextstep_eh_frame_section): New function.
4726         (TARGET_ASM_EXCEPTION_SECTION): Define.
4727         (TARGET_ASM_EH_FRAME_SECTION): Define.
4728
4729         * config/pa/som.h (EXCEPTION_SECTION): Remove.
4730         (TARGET_ASM_EXCEPTION_SECTION): Define.
4731         * config/rs6000/sysv4.h, config/rs6000/xcoff.h
4732         (EXCEPTION_SECTION): Remove.
4733         (TARGET_ASM_EXCEPTION_SECTION): Define.
4734         * config/stormy16/stormy16.h: Remove comments referencing
4735         EXCEPTION_SECTION and EH_FRAME_SECTION_ASM_OP.
4736
4737         * doc/tm.texi: Document TARGET_ASM_EXCEPTION_SECTION and
4738         TARGET_ASM_EH_FRAME_SECTION.
4739
4740 2001-10-22  Nick Clifton  <nickc@cambridge.redhat.com>
4741
4742         * config/mips/mips.md (mul_acc_si): Fix precedence of conditional
4743         terms.
4744
4745         * c-format.c: Fix spelling typo in comment.
4746
4747         * sched-int.h: Fix typo in GCC preamble.
4748
4749 2001-10-21  Craig Rodrigues  <rodrigc@gcc.gnu.org>
4750
4751         PR debug/4252
4752         * doc/invoke.texi: Remove references to -fdump-translation-unit.
4753
4754 2001-10-22  Richard Henderson  <rth@redhat.com>
4755
4756         * config/i386/i386.c (ix86_expand_clear): New.
4757         * config/i386/i386-protos.h: Declare it.
4758         * config/i386/i386.md (setcc peep2s): Use it.
4759         (movsi_xor): Unexport.
4760
4761 2001-10-22  Richard Henderson  <rth@redhat.com>
4762
4763         * flow.c (clear_log_links): Use free_INSN_LIST_list, not
4764         free_EXPR_LIST_list for LOG_LINKS.
4765
4766 2001-10-21  Robert Lipe  <robertlipe@usa.net>
4767
4768         * config/i386/i386.c (sco_asm_named_section): Delete.
4769         (sco_asm_out_constructor): Delete.
4770         * config/i386/sco5.h (ASM_QUAD): Undo damage from att.h.
4771         (ASM_OUTPUT_DOUBLE_INT): Likewise.
4772         (TARGET_ASM_CONSTRUCTOR): Delete.  Use default.
4773         (TARGET_ASM_NAMED_SECTION): Use default for ELF.
4774         (EXCEPTION_SECTION): Delete EH scn renaming hack.
4775
4776 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4777
4778         * c-format.c (maybe_read_dollar_number): Use safe-ctype macros
4779         and/or fold extra calls into fewer ones.
4780         * collect2.c (dump_file): Likewise.
4781         * cppexp.c (parse_number): Likewise.
4782         * cpplex.c (_cpp_lex_direct): Likewise.
4783         * final.c (output_asm_insn, asm_fprintf): Likewise.
4784         * fix-header.c (inf_scan_ident, main): Likewise.
4785         * fixinc/fixfixes.c (char_macro_use_fix, char_macro_def_fix):
4786         Likewise.
4787         * fold-const.c (real_hex_to_f): Likewise.
4788         * gen-protos.c (parse_fn_proto): Likewise.
4789         * genattrtab.c (check_attr_test, check_attr_value): Likewise.
4790         * genrecog.c (change_state, write_action): Likewise.
4791         * gensupport.c (shift_output_template): Likewise.
4792         * local-alloc.c (requires_inout): Likewise.
4793         * mips-tfile.c (IS_ASM_IDENT): Likewise.
4794         * protoize.c (is_id_char, main): Likewise.
4795         * real.c (asctoeg): Likewise.
4796         * recog.c (asm_operand_ok): Likewise.
4797         * reload.c (find_reloads): Likewise.
4798         * scan.c (scan_identget_token): Likewise.
4799         * sched-vis.c (print_value): Likewise.
4800         * stringpool.c (ggc_alloc_string): Likewise.
4801         * toplev.c (read_integral_parameter, decode_g_option): Likewise.
4802         * tradcif.y (parse_number, yylex, parse_escape): Likewise.
4803         * tradcpp.c (rescan): Likewise.
4804         * tree.c (clean_symbol_name): Likewise.
4805         * varasm.c (decode_reg_name): Likewise.
4806
4807         * alpha.h (ASM_OUTPUT_ASCII): Likewise.
4808         * darwin.c (name_needs_quotes, func_name_maybe_scoped): Likewise.
4809         * dsp16xx.h (ASM_OUTPUT_ASCII): Likewise.
4810         * m88k.c (output_ascii): Likewise.
4811         * m88k.h (OVERRIDE_OPTIONS): Likewise.
4812         * mcore.h (REG_CLASS_FROM_LETTER): Likewise.
4813         * ns32k/encore.h (ASM_OUTPUT_ASCII): Likewise.
4814         * sh.h (REG_CLASS_FROM_LETTER): Likewise.
4815
4816 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4817
4818         * langhooks.c (lang_hook_default_do_nothing,
4819         lang_hook_default_decode_option): New defaults.
4820         * langhooks.h: Make hooks unconditional and non-NULL.
4821         * toplev.c (compile_file, toplev_main): Update.
4822         * toplev.h: Update comments.
4823         * objc/objc-act.c (lang_hooks): Update to new paradigm.
4824
4825 2001-10-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4826
4827         * arm.h (FUNCTION_ARG_REGNO_P): Use IN_RANGE.
4828
4829         * system.h (IN_RANGE): New macro.
4830
4831 2001-10-21  Zack Weinberg  <zack@codesourcery.com>
4832
4833         * aclocal.m4 (AM_WITH_NLS): Also create and substitute
4834         INTLDEPS variable, which does not include $LIBICONV.
4835         * Makefile.in: Use INTLDEPS in LIBDEPS.
4836         * configure: Regenerate.
4837
4838 2001-10-21  Neil Booth  <neil@daikokuya.demon.co.uk>
4839
4840         * cpphash.h (struct cpp_buffer): Delete read_ahead and extra_char.
4841         * cpplex.c (lex_percent, lex_dot): Remove.
4842         (get_effective_char, skip_block_comment, skip_line_comment,
4843         parse_identifier_slow, parse_number, parse_string, save_comment,
4844         _cpp_lex_direct): Update to do lookback freely.
4845         (IF_NEXT_IS, BACKUP): New macros.
4846         * cpplib.c (cpp_push_buffer): Don't set read_ahead and extra_char.
4847         * cppmacro.c (paste_tokens): Update.
4848
4849 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
4850
4851         * doc/invoke.texi (i386 and x86-64 Options): Fix typo.
4852
4853 2001-10-20  Hans-Peter Nilsson  <hp@axis.com>
4854
4855         * reload1.c (reload): Check CONSTANT_P before calling
4856         LEGITIMATE_PIC_OPERAND_P.
4857         * config/cris/cris.c (cris_legitimate_pic_operand): Revert
4858         workaround of 2001-10-13.
4859
4860 Sat Oct 20 15:16:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
4861
4862         * i386.c (split_di): Handle splitting of DFmode.
4863
4864 Sat Oct 20 07:27:14 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
4865
4866         * emit-rtl.c (set_mem_attributes): Alignment is in bits.
4867         (adjust_address_1, offset_address): Likewise.
4868
4869         * final.c (output_asm_operand_names): New fcn, from output_asm_insn.
4870         (output_asm_insn): Call it for each line output.
4871         Don't record an operand more than once.
4872
4873         * toplev.h (struct lang_hooks): HONOR_READONLY now bool.
4874         * main.c: Include config.h and system.h, but not ansidecl.h.
4875         * Makefile.in (main.o): Update accordingly.
4876
4877 Sat Oct 20 12:05:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
4878
4879         * i386.h (SSE_REGPARM_MAX): Set to 8 for x86_64.
4880
4881 Sat Oct 20 12:01:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
4882
4883         * basic-block.h (find_sub_basic_blocks): Use sbitmap parameter.
4884         * cfgbuild.c (find_bb_boundaries, compute_outgoing_frequencies):
4885         Break out from ...
4886         (find_sub_basic_blocks): ... here;
4887         (find_many_sub_basic_blocks): New.
4888         * recog.c (split_all_insns): Update find_sub_basic_blocks call.
4889
4890         * i386.h (ASM_PREFERRED_EH_DATA_FORMAT): Define sdata4.
4891
4892         * i386.c (ix86_va_arg): Kill indirect_p handling; fix aliasing issues.:
4893
4894         * i386.c (split_di, split_ti): Revamp to use simplify_subreg.
4895
4896         * timevar.def (TV_LIFE, TV_LIFE_UPDATE, TV_MODE_SWITCH): new.
4897         * flow.c (update_life_info): Measure time.
4898         * c-decl.c: Include timevar.h
4899         (c_expand_body): Measure time.
4900         * toplev.c (rest_of_compilation): Measure time of mode switching
4901         separately.
4902         * Makefile.in (c-decl.o, cfgcleanup.o): Add dependency.
4903
4904         * toplev.c (flag_asynchronous_unwind_tables): New global variable.
4905         (lang_independent_options): Add asynchronous-unwind-tables
4906         (toplev_main): flag_asynchronous_unwind_tables implies
4907         flag_unwind_tables.
4908         * flags.h (flag_asynchronous_unwind_tables): Declare.
4909         * dwarf2out.c (dwarf2out_stack_adjust): Take into account
4910         flag_asynchronous_unwind_tables.
4911         (output_call_frame_info): Likewise.
4912         * invoke.texi (-fasynchronous-unwind-tables): Document.
4913         * i386.c (optimization_options): Enable
4914         flag_asynchronous_unwind_tables.
4915
4916         * i386.c (ix86_expand_setcc):  Always expect target to be QImode.
4917         * i386.md (s* expanders): Destination is QImode.
4918
4919         * toplev.c (rest_of_compilation): Do not call clear_log_links.
4920         * rtl.h (clear_log_links): Kill.
4921         * flow.c (clear_log_links): Make static; accept blocks parameter;
4922         do no clear life info.
4923         (update_life_info): Call clear_log_links.
4924
4925         * cfganal.c (forwarder_block_p): Avoid active_insn_p calls.
4926
4927 2001-10-20  Neil Booth  <neil@daikokuya.demon.co.uk>
4928
4929         * cpplex.c (handle_newline, skip_escaped_newlines,
4930         get_effective_char, skip_block_comment, skip_line_comment,
4931         parse_identifier_slow, parse_number, parse_string,
4932         _cpp_lex_direct): Update to do more stepping back.
4933         (trigraph_ok): Similarly.  Rename trigraph_p.
4934         (SAVE_STATE, RESTORE_STATE): Remove.
4935         (BUFF_SIZE_UPPER_BOUND): Tweak.  Add sanity check.
4936
4937         * cpplib.c (destringize): Rename destringize_and_run, and
4938         call run_directive directly.
4939         (_cpp_do__Pragma): Simplify.
4940
4941 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
4942
4943         * pe.c (arm_pe_unique_section): Const-ify.
4944         * pe.h (TARGET_ASM_NAMED_SECTION): Undef before defining.
4945         (switch_to_section): Add static prototype.
4946
4947         * output.h (drectve_section): Prototype.
4948
4949 2001-10-19  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
4950
4951         * config.gcc (i[34567]86-*-gnu*, arc-*-elf*, d30v-*,
4952         fr30-*-elf, hppa*64*-*-linux*, parisc*64*-*-linux*, hppa*-*-linux*,
4953         parisc*-*-linux*, i370-*-linux*, i[34567]86-*-chorusos*,
4954         i[34567]86-*-elf*, i[34567]86-ncr-sysv4*, i[34567]86-*-netware,
4955         i[34567]86-sequent-ptx4*, i[34567]86-sequent-sysv4*,
4956         i[34567]86-*-beoself*, i[34567]86-*-beos*, i[34567]86-*-freebsd*,
4957         i[34567]86-*-netbsdelf*, i[34567]86-*-linux*libc1,
4958         i[34567]86-*-linux*, i[34567]86-moss-msdos*, i[34567]86-*-moss*,
4959         i[34567]86-go32-rtems*, i[34567]86-*-rtems*, i[34567]86-*-rtemself*,
4960         i[34567]86-*-solaris2*, i[34567]86-*-sysv5*, i[34567]86-*-sysv4*,
4961         i[34567]86-*-udk*, i[34567]86-*-osf1*, i[34567]86-dg-dgux*,
4962         i860-alliant-*, i860-*-sysv4*, ia64*-*-aix*, ia64*-*-linux*,
4963         ia64*-*-hpux*, m32r-*-elf*, m88k-dg-dgux*, m88k-*-sysv4*, mcore-*-elf,
4964         mips*-*-linux*, mn10200-*-*, mn10300-*-*, pj*-linux*, pjl-*,
4965         powerpc64-*-linux*, powerpc-*-sysv*, powerpc-*-netbsd*,
4966         powerpc-*-chorusos*, powerpc-*-eabiaix*, powerpc-*-eabisim*,
4967         powerpc-*-elf*, powerpc-*-eabi*, powerpc-*-rtems*,
4968         powerpc-*-linux*libc1, powerpc-*-linux*, powerpc-wrs-vxworks*,
4969         powerpcle-wrs-vxworks*, powerpcle-*-sysv*, powerpcle-*-elf*,
4970         powerpcle-*-eabisim*, powerpcle-*-eabi*, powerpcle-*-solaris2*,
4971         rs6000-*-mach*, s390-*-linux*, s390x-*-linux*, sh-*-elf*,
4972         sh-*-rtemself*, sh-*-rtems*, sh-*-linux*, stormy16-*-elf,
4973         v850-*-rtems*, v850-*-*, x86_64-*-linux*), cris-*-aout, cris-*-elf,
4974         cris-*-none, cris-*-linux*: Update ${tmfile} list.
4975         (c4x-*-rtems*, c4x-*, i[34567]86-go32-rtems*, i[34567]86-*-rtemscoff*,
4976         i[34567]86-*-rtems*, i[34567]86-*-rtemself*, i[34567]86-*-osf1*,
4977         mn10200-*-*, mn10300-*-*, powerpc-*-beos*, powerpc-*-darwin*,
4978         powerpc-wrs-vxworks*, powerpcle-wrs-vxworks*, v850-*-rtems*,
4979         v850-*-*): Delete superflous ${cpu_type} setting.
4980         * config/linux.h: Delete svr4.h include.
4981         (SET_ASM_OP): Delete.
4982         * config/netware.h (INT_ASM_OP): Undef before define.
4983         * config/ptx4.h: Delete elfos.h include.
4984         (PREFERRED_DEBUGGING_TYPE): Undef instead of wrapping.
4985         * config/svr4.h: Delete elfos.h include. Update commentary.
4986         * config/arc/arc.h, config/d30v/d30v.h, config/fr30/fr30.h,
4987         config/m32r/m32r.h, config/m88k/sysv4.h, config/mn10200/mn10200.h,
4988         config/mn10200/mn10300.h, config/stormy16/stormy16.h,
4989         config/v850/v850.h: Delete svr4.h include.
4990         * config/i370/linux.h, config/i386/osf1elf.h, config/m68k/linux.h,
4991         config/m68k/m68kv4.h, config/m88k/sysv4.h,
4992         config/sparc/sysv4.h: Update includes.
4993         * config/i386/beos-elf.h, config/i386/netware.h, config/i386/ptx4-i.h,
4994         config/i386/rtemself.h, config/i386/sol2.h, config/i386/sysv4.h,
4995         config/i386/sysv5.h, config/i386/udk.h, config/ia64/linux.h,
4996         config/m88k/dguxbcs.h: Delete includes.
4997         * config/i386/dgux.h, config/i386/osf1elfgdb.h: Delete include.
4998         (PREFERRED_DEBUGGING_TYPE): Undef before defining it.
4999         * config/i860/fx2800.h (ASM_OUTPUT_SOURCE_LINE): Undef before defining
5000         it.
5001         * config/m88k/dgux.h: Delete include.
5002         (SDB_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE):  Undef before
5003         defining it.
5004         * config/pj/pj.h (ASM_GENERATE_INTERNAL_LABEL,
5005         ASM_OUTPUT_INTERNAL_LABEL, ASM_OUTPUT_SKIP): Undef before defining it.
5006         * config/sh/elf.h: Update include.
5007         (SDB_DEBUGGING_INFO, DWARF2_DEBUGGING_INFO, PREFERRED_DEBUGGING_TYPE,
5008         DWARF2_ASM_LINE_DEBUG_INFO): Move behind includes.
5009
5010 2001-10-19  Catherine Moore  <clm@redhat.com>
5011
5012         * config/stormy16/stormy-abi:  Updates to varargs descriptions.
5013         * config/stormy16/stormy16.c (stormy16_build_va_list):  Reverse
5014         base and count fields.
5015         (stormy16_expand_builtin_va_start):  last_reg_count changed to
5016         size_of_reg_args.  Use count + size in first comparison.
5017
5018 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5019
5020         * langhooks.h (LANG_HOOKS_HONOR_READONLY): New macro.
5021         * toplev.h (struct lang_hooks): New field HONOR_READONLY.
5022         * emit-rtl.c (set_mem_attributes): Set RTX_UNCHANGING_P from
5023         TREE_READONLY and TYPE_READONLY if lang_hooks.honor_readonly.
5024         Set alignment from type if INDIRECT_REF.
5025         (adjust_address_1, offset_address): Simplify alignment compuitation.
5026         * expr.c (expand_expr, case INDIRECT_REF): Don't set RTX_UNCHANGING_P
5027         here; done by set_mem_attributes.
5028
5029 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5030
5031         * Makefile.in (rtlanal.o): Depend on $(TM_P_H).
5032         * arm-protos.h (rdata_section, zero_init_section, common_section):
5033         Prototype.
5034         * arm.h (ASM_OUTPUT_DEF_FROM_DECLS): Const-ify.
5035         * avr.h (ASM_OUTPUT_SKIP): Rename macro parameter to avoid
5036         traditional mode stringification.
5037         * function.c (thread_prologue_and_epilogue_insns): Wrap variable
5038         in macros controling its use.
5039         * rtlanal.c: Include tm_p.h.
5040         * varasm.c (asm_output_aligned_bss): Mark parameter with
5041         ATTRIBUTE_UNUSED.
5042         (assemble_constant_align, assemble_start_function, assemble_align,
5043         assemble_variable, assemble_trampoline_template,
5044         output_constant_def_contents): Wrap potentially empty if-stmt body
5045         in brackets.
5046
5047 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5048
5049         * a29k-protos.h (literal_section): Prototype.
5050         * a29k.h (ASM_FILE_START): Don't discard pointer qualifier.
5051         * a29k.md: Ensure function pointers are prototyped.
5052         * genattrtab.c (write_eligible_delay): Mark parameter with
5053         ATTRIBUTE_UNUSED.
5054
5055 2001-10-19  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5056
5057         * calls.c (emit_call_1): Mark parameter with ATTRIBUTE_UNUSED.
5058         * 1750a.c (print_operand): Fix format specifier warning.
5059         * 1750a.h (ASM_FILE_START): Don't discard pointer qualifier.
5060         * 1750a.md: Likewise.
5061         * gcc.c (init_gcc_specs): Wrap with ENABLE_SHARED_LIBGCC.
5062         * genemit.c (output_add_clobbers): Mark parameter with
5063         ATTRIBUTE_UNUSED.
5064         * genrecog.c (write_subroutine): Likewise.
5065         * integrate.c (expand_inline_function): Delete unused variable.
5066         * varasm.c (remove_from_pending_weak_list): Wrap with
5067         ASM_WEAKEN_LABEL.
5068
5069 2001-10-19  Jakub Jelinek  <jakub@redhat.com>
5070
5071         * simplify-rtx.c (simplify_plus_minus): Negate constant iff its neg
5072         field is different to previous argument's neg field.
5073
5074         * config/alpha/alpha.c (summarize_insn): Don't abort on ASM_INPUT.
5075
5076 Fri Oct 19 15:24:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5077
5078         * final.c (get_decl_from_op): New function.
5079         (output_asm_insn): Call it; write "*" when item with decl is address.
5080
5081 2001-10-19  Janis Johnson  <janis187@us.ibm.com>
5082
5083         * doc/install.texi (Specific, sparc-sun-solaris2*) Copy documentation
5084         about 64-bit support from the 3.0_branch version.
5085
5086 2001-10-19  Zack Weinberg  <zack@codesourcery.com>
5087
5088         * aclocal.m4 (AM_WITH_NLS): AC_DEFINE HAVE_LIBINTL_H and
5089         USE_INCLUDED_LIBINTL when appropriate.
5090         * configure, config.in: Regenerate.
5091         * Makefile.in (datadir): Set to @datadir@.
5092         (intl.o): Also depend on $(CONFIG_H) and system.h.
5093
5094         * intl.c: Factor out common gettext initialization sequence.
5095         (gcc_init_libintl):  New function.
5096         * intl.h: Include intl/libgnuintl.h if USE_INCLUDED_LIBINTL;
5097         otherwise include libintl.h if HAVE_LIBINTL_H; otherwise turn
5098         off NLS.  Add multiple include guard.  No need to #ifdef-guard
5099         an #undef.  Prototype gcc_init_libintl here.
5100
5101         * collect2.c (main), cppmain.c (general_init), gcc.c (main),
5102         gcov.c (main), protoize.c (main), toplev.c (toplev_main):
5103         Use gcc_init_libintl.
5104
5105 2001-10-19  Catherine Moore  <clm@redhat.com>
5106
5107         * config/stormy16/stormy16.h (ASM_COMMENT_START): Define.
5108
5109         * config/stormy16/stormy16.c (stormy16_split_move):  Make
5110         sure that REG_INC notes are present for auto_inc operands.
5111
5112 2001-10-19  Andreas Jaeger  <aj@suse.de>
5113
5114         * configure: Regenerated.
5115         * configure.in: Add x86_64 to switch statements.
5116
5117 2001-10-18  Richard Henderson  <rth@redhat.com>
5118
5119         * config/alpha/alpha.md (sibcall_osf_1): Load destination
5120         address into $27 explicitly.
5121         (sibcall_value_osf_1): Likewise.
5122
5123 Thu Oct 18 16:07:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5124
5125         * emit-rtl.c (gen_reg_rtx): Also reallocate reg_decl array.
5126         (offset_address): New function.
5127         (free_emit_status): Free regno_decl.
5128         (init_emit): Pass proper number of elements to xcalloc.
5129         Allocate regno_decl.
5130         (mark_emit_status): Mark regno_decl values.
5131         * expr.c (highest_pow2_factor): New function.
5132         (expand_assigment): Use it and offset_address.
5133         Properly handle ptr_mode vs. Pmode in offset calculation.
5134         (store_constructor, expand_expr_unaligned): Likewise.
5135         (expand_expr, case COMPONENT_EXPR): Likewise.
5136         * expr.h (offset_address): New decl.
5137         * function.h (struct emit_status): Add regno_decl.
5138         (REGNO_DECL): New macro.
5139         * final.c (output_asm_name): Move in file and don't conditionalize
5140         on flag_print_asm_name.
5141         (output_asm_insn): Only call output_asm_name if flag_print_asm_name.
5142         Output names of operands, if known.
5143         * function.c (assign_parms): Set REGNO_DECL.
5144         * integrate.c (integrate_decl_tree): Likewise.
5145         * stmt.c (expand_decl): Likewise.
5146         * regclass.c (reg_scan_mark_refs): Propagate REGNO_DECL for copies.
5147
5148 2001-10-18  Alexandre Oliva  <aoliva@redhat.com>
5149
5150         * attribs.c (handle_noinline_attribute): New function.
5151         (handle_used_attribute): Likewise.
5152         (c_common_attribute_table): Added noinline and used.
5153         * doc/extend.texi (Function Attributes): Document them.
5154         * c-decl.c (duplicate_decls): Propagate DECL_UNINLINABLE.
5155         Warn when merging inline with attribute noinline.
5156         (start_decl, start_function): Warn if inline and attribute
5157         noinline appear in the same declaration.
5158
5159 2001-10-17  Neil Booth  <neil@daikokuya.demon.co.uk>
5160
5161         * config.gcc: Update c4x and i370 for C front end-specific
5162         dependencies.
5163         * config/c4x/c4x-c.c: New.
5164         * config/c4x/c4x-protos.h (c4x_handle_pragma): Remove.
5165         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
5166         New declarations.
5167         * config/c4x/c4x.c: Don't include c-lex.h or c-pragma.h.
5168         (code_tree, data_tree, pure_tree, noreturn_tree, interrupt_tree):
5169         Make extern.
5170         (c4x_init_pragma): Remove.
5171         (c4x_parse_pragma, c4x_pr_CODE_SECTION, c4x_pr_DATA_SECTION,
5172         c4x_pr_FUNC_IS_PURE, c4x_pr_FUNC_NEVER_RETURNS, c4x_pr_INTERRUPT,
5173         c4x_pr_ignored): Move to c4x-c.c.
5174         * config/c4x/c4x.h (REGISTER_TARGET_PRAGMAS): Update.
5175         * config/c4x/t-c4x: Update.
5176         * config/i370/i370-c.c: New.
5177         * config/i370/i370.c: Don't include c-lex.h or c-pragma.h.
5178         (i370_pr_map): Move to i370-c.c.
5179         * config/i370/t-i370: New.
5180
5181         * doc/tm.texi: Update.
5182
5183 2001-10-17  Stan Shebs  <shebs@apple.com>
5184
5185         * config/rs6000/rs6000.c: Make assorted mechanical formatting and
5186         typo fixes throughout.
5187         (machopic_output_stub): Remove some dead code.
5188
5189 2001-10-17  Richard Earnshaw <rearnsha@arm.com>
5190
5191         * cpplex.c (_cpp_get_buff): Fix off-by-one error that caused memory
5192         leak.
5193
5194 Wed Oct 17 05:26:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
5195
5196         * Makefile.in (print-rtl.o): Depend on TREE_H.
5197         * alias.c (get_alias_set): Make two passes over objects to first
5198         see if inner object is access via restricted pointer.
5199         Defer allocating alias set for restricted pointer until here.
5200         Call find_placeholder with second arg nonzero.
5201         Minor cleanups.
5202         * c-common.c (c_apply_type_quals_to_decl): Defer getting alias
5203         set for restricted pointer types.
5204         * emit-rtl.c (set_mem_attributes): Set more attributes.
5205         (set_mem_align, change_address, adjust_address_1): New functions.
5206         (change_address_1): Now static.
5207         (adjust_address, adjust_address_nv): Deleted.
5208         (replace_equiv_address): Call change_address_1.
5209         * expr.c (get_inner_reference): Handle PLACEHOLDER_EXPR.
5210         (find_placeholder): Get starting point from PLIST arg.
5211         (expand_expr, case PLACEHOLDER_EXPR): Initialize find_placeholder arg.
5212         * expr.h (set_mem_align, change_address, adjust_address_1): New decls.
5213         (adjust_address, adjust_address_nv): New macros.
5214         * print-rtl.c (tree.h): New include.
5215         (print_rtx, case MEM): Print all memory attributes.
5216
5217 2001-10-17  Richard Henderson  <rth@redhat.com>
5218
5219         * config/alpha/alpha.c (direct_call_operand): Don't fall off end.
5220
5221 2001-10-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
5222
5223         * c-tree.texi: Eliminate duplicated word.
5224         * cpp.texi: Likewise.
5225         * install.texi: Likewise.
5226         * invoke.texi: Likewise.
5227         * tm.texi: Likewise.
5228
5229 2001-10-17  Michael Collison  <collison@isisinc.net>
5230
5231         * dsp16xx.c: Fix comment formatting to match GNU standards.
5232         (dsp16xx_output_function_prologue): Change type of 'size'
5233         parameter from 'int' to HOST_WIDE_INT.
5234         (dsp16xx_output_function_epilogue): Change type of 'size'
5235         parameter from 'int' to HOST_WIDE_INT.
5236
5237 2001-10-16  Richard Henderson  <rth@redhat.com>
5238
5239         * configure.in (HAVE_AS_GOTOFF_IN_DATA): New x86 check.
5240         * configure, config.in: Rebuild.
5241
5242         * config/i386/i386.c (ix86_output_addr_vec_elt): New.
5243         (ix86_output_addr_diff_elt): New.
5244         * config/i386/i386.h (ASM_OUTPUT_ADDR_VEC_ELT): Use them.
5245         (ASM_OUTPUT_ADDR_DIFF_ELT): Likewise.
5246         (JUMP_TABLES_IN_TEXT_SECTION): New.
5247         * config/i386/i386.md (tablejump): Handle HAVE_AS_GOTOFF_IN_DATA.
5248         * config/i386/i386-protos.h: Update.
5249
5250         * config/i386/386bsd.h, config/i386/beos-elf.h,
5251         config/i386/freebsd-aout.h, config/i386/freebsd.h,
5252         config/i386/i386-interix.h, config/i386/i386elf.h,
5253         config/i386/linux.h, config/i386/netbsd-elf.h,
5254         config/i386/netbsd.h, config/i386/openbsd.h,
5255         config/i386/ptx4-i.h, config/i386/rtemself.h,
5256         config/i386/sco5.h, config/i386/sysv4.h, config/i386/x86-64.h
5257         (ASM_OUTPUT_ADDR_DIFF_ELT, JUMP_TABLES_IN_TEXT_SECTION): Remove.
5258
5259 2001-10-16  Florian Weimer  <fw@deneb.enyo.de>
5260
5261         * stmt.c (expand_asm_operands): Update commentary.
5262
5263 2001-10-16  Stan Shebs  <shebs@apple.com>
5264
5265         * config/darwin.h (GCC_NAME): Remove, no longer used.
5266         (NO_MATH_LIBRARY): Ditto.
5267         (MATH_LIBRARY): Define to emptiness.
5268         (DWARF2_DEBUGGING_INFO): Define.
5269         (PREFERRED_DEBUGGING_TYPE): Define.
5270         (EXTRA_SECTION_FUNCTIONS): Add darwin_exception_section.
5271         (EXCEPTION_SECTION): Define.
5272         (ASM_PREFERRED_EH_DATA_FORMAT): Define.
5273         * config/darwin.c (darwin_encode_section_info): Handle case of
5274         DECL_INITIAL being error_mark_node.
5275
5276 2001-10-16  Richard Henderson  <rth@redhat.com>
5277
5278         * alpha.c (current_file_function_operand): Don't fail for profiling.
5279         (direct_call_operand): New.
5280         * alpha-protos.h: Declare it.
5281         * alpha.h (EXTRA_CONSTRAINT): Use it.
5282         (PREDICATE_CODES): Add it.
5283         (ASM_OUTPUT_MI_THUNK): Remove.
5284         * alpha32.h (ASM_OUTPUT_MI_THUNK): Remove.
5285         * alpha.md (sibcall_osf_1, sibcall_value_osf_1): Add 's' alternative.
5286
5287 2001-10-16  Krister Walfridsson  <cato@df.lth.se>
5288
5289         * config/i386/netbsd-elf.h (ASM_OUTPUT_ADDR_DIFF_ELT): Define.
5290         (JUMP_TABLES_IN_TEXT_SECTION): Define.
5291
5292 Wed Oct 17 00:21:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
5293
5294         * cfg.c (free_edge): Break out from ....
5295         (remove_edge): ... here.
5296         (clear_edges): Use free_edge.
5297
5298         * att.h (ASM_QUAD): Add comment.
5299         * bsd.h, sco5.h, sun386.h (ASM_QUAD): Define.
5300
5301 Wed Oct 17 00:01:02 CEST 2001  Jan Hubicka  <jh@suse.cz>
5302
5303         * i386.c (split_ti): New function.
5304         (ix86_split_to_parts): Support TImodes.
5305         * i386.h (VALID_INT_MODE_P): Add TImode.
5306         * i386.md (movdi splitter): Fix.
5307         (movti): Support 64bit integer registers.
5308         (movti_rex64): New function and splitter.
5309
5310         * i386.c (*_cost): Add movsx/movzx cost.
5311         * i386.h (struct processor_costs): Add movsx/movzx fields.
5312         (RTX_COSTS): Handle zero/sign extend + avoid believing that
5313         64bit operations require split on 64bit machine.
5314         (CONST_COST): Make large 64bit constants expensive on 64bit compilation.
5315
5316         * i386.c (ix86_setup_incoming_varargs): Fix mode of PLUS.
5317         (ix86_expand_move): Avoid pushes of memory if size does not match;
5318         move long constants to register.
5319         (x86_initialize_trampoline): Fix mode.
5320         * i386.h (ASM_OUTPUT_ADDR_VEC_ELT, ASM_OUTPUT_ADDR_DIFF_ELT):
5321         Use ASM_QUAD on 64bit.
5322         * i386.md (test pattern): Disallow impossible constants.
5323         (tablejump PIC expander): Fix emitting of sum.
5324         (movdicc_rex64): Rename to movdicc.
5325         * linux64.h (LINK_SPEC): Add missing '%'.
5326
5327 2001-10-16  Alexandre Oliva  <aoliva@redhat.com>
5328
5329         * tree-inline.c (inlinable_function_p): Leave it up to the
5330         front-end to turn -finline-functions into DECL_INLINE set for all
5331         functions.
5332
5333 2001-10-16  Stan Shebs  <shebs@apple.com>
5334
5335         * config/rs6000/darwin.h (ASM_COMMENT_START): Define.
5336
5337 2001-10-16  Alan Modra  <amodra@bigpond.net.au>
5338
5339         * recog.c: Formatting and comment typo fixes.
5340
5341         * configure.in (gcc_cv_as_bfd_srcdir): New.  Use it to find gas
5342         version in single tree build.
5343         * configure: Regenerate.
5344
5345 2001-10-15  David Edelsohn  <edelsohn@gnu.org>
5346
5347         * config/rs6000/rs6000.md (cr_logical): Swap order of CODE and
5348         MODE arguments to gen_rtx and compare operand with const0_rtx.
5349
5350 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5351
5352         * system.h: Poison old unused target macros.
5353         * config/dsp16xx.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
5354         * config/stormy16/stormy16.c: Update references to obsolete macros.
5355         * config/stormy16/stormy16.h: Similarly.
5356         * config/stormy16/stormy16.md: Similarly.
5357         * config/cris/cris.h: Similarly.
5358
5359 2001-10-15  Neil Booth  <neil@daikokuya.demon.co.uk>
5360
5361         * cpplib.c (struct pragma_entry): Store the name as a hashnode.
5362         (lookup_pragma_entry, insert_pragma_entry, do_pragma,
5363         cpp_register_pragma): Update accordingly.
5364
5365 2001-10-14  Neil Booth  <neil@daikokuya.demon.co.uk>
5366
5367         * c-pragma.h (cpp_register_pragma_space): Remove.
5368         * cpplib.h (cpp_register_pragma_space): Remove.
5369         * cpplib.c (lookup_pragma_entry, insert_pragma_entry): New.
5370         (cpp_register_pragma_space): Remove.
5371         (cpp_register_pragma): Simplify using lookup_pragma_entry,
5372         add sanity checks.
5373         (do_pragma): Similarly.
5374         (_cpp_init_internal_pragmas): Don't register namespaces.
5375
5376         * config/v850/v850.h (REGISTER_TARGET_PRAGMAS):
5377         Don't register namespaces.
5378         * cp/lex.c (init_cp_pragma): Similarly.
5379         * doc/tm.texi: Update.
5380
5381 2001-10-10  Craig Rodrigues  <rodrigc@gcc.gnu.org>
5382
5383         PR c/4157
5384         * config/i386/cygwin.h: Add missing space to MINGW_INCLUDES
5385
5386 2001-10-13  Michael Collison  <collison@dhcp-12-114.townisp.com>
5387
5388         * config/dsp16xx/dsp16xx.md: Rewrite for more efficient code and
5389         add scheduling support.
5390         * config/dsp16xx/dsp16xx.h: Rewrite for more efficient code.
5391         * config/dsp16xx/dsp16xx.c: Rewrite for more efficient code.
5392         * config/dsp16xx/dsp16xx-protos.h: Add new function prototypes.
5393
5394
5395 2001-10-13  Hans-Peter Nilsson  <hp@axis.com>
5396
5397         * config/cris/cris.c (cris_legitimate_pic_operand): Kludge around
5398         missing CONSTANT_P test in core GCC.
5399
5400 2001-10-12  Neil Booth  <neil@daikokuya.demon.co.uk>
5401
5402         * cppmain.c (struct printer): New member source.
5403         (scan_translation_unit): Fix spacing at start of lines.
5404         (cb_line_change): Update.
5405
5406         * gcc.dg/cpp/spacing2.c: New test.
5407
5408 2001-10-12  Hans-Peter Nilsson  <hp@axis.com>
5409
5410         * config/cris/arit.c: Use __builtin_labs, not abs.
5411
5412         * config/cris/cris.h (SET_STRIPPABLE_EXECUTABLE): Don't define.
5413
5414         * config/cris/cris.c (cris_target_asm_function_epilogue): Move
5415         misplaced sprintf and fprintf argument.
5416
5417 2001-10-12  Zack Weinberg  <zack@codesourcery.com>
5418
5419         * ABOUT-NLS, aclocal.m4: Update i18n framework from gettext 0.10.40.
5420         * configure.in, Makefile.in: Take out obsolete check-po logic.
5421         * configure, config.in: Regenerate.
5422
5423 2001-10-12  Ziemowit Laski  <zlaski@apple.com>
5424
5425         * objc/objc-act.c (finish_objc): Correct precondition for emitting
5426         symtab declarations.
5427
5428 2001-10-12  Stan Shebs  <shebs@apple.com>
5429
5430         * config/rs6000/rs6000.c: Remove uses of "register" specifier in
5431         declarations of arguments and local variables.
5432
5433 2001-10-12  Christopher Faylor  <cgf@redhat.com>
5434
5435         * config/i386/cygwin.h: Revert erroneous checkin of crtbegin and
5436         ENDFILE_SPEC definition.
5437
5438 2001-10-12  Kazu Hirata  <kazu@hxi.com>
5439
5440         * gthr-dce.h: Fix comment formatting.
5441         * gthr-posix.h: Likewise.
5442         * gthr-single.h: Likewise.
5443         * gthr-solaris.h: Likewise.
5444         * gthr-vxworks.h: Likewise.
5445         * gthr-win32.h: Likewise.
5446
5447 2001-10-12  Jakub Jelinek  <jakub@redhat.com>
5448
5449         * final.c (output_asm_insn): Make sure assembly dialects are
5450         terminated, not nested.  Output `|' and `}' characters if they
5451         don't appear inside assembly dialect selection.
5452         * config/i386/i386.md (rep_movdi_rex64, rep_movsi, rep_movsi_rex64,
5453         rep_movqi, rep_movqi_rex64, rep_stosdi_rex64, rep_stossi,
5454         rep_stossi_rex64, rep_stosqi, rep_stosqi_rex64, strsetsi_1,
5455         strsetsi_rex_1): Add {} braces.
5456
5457 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
5458
5459         * toplev.c (compile_file): Ignore return value from yyparse.
5460         Always pop any nested binding levels after yyparse returns.
5461
5462 2001-10-11  Richard Henderson  <rth@redhat.com>
5463
5464         * doc/c-tree.texi (Expression trees): Add VTABLE_REF.
5465
5466 2001-10-11  Richard Henderson  <rth@redhat.com>
5467
5468         * dwarf2out.c (add_const_value_attribute): If long < HOST_WIDE_INT,
5469         fall back to add_AT_long_long for large CONST_INT.
5470
5471 2001-10-11  Richard Henderson  <rth@redhat.com>
5472
5473         * config/i386/i386.md (setcc splitters): Add four splitters to
5474         simplify compound compares that simplify_comparison can't handle.
5475
5476 2001-10-11  Zack Weinberg  <zack@codesourcery.com>
5477
5478         * cpplex.c (digraph_spellings, token_spellings): Make static.
5479
5480 2001-10-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5481
5482         * unroll.c (loop_iterations): Fixup last patch.
5483
5484 2001-10-11  Richard Henderson  <rth@redhat.com>
5485
5486         * rtl.h (REG_VTABLE_REF): New.
5487         * rtl.c (reg_note_name): Add it.
5488         * combine.c (distribute_notes): Handle it.
5489         * final.c (final_scan_insn): Handle it.
5490         * tree.def (VTABLE_REF): New.
5491         * expr.c (expand_expr): Handle it.
5492         * varasm.c (assemble_vtable_entry, assemble_vtable_inherit): New.
5493         * output.h: Declare them.
5494
5495 2001-10-11  Richard Henderson  <rth@redhat.com>
5496
5497         * dwarf2out.c (rtl_for_decl_location): If no DECL_RTL, look
5498         for a DECL_INITIAL.
5499
5500 2001-10-11  David Edelsohn  <edelsohn@gnu.org>
5501
5502         * config/rs6000/xcoff.h (UNALIGNED_DOUBLE_INT_ASM_OP): Only
5503         available in 64-bit mode.
5504
5505 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
5506
5507         * config.gcc: Add cris-*-aout, cris-*-elf, cris-*-none,
5508         cris-*-linux* cases.
5509         * config/cris/cris-protos.h: New file.
5510         * config/cris/cris.c: New file.
5511         * config/cris/cris.h: New file.
5512         * config/cris/cris.md: New file.
5513         * config/cris/linux.h: New file.
5514         * config/cris/aout.h: New file.
5515         * config/cris/arit.c: New file.
5516         * config/cris/cris_abi_symbol.c: New file.
5517         * config/cris/mulsi3.asm: New file.
5518         * config/cris/t-aout: New file.
5519         * config/cris/t-cris: New file.
5520         * config/cris/t-elfmulti: New file.
5521         * config/cris/t-linux: New file.
5522         * doc/invoke.texi: Add CRIS options.
5523         * doc/install.texi (Specific): Add blurb for CRIS.
5524
5525 2001-10-10  Hartmut Schirmer <SchirmerH@Innovative-Systems.de>
5526
5527         * config/float-i128.h: Make sure __STDC__VERSION__ is defined
5528         before using it.
5529         * config/float/i32.h: Likewise.
5530         * config/float-i386.h: Likewise.
5531         * config/float-i64.h: Likewise.
5532         * config/float-m68k.h: Likewise.
5533         * config/float-sh.h: Likewise.
5534         * config/float-sparc.h: Likewise.
5535
5536 2001-10-11  Hans-Peter Nilsson  <hp@axis.com>
5537
5538         * doc/contrib.texi: Add note about CRIS port to my entry.
5539
5540 2001-10-11  Kazu Hirata  <kazu@hxi.com>
5541
5542         * basic-block.h: Fix formatting.
5543         * bitmap.h: Likewise.
5544         * cpplib.h: Likewise.
5545         * c-tree.h: Likewise.
5546         * diagnostic.h: Likewise.
5547         * flags.h: Likewise.
5548         * ggc.h: Likewise.
5549         * longlong.h: Likewise.
5550         * real.h: Likewise.
5551         * reload.h: Likewise.
5552         * rtl.h: Likewise.
5553         * tree.h: Likewise.
5554
5555 2001-10-10  Richard Henderson  <rth@redhat.com>
5556
5557         * c-parse.in (asm_operand): Allow named operands.
5558         * genconfig.c (max_recog_operands): Set to 29.
5559         * local-alloc.c (requires_inout): Skip multiple digits.
5560         * recog.c (asm_operand_ok): Likewise.
5561         (preprocess_constraints): Use strtoul for matching constraints.
5562         (constrain_operands): Likewise.
5563         * regmove.c (find_matches): Likewise.
5564         * reload.c (find_reloads): Likewise.
5565         * stmt.c (parse_output_constraint): Don't reject in-out
5566         constraint on operands > 9.  Reject '[' in constraint.
5567         (expand_asm_operands): Handle named operands.  Use strtoul
5568         for matching constraints.
5569         (check_operand_nalternatives): Split out from expand_asm_operands.
5570         (check_unique_operand_names): New.
5571         (resolve_operand_names, resolve_operand_name_1): New.
5572
5573         * doc/extend.texi (Extended Asm): Document named operands.
5574         * doc/md.texi (Simple Constraints): Document matching constraints
5575         on operands > 9.
5576
5577 2001-10-10  Richard Henderson  <rth@redhat.com>
5578
5579         * combine.c (try_combine): Handle a SEQUENCE of one insn.
5580
5581         * i386.c (test splitter): Narrow tests vs paradoxical subregs.
5582         (jcc splitters): Add two splitters to simplify compound compares
5583         that simplify_comparison can't handle.
5584
5585 2001-10-10  Richard Henderson  <rth@redhat.com>
5586
5587         * langhooks.c: Include langhooks.h.
5588         * Makefile.in (langhooks.o): Depend on it.
5589
5590 Wed Oct 10 23:49:06 EDT 2001  John Wehle  (john@feith.com)
5591
5592         * rtlanal.c (noop_move_p): Insns with a REG_RETVAL note
5593         should not be considered as a no-op.
5594         * flow.c (delete_noop_moves): Handle REG_LIBCALL notes.
5595
5596 2001-10-10  Stan Shebs  <shebs@apple.com>
5597
5598         * alias.c: Remove uses of "register" specifier in declarations
5599         of arguments and local variables.
5600         * c-common.c: Ditto.
5601         * c-convert.c: Ditto.
5602         * c-decl.c: Ditto.
5603         * c-format.c: Ditto.
5604         * c-semantics.c: Ditto.
5605         * c-typeck.c: Ditto.
5606         * caller-save.c: Ditto.
5607         * calls.c: Ditto.
5608         * cfg.c: Ditto.
5609         * cfgbuild.c: Ditto.
5610         * cfgrtl.c: Ditto.
5611         * collect2.c: Ditto.
5612         * combine.c: Ditto.
5613         * convert.c: Ditto.
5614         * cppexp.c: Ditto.
5615         * cppfiles.c: Ditto.
5616         * cse.c: Ditto.
5617         * dbxout.c: Ditto.
5618         * defaults.h: Ditto.
5619         * df.c: Ditto.
5620         * dwarf2out.c: Ditto.
5621         * dwarfout.c: Ditto.
5622         * emit-rtl.c: Ditto.
5623         * explow.c: Ditto.
5624         * expmed.c: Ditto.
5625         * expr.c: Ditto.
5626         * final.c: Ditto.
5627         * fix-header.c: Ditto.
5628         * floatlib.c: Ditto.
5629         * flow.c: Ditto.
5630         * fold-const.c: Ditto.
5631         * function.c: Ditto.
5632         * gcc.c: Ditto.
5633         * gcse.c: Ditto.
5634         * gen-protos.c: Ditto.
5635         * genattrtab.c: Ditto.
5636         * gencheck.c: Ditto.
5637         * genconfig.c: Ditto.
5638         * genemit.c: Ditto.
5639         * genextract.c: Ditto.
5640         * genflags.c: Ditto.
5641         * gengenrtl.c: Ditto.
5642         * genoutput.c: Ditto.
5643         * genpeep.c: Ditto.
5644         * genrecog.c: Ditto.
5645         * gensupport.c: Ditto.
5646         * global.c: Ditto.
5647         * gmon.c: Ditto.
5648         * graph.c: Ditto.
5649         * haifa-sched.c: Ditto.
5650         * hard-reg-set.h: Ditto.
5651         * hash.c: Ditto.
5652         * integrate.c: Ditto.
5653         * jump.c: Ditto.
5654         * lists.c: Ditto.
5655         * local-alloc.c: Ditto.
5656         * loop.c: Ditto.
5657         * mips-tdump.c: Ditto.
5658         * mips-tfile.c: Ditto.
5659         * optabs.c: Ditto.
5660         * prefix.c: Ditto.
5661         * print-rtl.c: Ditto.
5662         * read-rtl.c: Ditto.
5663         * real.c: Ditto.
5664         * recog.c: Ditto.
5665         * reg-stack.c: Ditto.
5666         * regclass.c: Ditto.
5667         * regmove.c: Ditto.
5668         * reload.c: Ditto.
5669         * reload1.c: Ditto.
5670         * reorg.c: Ditto.
5671         * resource.c: Ditto.
5672         * rtl.c: Ditto.
5673         * rtlanal.c: Ditto.
5674         * scan.c: Ditto.
5675         * sched-deps.c: Ditto.
5676         * sched-rgn.c: Ditto.
5677         * sdbout.c: Ditto.
5678         * simplify-rtx.c: Ditto.
5679         * stmt.c: Ditto.
5680         * stor-layout.c: Ditto.
5681         * toplev.c: Ditto.
5682         * tradcif.y: Ditto.
5683         * tradcpp.c: Ditto.
5684         * tree.c: Ditto.
5685         * unroll.c: Ditto.
5686         * varasm.c: Ditto.
5687         * xcoffout.c: Ditto.
5688
5689 2001-10-10  Richard Henderson  <rth@redhat.com>
5690
5691         * rtl.h (can_reverse_comparison_p): Remove.
5692
5693 2001-10-10  Christopher Faylor <cgf@redhat.com>
5694
5695         * config/i386/cygwin.h: Avoid adding include files if -nostdinc is
5696         used.
5697
5698 2001-10-10  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5699
5700         * config/i386/mingw32.h (WIN32_NO_ABSOLUTE_INST_DIRS): New define.
5701         (Thanks to Chris Faylor for suggesting macro name).
5702         (CPP_PREDEFINES): Define __MINGW32__ but don't set value; add more
5703         WIN32 defines.
5704         (STANDARD_INCLUDE_DIR): Remove i386- from directory name.
5705         (STANDARD_INCLUDE_COMPONENT): Change to MINGW.
5706         (MATH_LIBRARY): Undef before definition.
5707         (OUTPUT_QUOTED_STRING): Likewise.
5708         * config/i386/cygwin.h: Use WIN32_NO_ABSOLUTE_INST_DIRS.
5709
5710 2001-10-10  Richard Henderson  <rth@redhat.com>
5711
5712         * unwind-dw2-fde.c (fde_compare_t): Change return type to int.
5713         (fde_unencoded_compare): Likewise.  Don't use subtraction to get
5714         a tristate comparison value.
5715         (fde_single_encoding_compare, fde_mixed_encoding_compare): Likewise.
5716
5717 2001-10-10  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5718
5719         PR c++/4512
5720         * unroll.c (loop_iterations): Ignore insns generated by loop
5721         unrolling.
5722
5723         * config.gcc (mips*-*-gnu*): Delete support.
5724         * config/mips/gnu.h: Remove.
5725
5726 2001-10-10  Kazu Hirata  <kazu@hxi.com>
5727
5728         * calls.c: Fix formatting.
5729         * c-decl.c: Likewise.
5730         * cfgcleanup.c: Likewise.
5731         * combine.c: Likewise.
5732         * cppfiles.c: Likewise.
5733         * cpplib.c: Likewise.
5734         * cppmacro.c: Likewise.
5735         * crtstuff.c: Likewise.
5736         * cse.c: Likewise.
5737         * dwarf2out.c: Likewise.
5738         * expmed.c: Likewise.
5739         * expr.c: Likewise.
5740         * fold-const.c: Likewise.
5741         * function.c: Likewise.
5742         * gcse.c: Likewise.
5743         * genattrtab.c: Likewise.
5744         * ggc-page.c: Likewise.
5745         * integrate.c: Likewise.
5746         * libgcc2.c: Likewise.
5747         * loop.c: Likewise.
5748         * optabs.c: Likewise.
5749         * profile.c: Likewise.
5750         * protoize.c: Likewise.
5751         * real.c: Likewise.
5752         * recog.c: Likewise.
5753         * reload1.c: Likewise.
5754         * reload.c: Likewise.
5755         * reorg.c: Likewise.
5756         * resource.c: Likewise.
5757         * sched-rgn.c: Likewise.
5758         * sdbout.c: Likewise.
5759         * stmt.c: Likewise.
5760         * toplev.c: Likewise.
5761         * varasm.c: Likewise.
5762
5763 2001-10-10  Janis Johnson  <janis187@us.ibm.com>, Alexandre Oliva  <aoliva@redhat.com>
5764
5765         * langhooks.c: Include rtl.h, insn-config.h and integrate.h.
5766         * Makefile.in (langhooks.o): Add dependencies.
5767
5768 Wed Oct 10 00:41:29 EDT 2001  John Wehle  (john@feith.com)
5769
5770         * rs6000.c (rs6000_emit_load_toc_table): Don't
5771         strdup the toc label.
5772         (create_TOC_reference): Likewise.
5773
5774 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5775
5776         * config.gcc (i[34567]86-*-mingw32*): Make msvcrt-dependent
5777         version default.
5778
5779 2001-10-09  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
5780
5781         * config/i386/i386.c (ix86_attribute_table): Correct
5782         min_len, max_len fields for dllimport, dllexport and shared.
5783
5784 2001-10-10  Joseph S. Myers  <jsm28@cam.ac.uk>
5785
5786         * doc/c-tree.texi, doc/cppinternals.texi, doc/extend.texi,
5787         doc/install.texi, doc/md.texi, doc/rtl.texi, doc/tm.texi:
5788         Consistently use "nonzero" instead of "non-zero".
5789
5790 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5791
5792         * acconfig.h: Fix comment formatting.
5793         * c-dump.h: Likewise.
5794         * c-tree.h: Likewise.
5795         * conditions.h: Likewise.
5796         * expr.h: Likewise.
5797         * function.h: Likewise.
5798         * gthr.h: Likewise.
5799         * hwint.h: Likewise.
5800         * integrate.h: Likewise.
5801         * intl.h: Likewise.
5802         * loop.h: Likewise.
5803         * optabs.h: Likewise.
5804
5805 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5806
5807         * c-common.h: Fix comment formatting.
5808         * c-dump.c: Likewise.
5809         * cfg.c: Likewise.
5810         * diagnostic.h: Likewise.
5811         * except.c: Likewise.
5812         * gcc.h: Likewise.
5813         * gcov-io.h: Likewise.
5814         * genattrtab.c: Likewise.
5815         * output.h: Likewise.
5816         * predict.h: Likewise.
5817         * reload1.c: Likewise.
5818         * reload.h: Likewise.
5819         * resource.h: Likewise.
5820         * scan.h: Likewise.
5821         * system.h: Likewise.
5822         * tree.h: Likewise.
5823         * tree-inline.c: Likewise.
5824         * tsystem.h: Likewise.
5825         * varasm.c: Likewise.
5826         * xcoffout.h: Likewise.
5827
5828 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
5829
5830         * doc/gcc.texi: Document preference for "nonzero" over "non-zero".
5831
5832 2001-10-09  Joseph S. Myers  <jsm28@cam.ac.uk>
5833
5834         * config/alpha/freebsd.h, config/alpha/lib1funcs.asm,
5835         config/i386/i386elf.h, config/i386/netbsd-elf.h,
5836         config/i386/netware.h, config/mcore/gfloat.h,
5837         config/mcore/mcore.c, config/mcore/mcore.h, config/mcore/mcore.md,
5838         config/netware.h, gccbug.in: Update FSF address.
5839
5840 2001-10-09  Kazu Hirata  <kazu@hxi.com>
5841
5842         * c-common.c: Fix comment typos.
5843         * cfgrtl.c: Likewise.
5844         * collect2.c: Likewise.
5845         * cpplex.c: Likewise.
5846         * doloop.c: Likewise.
5847         * dwarf2out.c: Likewise.
5848         * dwarfout.c: Likewise.
5849         * expr.c: Likewise.
5850         * fold-const.c: Likewise.
5851         * gcc.c: Likewise.
5852         * gcov.c: Likewise.
5853         * gcse.c: Likewise.
5854         * global.c: Likewise.
5855         * ifcvt.c: Likewise.
5856         * loop.c: Likewise.
5857         * optabs.c: Likewise.
5858         * protoize.c: Likewise.
5859         * regclass.c: Likewise.
5860         * reorg.c: Likewise.
5861         * rtl.h: Likewise.
5862         * stmt.c: Likewise.
5863         * tree.h: Likewise.
5864         * doc/cpp.texi: Likewise.
5865         * doc/c-tree.texi: Likewise.
5866         * doc/extend.texi: Likewise.
5867         * doc/invoke.texi: Likewise.
5868         * doc/objc.texi: Likewise.
5869         * doc/tm.texi: Likewise.
5870
5871 2001-10-08  Richard Henderson  <rth@redhat.com>
5872
5873         * varasm.c (set_named_section_flags): Initialize "declared".
5874
5875 2001-10-08  Robert Lipe  <robertlipe@usa.net>
5876
5877         * varasm.c (struct in_named_entry): Add declared.
5878         (named_section_first_declaration): New function.
5879         (default_elf_asm_named_section): Use it.
5880         * output.h (named_section_first_declaration): New.
5881
5882 2001-10-08  Richard Henderson  <rth@redhat.com>
5883
5884         * i386.md (movsi_xor): Export.
5885         (setcc peep2): Use it when available; add an alternative to
5886         match zero_extendhisi2_and.
5887
5888 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5889
5890         * romp-protos.h (romp_initialize_trampoline): New function.
5891         * romp.c (romp_initialize_trampoline): Likewise.
5892         * romp.h (INITIALIZE_TRAMPOLINE): Define in terms of
5893         romp_initialize_trampoline.
5894
5895 2001-10-08  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
5896
5897         * m68k/3b1.h (ASM_OUTPUT_SOURCE_LINE): Don't reference `last_linenum'.
5898         * m68k/auxas.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5899         * m68k/crds.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5900         * m68k/mot3300.h (ASM_OUTPUT_SOURCE_LINE): Likewise.
5901
5902 2001-10-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
5903
5904         * unroll.c (loop_iterations): Extend check for multiple back edges.
5905
5906 2001-10-08  Alexandre Oliva  <aoliva@redhat.com>
5907
5908         * langhooks.h: New file.
5909         * Makefile.in (OBJS): Added langhooks.o.
5910         (c-lang.o): Depend on langhooks.h.
5911         (c-common.o): Don't depend on tree-inline.h.
5912         (tree-inline.o): Depend on toplev.h.
5913         (langhooks.o): New rule.
5914         * c-common.c: Don't include tree-inline.h.
5915         (c_mark_lang_decl): Mark argument c as unused.
5916         (c_common_lang_init): Don't initialize hooks here.
5917         * c-lang.c: Include langhooks.h, then override some macros.
5918         (lang_hooks): Initialize with macros in langhooks.h.
5919         (c_init): Don't initialize hooks here.
5920         * toplev.c (struct lang_hooks_for_tree_inlining): New struct.
5921         (struct lang_hooks): Add tree_inlining.  Refer to langhooks.h.
5922         * tree-inline.c: Include toplev.h.  Don't define hook variables.
5923         * tree-inline.h: Don't define hook types nor declare hook
5924         variables.  Move macros to...
5925         * langhooks.c: ... new file, as functions.  Adjust all callers.
5926
5927 2001-10-08  Jeffrey A Law  <law@cygnus.com>
5928
5929         * sibcall.c (optimize_sibling_and_tail_recursive_calls): Call
5930         purge_mem_unchanging_flag on all instructions, not just on those
5931         before NOTE_INSN_FUNCTION_BEG.
5932
5933 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5934
5935         * cppmacro.c (_cpp_create_definition): Leave comments off.
5936
5937         * doc/cpp.texi: Update.
5938
5939 2001-10-08  DJ Delorie  <dj@redhat.com>
5940
5941         * c-decl.c (grokfield): Make sure the only unnamed fields
5942         we're allowing are either structs or unions.
5943         * doc/extend.texi: Add documentation for the unnamed field
5944         extension.
5945
5946 2001-10-08  Zack Weinberg  <zack@codesourcery.com>
5947
5948         * aclocal.m4 (gcc_AC_PROG_GNAT): New.
5949         * configure.in: Use it.
5950         * configure: Regenerated.
5951         * config/pa/t-linux, config/pa/t-pa, config/pa/t-pa64,
5952         config/pa/t-pro: Set T_ADAFLAGS, not ADA_CFLAGS.
5953
5954 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5955
5956         * cppfiles.c (open_file): Don't mark zero-length files
5957         never-reread here.  Don't output diagnostics here either.
5958         (stack_include_file): Mark them never-reread here.
5959         (_cpp_read_file): Update.
5960
5961 2001-10-08  Richard Henderson  <rth@redhat.com>
5962
5963         * config/i386/sol2.h (UNALIGNED_DOUBLE_INT_ASM_OP): New.
5964
5965 2001-10-08  Richard Henderson  <rth@redhat.com>
5966
5967         * expr.c (store_expr): When converting a CONST_INT for storage
5968         in a SUBREG, convert it to both SUBREG modes before stripping
5969         the SUBREG.
5970
5971 2001-10-08  Richard Henderson  <rth@redhat.com>
5972
5973         * varasm.c (restore_varasm_status): New.
5974         * function.h: Declare it.
5975         * function.c (pop_function_context_from): Call it.
5976
5977 2001-10-08  Richard Henderson  <rth@redhat.com>
5978
5979         * c-common.h (struct c_lang_decl): Add declared_inline.
5980         * c-tree.h (DECL_DECLARED_INLINE_P): New.
5981         * c-lang.c (c_disregard_inline_limits): Use it.
5982         * c-decl.c (duplicate_decls): Likewise.
5983         (pushdecl, redeclaration_error_message): Likewise.
5984         (pushdecl): Allocate DECL_LANG_SPECIFIC if needed.
5985         (grokdeclarator): Likewise.  Set DECL_DECLARED_INLINE_P.
5986         Set DECL_INLINE if -finline-functions.
5987         (store_parm_decls): Don't allocate DECL_LANG_SPECIFIC here.
5988
5989 2001-10-08  Neil Booth  <neil@daikokuya.demon.co.uk>
5990
5991         * cppmacro.c (funlike_invocation_p): Move some logic to caller
5992         in enter_macro_context.  Create a padding token in its own context
5993         if necessary when the search for '(' fails.
5994         (enter_macro_context): Update.
5995
5996 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
5997
5998         * ChangeLog.2, c-decl.c, config/i386/i386.md, doc/gcc.texi, gcc.c,
5999         genmultilib, toplev.c: Fix spelling errors of "separate" as
6000         "seperate", and corresponding spelling errors of related words.
6001
6002 2001-10-07  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6003
6004         * builtins.c (expand_builtin_setjmp_receiver): Const-ify.
6005         * c-common.c (fname_var_t, c_tree_code_type, c_tree_code_length):
6006         Likewise.
6007         * c-dump.c (dump_option_value_info): Likewise.
6008         * c-format.c (format_length_info, format_char_info,
6009         format_flag_spec, format_flag_pair, format_kind_info): Likewise.
6010         * collect2.c (names): Likewise.
6011         * cppdefault.h (default_include): Likewise.
6012         * cppexp.c (suffix, vsuf_1, vsuf_2, vsuf_3): Likewise.
6013         * flow.c (life_analysis): Likewise.
6014         * gcc.c (dir_separator_str, modify_target, option_map,
6015         target_option_translations, spec_list_1, extra_specs_1,
6016         init_spec): Likewise.
6017         * gcov.c (gcov_version_string): Likewise.
6018         * genattr.c (write_units): Likewise.
6019         * genattrtab.c (make_length_attrs, write_function_unit_info): Likewise.
6020         * gengenrtl.c (rtx_definition, defs): Likewise.
6021         * genrecog.c (pred_table): Likewise.
6022         * global.c (global_alloc): Likewise.
6023         * lcm.c (optimize_mode_switching): Likewise.
6024         * local-alloc.c (find_free_reg): Likewise.
6025         * params.h (param_info): Likewise.
6026         * predict.c (predictor_info): Likewise.
6027         * protoize.c (unexpansion_struct): Likewise.
6028         * real.c (bmask): Likewise.
6029         * recog.h (insn_operand_data, insn_data): Likewise.
6030         * regclass.c (initial_fixed_regs, initial_call_used_regs): Likewise.
6031         * stmt.c (expand_nl_goto_receiver): Likewise.
6032         * toplev.c (da, debug_args, lang_opt, documented_lang_options,
6033         target_switches, target_options): Likewise.
6034         * tradcif.y (token, tokentab2, yylex): Likewise.
6035         * tree.h (attribute_spec): Likewise.
6036
6037         * alpha.c (override_options, alpha_lookup_xfloating_lib_func):
6038         Likewise.
6039         * arc.c (arc_output_function_epilogue): Likewise.
6040         * arm.c (processors, all_cores, all_architectures,
6041         arm_override_options, isr_attribute_arg, isr_attribute_args,
6042         arm_isr_value): Likewise.
6043         * avr.c (mcu_type_s, reg_class_tab, order_regs_for_local_alloc):
6044         Likewise.
6045         * c4x.c (c4x_int_reglist): Likewise.
6046         * d30v.c (override_options): Likewise.
6047         * h8300.c (shift_insn): Likewise.
6048         * i386.c (size_cost, i386_cost, i486_cost, pentium_cost,
6049         pentiumpro_cost, k6_cost, athlon_cost, pentium4_cost, ix86_cost,
6050         ix86_expand_sse_comi, ix86_expand_sse_compare, override_options,
6051         builtin_description, bdesc_comi, bdesc_2arg, bdesc_1arg,
6052         ix86_init_mmx_sse_builtins, ix86_expand_builtin): Likewise.
6053         * i386.h (processor_costs, ix86_cost): Likewise.
6054         * m68hc11.c (m68hc11_cost, m6811_cost, m6812_cost): Likewise.
6055         * m68hc11.h (processor_costs, m68hc11_cost): Likewise.
6056         * m68k.c (codes_68881, codes_FPA): Likewise.
6057         * m88k.c (mode_from_align, max_from_align, all_from_align,
6058         best_from_align, m_options): Likewise.
6059         * m88k.h (ORDER_REGS_FOR_LOCAL_ALLOC): Likewise.
6060         * mcore.c (mode_from_align): Likewise.
6061         * mips/elf64.h (UNIQUE_SECTION): Likewise.
6062         * mips/iris6gld.h (UNIQUE_SECTION): Likewise.
6063         * mips.c (mips_sw_reg_names, mips_regno_to_class): Likewise.
6064         * mips.h (mips_regno_to_class): Likewise.
6065         * ns32k.c (scales): Likewise.
6066         * pa.c (import_string, magic_milli): Likewise.
6067         * rs6000.c (alt_reg_names, rs6000_override_options): Likewise.
6068         * sparc.c (leaf_reg_remap, sparc_override_options,
6069         reg_leaf_alloc_order, reg_nonleaf_alloc_order, reg_alloc_orders):
6070         Likewise.
6071         * sparc.h (sparc_cpu_select, leaf_reg_remap): Likewise.
6072
6073 2001-10-07  Dale Johannesen  <dalej@apple.com>
6074
6075         * reload1.c (reload_reg_free_p): Teach register interference
6076         checking that multiple output reloads are emitted in
6077         reverse order.
6078         reload1.c (reload_reg_reaches_end_p):  Ditto.
6079         reload1.c (reloads_conflict):  Ditto.
6080
6081 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6082
6083         * doc/c-tree.texi, doc/tm.texi: Consistently put NULL and
6084         NULL_TREE inside @code.
6085
6086 2001-10-07  Joseph S. Myers  <jsm28@cam.ac.uk>
6087
6088         * doc/gcc.texi: Document consistent style of "32-bit",
6089         "Objective-C", and "@code{NULL}".
6090
6091 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
6092
6093         * cpplex.c (enum spell_type): Add SPELL_NUMBER.
6094         (cpp_token_len, cpp_spell_token, cpp_output_token,
6095         _cpp_equiv_tokens): Handle it.
6096         * cpplib.h (TTYPE_TABLE): Use SPELL_NUMBER for CPP_NUMBER and
6097         CPP_COMMENT, SPELL_NONE for CPP_PADDING and CPP_EOF.
6098         * cppexp.c (_cpp_parse_expr): Use the correct operator code in
6099         error messages.
6100
6101 Sat Oct  6 07:42:39 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6102
6103         * gcc.c (default_compilers): Remove .ada.
6104
6105 2001-10-06  Neil Booth  <neil@daikokuya.demon.co.uk>
6106
6107         * doc/cppinternals.texi: Update.
6108
6109 2001-10-06  Zack Weinberg  <zack@codesourcery.com>
6110
6111         * gcc.c (main): Set this_file_error if the appropriate
6112         compiler for a language has not been installed.
6113
6114 2001-10-06  Ulrich Weigand  <uweigand@de.ibm.com>
6115
6116         * config/s390/s390.c (s390_va_arg): Use set_mem_alias_set.
6117
6118 2001-10-05  Joseph S. Myers  <jsm28@cam.ac.uk>
6119
6120         * gccbug.in (CATEGORIES): Add ada.
6121
6122 2001-10-05  Catherine Moore  <clm@redhat.com>
6123
6124         * config/stormy16/stormy-abi:  Document abi changes.
6125         * config/stormy16/stormy16.h (REG_ALLOC_ORDER): Redefine.
6126         (ICALL_REGS): New register class.
6127         (NUM_ARGUMENT_REGISTERS): Now 6.
6128         (DEFAULT_PCC_STRUCT_RETURN): Don't try to return structs
6129         in registers.
6130         (REG_CLASS_FROM_LETTER): Map 'z' to ICALL_REGS.
6131         * config/stormy16.md (call_internal, call_value_internal,
6132         indirect_jump): Use new 'z' constraint.
6133
6134 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6135
6136         * doc/cppinternals.texi: Update.
6137
6138 2001-10-05  Richard Henderson  <rth@redhat.com>
6139
6140         * dwarf2out.c (FRAME_BEGIN_LABEL): New.
6141         (output_call_frame_info): Use it instead of __FRAME_BEGIN__ and
6142         the gas section-name-as-label feature.
6143
6144 2001-10-05  Neil Booth  <neil@daikokuya.demon.co.uk>
6145
6146         * doc/cppinternals.texi: Update.
6147
6148 Fri Oct  5 08:17:46 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6149
6150         * config/i386/i386.c (ix86_split_to_parts): Use trunc_int_for_mode
6151         to ensure valid SImode constants.
6152
6153 2001-10-05  Alexandre Oliva  <aoliva@redhat.com>
6154
6155         * Makefile.in (c-decl.o): Depend on tree-inline.h.
6156         (c-lang.o): Likewise, as well as insn-config.h and integrate.h.
6157         * c-decl.c: Include tree-inline.h.
6158         (c_expand_body): Call optimize_inline_calls. Determine whether
6159         a function is inlinable upfront, and only clear
6160         DECL_SAVED_TREE, DECL_INITIAL and DECL_ARGUMENTS if it isn't.
6161         * c-lang.c: Include tree-inline.h, insn-config.h and integrate.h.
6162         (c_disregard_inline_limits): New function.
6163         (inline_forbidden_p, c_cannot_inline_tree_fn): Likewise.
6164         (c_post_options): Enable tree inlining if inlining is enabled.
6165         Don't inline trees when instrumenting functions.
6166         (c_init): Initialize lang_disregard_inline_limits and
6167         lang_cannot_inline_tree_fn.
6168         * tree-inline.c (initialize_inlined_parameters): Handle calls
6169         with fewer arguments than declared parameters, and fewer
6170         parameters than passed arguments.  Don't assume value is a
6171         DECL.
6172         (declare_return_variable): Convert return value back to the
6173         original type, if it was promoted.
6174         (tree_inlinable_function_p): New function.
6175         (inlinable_function_p): Don't look at DECL_INLINE if we're
6176         inlining all functions.  Make it work with a NULL id.
6177         Re-check DECL_UNINLINABLE after language-specific checks.
6178         * tree-inline.h (tree_inlinable_function_p): Declare it.
6179         * integrate.c (save_for_inline): Don't bother to prepare argvec
6180         when not inlining.
6181         * cse.c (check_for_label_ref): Don't check deleted labels.
6182
6183         * Makefile.in (tree-inline.o): Depend on newly-included headers.
6184         * tree-inline.c: Include headers needed for the functions moved in.
6185         (struct inline_data, INSNS_PER_STMT): Moved from cp/optimize.c.
6186         (remap_decl, remap_block, copy_scopy_stmt, copy_body_r): Likewise.
6187         (copy_body, initialize_inlined_parameters): Likewise.
6188         (declare_return_variable, inlinable_function_p): Likewise.
6189         (expand_call_inline, expand_calls_inline): Likewise.
6190         (optimize_inline_calls, clone_body): Likewise.
6191         (walk_tree, walk_tree_without_duplicates): Moved from cp/tree.c.
6192         (copy_tree_r, remap_save_expr): Likewise.
6193
6194 2001-10-04  Alexandre Oliva  <aoliva@redhat.com>
6195
6196         * Makefile.in (OBJS): Added tree-inline.o.
6197         (c-common.o): Depend on tree-inline.h.
6198         (tree-inline.o): New target.
6199         * c-common.c: Include tree-inline.h.
6200         (c_mark_lang_decl): Don't mark saved_tree.
6201         (c_common_lang_init): Set lang_anon_aggr_type_p.
6202         * c-common.h (walk_tree_fn, DECL_SAVED_TREE): Moved to tree.h.
6203         (struct c_lang_decl): Moved saved_tree to tree_decl.
6204         * ggc-common.c: Mark saved_tree and inlined_fns of FUNCTION_DECLs.
6205         * integrate.h (function_attribute_inlinable_p): Declare it.
6206         * integrate.c (function_attribute_inlinable_p): Export it.
6207         * tree-inline.c: New file.  Define variables declared in...
6208         * tree-inline.h: New file.  Declare functions to be moved to
6209         tree-inline.c.  Define macros and declare types and hooks for
6210         language-specific tree inlining.
6211         (flag_inline_trees): Moved definition from cp/decl2.c.
6212         * tree.h (walk_tree_fn, DECL_SAVED_TREE): Moved from c-common.h.
6213         (TREE_READONLY_DECL_P, DECL_INLINED_FNS): Moved from cp/cp-tree.h.
6214         (struct tree_decl): Moved saved_tree from c_lang_decl and
6215         inlined_fns from C++'s lang_decl.
6216
6217 2001-10-04  Loren J. Rittle  <ljrittle@acm.org>
6218
6219         * Makefile.in (STAGE2_FLAGS_TO_PASS): Remove patches which
6220         propagated HOST_CC, HOST_CFLAGS, HOST_LDFLAGS and HOST_CPPFLAGS.
6221
6222 2001-10-04  Neil Booth  <neil@daikokuya.demon.co.uk>
6223
6224         * doc/cppinternals.texi: Update.
6225
6226 2001-10-04  Eric Christopher  <echristo@redhat.com>
6227
6228         * config/mips/mips.c (init_cumulative_args): Remember to set
6229         cum->prototype.
6230         * config.gcc: Redo linux configuration. Add target_cpu_default
6231         of soft-float to all mipsisa32 combinations and tx39.
6232         * config/mips/linux.h: Remove include of mips.h.
6233
6234 2001-10-03  Loren J. Rittle  <ljrittle@acm.org>
6235
6236         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CFLAGS,
6237         HOST_LDFLAGS and HOST_CPPFLAGS.
6238
6239 2001-10-03  Ziemowit Laski  <zlaski@apple.com>
6240
6241         * c-parse.in (objc_inherit_code, objc_pq_context,
6242         objc_public_flag): Make static.
6243         (objc_interface_context, objc_implementation_context,
6244         objc_method_context, objc_ivar_chain, objc_ivar_context): Move to
6245         global tree array in objc/objc-act.[ch].
6246         (methoddef): Remove unnecessary code.
6247
6248         * objc/objc-act.c: (hashed_attribute, hashed_entry, imp_entry):
6249         Hoist struct definitions to objc-act.h.
6250         (nst_method_hash_list, cls_method_hash_list, imp_list, imp_count,
6251         cat_count): Place declaration in objc-act.h.
6252         (objc_tree_index): Move enumeration to objc-act.h.
6253         (objc_global_trees): Place declaration and macro accessors in
6254         objc-act.h.
6255         (implementation_context): Remove duplicate; use
6256         objc_implementation_context instead:
6257         (method_context): Remove duplicate; use objc_method_context
6258         instead.
6259         (objc_ellipsis_node, objc_method_prototype_template,
6260         implemented_classes, function_type): Move global vars to
6261         objc_global_trees.
6262         (init_objc): Use LAST_BASE_TREE_CODE instead of LAST_CODE.
6263         (build_message_expr): Move actual construction of ObjC message
6264         send nodes to finish_message_expr.
6265         (finish_message_expr): New routine, contains code formerly in
6266         build_message_expr.
6267         * objc/objc-act.h (finish_message_expr): New prototype.
6268         (objc_ivar_chain, objc_method_context, objc_ellipsis_node): Remove
6269         declarations; these vars are now part of objc_global_trees.
6270         (objc_tree_index, objc_global_trees): Move definitions from
6271         objc-act.c.
6272         * objc/objc-tree.def: Update copyright info.
6273
6274 Wed Oct  3 12:22:11 EDT 2001  John Wehle  (john@feith.com)
6275
6276         * dwarf2asm.c (unaligned_integer_asm_op): Abort if
6277         op is NULL.
6278         * sparc/sysv4.h (UNALIGNED_DOUBLE_INT_ASM_OP): Use
6279         only if TARGET_ARCH64.
6280
6281 2001-10-02  Bernd Schmidt  <bernds@redhat.com>
6282
6283         * doc/extend.texi: Fix some problems with previous checkin.
6284         * doc/invoke.texi: Likewise.
6285
6286 2001-10-02  Neil Booth  <neil@daikokuya.demon.co.uk>
6287
6288         * cpphash.h: Update comments.
6289         (cpp_context): Update.
6290         (spec_nodes): Remove n__Pragma.
6291         * cppinit.c (cpp_create_reader): Update.
6292         (builtin_array): Add _Pragma.
6293         * cpplib.h: Update comments.
6294         (NODE_DISABLED, BT_PRAGMA): New.
6295         (cpp_start_lookahead, cpp_stop_lookahead): Remove prototypes.
6296         * cppmacro.c (struct cpp_macro): Remove disabled.
6297         (builtin_macro): Return int, handle _Pragma, push the new token
6298         on the context stack.
6299         (funlike_invocation_p): Unconstify, update.
6300         (enter_macro_context): Handle builtins here.
6301         (replace_args, push_token_context, push_ptoken_context):
6302         Update for prototype changes.
6303         (_cpp_pop_context): Update.
6304         (cpp_get_token): Don't handle buitins, nor _Pragma here.
6305         (cpp_sys_macro_p): Update.
6306         (_cpp_free_definition): Clear disabled flag.
6307         (_cpp_create_definition): Upate.
6308         * cppmain.c: Update comments.
6309
6310 Tue Oct  2 12:46:01 CEST 2001  Bo Thorsen     <bo@suse.co.uk>,
6311                                 Andreas Jaeger <aj@suse.de>,
6312                                 Jan Hubicka    <jh@suse.cz>
6313
6314         * doc/invoke.texi (i386 Options): Document x86-64 options.
6315         (i386 and x86-64 Options): Rename i386 options section.
6316
6317         * config/i386/i386.h (TARGET_UNWIND_INFO): New.
6318         (TARGET_SWITCHES): Add -munwind-info.
6319         (MASK_NO_UNWIND_INFO): New.
6320         (NO_BUILTIN_SIZE_TYPE, NO_BUILTIN_PTRDIFF_TYPE): Define for
6321         biarch compilation.
6322         (ASM_OUTPUT_DOUBLE_INT): New.
6323
6324         * config/i386/linux64.h: New spec file for Linux x86-64 support.
6325         * config.gcc: Fix tm_file settings for x86-64.
6326         * config/i386/x86-64.h: New file with OS independent x86-64
6327         definitions.
6328         * config/i386/biarch64.h: New file used to configure compiler
6329         to biarch/64bit compilation.
6330
6331         * config/i386/i386.c: (override_options): Set flags default
6332         for 64bit compilation.
6333
6334 Tue Oct  2 12:46:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
6335
6336         * i386.c (legitimize_pic_address): Add missing bits of 64bit support.
6337         (ix86_expand_int_movcc): Optimize DImode conditional moves with
6338         constants on x86_64.
6339         (ix86_attr_length_immediate_default): Support MODE_DI.
6340         * i386.md (fixdi splitter): Add missing "&& 1" in splitter
6341         condition.
6342         (indirect_jump, tablejump): Turn into expander.
6343
6344 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6345
6346         * c-common.c (c_format_attribute_table): Make format and
6347         format_arg attributes apply to function types rather than to
6348         decls.
6349         (is_valid_printf_arglist): Construct an attribute list and pass
6350         that to check_function_format rather than a name.
6351         * c-common.h (check_function_format): Adjust prototype.
6352         * c-decl.c (duplicate_decls): Preserve attributes from type of
6353         built-in decl when allowing for harmless conflict in types.
6354         * c-format.c (record_function_format,
6355         record_international_format, function_format_list,
6356         international_format_info, international_format_list): Remove.
6357         (function_format_info): Remove next, name and assembler_name.
6358         Make format_num and first_arg_num be unsigned HOST_WIDE_INT.
6359         (decode_format_attr): New.
6360         (handle_format_attribute): Handle receiving a type rather than a
6361         decl.  Call decode_format_attr.  Store format information in a
6362         function_format_info.
6363         (handle_format_arg_attribute): Correct comment.  Handle receiving
6364         a type rather than a decl.  Use unsigned HOST_WIDE_INT for
6365         arg_num.
6366         (check_format_info_recurse, check_format_info_main): Take argument
6367         numbers as unsigned HOST_WIDE_INT.
6368         (check_function_format): Take a list of attributes from the
6369         function type rather than a name or assembler name.  Check for
6370         format attributes in that list and the attributes on the type of
6371         the current function rather than looking through
6372         function_format_list.
6373         (check_format_info): Use unsigned HOST_WIDE_INT for argument
6374         numbers.
6375         (check_format_info_recurse): Take format_arg attributes from the
6376         type of the function calls rather than using
6377         international_format_list.  Allow for multiple format_arg
6378         attributes.
6379         * c-typeck.c (build_function_call): Pass type attributes to
6380         check_function_format rather than name or assembler name.  Don't
6381         require there to be a name or assembler name to check formats.
6382
6383 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6384
6385         * attribs.c (decl_attributes): Possibly call
6386         insert_default_attributes to insert default attributes on
6387         functions in a lazy manner.
6388         * builtin-attrs.def: New file; define the default format and
6389         format_arg attributes.
6390         * c-common.c (c_format_attribute_table): Move to earlier in the
6391         file.
6392         (c_common_nodes_and_builtins): Initialize format_attribute_table.
6393         (enum built_in_attribute, built_in_attributes,
6394         c_attrs_initialized, c_init_attributes,
6395         c_common_insert_default_attributes): New.
6396         (c_common_lang_init): Don't initialize format_attribute_table.  Do
6397         call c_init_attributes.
6398         * Makefile.in (c-common.o): Depend on builtin-attrs.def.
6399         * c-common.h (init_function_format_info): Don't declare.
6400         (c_common_insert_default_attributes): Declare.
6401         * c-decl.c (implicitly_declare, builtin_function): Call
6402         decl_attributes.
6403         (init_decl_processing): Don't call init_function_format_info.
6404         (insert_default_attributes): New.
6405         * c-format.c (handle_format_attribute,
6406         handle_format_arg_attribute): Be quiet about inappropriate
6407         declaration when applying default attributes.
6408         (init_function_format_info): Remove.
6409         * tree.h (enum attribute_flags): Add ATTR_FLAG_BUILT_IN.
6410         (insert_default_attributes): Declare.
6411
6412 2001-10-02  Joseph S. Myers  <jsm28@cam.ac.uk>
6413
6414         * c-format.c (CPLUSPLUS_STD_VER): Define to STD_C94.
6415
6416 2001-10-01  Jim Wilson  <wilson@redhat.com>
6417
6418         * sched-deps.c (add_dependence): When elide conditional dependence,
6419         check that insn doesn't modify cond2.
6420
6421 2001-10-01  Dale Johannesen  <dalej@apple.com>
6422
6423         * config/rs6000/rs6000.h (enum processor_type): Add support
6424         for 7400 (G4) and 7450.
6425         (RTX_COSTS): Ditto.
6426         * config/rs6000/rs6000.c (rs6000_override_options): Ditto.
6427         (rs6000_issue_rate): Ditto.
6428         (rs6000_adjust_cost): Fix cycle counts for compares.
6429         (debug_stack_info):  Fix an obvious typo.
6430         * config/rs6000/rs6000.md: Add functional units for 7400 and 7450.
6431         * doc/invoke.texi: Document.
6432         * config/rs6000/darwin.h (TARGET_DEFAULT): Set to be reasonable
6433         for Darwin.
6434         (PROCESSOR_DEFAULT): Ditto.
6435
6436 2001-10-01  Loren J. Rittle  <ljrittle@acm.org>
6437
6438         * Makefile.in (STAGE2_FLAGS_TO_PASS): Propagate HOST_CC.
6439         (fixinc.sh): Map CC, CFLAGS and LDFLAGS to HOST_* versions for
6440         later recursive make invocation.
6441
6442 2001-10-01  Hans Boehm  <boehm@acm.org>
6443
6444         * optabs.c (emit_libcall_block): When using non-call exceptions,
6445         don't add REG_LIBCALL reg notes to trapping calls.
6446
6447 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
6448
6449         * flow.c (propagate_block_delete_libcall): Remove unused first arg
6450         (propagate_one_insn):  Update for above change
6451
6452 2001-10-01  David Billinghurst <David.Billinghurst@riotinto.com>
6453
6454         * unwind-sjlj.c (_Unwind_GetRegionStart, _Unwind_GetDataRelBase,
6455         _Unwind_GetTextRelBase): Argument is unused.
6456
6457 Mon Oct  1 19:20:57 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6458
6459         * alias.c (get_alias_set): Try to replace PLACEHOLDER_EXPR.
6460         Loop through NOPs, placeholders, and components.
6461         Don't go through NOPs if change mode.
6462         (record_alias_subset): Do nothing if SUBSET and SET are the same.
6463         * emit-rtl.c (set_mem_alias_set): Enable check.
6464         * expr.c (find_placeholder): New function.
6465         (expand_expr, case PLACEHOLDER_EXPR): Use it.
6466         (expand_expr, case COMPONENT_EXPR): Always copy OP0 when we need
6467         to modify it and avoid unneeded copies.
6468         * expr.h (expand_expr): Always define.
6469         (find_placeholder): New declaration.
6470
6471 2001-10-01  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6472
6473         * config/m68hc11/m68hc11.md ("add-split"): Fix add split when
6474         operand 2 is the stack pointer.
6475         ("addr-peephole"): Fix address computation peephole when operand 2
6476         is the stack pointer.
6477
6478 Mon Oct  1 09:26:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6479
6480         * config/i386/i386.c (ix86_va_arg): Call set_mem_alias_set.
6481         (ix86_setup_incoming_varargs): Likewise.
6482
6483 2001-10-01  Jason Merrill  <jason_merrill@redhat.com>
6484
6485         * stor-layout.c (layout_type): Don't complain about too-large
6486         array here.
6487
6488 Mon Oct  1 06:43:41 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6489
6490         * function.c (keep_stack_depressed): Don't use delete_insn.
6491
6492         * expr.h (set_mem_alias_set): Move decl to here.
6493         * rtl.h (mem_attrs): New typedef and struct.
6494         (union rtunion_def): Add field for mem_attrs.
6495         (X0MEMATTR, MEM_ATTRS): New macros.
6496         (MEM_ALIAS_SET): Use MEM_ATTRS.
6497         (MEM_DECL, MEM_OFFSET, MEM_SIZE, MEM_ALIGN): New macros.
6498         (MEM_COPY_ATTRIBUTES): Copy MEM_ATTRS.
6499         (set_mem_alias_set): Delete decl from here.
6500
6501         * alias.c (set_mem_alias_set): Delete from here.
6502         * emit-rtl.c (mem_attrs_htab): New variable.
6503         (rtx_htab_mark, rtx_htab_mark_1): Deleted.
6504         (mem_attrs_htab_hash, mem_attrs_htab_eq): New functions.
6505         (mem_attrs_mark, get_mem_attrs): Likewise.
6506         (gen_rtx_MEM): Clear MEM_ATTRS.
6507         (set_mem_attributes): Move to here.
6508         (set_mem_alias_set): Likewise, and call get_mem_attrs.
6509         (init_emit_once): const_int_htab now deletable htab.
6510         Initialize mem_attrs_htab.
6511         * explow.c (set_mem_attributes): Delete from here.
6512         * function.c (put_var_into_stack): Clear MEM_ATTRS.
6513         (gen_mem_addressof): Likewise; rework to use set_mem_attributes.
6514         * ggc-common.c (ggc_mark_rtx_children, case MEM): New case.
6515         * reload1.c (reload): Rework changing REG to MEM.
6516
6517 2001-09-30  H.J. Lu <hjl@gnu.org>
6518
6519         * acconfig.h (PREFIX_INCLUDE_DIR): New variable.
6520         * config.in: Rebuild.
6521
6522 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6523
6524         * config/m68hc11/m68hc11.md ("cmpqi_1"): Fix constraints.
6525         ("tsthi_1"): Avoid allocation in register y.
6526         ("*movqi_68hc12"): Reorganize and fix constraints.
6527         ("zero_extendqisi2"): Prefer d over x and y for operand 1.
6528         ("addqi3"): Likewise.
6529         ("addhi3"): Fix constraints.
6530         ("*logicalhi3_zexthi"): Disparage soft registers.
6531
6532 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6533
6534         * config/m68hc11/m68hc11.c (m68hc11_gen_movhi): Fix move of sp
6535         to tmp reg.
6536
6537 2001-09-30  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
6538
6539         * config/m68hc11/m68hc11.h(INCOMING_RETURN_ADDR_RTX): Remove so
6540         that we use setjmp/longjmp exceptions.
6541
6542 2001-09-30  Neil Booth  <neil@daikokuya.demon.co.uk>
6543
6544         * cpphash.h (POOL_ALIGN, POOL_FRONT, POOL_LIMIT, POOL_BASE,
6545         POOL_SIZE, POOL_ROOM, POOL_COMMIT, struct cpp_chunk,
6546         struct cpp_pool, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
6547         _cpp_pool_alloc, _cpp_next_chunk): Remove.
6548         (_cpp_extend_buff, BUFF_ROOM): Update.
6549         (_cpp_append_extend_buff): New.
6550         (struct cpp_reader): Remove macro_pool, add a_buff.
6551         * cppinit.c (cpp_create_reader): Initialize a_buff, instead of
6552         macro_pool.
6553         (cpp_destroy): Free a_buff instead of macro_pool.
6554         * cpplex.c (new_chunk, chunk_suitable, _cpp_next_chunk,
6555         new_chunk, _cpp_init_pool, _cpp_free_pool, _cpp_pool_reserve,
6556         _cpp_pool_alloc, ): Remove.
6557         (parse_number, parse_string): Update use of _cpp_extend_buff.
6558         (_cpp_extend_buff): Update.
6559         (_cpp_append_extend_buff, cpp_aligned_alloc): New.
6560         * cpplib.c (glue_header_name, parse_answer):
6561         Update use of _cpp_extend_buff.
6562         (cpp_register_pragma, cpp_register_pragma_space): Use
6563         _cpp_aligned_alloc.
6564         (do_assert, do_unassert): Check for EOL, update.
6565         * cppmacro.c (stringify_arg, collect_args): Update to use
6566         _cpp_extend_buff and _cpp_append_extend_buff.
6567         (save_parameter, parse_params, alloc_expansion_token,
6568         _cpp_create_definition): Rework memory management.
6569
6570 2001-09-29  Andris Pavenis  <pavenis@lanet.lv>
6571
6572         * config/i386/xm-djgpp.h (GCC_DRIVER_HOST_INITIALIZATION): Don't
6573         update md_exec_prefix.
6574         (UPDATE_PATH_HOST_CANONICALIZE): Don't free PATH as it can point
6575         to string constant.
6576
6577 2001-09-30  Ulrich Weigand  <uweigand@de.ibm.com>
6578
6579         * config/s390/s390.h (EXTRA_CC_MODES): Add CCLmode.
6580         (SELECT_CC_MODE): Use s390_select_ccmode.
6581         * config/s390/s390-protos.h (s390_select_ccmode): Add.
6582         * config/s390/s390.c (s390_select_ccmode): New.
6583         (s390_match_ccmode): Add CCLmode.
6584         (s390_branch_condition_mask, s390_branch_condition_mnemonic): New.
6585         (output_branch_condition, output_inverse_branch_condition): Removed.
6586         (print_operand): Use s390_branch_condition_mnemonic.
6587         * config/s390/s390.md (addsi3_cc, addsi3_cconly, addsi3_cconly2,
6588         subsi3_cc, subsi3_cconly): Use logical instructions and CCLmode.
6589         (bunordered, bordered, buneq, bungt, bunlt, bnuge, bunle, bltgt): New.
6590
6591         * config/s390/s390.c (check_and_change_labels): Preserve CC mode
6592         when converting conditional branches to far branches.
6593         * config/s390/s390.md (cmpstr_const, cmpstr_64, cmpstr_31, cmpint_si,
6594         cmpint_di): Use CCSmode instead of CCUmode.
6595
6596         * config/s390/s390.c (legitimate_la_operand_p): New.
6597         * config/s390/s390-protos.h (legitimate_la_operand_p): Add.
6598         * config/s390/s390.md (movsi): Convert load address patterns to
6599         arithmetic operations when necessary.
6600         (addaddr_picR, addaddr_picL, addaddr_picN): Removed.
6601         (do_la): Renamed to *do_la and use legitimate_la_operand_p.
6602         (*do_la_reg_0): Don't use before reload.
6603
6604         * config/s390/s390.c (legitimize_address): Make more efficient
6605         use of two-register addressing mode.
6606
6607         * config/s390/s390.c (s390_function_prologue): Fix incorrect prolog
6608         with -mno-backchain in some corner cases.
6609
6610         * config/s390/s390.md (cmpsi_cct): Operands 0 and 1 do not commute.
6611
6612 2001-09-29  Alexandre Oliva  <aoliva@redhat.com>
6613
6614         * reload.c (find_reloads): Mark new USE insns with QImode.
6615         (find_reloads_toplev, find_reloads_address, subst_reg_equivs,
6616         find_reloads_subreg_address): Likewise.
6617         * regrename.c (note_sets, clear_dead_regs): Abort if pseudos are
6618         encountered.
6619         * reload1.c (reload_combine_note_use): Likewise, inside USEs and
6620         CLOBBERs.
6621         (reload): Make sure there are no USEs with mode other than
6622         VOIDmode.  At the end, remove those marked with QImode.
6623
6624 2001-09-29  Per Bothner  <per@bothner.com>
6625
6626         * cppdefault.c (cpp_include_defaults):  Also search PREFIX_INCLUDE_DIR.
6627         * Makefile.in (includedir):  Rename to local_includedir.
6628         (includedir):  Define as $(prefix)/include.
6629         * config.in (PREFIX_INCLUDE_DIR):  New variable.
6630         * configure.in (PREFIX_INCLUDE_DIR):  Test for new variable.
6631
6632 2001-09-29  Bernd Schmidt  <bernds@redhat.com>
6633
6634         * config/i386/i386.c (init_mmx_sse_builtins): Fix type of storelps and
6635         storehps builtins.
6636         * doc/extend.texi (Vector Extensions): New node.
6637         * doc/invoke.texi (Machine Dependent Options): Add documentation for
6638         i386 -mmmx, -msse, -m3dnow.
6639
6640 Sat Sep 29 15:08:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
6641
6642         * doc/invoke.texi (Optimize Options): Revert an accidental checkin.
6643
6644 2001-09-29  Hans-Peter Nilsson  <hp@axis.com>
6645
6646         * cse.c (cse_insn) [HAVE_cc0]: Fix typo delete-insn -> delete_insn.
6647
6648         * doc/invoke.texi (Optimize Options): Delete spurious @table.
6649
6650 2001-09-28  Richard Henderson  <rth@redhat.com>
6651
6652         * varasm.c (assemble_integer): Bound alignment check by
6653         BIGGEST_ALIGNMENT.
6654
6655         * cfgrtl.c (redirect_edge_and_branch): Abort if redirect_jump fails.
6656
6657 2001-09-28  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
6658
6659         * config/i386/sol2.h (CPLUSPLUS_CPP_SPEC): Define.
6660
6661 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
6662
6663         Mostly from Graham Stott  <grahams@redhat.com>
6664         * c-common.c (type_for_mode): Add support for V2SFmode.
6665         * tree.c (build_common_tree_nodes_2): Likewise.
6666         * tree.h (enum tree_index, global_trees): Likewise.
6667         * config/i386/i386.c (x86_3dnow_a): New variable.
6668         (override_options): Support 3Dnow extensions.
6669         (bdesc_2arg, bdesc_1arg): Some SSE instructions are also part of
6670         Athlon's version of 3Dnow.
6671         (ix86_init_mmx_sse_builtins): Create 3Dnow builtins.
6672         (ix86_expand_builtin): Handle them.
6673         (ix86_hard_regno_mode_ok): Support V2SFmode if using 3Dnow.
6674         * config/i386/i386.h (MASK_3DNOW, MASK_3DNOW_A, TARGET_3DNOW,
6675         TARGET_3DNOW_A): New macros.
6676         (TARGET_SWITCHES): Add 3Dnow switches.
6677         (VALID_MMX_REG_MODE_3DNOW): New macro.
6678         (VECTOR_MODE_SUPPORTED_P): Use it.
6679         (enum ix86_builtins): Add entries for 3Dnow builtins.
6680         * config/i386/i386.md (movv2sf_internal, movv2sf, pushv2sf, pf2id,
6681         pf2iw, addv2sf3, subv2sf3, subrv2sf3, gtv2sf3, gev2sf3, eqv2sf3,
6682         pfmaxv23sf3, pfminv2sf3, mulv2sf3, femms, prefetch_3dnow, prefetchw,
6683         pfacc, pfnacc, pfpnacc, pi2fw, floatv2si2, pavgusb, pfrcpv2sf2,
6684         pfrcpit1v2sf3, pfrcpit2v2sf3, pfrsqrtv2sf2, pfrsqit1v2sf3,
6685         pmulhrwvhi3, pswapdv2si2, pswapdv2sf2): New patterns.
6686         (mmx_pmovmskb, mmx_maskmovq, sse_movntdi, umulv4hi3_highpart,
6687         mmx_uavgv8qi3, mmx_uavgv4hi3, mmx_psadbw, mmx_pinsrw, mmx_pextrw,
6688         mmx_pshufw, umaxv8qi3, smaxv4hi3, uminv8qi3, sminv4hi3, sfence,
6689         sfence_insn, prefetch): Make these available if TARGET_SSE or
6690         TARGET_3DNOW_A.
6691
6692 Fri Sep 28 19:18:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
6693
6694         * i386-protos.h (ix86_setup_incoming_varargs, ix86_va_arg,
6695         ix86_va_start, ix86_build_va_list): Declare.
6696         * i386.c (ix86_setup_incoming_varargs, ix86_va_arg,
6697         ix86_va_start, ix86_build_va_list): New global functions.
6698         * i386.md (sse_prologue_save_insn): New insn.
6699         (sse_prologue_save): New expander.
6700         * i386.h (EXPAND_BUILTIN_VA_ARG, EXPAND_BUILTIN_VA_START,
6701         BUILD_VA_LIST_TYPE, SETUP_INCOMING_VARARGS): New macros.
6702
6703 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6704
6705         * cpplex.c (new_buff, _cpp_get_buff, _cpp_extend_buff):
6706         Use size_t everywhere, make definitions consistent with
6707         prototypes.
6708
6709 Fri Sep 28 14:59:34 CEST 2001  Jan Hubicka  <jh@suse.cz>
6710
6711         * gcse.c (replace_store_insn): Use delete_insn.
6712         * loop.c (move_movables): Likewise; avoid delete_insn
6713         from clobbering notes moved elsewhere.
6714         (check_dbra_loop): Use delete_insn.
6715         * ssa.c (convert_from_ssa): Likewise.
6716         * cse.c (cse_insn): Use delete_insn.
6717
6718 2001-09-28  Neil Booth  <neil@daikokuya.demon.co.uk>
6719
6720         * cpphash.h (struct cpp_buff): Make unsigned.
6721         (_cpp_get_buff): Take length of size_t.
6722         (_cpp_unaligned_alloc): New.
6723         (BUFF_ROOM, BUFF_FRONT, BUFF_LIMIT): New.
6724         (struct cpp_reader): Remove ident_pool.  Add u_buff.
6725         * cppinit.c (cpp_create_reader): Initialize u_buff, not ident_pool.
6726         (cpp_destroy): Destroy u_buff, not ident_pool.
6727         * cpplex.c (parse_number, parse_string, save_comment,
6728         cpp_token_as_text): Update to use the unaligned buffer.
6729         (new_buff): Make unsigned.
6730         (_cpp_unaligned_alloc): New.
6731         * cpplib.c (glue_header_name): Update to use the unaligned buffer.
6732         * cppmacro.c (new_number_token, builtin_macro, stringify_arg):
6733         Similarly.
6734         (collect_args): Make unsigned.
6735
6736 2001-09-27  Zack Weinberg  <zack@codesourcery.com>
6737
6738         * cpplex.c (cpp_output_token): Use a putc loop for
6739         SPELL_OPERATOR, and fwrite for SPELL_IDENT.
6740
6741         * configure.in: Detect fwrite_unlocked and fprintf_unlocked.
6742         * configure, config.in: Regenerate.
6743         * system.h: Replace fwrite and fprintf with their unlocked
6744         variants if available.
6745
6746 2001-09-27  Richard Henderson  <rth@redhat.com>
6747
6748         * dwarf2out.c (dwarf2out_frame_finish): Never elide .debug_frame
6749         in favour of .eh_frame.
6750
6751 2001-09-27  Aldy Hernandez  <aldyh@redhat.com>
6752
6753         * config/rs6000/rs6000.h (FUNCTION_VALUE): Change hardcoded 33 and 3
6754         to macros.
6755         (LIBCALL_VALUE): Likewise.
6756
6757 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6758
6759         * cpphash.h: Update comment.
6760         * cpplex.c: Update comments.
6761         (_cpp_can_paste): Remove.
6762         * cpplib.h (_cpp_can_paste): Remove.
6763         * cppmacro.c (paste_tokens, paste_all_tokens): Update to use the
6764         lexer rather than _cpp_can_paste.
6765
6766 2001-09-27  Neil Booth  <neil@daikokuya.demon.co.uk>
6767
6768         * doc/cppinternals.texi: Update.
6769
6770 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6771
6772         * cpphash.h (struct cpp_pool): Remove locks and locked.
6773         (struct cpp_context): Add member buff.
6774         (struct cpp_reader): Remove member argument_pool.
6775         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6776         * cppinit.c (cpp_create_reader, cpp_destroy): Argument_pool is dead.
6777         * cpplex.c (chunk_suitable): Remove pool argument.
6778         (MIN_BUFF_SIZE, BUFF_SIZE_UPPER_BOUND, EXTENDED_BUFF_SIZE): New.
6779         (new_buff, _cpp_extend_buff): Update.
6780         (_cpp_get_buff): Fix silly pointer bug.  Be more selective about
6781         which buffer is returned.
6782         (_cpp_next_chunk, _cpp_init_pool): Pool locking removed.
6783         (_cpp_lock_pool, _cpp_unlock_pool): Remove.
6784         * cppmacro.c (lock_pools, unlock_pools): Remove.
6785         (push_ptoken_context): Take a _cpp_buff.
6786         (enter_macro_context): Pool locking removed.
6787         (replace_args): Use a _cpp_buff for the replacement list with
6788         arguments replaced.
6789         (push_token_context): Clear buff.
6790         (expand_arg): Use _cpp_pop_context.
6791         (_cpp_pop_context): Free a context's buffer, if any.
6792
6793 2001-09-26  DJ Delorie  <dj@redhat.com>
6794
6795         * c-typeck.c (digest_init): Check for sizeless arrays.
6796
6797 2001-09-26  Richard Henderson  <rth@redhat.com>
6798
6799         * optabs.c (init_one_libfunc): Create a dummy function type
6800         instead of using error_mark_node.
6801
6802 2001-09-26  Neil Booth  <neil@daikokuya.demon.co.uk>
6803
6804         * cpphash.h (struct _cpp_buff, _cpp_get_buff, _cpp_release_buff,
6805         _cpp_extend_buff, _cpp_free_buff): New.
6806         (struct cpp_reader): New member free_buffs.
6807         * cppinit.c (cpp_destroy): Free buffers.
6808         * cpplex.c (new_buff, _cpp_release_buff, _cpp_get_buff,
6809         _cpp_extend_buff, _cpp_free_buff): New.
6810         * cpplib.h (struct cpp_options): Remove unused member.
6811         * cppmacro.c (collect_args): New.  Combines the old parse_arg
6812         and parse_args.  Use _cpp_buff for memory allocation.
6813         (funlike_invocation_p, replace_args): Update.
6814
6815 Wed Sep 26 13:20:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
6816
6817         * final.c (final_scan_insn): Use delete_insn instead of delete_note.
6818
6819 2001-09-25  Andrew Haley  <aph@cambridge.redhat.com>
6820
6821         * except.c (sjlj_mark_call_sites): Change address inside sequence.
6822
6823 2001-09-24  Andrew Haley  <aph@cambridge.redhat.com>
6824
6825         * config/sh/linux.h (LINK_SPEC): Set dynamic-linker to agree with
6826         glibc.
6827
6828 2001-09-25  Janis Johnson  <janis187@us.ibm.com>
6829             Jim Wilson  <wilson@redhat.com>
6830
6831         * doc/install.texi (Specific, ia64-*-linux): Document.
6832
6833 Tue Sep 25 17:13:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
6834
6835         * Makefile.in (cfgrtl.o): Add.
6836         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6837         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6838         free_aux_for_edge): Declare.
6839         * cfg.c
6840         (HAVE_return): Undefine.
6841         * basic-block.h (alloc_block, alloc_aux_for_block, alloc_aux_for_blocks,
6842         free_aux_for_block, alloc_aux_for_edge, alloc_aux_for_edges,
6843         free_aux_for_edge): New global functions.
6844         (first_delete_block): New static variable.
6845         (init_flow): Clear first_delete_block.
6846         (basic_block_for_insn, label_value_list, tail_recursion_label_list,
6847          can_delete_note_p, can_delete_label_p, commit_one_edge_insertion,
6848          try_redirect_by_replacing_jump, last_loop_beg_note,
6849          back_edge_of_syntactic_loop_p, force_nonfallthru_and_redirect,
6850          delete_insn, delete_insn_chain, create_basic_block_structure,
6851          create_basic_block, flow_delete_block, compute_bb_for_insn,
6852          free_bb_for_insn, update_bb_for_insn, set_block_for_insn,
6853          set_block_for_new_insns, split_block, merge_blocks_nomove,
6854          block_label, try_redirect_by_replacing_jump, last_loop_beg_note,
6855          redirect_edge_and_branch, force_nonfallthru_and_redirect,
6856          force_nonfallthru, redirect_edge_and_branch_force, tidy_fallthru_edge,
6857          tidy_fallthru_edges, split_edge, insert_insn_on_edge,
6858          commit_one_edge_insertion, commit_edge_insertions, dump_bb, debug_bb,
6859          debug_bb_n, print_rtl_with_bb, verify_flow_info, purge_dead_edges,
6860          purge_all_dead_edges): Move to ....
6861         * cfgrtl.c: New file; .... Here.
6862
6863         * bb-reorder.c (fixup_reorder_chain): Use alloc_aux_for_block.
6864         (reroder_basic_block): Use alloc_aux_for_blocks.
6865         * predict.c (estimate_bb_frequencies): Likewise; use
6866         alloc_aux_for_edges.
6867         * profile.c (compute_branch_probabilities): Likewise.
6868         (branch_prob): Likewise.
6869         * reg-stack.c (reg_to_stack): Likewise.
6870
6871         * emit-rtl.c (emit_insns_after): Never return NULL.
6872
6873         * basic-block.h (set_block_for_new_insns): Delete.
6874         * cfgrtl.c (set_block_for_new_insns): Delete.
6875
6876         * cfgcleanup.c (try_optimize_cfg): Add fake exit edges for noreturn
6877         calls when crossjumping.
6878
6879         * cfgcleanup.c (try_simplify_condjump): Cleanup invert_jump call.
6880         * unroll.c (copy_loop_body): Use delete_insn.
6881
6882         * final.c (final, final_scan_insn): Use delete_insn/delete_note.
6883         * function.c (fixup_var_refs_insn, fixup_var_refs_1,
6884         keep_stack_depressed): Likewise.
6885         * gcse.c (cprop_cc0_jump): Likewise.
6886         * local-alloc.c (update_equiv_regs): Likewise.
6887         * loop.c (scan_loop, loop_delete_insns): Likewise.
6888         * regmove.c (try_auto_increment, fixup_match_1): Likewise.
6889         * reload1.c (reload, calculate_needs_all_insns, reload_as_needed,
6890         delete_output_reload, delete_address_reloads_1,
6891         reload_cse_delete_noop_set, reload_combine, reload_cse_move2add):
6892         Likewise.
6893         * sibcall.c (replace_call_placeholder): Likewise.
6894         * cse.c (cse_insn): Likewise.
6895
6896 2001-09-25  Bernd Schmidt  <bernds@redhat.com>
6897
6898         From Graham Stott  <grahams@redhat.com>
6899         (def_builtin): Only define builtins appropriate for target_flags.  All
6900         callers changed.
6901         (builtin_decsription): Add new field mask which is used to determine
6902         when to define the builtin via the macro def_builtin.
6903
6904         (bdesc_comi): Initialise new mask fields.
6905         (bdesc_2srg): Likewise.
6906         (bdesc_1arg): Likewise.
6907
6908         * config/i386/i386.c (ix86_init_builtins): Correct return type
6909         building v4hi_ftype_v4hi_int_int tree node.
6910         (ix86_expand_sse_comi): Fix typo swapping operands.
6911         Don't swap comparision condition, it is already swapped.
6912         (ix86_expand_sse_compare): Before swapping operands
6913         move operand 1 into new rtx and not the target rtx.
6914         Don't swap comparison condition, it is already swapped.
6915         Always check whether we need to create a new TARGET.
6916
6917         * config/i386/i386.md: (sse_comi) Fix typos.
6918         (sse_ucomi): Likewise.
6919         (cvtss2si): Fix operand 0 contraint.
6920         (cvttss2si): Likewise.
6921         (sse_unpckhps): Fix mode for operand 2.
6922         (sse_unpcklps): Likewise.
6923
6924 2001-09-25  Graham Stott  <grahams@redhat.com>
6925
6926         * sibcall.c (skip_copy_to_return_value): Tighten return value
6927         copy check.
6928
6929 2001-09-24  David Edelsohn  <edelsohn@gnu.org>
6930
6931         * rs6000.c (lwa_operand): Address must be word aligned.
6932
6933 Mon Sep 24 18:57:59 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
6934
6935         * tree.c (type_hash_marked_p): Consider as marked if debug symbol
6936         number has been set.
6937         (type_hash_mark): Mark type itself.
6938
6939 2001-09-24  Neil Booth  <neil@daikokuya.demon.co.uk>
6940
6941         * c-lex.c (cb_def_pragma): Update.
6942         (c_lex): Update, and skip padding.
6943         * cppexp.c (lex, parse_defined): Update, remove unused variable.
6944         * cpphash.h (struct toklist): Delete.
6945         (union utoken): New.
6946         (struct cpp_context): Update.
6947         (struct cpp_reader): New members eof, avoid_paste.
6948         (_cpp_temp_token): New.
6949         * cppinit.c (cpp_create_reader): Update.
6950         * cpplex.c (_cpp_temp_token): New.
6951         (_cpp_lex_direct): Add PREV_WHITE when parsing args.
6952         (cpp_output_token): Don't print leading whitespace.
6953         (cpp_output_line): Update.
6954         * cpplib.c (glue_header_name, parse_include, get__Pragma_string,
6955         do_include_common, do_line, do_ident, do_pragma,
6956         do_pragma_dependency, _cpp_do__Pragma, parse_answer,
6957         parse_assertion): Update.
6958         (get_token_no_padding): New.
6959         * cpplib.h (CPP_PADDING): New.
6960         (AVOID_LPASTE): Delete.
6961         (struct cpp_token): New union member source.
6962         (cpp_get_token): Update.
6963         * cppmacro.c (macro_arg): Convert to use pointers to const tokens.
6964         (builtin_macro, paste_all_tokens, paste_tokens, funlike_invocation_p,
6965         replace_args, quote_string, stringify_arg, parse_arg, next_context,
6966         enter_macro_context, expand_arg, _cpp_pop_context, cpp_scan_nooutput,
6967         _cpp_backup_tokens, _cpp_create_definition): Update.
6968         (push_arg_context): Delete.
6969         (padding_token, push_token_context, push_ptoken_context): New.
6970         (make_string_token, make_number_token): Update, rename.
6971         (cpp_get_token): Update to handle tokens as pointers to const,
6972         and insert padding appropriately.
6973         * cppmain.c (struct printer): New member prev.
6974         (check_multiline_token): Constify.
6975         (do_preprocessing, cb_line_change): Update.
6976         (scan_translation_unit): Update to handle spacing.
6977         * scan-decls.c (get_a_token): New.
6978         (skip_to_closing_brace, scan_decls): Update.
6979         * fix-header.c (read_scan_file): Update.
6980
6981         * doc/cpp.texi: Update.
6982
6983 2001-09-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
6984
6985         * c-aux-info.c (affix_data_type): Use ATTRIBUTE_MALLOC.  Avoid
6986         leak by passing malloc'ed pointer to reconcat, not concat.
6987
6988 2001-09-24  DJ Delorie  <dj@redhat.com>
6989
6990         * varasm.c (array_size_for_constructor): Handle STRING_CSTs also.
6991
6992 2001-09-24  Ulrich Weigand  <uweigand@de.ibm.com>:
6993
6994         * flow.c (delete_dead_jumptables): Delete jumptable if the only
6995         reference is from the literal pool.
6996
6997 2001-09-24  Janis Johnson  <janis187@us.ibm.com>
6998
6999         * doc/install.texi (Final install): Request additional information
7000         in mail about successful builds.
7001
7002 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7003
7004         * pa.c (return_addr_rtx): Return NULL_RTX if count is not zero.  Use
7005         initial value of return pointer register instead of value in frame-20.
7006         Revise comments.
7007
7008 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7009
7010         * som.h (ASM_OUTPUT_EXTERNAL): Improve formatting.
7011         (ASM_OUTPUT_EXTERNAL_LIBCALL): Only generate a .IMPORT statement for
7012         the libcall if there isn't a referenced identifier for the symbol.
7013
7014 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7015
7016         * pa.h (TRAMPOLINE_TEMPLATE): Add two words to the template for
7017         non 64-bit machines.  Use these as a plabel for the trampoline.
7018         (TRAMPOLINE_SIZE): Adjust size for new words.
7019         (INITIALIZE_TRAMPOLINE): Initialize new words.
7020         (TRAMPOLINE_ADJUST_ADDRESS): New.  Adjust address to make it a
7021         pointer to the plabel in the trampoline.
7022
7023 2001-09-24  John David Anglin  <dave@hiauly1.hia.nrc.ca>
7024
7025         * pa.c (function_arg): Pass floating arguments in both general and
7026         floating registers in indirect (dynamic) calls when generating code
7027         for the 32 bit ABI and the HP assembler.
7028
7029 2001-09-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
7030
7031         * doc/install.texi: Markup fixes.
7032         Use Solaris 2, SunOS 4 as appropriate.
7033         (Specific, *-*-solaris2*): Explain this.
7034         Unconditionally warn against /usr/ucb tools.
7035         Remove Sun as warning, obsolete.
7036         Move X11 header bug workaround here, update patches.
7037         (Specific, sparc-sun-solaris2*): Detail Sun as fix status.
7038         (Specific, sparc-sun-solaris2.7): Update patch 106950 status.
7039
7040 2001-09-23  Zack Weinberg  <zack@codesourcery.com>
7041
7042         * errors.h (warning, error, fatal, internal_error): Don't mark
7043         with ATTRIBUTE_PRINTF_n.
7044         * toplev.h (internal_error, fatal_io_error, warning, error,
7045         pedwarn, pedwarn_with_file_and_line, warning_with_file_and_line,
7046         error_with_file_and_line, sorry, error_for_asm, warning_for_asm):
7047         Likewise.
7048
7049 Sun Sep 23 18:19:48 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7050
7051         * function.c (pop_function_context_from): var_refs_queue
7052         and temp slots now in GC memory.
7053         (mark_function_status, free_after_compilation): Likewise;
7054         also struct function now in GC memory.
7055         (assign_stack_temp_for_type): struct temp_slot now in GC memory.
7056         (combine_temp_slots): Likewise.
7057         (schedule_fixup_var_refs): var_refs_queue now in GC memory.
7058         (prepare_function_start): Use GC memory for struct function.
7059         (mark_temp_slot): Deleted.
7060         (gcc_mark_struct_function): struct function now in GC memory.
7061
7062         * fold-const.c (extract_muldiv, case PLUS_EXPR): Only adjust
7063         code for division, not modulus.
7064
7065         * rtl.def (MEM): Remove obsolete part of comment.
7066
7067 2001-09-22  Joseph S. Myers  <jsm28@cam.ac.uk>
7068
7069         * c-format.c (init_function_format_info): Check __builtin_printf
7070         and __builtin_fprintf even if -ffreestanding.  Check C99 functions
7071         in gnu89 mode.
7072
7073 Sat Sep 22 09:09:32 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7074
7075         * c-common.c (format_attribute_table): Remove decl.
7076         * tree.h (format_attribute_table, lang_attribute_table): New decls.
7077         (lang_attribute_common): Likewise.
7078
7079         * function.c (fix_lexical_address): Use set_mem_alias_set.
7080         (expand_function_start): Likewise.
7081         * config/alpha/alpha.h (SETUP_INCOMING_VARARGS): Likewise.
7082
7083         * varasm.c (output_constant): Fix unused variable warning.
7084
7085         * attribs.c: New file, from c-common.c.
7086         (attribute_tables): Now four elements.
7087         (format_attribute_table, lang_attribute_common): New variables.
7088         (init_attributes): Reflect above changes.
7089         (handle_mode_attribute): Delete check for wider than uintmax.
7090         * c-common.c: Delete parts moved to attribs.c.
7091         (enum attrs): Deleted; unused.
7092         (c_format_attribute_table): New variable.
7093         (c_common_lang_init): Initialize format_attribute_table with it.
7094         * c-common.h (decl_attributes): Remove decl.
7095         * tree.h (decl_attribute): Move it to here.
7096         * Makefile.in (C_AND_OBJS_OBJS): Add attribs.o.
7097         (attribs.o): New rule.
7098
7099 2001-09-22  Andreas Jaeger  <aj@suse.de>
7100
7101         * builtins.c (c_getstr): Remove unused variable.
7102
7103 2001-09-21  Richard Henderson  <rth@redhat.com>
7104
7105         * reload1.c (reload): Use delete_insn instead of splatting
7106         NOTE_INSN_DELETED.
7107
7108 2001-09-21  Richard Henderson  <rth@redhat.com>
7109
7110         * reload.c (push_secondary_reload): Don't check for "=" in output
7111         constraint after ""->ALL_REGS check.
7112
7113 2001-09-21  Richard Henderson  <rth@redhat.com>
7114
7115         * predict.c (expected_value_to_br_prob): Use pc_set.
7116
7117         * optabs.c (init_one_libfunc): Gen a FUNCTION_DECL for use by
7118         ENCODE_SECTION_INFO; get SYMBOL_REF from make_decl_rtl.
7119
7120 2001-09-21  Richard Henderson  <rth@redhat.com>
7121
7122         * rtl.h (LCT_RETURNS_TWICE): New.
7123         * calls.c (emit_call_1): Set current_function_calls_setjmp for
7124         ECF_RETURNS_TWICE.
7125         (emit_library_call_value_1): Map LCT_RETURNS_TWICE
7126         to ECF_RETURNS_TWICE.
7127         * except.c (sjlj_emit_function_enter): Use LCT_RETURNS_TWICE for
7128         call to setjmp.
7129
7130         * unwind-sjlj.c: Invent the setjmp.h declarations if inhibit_libc.
7131
7132         * config/stormy16/stormy16.h (DONT_USE_BUILTIN_SETJMP): New.
7133         (JMP_BUF_SIZE): New.
7134
7135 2001-09-21  Richard Henderson  <rth@redhat.com>
7136
7137         * config/stormy16/stormy16.h (REG_CLASS_FROM_LETTER): Map 'd'
7138         to R8_REGS.
7139
7140 2001-09-21  Richard Henderson  <rth@redhat.com>
7141
7142         * tree.def (FDESC_EXPR): New.
7143         * expr.c (expand_expr): Handle it.
7144         * varasm.c (initializer_constant_valid_p): Likewise.
7145         (output_constant): Likewise.
7146         * defaults.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
7147         * config/ia64/ia64.h (TARGET_VTABLE_USES_DESCRIPTORS): New.
7148         (ASM_OUTPUT_FDESC): New.
7149         * doc/tm.texi: Document the new macros.
7150
7151 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
7152
7153         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Don't leave
7154         ADDR_VEC or ADDR_DIFF_VEC jump insns as part of the basic block
7155         once merging is complete.
7156
7157 Fri Sep 21 11:20:12 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7158
7159         * integrate.c (allocate_initial_values): Eliminate unused arg warning.
7160
7161 21-09-2001  Richard Earnshaw  (reanrsha@arm.com)
7162
7163         * cfgcleanup.c (flow_find_cross_jump): Delete any REG_EQUAL notes
7164         that would be invalid after a merge.
7165
7166 Fri Sep 21 14:24:29 CEST 2001  Jan Hubicka  <jh@suse.cz>
7167
7168         * basic-block.h (flow_delete_insn, flow_delete_insn_chain): Kill.
7169         * cfg.c (delete_insn): Rename from ....; use remove_insn; do not
7170         remove some labels.
7171         (flow_delete_insn): This one.
7172         (delete_insn_chain): Rename from ...; do not care labels.
7173         (flow_delete_insn_chain): ... this one.
7174         (flow_delete_block): Remove the insns one BB has been expunged.
7175         (merge_blocks_nomove): Likewise.
7176         (try_redirect_by_replacing_jump): Use delete_insn[_chain]; do not care
7177         updating BB boundaries.
7178         (tidy_fallthru_edge): Likewise.
7179         (commit_one_edge_insertion): Likewise.
7180         * cfgbuild.c (find_basic_block): Likewise.
7181         (find_basic_blocks_1): Likewise.
7182         * cfgcleanup.c (merge_blocks_move_predecessor_nojumps): Likewise.
7183         (try_crossjump_to_edge): Likewise.
7184         (try_optimize_cfg): Likewise.
7185         * cse.c (delete_trivially_dead_insns): Likewise.
7186         * df.c (df_insn_delete): Likewise.
7187         * doloop.c (doloop_modify): Use delete_related_insns.
7188         * emit-rtl.c (try_split): Likewise.
7189         (remove_insn): Update BB boundaries.
7190         * expect.c (connect_post_landing_pads): Use delete_related_insns.
7191         * flow.c (delete_dead_jumptables): Use delete_insn[_chain]; do not care
7192         updating BB boundaries.
7193         (propagate_block_delete_insn): Likewise.
7194         (propagate_block_delete_libcall): Likewise.
7195         * function.c (delete_handlers): Use delete_related_insns.
7196         (thread_prologue_and_epilogue_insns): Likewise.
7197         * gcse.c (delete_null_pointer_checks): Use delete_related_insns.
7198         * genpeep.c (gen_peephole): Use delete_related_insns.
7199         * ifcvt.c (noce_process_if_block): Use delete_insn; do not care updating
7200         BB boundaries.
7201         (find_cond_trap): Likewise.
7202         * integrate.c (save_for_inline): Use delete_related_insns.
7203         (copy_insn_list): Likewise.
7204         * jump.c (pruge_linie_number_notes): Likewise.
7205         (duplicate_loop_exit_test): Likewise.
7206         (delete_computation): Likewise.
7207         (delete_related_insn): Rename from ...; use delete_insn
7208         (delete_insn): ... this one.
7209         (redirect_jump): Use delete_related_insns.
7210         * loop.c (scan_loop): Likewise.
7211         (move_movables): Likewise.
7212         (find_and_verify_loops): Likewise.
7213         (check_dbra_loop): Likewise.
7214         * recog.c (peephole2_optimize): Likewise.
7215         * reg-stack.c (delete_insn_for_stacker): Remove.
7216         (move_for_stack_reg): Use delete_insn.
7217         * regmove.c (combine_stack_adjustments_for_block): Likewise.
7218         * reload1.c (delete_address_reloads): Use delete_related_insns.
7219         (fixup_abnormal_edges): Use delete_insn.
7220         * recog.c (emit_delay_sequence): Use delete_related_insns.
7221         (delete_from-delay_slot): Likewise.
7222         (delete_scheduled_jump): likewise.
7223         (optimize_skip): Likewise.
7224         (try_merge_delay_insns): Likewise.
7225         (full_simple_delay_slots): Likewise.
7226         (fill_slots_from_thread): Likewise.
7227         (relax_delay_slots): Likewise.
7228         (make_return_insns): Likewise.
7229         (dbr_schedule): Likewise.
7230         * rtl.h (delete_insn): Rename to delete_related_insns.
7231         (delete_insn, delete_insn_chain): New prototypes.
7232         * ssa-ccp (sse_fast_dce):  Remove deleting of DEF, as it is done
7233         by df_insn_delete already.
7234         * ssa-dce.c (delete_insn_bb): Use delete_insn.
7235         * ssa.c (convert_from_ssa): Use delete_related_insns.
7236         * unroll.c (unroll_loop): Likewise.
7237         (calculate_giv_inc): Likewise.
7238         (copy_loop_body): Likewise.
7239
7240         * i386-protos.h (ix86_libcall_value, ix86_function_value,
7241         ix86_function_arg_regno_p, ix86_function_arg_boundary,
7242         ix86_return_in_memory, ix86_function_value): Declare.
7243         * i386.c (x86_64_int_parameter_registers, x86_64_int_return_registers):
7244         new static valurables.
7245         (x86_64_reg_class): New enum
7246         (x86_64_reg_class_name): New array.
7247         (classify_argument, examine_argument, construct_container,
7248          merge_classes): New static functions.
7249         (optimization_options): Enable flag_omit_frame_pointer and disable
7250         flag_pcc_struct_return on 64bit.
7251         (ix86_libcall_value, ix86_function_value,
7252         ix86_function_arg_regno_p, ix86_function_arg_boundary,
7253         ix86_return_in_memory, ix86_function_value): New global functions.
7254         (init_cumulative_args): Refuse regparm on x86_64, set maybe_vaarg.
7255         (function_arg_advance): Handle x86_64 passing conventions.
7256         (function_arg): Likewise.
7257         * i386.h (FUNCTION_ARG_BOUNDARY): New macro.
7258         (RETURN_IN_MEMORY): Move offline.
7259         (FUNCTION_VALUE, LIBCALL_VALUE): Likewise.
7260         (FUNCTION_VALUE_REGNO_P): New macro.
7261         (FUNCTION_ARG_REGNO_P): Move offline.
7262         (struct ix86_args): Add maybe_vaarg.
7263         * next.h (FUNCTION_VALUE_REGNO_P): Delete.
7264         * unix.h (FUNCTION_VALUE_REGNO_P): Delete.
7265
7266 2001-09-21  Hartmut Penner  <hpenner@de.ibm.com>
7267
7268         * s390.md: Changed attributes for scheduling.
7269         * s390.c: (s390_adjust_cost, s390_adjust_priority)
7270         Changed scheduling
7271
7272 2001-09-21  Joseph S. Myers  <jsm28@cam.ac.uk>
7273
7274         Table-driven attributes.
7275         * c-decl.c, config/alpha/alpha.c, config/arc/arc.c,
7276         config/arm/arm.c, config/arm/pe.c, config/avr/avr.c,
7277         config/avr/avr.h, config/d30v/d30v.h, config/fr30/fr30.h,
7278         config/h8300/h8300.c, config/i386/cygwin.h, config/i386/winnt.c,
7279         config/m32r/m32r.c, config/mcore/mcore.c, config/sh/sh.c,
7280         config/stormy16/stormy16.h, config/v850/v850.c, doc/c-tree.texi,
7281         doc/tm.texi, ggc-common.c, integrate.c, print-tree.c, tree.c,
7282         tree.h: Rename DECL_MACHINE_ATTRIBUTES to DECL_ATTRIBUTES.
7283         * tree.h (struct tree_decl): Change machine_attributes to
7284         attributes.
7285         * doc/c-tree.texi: Document that all attributes are now attached
7286         to decls and types.
7287         * c-common.c (add_attribute, attrtab, attrtab_idx,
7288         default_valid_lang_attribute, valid_lang_attribute): Remove.
7289         (attribute_tables, attributes_initialized,
7290         c_common_attribute_table, default_lang_attribute_table): New
7291         variables.
7292         (handle_packed_attribute, handle_nocommon_attribute,
7293         handle_common_attribute, handle_noreturn_attribute,
7294         handle_unused_attribute, handle_const_attribute,
7295         handle_transparent_union_attribute, handle_constructor_attribute,
7296         handle_destructor_attribute, handle_mode_attribute,
7297         handle_section_attribute, handle_aligned_attribute,
7298         handle_weak_attribute, handle_alias_attribute,
7299         handle_no_instrument_function_attribute,
7300         handle_no_check_memory_usage_attribute, handle_malloc_attribute,
7301         handle_no_limit_stack_attribute, handle_pure_attribute): New
7302         functions.
7303         (init_attributes, decl_attributes): Rewrite to implement
7304         table-driven attributes.
7305         * c-common.h (enum attribute_flags): Move to tree.h.
7306         * c-format.c (decl_handle_format_attribute,
7307         decl_handle_format_arg_attribute): Rename to
7308         handle_format_attribute and handle_format_arg_attribute.  Update
7309         for table-driven attributes.
7310         * c-common.h (decl_handle_format_attribute,
7311         decl_handle_format_arg_attribute): Remove prototypes.
7312         (handle_format_attribute, handle_format_arg_attribute): Add
7313         prototypes.
7314         * c-decl.c (grokdeclarator): Handle attributes nested inside
7315         declarators.
7316         * c-parse.in (setattrs, maybe_setattrs): Remove.
7317         (maybe_type_quals_setattrs): Rename to maybe_type_quals_attrs.
7318         Update to handle nested attributes properly.
7319         (maybe_resetattrs, after_type_declarator,
7320         parm_declarator_nostarttypename, notype_declarator, absdcl1_noea,
7321         absdcl1_ea, direct_absdcl1): Update to handle nested attributes
7322         properly.
7323         (make_pointer_declarator): Update to handle nested attributes
7324         properly.
7325         * doc/extend.texi: Update documentation of limits of attributes
7326         syntax.  Warn about problems with attribute semantics in C++.
7327         * target.h (struct target): Remove valid_decl_attribute and
7328         valid_type_attribute.  Add attribute_table and
7329         function_attribute_inlinable_p.
7330         * target-def.h (TARGET_VALID_DECL_ATTRIBUTE,
7331         TARGET_VALID_TYPE_ATTRIBUTE): Remove.
7332         (TARGET_ATTRIBUTE_TABLE, TARGET_FUNCTION_ATTRIBUTE_INLINABLE_P):
7333         Add.
7334         (TARGET_INITIALIZER): Update.
7335         * integrate.c (FUNCTION_ATTRIBUTE_INLINABLE_P): Remove default
7336         definition.
7337         (function_attribute_inlinable_p): New function.  Check for the
7338         presence of any machine attributes before using
7339         targetm.function_attribute_inlinable_p.
7340         (function_cannot_inline_p): Update.
7341         * Makefile.in (integrate.o): Update dependencies.
7342         * doc/tm.texi: Update documentation of target attributes and
7343         example definition of TARGET_VALID_TYPE_ATTRIBUTE.
7344         * tree.c (default_valid_attribute_p, valid_machine_attribute):
7345         Remove.
7346         (default_target_attribute_table,
7347         default_function_attribute_inlinable_p): New.
7348         (lookup_attribute): Update comment to clarify handling of multiple
7349         attributes with the same name.
7350         (merge_attributes, attribute_list_contained): Allow multiple
7351         attributes with the same name but different arguments to appear in
7352         the same attribute list.
7353         * tree.h (default_valid_attribute_p): Remove prototype.
7354         (struct attribute_spec): New.
7355         (default_target_attribute_table): Declare.
7356         (enum attribute_flags): Move from c-common.h.  Add
7357         ATTR_FLAG_TYPE_IN_PLACE.
7358         (default_function_attribute_inlinable_p): Declare.
7359         * config/alpha/alpha.c (vms_valid_decl_attribute_p): Remove.
7360         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7361         (TARGET_ATTRIBUTE_TABLE): Define.
7362         (vms_attribute_table): New.
7363         * config/arc/arc.c (arc_valid_decl_attribute): Remove.
7364         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7365         (TARGET_ATTRIBUTE_TABLE): Define.
7366         (arc_attribute_table, arc_handle_interrupt_attribute): New.
7367         * config/arm/arm.c (arm_valid_type_attribute_p,
7368         arm_valid_decl_attribute_p, arm_pe_valid_decl_attribute_p):
7369         Remove.
7370         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
7371         define.
7372         (TARGET_ATTRIBUTE_TABLE): Define.
7373         (arm_attribute_table, arm_handle_fndecl_attribute,
7374         arm_handle_isr_attribute): New.
7375         * config/avr/avr.c (avr_valid_type_attribute,
7376         avr_valid_decl_attribute): Remove.
7377         (TARGET_VALID_DECL_ATTRIBUTE, TARGET_VALID_TYPE_ATTRIBUTE): Don't
7378         define.
7379         (TARGET_ATTRIBUTE_TABLE): Define.
7380         (avr_attribute_table, avr_handle_progmem_attribute,
7381         avr_handle_fndecl_attribute): New.
7382         * config/c4x/c4x.c (c4x_valid_type_attribute_p): Remove.
7383         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7384         (TARGET_ATTRIBUTE_TABLE): Define.
7385         (c4x_attribute_table, c4x_handle_fntype_attribute): New.
7386         * config/h8300/h8300.c (h8300_valid_decl_attribute): Remove.
7387         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7388         (TARGET_ATTRIBUTE_TABLE): Define.
7389         (h8300_attribute_table, h8300_handle_fndecl_attribute,
7390         h8300_handle_eightbit_data_attribute,
7391         h8300_handle_tiny_data_attribute): New.
7392         * config/i386/i386-protos.h (ix86_valid_type_attribute_p,
7393         i386_pe_valid_decl_attribute_p, i386_pe_valid_type_attribute_p):
7394         Remove prototypes.
7395         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New
7396         declarations.
7397         * config/i386/i386.c (ix86_valid_type_attribute_p: Remove.
7398         (TARGET_VALID_TYPE_ATTRIBUTE, TARGET_VALID_DECL_ATTRIBUTE): Don't
7399         define.
7400         (TARGET_ATTRIBUTE_TABLE): Define.
7401         (ix86_attribute_table, ix86_handle_cdecl_attribute,
7402         ix86_handle_regparm_attribute): New.
7403         * config/i386/winnt.c (i386_pe_valid_decl_attribute_p,
7404         i386_pe_valid_type_attribute_p): Remove.
7405         (ix86_handle_dll_attribute, ix86_handle_shared_attribute): New.
7406         * config/ia64/ia64.c (ia64_valid_type_attribute): Remove.
7407         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7408         (TARGET_ATTRIBUTE_TABLE): Define.
7409         (ia64_attribute_table): New.
7410         * config/m32r/m32r.c (m32r_valid_decl_attribute, interrupt_ident1,
7411         interrupt_ident2, model_ident1, model_ident2): Remove.
7412         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7413         (TARGET_ATTRIBUTE_TABLE): Define.
7414         (init_idents): Update.
7415         (m32r_attribute_table, m32r_handle_model_attribute): New.
7416         * config/m68hc11/m68hc11.c (m68hc11_valid_type_attribute_p):
7417         Remove.
7418         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7419         (TARGET_ATTRIBUTE_TABLE): Define.
7420         (m68hc11_attribute_table, m68hc11_handle_fntype_attribute): New.
7421         * config/mcore/mcore.c (mcore_valid_decl_attribute): Remove.
7422         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7423         (TARGET_ATTRIBUTE_TABLE): Define.
7424         (mcore_attribute_table, mcore_handle_naked_attribute): New.
7425         * config/ns32k/ns32k.c (ns32k_valid_type_attribute_p): Remove.
7426         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7427         (TARGET_ATTRIBUTE_TABLE): Define.
7428         (ns32k_attribute_table, ns32k_handle_fntype_attribute): New.
7429         * config/rs6000/rs6000.c (rs6000_valid_type_attribute_p): Remove.
7430         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define.
7431         (TARGET_ATTRIBUTE_TABLE): Define.
7432         (rs6000_attribute_table, rs6000_handle_longcall_attribute): New.
7433         * config/sh/sh.c (sh_valid_decl_attribute): Remove.
7434         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7435         (TARGET_ATTRIBUTE_TABLE): Define.
7436         (sh_attribute_table, sh_handle_interrupt_handler_attribute,
7437         sh_handle_sp_switch_attribute, sh_handle_trap_exit_attribute):
7438         New.
7439         * config/stormy16/stormy16.c (stormy16_valid_type_attribute):
7440         Remove.
7441         (TARGET_VALID_TYPE_ATTRIBUTE): Don't define
7442         (TARGET_ATTRIBUTE_TABLE): Define.
7443         (stormy16_attribute_table, stormy16_handle_interrupt_attribute):
7444         New.
7445         * config/v850/v850.c (v850_valid_decl_attribute): Remove.
7446         (TARGET_VALID_DECL_ATTRIBUTE): Don't define.
7447         (TARGET_ATTRIBUTE_TABLE): Define.
7448         (v850_attribute_table, v850_handle_interrupt_attribute,
7449         v850_handle_data_area_attribute): New.
7450         * config/v850/v850-c.c (mark_current_function_as_interrupt):
7451         Return void.  Call decl_attributes instead of
7452         valid_machine_attribute.
7453
7454 Fri Sep 21 01:49:41 2001  J"orn Rennecke <amylaar@redhat.com>
7455
7456         * sh-protos.h (sh_pr_n_sets): Declare.
7457         * sh.c (calc_live_regs): If the initial value for PR has been copied,
7458         look at the copy to determine if PR needs to be saved.
7459         sh_pr_n_sets: New function.
7460         * sh.h (RETURN_ADDR_RTX): Use get_hard_reg_initial_val.
7461         (ALLOCATE_INITIAL_VALUE): Define.
7462
7463         * sh.c (initial_elimination_offset):
7464         Fix RETURN_ADDRESS_POINTER_REGNUM case.
7465
7466 Fri Sep 21 01:13:56 2001  J"orn Rennecke <amylaar@redhat.com>
7467
7468         * integrate.c (allocate_initial_values): New function.
7469         * integrate.h (allocate_initial_values): Declare.
7470         * local-alloc.c (local_alloc): Move call to allocate_reg_info from
7471         here...
7472         * reload1.c (reload): And initialization of reg_equiv_memory_loc
7473         from here...
7474         * toplev.c (rest_of_compilation): To here.
7475         Call allocate_initial_values.
7476         * tm.texi: add description for ALLOCATE_INITIAL_VALUE.
7477
7478 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7479
7480         * ggc-page.c (ggc_marked_p): Properly convert return to boolean.
7481
7482 2001-09-20  DJ Delorie  <dj@redhat.com>
7483
7484         * c-typeck.c (really_start_incremental_init): Discriminate
7485         between zero-length arrays and flexible arrays.
7486         (push_init_level): Detect zero-length arrays and handle them
7487         like fixed-sized arrays.
7488         * expr.c (store_constructor): Handle zero-length arrays and
7489         flexible arrays correctly.
7490         * doc/extend.texi: Update zero-length array notes.
7491
7492 2001-09-20  Jim Wilson  <wilson@redhat.com>
7493
7494         * config/ia64/ia64.c (itanium_split_issue): Allow max 2 FP per cycle.
7495         (insn_matches_slot): Handle TYPE_L and TYPE_X slots when checking
7496         for issue port conflicts.
7497         (cycle_end_fill_slots): TYPE_L instructions take two slots.
7498
7499 2001-09-20  Andrew MacLeod  <amacleod@redhat.com>
7500
7501         * testsuite/gcc.c-torture/execute/990208-1.x: New. XFAIL at -O3
7502         on ia64.
7503
7504 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7505
7506         * fold-const.c (hashtab.h): Include.
7507         (int_const_binop): Remove FORSIZE arg and compute from type; all
7508         callers changed.
7509         Call size_int_type_wide for all single-word constants.
7510         (size_htab_hash, size_htab_eq): New functions.
7511         (size_int_type_wide): Rework to use hash table.
7512         * ggc-common.c (hashtab.h): Include.
7513         (struct d_htab_root): New struct.
7514         (d_htab_roots): New variable.
7515         (ggc_add_deletable_htab, ggc_htab_delete): New functions
7516         (ggc_mark_roots): Handle deletable htabs.
7517         * ggc-page.c (ggc_marked_p): New function.
7518         * ggc-simple.c (ggc_marked_p): Likewise.
7519         * ggc.h: Reformatting throughout.
7520         (ggc_marked_p, ggc_add_deletable_htab): New declarations.
7521         * tree.c (init_obstacks): Make type_hash_table a deletable root.
7522         (type_hash_add): Allocate struct type_hash from GC memory.
7523         (mark_hash_entry, mark_type_hash): Deleted.
7524         (type_hash_marked_p, type_hash_mark): New functions.
7525         * Makefile.in (ggc-common.o, fold-const.o): Include hashtab.h.
7526
7527 Thu Sep 20 12:49:34 2001  J"orn Rennecke <amylaar@redhat.com>
7528
7529         * sh.c (shiftcosts): Don't use shiftcosts array for modes wider
7530         than SImode.
7531
7532 Thu Sep 20 09:00:27 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
7533
7534         * stor-layout.c (layout_type, case ARRAY_TYPE): Kludge to disable
7535         array-too-large test for signed sizetype.
7536
7537 Thu Sep 20 12:19:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
7538
7539         * i386.md (indirect_jump): Allow Pmode operand.
7540         (tablejump): LIkewise; perform expansion to 64bit mode.
7541         * i386.c (symbolic_operand): Allow 64bit PIC references.
7542         (pic_symbolic_operand): Likewise.
7543         (ix86_find_base_term): Strip the 64bit PIC references.
7544         (legitimate_pic_address_disp_p): Handle 64bit PIC.
7545         (legitimize_pic_address): Likewise.
7546         (i386_simplify_dwarf_addr): Strip down the 64bit PIC references.
7547         * i386.h (CASE_VECTOR_MODE): Set to SImode for 64bit PIC compilation.
7548
7549 2001-09-19  Alexandre Petit-Bianco  <apbianco@redhat.com>
7550
7551         * stringpool.c (get_identifier_with_length): New function.
7552         * tree.h (get_identifier_with_length): New prototype.
7553
7554 2001-09-19  Alan Modra  <amodra@bigpond.net.au>
7555             David Edelsohn  <edelsohn@gnu.org>
7556
7557         Revert:
7558         * config/rs6000/rs6000.c (logical_operand): CONST_INTs are
7559         already sign-extended.
7560
7561         * config/rs6000/aix.h (INIT_TARGET_OPTABS): Define TFmode handlers.
7562         * config/rs6000/rs6000.c (logical_operand): Always compare op as
7563         HOST_WIDE_INT.
7564         (rs6000_emit_set_long_const): Avoid unnecessary shift.
7565         (output_profile_hook): Declare label_name const.
7566         * config/rs6000/rs6000.md (boolcsi3, boolcdi3): Change predicates
7567         to match constraints.
7568
7569 2001-09-19  Stan Shebs  <shebs@apple.com>
7570
7571         * alias.c: Fix typos in comments.
7572         * sched-rgn.c (init_ready_list): Ditto.
7573         * unwind-dw2.c (uw_frame_state_for): Ditto.
7574         * unwind-dw2-fde.c (_Unwind_Find_FDE): Ditto.
7575         * unwind.inc (_Unwind_RaiseException_Phase2): Ditto.
7576         * config/rs6000/rs6000.c (rs6000_adjust_priority): Ditto.
7577
7578 2001-09-19  Richard Henderson  <rth@redhat.com>
7579
7580         * cfg.c (force_nonfallthru_and_redirect): Handle redirecting
7581         to the exit block.
7582         * Makefile.in (cfg.o): Depend on TM_P_H.
7583
7584 2001-09-19  Richard Henderson  <rth@redhat.com>
7585
7586         * config/alpha/alpha.c (local_symbol_p): Split out from ...
7587         (local_symbolic_operand): ... here.
7588         (small_symbolic_operand): Check mode.
7589         (global_symbolic_operand): New.
7590         (input_operand): Reject symbolics if explicit relocs.
7591         (call_operand): Tidy.
7592         (alpha_legitimize_address): Use movdi_er_high_g.
7593         (alpha_expand_mov): Likewise.
7594         * config/alpha/alpha-protos.h: Update.
7595         * config/alpha/alpha.h (PREDICATE_CODES): Update.
7596         * config/alpha/alpha.md (UNSPEC_LITERAL, UNSPEC_LITUSE): New.
7597         (UNSPEC_LDGP2, UNSPECV_PLDGP2): New.
7598         (UNSPECV_LDGP2): Remove.
7599         (all call patterns): Use 's' not 'i' for symbolic constraint.
7600         (call_osf call_value_osf): Use call_operand.
7601         (all osf call patterns): Use $gp.  New peepholes for explicit relocs.
7602         (movdi_er_nofix, movdi_er_fix): Remove symbolic alternative.
7603         (prologue_ldgp_1_er): Remove.
7604         (ldgp_er_1, ldgp_er_2, prologue_ldgp_er_2): New.
7605         (builtin_setjmp_receiver_er patterns): Use them.
7606         (exception_receiver_er): Likewise.
7607
7608 2001-09-19  Richard Henderson  <rth@redhat.com>
7609
7610         * cfgbuild.c (find_sub_basic_blocks): Handle insns that can throw.
7611
7612         * emit-rtl.c (try_split): Copy NORETURN, SETJMP, ALWAYS_RETURN
7613         and NON_LOCAL_GOTO notes.
7614         * recog.c (peephole2_optimize): Likewise.  Handle EH_REGION;
7615         copy over CALL_INSN_FUNCTION_USAGE.
7616
7617 2001-09-18  Catherine Moore  <clm@redhat.com>
7618
7619         * config/stormy16/stormy16.h (DEFAULT_PCC_STRUCT_RETURN):
7620         Define as 0.
7621
7622 2001-09-18  Ulrich Weigand  <uweigand@de.ibm.com>:
7623
7624         * config.gcc (s390-*-linux-*, s390x-*-linux*): Switch to
7625         new-style tm_file specification.  Specify correct tm_p_file,
7626         md_file, and out_file for s390x.
7627
7628         * config/s390/linux.h, linux64.h:  Don't include other target
7629         macro header files.  Now handled via tm_file.
7630
7631         * config/s390/linux.h, s390.h:  (IEEE_FLOAT, TARGET_IEEE_FLOAT,
7632         TARGET_IBM_FLOAT): Move from linux.h to s390.h to ensure they
7633         are defined before use.
7634
7635 Tue Sep 18 09:51:11 2001  Eric Christopher  <ecechristo@redhat.com>
7636
7637         * config/mips/mips.c (mips_asm_file_start): Conditionalize Elf
7638         code generation only for Gnu assembler.
7639
7640 2001-09-18  Catherine Moore  <clm@redhat.com>
7641
7642         * config/stormy16 (LIB_SPEC): Remove -lnosys.
7643
7644 2001-09-18  Richard Sandiford  <rsandifo@redhat.com>
7645
7646         * config/mips/mips.c (mips_frame_set): New.
7647         (mips_emit_frame_related_store): When storing two 32-bit FPRs, use
7648         a parallel frame-related expression with a set for each register.
7649
7650 2001-09-18  Philip Blundell  <philb@gnu.org>
7651
7652         * config/arm/lib1funcs.asm (L_dvmd_lnx): Don't rely on kernel
7653         header files.
7654
7655 2001-09-17  Dale Johannesen  <dalej@apple.com>
7656
7657         * config/rs6000/rs6000.h (FIXED_REGISTERS): Use FIXED_R2.
7658         * config/rs6000/aix.h (FIXED_R2): Define.
7659         * config/rs6000/darwin.h (FIXED_R2): Define.
7660         * config/rs6000/sysv4.h (FIXED_R2): Define.
7661
7662 2001-09-17  Jeff Sturm  <jsturm@one-point.com>
7663
7664         * except.c (dw2_build_landing_pads): New local
7665         clobbers_hard_regs.  Emit an ASM_INPUT as a scheduling
7666         barrier after clobbers.  Fixes c++/4012.
7667
7668 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7669
7670         * gcc.c (find_file): Use ACONCAT in lieu of alloca/strcpy/strcat.
7671
7672 2001-09-17  Joseph S. Myers  <jsm28@cam.ac.uk>
7673
7674         * dostage2, dostage3, listing, make-l2.com, makefile.vms,
7675         patch-apollo-includes, vmsconfig.com: Remove obsolete files.
7676
7677 2001-09-17  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7678
7679         * c-aux-info.c (affix_data_type): Use ASTRDUP in lieu of
7680         alloca/strcpy.
7681
7682 2001-09-17  Neil Booth  <neil@daikokuya.demon.co.uk>
7683
7684         * cpphash.h (_cpp_lex_direct): New.
7685         * cpplex.c (_cpp_lex_token): Update.
7686         (lex_token): Rename _cpp_lex_direct; lex into pfile->cur_token,
7687         and increment that pointer.
7688         * cppmacro.c (alloc_expansion_token): New.
7689         (lex_expansion_token): Lex macro expansion directly into
7690         macro storage.
7691
7692 2001-09-16  Brad Lucier  <lucier@math.purdue.edu>
7693
7694         * Makefile.in: Make rtl-error.o depend on $(CONFIG_H).
7695
7696 Sun Sep 16 21:59:46 CEST 2001  Jan hubicka  <jh@suse.cz>
7697
7698         * basic-block.h (free_bb_for_insn): Declare.
7699         * bb-reorder.c (label_for_bb): Use block_label.
7700         (emit_jump_to_block_after): Remove.
7701         (insert_intra_1): Do not update block_for_insn.
7702         (insert_inter_bb_scope_notes): Likewise; update bb->end
7703         * cfg.c (free_bb_for_insn): New.
7704         (try_rediret_by_replacing_jump): Avoid set_block_for_new_insns call.
7705         (force_nonfallthru_and_redirect): Likewise; do not update BB boundaries.
7706         (commit_one_edge_insertion): Likewise.
7707         (commit_one_edge_insertion): Do not update BB boundary.
7708         (commit_edge_insertions): Do not call compute_bb_for_insn.
7709         * cfgbuild.c (find_basic_blocks): Do not free basic_block_for_insn.
7710         * cfgcleanup.c (merge_blocks_move_predecessor): Use reorder_insns_nobb.
7711         (merge_blocks_move_successor_nojumps): Likewise.
7712         (try_crossjump_to_edge): Do not update block_for_insn.
7713         * combine.c (combine_instructions): Remove compute_bb_for_insn call.
7714         * df.c (df_pattern_emit_later): Do not update BB boundary.
7715         (df_jump_pattern_emit_after): Likewise.
7716         (df_insn_move_before): Use emit_insn_before.
7717         * emit-rtl.c (try_split): Emit after trial to get bb boundary updated
7718          properly.
7719         (add_insn_after, add_insn_before, emit_insns_after): Update BB
7720         boundaries and basic_block_for_insn.
7721         (reorder_insns_nobb): Rename from reorder_insns.
7722         (reorder_insns): New.
7723         (emit_block_insn_before, emit_block_insn_after): Kill.
7724         * flow.c (check_function_return_warnings): Do not call
7725         compute_bb_for_insn; Do not free basic_block_for_insn.
7726         (attempt_auto_inc): Do not update basic_block_for_insn.
7727         * function.c (emit_return_into_block): Likewise;
7728         do not update BB boundaries.
7729         * gcse.c (handle_avail_expr): Do not update basic_block_for_insn.
7730         (insert_insn_end_bb): Use emit_insn_before; Likewise.
7731         (pre_insert_copy_insn): Likewise.
7732         (update_ld_motion_notes): Likewise.
7733         (insert_insn_start_bb): Likewise.
7734         (replace_store_insn): Likewise.
7735         * ifcvt.c (noce_process_if_block): Likewise.
7736         (if_convert): Do not call compute_bb_for_insn.
7737         * lcm.c (optimize_mode_switching): Do not update BB boundaries.
7738         Use emit_insn_before and emit_insn_after.
7739         * recog.c (split_all_insns): Do not update BB boundaries;
7740         Do not call compute_bb_for_insn.
7741         (peephole2_optimize): Do not update BB boundaries.
7742         * reg-stack.c (emit_pop_insn): Use emit_insn_after and
7743         emit_insn_before.
7744         (emit_swap_insn): Likewise.
7745         (convert_regs_1): Likewise.
7746         * reload1.c (reload): Call compute_bb_for_insn.
7747         * rtl.h (reorder_insns_nobb): Declare.
7748         * ssa.c (rename_equivalent_regs): Use emit_insn_before.
7749         * toplev.c (rest_of_compilation): Call free_bb_for_insn
7750         at places CFG is invalidated; do not call compute_bb_for_insn.
7751
7752         * cfg.c (expunge_block): Invalidate BB structure.
7753
7754         * (merge_blocks_nomove): Update properly BLOCK_FOR_INSN
7755         array.
7756
7757         * cfg.c (verify_flow_info): Verify the basic_block_for_insn array.
7758
7759 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7760
7761         * cpphash.h (_cpp_lex_token): Update prototype.
7762         * cpplex.c (_cpp_lex_token): New prototype.
7763         * cpplib.c (skip_rest_of_line, check_eol, _cpp_handle_directive,
7764         lex_macro_node, read_flag, do_pragma_poison): Update.
7765         * cppmacro.c (cpp_get_token, parse_params,
7766         lex_expansion_token): Update.
7767
7768 2001-09-16  Neil Booth  <neil@daikokuya.demon.co.uk>
7769
7770         * cppmain.c (scan_translation_unit): Don't worry about
7771         putting a space after hashes.
7772         * cpplib.c (directive_diagnostics): New.
7773         (_cpp_handle_directive): Update to use directive_diagnostics.
7774         (run_directive): Don't toggle prevent_expansion.
7775         (do_line): Backup in case of the line extension.
7776         * cpplib.h (cpp_lexer_pos): Remove.
7777         * cppmacro.c (_cpp_create_definition): Precede a leading #
7778         with whitespace.
7779
7780 2001-09-15  Richard Henderson  <rth@redhat.com>
7781
7782         * c-typeck.c (comptypes): Handle zero-length arrays properly.
7783
7784 2001-09-15  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7785
7786         * c-common.c (c_promoting_integer_type_p): Handle ?Imode types.
7787
7788 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7789
7790         PR preprocessor/3571
7791         * tradcpp.c (handle_directive): Skip non-vertical space.
7792
7793 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7794
7795         * cppmain.c (setup_callbacks): Set line callback only
7796         if outputting preprocessed source.
7797
7798 2001-09-15  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
7799
7800         * collect2.c (main): Const-ification.
7801         * gcc.c (translate_options, process_command): Use xstrdup in
7802         lieu of xmalloc/strcpy.
7803         (main): Use concat in lieu of xmalloc/strcpy/strcat.
7804
7805 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7806
7807         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Fix
7808         example.
7809
7810 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7811
7812         * scan-decls.c (scan_decls): Fix typo.
7813
7814 2001-09-15  Neil Booth  <neil@daikokuya.demon.co.uk>
7815
7816         * cpphash.h (struct cpp_reader): Remove lexer_pos, directive_pos.
7817         Split mlstring_pos into mls_line and mls_col.
7818         * cppinit.c (cpp_create_reader): Initialize line to 1.
7819         (cpp_destroy): Free tokenruns.
7820         (push_include): Don't update lexer_pos.
7821         * cpplex.c (unterminated, parse_string): Update.
7822         (lex_token): Don't update lexer_pos, update.
7823         * cpplib.c (if_stack): Save line instead of line + col.
7824         (start_directive, _cpp_do__Pragma, do_else, do_elif,
7825         push_conditional, _cpp_pop_buffer): Update.
7826         * cppmacro.c (funlike_invocation_p): Don't save lexer_pos.
7827         (_cpp_create_definition): Update.
7828
7829 2001-09-15  Eric Christopher  <echristo@redhat.com>
7830
7831         * config/mips/abi64.h: Add support for MEABI.
7832
7833 2001-09-15  Eric Christopher  <echristo@redhat.com>
7834
7835         * config/mips/mips.md: Add unspec #2.
7836         (reload_indi): Use.
7837         (reload_outdi): Ditto.
7838         (reload_outsi): Ditto.
7839         (HILO_delay): New.
7840
7841 2001-09-15  Eric Christopher  <echristo@redhat.com>
7842             Jason Eckhardt  <jle@redhat.com>
7843
7844         * config.gcc: Add mipsisa32 target and mipsisa32-linux target.
7845         * config/mips/isa32-linux.h: New file.
7846         * config/mips/isa3264.h: Ditto.
7847         * config/mips/mips-protos.h: Add mips_hard_regno_nregs.
7848         * config/mips/mips.c (mips_hard_regno_nregs): Move here from mips.h.
7849         (output_block_mode): Support MEABI.
7850         (function_arg): Ditto. Fix floating point arg passing.
7851         (mips_va_start): Ditto.
7852         (override_options): Add isas 32 and 64, meabi, mips32 and mips64
7853         processors.
7854         (mips_asm_file_start): Add new section to pass abi to gdb.
7855         (function_arg_pass_by_reference): Support MEABI.
7856         (mips_parse_cpu): Support mips32 and mips64 processors.
7857         * config/mips/mips.h: Support ABI_MEABI, TARGET_MIPS4KC,
7858         TARGET_MIPS5KC.  Support isa32 and isa64.
7859         (processor_type): Add r4kc, r5kc, r20kc.
7860         (GENERATE_MULT3_SI): New.
7861         (GENERATE_MULT3_DI): Ditto.
7862         (GENERATE_MULT3): Remove.
7863         (ISA_HAS_64BIT_REGS): Add isa == 64.
7864         (ISA_HAS_8CC): Add mips_isa = 32 and 64.
7865         (ISA_HAS_MADD_MSUB): New.
7866         (ISA_HAS_CLZ_CLO): Ditto.
7867         (ISA_HAS_DCLZ_DCLO): Ditto.
7868         (ABI_GAS_ASM_SPEC): New.
7869         (GAS_ASM_SPEC): Use. Add support for mips32, mips64.
7870         (ASM_SPEC): Ditto.
7871         (LINK_SPEC): Ditto.
7872         (SUBTARGET_CC1_SPEC): Ditto.
7873         (SUBTARGET_CPP_SIZE_SPEC): Ditto.
7874         (PAD_VARARGS_DOWN): Support MEABI.
7875         (HARD_REGNO_NREGS): Move to mips.c.
7876         (ASM_OUTPUT_IDENT): Add #undef.
7877         * config/mips/mips.md: Add r4kc, r5kc, r20kc.
7878         (mulsi3): Use GENERATE_MULT3_SI.
7879         (mulsi3_mult3): Ditto.  Support mips32, mips64.
7880         (mul_acc_si): Use ISA_HAS_MADD_MSUB.
7881         (mul_sub_si): New pattern.
7882         (unnamed splitters): New.
7883         (muldi3): Use GENERATE_MULT3_DI.
7884         (muldi3_internal2): Ditto.
7885         (movdicc): Support mips32.
7886         * config/mips/t-isa3264: New file.
7887
7888 2001-09-15  Hans-Peter Nilsson  <hp@axis.com>
7889
7890         * rtl.h (FIND_REG_INC_NOTE) [HAVE_PRE_INCREMENT
7891         || HAVE_PRE_DECREMENT || HAVE_POST_INCREMENT
7892         || HAVE_POST_DECREMENT]: Call find_regno_note for REGs.
7893
7894         * reorg.c (fill_slots_from_thread): After call to
7895         steal_delay_list_from_target, update own_thread as new_thread may
7896         have branched.
7897
7898 2001-09-14  Neil Booth  <neil@daikokuya.demon.co.uk>
7899
7900         * cpperror.c (print_location): Take line and column, for
7901         default positioning use the previously lexed token.
7902         (_cpp_begin_message): Take line and column.
7903         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
7904         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
7905         * cpphash.h (_cpp_begin_message): Update prototype.
7906         * cppinit.c (push_include): Don't set output line.
7907         * cpplex.c (_cpp_lex_token): Callback for start of new output lines.
7908         * cpplib.c (do_diagnostic, _cpp_pop_buffer): Update.
7909         (do_pragma): Kludge for front ends.  Don't expand macros at all.
7910         * cpplib.h (cpp_lookahead, cpp_token_with_pos, cpp_get_line): Remove.
7911         (struct cpp_token): Remove output_line.
7912         (struct cpp_callbacks): New member line_change.
7913         * cppmacro.c (builtin_macro, paste_all_tokens, replace_args,
7914         cpp_get_token): Preserve BOL flag.
7915         (cpp_get_line): Remove.
7916         (_cpp_backup_tokens): Remove useless abort().
7917         * cppmain.c (cb_line_change): New.
7918         (scan_translation_unit): Don't worry about starting new lines here.
7919         * scan-decls.c (scan_decls): Update.
7920         * c-lex.c (c_lex, init_c_lex): Update.
7921         (cb_line_change, src_lineno): New.
7922
7923 Fri Sep 14 13:54:50 EDT 2001  John Wehle  (john@feith.com)
7924
7925         * tree.c (append_random_chars): Generate the random
7926         characters in a reproducable fashion.
7927
7928 2001-09-14  Richard Henderson  <rth@redhat.com>
7929
7930         * config/i386/i386.c (internal_label_prefix): New.
7931         (internal_label_prefix_len): New.
7932         (override_options): Set them.
7933         (local_symbolic_operand): New.
7934         (legitimate_pic_address_disp_p): Use it.
7935         (legitimize_pic_address): Likewise.
7936
7937 2001-09-14  Marc Espie <espie@openbsd.org>
7938
7939         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK):  Generate reference to GOT
7940         correctly.
7941
7942 2001-09-14  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
7943
7944         * config/alpha/alpha.md (unaligned_extendhidi_be): Fix.
7945         * config/alpha/unicosmk.h (INIT_TARGET_OPTABS): New.
7946
7947 2001-09-14  Nick Clifton  <nickc@cambridge.redhat.com>
7948
7949         * rtlanal.c (subreg_regno_offset): Add semicolon to end of
7950         invocation of SUBREG_REGNO_OFFSET.
7951
7952         * haifa-sched.c: Fix typo in FSF copyright statement.
7953         * sched-deps.c: Fix typo in FSF copyright statement.
7954         * sched-ebb.c: Fix typo in FSF copyright statement.
7955         * sched-rgn.c: Fix typo in FSF copyright statement.
7956         * sched-vis.c: Fix typo in FSF copyright statement.
7957
7958         * config.gcc: Move inclusion of arm elf specific header files
7959         from the files themselves into the tm_file variable.  Make
7960         sure that elfos.h is included before target specific elf
7961         headers.
7962         * config/arm/aout.h (NO_DOLLAR_IN_LABEL): Only define if not
7963         already defined.
7964         (ASM_OUTPUT_ASCII, ASM_OUTPUT_SKIP): Protect definition.
7965         * config/arm.arm.h (TARGET_MEM_FUNCTIONS,
7966         ASM_OUTPUT_CASE_LABEL): Protect definition.
7967         (CC1_SPEC, FP_DEFAULT, ARM_FUNCTION_PROFILE): Only define if
7968         not already defined.
7969         * config/arm/conix-elf.h: (USER_LABEL_PREFIX,
7970         LOCAL_LABEL_PREFIX, MAKE_DECL_ONE_ONLY, UNIQUE_SECTION):
7971         Remove duplicate definition.
7972         (READONLY_DATA_SECTION, SUBTARGET_EXTRA_SECTION,
7973         (SUBTARGET_EXTRA_SECTION_FUNCTION, RDATA_SECTION_ASM_OP,
7974         (RDATA_SECTION_FUNCTION): Remove redundant definition.
7975         (STARTFILE_SPEC, ENDFILE_SPEC): Protect definition.
7976         Remove inclusion of arm/elf.h.
7977         * config/arm/unknown-elf.h: as for conix-elf.h.
7978         (STARTFILE_SPEC): Include crti.o and crtn.o.
7979         * config/arm/linux-elf.h: as for conix-elf.h.
7980         * config/arm/ecos-elf.h: Remove inclusion of unknown-elf.h.
7981         * config/arm/strongarm-elf.h: Remove inclusion of
7982         unknown-elf.h.
7983         * config/arm/xscale-elf.h: Remove inclusion of unknown-elf.h.
7984         * config/arm/unknown-elf-oabi.h: Remove inclusion of
7985         unknown-elf.h and elf.h.
7986         * config/arm/uclinux-elf.h: Remove inclusion of linux-elf.h.
7987         * config/arm/linux-gas.h (DBX_DEBUGGING_INFO,
7988         ASM_WEAKEN_LABEL): Remove redundant definition.
7989         * config/arm/elf.h: Test for inclusion of elfos.h
7990         (USER_LABEL_PREFIX, ASM_DECLARE_RESULT, ASM_DECLARE_RESULT,
7991         ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT_NAME,
7992         SUBTARGET_EXTRA_SECTION, SUBTARGET_EXTRA_SECTION_FUNCTION,
7993         EXTRA_SECTIONS, INT_ASM_OP, ASM_WEAKEN_LABEL): Remove
7994         redundant definition.
7995         (TYPE_OPERAND_FMT, ASM_DECLARE_FUNCTION_NAME,
7996         ASM_DECLARE_FUNCTION_SIZE, ASM_OUTPUT_INTERNAL_LABEL,
7997         ASM_OUTPUT_ALIGNED_COMMON): Protect definition.
7998         * t-arm-elf (EXTRA_MULTILIB_PARTS): Add crti.o and crtn.o.
7999         Add rules to build crti.o and crtn.o
8000         * crti.asm: New file.
8001         * crtn.asm: New file.
8002
8003 2001-09-13  Neil Booth  <neil@daikokuya.demon.co.uk>
8004
8005         * c-parse.in (_yylex): Use _cpp_backup_tokens.
8006         * cpphash.h (struct tokenrun): Add prev.
8007         (struct lexer_state): Remove bol.
8008         (struct cpp_reader): Remove old lookahead stuff, add lookaheads.
8009         (_cpp_free_lookaheads, _cpp_release_lookahead, _cpp_push_token)
8010         : Remove.
8011         * cppinit.c (cpp_create_reader): Don't set bol.
8012         (cpp_destroy): Don't free lookaheads.
8013         * cpplex.c (lex_directive): Remove.
8014         (next_tokenrun): Update.
8015         (_cpp_lex_token): Clean up logic.
8016         (lex_token): Update to return a pointer to lexed token, since it
8017         can move to the start of the buffer.  Simpify newline handling.
8018         * cpplib.c (SEEN_EOL): Update.
8019         (skip_rest_of_line): Remove lookahead stuff.
8020         (end_directive): Line numbers are already incremented.  Revert
8021         to start of lexed token buffer if we can.
8022         (_cpp_handle_directive, do_pragma, do_pragma_dependency,
8023         parse_answer): Use _cpp_backup_tokens.
8024         (run_directive, cpp_pop_buffer): Don't set bol, set saved_flags
8025         instead.  Don't check for EOL.
8026         (do_include_common, do_line, do_pragma_system_header): Use
8027         skip_rest_of_line.
8028         * cpplib.h (BOL, _cpp_backup_tokens): New.
8029         * cppmacro.c (save_lookahead_token, take_lookahead_token,
8030         alloc_lookahead, free_lookahead, _cpp_free_lookaheads,
8031         cpp_start_lookahead, cpp_stop_lookahead, _cpp_push_token): Remove.
8032         (builtin_macro): Don't use cpp_get_line.
8033         (cpp_get_line): Short term kludge.
8034         (parse_arg): Handle directives in arguments here.  Back up when
8035         appropriate.  Store EOF at end of argument list.
8036         (funlike_invocation_p): Use _cpp_backup_tokens.
8037         (push_arg_context): Account for EOF at end of list.
8038         (cpp_get_token): Remove lookahead stuff.  Update.
8039
8040 2001-09-13  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8041
8042         * c-parse.in (yyerror): Const-ification and/or static-ization.
8043         * c-typeck.c (push_member_name): Likewise.
8044         * collect2.c (main): Likewise.
8045         * dbxout.c (dbxout_parms): Likewise.
8046         * diagnostic.c (format_with_decl): Likewise.
8047         * dwarf2out.c (output_ranges): Likewise.
8048         * dwarfout.c (fundamental_type_code): Likewise.
8049         * except.c (dw2_output_call_site_table): Likewise.
8050         * gcc.c (do_spec_1): Likewise.
8051         * genopinit.c (optabs): Likewise.
8052         * objc/objc-act.c (synth_id_with_class_suffix, start_class,
8053         gen_declaration_1, handle_impent): Likewise.
8054         * protoize.c (default_include, in_system_include_dir, abspath):
8055         Likewise.
8056         * sched-vis.c (visualize_stall_cycles): Likewise.
8057         * sdbout.c (plain_type_1, sdbout_end_function,
8058         sdbout_end_epilogue): Likewise.
8059         * varasm.c (decode_reg_name): Likewise.
8060
8061         * 1750a.c (mod_regno_adjust): Likewise.
8062         * alpha.c (alpha_write_one_linkage,
8063         unicosmk_output_default_externs): Likewise.
8064         * arm.c (arm_condition_codes): Likewise.
8065         * arm.h (arm_condition_codes): Likewise.
8066         * avr.c (output_movsisf, encode_section_info): Likewise.
8067         * darwin.h (GEN_BINDER_NAME_FOR_STUB, GEN_SYMBOL_NAME_FOR_SYMBOL):
8068         Likewise.
8069         * i386.c (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
8070         * i386.h (hi_reg_name, qi_reg_name, qi_high_reg_name): Likewise.
8071         * m88k.c (output_function_profiler): Likewise.
8072         * mips.c (mips_output_conditional_branch): Likewise.
8073         * ns32k.c (ns32k_out_reg_names): Likewise.
8074         * ns32k.h (ns32k_out_reg_names): Likewise.
8075         * pj.c (pj_output_rval): Likewise.
8076         * rs6000.c (GEN_LOCAL_LABEL_FOR_SYMBOL): Likewise.
8077         * sparc.c (sparc_flat_function_prologue,
8078         sparc_flat_function_epilogue): Likewise.
8079
8080 2001-09-13  Markus Werle <numerical.simulation@web.de>
8081             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
8082
8083         * doc/install.texi (Binaries): Add "Binaries for HP-UX 11.00 at
8084         Aachen University of Technology".
8085
8086 2001-09-13  Andreas Schwab  <schwab@suse.de>
8087
8088         * config/float-m68k.h: Define DECIMAL_DIG and FLT_EVAL_METHOD for
8089         C99.
8090
8091 2001-09-13  Richard Henderson  <rth@redhat.com>
8092
8093         * config/alpha/alpha.c (small_symbolic_operand): New.
8094         (override_options): Set MASK_SMALL_DATA based on pic/PIC.
8095         (some_operand, input_operand): Don't handle HIGH.
8096         (alpha_legitimize_address): Use it.  Emit HIGH with PLUS gp.
8097         (alpha_expand_mov): Likewise.
8098         (print_operand) [H]: Just print HIGH symbol.
8099         (print_operand_address): Handle small data.
8100         * config/alpha/alpha.h (MASK_SMALL_DATA, TARGET_SMALL_DATA): New.
8101         (TARGET_SWITCHES): Add -msmall-data/large-data.
8102         (PIC_OFFSET_TABLE_REGNUM): New.
8103         (PREFERRED_RELOAD_CLASS): Don't handle HIGH.
8104         (PREDICATE_COES): Update.
8105         * config/alpha/alpha.md (adddi_er_high): New.
8106         (adddi_er_low): Handle small data.
8107         * config/alpha/elf.h (DO_SELECT_SECTION): If SMALL_DATA,
8108         prefer .sdata to .rodata.
8109         (SELECT_RTX_SECTION): Likewise.
8110
8111 2001-09-12  Josh Martin  <josh.martin@abq.sc.philips.com>
8112
8113         * fixinc/inclhack.def(hpux11_size_t): Keep HP-UX headers from
8114         defining __size_t and leaving size_t undefined.
8115
8116 2001-09-12  Diego Novillo  <dnovillo@redhat.com>
8117
8118         * basic-block.h (expunge_block): Declare.
8119         * cfg.c (expunge_block): Remove static declaration.
8120
8121 2001-09-12  Richard Henderson  <rth@redhat.com>
8122
8123         * integrate.c (copy_insn_list): Copy label name from
8124         NOTE_INSN_DELETED_LABEL.
8125
8126 2001-09-12  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
8127
8128         * c-common.c (c_tree_code_name): Const-ification.
8129         * c-decl.c (c_decode_option): Likewise.
8130         * c-typeck.c (warn_for_assignment): Likewise.
8131         * collect2.c (libexts, is_ctor_dtor, main, ignore_library):
8132         Likewise.
8133         * cppinit.c (output_deps): Likewise.
8134         * dependence.c (dependence_string, direction_string): Likewise.
8135         * dwarf2out.c (output_ranges): Likewise.
8136         * fixinc/fixfixes.c (emit_gnu_type): Likewise.
8137         * fixinc/gnu-regex.c (re_error_msgid): Likewise.
8138         * gcc.c (standard_exec_prefix, standard_exec_prefix_1,
8139         standard_startfile_prefix, standard_startfile_prefix_1,
8140         standard_startfile_prefix_2, tooldir_base_prefix,
8141         standard_bindir_prefix, find_a_file): Likewise.
8142         * genattrtab.c (make_length_attrs): Likewise.
8143         * gencheck.c (tree_codes): Likewise.
8144         * genemit.c (gen_split): Likewise.
8145         * genrecog.c (special_mode_pred_table): Likewise.
8146         * graph.c (graph_ext): Likewise.
8147         * protoize (default_include): Likewise.
8148         * reload.c (reload_when_needed_name): Likewise.
8149         * sched-vis.c (visualize_stall_cycles): Likewise.
8150         * tlink.c (recompile_files): Likewise.
8151         * toplev.c (decode_g_option): Likewise.
8152         * tradcpp.c (output_deps): Likewise.
8153         * varasm.c (decode_reg_name): Likewise.
8154
8155         * arm.c (arm_condition_codes, strings_fpa, thumb_condition_code):
8156         Const-ification.
8157         * arm.md: Likewise.
8158         * avr.c (avr_regnames, encode_section_info): Likewise.
8159         * c4x.c (float_reg_names): Likewise.
8160         * darwin.h (ASM_GLOBALIZE_LABEL): Likewise.
8161         * elfos.h (const_section): Likewise.
8162         * i386.c (ix86_comp_type_attributes): Likewise.
8163         * i386/win32.h (STRIP_NAME_ENCODING): Likewise.
8164         * ia64/aix.h (UNIQUE_SECTION): Likewise.
8165         * ia64.c (type_names): Likewise.
8166         * m68hc11.c (reg_class_names): Likewise.
8167         * m88k.c (m_options): Likewise.
8168         * mips.c (mips_output_conditional_branch, mips_unique_section):
8169         Likewise.
8170         * rs6000/sysv4.h (ASM_DECLARE_FUNCTION_NAME): Likewise.
8171         * sparc.c (sparc_flat_function_prologue, sparc_flat_function_epilogue,
8172         ultra_code_names): Likewise.
8173         * sparc.h (OVERRIDE_OPTIONS): Likewise.
8174
8175 2001-09-12  Jakub Jelinek  <jakub@redhat.com>
8176
8177         * configure.in (gcc_cv_as_shf_merge): Fix a typo.
8178         Use --fatal-warnings option for gas.
8179         * configure: Rebuilt.
8180
8181 2001-09-12  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8182
8183         * doc/install.texi (Specific, alphaev5-cray-unicosmk*): Document.
8184
8185 2001-09-11  Jim Wilson  <wilson@redhat.com>
8186
8187         * alias.c (clear_reg_alias_info): Only handle pseudo registers.
8188
8189 2001-10-11  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8190
8191         * builtins.c (c_strlen): Treat an offset too large for a
8192         HOST_WIDE_INT as out of range.
8193
8194 Tue Sep 11 18:57:47 CEST 2001  Jan Hubicka  <jh@suse.cz>
8195
8196         * basic-block.h (EDGE_CRITICAL): Remove; renumber other flags.
8197         (EDGE_CRITICAL_P): New predicate.
8198         * cfg.c (force_nonfallthru_and_redirect, split_edge): Kill EDGE_CRITICAL
8199         handling.
8200         (insert_insn_on_edge): Use EDGE_CRITICAL_P.
8201         (dump_edge_info): Remove "crit".
8202         * cfganal.c (mark_critical_edges): Kill.
8203         * cfgbuild.c (find_basic_blocks): Remove mark_critical_edges call.
8204         * cfgcleanup.c (cleanup_cfg): Likewise.
8205         * profile.c (instrument_edges): Use EDGE_CRITICAL_P.
8206         (find_spanning_tree): Likewise.
8207         * reg-stack.c (convert_regs_1): Likewise.
8208         * ssa.c (mark_regs_equivalent_over_bad_edges): Likewise.
8209
8210         * basic-block.h (create_basic_block_structure): New.
8211         (create_basic_block): Update prototype.
8212         (force_nonfallthru): New.
8213         * bb-reorder.c (fixup_reorder_chain): Fixup use force_nonfallthru.
8214         * cfg.c (create_basic_block_structure): Rename from create_basic_block;
8215         handle updating of block_for_insn, creating of empty BBs and BBs at
8216         the end of INSN chain.
8217         (create_basic_block): New function.
8218         (split_block): Use create_basic_block.
8219         (force_nonfallthru_and_redirect): Break out from ...; cleanup
8220         (redirect_edge_and_branch_force): ... here.
8221         (force_nonfallthru): New.
8222         (split_edge): Rewrite to use force_nonfallthru and create_block.
8223         * cfgbuild.c (find_basic_blocks_1): Use create_basic_block_structure.
8224         (find_basic_blocks): Free basic_block_for_insn.
8225         * cfgcleanup.c (merge_blocks): Use force_nonfallthru.
8226
8227         * cfg.c: Fix formating.
8228         * cfgcleanup.c: Fix formating.
8229         (merge_blocks, tail_recursion_label_p): Return bool.
8230         (merge_blocks_move_predecessor_nojumps,
8231          merge_blocks_move_successor_nojumps): Return void.
8232
8233 2001-09-11  Jakub Jelinek  <jakub@redhat.com>
8234
8235         * configure.in: Check whether assembler supports section merging.
8236         * config.in: Rebuilt.
8237         * configure: Rebuilt.
8238         * varasm.c (variable_section, output_constant_pool): Pass alignment
8239         to SELECT_SECTION and SELECT_RTX_SECTION.
8240         (mergeable_string_section): New.
8241         (mergeable_constant_section): New.
8242         (default_elf_asm_named_section): Output SECTION_MERGE and
8243         SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
8244         * output.h (mergeable_string_section): New.
8245         (mergeable_constant_section): New.
8246         (SECTION_MERGE, SECTION_STRINGS, SECTION_ENTSIZE): Define.
8247         * toplev.c (flag_merge_constants): New.
8248         (f_options): Add -fmerge-constants and -fmerge-all-constants
8249         options.
8250         (toplev_main): Default to -fno-merge-constants if not optimizing.
8251         * flags.h (flag_merge_constants): Add extern.
8252         * invoke.texi (-fmerge-constants, -fmerge-all-constants): Document.
8253         * tm.texi (SELECT_SECTION, SELECT_RTX_SECTION): Document added third
8254         argument.
8255         * config/elfos.h (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START):
8256         Define if assembler has working .subsection -1 support.
8257         (SELECT_RTX_SECTION, SELECT_SECTION): Add third macro argument.
8258         Put constant into special SHF_MERGE sections if the linker should
8259         attempt to merge duplicates.
8260         * config/ia64/sysv4.h (SELECT_RTX_SECTION, SELECT_SECTION): Add third
8261         macro argument.
8262         Put constant into special SHF_MERGE sections if the linker should
8263         attempt to merge duplicates.
8264         * config/alpha/elf.h: Likewise.
8265         (ASM_SECTION_START_OP, ASM_OUTPUT_SECTION_START): Define if assembler
8266         has working .subsection -1 support.
8267         * config/nextstep.h: Add third argument to SELECT_RTX_SECTION and
8268         SELECT_SECTION.
8269         * config/svr3.h: Likewise.
8270         * config/darwin.h: Likewise.
8271         * config/arm/aof.h: Likewise.
8272         * config/arm/linux-elf.h: Likewise.
8273         * config/avr/avr.h: Likewise.
8274         * config/c4x/c4x.h: Likewise.
8275         * config/d30v/d30v.h: Likewise.
8276         * config/i386/dgux.h: Likewise.
8277         * config/i386/osfrose.h: Likewise.
8278         * config/i386/sco5.h: Likewise.
8279         * config/i386/svr3gas.h: Likewise.
8280         * config/ia64/aix.h: Likewise.
8281         * config/m32r/m32r.h: Likewise.
8282         * config/m68k/m68k.h: Likewise.
8283         * config/m88k/dgux.h: Likewise.
8284         * config/m88k/m88k.h: Likewise.
8285         * config/mcore/mcore-pe.h: Likewise.
8286         * config/mips/mips.h: Likewise.
8287         * config/pa/pa.h: Likewise.
8288         * config/pa/pa-linux.h: Likewise.
8289         * config/romp/romp.h: Likewise.
8290         * config/rs6000/sysv4.h: Likewise.
8291         * config/rs6000/xcoff.h: Likewise.
8292         * config/s390/linux.h: Likewise.
8293         * config/sparc/sparc.h: Likewise.
8294         * config/sparc/sysv4.h: Likewise.
8295         * config/stormy16/stormy16.h: Likewise.
8296         * config/v850/v850.h: Likewise.
8297         * config/vax/vms.h: Likewise.
8298         * config/arm/arm.c (arm_elf_asm_named_section): Output SECTION_MERGE
8299         and SECTION_STRINGS flags plus SECTION_ENTSIZE entity size.
8300         * config/sparc/sparc.c (sparc_elf_asm_named_section): Use
8301         default_elf_asm_named_section for SHF_MERGE sections.
8302
8303 Tue Sep 11 17:55:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
8304
8305         * bb-reorder.c (fixup_reorder_chain): Fallthru edge to exit block
8306         is OK.
8307
8308 2001-09-11  Joseph S. Myers  <jsm28@cam.ac.uk>
8309
8310         * c-common.c (split_specs_attrs): Allow for empty attributes with
8311         empty TREE_PURPOSE.  Fixes PR c/4294.
8312
8313 Tue Sep 11 11:37:52 CEST 2001  Jan Hubicka  <jh@suse.cz>
8314
8315         * basic-block.h (cached_make_edge, make_single_succ): New.
8316         (make_edge): Remove first parameter.
8317         * bb-reroder.c (fixup_reorder_chain): Use make_single_succ_edge.
8318         * cfg.c (cached_make_edge): Rename from make_edge; return newly
8319         created edge; use obstack allocation.
8320         (make_edge, make_single_succ_edge): New.
8321         (first_removed_edge): New static variable.
8322         (init_flow): Initialize first_removed_edge and n_edges.
8323         (clear_edges): Use remove_edge.
8324         (flow_delete_block): Likewise.
8325         (remove_edge): Add removed edges to the removed edges list.
8326         (split_block, redirect_edge_and_branch_force, split_edge):
8327         Use make_edge.
8328         * cfganal.c (flow_call_edges_add): Updaet make_edge call.
8329         (add_noreturn_fake_exit_edges): Likewise.
8330         (connect_infinite_loops_to_exit): Liekwise.
8331         * cfgbuild.c (make_label_edge, make_edges, find_sub_basic_blocks):
8332         Use cached_make_edge.
8333         * cfgcleanup.c (try_crossjump_to_edge): Use make_single_succ_edge.
8334         * profile.c (branch_prob): Update make_edge call.
8335         * ssa-dce.c (ssa_eliminate_dead_code): Likewise.
8336
8337 2001-09-11  Richard Henderson  <rth@redhat.com>
8338
8339         * config/alpha/alpha.c: Tidy formatting.
8340         (local_symbolic_operand): Verify mode.
8341         (alpha_sa_mask): Ignore unicos for eh_return.
8342         (alpha_expand_epilogue): Handle sp_adj2 zero, not NULL.
8343         * config/alpha/alpha.md (umk divsi patterns): Remove.
8344         (extendsfdf2): Remove unicos check.
8345         (tablejump): Merge vms and unicos code; always use direct set
8346         plus label_ref use.
8347
8348 2001-09-11  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8349
8350         * config.gcc (alpha*-*-unicosmk*): New target.
8351
8352         * config/alpha/alpha-protos.h (symbolic_operand,
8353         unicosmk_add_call_info_word, unicosmk_add_extern,
8354         unicosmk_defer_case_vector, unicosmk_unique_section,
8355         unicosmk_output_align, unicosmk_text_section, unicosmk_data_section,
8356         unicosmk_asm_file_start, unicosmk_asm_file_end,
8357         unicosmk_output_common): Declare.
8358
8359         * config/alpha/alpha.c (NUM_ARGS, override_options, call_operand,
8360         direct_return, function_arg, alpha_va_start, alpha_va_arg,
8361         alpha_does_function_need_gp, alpha_end_function): Support Cray
8362         Unicos/Mk.
8363         (alpha_init_machine_status, alpha_mark_machine_status,
8364         alpha_free_machine_status, unicosmk_output_deferred_case_vectors,
8365         unicosmk_gen_dsib, unicosmk_output_ssib, unicosmk_need_dex,
8366         unicosmk_asm_named_section, unicosmk_insert_attributes,
8367         unicosmk_section_type_flags, symbolic_operand,
8368         unicosmk_output_module_name, unicosmk_output_default_externs,
8369         unicosmk_output_dex, unicosmk_output_externs,
8370         unicosmk_output_addr_vec, unicosmk_ssib_name,
8371         unicosmk_initial_elimination_offset, unicosmk_asm_file_start,
8372         unicosmk_asm_file_end, unicosmk_output_common,
8373         unicosmk_section_type_flags, unicosmk_unique_section,
8374         unicosmk_add_call_info_word, unicosmk_text_section,
8375         unicosmk_data_section, unicosmk_extern_list, unicosmk_extern_head,
8376         unicosmk_add_extern, unicosmk_dex, unicosmk_dex_list,
8377         unicosmk_dex_count, unicosmk_special_name): New.
8378         (TARGET_INSERT_ATTRIBUTES, TARGET_SECTION_TYPE_FLAGS): Define for
8379         TARGET_ABI_UNICOSMK.
8380         (get_aligned_mem, alpha_expand_unaligned_load,
8381         alpha_expand_unaligned_store, alpha_expand_unaligned_load_words,
8382         alpha_expand_unaligned_store_words): Support big-endian mode.
8383         (print_operand): Likewise. New format specifier 't'. Use
8384         TARGET_AS_SLASH_BEFORE_SUFFIX.
8385         (alpha_is_stack_procedure): Rename from vms_is_stack_procedure.
8386         (alpha_pv_save_size): Update with above change.
8387         (alpha_sa_mask, alpha_sa_size, alpha_expand_prologue,
8388         alpha_start_function, alpha_expand_epilogue): Likewise. Support Cray
8389         Unicos/Mk.
8390
8391         * config/alpha/alpha.h (TARGET_ABI_UNICOSMK): New.
8392         (TARGET_ABI_OSF): Exclude TARGET_ABI_UNICOSMK.
8393         (TARGET_AS_SLASH_BEFORE_SUFFIX): New.
8394         (EXTRA_CONSTRAINT): New constraint 'U'.
8395         (PREDICATE_CODES): Add symbolic_operand.
8396
8397         * config/alpha/alpha.md (UNSPEC_UMK_LAUM, UNSPEC_UMK_LALM,
8398         UNSPEC_UMK_LAL, UNSPEC_UMK_LOAD_CIW): New constants.
8399         (mulsi3, *mulsi_se, mulvsi3): Disable for TARGET_ABI_UNICOSMK.
8400         (integer division and modulus patterns): Split in default and
8401         Unicos/Mk versions.
8402         (*divmodsi_internal, *divmoddi_internal): Disable for
8403         TARGET_ABI_UNICOSMK.
8404         (unaligned_extend?idi, unaligned_load?i, unaligned_store?i): Split in
8405         little-endian and big-endian versions.
8406         (ext, ins, msk): Likewise.
8407         (extv, extzv, insv): Support big-endian mode.
8408         (call, call_value, tablejump): Support TARGET_ABI_UNICOSMK.
8409         (call_umk, call_value_umk, *call_umk, tablejump_umk,
8410         *tablejump_umk_internal, *call_value_umk): New.
8411         (*movdi_nofix): Add pattern for loading an address into a register on
8412         TARGET_ABI_UNICOSMK.
8413         (umk_laum, umk_lal, umk_lalm, *umk_load_ciw): New.
8414         (umk_mismatch_args, arg_home_umk): New.
8415         (various insns): Don't use mov, fmov, nop, fnop and unop.
8416         (realign): Support TARGET_ABI_UNICOSMK.
8417
8418         * config/alpha/unicosmk.h: New file.
8419         * config/alpha/t-unicosmk: New file.
8420
8421         * fixinc/inclhack.def (unicosmk_restrict): New.
8422         * fixinc/fixincl.x: Regenerate.
8423
8424         * ginclude/stddef.h (size_t): Check for and define __SIZE_T__.
8425         (wchar_t): Check for and define __WCHAR_T__.
8426
8427 2001-09-11  Richard Sandiford  <rsandifo@redhat.com>
8428
8429         * combine.c (simplify_shift_const): Treat shifts by the mode
8430         size as undefined.
8431
8432 2001-09-11  Neil Booth  <neil@daikokuya.demon.co.uk>
8433
8434         * cpphash.h (struct tokenrun): New.
8435         (struct cpp_context): New member bol.
8436         (struct cpp_reader): New members.
8437         (_cpp_init_tokenrun): New.
8438         * cppinit.c (cpp_create_reader): Set up the token runs.
8439         * cpplex.c (lex_directive, lex_token, next_tokenrun): New.
8440         (lex_token): New internalised version of _cpp_lex_token.  Don't
8441         handle directives or the multiple include optimization here any
8442         more.  Simply lex a token.
8443         * cpplib.c (run_directive): Clear bol.
8444         (_cpp_pop_buffer): Set bol.
8445         * cppmacro.c (funlike_invocation_p): Keep tokens whilst parsing
8446         arguments.
8447
8448 2001-09-11  Michael Meissner  <meissner@redhat.com>
8449
8450         * config/mips/mips.h (CC1_SPEC): If -mgp32 default to -mfp32, and
8451         give an error if the user uses -mfp32.
8452         (CPP_FPR_SPEC): Define __mips_fpr to be 32 or 64 depending on the
8453         default options.
8454         (CPP_SPEC): Define __mips_fpr to be 32 or 64, depending on the
8455         floating point register size.
8456         (EXTRA_SPECS): Add CPP_FPR_SPEC.
8457
8458         * config/mips/netbsd.h (ASM_FINISH_DECLARE_OBJECT): Use
8459         HOST_WIDE_INT_PRINT_DEC to properly print the result of
8460         int_size_in_bytes.
8461         * config/mips/elf.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
8462         * config/mips/elf64.h (ASM_FINISH_DECLARE_OBJECT): Ditto.
8463
8464 2001-09-11  Hans-Peter Nilsson  <hp@axis.com>
8465
8466         * dbxout.c (dbxout_parms): Fix typo in comment.
8467         * unroll.c (loop_find_equiv_value): Ditto.
8468         * toplev.c (rest_of_compilation): Ditto.
8469         * loop.c (scan_loop): Ditto.
8470         * dwarf2out.c (struct dw_fde_struct): Ditto.
8471
8472 2001-09-10  Zack Weinberg  <zackw@panix.com>
8473
8474         * cpplex.c (parse_identifier): Fast-path optimize.  Avoid
8475         copying identifier when we're just going to throw it away.
8476         (parse_identifier_slow): New routine to handle abnormal cases.
8477         (_cpp_lex_token): Update call site.
8478
8479         * hashtable.c (ht_lookup): Don't assume that the string we've
8480         been given is NUL-terminated.
8481         * system.h: #define __builtin_expect(a, b) to (a) if not
8482         GCC >=3.0.
8483
8484 2001-09-10  Michael Meissner  <meissner@redhat.com>
8485
8486         * config.gcc (sparc64-*-solaris2): Add alias to be compatible with
8487         binutils, gdb.
8488
8489 2001-09-10  David Edelsohn  <edelsohn@gnu.org>
8490
8491         * config/rs6000/t-aix43 (SHLIB_INSTALL): Use mode 751 (a+x,r-o).
8492
8493 Mon Sep 10 16:26:44 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8494
8495         * builtins.c (c_getstr): Correct thinko in last change and further
8496         cleanup.
8497
8498 2001-09-10  Tim Freeman <tim@fungibole.com>
8499
8500         * dwarf2out.c (incomplete_types, decl_scope_table): Make them
8501         into varray's and register them as roots with the garbage
8502         collector so they are not collected too soon.
8503
8504 Mon Sep 10 14:21:26 CEST 2001  Jan Hubicka  <jh@suse.cz>
8505
8506         * Makefile.in (cfg.o, cfganal.o, cfgloop.o, cfgbuild.o, cfgcleanup.o):
8507         New.
8508         * basic-block.h (flow_obstack, label_value_list,
8509         tail_recursion_label_list): Declare
8510         (tidy_fallthru_edges): Declare.
8511         (expunge_block, last_loop_beg_note): Delete.
8512         (can_fallthru, flow_nodes_print, flow_edge_list_print): Declare.
8513         * cfg.c: New file
8514         (basic_block_for_insn, label_value_list): Move from flow.c; make global.
8515         (n_basic_blocks, n_edges, basic_block_info, entry_exit_blocks,
8516         init_flow, clear_edges, can_delete_note_p, can_delete_label_p,
8517         flow_delete_insn, flow_delete_insn_chain, create_basic_block,
8518         expunge_block, flow_delete_block, compute_bb_for_insn,
8519         update_bb_for_insn, set_block_for_insn, set_block_for_new_insns,
8520         make_edge, remove_edge, redirect_edge_succ, redirect_edge_succ_nodup,
8521         redirect_edge_pred, split_block, marge_blocks_nomove, block_label,
8522         try_redirect_by_replacing_jump, last_loop_beg_note,
8523         redirect_edge_and_branch, redirect_edge_and_branch_force,
8524         tidy_fallthru_edge, tidy_fallthru_edges, back_edge_of_syntactic_loop_p,
8525         split_edge, insert_insn_on_edge, commit_one_edge_insertion,
8526         commit_edge_insertions, dump_flow_info, debug_flow_info,
8527         dump_edge_info, dump_bb, debug_bb, debug_bb_n, print_rtl_with_bb,
8528         verify_flow_info, purge_dead_edges, purge_all_dead_edges):
8529         Move here from flow.c
8530         * cfganal.c: New file.
8531         (forwarder_block_p, can_fallthru, mark_critical_edges,
8532          mark_dfs_back_edges, need_fake_edge_p, flow_call_edges_add,
8533          find_unreachable_blocks, create_edge_list, free_edge_list,
8534          print_edge_list, verify_edge_list, find_edge_index, flow_nodes_print,
8535          flow_edge_list_print, remove_fake_successors, remove_fake_edges,
8536          add_noreturn_fake_exit_edges, connect_infinite_loops_to_exit,
8537          flow_reverse_top_sort_order_compute, flow_depth_first_order_compute,
8538          flow_dfs_compute_reverse_init, flow_dfs-compute_reverse_add_bb,
8539          flow_dfs-compute_reverse_execute, flow_dfs_compute_reverse_finish);
8540         Move here from flow.c
8541         * cfgbuild.c: New file
8542         (count_basic_blocks, find_label_refs, make_label_edge, make_eh_edge,
8543          make_edges, find_basic_blocks_1, find_basic_blocks,
8544          find_sub_basic_blocks): Move here from flow.c
8545         * cfgcleanup.c: New file.
8546         (try_simplify_condjump, try_forward_edges, tail_recursion_label_p,
8547          merge_blocks_move_predecessor_nojumps,
8548          merge_blocks_move_successor_nojumps, merge_blocks,
8549          flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
8550          try_crossjump_bb, try_optimize_cfg): Move here from flow.c
8551         (delete_unreachable_blocks, cleanup_cfg): Likewise; return true
8552         if succeeded.
8553         * cfgloop.c: New file
8554         (flow_loops_cfg_dump, flow_loop_nested_p, flow_loop_dump,
8555          flow_loops_dump, flow_loops_free, flow_loop_entry_edges_find,
8556          flow_loop_exit_edges_find, flow_loop_nodes_find,
8557          flow_loop_pre_header_scan, flow_loop_pre_header_find,
8558          flow_loop_tree_node_add, flow_loops_tree_build,
8559          flow_loop_level_compute, flow_loops_level_compute, flow_loop_scan,
8560          flow_loops_find, flow_loops_update, flow_loop_outside_edge_p):
8561         Move here from flow.c
8562         * flow.c: Remove everything moved elsewhere
8563         * output.h (cleanup_cfg): Return bool.
8564
8565         * bb-reorder.c (reorder_block_def): Remove 'index'.
8566         (insert_intra_1): Add argument BB, set block for new note.
8567         (make_reorder_chain): Do not depdent on BB indexes.
8568         (make_reorder_chain_1): Do not use BB indexes.
8569         (label_for_bb): Likewise; set BB for new insn.
8570         (emit_jump_to_block_after): Likewise.
8571         (fixup_reorder_chain): Sanity check that all basic blocks
8572         are chained; verify newly created insn chain; remove
8573         undocnitional jump simplifying; Do not use BB indexes;
8574         properly initialize count and frequency information;
8575         dump reordered sequence.
8576         (insert_intra_bb_scope_notes): update call of insert_intra_1.
8577         (insert_inter_bb_scope_notes): Set block for new insn.
8578         (reorder_basic_blocks): Dump flow info before reoredering.
8579
8580 Mon Sep 10 06:47:35 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8581
8582         * alias.c (clear_reg_alias_info): Use K&R format definition.
8583         Avoid unsigned warning.
8584         * builtins.c: Use "unsigned int", not "unsigned".
8585         (target_char_cast): Use host_integerp and tree_low_cst.
8586         (expand_builtin_args_info, expand_builtin_frame_address): Likewise.
8587         (c_strlen): Likewise; OFFSET now HOST_WIDE_INT.
8588         (c_getstr): Likewise.
8589         (std_expand_builtin_va_arg): Use int_size_in_bytes.
8590         (builtin_memcpy_read_str): Avoid unsigned warning.
8591         (expand_builtin_memcpy): Alignments are unsigned.
8592         (expand_builtin_strncpy, expand_builtin_memset): Likewise.
8593         (expand_builtin_expect_jump): Use integer_zerop and integer_onep.
8594         * predict.c (expensive_function_p): LIMIT now unsigned.
8595         * resource.c (mark_target_live_regs): Make some vars unsigned.
8596         * sdbout.c: Use "unsigned int", not "unsigned".
8597         (MAKE_LINE_SAFE): Add cast to avoid unsigned warning.
8598         (sdbout_source_line): Likewise.
8599         (sdbout_record_type_name): Remove "const" for NAME declaration.
8600         * config/alpha/alpha.c (alpha_expand_block_move): Whitespace fixes.
8601
8602 2001-09-10  Richard Sandiford  <rsandifo@redhat.com>
8603
8604         * calls.c (store_one_arg): Expand comment.
8605
8606 2001-09-10  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8607
8608         * calls.c (store_one_arg): Make sure that the entire argument is
8609         pushed if STACK_PARMS_IN_REG_PARM_AREA is defined.
8610
8611 2001-09-09  Richard Henderson  <rth@redhat.com>
8612
8613         * emit-rtl.c (adjust_address): Fix mode for LO_SUM.
8614
8615 Sun Sep  9 10:43:17 CEST 2001  Jan Hubicka  <jh@suse.cz>
8616
8617         * loop.c (combine_givs): Fix computing of benefit once giv is combined.
8618
8619 2001-09-09  Richard Henderson  <rth@redhat.com>
8620
8621         * config/alpha/alpha.c (alpha_next_sequence_number): New.
8622         (alpha_this_literal_sequence_number): New.
8623         (alpha_this_gpdisp_sequence_number): New.
8624         (some_operand, input_operand): Add HIGH.
8625         (local_symbolic_operand): New.
8626         (alpha_encode_section_info): New.
8627         (alpha_legitimate_address_p): Allow LO_SUM.
8628         (alpha_legitimize_address): Generate HIGH+LO_SUM.
8629         (alpha_expand_mov): Likewise.
8630         (secondary_reload_class): Check memory_operand not general_operand
8631         for FP_REGS test.
8632         (alpha_expand_unaligned_load): Force LO_SUM addresses into a register.
8633         (alpha_expand_unaligned_store): Likewise.
8634         (alpha_expand_unaligned_load_words): Likewise.
8635         (alpha_expand_unaligned_store_words): Likewise.
8636         (alpha_expand_block_clear): Likewise.
8637         (print_operand): Handle %#, %*, %H.
8638         (print_operand_address): Handle LO_SUM.
8639         (find_lo_sum): New.
8640         (alpha_does_function_need_gp): Use it.
8641         (alpha_expand_block_move): Fix signed compare warnings.
8642         (alpha_sa_mask, alpha_align_insns): Likewise.
8643         * config/alpha/alpha-protos.h: Update.
8644         * config/alpha/alpha.h (TARGET_EXPLICIT_RELOCS): New.
8645         (MASK_EXPLICIT_RELOCS): New.
8646         (TARGET_SWITCHES): Add -mexplicit-relocs.
8647         (EXTRA_CONSTRAINT): Add 'T'.
8648         (PREFERRED_RELOAD_CLASS): HIGH goes in GENERAL_REGS.
8649         (ASM_APP_ON, ASM_APP_OFF): Turn on and off asm macro expansion.
8650         (ENCODE_SECTION_INFO): Out line.
8651         (REDO_SECTION_INFO_P): New.
8652         (STRIP_NAME_ENCODING): New.
8653         (ASM_OUTPUT_LABELREF): New.
8654         (PRINT_OPERAND_PUNCT_VALID_P): Add #, *.
8655         (PREDICATE_CODES): Update.
8656         * config/alpha/alpha.md (divmodsi_internal_er, divmoddi_internal_er,
8657         call_osf_1_er_noreturn, call_osf_1_er, movdi_er_low, movdi_er_nofix,
8658         movdi_er_fix, prologue_ldgp_1_er, builtin_setjmp_receiver_sub_label_er,
8659         builtin_setjmp_receiver_er, exception_receiver_1_er,
8660         call_value_osf_1_er): New patterns.
8661         (sibcall_osf_1, sibcall_value_osf_1): Remove register alternative.
8662         (movqi, movhi, movsi): Add explicit $31 base register to lda.
8663         * config/alpha/elf.h (ASM_FILE_START): Set nomacro if explicit relocs.
8664         (FINAL_PRESCAN_INSN): New.
8665
8666 Sat Sep  8 22:00:55 CEST 2001  Jan Hubicka  <jh@suse.cz>
8667
8668         * reg-stack.c (subst_stack_regs_pat): Fix fcmov reversal code.
8669
8670 2001-09-08  Andreas Jaeger  <aj@suse.de>
8671
8672         * i386.h (TARGET_SWITCHES): Fix description.
8673
8674 2001-09-07  David Edelsohn  <edelsohn@gnu.org>
8675
8676         * rs6000.c (num_insns_constant): Compute number of instructions
8677         more accurately.
8678
8679         * doc/install.texi: Explain AIX exception handling work-around.
8680         Update URL for AIX fixes.
8681
8682 2001-09-07  Jim Wilson  <wilson@redhat.com>
8683
8684         * alias.c (clear_reg_alias_info): New.
8685         * flow.c (attempt_auto_inc): Call clear_reg_alias_info.
8686         * rtl.h (clear_reg_alias_info): Declare.
8687
8688 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8689
8690         * real.c (EMUSHORT,EMUSHORT_SIZE): Use HImode if no 16-bit type is
8691         available.
8692         (UEMUSHORT): New. Use instead of unsigned EMUSHORT.
8693         (m16m,edivm,emulm): Change declaration to match definition.
8694
8695 2001-09-07  Roman Lechtchinsky <rl@cs.tu-berlin.de>
8696
8697         * reload.c (push_reload): Check for subreg_lowpart_p instead of
8698         SUBREG_BYTE being 0 when determining if the inner part of a subreg
8699         can be reloaded.
8700
8701 2001-09-07  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
8702
8703         * c-common.c (signed_or_unsigned_type): Handle machine mode types
8704         which have no corresponding C type.
8705         * fold_const.c (target_isinf,target_isnan,target_negative): Update
8706         the representation of 64-bit doubles to work with 64-bit ints.
8707
8708 2001-09-07  Aldy Hernandez  <aldyh@redhat.com>
8709
8710         * config/mips/mips.c (override_options): Do not override ISA when ABI
8711         specified if MIPS_CPU_STRING_DEFAULT was specified.
8712
8713 2001-09-07  Richard Henderson  <rth@redhat.com>
8714
8715         * loop.c (record_giv): Avoid simplifying MULT to ASHIFT.
8716         (express_from_1): Wrap lines.
8717         * rtlanal.c (commutative_operand_precedence): Rename from
8718         operand_preference; export.
8719         * rtl.h: Declare it.
8720         * simplify-rtx.c (simplify_gen_binary): Tidy +/- const_int handling.
8721         (simplify_binary_operation): Invoke simplify_plus_minus on
8722         (CONST (PLUS ...)) as well.
8723         (struct simplify_plus_minus_op_data): New.
8724         (simplify_plus_minus_op_data_cmp): New.
8725         (simplify_plus_minus): Use them.  Avoid infinite recursion with
8726         simplify_binary_operation wrt CONST.
8727
8728 Fri Sep  7 11:52:30 2001   Kazu Hirata  <kazu@hxi.com>
8729
8730         * h8300-protos.h (general_operand_dst_push): Remove.
8731         * h8300.c (general_operand_dst_push): Likewise.
8732         * h8300.h (OK_FOR_T): Likewise.
8733         (EXTRA_CONSTRAINTS): Do not use OK_FOR_T.
8734         * h8300.md (pushqi_h8300): New.
8735         (pushqi_h8300hs): Likewise.
8736         (pushqi): Likewise.
8737         (pushhi_h8300): Likewise.
8738         (pushhi_h8300hs): Likewise.
8739         (pushhi): Likewise.
8740
8741 Fri Sep  7 12:56:26 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
8742
8743         * genattrtab.c (attr_printf): First arg is unsigned.
8744         Clean up formatting of callers.
8745
8746 2001-09-06  Aldy Hernandez  <aldyh@redhat.com>
8747
8748         * config/mips/mips.c (override_options): Allow abi32 with 64 bit
8749         registers.
8750
8751 2001-09-07  Andreas Jaeger  <aj@suse.de>
8752
8753         * i386.h (TARGET_SWITCHES): Fix descriptions.
8754
8755 2001-09-07  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
8756
8757         * stor-layout.c (compute_record_mode): Check DECL_SIZE is set.
8758
8759 2001-09-06  Ira Ruben  <ira@apple.com>
8760
8761         Remove OP_IDENTIFIER.
8762         * tree.def (OP_IDENTIFIER): Remove.
8763         * tree.c (tree_node_kind enum): Remove op_id_kind.
8764         (tree_node_kind_names): Remove "op_identifiers".
8765         (make_node): Remove OP_IDENTIFIER test.
8766         (build_op_identifier): Removed because it isn't being used.
8767         * print-tree.c (print_node): Remove OP_IDENTIFIER case.
8768         * cp/pt.c (tsubst): Remove OP_IDENTIFIER case.
8769
8770 2001-09-06  Richard Henderson  <rth@redhat.com>
8771
8772         * simplify-rtx.c (simplify_binary_operation): Revert last change.
8773
8774 2001-09-06  Richard Henderson  <rth@redhat.com>
8775
8776         * simplify-rtx.c (simplify_binary_operation): Simplify contents
8777         of CONST.
8778
8779 2001-09-06  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
8780
8781         * config/rs6000/rs6000.c (rs6000_emit_prologue): Fix DWARF2 register
8782         number used for CR register.
8783
8784 Thu Sep  6 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
8785                           Joern Rennecke (amylaar@cygnus.com)
8786
8787         * h8300-protos.h (h8300_return_addr_rtx): New prototype.
8788         * h8300.c (initial_offset): Handle offset between RP and FP.
8789         (h8300_return_addr_rtx): New function.
8790         * h8300.h (FIRST_PSEUDO_REGISTER): Bump now that we have a
8791         return register.
8792         (FIXED_REGISTERS, CALL_USED_REGISTERS): Corresponding changes.
8793         (REG_ALLOC_ORDER, RETURN_ADDRESS_POINTER_REGNUM): Likewise.
8794         (REG_CLASS_CONTENTS, ELIMINABLE_REGS): Likewise.
8795         (CAN_ELIMINATE, REGISTER_NAMES):
8796         (RETURN_ADDR_RTX): Call h8300_return_addr_rtx.
8797
8798 2001-09-06  Nathan Sidwell  <nathan@codesourcery.com>
8799
8800         Remove TYPE_NONCOPIED_PARTS.
8801         * tree.h (TYPE_NONCOPIED_PARTS): Remove.
8802         (struct tree_type): Remove noncopied_parts.
8803         * c-tree.h (TYPE_ACTUAL_ARG_TYPES): Map onto TYPE_BINFO.
8804         * expr.c (save_noncopied_parts, init_noncopied_parts): Remove.
8805         (fixed_type_p): Remove.
8806         (expand_expr, INIT_EXPR): Don't deal with noncopied parts.
8807         (expand_expr, MODIFY_EXPR): Likewise.
8808         * ggc-common.c (ggc_mark_trees): Remove TYPE_NONCOPIED_PARTS.
8809         * doc/c-tree.texi: Remove TYPE_NONCOPIED_PARTS FIXME.
8810
8811 2001-09-06  Alan Modra  <amodra@bigpond.net.au>
8812
8813         * config/rs6000/rs6000.c (mask_operand): Use signed vars to avoid
8814         compiler warnings.
8815         (mask64_operand): Likewise.
8816         (includes_rldic_lshift_p): Likewise.
8817         (includes_rldicr_lshift_p): Likewise.
8818
8819 2001-09-05  Ziemowit Laski  <zlaski@apple.com>
8820
8821         * objc/objc-act.c (build_message_expr): If a class method cannot
8822         be found, do not issue a warning if a corresponding instance
8823         method exists in the root class.
8824
8825 2001-09-05  Richard Henderson  <rth@redhat.com>
8826
8827         * config/alpha/alpha.c (alpha_expand_mov): Initialize temp.
8828
8829 2001-09-05  Zack Weinberg  <zack@codesourcery.com>
8830
8831         * function.c (ggc_mark_struct_function): Mark f->outer.
8832         * toplev.c (rest_of_compilation): Clear DECL_SAVED_INSNS here...
8833         * integrate.c (output_inline_function): ... not here.
8834
8835 Wed Sep  5 17:28:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
8836
8837         * profile.c (branch_prob): Call add_noreturn_fake_exit_edges.
8838
8839         * i386.c (size_cost): New static variable.
8840         (override_function): Use size_cost when -Os is specified.
8841
8842         * i386.c (ix86_expand_prologue): Set use_fast_prologue_epilogue
8843         properly;  Use current_function_calls_eh_return.
8844         (ix86_expand_epilogue): Avoid dummy optimize_size tests;
8845         use leave to avoid dependency chain.
8846
8847         * local-alloc.c (update_equiv_regs): Use CFG to iterate over INSN stream;
8848         get BB loop_depth instead of computing it from LOOP notes.
8849
8850         * reg-stack.c (subst_stack_reg_pat): Handle reversal of conditional moves.
8851
8852 2001-09-05  John David Anglin  <dave@hiauly1.hia.nrc.ca>
8853
8854         * som.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
8855         * pa.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
8856         UNALIGNED_DOUBLE_INT_ASM_OP): Define
8857
8858 2001-09-05  Jeffrey A Law  (law@cygnus.com)
8859             Jason Merrill (jason@redhat.com)
8860
8861         * stor-layout.c (layout_type): Complain if an array's size can
8862         not be represented in a size_t.
8863
8864         * config/h8300/elf.h (ENDFILE_SPEC, STARTFILE_SPEC): Define.
8865
8866 2001-09-05  David Billinghurst <David.Billinghurst@riotinto.com>
8867
8868         * gcc.c: (process_command) Add parentheses around assignment
8869         used as truth value.
8870
8871 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
8872
8873         * config/mips/mips.c (save_restore_insns): Don't mark any register
8874         save slots as unchanging if current_function_calls_eh_return.
8875
8876 2001-09-05  Richard Henderson  <rth@redhat.com>
8877
8878         * config/alpha/alpha.c (alpha_legitimate_address_p): New.
8879         * config/alpha/alpha-protos.h: Declare it.
8880         * config/alpha/alpha.h (GO_IF_LEGITIMATE_ADDRESS): Move to c file.
8881         (NONSTRICT_REG_OK_FOR_BASE_P): Rename from non-strict macro.
8882         (NONSTRICT_REG_OK_FP_BASE_P): Likewise.
8883         (STRICT_REG_OK_FOR_BASE_P): Rename from strict macro.
8884         (REG_OK_FOR_BASE_P): Select one of the above.
8885
8886 2001-09-05  Richard Sandiford  <rsandifo@redhat.com>
8887
8888         * config/mips/t-elf (EXTRA_PARTS): Use EXTRA_MULTILIB_PARTS instead.
8889         (crti.o): Prefix name of object file with $(T).
8890         (crtn.o): Likewise.
8891
8892 2001-09-05  David S. Miller  <davem@redhat.com>
8893
8894         * config/sparc/linux.h: Set CPLUSPLUS_CPP_SPEC.
8895         * config/sparc/linux64.h: Likewise.
8896
8897 2001-09-05  Andreas Jaeger  <aj@suse.de>
8898
8899         * doc/invoke.texi (i386 Options): -mwide-multiply is not
8900         available anymore, remove the documentation.
8901         (i386 Options): Fix typo, cleanup index entries.
8902
8903         * prefix.c (concat): Remove, we can use the version from liberty.
8904
8905 2001-09-05  Richard Henderson  <rth@redhat.com>
8906
8907         * config/alpha/alpha.c (alpha_expand_mov, alpha_expand_mov_nobwx):
8908         New functions split out of md file expanders.
8909         * config/alpha/alpha-protos.h: Declare them.
8910         * config/alpha/alpha.md (movqi, movhi, movsi, movdi): Use them.
8911
8912 2001-09-05  Neil Booth  <neil@daikokuya.demon.co.uk>
8913
8914         * cppmacro.c (funlike_invocation_p): No need to restore context.
8915
8916 2001-09-04  Richard Henderson  <rth@redhat.com>
8917
8918         * reload.c (push_reload): Export.
8919         * reload.h (push_reload): Declare it.
8920
8921         * config/alpha/alpha.h (LEGITIMIZE_ADDRESS): Move out o' line.
8922         (LEGITIMIZE_RELOAD_ADDRESS): Likewise.
8923         * config/alpha/alpha.c (alpha_legitimize_address): New.
8924         (alpha_legitimize_reload_address): Likewise.
8925         * config/alpha/alpha-protos.h: Declare them.
8926
8927 2001-09-04  Stan Shebs  <shebs@apple.com>
8928
8929         * config/darwin.h (ASM_DECLARE_FUNCTION_NAME): Define.
8930         * config/darwin.c (machopic_stub_name): Account for internally
8931         generated lib calls such as memcpy.
8932
8933 2001-09-04  Richard Henderson  <rth@redhat.com>
8934
8935         * unwind.h (_UA_END_OF_STACK): New flag.
8936         * unwind.inc (_Unwind_ForcedUnwind_Phase2): Set it.
8937
8938 Tue Sep  4 11:16:35 2001  Jeffrey A Law  (law@cygnus.com)
8939
8940         * h8300/elf.h (LINK_SPEC): Redefine appropriately for the H8.
8941
8942 2001-09-04  Richard Sandiford  <rsandifo@redhat.com>
8943
8944         * config/mips/mips.c (save_restore_insns): Change base_offset to
8945         fp_offset in second call to mips_emit_frame_related_store.
8946
8947 2001-09-04  Hans-Peter Nilsson  <hp@axis.com>
8948
8949         * doc/rtl.texi: Mention that besides as a CODE_LABEL, a label can
8950         sometimes be represented as a NOTE of type
8951         NOTE_INSN_DELETED_LABEL.
8952         (Insns): Document NOTE_INSN_DELETED_LABEL.
8953
8954 2001-09-04  Nathan Sidwell  <nathan@codesourcery.com>
8955
8956         * c-common.h (tree_dump_index): Add more comments.
8957         * c-dump.c (dump_files): Name flags `tree' rather than `ast'.
8958         (dump_option_value_info): New struct.
8959         (dump_options): New array.
8960         (dump_switch_p): Parse switch options symbolically.
8961         * doc/invoke.texi (-fdump-ast): Rename to ...
8962         (-fdump-tree): ... here. Document that options are symbolic, and
8963         not all are applicable.
8964
8965 2001-09-04  David S. Miller  <davem@redhat.com>
8966
8967         * config/sparc/sparc.md (define_splits): Kill constraints.
8968
8969         Cleanup redundant and unused insn attributes.
8970         * config/sparc/sparc.md (define_attr "insn"): Kill address, unary,
8971         binary, and move.  Mark ialu as default.
8972         (commented out define_function_unit "alu"): Kill.
8973         (define_attr "use_clobbered"): Kill.
8974         (whole file): Kill address insn type references.  Replace
8975         all unary/binary/move references with ialu.
8976         * config/sparc/sparc.c (whole file): Kill TYPE_ADDRESS
8977         references.  Replace TYPE_{UNARY,BINARY,MOVE} references with
8978         TYPE_IALU.
8979
8980         Simplify length insn attribute and make more judicious use
8981         of insn attribute defaulting.
8982         * config/sparc/sparc.md (all insns with length > one): Mark as
8983         insn type multi if real instructions, else use default if
8984         it is a forced splitter.
8985         (all insns with length == one): Use default insn length.
8986         (all insns of type ialu): Use default insn type.
8987
8988         Fix erroneous insn attribute settings.
8989         (addx): Set insn type to misc.
8990         (mulsidi3_sp64, const_mulsidi3_sp64, umulsidi3_sp64,
8991         const_umulsidi3_sp64): Set insn type to imul.
8992
8993         Track SFmode vs DFmode insns according to UltraSPARC
8994         scheduling rules.
8995         * config/sparc/sparc.md ("fptype"): New attribute, default
8996         to "single".
8997         (all DFmode single insns): Mark as fptype "double".
8998
8999 2001-09-03  Jakub Jelinek  <jakub@redhat.com>
9000
9001         * loop.c (express_from_1): Fix CONSTANT_P(a) case.
9002
9003 2001-09-03  Richard Henderson  <rth@redhat.com>
9004
9005         * function.h (struct function): Add arg_pointer_save_area_init.
9006         * function.c (expand_function_end): Init arg_pointer_save_area.
9007         (get_arg_pointer_save_area): Do not init arg_pointer_save_area
9008         when called from a nested function.
9009
9010 2001-09-02  Angela Marie Thomas <angela@cygnus.com>
9011
9012         * fixinc/Makefile.in: Regenerate fixincl.x only if maintainer-mode
9013         is enabled.
9014
9015 Sun Sep  2 18:37:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
9016
9017         * reload1.c (fixup_abnormal_edges): Allow NOTEs in the sequence.
9018
9019 2001-09-01  Geoffrey Keating  <geoffk@redhat.com>
9020
9021         * expr.c (push_block): Make sane use of STACK_GROWS_DOWNWARD.
9022         (emit_push_insn): Use specified padding direction when
9023         STACK_PUSH_CODE is POST_INC.
9024
9025         * config/stormy16/stormy16.h (DWARF2_UNWIND_INFO): Define to 0.
9026
9027 2001-09-01  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9028
9029         * mips.h (INITIAL_ELIMINATION_OFFSET): Add missing `else abort'.
9030
9031 2001-09-01  Neil Booth  <neil@daikokuya.demon.co.uk>
9032
9033         * cppinit.c (cpp_start_read): Free the imacros list as we
9034         traverse it.  Don't free the chains before returning.
9035         (_cpp_push_next_buffer): Only try pushing buffers if we've
9036         completed -imacros handling.
9037
9038 2001-08-31  Eric Christopher  <echristo@redhat.com>
9039
9040         * gcc.c (handle_braces): Add explaination for abort.
9041
9042 2001-08-30  Roman Zippel  <zippel@linux-m68k.org>
9043
9044         * expmed.c (store_bit_field): Update to patch from 2001-08-27:
9045         move adjustment of bitpos instead.
9046
9047 2001-08-31  Zack Weinberg  <zack@codesourcery.com>
9048
9049         * function.c: Remove all_functions.  Make outer_function_chain
9050         static.
9051         (init_function_start): Don't add new function structure to
9052         all_functions.
9053         (find_function_data, push_function_context_to,
9054         pop_function_context_from, put_var_into_stack,
9055         trampoline_address): Update for changed structure element names.
9056         (push_function_context_to): Disentangle.
9057         (free_after_compilation): Also free F.
9058         (expand_dummy_function_end): Don't free cfun here.
9059         (put_var_into_stack): Comment why we can't use find_function_data here.
9060         (fix_lexical_addr, trampoline_address, ): Use find_function_data.
9061         (mark_function_chain): Split into maybe_mark_struct_function and
9062         ggc_mark_struct_function.  Export the latter.
9063         (init_function_once): Mark from cfun and outer_function_chain;
9064         not all_functions.
9065
9066         * function.h (struct function): Kill next_global.  Rename next
9067         to outer.  All users updated to match.
9068         (all_functions, outer_function_chain): Don't declare.
9069
9070         * ggc-common.c (ggc_mark_trees): Mark DECL_SAVED_INSNS.
9071         * integrate.c (output_inline_function): Clear DECL_SAVED_INSNS,
9072         don't touch f->inlinable, after calling rest_of_compilation.
9073
9074         * tree.h: Forward-declare struct function.  Prototype
9075         ggc_mark_struct_function.
9076
9077 2001-08-31  Kazu Hirata  <kazu@hxi.com>
9078
9079         * config/h8300/h8300.md (*andorhi3): Fix typos.
9080
9081 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9082
9083         * calls.c (emit_library_call_value): Don't use a fixed
9084         argument after VA_CLOSE, i.e. out of scope in traditional C.
9085
9086         * emit-rtl.c (gen_rtvec): Likewise.
9087
9088 2001-08-31  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9089
9090         * Makefile.in (c-pragma.o): Depend on output.h.
9091         (reorg.o): Depend on except.h.
9092
9093         * c-pragma.c: Include output.h.
9094
9095         * reorg.c: Include except.h.
9096
9097         * unwind-dw2.c: Call __builtin_alloca, not alloca.
9098
9099 2001-08-31  Richard Henderson  <rth@redhat.com>
9100
9101         * sched-deps.c (add_dependence): Don't elide dependency if the
9102         conditional used by insn is modified in elem.
9103
9104 2001-08-31  Nick Clifton  <nickc@cambridge.redhat.com>
9105
9106         * config/v850/v850.h (OUTPUT_ADDR_CONST_EXTRA): Define.
9107
9108 2001-08-31  Diego Novillo  <dnovillo@redhat.com>
9109
9110         * c-decl.c (c_decode_option): Skip '-f' prefix before calling
9111         dump_switch_p.
9112
9113 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
9114
9115         * config/stormy16/stormy16.c (stormy16_asm_out_destructor): New
9116         function.
9117         (stormy16_asm_out_constructor): New function.
9118         (TARGET_ASM_CONSTRUCTOR): Define.
9119         (TARGET_ASM_DESTRUCTOR): Define.
9120
9121 2001-08-31  Andreas Jaeger  <aj@suse.de>
9122
9123         * gcse.c (add_label_notes): REG_LABEL is an INSN_LIST.
9124         * loop.c (add_label_notes): Likewise.
9125         * reload.c (find_reloads): Likewise.
9126         * config/sh/sh.c (machine_dependent_reorg): Likewise.
9127
9128 2001-08-31  Jason Merrill  <jason_merrill@redhat.com>
9129
9130         * unwind-pe.h (read_uleb128, read_sleb128): Move actual reading
9131         code here.  Take _Unwind_{W,Sw}ord*.
9132         (read_encoded_value_with_base): Use them.
9133         * unwind-dw2.c (_Unwind_FrameState): Make cfa_offset and cfa_reg
9134         words.
9135         (extract_cie_info): Simplify read_?leb128 handling.
9136         (execute_stack_op, execute_cfa_program): Likewise.
9137         * unwind-dw2-fde.c (get_cie_encoding): Likewise.
9138
9139 2001-08-31  Geoffrey Keating  <geoffk@redhat.com>
9140
9141         * config/stormy16/stormy16.c (stormy16_expand_epilogue): Use
9142         the frame pointer to pop the stack if convenient.
9143
9144         * config/stormy16/stormy16.c (stormy16_initialize_trampoline):
9145         Don't use post-increment before combine.
9146         * config/stormy16/stormy16.h (STATIC_CHAIN_REGNUM): Don't use
9147         a call-saved register.
9148
9149 2001-08-31  Andreas Jaeger  <aj@suse.de>
9150
9151         * jump.c (mark_jump_label): Revert patch from 2001-08-28, the
9152         code was correct.
9153
9154 2001-08-30  Geoffrey Keating  <geoffk@redhat.com>
9155
9156         * config/stormy16/stormy16.md (udivmodhi4): Express using UDIV/UMOD,
9157         not DIV/MOD, of course.
9158
9159 2001-08-30  Vladimir Makarov  <vmakarov@redhat.com>
9160
9161         * rtl.def: Undo my patch commited 2001-08-27.
9162
9163         * genattrtab.c: Ditto.
9164
9165         * rtl.h: Ditto.
9166
9167         * sched-int.h: Ditto.
9168
9169         * target-def.h: Ditto.
9170
9171         * target.h: Ditto.
9172
9173         * haifa-sched.c: Ditto.
9174
9175         * sched-rgn.c: Ditto.
9176
9177         * sched-vis.c: Ditto.
9178
9179         * Makefile.in: Ditto.
9180
9181         * doc/md.texi: Ditto.
9182
9183         * doc/tm.texi: Ditto.
9184
9185         * doc/contrib.texi: Ditto.
9186
9187         * doc/gcc.texi: Ditto.
9188
9189         * genattrtab.h: Remove it.
9190
9191         * genautomata.c: Remove it.
9192
9193         * genattr.c: Undo my patch and Richard Henderson's patch commited
9194         2001-08-27.
9195
9196 Thu Aug 30 19:22:15 2001  J"orn Rennecke <amylaar@redhat.com>
9197
9198         * config.gcc (h8300-*-elf*): New case.
9199         * h8300.h (CPP_SPEC): Add subtarget_cpp_spec.
9200         (SUBTARGET_CPP_SPEC): Define.
9201         (EXTRA_SPECS): Define.
9202         (SUBTARGET_EXTRA_SPECS): Define.
9203         * config/h8300/crti.asm, config/h8300/crtn.asm: New files.
9204         * config/h8300/elf.h, config/h8300/t-elf: Likewise.
9205
9206 Thu Aug 30 18:50:37 2001  J"orn Rennecke <amylaar@redhat.com>
9207
9208         * t-h8300 (LIB1ASMFUNCS): Add _fixunssfdi and _fixunssfsi_asm.
9209         (LIB2FUNCS_EXTRA): Define.
9210         config/h8300/lib1funcs.asm: New part: L_fixunssfsi_asm .
9211         config/h8300/fixunssfsi.c: New file.
9212
9213 2001-08-30  Kazu Hirata  <kazu@hxi.com>
9214
9215         * config/h8300/h8300.md (zero_extendqihi2): Changes to
9216         define_expand to accommodate target-specific attributes.
9217         (anonymous zero_extendqihi2 patterns): New.
9218
9219 Thu Aug 30 18:10:56 2001  J"orn Rennecke <amylaar@redhat.com>
9220
9221         * h8300.md (*andorhi3): New pattern.
9222
9223 Thu Aug 30 16:00:31 2001  J"orn Rennecke <amylaar@redhat.com>
9224
9225         * h8300.c (dosize): Fix test for "sub".
9226
9227 Thu Aug 30 10:21:43 2001  J"orn Rennecke <amylaar@redhat.com>
9228
9229         * c-typeck.c (pointer_diff): Try to eliminate common term before
9230         doing conversions.
9231
9232 2001-08-30  Nick Clifton  <nickc@cambridge.redhat.com>
9233
9234         * config/arm/arm.c (arm_compute_initial_elimination_offset):
9235         Account for the saves of the FP registers.
9236
9237         * config/arm/unknown-elf.h (TEXT_SECTION): Delete.
9238         (TEXT_SECTION_ASM_OP): Define.
9239         (INIT_SECTION_ASM_OP): Define.
9240         (FINI_SECTION_ASM_OP): Define.
9241         (SUBTARGET_EXTRA_SECTIONS): Remove trailing comma.
9242         (RDATA_SECTION_FUNCITON): Provide prototype.
9243
9244 2001-08-29  Geoffrey Keating  <geoffk@redhat.com>
9245
9246         * reload1.c (move2add_note_store): Correct typo checking for
9247         argument pushes.
9248
9249 2001-08-29  Andrew MacLeod  <amacleod@redhat.com>
9250
9251         * gcse.c (compute_hash_table): The SRC part of an insn with a RETVAL
9252         note should not be considered outside the libcall block.
9253
9254 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9255
9256         * genattrtab.c (attr_printf): Use VA_OPEN/VA_FIXEDARG/VA_CLOSE.
9257
9258 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9259
9260         * config/h8300/h8300.md (movsi_h8300hs): Make it 64-bit safe.
9261
9262 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9263
9264         * config/h8300/h8300-protos.h: Add a prototype for
9265         emit_logical_op.
9266         * config/h8300/h8300.c (emit_logical_op): New.
9267         * config/h8300/h8300.md (andhi3): Use emit_logical_op.
9268         (andsi3): Likewise.
9269         (iorhi3): Likewise.
9270         (iorsi3): Likewise.
9271         (xorhi3): Likewise.
9272         (xorsi3): Likewise.
9273
9274 2001-08-29  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9275
9276         * pa.c (move_operand): Cast GET_MODE_SIZE results to HOST_WIDE_INT for
9277         comparison with rtx INTVAL.
9278         (pa_output_function_prologue): Don't mix signed and unsigned in `?'
9279         expression.
9280         * pa.h (FUNCTION_ARG_SIZE): Likewise.
9281
9282 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9283
9284         * config/h8300/lib1funcs.asm: Update the copyright.  Fix
9285         comment typos.
9286
9287 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9288
9289         * config/h8300/h8300.md (anonymous movhi pattern): Don't move
9290         (reg n) to (mem (pre_dec (reg n))
9291         (anonymous movsi pattern): Likewise.
9292
9293 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9294
9295         * config/h8300/h8300.h (RETURN_ADDR_RTX): New.
9296
9297 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9298
9299         * config/h8300/h8300.md (movsi_h8300hs): Optimize loading of
9300         several special constants.
9301
9302 2001-08-29  Kazu Hirata  <kazu@hxi.com>
9303
9304         * config/h8300/lib1funcs.asm: Fix comment typos.
9305
9306 2001-08-29  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9307
9308         * iris6.h (ASM_DECLARE_OBJECT_NAME, ASM_FINISH_DECLARE_OBJECT):
9309         Fix format specifier warnings.
9310
9311         * irix6-libc-compat.c (inet_ntoa, inet_lnaof, inet_netof,
9312         inet_makeaddr, semctl): Prototype.
9313
9314         * mips.c (compute_frame_size): Fix signed/unsigned warnings.
9315         (save_restore_insns): Use base_offset, not gp_offset.
9316
9317         * mips.h (GP_REG_OR_PSEUDO_STRICT_P): Fix signed/unsigned warning.
9318         (ASM_OUTPUT_BYTE): Fix format specifier warning.
9319
9320 2001-08-29  Richard Henderson  <rth@redhat.com>
9321
9322         * bb-reorder.c (function_tail_eff_head): New.
9323         (record_effective_endpoints): Set it.
9324         (fixup_reorder_chain): Use it.
9325
9326 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9327
9328         * dwarf2asm.c (dw2_asm_output_nstring): Fix typo in previous change.
9329
9330 2001-08-28  Dale Johannesen  <dalej@apple.com>
9331
9332         * config/darwin.c (machopic_function_base_name): Add const
9333         qualifier to a string.
9334         (darwin_encode_section_info): Ditto.
9335
9336 2001-08-28  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9337
9338         * tree.c (default_valid_attribute_p): Don't use PARAMS on a
9339         function definition.
9340
9341 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
9342
9343         * df.h (struct df): Add rts_order variable.
9344
9345         * df.c (df_visit_next_rts): New function.
9346         (df_visit_next): Renamed to df_visit_next_rc
9347         (df_analyse_1): Allocate/compute/free rts_order as well.
9348         (df_rd_global_compute): Use df_visit_next_rc instead of
9349         df_visit_next.
9350         (df_ru_global_compute): Use df_visit_next_rts instead of
9351         df_visit_next.
9352
9353         * flow.c (flow_reverse_top_sort_order_compute): New function.
9354
9355         * basic-block.h: Add prototype.
9356
9357 2001-08-28  Daniel Berlin  <dan@cgsoftware.com>
9358
9359         * ssa-ccp.c (ssa_ccp_df_delete_unreachable_insns): For unreachable
9360         blocks, the BB_REACHABLE is now set, rather than aux being
9361         non-NULL. Update the test to reflect this.
9362
9363 2001-08-28  Eric Christopher  <echristo@redhat.com>
9364
9365         * config/mips/crtn.asm: Add comment explaining 16 byte alignment.
9366         config/mips/crti.asm: Ditto.
9367
9368 2001-08-28  Eric Christopher <echristo@redhat.com>
9369             Richard Henderson <rth@redhat.com>
9370
9371         * c-pragma.h (add_weak): Move prototype from here...
9372         * output.h (add_weak): ... to here.
9373         * varasm.c (add_weak): Fix typo.
9374         * config/mips/crti.asm: New file.
9375         * config/mips/crtn.asm: Ditto.
9376         * config/mips/elf.h (SBSS_SECTION_ASM_OP) Add #undef.
9377         (CTOR_LISTS_DEFINED_EXTERNALLY): Remove.
9378         (INVOKE__main): Ditto.
9379         (INIT_SECTION_ASM_OP): New.
9380         (FINI_SECTION_ASM_OP): Ditto.
9381         (STARTFILE_SPEC): Add crti.
9382         (ENDFILE_SPEC): Add crtn.
9383         * config/mips/elf64.h: Same.
9384         * config/mips/rtems64.h (INVOKE__main, NAME__MAIN, SYMBOL__MAIN):
9385         Remove.
9386         * config/mips/vxworks.h: Ditto.
9387         * config/mips/t-elf: Support crti and crtn.
9388
9389 2001-08-28  Alexandre Oliva  <aoliva@redhat.com>
9390
9391         * jump.c (mark_jump_label): Fix typo: REG_LABEL is EXPR_LIST, not
9392         INSN_LIST.
9393
9394 2001-08-28  Richard Henderson  <rth@redhat.com>
9395
9396         * config/ia64/ia64.md (andcmbi3, iorcmbi3): Fix typos.
9397         (one_cmplbi2 splitter): Remove redundant test.
9398
9399 2001-08-28  Dale Johannesen  <dalej@apple.com>
9400
9401         * config/rs6000/darwin.h (DEFAULT_SIGNED_CHAR): Define.
9402
9403 2001-08-28  Danny Smith  <dannysmith@users.sourceforge.net>
9404
9405         * config/i386/cygwin.h (BIGGEST_FIELD_ALIGNMENT): Set to 64.
9406
9407 2001-08-28  Stan Shebs  <shebs@apple.com>
9408
9409         * config/darwin.h (ASM_OUTPUT_LABELREF): Handle '*' names.
9410         (UNALIGNED_SHORT_ASM_OP): Define.
9411         (UNALIGNED_INT_ASM_OP): Define.
9412
9413 2001-08-28  Will Cohen  <wcohen@redhat.com>
9414
9415         * config/rs6000/rs6000.md (store_multiple): Correct RTL
9416         generation for first set.
9417
9418 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
9419
9420         * flow.c (redirect_edge_succ_nodup): Return new edge.
9421         (try_simplify_condjump): Use new edge.
9422         * basic-block.h (redirect_edge_succ_nodup): Update prototype.
9423
9424         * cse.c (cse_basic_block): Skip note instructions.
9425
9426 2001-08-27  Richard Henderson  <rth@redhat.com>
9427
9428         * combine.c (combine_simplify_rtx): Don't reverse condition
9429         if there is no reverse for the condition.
9430         (simplify_comparison): Don't simplify subregs from INT to FP.
9431
9432         * config/m68k/m68k.md (sordered, sordered_1, sunordered, sunordered_1,
9433         suneq, suneq_1, sunge, sunge_1, sungt, sungt_1, sunle, sunle_1,
9434         sunlt, sunlt_1, sltgt, sltgt_1, fsogt_1, fsoge_1, fsolt_1, fsole_1,
9435         bordered, bunordered, buneq, bunge, bungt, bunle, bunlt, bltgt,
9436         bordered_rev, bunordered_rev, buneq_rev, bunge_rev, bungt_rev,
9437         bunle_rev, bunlt_rev, bltgt_rev): New patterns.
9438
9439 2001-08-27  Roman Zippel  <zippel@linux-m68k.org>
9440
9441         * config/m68k/m68k.md (subreghi1ashrdi_const32, bsetmemqi,
9442         bsetmemqi+1, strict_low_part peephole): Fix SUBREG_BYTE offset.
9443         (pushqi1): New.
9444         (adddi_dilshr32, adddi_dishl32): Only data register can be
9445         source for mem destination.
9446
9447         * expmed.c (store_bit_field): Ignore adjustment to bitpos
9448         and use bitnum to decide about register move.
9449
9450 2001-08-27  Richard Henderson  <rth@redhat.com>
9451
9452         * genattr.c (main): Emit state_t even when not doing scheduling.
9453
9454 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
9455             Richard Henderson  <rth@redhat.com>
9456
9457         * gcse.c (reg_first_set, reg_last_set): Replace with ...
9458         (reg_avail_info, current_bb): ... these.
9459         (oprs_unchanged_p, record_last_reg_set_info): Use them.
9460         (compute_hash_table): Likewise.
9461
9462 2001-08-27  Roman Zippel <zippel@linux-m68k.org>
9463
9464         * flow.c (verify_flow_info): Use checksums to verify edges.
9465
9466 2001-08-27  Richard Henderson  <rth@redhat.com>
9467
9468         * genautomata.c (expand_automata): Always create a description.
9469
9470 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
9471
9472         * optabs.c (expand_binop): Correctly handle the carry in multiword
9473         add/subtract operations.
9474
9475 2001-08-27  Fred Fish  <fnf@be.com>
9476
9477         * ginclude/stddef.h: Fix typo, __SIZE__TYPE__ should be
9478         __SIZE_TYPE__.
9479
9480 2001-08-27  Geoffrey Keating  <geoffk@redhat.com>
9481
9482         * reload.c (find_reloads_toplev): Back out this change:
9483
9484         Wed Jul 26 19:44:05 2000   Hans-Peter Nilsson  <hp@axis.com>
9485
9486         * reload.c (find_reloads_toplev): Reload a paradoxical subreg of a
9487         mem if the address is a mode_dependent_address_p.
9488
9489 2001-08-27  Vladimir Makarov  <vmakarov@touchme.toronto.redhat.com>
9490
9491         * rtl.def (DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT, EXCLUSION_SET,
9492         PRESENCE_SET, ABSENCE_SET, DEFINE_BYPASS, DEFINE_AUTOMATON,
9493         AUTOMATA_OPTION, DEFINE_RESERVATION, DEFINE_INSN_RESERVATION): New
9494         RTL constructions.
9495
9496         * genattr.c (main): New variable num_insn_reservations.  Increase
9497         it if there is DEFINE_INSN_RESERVATION.  Output automaton based
9498         pipeline hazard recognizer interface.
9499
9500         * genattrtab.h: New file.
9501
9502         * genattrtab.c: Include genattrtab.h.
9503         (attr_printf, check_attr_test, make_internal_attr,
9504         make_numeric_value): Move protypes into genattrtab.h.  Define them
9505         as external.
9506         (num_dfa_decls): New global variable.
9507         (main): Process DEFINE_CPU_UNIT, DEFINE_QUERY_CPU_UNIT,
9508         DEFINE_BYPASS, EXCLUSION_SET, PRESENCE_SET, ABSENCE_SET,
9509         DEFINE_AUTOMATON, AUTOMATA_OPTION, DEFINE_RESERVATION,
9510         DEFINE_INSN_RESERVATION.  Call expand_automata and write_automata.
9511
9512         * genautomata.c: New file.
9513
9514         * rtl.h (LINK_COST_ZERO, LINK_COST_FREE): Remove them.
9515
9516         * sched-int.h: (curr_state): Add the external definition for
9517         automaton pipeline interface.
9518         (haifa_insn_data): Add comments for members blockage and units.
9519
9520         * target-def.h (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9521         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9522         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9523         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9524         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9525         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9526         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): New
9527         macros.
9528         (TARGET_SCHED): Use the new macros.
9529
9530         * target.h (use_dfa_pipeline_interface, init_dfa_pre_cycle_insn,
9531         dfa_pre_cycle_insn, init_dfa_post_cycle_insn, dfa_post_cycle_insn,
9532         first_cycle_multipass_dfa_lookahead, init_dfa_bubbles,
9533         dfa_bubble): New members in gcc_target.sched.
9534
9535         * haifa-sched.c (insert_schedule_bubbles_p): New variable.
9536         (MAX_INSN_QUEUE_INDEX): New macro for automaton interface.
9537         (insn_queue): Redefine it as pointer to array.
9538         (NEXT_Q, NEXT_Q_AFTER): Use MAX_INSN_QUEUE_INDEX instead of
9539         INSN_QUEUE_SIZE.
9540         (max_insn_queue_index_macro_value): New variable.
9541         (curr_state, dfa_state_size, ready_try): New varaibles for
9542         automaton interface.
9543         (ready_element, ready_remove, max_issue): New function prototypes
9544         for automaton interface.
9545         (choose_ready): New function prototype.
9546         (insn_unit, blockage_range): Add comments.
9547         (unit_last_insn, unit_tick, unit_n_insns): Define them for case
9548         FUNCTION_UNITS_SIZE == 0.
9549         (insn_issue_delay, actual_hazard_this_instance, schedule_unit,
9550         actual_hazard, potential_hazard): Add comments.
9551         (insn_cost): Use cost -1 as undefined value.  Remove
9552         LINK_COST_ZERO and LINK_COST_FREE.  Add new code for automaton
9553         pipeline interface.
9554         (ready_element, ready_remove): New functions for automaton
9555         interface.
9556         (schedule_insn): Add new code for automaton pipeline interface.
9557         (queue_to_ready): Add new code for automaton pipeline interface.
9558         Use MAX_INSN_QUEUE_INDEX instead of INSN_QUEUE_SIZE.
9559         (debug_ready_list): Print newline when the queue is empty.
9560         (max_issue): New function for automaton pipeline interface.
9561         (choose_ready): New function.
9562         (schedule_block): Add new code for automaton pipeline interface.
9563         Print ready list before scheduling each insn.
9564         (sched_init): Add new code for automaton pipeline interface.
9565         Initiate insn cost by -1.
9566         (sched_finish): Free the current automaton state and finalize
9567         automaton pipeline interface.
9568
9569         * sched-rgn.c: Include target.h.
9570         (init_ready_list, new_ready, debug_dependencies): Add new code for
9571         automaton pipeline interface.
9572
9573         * sched-vis.c: Include target.h.
9574         (get_visual_tbl_length): Add code for automaton interface.
9575         (target_units, print_block_visualization):  Add comments.
9576
9577         * Makefile.in (GETRUNTIME, HASHTAB, HOST_GETRUNTIME, HOST_HASHTAB,
9578         USE_HOST_GETRUNTIME, USE_HOST_HASHTAB, HOST_VARRAY): New variables.
9579         (sched-rgn.o, sched-vis.o): Add new dependency file target.h.
9580         (getruntime.o, genautomata.o): New entries.
9581         (genattrtab.o): Add new dependency file genattrtab.h.
9582         (genattrtab): Add new dependencies.  Link it with `libm.a'.
9583         (getruntime.o, hashtab.o): New entries for canadian cross.
9584
9585         * doc/md.texi: Description of automaton based model.
9586
9587         * doc/tm.texi (TARGET_SCHED_ISSUE_RATE, TARGET_SCHED_ADJUST_COST):
9588         Add comments.
9589         (TARGET_SCHED_USE_DFA_PIPELINE_INTERFACE,
9590         TARGET_SCHED_DFA_PRE_CYCLE_INSN,
9591         TARGET_SCHED_INIT_DFA_PRE_CYCLE_INSN,
9592         TARGET_SCHED_DFA_POST_CYCLE_INSN,
9593         TARGET_SCHED_INIT_DFA_POST_CYCLE_INSN,
9594         TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD,
9595         TARGET_SCHED_INIT_DFA_BUBBLES, TARGET_SCHED_DFA_BUBBLE): The new
9596         hook descriptions.
9597         (TRADITIONAL_PIPELINE_INTERFACE, DFA_PIPELINE_INTERFACE,
9598         MAX_DFA_ISSUE_RATE): New macro descriptions.
9599
9600         * doc/contrib.texi: Add dfa based scheduler contribution.
9601
9602         * doc/gcc.texi: Add more information about genattrtab.
9603
9604 2001-08-27  Diego Novillo  <dnovillo@redhat.com>
9605
9606         * flow.c (flow_loop_dump): Do not display insn UIDs if this is not
9607         an RTL basic block.
9608
9609 2001-08-27  Richard Henderson  <rth@redhat.com>
9610
9611         * function.c (expand_function_end): Don't init arg_pointer_save_area.
9612         (get_arg_pointer_save_area): New.  Create an init it here.
9613         (fix_lexical_addr): Use it.
9614         * function.h: Declare it.
9615         * builtins.c (expand_builtin_setjmp_receiver): Use it.
9616         * stmt.c (expand_nl_goto_receiver): Use it.
9617
9618 2001-08-27  Richard Henderson  <rth@redhat.com>
9619
9620         * final.c (final_scan_insn): Don't enter APP_ON mode for
9621         empty asm strings.
9622
9623         * dwarf2asm.c (dw2_asm_output_encoded_addr_rtx): Use proper
9624         alignment for assemble_integer for DW_EH_PE_aligned.
9625         * except.c (output_function_exception_table): Likewise.
9626
9627 2001-08-26  Andreas Jaeger  <aj@suse.de>
9628
9629         * c-tree.h: Add prototyp for c_sizeof_nowarn.
9630
9631 2001-08-25 Dan Nicolaescu  <dann@ics.uci.edu>
9632
9633         * ssa-ccp.c (ssa_const_prop): Free ssa_edges.
9634
9635 2001-08-27  Alan Modra  <amodra@bigpond.net.au>
9636
9637         * config/rs6000/rs6000.c (mask_operand): Rewrite without
9638         bit-shifting loop.
9639         (mask64_operand): Likewise.
9640         (rldic_operand): Delete.
9641         (includes_lshift64_p): Delete.
9642         (includes_rldic_lshift_p): New function.
9643         (includes_rldicr_lshift_p): New function.
9644         (print_operand): Don't call rldic_operand in case 'W'.
9645         * config/rs6000/rs6000-protos.h (rldic_operand): Remove.
9646         (includes_lshift64_p): Remove.
9647         (includes_rldic_lshift_p): Declare.
9648         (includes_rldicr_lshift_p): Declare.
9649         * config/rs6000/rs6000.h (PREDICATE_CODES): Remove rldic_operand.
9650         * config/rs6000/rs6000.md <ashldi3_internal 64 bit patterns>:
9651         Replace match_operand rldic_operand predicate with
9652         const_int_operand.  Replace includes_lshift64_p condition with
9653         includes_rldic_lshift_p.
9654         <ashldi3_internal 64 bit rldicr patterns>: New.
9655
9656 2001-08-27  Andreas Jaeger  <aj@suse.de>
9657
9658         * emit-rtl.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
9659         * errors.c: Likewise.
9660         * final.c: Likewise.
9661         * dwarf2asm.c: Likewise.
9662         * doprint.c (checkit): Likewise.
9663         * diagnostic.c: Likewise.
9664         * collect2.c: Likewise.
9665         * calls.c: Likewise.
9666         * c-semantics.c (build_stmt): Likewise.
9667         * c-format.c (status_warning): Likewise.
9668         * c-errors.c (pedwarn_c99): Likewise.
9669         * builtins.c (validate_arglist): Likewise.
9670         * config/pj/pj.c (pj_printf): Likewise.
9671         * fix-header.c: Likewise.
9672         * gcc.c: Likewise.
9673         * gcov.c (fnotice): Likewise.
9674         * gensupport.c (message_with_line): Likewise.
9675         * mips-tfile.c: Likewise.
9676         * protoize.c (notice): Likewise.
9677         * read-rtl.c (fatal_with_file_and_line): Likewise.
9678         * rtl-error.c: Likewise.
9679         * tradcpp.c: Likewise.
9680         * tree.c: Likewise.
9681         * cp/tree.c (build_min_nt): Likewise.
9682         (build_min): Likewise.
9683         * cp/lex.c: Likewise.
9684         * cp/errfn.c: Likewise.
9685         * cp/rtti.c (create_pseudo_type_info): Likewise.
9686
9687 Sun Aug 26 20:25:44 2001  Denis Chertykov  <denisc@overta.ru>
9688
9689         * df.c (df_uses_record): Return after recording all uses
9690         in ASM_OPERANDS.
9691
9692 2001-08-26  Daniel Berlin  <dan@cgsoftware.com>
9693
9694         * df.c (df_insn_modify): Realloc the INSN table here, if
9695         necessary, here, too.
9696
9697 2001-08-26  Aldy Hernandez  <aldyh@redhat.com>
9698
9699         * config/mips/mips.c (mips_function_value): Handle complex return
9700         values.
9701
9702 2001-08-25  Hans-Peter Nilsson  <hp@bitrange.com>
9703
9704         * reload1.c (reload): Make all entries in reg_equiv_memory_loc
9705         unshared.
9706         * reload.c (make_memloc): Copy result if it is still
9707         reg_equiv_memory_loc[regno] on return.
9708         (subst_reloads) [ENABLE_CHECKING]: Check that none of
9709         reg_equiv_constant, reg_equiv_memory_loc, reg_equiv_address and
9710         reg_equiv_mem are modified by the substitutions.
9711
9712 Sat Aug 25 23:07:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
9713
9714         * predict.c (expensive_function_p): New.
9715         * rtl.h (expensive_function_p): Declare.
9716         * i386.c (FAST_PROLOGUE_INSN_COUNT): New constant.
9717         (use_fast_prologue_epilogue): New static variable.
9718         (expand_prologue): Set it; emit short prologues if unset.
9719         (expand_epilogue): Likewise.
9720
9721 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
9722
9723         * config.gcc: Add stormy16-*-elf case.
9724         * config/stormy16/stormy-abi: New file.
9725         * config/stormy16/stormy16-lib2.c: New file.
9726         * config/stormy16/stormy16-protos.h: New file.
9727         * config/stormy16/stormy16.c: New file.
9728         * config/stormy16/stormy16.h: New file.
9729         * config/stormy16/stormy16.md: New file.
9730         * config/stormy16/t-stormy16: New file.
9731
9732 Sat Aug 25 15:46:51 CEST 2001  Jan Hubicka  <jh@suse.cz>
9733
9734         * i386.h (no-accumulate-outgoing-args): Use proper mask.
9735
9736 2001-08-24  David Edelsohn  <edelsohn@gnu.org>
9737
9738         * config/rs6000/rs6000.c (rs6000_initialize_trampoline): Function
9739         descriptor members are pointer size, not constant 4.
9740         * config/rs6000/rs6000.md (define_splits): Remove more unused
9741         constraints.
9742
9743 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9744
9745         * sparc.h (ASM_OUTPUT_BYTE): Fix format specifier warning.
9746
9747 2001-08-24  Andreas Jaeger  <aj@suse.de>, rkl@connect.org.uk
9748
9749         * cp/rtti.c (VPARAMS): Fix parameter.
9750
9751 2001-08-24  Zack Weinberg  <zackw@panix.com>
9752
9753         * expmed.c: Default-#define HAVE_insv, HAVE_extv, and HAVE_extzv
9754         to zero.
9755         (mode_for_extraction): No need for #ifdefs.  Add default-case abort
9756         to switch.
9757         (store_bit_field): Eliminate insv_bitsize variable.  Put HAVE_insv
9758         in if controlling use of insv.
9759         (extract_bit_field): Likewise, for extv and extzv.
9760
9761 Fri Aug 24 17:27:46 CEST 2001  Jan Hubicka  <jh@suse.cz>
9762
9763         * i386.md (movcc peep2): Fix load of 0.
9764
9765 2001-08-24  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9766
9767         * fold-const.c (tree_expr_nonnegative_p): Handle *_DIV_EXPR,
9768         *_MOD_EXPR, SAVE_EXPR and NON_LVALUE_EXPR.
9769
9770 2001-08-23  Jason Merrill  <jason_merrill@redhat.com>
9771
9772         * c-pragma.h: Move weak_syms and weak_decls...
9773         * varasm.c: ...here.  Now static.
9774         (declare_weak, weak_finish, remove_from_pending_weak_list): Don't
9775         depend on HANDLE_PRAGMA_WEAK.
9776
9777         * c-common.c (c_alignof, c_alignof_expr): Move here...
9778         * c-typeck.c: ...from here.
9779         * c-tree.h, c-common.h: Adjust.
9780
9781 2001-08-23  Bernd Schmidt  <bernds@redhat.com>
9782
9783         * config/ia64/ia64.c (rws_update): If !pred, set write_count
9784         instead of incrementing it.
9785
9786         * config/ia64/ia64.c (ia64_sched_reorder): When there's more than one
9787         asm ready, don't try to move them all into the same array element.
9788
9789 Thu Aug 23 17:21:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
9790
9791         * function.c (thread_prologue_and_epilogue_insns): Avoid
9792         fallthru flag on edge to exit.
9793
9794         * i386.md (trunc?fsi splitter): Conditionionize for non-sse.
9795
9796         * flow.c (delete_noop_moves, propagate_block_delete_insn): Purge
9797         dead edges.
9798
9799 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
9800
9801         * config/mcore/mcore.h (MACHINE_DEPENDENT_SIMPLIFY): Remove.
9802         * config/mcore/mcore.c (mcore_dependent_simplify_rtx): Likewise.
9803         * config/mcore/mcore-protos.h (mcore_dependent_simplify_rtx):
9804         Remove prototype.
9805
9806 2001-08-23  Lars Brinkhoff  <lars@nocrew.org>
9807
9808         * genconstants.c, genpreds.c, libfuncs.h, optabs.h, rtl-error.h:
9809         replace "GNU CC" with "GCC".
9810
9811 2001-08-23  Richard Henderson  <rth@redhat.com>
9812
9813         * config/ia64/ia64.c (ia64_register_move_cost): Add mode arguemnt.
9814         Reorganize.  Handle ADDL like GR, add GR_AND_BR.  Handle TFmode.
9815         (ia64_secondary_reload_class): Need GR between AR/BR and anything.
9816         Need GR between FR and not GR_AND_FR.
9817         * config/ia64/ia64-protos.h (ia64_register_move_cost): Update.
9818         * config/ia64/ia64.h (reg_class): Add GR_AND_BR_REGS, move
9819         AR regs before GR regs.
9820         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Update.
9821         (PREFERRED_RELOAD_CLASS): Tweak for reordered classes.
9822         (REGISTER_MOVE_COST): Update.
9823         (MEMORY_MOVE_COST): Add GR_AND_FR_REGS.
9824
9825 2001-08-23  Richard Henderson  <rth@redhat.com>
9826
9827         * regclass.c (init_reg_sets_1): Don't assume cost 2 within
9828         a register class.
9829
9830 2001-08-22  Geoffrey Keating  <geoffk@redhat.com>
9831
9832         * reload1.c (emit_reload_insns): Don't look for notes
9833         on a NULL store_insn.
9834
9835 2001-08-22  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9836
9837         * sparc.c (uns_small_int): Don't reference a constant >32-bit.
9838         (addrs_ok_for_ldd_peep): Fix signed/unsigned warning.
9839         (sparc_flat_function_prologue, sparc_flat_function_epilogue): Fix
9840         format specifier warnings.
9841         (sparc_sched_reorder): Mark parameter with ATTRIBUTE_UNUSED.
9842
9843 2001-08-22  David Billinghurst <David.Billinghurst@riotinto.com>
9844
9845         * config/i386/i386-protos.h: Correct declaration of
9846         i386_pe_asm_named_section.
9847
9848 2001-08-22  John David Anglin  <dave@hiauly1.hia.nrc.ca>
9849
9850         * pa32-regs.h (CONDITIONAL_REGISTER_USAGE): Add declaration for
9851         variable i.
9852         * pa64-regs.h (CONDITIONAL_REGISTER_USAGE): Likewise.
9853
9854 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
9855
9856         * cpperror.c (print_location): Don't show _Pragma.
9857         * cppfiles.c (_cpp_pop_file_buffer): Handle -include file pushing
9858         and file change callback generation here.
9859         (stack_include_file): Update use of cpp_push_buffer.
9860         * cpphash.h (_cpp_pop_file_buffer): Update prototype.
9861         (struct cpp_buffer): Remove type, pfile members.
9862         * cppinit.c (cpp_handle_option): Use free_chain.
9863         * cpplex.c (_cpp_lex_token): Don't do -include file pushing here.
9864         (skip_escaped_newlines, get_effective_char, lex_percent): Take
9865         a cpp_reader rather than a cpp_buffer.
9866         (skip_escaped_newlines, get_effective_char, skip_block_comment,
9867         skip_line_comment, parse_string, lex_percent, lex_dot,
9868         _cpp_lex_token): Update accordingly.
9869         * cpplib.c (_cpp_pop_buffer): Don't do file change callback
9870         generation here.
9871         (cpp_push_buffer): Update prototype.
9872         (run_directive): Update use of cpp_push_buffer.
9873         (_cpp_do__Pragma, cpp_define, cpp_define_builtin, cpp_undef,
9874         handle_assertion): Update use of run_directive.
9875         * cpplib.h (enum cpp_buffer_type): Remove.
9876         (cpp_push_buffer): Update prototype.
9877         * fix-header.c (read_scan_file): Update.
9878
9879 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9880
9881         * gcc.c (struct prefix_list): Change prefix to const char *.
9882
9883 2001-08-22  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
9884
9885         * final.c (final_scan_insn): Call ADDR_VEC_ALIGN on next insn.
9886
9887 2001-08-22  Jason Merrill  <jason_merrill@redhat.com>
9888
9889         * explow.c (set_mem_attributes): Avoid returning a bogus alias set
9890         from a new MEM.
9891
9892         * jump.c (squeeze_notes): Take parms by reference.  Handle END being
9893         a squeezable note.
9894         * rtl.h: Adjust.
9895         * ifcvt.c (dead_or_predicable): Adjust.
9896         * loop.c (find_and_verify_loops): Adjust.
9897         * stmt.c (expand_end_case): Adjust.
9898         * flow.c (merge_blocks_move_successor_nojumps): Adjust.  Modify the
9899         head and end insn pointers in the basic block, not just local copies.
9900         (merge_blocks_move_predecessor_nojumps): Likewise.
9901
9902 2001-08-22  Lars Brinkhoff  <lars@nocrew.org>
9903
9904         * Makefile.in, alias.c, basic-block.h, bb-reorder.c, bitmap.c,
9905         bitmap.h, builtin-types.def, builtins.c, builtins.def,
9906         c-aux-info.c, c-common.c, c-common.def, c-common.h,
9907         c-convert.c, c-decl.c, c-dump.c, c-dump.h, c-errors.c,
9908         c-format.c, c-lang.c, c-lex.c, c-lex.h, c-parse.in,
9909         c-pragma.c, c-pragma.h, c-semantics.c, c-tree.h, c-typeck.c,
9910         caller-save.c, calls.c, collect2.c, collect2.h, combine.c,
9911         conditions.h, config.gcc, configure.frag, configure.in,
9912         conflict.c, convert.c, convert.h, cppspec.c, crtstuff.c,
9913         cse.c, cselib.c, cselib.h, dbxout.c, dbxout.h, defaults.h,
9914         dependence.c, df.c, df.h, diagnostic.c, diagnostic.h,
9915         doloop.c, dominance.c, dwarf.h, dwarf2.h, dwarf2asm.c,
9916         dwarf2asm.h, dwarf2out.c, dwarf2out.h, dwarfout.c,
9917         emit-rtl.c, errors.c, errors.h, except.c, except.h,
9918         exgettext, explow.c, expmed.c, expr.c, expr.h, final.c,
9919         fixproto, flags.h, flow.c, fold-const.c, fp-test.c,
9920         function.c, function.h, gbl-ctors.h, gcc.c, gcc.h, gcc.hlp,
9921         gccspec.c, gcov-io.h, gcse.c, genattr.c, genattrtab.c,
9922         gencheck.c, gencodes.c, genconfig.c, genemit.c,
9923         genextract.c, genflags.c, gengenrtl.c, genmultilib,
9924         genopinit.c, genoutput.c, genpeep.c, genrecog.c,
9925         gensupport.c, gensupport.h, ggc-callbacks.c, ggc-common.c,
9926         ggc-none.c, ggc-page.c, ggc-simple.c, ggc.h, global.c,
9927         graph.c, graph.h, gthr-aix.h, gthr-dce.h, gthr-posix.h,
9928         gthr-rtems.h, gthr-single.h, gthr-solaris.h, gthr-vxworks.h,
9929         gthr-win32.h, gthr.h, haifa-sched.c, halfpic.c, halfpic.h,
9930         hard-reg-set.h, hwint.h, ifcvt.c, input.h, insn-addr.h,
9931         integrate.c, integrate.h, jump.c, lcm.c, libgcc2.c,
9932         libgcc2.h, lists.c, local-alloc.c, loop.c, loop.h,
9933         machmode.def, machmode.h, main.c, mbchar.c, mbchar.h,
9934         mips-tdump.c, mips-tfile.c, mklibgcc.in, mkmap-flat.awk,
9935         mkmap-symver.awk, optabs.c, output.h, params.c, params.def,
9936         params.h, predict.c, predict.def, predict.h, prefix.c,
9937         prefix.h, print-rtl.c, print-tree.c, profile.c, protoize.c,
9938         read-rtl.c, real.c, real.h, recog.c, recog.h, reg-stack.c,
9939         regclass.c, regmove.c, regrename.c, regs.h, reload.c,
9940         reload.h, reload1.c, reorg.c, resource.c, resource.h, rtl.c,
9941         rtl.def, rtl.h, rtlanal.c, sbitmap.c, sbitmap.h,
9942         sched-deps.c, sched-ebb.c, sched-int.h, sched-rgn.c,
9943         sched-vis.c, sdbout.c, sdbout.h, sibcall.c, simplify-rtx.c,
9944         ssa-ccp.c, ssa-dce.c, ssa.c, ssa.h, stmt.c, stor-layout.c,
9945         stringpool.c, system.h, timevar.c, timevar.def, timevar.h,
9946         tlink.c, toplev.c, toplev.h, tree.c, tree.def, tree.h,
9947         tsystem.h, unroll.c, unwind-dw2-fde.c, unwind-dw2-fde.h,
9948         unwind-dw2.c, unwind-pe.h, unwind-sjlj.c, unwind.h,
9949         unwind.inc, varasm.c, varray.c, varray.h, xcoffout.c,
9950         xcoffout.h: replace "GNU CC" with "GCC".
9951
9952 2001-08-21  Richard Henderson  <rth@redhat.com>
9953
9954         * final.c (LABEL_ALIGN_AFTER_BARRIER): Default to no alignment.
9955         (final_scan_insn): Consider jump tables data even if we have no
9956         independent text section if !JUMP_TABLES_IN_TEXT_SECTION.  Use
9957         ADDR_VEC_ALIGN.
9958         * config/ia64/ia64.h (JUMP_TABLES_IN_TEXT_SECTION): Remove.
9959         (ASM_OUTPUT_CASE_END): Remove.
9960         (ASM_OUTPUT_ADDR_DIFF_ELT): Emit pc-relative references.
9961         * config/ia64/ia64.md (tablejump): Decode pc-relative references.
9962         * config/ia64/sysv4.h (ASM_OUTPUT_BEFORE_CASE_LABEL): Remove.
9963
9964 2001-08-21  Richard Henderson  <rth@redhat.com>
9965
9966         * config/ia64/ia64.c (emit_all_insn_group_barriers): Flush state
9967         at barrier insns.  Emit stop bits before barriers.
9968
9969         * flow.c (flow_find_cross_jump): Don't consider unconditional
9970         return insns for commoning.
9971
9972         * final.c (compute_alignments): Fix typo.
9973
9974         * expmed.c (CODE_FOR_insv, gen_insv): Provide defaults.
9975         (CODE_FOR_extv, gen_extv, CODE_FOR_extzv, gen_extzv): Likewise.
9976         (store_bit_field): Use mode_for_extraction more places.
9977         (extract_bit_field): Likewise.
9978
9979 2001-08-21  Zack Weinberg  <zackw@panix.com>
9980
9981         * caller-save.c: Don't include insn-codes.h.
9982         (reg_save_code, reg_restore_code): Make arrays of int.
9983         All uses updated to match.
9984         (insert_save, insert_restore): No need to initialize "code"
9985         variable upon declaration.
9986         * Makefile.in: update dependencies; fix typo in clean rule.
9987
9988 2001-08-21  Richard Henderson  <rth@redhat.com>
9989
9990         * ifcvt.c (find_if_block): Allow join_bb as EXIT.
9991         (merge_if_block): Handle fallout from same.
9992
9993 2001-08-21  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
9994
9995         * builtins.c (type_to_class): Fix typo in last change.
9996
9997 2001-08-21  Richard Henderson  <rth@redhat.com>
9998
9999         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't emit '#' if
10000         ia64_asm_output_label.
10001
10002         * config/ia64/crtbegin.asm (__do_global_dtors_aux): Use saved
10003         copy of gp while the real gp register contains garbage.
10004
10005 2001-08-21  Zack Weinberg  <zackw@panix.com>
10006
10007         * expmed.c (mode_for_extraction): New function.
10008         (store_bit_field, extract_bit_field): Use it.
10009         * expr.h: Prototype it and provide an enum for its first argument.
10010
10011         * combine.c, function.c, recog.c: Don't include insn-codes.h.
10012         Use mode_for_extraction rather than testing HAVE_insv/extv/extzv
10013         and digging through the insn_data tables.
10014         * Makefile.in: Update dependencies.
10015
10016 2001-08-22  Neil Booth  <neil@daikokuya.demon.co.uk>
10017
10018         * cppfiles.c (stack_include_file): line-map.c now handles include
10019         depth.
10020         (handle_missing_handler): Similarly.
10021         (_cpp_execute_include): Similarly.
10022         (_cpp_pop_file_buffer): Similarly.
10023         * cpphash.h (struct cpp_reader): Remove system_include_depth,
10024         buffer_stack_depth and include_depth.
10025         * cpplib.c (do_include_common): line-map.c now handles include depth.
10026         (cpp_push_buffer): Similarly.
10027         (_cpp_pop_buffer): Similarly.
10028         * cppmacro.c (builtin_macro): Update.
10029         * line-map.c (init_line_maps): Set depth.
10030         (add_line_map): Increment "used" earlier.  Update and use the
10031         include depth.
10032         (trace_include): Use the include depth.
10033         * line-map.h (struct line_maps): New member depth.
10034
10035 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10036
10037         * cppfiles.c (stack_include_file): Don't handle -H here.
10038         * cppinit.c (cpp_start_read): Set include tracing after
10039         cpp_post_options and after stacking the main file.
10040         * line-map.c (trace_include): New.
10041         (init_line_maps, add_line_map): Update.
10042         * line-map.h (struct line_maps): New member trace_includes.
10043
10044 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10045
10046         * cppfiles.c (stack_include_file): Harmonize system headerness tests.
10047         * cppfiles.c (stack_include_file): Only stack a file if there
10048         is something to do.  Return a boolean indicating whether a
10049         buffer was stacked or not.
10050         (_cpp_execute_include): Similarly.
10051         (_cpp_read_file): Similarly.
10052         * cpphash.h (_cpp_read_file, _cpp_execute_include): Update prototypes.
10053
10054 2001-08-21  Sam Steingold  <sds@gnu.org>
10055
10056         * tradcpp.c (rescan): define obufp_before_macroname before RECACHE
10057         (RECACHE): keep obufp_before_macroname up to date
10058
10059 2001-08-21  Zack Weinberg  <zackw@panix.com>
10060
10061         * stmt.c: Don't include insn-codes.h.
10062         (expand_end_case): Machine specific logic moved to expr.c.
10063         No need to worry about __builtin_classify_type.
10064         (check_for_full_enumeration_handling, emit_case_nodes):
10065         Kill #if 0 blocks.
10066
10067         * builtins.o (expand_builtin_classify_type): Split up so code
10068         can be shared with fold_builtin_classify_type.
10069         (type_to_class, fold_builtin_classify_type): New functions.
10070         (fold_builtins): Handle __builtin_classify_type.
10071
10072         * expr.c (do_tablejump): Now static.
10073         (case_values_threshold, try_casesi, try_tablejump): New;
10074         code mostly from stmt.c (expand_end_case).
10075         (expr.h): Update prototypes.
10076
10077         * Makefile.in (stmt.o): Update dependencies.
10078
10079 2001-08-21  Will Cohen  <wcohen@redhat.com>
10080
10081         * configure/alpha/alpha.h (CONDITIONAL_REGISTER_USAGE): Added local
10082         declaration of variable i.
10083         * configure/rs6000/rs6000.h (CONDITIONAL_REGISTER_USAGE): Added local
10084         declaration of variable i.
10085
10086 2001-08-21  Richard Henderson  <rth@redhat.com>
10087
10088         * crtstuff.c: Fix thinko last change.  Move list tails to start
10089         of CRT_END section.  Tidy ifdefs.
10090         (__EH_FRAME_BEGIN__): Always static for ELF.
10091         (__do_global_ctors_1): Rename from __frame_dummy.
10092         * config/mips/iris6.h (LINK_SPEC): Update for __do_global_ctors_1
10093         name change; don't hide __EH_FRAME_BEGIN__.
10094
10095 2001-08-21  Richard Henderson  <rth@redhat.com>
10096
10097         * gdbinit.in: Move break on exit after break on fancy_abort.
10098
10099         * config/ia64/ia64.c (ia64_return_in_memory): True for variable
10100         sized types.
10101
10102 2001-08-21  Neil Booth  <neil@daikokuya.demon.co.uk>
10103
10104         * cpphash.h (_cpp_push_next_buffer): New.
10105         * cppinit.c (do_includes): Remove.
10106         (push_include, free_chain, _cpp_push_next_buffer): New.
10107         (cpp_start_read): Use them to rework command line option handling.
10108         (cpp_handle_option): Combine handling of -include and -imacros.
10109         * cpplex.c (_cpp_lex_token): Push a new -include buffer if
10110         appropriate.  Always insert missing \n at EOF.
10111         * cpplib.c (start_directive): Get the directive position right.
10112         * cppmain.c (cb_file_change): Always print the first line, unless
10113         preprocessed.
10114
10115 2001-08-20  Andreas Jaeger  <aj@suse.de>
10116
10117         * profile.c (compute_branch_probabilities): Remove extra new-line
10118         in error message.
10119         * flow.c (verify_flow_info): Likewise.
10120
10121 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
10122
10123         * basic-block.h (basic_block): Add new field 'flags'.
10124         (BB_REACHABLE): Define.
10125         (expunge_block): Declare.
10126         * flow.c (ENTRY_BLOCK_PTR): Initialize field 'flags'.
10127         (EXIT_BLOCK_PTR): Ditto.
10128         (expunge_block): Remove static declaration.
10129         (cleanup_cfg): Clear bb->aux on every basic block.
10130         (find_unreachable_blocks): Set BB_REACHABLE bit in bb->flags when
10131         computing reachability.
10132         (delete_unreachable_blocks): Delete block b if b->flags has
10133         BB_REACHABLE unset.
10134
10135 2001-08-20  Diego Novillo  <dnovillo@redhat.com>
10136
10137         * doc/invoke.texi: Replace references to -fdump-tree with -fdump-ast.
10138
10139 2001-08-20  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10140
10141         * sparc.c (sparc_variable_issue): Fix typo in last change.
10142
10143 2001-08-20  Richard Henderson  <rth@redhat.com>
10144
10145         * varasm.c (assemble_integer): Document ppc-eabi -mrelocatable losage.
10146
10147 2001-08-20  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10148
10149         * pa.h (RETURN_IN_MEMORY): Improve comment.
10150
10151 2001-08-20  Janis Johnson  <janis187@us.ibm.com>
10152
10153         * doc/invoke.texi (Profiling options): Clarify the interactions
10154         between -fprofile-arcs and -ftest-coverage, -fprofile-arcs.
10155
10156 2001-08-20  Jeffrey Oldham  <oldham@codesourcery.com>
10157
10158         * crtstuff.c (__do_global_ctors): Fix typo in preprocessing
10159         command.
10160
10161 2001-08-20  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10162
10163         * gcc.c (make_relative_prefix): Allocate a sufficiently large
10164         buffer.
10165
10166 2001-08-20  Richard Henderson  <rth@redhat.com>
10167
10168         * final.c (end_final): Fix typo last change.
10169
10170 2001-08-20  Neil Booth  <neil@daikokuya.demon.co.uk>
10171
10172         * cppinit.c (init_standard_includes): The returned buffer
10173         is already malloc-ed.
10174         * gcc.c (add_prefix): Similarly.
10175         * prefix.c (translate_name): Update to support clear buffer
10176         ownership rules.
10177         (update_path): Similarly.  Be sure to free any newly allocated
10178         key.  UPDATE_PATH_HOST_CANONICALIZE takes only one argument.
10179         (tr): New function.
10180         * prefix.h (update_path): Update prototype and document.
10181         * config/i386/xm-djgpp.h (UPDATE_PATH_HOST_CANONICALIZE): Clean
10182         up and update to new buffer ownership rules.
10183         * doc/gcc.texi (UPDATE_PATH_HOST_CANONICALIZE): Update.
10184
10185 Mon Aug 20 01:44:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
10186
10187         * final.c (compute_alignments): New function.
10188         (init_insn_lengths): Do not care label_align.
10189         (LABEL_ALIGN_AFTER_BARRIER): Default to 1.
10190         (LABEL_ALIGN_AFTER_BARRIER_MAX_SKIP): Default to 0.
10191         (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): New.
10192         (shorted_branches): Realloc label_align array; do
10193         not call init_insn_lengths; Do not care about loop alignments.
10194         * output.h (compute_alignments): Declare.
10195         * toplev.c (rest_of_compilation): Call compute_alignments.
10196         * tm.texi (JUMP_ALIGN, JUMP_ALIGN_MAX_SKIP): Document.
10197
10198         * predict.c (block_info_def): Add npredecesors, remove nvisited;
10199         change visited to tovisit.
10200         (propagate_freq): Use faster traversing algorithm.
10201         (estimate_loops_at_level, estimate_bb_frequencies): Change visited
10202         to tovisit; reverse meaning.
10203
10204         * predict.c (struct block_info_def): Remove nvisited.
10205         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
10206         (estimate_bb_frequencies): Call mark_dfs_back_edges.
10207
10208 2001-08-19  Geoffrey Keating  <geoffk@redhat.com>
10209
10210         * doc/invoke.texi (MIPS Options): Document -mfused-madd.
10211         * config/mips/mips.h (MASK_NO_FUSED_MADD): New.
10212         (TARGET_FUSED_MADD): New.
10213         (TARGET_SWITCHES): Add -mfused-madd, -mno-fused-madd.
10214         * config/mips/mips.md: Add TARGET_FUSED_MADD as condition to
10215         the multiply-add instructions.
10216
10217 2001-08-19  Richard Henderson  <rth@redhat.com>
10218
10219         * dwarf2asm.c (dw2_output_indirect_constant_1): The symbol ref
10220         is aligned to pointer size.
10221
10222 2001-08-19  Richard Henderson  <rth@redhat.com>
10223
10224         * config/ia64/ia64.c (ia64_cycle_display): Only emit cycle
10225         display markers during final schedule.
10226
10227 2001-08-19  Richard Henderson  <rth@redhat.com>
10228
10229         * function.c (gen_mem_addressof): Don't call get_alias_set if no decl.
10230
10231 2001-08-19  Richard Henderson  <rth@redhat.com>
10232
10233         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Handle @ and *
10234         in the same string.
10235         (ASM_NAME_TO_STRING): Remove.
10236         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Handle @ and *
10237         in the same string.  Remove support for expressions.
10238
10239 2001-08-19  Richard Henderson  <rth@redhat.com>
10240
10241         * config/i386/i386.md (tablejump): Make an expander; handle
10242         pic relative addressing here.
10243         (tablejump_1): Rename from tablejump_pic.
10244         (casesi): Remove.
10245
10246 2001-08-19  Richard Henderson  <rth@redhat.com>
10247
10248         * regclass.c (fix_register): Fix typo.
10249
10250 2001-08-18  Richard Henderson  <rth@redhat.com>
10251
10252         * config/ia64/unwind-ia64.c (UNW_REG_B0): New.
10253         (struct _Unwind_Context): Expand br_loc to hold it.
10254         (uw_frame_state_for): Handle leaf functions better.
10255         (uw_update_reg_address): Update for br_loc change.
10256
10257 2001-08-18  Richard Henderson  <rth@redhat.com>
10258
10259         * crtstuff.c: Move list heads before code that uses them.
10260         (__JCR_LIST__): Remove initial null.
10261         (frame_dummy, __frame_dummy): Do java registration here ...
10262         (__do_global_ctors_aux): ... not here.
10263
10264         * config/ia64/crtbegin.asm (dtor_ptr): Make gp-relative.
10265         (__do_global_dtors_aux): Update to match.
10266         (__JCR_LIST__, __do_jv_register_classes): New.
10267         (.init): Call it.
10268         * config/ia64/crtend.asm (__JCR_END__): New.
10269         (__do_global_ctors_aux): Use a GPREL64I reloc to __CTOR_END__
10270         instead of an indirect LTOFF22 reloc.
10271
10272 2001-08-18  Richard Henderson  <rth@redhat.com>
10273
10274         * flow.c (mark_regs_live_at_end): Use regs_invalidated_by_call.
10275         * regclass.c (init_reg_sets_1): Fix typo.
10276         * config/ia64/ia64.c (ar_pfs_reg_operand): New.
10277         (ia64_expand_call): Pass ar.pfs to sibcall expanders.
10278         (ia64_compute_frame_size): Make ar.unat live when in use.
10279         (ia64_epilogue_uses): Reformat; do not check current_function_is_leaf
10280         for ar.pfs; remove ar.unat handling.
10281         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): ar.unat is
10282         call-saved.
10283         (PREDICATE_CODES): Add ar_pfs_reg_operand.
10284         * config/ia64/ia64-protos.h: Update decls.
10285         * config/ia64/ia64.md (sibcall_nopic): Use ar.pfs.
10286         (sibcall_pic): Likewise.
10287
10288 2001-08-18  Richard Henderson  <rth@redhat.com>
10289
10290         * config/ia64/ia64.c (ia64_sched_reorder2): Also skip past
10291         pred_rel_mutex when searching for insn_group_barrier.
10292         * config/ia64/ia64.md (cycle_display): Combine the expander
10293         and insn patterns.
10294
10295         * config/ia64/ia64.c (ia64_internal_sched_reorder): Emit stop
10296         bit before asm as needed.
10297
10298 2001-08-18  Richard Henderson  <rth@redhat.com>
10299
10300         * timevar.def (TV_MACH_DEP): New.
10301         * toplev.c (rest_of_compilation): Use it.
10302         * config/ia64/ia64.c (ia64_reorg): Push to TV_SCHED2.
10303
10304 2001-08-18  Zack Weinberg  <zackw@panix.com>
10305
10306         * unwind-dw2.c (execute_stack_op): Add default aborts to
10307         the inner switches to prevent warnings.
10308
10309 2001-08-18  Richard Henderson  <rth@redhat.com>
10310
10311         * timevar.h (struct timevar_time_def): Change element type to float.
10312         (ticks_to_msec, clocks_to_msec): Likewise.
10313         (TICKS_TO_MSEC, CLOCKS_TO_MSEC): Rescale to seconds; use type float.
10314         (get_time): Likewise.
10315         (timevar_print): Adjust zero check and printing to match.
10316
10317 2001-08-18  Zack Weinberg  <zackw@panix.com>
10318
10319         * doc/extend.texi, doc/gcc.texi, doc/install-old.texi,
10320         doc/invoke.texi, doc/md.texi, doc/rtl.texi, doc/include/gpl.texi:
10321         Eliminate overfull or underfull hboxes.
10322
10323 2001-08-18  Zack Weinberg  <zackw@panix.com>
10324
10325         * cpperror.c: Use VA_OPEN/VA_CLOSE/VA_FIXEDARG throughout.
10326
10327 2001-08-18  Zack Weinberg  <zackw@panix.com>
10328
10329         * haifa-sched.c: Convert to target hooks.  Macros replaced
10330         are ISSUE_RATE, ADJUST_COST, ADJUST_PRIORITY, MD_SCHED_INIT,
10331         MD_SCHED_REORDER, MD_SCHED_REORDER2, MD_SCHED_VARIABLE_ISSUE,
10332         MD_SCHED_FINISH, and HAVE_cycle_display.
10333         * target-def.h (TARGET_SCHED_ADJUST_COST,
10334         TARGET_SCHED_ADJUST_PRIORITY, TARGET_SCHED_ISSUE_RATE,
10335         TARGET_SCHED_VARIABLE_ISSUE, TARGET_SCHED_INIT,
10336         TARGET_SCHED_FINISH, TARGET_SCHED_REORDER,
10337         TARGET_SCHED_REORDER2, TARGET_SCHED_CYCLE_DISPLAY):
10338         New hook #defines to be overridden.
10339         (TARGET_SCHED): Bring them all together.
10340         (TARGET_INITIALIZER): Update.
10341         * target.h: Don't forward declare struct rtx_def.  Use 'rtx'
10342         instead of 'struct rtx_def *' throughout.
10343         (struct sched): New set of hooks for the scheduler.
10344         * Makefile.in (haifa-sched.o): Depend on target.h.
10345         * doc/tm.texi: Document the new scheduler hooks, together in
10346         their own section, instead of scattered around.
10347         Fix a bunch of underfull/overfull hboxes.
10348
10349         * a29k.h, alpha.h, arm.h, c4x.h, convex.h, d30v.h, i386.h,
10350         ia64.h, m32r.h, m88k.h, mips.h, pa.h, rs6000.h, s390.h, sh.h,
10351         sparc.h: Don't define any of the old scheduler macros.
10352
10353         * a29k.c, alpha.c, arm.c, c4x.c, convex.c, d30v.c, i386.c,
10354         ia64.c, m32r.c, m88k.c, mips.c, pa.c, rs6000.c, s390.c, sh.c,
10355         sparc.c: Create hook functions from code extracted from
10356         corresponding target header, or make existing hooks static, as
10357         appropriate.  Set the appropriate entries in targetm.
10358
10359         * alpha-protos.h, arm-protos.h, c4x-protos.h, d30v-protos.h,
10360         i386-protos.h, ia64-protos.h, m32r-protos.h, pa-protos.h,
10361         rs6000-protos.h, s390-protos.h, sparc-protos.h:
10362         Remove prototypes for functions which are now static.
10363
10364         * d30v.h, d30v.c, m32r.h, m32r.c: Remove #ifdef HAIFA and
10365         related gunk; the Haifa scheduler is now the only choice.
10366
10367 2001-08-18  Zack Weinberg  <zackw@panix.com>
10368
10369         * optabs.h (OTI_flodiv, flodiv_optab): Kill.
10370         * genopinit.c: Put floating point divide insns in sdiv_optab.
10371         * expr.c (expand_expr): Use sdiv_optab, not flodiv_optab.
10372         * config/gofast.h, config/c4x/c4x.h,
10373         config/ia64/hpux_longdouble.h, config/mips/mips.h,
10374         config/pa/long_double.h, config/rs6000/sysv4.h,
10375         config/sparc/sparc.h: Put floating point divide libcalls in sdiv_optab.
10376         * optabs.c (init_optab): Break into new_optab, init_optab, init_optabv.
10377         (init_optabs): Use init_optabv for overflow-trapping optabs.
10378         Don't init flodiv_optab.  Give mov_optab, movstrict_optab, and
10379         cmp_optab RTX codes so have_insn_for can find them.
10380
10381         * optabs.c (expand_simple_binop, expand_simple_unop,
10382         have_insn_for, gen_sub3_insn): New interfaces.
10383         * expr.h: Prototype new functions.
10384         (enum optab_methods): Move here from optabs.h.
10385
10386         * builtins.c, combine.c, doloop.c, function.c, ifcvt.c,
10387         loop.c, profile.c, simplify-rtx.c, stmt.c, unroll.c:
10388         Use new functions instead of working directly with optabs.
10389         * doloop.c, ifcvt.c, loop.c, profile.c, simplify-rtx.c,
10390         unroll.c: Don't include optabs.h.
10391         * caller-save.c, combine.c, function.c, stmt.c: Just include
10392         insn-codes.h, not optabs.h.
10393         * Makefile.in: Update dependencies.
10394
10395         * combine.c (make_compound_operation, simplify_comparison):
10396         Fix typos testing for this or that instruction.
10397
10398 2001-08-18  Herman A.J. ten Brugge  <Haj.Ten.Brugge@net.HCC.nl>
10399
10400         * mklibgcc.in: Prefer LIB1ASMFUNCS over LIB2_DIVMOD_FUNCS when
10401         generating libgcc.a.
10402
10403 2001-08-18  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
10404
10405         * except.c (TYPE_HASH): Delete.
10406
10407         * objc/objc-act.c (HASHFUNCTION): Cast to size_t, not
10408         HOST_WIDE_INT.
10409
10410         * tree.c (TYPE_HASH): Delete.
10411
10412         * tree.h (TYPE_HASH): Define.
10413
10414 2001-08-18  Graham Stott  <grahams@redhat.com>
10415
10416         * config/mips/mips.md (adddi3_internal_2+1): Remove constraints from
10417         define_split.
10418         (adddi3_internal_2+2): Likewise.
10419         (eh_set_lr_di+1): Likewise.
10420
10421 2001-08-17  Richard Henderson  <rth@redhat.com>
10422
10423         * defaults.h (UNALIGNED_SHORT_ASM_OP, UNALIGNED_INT_ASM_OP,
10424         UNALIGNED_DOUBLE_INT_ASM_OP, ASM_BYTE_OP): Move from ...
10425         * dwarf2asm.c: ... here.
10426         * dwarfout.c: Remove them.
10427
10428         * varasm.c (assemble_integer): Add align parameter.
10429         (assemble_real, output_constant, output_constructor): Likewise.
10430         * output.h: Update decls.
10431         * dwarf2asm.c, final.c, varasm.c, config/darwin.c, config/nextstep.c,
10432         config/alpha/alpha.c, config/arm/arm.md, config/clipper/clipper.c,
10433         config/m88k/m88k.c, config/mcore/mcore.md, config/mips/mips.h,
10434         config/mips/mips.md, config/pa/pa.c, config/rs6000/rs6000.c,
10435         config/rs6000/rs6000.h, config/s390/s390.h, config/sh/sh.md:
10436         Update all callers.
10437
10438         * final.c (end_final): Abort profile block generation if we
10439         haven't layed it out properly.
10440         * output.h (assemble_eh_integer): Remove stale decl.
10441         * varasm.c (assemble_zeros): Tidy; use assemble_integer.
10442         (min_align): New.
10443         (assemble_integer): Handle unaligned data.
10444         (assemble_real): Abort on unaligned data.
10445         (output_constructor): Don't assume ASM_OUTPUT_ALIGN 0 does
10446         anything useful.
10447         (default_dtor_section_asm_out_destructor): Use assemble_align.
10448         (default_named_section_asm_out_constructor): Likewise.
10449         (default_ctor_section_asm_out_constructor): Likewise.
10450         * config/darwin.c (machopic_asm_out_constructor): Likewise.
10451         (machopic_asm_out_destructor): Likewise.
10452         * config/nextstep.c (nextstep_asm_out_constructor): Likewise.
10453         (nextstep_asm_out_destructor): Likewise.
10454         * config/alpha/alpha.c (vms_asm_out_constructor): Likewise.
10455         (vms_asm_out_destructor): Likewise.
10456
10457 2001-08-17  Richard Henderson  <rth@redhat.com>
10458
10459         * config/mips/iris6.h (TARGET_IRIX6): New.
10460         (current_section_name, current_section_flags): New.
10461         (ASM_OUTPUT_ALIGN, ASM_FILE_START, ASM_FILE_END): New.
10462         (MAX_OFILE_ALIGNMENT): New.
10463         (ASM_OUTPUT_ALIGNED_LOCAL): Use bss_section.
10464         * config/mips/mips.c (mips_make_temp_file, temp_filename): Remove.
10465         (copy_file_data): Split out from
10466         (mips_asm_file_end): ... here.
10467         (mips_asm_file_start): Remove extra .section directive.  Use
10468         tmpfile instead of mips_make_temp_file.
10469         (mips_unique_section): Use const char * as needed for warnings.
10470         (iris6_asm_named_section_1): Renamed from iris6_asm_named_section;
10471         re-add align parameter.
10472         (iris6_asm_named_section): New.
10473         (iris_section_align_entry_eq, iris_section_align_entry_hash): New.
10474         (iris6_asm_output_align, iris6_section_align_1): New.
10475         (iris6_asm_file_start, iris6_asm_file_end): New.
10476         * config/mips/mips-protos.h: Update decls.
10477
10478 2001-08-17  Janis Johnson  <janis187@us.ibm.com>
10479
10480         * doc/install.texi (Install GCC): Add links to build status pages.
10481         (Specific): Ditto.
10482         (Final install): Ditto; request updates for specific info
10483
10484 2001-08-17  Neil Booth  <neil@daikokuya.demon.co.uk>
10485
10486         * cpperror.c (print_location):  Don't take a file name; use the
10487         line map instead.
10488         (_cpp_begin_message): Similarly.
10489         (cpp_ice, cpp_fatal, cpp_error, cpp_error_with_line, cpp_warning,
10490         cpp_warning_with_line, cpp_pedwarn, cpp_pedwarn_with_line): Update.
10491         (cpp_pedwarn_with_file_and_line): Remove.
10492         * cppfiles.c (stack_include_file): Update; set filename to stdin
10493         here when appropriate.
10494         * cpphash.h (struct cpp_buffer): Remove nominal_fname.
10495         (_cpp_begin_message): Don't take a file name.
10496         * cppinit.c: Add comment.
10497         * cpplex.c: Fix end-of-directive indicator.
10498         * cpplib.c: Don't include intl.h.
10499         (run_directive, do_diagnostic): Update.
10500         (do_line): Update to not use nominal_fname.
10501         (cpp_push_buffer): Don't take a filename.
10502         * cpplib.h (struct ht): Remove.
10503         (cpp_push_buffer): Don't take a filename.
10504         (cpp_pedwarn_with_file_and_line): Remove.
10505         * cppmacro.c (struct cpp_macro): Remove file.
10506         (builtin_macro): Update.
10507         (_cpp_create_definition): Update.
10508         * cppmain.c: Correct comment.
10509         * fix-header.c (read_scan_file): Update.
10510
10511 2001-08-17  Kazu Hirata  <kazu@hxi.com>
10512
10513         * sbitmap.c: Fix comment formatting.
10514         * sched-deps.c: Likewise.
10515         * sibcall.c: Likewise.
10516         * simplify-rtx.c: Likewise.
10517         * ssa.c: Likewise.
10518         * ssa-ccp.c: Likewise.
10519         * stor-layout.c: Likewise.
10520         * timevar.c: Likewise.
10521         * toplev.c: Likewise.
10522         * unwind-dw2.c: Likewise.
10523         * unwind-dw2-fde.c: Likewise.
10524         * varasm.c: Likewise.
10525
10526 2001-08-17  John David Anglin  <dave@hiauly1.hia.nrc.ca>
10527
10528         * pa.h (RETURN_IN_MEMORY): Return types with a size that is varable
10529         or larger than an integer in memory.
10530
10531 2001-08-17  Zack Weinberg  <zackw@panix.com>
10532
10533         * system.h: Forward-declare struct rtx_def, struct rtvec_def,
10534         and union tree_node.  Typedef rtx, rtvec, and tree.  Fix comment.
10535         * rtl.h: Don't forward-declare union tree_node here.  Don't
10536         typedef rtx or rtvec here.  Change all uses of struct rtx_def *,
10537         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
10538         and tree respectively.
10539         * tree.h: Don't forward-declare struct rtx_def here.  Don't
10540         typedef tree here.  Change all uses of struct rtx_def *,
10541         struct rtvec_def *, or union tree_node * to use rtx, rtvec,
10542         and tree respectively.
10543
10544 2001-08-17  Richard Henderson  <rth@redhat.com>
10545
10546         * config/mips/elf.h, config/mips/elf64.h, config/mips/netbsd.h,
10547         config/mips/openbsd.h: Fix typos last change.
10548
10549 2001-08-17  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10550
10551         * doc/invoke.texi (Optimize Options): The default for
10552         -finline-limit is 600.
10553
10554 2001-08-17  Richard Henderson  <rth@redhat.com>
10555
10556         * varasm.c (text_section): Allow TEXT_SECTION to override the
10557         printing of TEXT_SECTION_ASM_OP.
10558         * dwarf2out.c (TEXT_SECTION_NAME): Rename from TEXT_SECTION.
10559         (DATA_SECTION, BSS_SECTION): Remove.
10560         * dwarfout.c (TEXT_SECTION_NAME, DATA_SECTION_NAME, DATA1_SECTION_NAME,
10561         RODATA_SECTION_NAME, RODATA1_SECTION_NAME, BSS_SECTION_NAME):
10562         Rename from s/_NAME//.
10563         * config/mips/mips.h (TARGET_FILE_SWITCHING): Add !TARGET_MIPS16.
10564         (ASM_DECLARE_FUNCTION_NAME): Move file switching ...
10565         (TEXT_SECTION): ... here.  New.
10566         * config/mips/elf.h (TEXT_SECTION): New; no file switching.
10567         * config/mips/elf64.h, config/mips/netbsd.h: Likewise.
10568         * config/mips/openbsd.h: Likewise.
10569         * config/mips/mips.c (mips_asm_file_start): Tidy file switching test.
10570         (mips_asm_file_end): Likewise test.
10571         (mips_output_function_epilogue): Likewise.  Switch back to data
10572         section after emitting the function.
10573
10574         * doc/tm.texi (Sections): Document TEXT_SECTION.
10575
10576 2001-08-17  Richard Henderson  <rth@redhat.com>
10577
10578         * dwarf2out.c (dwarf2out_init): Don't emit .debug_loc label here.
10579         (dwarf2out_finish): Do it here.  Emit .debug_loc before .debug_info.
10580
10581 2001-08-17  Richard Henderson  <rth@redhat.com>
10582
10583         * varasm.c (assemble_variable): Don't overalign if DECL_USER_ALIGN.
10584         * crtstuff.c (__CTOR_LIST__, __DTOR_LIST__, __EH_FRAME_BEGIN__,
10585         __JCR_LIST__, __CTOR_END__, __DTOR_END__, __FRAME_END__,__JCR_END__):
10586         Add aligned attribute.
10587
10588 2001-08-17  Andrew Haley  <aph@cambridge.redhat.com>
10589
10590         * config/sh/sh.md: Add modes to unspecs in first insn to match
10591         those in the second.
10592
10593         * Makefile.in: Fix collect2 copy for Cygwin.
10594
10595 Fri Aug 17 15:48:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
10596
10597         Install the proper patch.
10598         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10599         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10600         (expand_function_start): Likewise.
10601         * stmt.c (expand_decl): Likewise.
10602         * varasm.c (make_decl_rtx): Likewise.
10603
10604 Fri Aug 17 15:41:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
10605
10606         * final.c: Undo my previous accidental checkin.
10607         * output.h: Likewise.
10608         * tm.texi: Likewise.
10609
10610 2001-08-16  Richard Henderson  <rth@redhat.com>
10611
10612         * varasm.c (named_section_flags): Remove align parameter.
10613         * varasm.c, dwarf2out.c: Update all callers.
10614         * output.h: Update prototypes.
10615
10616         * target.h (target.asm_out.named_section): Remove align parameter.
10617         * varasm.c, config/a29k/a29k.c, config/alpha/alpha.c,
10618         config/arm/arm.c, config/c4x/c4x.c, config/h8300/h8300.c,
10619         config/i386/i386.c, config/i386/winnt.c, config/m68k/m68k.c,
10620         config/mcore/mcore.c, config/mips/mips.c, config/rs6000/rs6000.c,
10621         config/sh/sh.c, config/sparc/sparc.c: Update implementations to match.
10622
10623         * varasm.c (in_named_entry_eq, in_named_entry_hash): New.
10624         (get_named_section_flags, set_named_section_flags): New.
10625         (named_section_flags): Use them.
10626         (named_section): Do decl vs section flags check here...
10627         (default_section_type_flags): ... not here.
10628         (init_varasm_once): Create in_named_htab.
10629         (resolve_unique_section): Mark reloc unused.
10630
10631 2001-08-16  Richard Henderson  <rth@redhat.com>
10632
10633         * varasm.c (force_const_mem): Keep pool alignment in bits.
10634         (output_constant_pool): Use assemble_align.
10635
10636 2001-08-16  Zack Weinberg  <zackw@panix.com>
10637
10638         * doc/tm.texi: Remove extra @table command.
10639
10640 2001-08-16  Zack Weinberg  <zackw@panix.com>
10641
10642         * final.c (shorten_branches): Clear the end of the label_align
10643         array only if we made it larger.  Break up messy expressions
10644         for clarity.
10645
10646         * diagnostic.c (internal_error): Check for error recursion
10647         before doing ICE suppression.
10648
10649         * timevar.c: Timing variables now count in milliseconds.
10650         (init_timevar): Set up ticks_to_msec and clocks_to_msec here.
10651         (get_time): Not here.
10652         (timevar_print): Don't print any timer whose user, cpu, and
10653         wall times are all zero as displayed.
10654         * timevar.h: Update comment aboout units.  Make timevar
10655         counters unsigned.
10656
10657 Thu Aug 16 17:39:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
10658
10659         * function.c (put_var_into_stack): Temporarily clear DECL_RTL.
10660         (assign_params): Avoid setting DECL_RTL to unfinished RTX.
10661         (expand_function_start): Likewise.
10662         * stmt.c (expand_decl): Likewise.
10663         * varasm.c (make_decl_rtx): Likewise.
10664
10665 2001-08-16  Jason Merrill  <jason_merrill@redhat.com>
10666
10667         * stor-layout.c (layout_decl): Don't set DECL_USER_ALIGN.
10668         (finalize_record_size): Don't set TYPE_USER_ALIGN.
10669
10670 2001-08-16  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10671
10672         * config/i386/i386.c (ix86_init_mmx_sse_builtins): Remove unused
10673         variables.
10674
10675 2001-08-16  Andreas Jaeger  <aj@suse.de>
10676
10677         * config/s390/s390.c: Include "debug.h" for dwarf2out_do_frame
10678         prototype.
10679
10680 Wed Aug 15 15:22:52 EDT 2001  John Wehle  (john@feith.com)
10681
10682         * rtl.h (only_sets_cc0_p): New prototype.
10683         * jump.c (sets_cc0_p): Handle INSN.
10684         (only_sets_cc0_p): New function.
10685         * flow.c (merge_blocks_nomove): Use only_sets_cc0_p.
10686         (tidy_fallthru_edge): Likewise.
10687         * integrate.c (copy_insn_list): Likewise.
10688         * unroll.c (unroll_loop): Likewise.
10689         (copy_loop_body): Likewise.
10690
10691 2001-08-15  Jason Eckhardt  <jle@redhat.com>
10692
10693         * config/i960/i960.md (trap): Change "faulteq.t" to "faulte.t".
10694
10695 Wed Aug 15 14:24:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
10696
10697         * predict.c (struct block_info_def): Remove nvisited.
10698         (propagate_freq): Use EDGE_DFS_BACK to detect irreducible regions.
10699         (estimate_bb_frequencies): Call mark_dfs_back_edges.
10700
10701         * i386.c (ix86_agi_dependant): Lea causes AGI only on the Pentium
10702         (ix86_adjust_cost): Teach scheduler that latency to load operand can
10703         be masked.
10704
10705 Wed Aug 15 12:41:32 CEST 2001  Jan Hubicka  <jh@suse.cz>
10706
10707         * predict.def: Update hitrates.
10708
10709 2001-08-15  Richard Henderson  <rth@redhat.com>
10710
10711         * except.c (TYPE_HASH): Cast to size_t, not HOST_WIDE_INT.
10712
10713 Tue Aug 14 17:30:59 2001  Jeffrey A Law  (law@cygnus.com)
10714
10715         * flow.c (commit_one_edge_insertion): Don't separate a LOOP_BEG
10716         note from its associated jump.
10717
10718 2001-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
10719
10720         * config/s390/linux64.h (CPP_PREDEFINES): Define __s390__
10721         also on 64-bit s390x targets.
10722
10723 2001-08-14  Nick Clifton  <nickc@cambridge.redhat.com>
10724
10725         * config/arm/arm.c (arm_compute_initial_elimination_offset): New
10726         function.
10727         (arm_expand_prologue): Handled nested functions which take a
10728         variable argument list.
10729         * config/arm/arm.h (ARM_INITIAL_ELIMINATION_OFFSET): Replace
10730         macro with an invocation of
10731         arm_compute_initial_elimination_offset.
10732         * config/arm/arm-protos.h: Prototype
10733         arm_compute_initial_elimination_offset.
10734
10735 2001-08-14  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
10736
10737         * doc/install.texi (Specific, avr): Fix markup.
10738         (Specific, c4x): Ditto.
10739
10740 2001-08-14  Matt Kraai  <kraai@alumni.carnegiemellon.edu>
10741
10742         * predict.c (dump_prediction): Change `bool' parameter to `int'.
10743
10744 2001-08-14  Gabriel Dos Reis  <gdr@codesourcery.com>
10745
10746         * Makefile.in (OBJS): Add rtl-error.o
10747         (rtl-error.o): New rule.
10748         (diagnostic.o): Adjust dependency.
10749         diagnostic.c (file_and_line_for_asm, diagnostic_for_asm,
10750         error_for_asm, _fatal_insn, _fatal_insn_not_found,
10751         warning_for_asm): Move to...
10752         rtl-error.c: ...here.  New file.
10753
10754 2001-08-14  Richard Henderson  <rth@redhat.com>
10755
10756         * dwarf2out.c (dwarf2out_frame_finish): Never emit .eh_frame
10757         if USING_SJLJ_EXCEPTIONS.
10758
10759 2001-08-14  Steve Ellcey <sje@cup.hp.com>
10760
10761         * tlink.c (scan_linker_output): Check string for unsatisfied in
10762         addition to undefined and unresolved.
10763
10764 2001-08-14  Graham Stott  <grahams@redhat.com>
10765
10766         * libgcc2.c (*): Replace EH_FRAME_SECTION with
10767         EH_FRAME_SECTION_NAME.
10768
10769 Tue Aug 14 14:57:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
10770
10771         * genattrtab.c (simplify_test_exp_in_temp): New function.
10772         (simplify_test_exp): Avoid explicit use of temporary obstack.
10773         (simplify_cond, insert_right_side, evaluate_eq_attr,
10774         simplify_and_tree, simplify_or_tree, eliminate_known_true):
10775         Use simplify_test_exp_in_temp.
10776         (optimize_attrs): Iterate until expression stabilizes.
10777
10778 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>:
10779
10780         * glimits.h: Remove the __LONG_MAX__ special case for s390x.
10781         * config/s390/linux64.h: Define __LONG_MAX__ in CPP_PREDEFINES.
10782
10783 2001-08-13  Richard Henderson  <rth@redhat.com>
10784
10785         * config/arm/unknown-elf.h (CTOR_LIST_BEGIN, CTOR_LIST_END): Remove.
10786         (DTOR_LIST_BEGIN, DTOR_LIST_END): Remove.
10787         * config/arm/conix-elf.h: Likewise.
10788
10789 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
10790
10791         * config/svr4.h (LINK_SPEC): Don't do -Wl, here, it is done
10792         in gcc.c.
10793         * config/rs6000/sysv4.h (LINK_SPEC): Likewise.
10794
10795         * gcse.c (hash_scan_set): Expressions that are set as part of
10796         jump instructions are not available.
10797
10798 2001-08-13  Ulrich Weigand  <uweigand@de.ibm.com>
10799
10800         * config/s390/s390.c (print_operand, s390_function_prologue,
10801         s390_va_start): Fixed HOST_WIDE_INT type mismatch.
10802
10803 2001-08-13  Richard Henderson  <rth@redhat.com>
10804
10805         * config/rs6000/xcoff.h (EH_FRAME_IN_DATA_SECTION): New.
10806         * defaults.h (EH_FRAME_SECTION_NAME): Respect it.
10807         * doc/tm.texi (Exception Region Output): Document it.
10808
10809 2001-08-13  Geoffrey Keating  <geoffk@redhat.com>
10810
10811         * config/rs6000/sysv4.h (PREFERRED_DEBUGGING_TYPE): Use
10812         DWARF2 instead of stabs by default.
10813
10814 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
10815
10816         * config/rs6000/rs6000.c: Include optabs.h.
10817
10818 2001-08-13  David Edelsohn  <edelsohn@gnu.org>
10819
10820         * config/rs6000/eabi.asm: Define 64-bit versions of FPR
10821         save/restore routines.
10822         * ginclude/ppc-asm.h: Define 64-bit FUNC_* macros.
10823
10824 2001-08-13  Andreas Jaeger  <aj@suse.de>
10825
10826         * gcc.c (init_spec): Revert last patch by Theodore Papadopoulo,
10827         the english is correct.
10828
10829 2001-08-13  Zack Weinberg  <zackw@panix.com>
10830
10831         * expr.h: Split out optab- and libfunc-related code to...
10832         * optabs.h, libfuncs.h: ... these new headers.
10833
10834         * Makefile.in (CONFIG_H, EXPR_H): Take out insn-codes.h.
10835         (OPTABS_H): New.
10836         (various .o rules): Add $(OPTABS_H) and/or libfuncs.h to
10837         dependencies.
10838         * mkconfig.sh: Don't include insn-codes.h from config.h.
10839
10840         * reload.h: Use #ifdef GCC_INSN_CODES_H to decide whether
10841         enum insn_code is available.  Move reload_in_optab and
10842         reload_out_optab array declarations to optabs.h.
10843         * regmove.c (gen_add3_insn): Move to optabs.c, export from
10844         there, prototype in expr.h.
10845         * gencodes.c: Cleanup: zap global variables, don't use
10846         printf where puts will do, don't bother defining MAX_INSN_CODE
10847         which nothing uses, let CODE_FOR_nothing get its value implicitly.
10848
10849         * genemit.c, genopinit.c: Include optabs.h in generated file.
10850         * genoutput.c: Include insn-codes.h in generated file.
10851         * builtins.c, caller-save.c, combine.c, doloop.c, explow.c,
10852         expmed.c, expr.c, function.c, ifcvt.c, loop.c, optabs.c, profile.c,
10853         reload1.c, simplify-rtx.c, stmt.c, unroll.c, config/alpha/alpha.c,
10854         config/arm/arm.c, config/c4x/c4x.c, config/clipper/clipper.c,
10855         config/i386/i386.c, config/ia64/ia64.c, config/mn10300/mn10300.c,
10856         config/pj/pj.c, config/sh/sh.c, config/sparc/sparc.c:
10857         Include optabs.h.
10858         * builtins.c, calls.c, dwarf2out.c, except.c, expr.c, function.c,
10859         optabs.c, stmt.c, config/c4x/c4x.c, config/clipper/clipper.c,
10860         config/m88k/m88k.c, config/sparc/sparc.c:
10861         Include libfuncs.h.
10862         * reload.c: Include expr.h and optabs.h before reload.h.
10863         * config/alpha/alpha.c: Include tree.h before reload.h.
10864         * config/pa/pa.c: Include expr.h, optabs.h, libfuncs.h,
10865         and reload.h in that order.
10866         * config/sparc/sparc.c: Include debug.h.
10867         * recog.c: Include insn-codes.h.
10868
10869 2001-08-13  Andreas Jaeger  <aj@suse.de>
10870
10871         * config.gcc: Use t-slibgcc-elf to build shared libgcc_s on
10872         s390*linux.
10873
10874 2000-08-13 Theodore Papadopoulo <Theodore.Papadopoulo@sophia.inria.fr>
10875
10876         * dwarf2out.c (output_cfa_loc): Fix typo in comment.
10877         * gcc.c (init_spec): Fix typo in comment.
10878         * varasm.c (data_section): Fix typo in comment.
10879
10880 Mon Aug 13 02:27:39 CEST 2001  Jan Hubicka  <jh@suse.cz>
10881
10882         * predict.c (dump_prediction): New argument "USED".
10883         (combine_predictions_for_insn): Determine the used heuristics,
10884         output the case no heuristic applied.
10885         * predict.def (PRED_DS_THEORY, PRED_NO_HEURISTIC): New.
10886
10887 2001-08-13  Andreas Jaeger  <aj@suse.de>
10888
10889         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Don't capitalize
10890         register %rip.
10891
10892 2001-08-13  Kazu Hirata  <kazu@hxi.com>
10893
10894         * jump.c: Fix formatting.
10895
10896 2001-08-13  Kazu Hirata  <kazu@hxi.com>
10897
10898         * config/h8300/h8300.md (zero_extendqihi2): Correct the insn
10899         length.
10900
10901 2001-08-12  Geoffrey Keating  <geoffk@redhat.com>
10902
10903         * loop.c (check_dbra_loop): Use condjump_label to compute
10904         jump_label.
10905
10906         * rtl.h: Move prototypes of rtx_alloc and rtvec_alloc around
10907         to better document the files they're in.
10908
10909 2001-08-12  Zack Weinberg  <zackw@panix.com>
10910
10911         * recog.h (struct insn_operand_data): Shrink 'mode' field
10912         to 16 bits.
10913
10914 2001-08-12  Kazu Hirata  <kazu@hxi.com>
10915
10916         * gcc.c: Fix comment formatting.
10917         * gccspec.c: Likewise.
10918         * gcov.c: Likewise.
10919         * gcse.c: Likewise.
10920         * genemit.c: Likewise.
10921         * gengenrtl.c: Likewise.
10922         * genrecog.c: Likewise.
10923         * gensupport.c: Likewise.
10924         * ggc-page.c: Likewise.
10925         * global.c: Likewise.
10926         * graph.c: Likewise.
10927         * ifcvt.c: Likewise.
10928         * integrate.c: Likewise.
10929         * lcm.c: Likewise.
10930         * libgcc2.c: Likewise.
10931         * loop.c: Likewise.
10932         * mbchar.c: Likewise.
10933         * optabs.c: Likewise.
10934         * predict.c: Likewise.
10935         * prefix.c: Likewise.
10936         * profile.c: Likewise.
10937         * protoize.c: Likewise.
10938         * real.c: Likewise.
10939         * recog.c: Likewise.
10940         * regclass.c: Likewise.
10941         * regmove.c: Likewise.
10942         * reg-stack.c: Likewise.
10943         * reload1.c: Likewise.
10944         * resource.c: Likewise.
10945         * rtlanal.c: Likewise.
10946         * rtl.c: Likewise.
10947
10948 2001-08-12  Kazu Hirata  <kazu@hxi.com>
10949
10950         * doc/tm.texi (ENCODE_SECTION_INFO): Add documentation on how
10951         a tree representing a constant is passed to the macro.
10952
10953 2001-08-12  Richard Henderson  <rth@redhat.com>
10954
10955         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor): New.
10956         (rs6000_elf_asm_out_destructor): New.
10957         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): Remove.
10958         (DTORS_SECTION_ASM_OP): Remove.
10959         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
10960         (ASM_OUTPUT_INT): Don't hack TARGET_RELOCATABLE for constructors.
10961
10962 2001-08-12  David Edelsohn  <edelsohn@gnu.org>
10963
10964         Revert:
10965         2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
10966         * gcc.c (set_collect_gcc_options): New function, split out from
10967         main.
10968         Ignore elided switches.
10969         (do_spec_1): Invoke before executing command.
10970         (set_input): Export.
10971         Move declaration ...
10972         * gcc.h (set_input): ... here.
10973         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
10974         file.
10975
10976 2001-08-12  Richard Henderson  <rth@redhat.com>
10977
10978         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): Fix
10979         thinko wrt TARGET_RELOCATABLE.
10980
10981 2001-08-12  Neil Booth  <neil@daikokuya.demon.co.uk>
10982
10983         * fix-header.c (cb_file_change): Update prototype.
10984
10985 2001-08-11  Zack Weinberg  <zackw@panix.com>
10986
10987         * toplev.c (set_float_handler): Make static.
10988         * toplev.h: Don't prototype set_float_handler.
10989
10990         * simplify-rtx.c: Don't include setjmp.h.
10991         (simplify_unary_real, simplify_binary_real, simplify_binary_is2orm1):
10992         New functions.
10993         (simplify_unary_operation, simplify_binary_operation): Use them,
10994         via do_float_handler.
10995
10996         * fold-const.c: Don't include setjmp.h.
10997         (exact_real_inverse_1): New function.
10998         (exact_real_inverse): Use it, via do_float_handler.
10999
11000         * varasm.c: Don't include setjmp.h.
11001         (assemble_real_1): New function.
11002         (assemble_real): Use it, via do_float_handler.
11003         Call internal_error if we get a trap here.
11004
11005         * c-parse.in, cse.c, cselib.c, config/i386/i386.c,
11006         config/pj/pj.c, config/s390/s390.c: Don't include setjmp.h.
11007
11008 2001-08-11  Zack Weinberg  <zackw@panix.com>
11009
11010         * defaults.h: Define PREFERRED_STACK_BOUNDARY to
11011         STACK_BOUNDARY if not already defined.
11012
11013         * calls.c, function.c, reload1.c, explow.c: Don't default
11014         PREFERRED_STACK_BOUNDARY.  Remove all #if/#ifdef on
11015         PREFERRRED_STACK_BOUNDARY and/or STACK_BOUNDARY.
11016
11017         * explow.c (allocate_dynamic_stack_space): Change unsafe #if
11018         to run-time test.
11019
11020         * doc/tm.texi: Document that STACK_BOUNDARY is required;
11021         clarify difference between it and PREFERRED_STACK_BOUNDARY.
11022
11023 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11024
11025         * cppmacro.c (enter_macro_context): Push macro expansions even
11026         if empty.
11027
11028 2001-08-11  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11029
11030         * config/rs6000/rs6000.c: Include integrate.h to silence warning.
11031         (rs6000_elf_section_type_flags): Actually return a value.
11032
11033 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
11034
11035         * s390.c, s390.h, s390.md, s390-protos.h, linux.h, t-linux:
11036         Clean up code: add missing comments and prototypes, fix warnings,
11037         remove obsolete code, fix spacing to conform to coding style.
11038
11039 2001-08-11  Ulrich Weigand  <uweigand@de.ibm.com>
11040
11041         * config/s390/s390.c (targetm): Define TARGET_ASM_OPEN_PAREN
11042         and TARGET_ASM_CLOSE_PAREN.
11043         (regclass_map): CC register belongs to class NO_REGS.
11044         (legitimize_pic_address): Don't generate unnecessary moves
11045         (to avoid confusing loop optimization).
11046         (check_and_change_labels): Replace jump_long by indirect_jump.
11047         (s390_final_chunkify): Don't start a new literal pool on section
11048         switch in 64-bit code.
11049         (s390_va_start, s390_va_arg): Fixed incorrect sizes for 64-bit.
11050
11051         * config/s390/s390.h (TARGET_SWITCHES): Renamed debug_arg to debug.
11052         (MAX_BITS_PER_WORD, MAX_LONG_TYPE_SIZE): Set to 64 (for 64-bit).
11053         (HARD_REGNO_MODE_OK, RETURN_IN_MEMORY): Support complex integer
11054         modes correctly.
11055         (reg_class, REG_CLASS_NAMES, REG_CLASS_CONTENTS): Remove CC_REGS.
11056         (EH_RETURN_HANDLER_RTX): Fixed incorrect offset for 64-bit.
11057         (CONST_COSTS): Fixed incorrect costs.
11058
11059         * config/s390/s390.md (fixuns_trunc[sd]f[sd]i2, udivsi3, umodsi3):
11060         Use emit_jump instead of emit_jump_insn (gen_jump).
11061         (divsi3, modsi3): Clobber low word of divmoddisi3 before shifting
11062         (to avoid confusing flow analysis).
11063         (tablejump, tablejump1, tablejump2): Removed.  Replaced by casesi.
11064         (casesi, casesi_jump): New.
11065         (jump_long): Removed.  Functionality merged into indirect_jump.
11066         (indirect_jump): Accept address_operand, not just register_operand.
11067         (cjump_long, icjump_long): Use same logic as indirect_jump.
11068         (builtin_setjmp_setup, builtin_setjmp_receiver, builtin_longjmp):
11069         Fixed broken setjmp/longjmp handling.
11070         (do_builtin_setjmp_setup): Removed.
11071
11072         * config/s390/linux.h (ASM_OUTPUT_DOUBLE_INT): Work around
11073         broken GNU as versions that don't accept .quad with large
11074         negative values.  Use hexadecimal output instead.
11075         (ASM_OUTPUT_ADDR_DIFF_ELT): Adapt to new casesi insn.
11076         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN, FUNCTION_PROLOGUE,
11077         FUNCTION_EPILOGUE): Removed.  Now in targetm.
11078
11079         * config/s390/linux64.h (CALL_USED_REGISTERS): Add CC register.
11080
11081         * config/s390/fixdfdi.h: Add missing copyright statement.
11082         Fix type conflicts on 64-bit.  Add missing SFmode routines.
11083
11084         * s390.c, s390.h, s390.md, linux.h, linux64.h: Fixed incorrect
11085         email address.
11086
11087 2001-08-11  Richard Henderson  <rth@redhat.com>
11088
11089         * rtl.h (REG_EH_RETHROW): Remove.
11090         * rtl.c (reg_note_name): Update.
11091         * combine.c (distribute_notes): Don't check for it.
11092
11093 2001-08-11  Richard Henderson  <rth@redhat.com>
11094
11095         * combine.c (distribute_notes): Place REG_SETJMP.
11096
11097 2001-08-11  Richard Henderson  <rth@redhat.com>
11098
11099         * doc/extend.texi (Arrays and pointers implementation): Discourage
11100         relying on sign-extension of pointers.
11101
11102 2001-08-11  H.J. Lu <hjl@gnu.org>
11103
11104         * config/mips/linux.h (EXTRA_SECTIONS): Remove in_ctors and
11105         in_dtors.
11106         (EXTRA_SECTION_FUNCTIONS): Remove DTORS_SECTION_ASM_OP and
11107         RDATA_SECTION_ASM_OP.
11108
11109 2001-08-11  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11110
11111         * doc/install.texi (Specific, c4x): Fix cross-reference to the
11112         main manual to work both for info and HTML versions.
11113
11114 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11115             Matt Kraai <kraai@alumni.carnegiemellon.edu>
11116
11117         * cpphash.c (_cpp_destroy_hashtable): Use ht_destroy.
11118         * cpphash.h (CPP_IN_SYSTEM_HEADER): Fix.
11119         (struct cpp_pool): New member first.
11120         * cppinit.c (append_include_chain): Plug memory leaks.
11121         * cpplib.c (cpp_register_pragma, cpp_register_pragma_space):
11122         Allocate pragma structures from the (aligned) macro pool to
11123         avoid leaking memory.
11124         * cpplex.c (_cpp_init_pool, _cpp_free_pool): Use pool->first
11125         so we don't leak memory.
11126         * hashtable.c (ht_destroy): New.
11127         * hashtable.h (ht_destroy): New.
11128
11129 2001-08-11  Neil Booth  <neil@daikokuya.demon.co.uk>
11130             Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11131
11132         * c-lex.c (map): Make const.
11133         (cb_file_change): Update for callback passing a line map.
11134         Don't assume we have a previous map.  Remove sanity check
11135         about popping too many files.
11136         * cpperror.c (print_location): Make map const.
11137         * cppfiles.c (stack_include_file): Update; line maps now hold sysp.
11138         (cpp_make_system_header): Similarly.
11139         (search_from): Similarly.
11140         (_cpp_execute_include): Don't remember where we came from.
11141         * cpphash.h (struct cpp_buffer): Remove return_to_line, sysp.
11142         (struct cpp_reader): Make map const.
11143         (CPP_IN_SYSTEM_HEADER, _cpp_do_file_change): Update.
11144         * cpplib.c (do_line): Update; line maps now hold sysp.
11145         (cpp_push_buffer): Similarly.
11146         (_cpp_do_file_change): Similarly; callback with map instead.
11147         (cpp_get_line_maps): Constify return value.
11148         (_cpp_pop_buffer): Update.
11149         * cpplib.h (struct cpp_file_change): Remove.
11150         (struct cpp_callbacks): Update.
11151         (cpp_get_line_maps): Constify return value.
11152         * cppmacro.c (_cpp_create_definition): Update.
11153         * cppmain.c (struct printer): Constify map.
11154         (maybe_print_line): Similarly.
11155         (print_line): Similarly.  Deduce flags 1 and 2 here.
11156         (cb_file_change): Update.
11157         * line-map.c (free_line_maps): Warn regardless.
11158         (add_line_map): Return pointer to const.  When passed NULL to_file
11159         with LC_LEAVE, use the obvious values for the return point so the
11160         caller doesn't have to figure them out.
11161         (lookup_line): Return pointer to const.
11162         (print_containing_files): Take pointer to const.
11163         * line-map.h (struct line_map): New members reason, sysp.
11164         (add_line_map): Return pointer to const.
11165         (lookup_line): Similarly.
11166         (print_containing_files): Take pointer to const.
11167
11168 2001-08-10  Roman Zippel  <zippel@linux-m68k.org>
11169             Richard Henderson  <rth@redhat.com>
11170
11171         * regmove.c (regmove_optimize): Avoid setting a register twice in
11172         a parallel set.
11173
11174 2001-08-10  Richard Henderson  <rth@redhat.com>
11175
11176         * doc/extend.texi (Arrays and pointers implementation): Document
11177         behavior of pointer/integer conversion.
11178
11179 2001-08-10  Ulrich Weigand  <uweigand@de.ibm.com>
11180
11181         * glimits.h (__LONG_MAX__): Add s390x as 64-bit architecture.
11182
11183 2001-08-10  Richard Henderson  <rth@redhat.com>
11184
11185         * doc/extend.texi (C Implementation): New chapter.
11186         * doc/gcc.texi (Top): Link it in.
11187
11188 2001-08-10  Andrew Cagney  <ac131313@redhat.com>
11189
11190         * doc/install.texi (Specific): Fix CVS merge botch.
11191
11192 2001-08-10  Richard Henderson  <rth@redhat.com>
11193
11194         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): Protect with
11195         ifdef CTOR_LIST_BEGIN instead of INIT_SECTION_ASM_OP.
11196
11197 2001-08-10  Zack Weinberg  <zackw@stanford.edu>
11198
11199         * calls.c, function.c: Always define PREFERRED_STACK_BOUNDARY
11200         if not already defined.  Remove all #ifdefs on STACK_BOUNDARY;
11201         this macro is now required.
11202
11203         * cselib.c (cselib_process_insn), flow.c (propagate_block),
11204         loop.c (find_and_verify_loops), reload.c (reload): Check
11205         for rtx code of CALL_INSN, not CALL, when deciding if we
11206         need to check for REG_SETJMP note.
11207
11208         * gcse.c (compute_hash_table, compute_store_table): Update
11209         the #ifdef NON_SAVING_SETJMP code to the new REG_SETJMP
11210         logic.
11211
11212         * config/avr/avr.c: Fix typo.
11213         * config/convex/convex.c (expand_movstr): Use adjust_address.
11214         * config/dsp16xx/dsp16xx.c: Define dsp16xx_compare_gen
11215         variable.
11216         * config/dsp16xx/dsp16xx.md: Correct calls to replace_equiv_address.
11217         * config/elxsi/elxsi.c: Include tree.h, expr.h, regs.h, and flags.h.
11218         Fix typo.
11219         * config/elxsi/elxsi.h: Don't define Rmode (typo for Pmode?)
11220         Do define STACK_BOUNDARY.
11221         * config/i370/i370.c: Include expr.h.
11222         * config/i860/sysv3.h, config/i860/sysv4.h, config/m32r/m32r.h,
11223         config/pa/som.h, config/v850/v850.h: Take in_ctors and
11224         in_dtors out of EXTRA_SECTIONS; take CTORS_SECTION_FUNCTION
11225         and DTORS_SECTION_FUNCTION out of EXTRA_SECTION_FUNCTIONS.
11226         * config/m88k/m88k.c: Include c-tree.h after expr.h.
11227         * config/pdp11/pdp11.c: Include expr.h and toplev.h.
11228         * config/romp/romp.c: Include expr.h after tree.h.
11229         Include toplev.h.
11230         (output_fpop): Use xmalloc, not oballoc.
11231         * config/we32k/we32k.c: Include expr.h.
11232
11233 2001-08-10  Kazu Hirata  <kazu@hxi.com>
11234
11235         * config/h8300/h8300.h: Fix formatting.
11236
11237 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
11238
11239         * c-common.h (RETURN_NULLIFIED_P): Lose.
11240         * c-semantics.c (genrtl_return_stmt): Don't check it.
11241
11242 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
11243
11244         * config/mips/mips.c (mips_add_large_offset_to_sp): New function.
11245         (mips_annotate_frame_insn): New function.
11246         (mips_emit_frame_related_store): New function.
11247         (save_restore_insns): Don't mark instructions that set up the base
11248         registers as frame-related.  Add REG_FRAME_RELATED_EXPR notes to
11249         the store instructions instead.
11250         (mips_expand_prologue): If the stack size is moved into a temporary
11251         register, do not mark that move as frame-related.  Add a
11252         REG_FRAME_RELATED_EXPR note to the stack adjustment instruction.
11253
11254 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
11255
11256         * config/mips/mips.c (save_restore_insns): Don't mark the RA's
11257         stack slot as unchanging if current_function_calls_eh_return.
11258
11259 2001-08-10  Richard Sandiford  <rsandifo@redhat.com>
11260
11261         * config/mips/mips.md (reload_incc): Use HARD_REGNO_NREGS to
11262         access the second half of the TFmode scratch operand.
11263
11264 2001-08-10  Anthony Green  <green@redhat.com>
11265
11266         * java/class.c (emit_register_classes): Conditionalize code on
11267         JCR_SECTION_NAME.
11268
11269 2001-08-10  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
11270
11271         * doc/install.texi (Specific, avr): Fix cross-reference to the
11272         main manual to work both for info and HTML versions.
11273
11274 2001-08-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
11275
11276         * stmt.c (expand_null_return_1): Remove code to generate simple returns
11277         and "use_goto" argument.
11278         (expand_null_return, expand_value_return): Update all callers.
11279         * function.c (expand_function_end): Remove code to generate simple
11280         return.
11281         * config/vax/vax.md (epilogue): New expander for function return.
11282         * doc/md.texi (epilogue): Remove "if defined".
11283
11284 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
11285
11286         * Makefile.in: Partially revert my previous change:
11287         put -DGENERATOR_FILE back in HOST_CFLAGS, take it out
11288         of the hashtab.o and safe-ctype.o rules.
11289
11290 2001-08-09  Richard Henderson  <rth@redhat.com>
11291
11292         * Makefile.in (MAYBE_USE_COLLECT2): Remove; purge all uses.
11293         (USE_COLLECT2): Remove duplicate definition.
11294         * config.gcc (a29k-udi, a29k-wrs-vxworks) [tm_file]: Remove a29k/udi.h.
11295         (use_collect2): Remove dead code.
11296         * configure.in (use_collect2): Remove will_use_collect2 and
11297         maybe_use_collect2; add USE_COLLECT2 to host_xm_defines and xm_defines.
11298         * configure: Rebuild.
11299
11300         * target.h (targetm.asm_out.constructor): New.
11301         (targetm.asm_out.destructor, targetm.have_ctors_dtors): New.
11302         * target-def.h (TARGET_ASM_CONSTRUCTOR): New.
11303         (TARGET_ASM_DESTRUCTOR, TARGET_HAVE_CTORS_DTORS): New.
11304         * varasm.c (in_ctors, in_dtors): New.
11305         (assemble_constructor, assemble_destructor): Remove.
11306         (default_stabs_asm_out_destructor): New.
11307         (default_named_section_asm_out_destructor): New.
11308         (dtors_section, default_dtor_section_asm_out_destructor): New.
11309         (default_stabs_asm_out_constructor): New.
11310         (default_named_section_asm_out_constructor): New.
11311         (ctors_section, default_ctor_section_asm_out_constructor): New.
11312         * output.h: Update declarations.
11313         * c-decl.c (c_expand_body): Use target hooks instead of
11314         assemble_constructor and assemble_destructor.
11315         * profile.c (output_func_start_profiler): Likewise.
11316         * objc/objc-act.c (finish_objc): Likewise.
11317         (build_module_descriptor): Tidy.  Set TREE_PUBLIC properly
11318         for the constructor.
11319         * objc/Make-lang.in (objc-act.o): Depend on TARGET_H.
11320
11321         * crtstuff.c (CTORS_SECTION_ASM_OP): Don't define.
11322         (DTORS_SECTION_ASM_OP): Likewise.
11323         (__CTOR_LIST__): Use attribute section when possible.
11324         (__DTOR_LIST__, __CTOR_END__, __DTOR_END__): Likewise.
11325
11326         * defaults.h (EH_FRAME_SECTION_NAME): Don't depend on
11327         ASM_OUTPUT_CONSTRUCTOR.
11328
11329         * config/darwin.c (machopic_asm_out_constructor): New.
11330         (machopic_asm_out_destructor): New.
11331         * config/darwin-protos.h: Update declarations.
11332         * config/darwin.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11333         (ASM_OUTPUT_DESTRUCTOR): Remove.
11334         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11335         * config/nextstep.c (nextstep_asm_out_constructor): New.
11336         (nextstep_asm_out_destructor): New.
11337         * config/nextstep.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11338         (ASM_OUTPUT_DESTRUCTOR): Remove.
11339         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11340         * config/nextstep21.h: Undef TARGET_ASM_*STRUCTOR instead of
11341         ASM_OUTPUT_*STRUCTOR.
11342         * config/i386/aix386ng.h: Likewise.
11343
11344         * config/elfos.h (CTORS_SECTION_ASM_OP, DTORS_SECTION_ASM_OP): Remove.
11345         (EXTRA_SECTIONS, EXTRA_SECTION_FUNCTIONS): No ctors/dtors.
11346         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
11347         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11348         * config/lynx.h: Likewise.
11349         * config/netware.h: Likewise.
11350         * config/psos.h: Likewise.
11351         * config/alpha/alpha-interix.h: Likewise.
11352         * config/alpha/elf.h: Likewise.
11353         * config/arc/arc.h: Likewise.
11354         * config/arm/aof.h: Likewise.
11355         * config/arm/coff.h: Likewise.
11356         * config/arm/elf.h: Likewise.
11357         * config/c4x/c4x.h: Likewise.
11358         * config/h8300/h8300.h: Likewise.
11359         * config/i386/cygwin.h: Likewise.
11360         * config/i386/djgpp.h: Likewise.
11361         * config/i386/i386-coff.h: Likewise.
11362         * config/i386/i386-interix.h: Likewise.
11363         * config/i386/sco5.h: Likewise.
11364         * config/i386/vsta.h: Likewise.
11365         * config/i386/win32.h: Likewise.
11366         * config/i960/i960-coff.h: Likewise.
11367         * config/ia64/sysv4.h: Likewise.
11368         * config/m68hc11/m68hc11.h: Likewise.
11369         * config/m68k/coff.h: Likewise.
11370         * config/m68k/mot3300.h: Likewise.
11371         * config/m88k/m88k.h: Likewise.
11372         * config/mcore/mcore-pe.h: Likewise.
11373         * config/mcore/mcore.h: Likewise.
11374         * config/mips/elf.h: Likewise.
11375         * config/mips/elf64.h: Likewise.
11376         * config/mips/iris6.h: Likewise.
11377         * config/pa/pa64-hpux.h: Likewise.
11378         * config/rs6000/sysv4.h: Likewise.
11379         * config/sh/sh.h: Likewise.
11380         * config/sparc/litecoff.h: Likewise.
11381
11382         * config/svr3.h (CTORS_SECTION_ASM_OP): Remove.
11383         (CTORS_SECTION_FUNCTION, DTORS_SECTION_FUNCTION): Remove.
11384         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11385         * config/1750a/1750a.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11386         (ASM_OUTPUT_DESTRUCTOR): Remove.
11387         * config/a29k/a29k.c: Move include of tree.h.
11388         * config/a29k/udi.h: Delete file.
11389         * config/alpha/alpha.c (vms_asm_out_constructor): New.
11390         (vms_asm_out_destructor): New.
11391         * config/alpha/vms.h (EXTRA_SECTIONS): No ctors/dtors.
11392         (EXTRA_SECTION_FUNCTIONS): Likewise.
11393         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11394         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11395         * config/c4x/c4x.c: Move include of tree.h.
11396         * config/clipper/clipper.c (clix_asm_out_constructor): New.
11397         (clix_asm_out_destructor): New.
11398         * config/clipper/clix.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11399         (ASM_OUTPUT_DESTRUCTOR): Remove.
11400         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11401         * config/i386/aix386.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11402         (TARGET_ASM_CONSTRUCTOR): New.
11403         * config/i386/i386.c (ix86_svr3_asm_out_constructor): New.
11404         (sco_asm_out_constructor): New.
11405         * config/i386/sco5.h (TARGET_ASM_CONSTRUCTOR): New.
11406         * config/i386/svr3gas.h: Remove stack grows up code.
11407         Remove code duplicated from i386/sysv3.h.
11408         (TARGET_ASM_CONSTRUCTOR): New.
11409         (ASM_OUTPUT_CONSTRUCTOR, ASM_OUTPUT_DESTRUCTOR): Remove.
11410         (DTORS_SECTION_FUNCTION, CTORS_SECTION_FUNCTION): Remove.
11411         * config/i386/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11412         (TARGET_ASM_CONSTRUCTOR): New.
11413         * config/m68hc11/m68hc11.c (m68hc11_asm_out_constructor): New.
11414         (m68hc11_asm_out_destructor): New.
11415         * config/m68hc11/m68hc11.h (TARGET_ASM_CONSTRUCTOR): New.
11416         (TARGET_ASM_DESTRUCTOR): New.
11417         * config/m68k/auxgas.h: Don't undef ASM_OUTPUT_*STRUCTOR.
11418         * config/m68k/dpx2.h: Properly undef all the bits inherited from
11419         config/svr3.h pertaining to section manipulation.
11420         * config/m68k/dpx2g.h: Remove #if 0 code.
11421         * config/m68k/m68k.c (m68k_svr3_asm_out_constructor): New.
11422         * config/m68k/tower-as.h (ASM_OUTPUT_SOURCE_LINE): Fix typo.
11423         (ASM_OUTPUT_CONSTRUCTOR): Remove.
11424         (TARGET_ASM_CONSTRUCTOR): New.
11425         * config/m88k/m88k.c (m88k_layout_frame): Don't use assign_stack_local.
11426         (m88k_svr3_asm_out_constructor): New.
11427         (m88k_svr3_asm_out_destructor): New.
11428         * config/m88k/sysv3.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11429         (ASM_OUTPUT_DESTRUCTOR): Remove.
11430         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11431         * config/mips/mips.h: Remove #if 0 ASM_OUTPUT_*STRUCTOR code.
11432         * config/rs6000/aix.h: Likewise.
11433         * config/mips/rtems64.h: Don't undef removed constructor related bits.
11434         * config/mips/vxworks.h: Likewise.
11435         * config/rs6000/lynx.h: Likewise.
11436         * config/sh/elf.h: Likewise.
11437         * config/rs6000/sysv4.h (CTORS_SECTION_ASM_OP): New.
11438         (DTORS_SECTION_ASM_OP): New.
11439         * config/sparc/linux64.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11440         (ASM_OUTPUT_DESTRUCTOR): Remove.
11441         * config/sparc/sol2-sld-64.h: Likewise.
11442         * config/vax/vax.c (vms_asm_out_constructor): New.
11443         (vms_asm_out_destructor): New.
11444         * config/vax/vms.h (ASM_OUTPUT_CONSTRUCTOR): Remove.
11445         (ASM_OUTPUT_DESTRUCTOR): Remove.
11446         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): New.
11447
11448         * doc/tm.texi (@node Initialization): Update.
11449
11450 2001-08-09  Richard Henderson  <rth@redhat.com>
11451
11452         * config/alpha/crtbegin.asm (__JCR_LIST__): New.
11453         (__do_global_dtors_aux): Use gp-relative static data to avoid
11454         one dynamic relocation.
11455         (__do_frame_setup): Register Java classes.
11456         * config/alpha/crtend.asm (__JCR_END__): New.
11457
11458 2001-08-09  Zack Weinberg  <zackw@stanford.edu>
11459
11460         * Makefile.in (HOST_CFLAGS): Take out -DGENERATOR_FILE.
11461         (CONFIG_H, TCONFIG_H, TM_P_H): Update.
11462         (GEN, STAGESTUFF): Add new files.
11463         (insn-constants.h, s-constants, tm-preds.h, s-preds,
11464         genconstants, genpreds, genconstants.o, genpreds.o): New rules.
11465         (hashtab.o, safe-ctype.o): Add -DGENERATOR_FILE.
11466         * mkconfig.sh: Include tm-preds.h in tm_p.h; insn-constants.h
11467         as well as insn-codes.h and insn-flags.h in config.h; and no
11468         extra headers in tconfig.h and hconfig.h.
11469
11470         * gencodes.c: Eliminate code to generate predicate declarations
11471         or #defines for md-file constants.
11472         * genconstants.c, genpreds.c: New files.
11473
11474         * i386.md: Re-order guard expressions such that TARGET_64BIT
11475         comes first, when this permits better optimization.  Add
11476         TARGET_64BIT to more x86-64 patterns.  Add comment explaining
11477         why this is desirable.
11478
11479 2001-08-09  Jakub Jelinek  <jakub@redhat.com>
11480
11481         * config/ia64/fde-glibc.c: Require glibc 2.2.4+ headers.
11482         (find_fde_for_dso): Remove.
11483         (_Unwind_IteratePhdrCallback): New.
11484         (_Unwind_FindTableEntry): Use dl_iterate_phdr.
11485         * config/ia64/crtbegin.asm (__ia64_app_header): Remove.
11486
11487 Thu Aug  9 11:30:20 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
11488
11489         * expr.c (emit_single_push_insn): Only exists ifdef PUSH_ROUNDING.
11490         (move_by_pieces_1): If would call it, abort if no PUSH_ROUNDING.
11491
11492 2001-08-09  Graham Stott  <grahams@redhat.com>
11493
11494         * sched-vis.c (MAX_VISUAL_NO_UNIT): Define.
11495         (vis_no_unit): Use it.
11496         (visualize_no_unit): Add the insn only if room exists.
11497
11498 2001-08-09  Graham Stott  <grahams@redhat.com>
11499
11500         * predict.c (estimate_probability): Replace magic numbers with
11501         appropriate enumeration.
11502
11503 2001-08-09  Graham Stott  <grahams@redhat.com>
11504
11505         * cppexp.c (EXTRACT_PRIO): Uppercase and parenthsize macro
11506         parameter.
11507         (EXTRACT_FLAGS): Likewise.
11508
11509 2001-08-09  Aldy Hernandez  <aldyh@redhat.com>
11510
11511         * config/mips/mips.c    (mips_legitimate_address_p): Check for
11512         CONST_INT in last patch.
11513
11514 2001-08-08  Anthony Green  <green@redhat.com>
11515
11516         * java/class.c (emit_register_classes): Use assemble_jcr if
11517         possible.  Keep the original mechanism as a fallback.
11518         * defaults.h (JCR_SECTION_NAME): Define if we have named section
11519         and weak symbol support.
11520         * crtstuff.c (__JCR_LIST__): Define.
11521         (__JCR_END__): Define.
11522         (_Jv_RegiserClasses): Define weak symbol if possible.
11523         (__do_global_ctors_aux): Register classes for ELF targets with
11524         weak symbol support.
11525
11526 2001-08-08  Kazu Hirata  <kazu@hxi.com>
11527
11528         * dbxout.c: Fix comment formatting.
11529         * dependence.c: Likewise.
11530         * df.c: Likewise.
11531         * diagnostic.c: Likewise.
11532         * dominance.c: Likewise.
11533         * doprint.c: Likewise.
11534         * dwarf2out.c: Likewise.
11535         * dwarfout.c: Likewise.
11536         * emit-rtl.c: Likewise.
11537         * except.c: Likewise.
11538         * explow.c: Likewise.
11539         * expmed.c: Likewise.
11540         * expr.c: Likewise.
11541         * flow.c: Likewise.
11542         * fold-const.c: Likewise.
11543         * function.c: Likewise.
11544
11545 2001-08-08  Franz Sirl  <Franz.Sirl-kernel@lauterbach.com>
11546
11547         * global.c (retry_global_alloc): Avoid shadowing allocno.
11548
11549 2001-08-08  Mark Mitchell  <mark@codesourcery.com>
11550
11551         * except.c (remove_fixup_regions): Fix typo.
11552
11553 2001-08-08  Jan van Male <jan.vanmale@fenk.wau.nl>
11554
11555         * emit-rtl.c (adjust_address, adjust_address_nv): Cast offset to
11556         unsigned HOST_WIDE_INT to avoid warning.
11557         * final.c (final): Cast INSN_UID to unsigned to avoid warning.
11558         * flow.c (set_block_for_new_insns): Likewise.
11559
11560 Wed Aug  8 21:08:14 CEST 2001  Jan Hubicka  <jh@suse.cz>
11561
11562         * sibcall.c (return_value_pseudo): New static variable.
11563         (skip_copy_to_return_value): Handle return_value_pseudo.
11564         (call_ends_block_p): Ensure that return_value_pseudo is set.
11565         (optimize_sibling_and_tail_recursive_call): Discover the
11566         load of pseudo return value in alternate exit block.
11567
11568 Wed Aug  8 21:06:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
11569
11570         * calls.c (ECF_ALWAYS_RETURN): New constant.
11571         (emit_call_1): Add REG_ALWAYS_RETURN note if needed.
11572         (expand_call): Use LCF_ALWAYS_RETURN for __bb_fork_func.
11573         (emit_library_call_value_1): Handle LCT_ALWAYS_RETRUN.
11574         * flow.c (need_fake_edge_p): Handle REG_ALWAYS_RETURN.
11575         * rtl.c (reg_note_name): New name.
11576         * rtl.h (enum reg_note): Add REG_ALWAYS_RETURN.
11577
11578 2001-08-07  Aldy Hernandez  <aldyh@redhat.com>
11579
11580         * config/mips/mips.c (mips_legitimate_address_p): Limit "la" addresses.
11581
11582 2001-08-08  Jason Merrill  <jason_merrill@redhat.com>
11583
11584         * alias.c (get_alias_set): Return a previously calculated
11585         alias set for a VAR_DECL.
11586         * function.c (gen_mem_addressof): Calculate the alias set before
11587         touching the RTL.
11588
11589 Wed Aug  8 18:44:37 CEST 2001  Jan Hubicka  <jh@suse.cz>
11590
11591         * predict.def: Set hitrates according our experimental run.
11592
11593 Wed Aug  8 18:01:58 CEST 2001  Jan Hubicka  <jh@suse.cz>
11594
11595         * i386.h (HARD_REGNO_RENAME_OK): New macro.
11596
11597 2001-08-08  H.J. Lu <hjl@gnu.org>
11598
11599         * config/mips/mips.c (mips_unique_section): New. Copied from
11600         config/mips/elf.h.
11601
11602         * config/mips/mips-protos.h (mips_unique_section): New
11603         prototype.
11604
11605         * config/mips/elf.h (UNIQUE_SECTION): Use mips_unique_section.
11606
11607         * config/mips/little.h: New. Generic little endian mips
11608         targets. Only mips*-*-linux* is converted to use it so far.
11609
11610         * config/mips/linux.h: Include "gofast.h" and "mips/mips.h".
11611         (WCHAR_TYPE): Defined
11612         (WCHAR_TYPE_SIZE): Likewise.
11613         (INIT_SUBTARGET_OPTABS): Likewise.
11614         (BSS_SECTION_ASM_OP): Likewise.
11615         (SBSS_SECTION_ASM_OP): Likewise.
11616         (ASM_OUTPUT_ALIGNED_BSS): Likewise.
11617         (ASM_DECLARE_OBJECT_NAME): Likewise.
11618         (UNIQUE_SECTION): Likewise.
11619         (EXTRA_SECTIONS): Likewise.
11620         (ASM_OUTPUT_CONSTRUCTOR): Likewise.
11621         (ASM_OUTPUT_DESTRUCTOR): Likewise.
11622         (ASM_OUTPUT_DEF): Likewise.
11623         (HANDLE_SYSV_PRAGMA): Removed.
11624         (NO_IMPLICIT_EXTERN_C): Likewise.
11625         (TARGET_MEM_FUNCTIONS): Likewise.
11626         (STARTFILE_SPEC): Likewise.
11627         (ENDFILE_SPEC): Likewise.
11628         (LIB_SPEC): Likewise.
11629         (INVOKE__main): Likewise.
11630         (CTOR_LIST_BEGIN): Likewise.
11631         (CTOR_LIST_END): Likewise.
11632         (DTOR_LIST_BEGIN): Likewise.
11633         (DTOR_LIST_END): Likewise.
11634         (SET_ASM_OP): Likewise.
11635         (ASM_OUTPUT_SOURCE_LINE): Likewise.
11636         (ASM_OUTPUT_DEF): Likewise.
11637         (ASM_OUTPUT_IDENT): Likewise.
11638
11639         * config/mips/mips.h (ASM_SPEC): Undefine before define.
11640         (CPLUSPLUS_CPP_SPEC): Likewise.
11641         (ASM_APP_ON) Redefine only if not defined.
11642         (ASM_APP_OFF): Likewise.
11643         (ASM_OUTPUT_SOURCE_LINE): Likewise.
11644         (ASM_OUTPUT_IDENT): Likewise.
11645
11646         * config.gcc: Update tm_file for Linux/mips.
11647
11648 2001-08-08  Bernd Schmidt  <bernds@redhat.com>
11649
11650         * cselib.c (cselib_record_sets): If insn is predicated, turn
11651         sources into IF_THEN_ELSEs.
11652
11653         * config/ia64/ia64.md (cond_opsi2_internal, cond_opsi2_internal_b):
11654         Turn into define_insn_and_split.
11655
11656         * sched-deps.c: Include "cselib.h".
11657         (add_insn_mem_dependence, sched_analyze_1, sched_analyze_2):
11658         Use cselib to turn memory addresses into VALUEs.
11659         (sched_analyze): Call cselib_init/cselib_finish if necessary.
11660         * sched-int.h (struct sched_info): New member USE_CSELIB.
11661         * sched-ebb.c (ebb_sched_info): Initialize it.
11662         * sched-rgn.c (rgn_sched_info): Likewise.
11663         * Makefile.in (sched-deps.o): Update dependencies.
11664
11665         * cselib.h (cselib_subst_to_values): Declare.
11666         * cselib.c (cselib_subst_to_values): No longer static.  Allow MEMs
11667         that have no value and autoincs to be handled by generating a new
11668         dummy value.
11669
11670 2001-08-08  Graham Stott  <grahams@redhat.com>
11671
11672         * final.c (shorten_branches): Update the INSN_ADDRESSES of insns
11673         within fixed length SEQUENCE.
11674
11675 2001-08-08  Graham Stott  <grahams@redhat.com>
11676
11677         * diagnostic.h (diagnostic_format_decoder): Parenthesize macro parameter.
11678         (diagnostic_prefixing_rule): Likewise.
11679         (diagnostic_line_cutoff): Likewise.
11680         (diagnostic_kind_count): Likewise.
11681
11682 2001-08-08  Graham Stott  <grahams@redhat.com>
11683
11684         * alias.c (find_base_decl): Delete redundent assignment.
11685
11686 2001-08-08  Graham Stott  <grahams@redhat.com>
11687
11688         * dependence.c (INDEX_LIMIT_CHECK): Uppercase macro parameter.
11689         (abs): Uppercase and paranthesize macro parameter.
11690         (MEM_DEPENDENCY): Add whitespace.
11691
11692 2001-08-08  Graham Stott  <grahams@redhat.com>
11693
11694         * config/mips/mips.c (mips_legitimate_address_p): Fix enable checking
11695         failure check for CONST_INT
11696
11697 2001-08-08  Graham Stott  <grahams@redhat.com>
11698
11699         * flow.c (back_edge_of_syntactic_loop_p): Add whitespace.
11700         (libcall_dead_p): Likewise.
11701
11702         (mark_used_regs): Constify fmt.
11703         (find_use_as_address): Likewise.
11704
11705 2001-08-08  Graham Stott  <grahams@redhat.com>
11706
11707         * c-typeck.c (RESTORE_SPELLING_DEPTH): Uppercase and parenthesize macro
11708          parameter.
11709
11710 2001-08-08  Graham Stott  <grahams@redhat.com>
11711
11712         * combine.c (combine_simplify_rtx): Update comment and
11713         remove erroneous test.
11714
11715 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
11716
11717         * cppinit.c (cpp_finish): Pop the final buffer without comment.
11718         * cpplex.c (_cpp_lex_token): Don't pop the final buffer; and
11719         take care to avoid multiple no-newline at EOF warnings in that
11720         case.
11721
11722 Tue Aug  7 22:18:06 CEST 2001  Jan Hubicka  <jh@suse.cz>
11723
11724         * calls.c (expand_call): Do not emit INSN_SETJMP note.
11725         (emit_library_call_value_1): Likewise.
11726         (emit_call_1): Emit REG_SETJMP note.
11727         * cse.c (cse_end_of_basic_block): Use REG_SETJMP instead
11728         of INSN_SETJMP
11729         * cselib.c (cselib_process_insn): Likewise.
11730         * flow.c (propagate_block): Likewise.
11731         * loop.c (find_and_verify_loops): Likewise.
11732         * reload.c (find_equiv_regs): Likewise.
11733         * reload1.c (reload): Likewise.
11734         * resource.c (mark_referenced_resources,
11735         mark_set_resources): Likewise.
11736         * sched-deps (sched_analyze_insn, sched_analyze): Likewise.
11737         * final.c (final_scan_insn): Remove NOTE_INSN_SETJMP.
11738         * haifa-sched.c (unlink_other_notes): Likewise.
11739         (reemit_notes): Likewise.
11740         * sched-ebb.c (sched_ebb): Likewise.
11741         * sched-rgc.c (sched_region): Likewise.
11742         * rtl.c (note_insn_name): Likewise.
11743         (reg_note_name): Add REG_SETJMP
11744         * rtl.h (reg_note): Add REG_SETJMP.
11745         (insn_note): Remove NOTE_INSN_SETJMP.
11746
11747         * profile.c (branch_prob): Add fake edges for setjmp.
11748
11749 2001-08-07  Daniel Jacobowitz  <drow@mvista.com>
11750
11751         * config.gcc: Quote target_cpu_default2 correctly for
11752         powerpc*-*-* targets.
11753
11754 2001-08-07  Neil Booth  <neil@daikokuya.demon.co.uk>
11755
11756         * cpplib.h, line-map.h: Update comments.
11757         * cppmain.c (printer_init): Move inline.
11758         (maybe_print_line, print_line): Take a map pointer.
11759         (cb_ident, cb_define, cb_undef, cb_include, cb_def_pragma): Update.
11760         (cb_file_change): Don't use prior value of print.map.
11761
11762 2001-08-07  David Edelsohn  <edelsohn@gnu.org>
11763
11764         * doc/install.texi: Document fine-grained multilib configuration.
11765
11766 Tue Aug  7 16:52:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
11767
11768         * rtlanal.c (find_first_parameter_load): Call note_stores
11769         only on the instructions.
11770
11771 Tue Aug  7 14:56:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
11772
11773         * alias.c (nonlocal_mentioned_p):
11774         Rename CONST_CALL_P to CONST_OR_PURE_CALL_P
11775         * calls.c (emit_call_1): Likewise.
11776         * cse.c (cse_insn, invalidate_skipped_block): Likewise.
11777         * cselib.c (cselib_process_insn): Likewise.
11778         * df.c (df_insns_modify): Likewise.
11779         * flow.c (need_fake_edge_p): Likewise.
11780         (propagate_one_insn): Likewise.
11781         * haifa-sched.c (reemit_notes): Likewise.
11782         * integrate.c (copy_insn_list): Likewise.
11783         * jump.c (delete_prior_computation): Likewise.
11784         * local-alloc.c (validate_equiv_mem): Likewise.
11785         * loop.c (scan_loop): Likewise.
11786         * predict.c (estimate_probability): Likewise.
11787         * reload.c (reload): Likewise.
11788         * sched-deps (sched_analyze): Likewise.
11789         * rtl.h (CONST_CALL_P): rename to CONST_OR_PURE_CALL_P.
11790         * gcse.c (compute_hash_table): Likewise.
11791         (mark_call): Likewise.
11792         (store_killed_in_insn): Likewise.
11793
11794 2001-08-07  Jason Merrill  <jason_merrill@redhat.com>
11795
11796         * c-semantics.c (make_rtl_for_local_static): Use DECL_RTL_SET_P.
11797
11798 2001-08-06  Richard Henderson  <rth@redhat.com>
11799
11800         * varasm.c (assemble_gc_entry): Remove.
11801         * output.h: Likewise.
11802
11803 2001-08-06  Richard Henderson  <rth@redhat.com>
11804
11805         * varasm.c (assemble_constructor): Take a symbol_ref and a
11806         priority instead of a bare string.  Move priority handling
11807         here from cp/decl2.c.
11808         * output.h: Update decls.
11809
11810         * c-decl.c (c_expand_body): Update calls to assemble_constructor
11811         and assemble_destructor.
11812         * profile.c (output_func_start_profiler): Likewise.
11813         * objc/objc-act.c (finish_objc): Likewise.
11814         (build_module_descriptor): Return the symbol not the symbol name.
11815
11816 2001-08-06  David Edelsohn  <edelsohn@gnu.org>
11817
11818         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): Add whitespace.
11819         * config/rs6000/linux64.h (RS6000_MCOUNT): Define.
11820         ({SAVE,RESTORE}_FP_{PREFFIX,SUFFIX}): Define.
11821         * config/rs6000/rs6000.h (ASM_OUTPUT_DOUBLE_INT): Remove whitespace.
11822         * config/rs6000/sysv4.h (DOUBLE_INT_ASM_OP): Add whitespace.
11823         * config/rs6000/xcoff.h (DOUBLE_INT_ASM_OP): Add whitespace.
11824
11825 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11826
11827         * cpperror.c (print_containing_files): Moved to line-map.c.
11828         (print_location): line-map.c handles re-listing or otherwise.
11829         * cpphash.h (struct lexer_state): Remove next_bol.
11830         (struct cpp_buffer): Remove include_stack_listed.
11831         * cpplib.c (do_line, cpp_push_buffer, _cpp_pop_buffer):
11832         Remove faked buffer handling.
11833         (_cpp_do_file_change): Tweak.
11834         * cpplib.h (enum cpp_buffer_type): Remove BUF_FAKE.
11835         * cppmain.c (struct printer): Remove filename.
11836         (print_line, cb_file_change): Update accordingly.
11837         * line-map.c: Include intl.h.
11838         (init_line_maps): Initialize last_listed.
11839         (free_line_maps): Sanity check, warn if ENABLED_CHECKING.
11840         (add_line_map): Sanity check inputs, warn if ENABLED_CHECKING.
11841         (print_containing_files): New.
11842         * line-map.h (struct line_maps): New member last_listed.
11843         (print_containing_files, INCLUDED_FROM): New.
11844         * Makefile.in: Update.
11845         * po/POTFILES.in: Add line-map.c.
11846
11847 2001-08-06  Richard Henderson  <rth@redhat.com>
11848
11849         * except.c (convert_from_eh_region_ranges_1): Never mark
11850         USE or CLOBBER insns as throwing.
11851
11852         * expr.c (store_constructor): Don't clobber memory targets.
11853
11854 2001-08-06  Andreas Jaeger  <aj@suse.de>
11855
11856         * profile.c (branch_prob): Remove unused variable insn.
11857
11858         * Makefile.in (local-alloc.o): Add dependency on except.h.
11859
11860         * local-alloc.c: Include except.h for can_throw_internal prototype.
11861
11862 2001-08-06  Richard Henderson  <rth@redhat.com>
11863
11864         * config/i386/i386.h (FORCE_PREFERRED_STACK_BOUNDARY_IN_MAIN): New.
11865         * function.c (expand_main_function): Implement it.
11866         * doc/tm.texi: Document it.
11867
11868 2001-08-06  Stan Shebs  <shebs@apple.com>
11869
11870         * doc/install.texi: Document powerpc-*-darwin* details.
11871
11872 2001-08-06  Daniel Berlin  <dan@cgsoftware.com>
11873
11874         * config/rs6000/aix.h (CPP_CPU_SPEC): Move back to rs6000.h
11875         (ASM_CPU_SPEC): Move back to rs6000.h
11876         #undef CPP_DEFAULT_SPEC and ASM_DEFAULT_SPEC before redefining them.
11877
11878         * config/rs6000/darwin.h (DOUBLE_INT_ASM_OP): New macro.
11879
11880         * config/rs6000/linux.h: Remove vtable thunks stuff we accidently
11881         readded.
11882
11883         * config/rs6000/linux64.h: Ditto.
11884
11885         * config/rs6000/rs6000.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11886         to here. Define default ASM_DEFAULT_SPEC and CPP_DEFAULT SPEC to
11887         nothing.
11888
11889         Remove accidently readded definitions of FUNCTION_PROLOGUE,
11890         FUNCTION_EPILOGUE,  ASM_OPEN_PAREN, ASM_CLOSE_PAREN
11891
11892         * config/rs6000/sysv4.h: Move CPP_CPU_SPEC and ASM_CPU_SPEC back
11893         to rs6000.h
11894
11895 2001-08-05  Richard Henderson  <rth@redhat.com>
11896
11897         * local-alloc.c (update_equiv_regs): Do not move insns that
11898         can throw.
11899
11900 2001-08-05  Jan Hubicka  <jh@suse.cz>
11901
11902         * Makefile.in (reload1.o): Add dedendancy on except.h
11903         * basic-block.h (purge_all_dead_edges, purge_dead_edges): Update
11904         prototypes.
11905         * flow.c (purge_dead_edges, purge_all_dead_edges): Return bool
11906         indicating wehther edges has been cleaned up.
11907         * reload1.c: Inlucde except.h
11908         (fixup_abnormal_edges): Accept deleted insns.
11909         * toplev.c (rest_of_compilation): Purge dead edges unconditionally
11910         after combine.
11911
11912 2001-08-06  Neil Booth  <neil@daikokuya.demon.co.uk>
11913
11914         * cpplib.c (do_line): Correct line number after pop_buffer.
11915
11916 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11917
11918         PR preprocessor/3824
11919         * line-map.c: Update comments.
11920         * line-map.h: Update comments.
11921         * tradcif.y: Don't consider large numbers unsigned.
11922
11923 2001-08-05  Neil Booth  <neil@daikokuya.demon.co.uk>
11924
11925         PR preprocessor/3081
11926         * c-lex.c (map): New.
11927         (cb_file_change): Update map and use it.
11928         (cb_def_pragma, cb_define, cb_undef): Use map and line.
11929         (c_lex): Update to use map.
11930         * cpperror.c (print_location): Move to using logical line numbers.
11931         * cppfiles.c (stack_include_file): Update for new _cpp_do_file_change.
11932         (cpp_make_system_header): Similarly.
11933         (_cpp_execute_include): Stop line numbering hacks.  Store the
11934         line we will return to.
11935         * cpphash.h (CPP_BUF_LINE): Remove.
11936         (struct cpp_buffer): Remove lineno and pseudo_newlines.
11937         Add map and return_to_line.
11938         (_cpp_do_file_change): Update.
11939         * cppinit.c (cpp_start_read): Update line kludge.
11940         * cpplex.c (handle_newline): Don't update lineno and pseudo_newlines.
11941         (trigraph_ok): Use logical line numbers for diagnostics.
11942         (skip_block_comment): Likewise.
11943         (skip_whitespace): Likewise.
11944         (skip_line_comment): Use pfile->line instead.
11945         (_cpp_lex_token): Update to use logical line numbering exclusively.
11946         Handle BOL locally.  Accept new lines in directives, but keep
11947         pfile->line decremented.  Diagnostics use logical lines.  Update
11948         directive handling.
11949         * cpplib.c (SEEN_EOL): New.
11950         (skip_rest_of_line, check_eol): Use it.
11951         (end_directive): Increase line number when accepting the newline
11952         at the end of a directive.
11953         (run_directive): Simplify.
11954         (do_line): Bad LC_LEAVEs become LC_RENAMEs.  Update.
11955         (_cpp_do_file_change): Update to take buffer line number as an
11956         argument, and store the current map in the cpp_reader.  Remove
11957         line number kludges.
11958         (_cpp_do__Pragma): Restore output position after a _Pragma.
11959         (cpp_push_buffer): Don't set output line or lineno.
11960         (_cpp_pop_buffer): Transfer more info from a faked buffer.
11961         Remove line kludge.  Set output_line.
11962         * cppmacro.c (builtin_macro): Update handling of __LINE__.
11963         (parse_arg): Use logical lines.
11964         (save_lookahead_token): Save EOFs too now.
11965         * cppmain.c (struct printer): Fix comments.
11966         (printer_init): Simplify, let caller do errors.
11967         (scan_translation_unit, check_multiline_token, dump_macro): Update.
11968         (maybe_print_line): Simplify.
11969         (print_line): Don't print a linemarker if -P.
11970         (cb_define, cb_undef, cb_def_pragma, cb_ident, cb_include): Update.
11971         (cb_file_change): Simplify.
11972         * line-map.h (LAST_SOURCE_LINE): Fix.
11973         (CURRENT_LINE_MAP): New.
11974
11975 2001-08-05  Bernd Schmidt  <bernds@redhat.com>
11976
11977         * doloop.c (doloop_modify_runtime): Properly compute number of
11978         iterations if loop was unrolled.
11979
11980         * alias.c (rtx_equal_for_memref_p): VALUEs are only identical
11981         if their CSELIB_VAL_PTRs are.
11982
11983         * config/ia64/ia64.c (struct spill_fill_data): New member prev_insn.
11984         (setup_spill_pointers): Initialize it.
11985         (spill_restore_mem): Set it.
11986         (do_spill, do_restore): Use it to add REG_INC note.
11987         * config/ia64/ia64.md (movti_internal): Add REG_INC notes as needed.
11988
11989         * config/ia64/ia64.c (ia64_sched_reorder): Defer scheduling of
11990         asms if other insns are available.
11991
11992         * config/ia64/ia64.c (condop_operator): New predicate.
11993         * config/ia64/ia64.h (PREDICATE_CODES): Add it.
11994         * config/ia64/ia64.md (cond_opsi2_internal and splitters): New
11995         patterns.
11996
11997         * expr.c (expand_expr, case COND_EXPR): Prefer working with a
11998         temporary register than directly using a MEM.
11999
12000 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
12001
12002         * config/sh/sh.c (sh_asm_named_section): Fix typo in align
12003         parameter in last change.
12004
12005 2001-08-04  Zack Weinberg  <zackw@panix.com>
12006
12007         * sparc.md: Don't use #if inside C test expression.
12008
12009 2001-08-04  Richard Henderson  <rth@redhat.com>
12010
12011         * i386.c: Revert 07-30 ix86_output_main_function_alignment_hack.
12012
12013 2001-08-04  Neil Booth  <neil@daikokuya.demon.co.uk>
12014
12015         * cpphash.h (struct cpp_reader): New member directive_line.
12016         * cpplib.h (struct cpp_callbacks): Update prototypes of callbacks.
12017         * cpplib.c (do_define, do_undef, do_ident, do_include_common,
12018         do_pragma): Pass line to callbacks.
12019         (start_directive): Record line of directive.
12020         * cppmain.c (cb_ident, cb_define, cb_undef, cb_def_pragma,
12021         cb_include): Similarly.
12022         * c-lex.c (cb_ident, cb_define, cb_undef, cb_def_pragma):
12023         Similarly.
12024
12025 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
12026
12027         * config/d30v/d30v.h: Fix typo in start of UNIQUE_SECTION
12028         comment.
12029
12030 Sat Aug  4 13:51:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
12031
12032         * loop.c (try_copy_prop); Kill invalidated REG_EQUAL notes.
12033
12034         * reload1.c (fixup_abnormal_edges): New static function.
12035         (reload): Use it.
12036
12037         * flow.c (need_fake_edge_p): New function.
12038         (flow_call_edges_add): Fix handling of noreturn and sibling calls;
12039         avoid call insn to be very last insn in the insn stream.
12040
12041         * profile.c (branch_prob): Call flow_call_edges_add instead of
12042         doing that by hand; cleanup cfg to re-merge basic blocks once
12043         we are done.
12044
12045 2001-08-04  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12046
12047         * Makefile.in (CPPLIB_H): New, so that dependencies on cpplib.h
12048         are also on line-map.h.
12049         * cppfiles.c (stack_include_file): Update.
12050         * cpphash.h (struct cpp_buffer): New member return_at_eof.
12051         (_cpp_pop_buffer): New.
12052         * cppinit.c (cpp_destroy, cpp_finish): Update.
12053         (do_includes): Mark each buffer to return at EOF.
12054         * cpplex.c (_cpp_lex_token): Pop buffers at EOF.  Continue or
12055         return as requested.
12056         * cpplib.c (run_directive, do_line, cpp_push_buffer): Update.
12057         (cpp_pop_buffer): Rename _cpp_pop_buffer.  Stop skipping.
12058         * cpplib.h (cpp_pop_buffer): Remove.
12059         (cpp_scan_buffer_nooutput): Rename cpp_scan_nooutput.
12060         * cppmacro.c (cpp_scan_buffer_nooutput): Similarly.  No need to pop
12061         buffers.
12062         * cppmain.c (scan_buffer): Rename scan_translation_unit.  No need
12063         to pop buffers.
12064         (do_preprocessing): Update.
12065         * fix-header.c (read_scan_file): Update.  No need to pop buffers.
12066         * c-parse.in (_yylex): Similarly.
12067         * scan-decls.c (scan_decls): Similarly.
12068         * line-map.h: Update comments.
12069
12070         * objc/Make-lang.in (objc-act.o): Update dependencies.
12071
12072 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12073
12074         * config/m68hc11/m68hc11.md ("cmphi_1", "cmpqi_1"): Allow memory
12075         and soft register for operand 0.
12076         ("cmphi_z_used", "cmpqi_z_used"): Allow memory for operand 0.
12077
12078 2001-08-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12079
12080         * config/m68hc11/m68hc11.md ("bitcmpqi"): Allow memory and soft
12081         register for operand 0.
12082         ("bitcmpqi_z_used"): Allow memory for operand 0.
12083         (split "bitcmpqi"): New split to handle address reg as operand 1.
12084
12085 2001-08-04  Andreas Jaeger  <aj@suse.de>
12086
12087         * gcse.c: Revert Daniel's last patch.
12088
12089 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
12090
12091         * sparc-protos.h: Add prototypes for fp_zero_operand and
12092         reg_or_0_operand.
12093         * sh-protos.h: Add prototype for fpul_operand.
12094
12095 2001-08-04  Hans-Peter Nilsson  <hp@bitrange.com>
12096
12097         * doc/extend.texi (Other Builtins): Fix typo in last change.
12098
12099 2001-08-03  Richard Henderson  <rth@redhat.com>
12100
12101         * target.h (gcc_target): Add asm_out.named_section,
12102         section_type_flags, have_named_sections.
12103         * target-def.h (TARGET_ASM_NAMED_SECTION): New.
12104         (TARGET_HAVE_NAMED_SECTIONS): New.
12105         (TARGET_SECTION_TYPE_FLAGS): New.
12106
12107         * Makefile.in (toplev.o): Depend on TARGET_H.
12108         (varasm.o, dbxout.o): Likewise.
12109         * c-common.c (decl_attributes): Check targetm.have_named_sections
12110         instead of ifdef ASM_OUTPUT_SECTION_NAME.
12111         * dbxout.c (dbxout_function_decl): Likewise.
12112         (dbxout_function_end): Likewise.
12113         * toplev.c (compile_file): Likewise.
12114         * varasm.c (exception_section): Likewise.
12115         * cp/decl2.c (finish_objects): Likewise.
12116
12117         * defaults.h (EH_FRAME_SECTION): Remove.
12118         (EH_FRAME_SECTION_ASM_OP): Remove.
12119         (EH_FRAME_SECTION_NAME): New.
12120         (UNIQUE_SECTION): Don't depend on ASM_OUTPUT_SECTION_NAME.
12121         (UNIQUE_SECTION_P): Remove.
12122         * dwarf2out.c (SECTION_FORMAT): Remove.
12123         (ASM_OUTPUT_SECTION): Remove.
12124         (output_call_frame_info): Use named_section_flags.
12125         (output_comp_unit, dwarf2out_start_source_file): Likewise.
12126         (dwarf2out_end_source_file, dwarf2out_define): Likewise.
12127         (dwarf2out_undef, dwarf2out_init, dwarf2out_finish): Likewise.
12128         * varasm.c (in_eh_frame, eh_frame_section): Remove.
12129         (named_section_flags): New.
12130         (named_section): Use it and targetm.section_type_flags.
12131         (resolve_unique_section): New.
12132         (assemble_start_function): Use it.
12133         (asm_emit_uninitialised, assemble_variable): Likewise.
12134         (default_section_type_flags): New.
12135         (default_no_named_section, default_elf_asm_named_section): New.
12136         (default_coff_asm_named_section, default_pe_asm_named_section): New.
12137         * output.h: Update varasm.c decls.
12138         (SECTION_*): New flags.
12139
12140         * crtstuff.c: Check EH_FRAME_SECTION_NAME not EH_FRAME_SECTION_ASM_OP.
12141         (__EH_FRAME_BEGIN__, __FRAME_END__): Use attribute section.
12142
12143         * config/elfos.h (UNIQUE_SECTION_P): Remove.
12144         * config/alpha/elf.h, config/arm/linux-elf.h: Likewise.
12145         * config/arm/pe.h, config/arm/unknown-elf.h: Likewise.
12146         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
12147         * config/i386/i386-interix.h, config/i386/win32.h: Likewise.
12148         * config/ia64/sysv4.h, config/mcore/mcore-pe.h: Likewise.
12149         * config/mips/elf.h, config/mips/elf64.h: Likewise.
12150         * config/mips/iris6gld.h, config/mips/mips.h: Likewise.
12151         * config/pa/pa64-hpux.h,
12152
12153         * config/elfos.h (ASM_OUTPUT_SECTION_NAME): Remove.
12154         (TARGET_ASM_NAMED_SECTION): New.
12155         * config/psos.h, config/a29k/a29k.h, config/alpha/elf.h: Likewise.
12156         * config/alpha/vms.h, config/arm/coff.h: Likewise.
12157         * config/arm/conix-elf.h, config/arm/elf.h: Likewise.
12158         * config/arm/linux-elf.h, config/arm/pe.h: Likewise.
12159         * config/arm/unknown-elf.h, config/avr/avr.h: Likewise.
12160         * config/c4x/c4x.h, config/h8300/h8300.h: Likewise.
12161         * config/i386/cygwin.h, config/i386/djgpp.h: Likewise.
12162         * config/i386/i386-interix.h, config/i386/i386elf.h : Likewise.
12163         * config/i386/sco5.h, config/i386/win32.h: Likewise.
12164         * config/m68k/coff.h, config/mcore/mcore-pe.h: Likewise.
12165         * config/mcore/mcore.h, config/mips/elf.h: Likewise.
12166         * config/mips/elf64.h, config/mips/iris6.h: Likewise.
12167         * config/mips/netbsd.h, config/mips/openbsd.h: Likewise.
12168         * config/pa/pa64-hpux.h, config/rs6000/sysv4.h: Likewise.
12169         * config/rs6000/xcoff.h, config/sh/sh.h: Likewise.
12170         * config/sparc/sysv4.h: Likewise.
12171
12172         * config/nextstep.h: Error until named sections implemented.
12173
12174         * config/a29k/a29k.c (a29k_asm_named_section): New.
12175         * config/alpha/alpha.c (SECTION_VMS_OVERLAY): New.
12176         (vms_section_type_flags, vms_asm_named_section): New.
12177         * config/arm/arm.c (arm_elf_asm_named_section): New.
12178         * config/avr/avr.c (asm_output_section_name): Remove.
12179         * config/avr/avr-protos.h: Update.
12180         * config/c4x/c4x.c (c4x_asm_named_section): New.
12181         * config/h8300/h8300.c (h8300_asm_named_section): New.
12182         * config/i386/i386.c (sco_asm_named_section): New.
12183         * config/i386/winnt.c (SECTION_PE_SHARED): New.
12184         (i386_pe_section_type_flags): New.
12185         (i386_pe_asm_named_section): New.
12186         * config/i386/i386-protos.h: Update.
12187         * config/m68k/m68k.c (m68k_coff_asm_named_section): New.
12188         * config/mcore/mcore.c (mcore_asm_named_section): New.
12189         * config/mips/mips.c (iris6_asm_named_section): New.
12190         * config/mips/mips.h (ENCODE_SECTION_INFO): Use DECL_ONE_ONLY
12191         instead of UNIQUE_SECTION_P.
12192         * config/rs6000/rs6000.c (rs6000_elf_section_type_flags): New.
12193         (xcoff_asm_named_section): New.
12194         * config/sh/sh.c (sh_asm_named_section): New.
12195         * config/sparc/sparc.c (sparc_elf_asm_named_section): New.
12196
12197         * config/i386/djgpp.h (EH_FRAME_SECTION_ASM_OP): Remove.
12198         * config/i386/sco5.h (EH_FRAME_SECTION_ASM_OP*): Remove.
12199         (EH_FRAME_SECTION_NAME): New.
12200         (EXCEPTION_SECTION): New.
12201         * config/ia64/ia64.h (EH_FRAME_SECTION_ASM_OP): Remove.
12202         (DEBUG_*_SECTION): Remove.
12203         * config/m68k/rtemself.h (EH_FRAME_SECTION_ASM_OP): Remove.
12204         * config/mips/iris6.h (DEBUG_*_SECTION): Remove.
12205         (EH_FRAME_SECTION_ASM_OP): Remove.
12206
12207         * doc/tm.texi (UNIQUE_SECTION_P): Remove.
12208         (ASM_OUTPUT_SECTION_NAME): Remove.
12209         (TARGET_ASM_NAMED_SECTION): New.
12210         (TARGET_HAVE_NAMED_SECTIONS): New.
12211         (TARGET_SECTION_TYPE_FLAGS): New.
12212         (EH_FRAME_SECTION_ASM_OP): Remove.
12213         (EH_FRAME_SECTION_NAME): New.
12214
12215 2001-08-03  Zack Weinberg  <zackw@stanford.edu>
12216
12217         * builtins.c (fold_builtin_constant_p): Return integer_zero_node
12218         for complex expressions when cfun == 0.
12219         * doc/extend.texi: Document that __builtin_constant_p can be
12220         used in data initializers as well as functions.
12221
12222 2001-08-03  Alexandre Oliva  <aoliva@redhat.com>
12223
12224         * config/mn10300/mn10300.h (CONDITIONAL_REGISTER_USAGE): Declare
12225         variable I locally, instead of expecting a declaration in the
12226         calling context.
12227
12228 2001-08-03  Richard Henderson  <rth@redhat.com>
12229
12230         * except.c (collect_one_action_chain): Add an explicit cleanup
12231         action if regions surrounding a catch were encoded entirely
12232         within the call-site entry.
12233
12234 2001-08-03  Richard Henderson  <rth@redhat.com>
12235
12236         * dbxout.c (dbxout_symbol_location): Flatten subregs first;
12237         don't take REGNO of a non-register.
12238
12239 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12240
12241         * gthr-dce.h (__GTHREAD_MUTEX_INIT_FUNCTION and
12242         __GTHREAD_MUTEX_INIT_DEFAULT): New macros for mutex initialization.
12243         (__gthread_key_delete): Remove code for __PTHREAD_LIBRARY_VERSION_1 >= 1
12244         (__gthread_mutex_init_function): New function for mutex initialization.
12245
12246 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
12247
12248         * Makefile.in: Revert screwed up commit.
12249
12250 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
12251
12252         * config/m68hc11/t-m68hc11-gas (T_CPPFLAGS): Add _ctor and _dtor.
12253         * config/m68hc11/larith.asm (_exit): Split in several sub-sections
12254         merged by linker script to get a final _exit().
12255         (__do_global_dtors): New for destructor handling in specific exit
12256         section.
12257         (__do_global_ctors): New for constructors in specific install section.
12258         (__map_data_section): Map data sections before running constructors.
12259         * config/m68hc11/m68hc11.h (INT_ASM_OP): Define to use .word.
12260         (CTORS_SECTION_ASM_OP): Define to put in readonly section.
12261         (DTORS_SECTION_ASM_OP): Likewise.
12262         (CTORS_SECTION_FUNCTION): Define to force a reference to
12263         __do_global_ctors.
12264         (DTORS_SECTION_FUNCTION): Likewise for __do_global_dtors.
12265
12266 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
12267
12268         * ChangeLog: Fix date on previous ChangeLog entry for GCSE.
12269
12270         * Makefile.in: Add df.h to gcse.c dependencies.
12271
12272 2001-08-03  John David Anglin  <dave@hiauly1.hia.nrc.ca>
12273
12274         * varasm.c (output_constant_def_contents): Use for the length of a
12275         string constant either its TREE_STRING_LENGTH or its int_size_in_bytes
12276         depending on which is larger.
12277
12278 2001-08-03  Daniel Berlin  <dan@cgsoftware.com>
12279
12280         * gcse.c: Include df.h for use as a dataflow analyzer.
12281         Remove regvec.
12282         Declaration of reg_set_info: gone.
12283         New df_analyzer variable used by store motion.
12284         (reg_set_info): Deleted.
12285         (mark_mem_regs): New function, analyze regs used by a mem.
12286         (store_ops_ok): Use dataflow analyzer results to determine if
12287         necessary regs are changed in the block.
12288         (find_moveable_store): Remove check for symbol ref, we can handle
12289         much more complex expressions now.
12290         (compute_store_table): Remove most of the code, it's unnecessary
12291         now that the dataflow analyzer records the info for us.
12292         (store_killed_after): Add parameter to say whether to do the
12293         store_ops_okay test, used to speed up testing when we already know
12294         the answer, and just want to know if the store itself was killed.
12295         (build_store_vector): Largely rewritten to calculate the various
12296         vectors properly, and somewhat optimized.
12297         (store_motion): Init the df_analyzer, get REG_DEF chains.
12298         Also handle trapping expressions (since mems almost always trap)
12299         (simple_mem): Redefine what a simple mem is.
12300
12301 2001-08-03  DJ Delorie  <dj@redhat.com>
12302
12303         * ifcvt.c (noce_get_alt_condition): Don't make an auxiliary
12304         set from a constant part of the condition.
12305
12306 2001-08-01  Andrew Cagney  <ac131313@redhat.com>
12307
12308         * mkdeps.c (deps_add_default_target): Make local variable
12309         ``start'' a const char pointer.
12310         * dwarf2out.c (compute_section_prefix): Localize use of ``p''.
12311
12312 2001-08-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12313
12314         * doc/install.texi (Configuration): Fix markup.
12315         (Specific, i?86-*-udk): Likewise.
12316         (Specific, alpha*-dec-osf*): Warn against --with-gnu-as,
12317         --with-gnu-ld.
12318         Document --enable-threads and --enable-libgcj status.
12319         (Specific, mips-sgi-irix*): Canonicalize triples.
12320         (Specific, mips-sgi-irix5): Warn about problems with this config.
12321         Mention required GNU as patch.
12322         Native assembler problems are fixed.
12323         (Specific, mips-sgi-irix6): Update O32 ABI support status.
12324         Document --enable-threads and --enable-libgcj status.
12325
12326 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
12327
12328         * Makefile.in, mklibgcc.in: Restore changes with fixed invocation
12329         of mkinstalldirs.
12330
12331 2001-08-03  Richard Henderson  <rth@redhat.com>
12332
12333         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Don't write to
12334         constant data.
12335
12336 2001-08-03  Richard Henderson  <rth@redhat.com>
12337
12338         * rtlanal.c (find_first_parameter_load): Stop if we
12339         reach a CODE_LABEL at BOUNDARY.
12340
12341 2001-08-03  Richard Henderson  <rth@redhat.com>
12342
12343         * config/alpha/alpha.md (force_movdi): New insn.
12344         * config/alpha/alpha.c (alpha_expand_prologue): Use it.
12345         Tweek FRP marking of VMS prologue insns.
12346         * config/alpha/vms.h (EPILOGUE_USES): New.
12347
12348 2001-08-02  Richard Henderson  <rth@redhat.com>
12349
12350         * Makefile.in, mklibgcc.in: Revert mkinstalldirs change.
12351
12352 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
12353
12354         * combine.c, config.gcc, cse.c, defaults.h, real.c, reload.c,
12355         simplify-rtx.c, config/alpha/alpha.h, config/avr/avr.h,
12356         config/convex/convex.h, config/d30v/d30v.c,
12357         config/d30v/d30v.h, config/dsp16xx/dsp16xx.h,
12358         config/elxsi/elxsi.h, config/fr30/fr30.h, config/m88k/m88k.c,
12359         config/mips/mips.h, config/mn10200/mn10200.h,
12360         config/mn10300/mn10300.h, config/pdp11/pdp11.md,
12361         config/v850/v850.h, config/vax/openbsd.h,
12362         config/vax/openbsd1.h, config/vax/ultrix.h,
12363         config/vax/vax-protos.h, config/vax/vax.c, config/vax/vax.h,
12364         config/vax/vax.md, config/vax/vaxv.h, config/vax/xm-vms.h,
12365         cp/decl2.c, doc/contrib.texi, doc/cpp.texi, doc/gcc.texi,
12366         doc/install.texi, doc/invoke.texi, doc/md.texi, doc/rtl.texi,
12367         doc/tm.texi: consistently use "VAX", "VAXen", and "MicroVAX"
12368         in comments and documentation.
12369
12370 2001-08-03  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12371
12372         * line-map.c: New.
12373         * line-map.h: New.
12374         * Makefile.in (line-map.o): New.
12375         (LIBCPP_OBJS, LIBCPP_DEPS): Update.
12376         * c-lex.c (cb_file_change): Update for new cpp_file_change structure.
12377         * cpperror.c (print_containing_files): Similarly.
12378         (print_location): Update.  Don't output a space before _Pragma.
12379         * cppfiles.c (stack_include_file): Set to line 1 immediately.
12380         (stack_include_filee, cpp_make_system_header): Update.
12381         (_cpp_execute_include): Get logical line number right for calling
12382         as-yet-unterminated #include.
12383         * cpphash.h (struct cpp_reader): Add line_maps.
12384         (_cpp_do_file_change): Update.
12385         * cppinit.c (cpp_create_reader): Initialize line maps.
12386         (cpp_destroy): Destroy line maps.
12387         (cpp_start_read): Get logical line number right.
12388         * cpplex.c (parse_string): Only warn once for multi-line strings.
12389         Use boolean variable for null warning.
12390         * cpplib.c (_cpp_handle_directive): End the directive if it isn't
12391         already.
12392         (do_include_common): End the directive early.
12393         (do_line): Don't warn about out-of-range lines in preprocessed
12394         source.  Update.  Remove unused variables.
12395         (_cpp_do_file_change): Update for new line mapping.
12396         (pragma_cb): New typedef.
12397         (cpp_register_pragma): Stop looking ahead before calling the
12398         handler.  Clean up.
12399         (do_pragma_system_header): End directive early.
12400         (cpp_get_line_maps): New.
12401         (cpp_pop_buffer): Fudge logical line.  Update.
12402         * cpplib.h: Include line-map.h
12403         (enum cpp_fc_reason): Remove.
12404         (struct cpp_file_change): Update.
12405         (cpp_get_line_maps): New.
12406         * cppmain.c (struct_printer): New member map.
12407         (cb_file_change): Update for new mappings.
12408         * fix-header.c (cb_file_change): Similarly.
12409
12410 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
12411
12412         * Makefile.in (libgcc.mk): Define mkinstalldirs.
12413         * mklibgcc.in: Use mkinstalldirs instead of mkdir.
12414
12415 2001-08-02  Lars Brinkhoff  <lars@nocrew.org>
12416
12417         * config/vax/vax.c: include expr.h.
12418
12419 2001-08-02  Nick Clifton  <nickc@cambridge.redhat.com>
12420
12421         * Makefile.in ($(srcdir)/configure): Only rebuild in
12422         maintainer mode.
12423         ($(srcdir)/config.in): Only define in maintainer mode.
12424         ($(srcdir)/cstamp-h.in): Only define in maintainer mode.
12425
12426 2001-08-02  David Edelsohn  <edelsohn@gnu.org>
12427
12428         * doc/install.texi (Install GCC: Binaries): Update Bull info.
12429
12430 2001-08-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
12431
12432         * gcc.c (set_collect_gcc_options): New function, split out from
12433         main.
12434         Ignore elided switches.
12435         (do_spec_1): Invoke before executing command.
12436         (set_input): Export.
12437         Move declaration ...
12438         * gcc.h (set_input): ... here.
12439         * config/alpha/osf.h (ASM_FINAL_SPEC): Use %U.s to refer to input
12440         file.
12441
12442 2001-08-02  Nathan Sidwell  <nathan@codesourcery.com>
12443
12444         Kill -fhonor-std.
12445         * doc/c-tree.texi (Namespaces): Remove std & -fhonor-std
12446         interaction.
12447         * doc/invoke.texi (C++ Dialect Options): Remove -fno-honor-std.
12448
12449 2001-08-02  Richard Sandiford  <rsandifo@redhat.com>
12450
12451         * mips.md (movdicc): Make conditional on TARGET_64BIT.  Likewise
12452         for the unnamed instructions it expands to.
12453
12454 2001-08-02  Richard Henderson  <rth@redhat.com>
12455
12456         * regclass.c (call_really_used_regs): Conditionally define.
12457         (init_reg_sets_1): Don't use it if not defined.
12458         (fix_register): Similarly, don't set it.
12459
12460 2001-08-01  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
12461
12462         * params.def (PARAM_MAX_INLINE_INSNS): Change default to 600.
12463         Correct comment that had been missed in the previous change.
12464
12465 2001-08-01  Stan Shebs  <shebs@apple.com>
12466
12467         * config/darwin.c (machopic_stub_name): Try matching by name.
12468         (update_stubs): New function.
12469         (darwin_encode_section_info):  Call it and update_non_lazy_ptrs
12470         unconditionally.
12471
12472 2001-08-01  Richard Henderson  <rth@redhat.com>
12473
12474         * except.c (output_function_exception_table): Use assemble_align.
12475         * varasm.c (assemble_eh_label): Remove.
12476         (assemble_eh_align, assemble_eh_integer): Remove.
12477
12478 2001-08-01  Robert Lipe  <robertl@caldera.com>
12479
12480         * dwarfout.c: Remove reference to README.DWARF.
12481
12482 2001-08-01  Andrew MacLeod  <amacleod@redhat.com>
12483
12484         * regclass.c (call_really_used_regs): New array for registers which
12485         are actually used by a call.
12486         (init_reg_sets_1): Initialize regs_invalidated_by_call with the
12487         new array.
12488         (fix_register): Set call_really_used too.
12489         * config/ia64/ia64.h (CALL_REALLY_USED_REGISTERS): Initialize.
12490         * doc/tm.texi (CALL_REALLY_USED_REGISTERS): Document.
12491
12492 2001-08-01  Richard Henderson  <rth@redhat.com>
12493
12494         * read-rtl.c (read_name): Consider \r whitespace.
12495
12496 2001-07-11  Andrew Cagney  <ac131313@redhat.com>
12497
12498         * config.gcc: Recognize powerpc-*-netbsd*.
12499
12500         * doc/install.texi (Host/target specific installation notes for
12501         GCC): Mention powerpc-*-netbsd*.
12502
12503         * config/rs6000/netbsd.h: New file.
12504         (STANDARD_STARTFILE_PREFIX, LINK_SHLIB_SPEC): Redefine.
12505         (LIB_DEFAULT_SPEC, STARTFILE_DEFAULT_SPEC): Redefine.
12506         (ENDFILE_DEFAULT_SPEC, LINK_START_DEFAULT_SPEC): Redefine.
12507         (LINK_OS_DEFAULT_SPEC, CPP_OS_DEFAULT_SPEC): Redefine.
12508         (TARGET_VERSION): Redefine.
12509
12510         * config/rs6000/t-ppccomm (MULTILIB_MATCHES_SYSV): Recognize
12511         mcall-netbsd as a match for mcall-sysv.
12512         (EXTRA_MULTILIB_PARTS): Add ncrti$(objext) and ncrtn$(objext).
12513         (ncrti.S, ncrtn.S): New targets.
12514         ($(T)ncrti$(objext), $(T)ncrtn$(objext)): New targets.
12515
12516         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Recognize
12517         "netbsd' as a V4 ABI.
12518         (ASM_SPEC): Check for -mcall-netbsd.
12519         (CC1_SPEC, CC1_SPEC, LINK_START_SPEC, LINK_OS_SPEC): Ditto.
12520         (CPP_ENDIAN_SPEC, CPP_SPEC, STARTFILE_SPEC): Ditto.
12521         (LIB_SPEC, ENDFILE_SPEC): Ditto.
12522         (LIB_NETBSD_SPEC, STARTFILE_NETBSD_SPEC): Define.
12523         (ENDFILE_NETBSD_SPEC, LINK_START_NETBSD_SPEC): Define.
12524         (LINK_OS_NETBSD_SPEC, CPP_OS_NETBSD_SPEC): Define.
12525         (SUBTARGET_EXTRA_SPECS): Add NetBSD specs.
12526
12527         * doc/invoke.texi (Option Summary): Add -mcall-netbsd.
12528         (RS/6000 and PowerPC Options): Mention -mcall-netbsd.
12529
12530 2001-08-01  Mark Kettenis  <kettenis@gnu.org>
12531
12532         * unwind-pe.h (base_of_encoded_value, read_encoded_value): Define
12533         only if NO_BASE_OF_ENCODED_VALUE isn't defined.
12534         * unwind-dw2-fde.c (NO_BASE_OF_ENCODED_VALUE): Define before
12535         including "unwind-pe.h".
12536
12537 Wed Aug  1 20:01:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
12538
12539         * rs6000.md (define_splits): Kill unused constraints.
12540
12541 Wed Aug  1 20:02:12 CEST 2001 Graham Stott  <grahams@redhat.com>
12542                               Jan Hubicka  <jh@suse.cz>
12543
12544         * function.c (thread_prologue_and_epilogue_insns): Kill code
12545         dealing with non-existent CFG.
12546
12547 2001-08-01  Kazu Hirata  <kazu@hxi.com>
12548
12549         * alias.c: Fix comment formatting.
12550         * bitmap.c: Likewise.
12551         * builtins.c: Likewise.
12552         * calls.c: Likewise.
12553         * c-common.c: Likewise.
12554         * c-decl.c: Likewise.
12555         * c-dump.c: Likewise.
12556         * c-lex.c: Likewise.
12557         * collect2.c: Likewise.
12558         * combine.c: Likewise.
12559         * conflict.c: Likewise.
12560         * cppfiles.c: Likewise.
12561         * cppinit.c: Likewise.
12562         * cpplex.c: Likewise.
12563         * cpplib.c: Likewise.
12564         * cppmacro.c: Likewise.
12565         * cppspec.c: Likewise.
12566         * c-pragma.c: Likewise.
12567         * crtstuff.c: Likewise.
12568         * cse.c: Likewise.
12569         * cselib.c: Likewise.
12570         * c-semantics.c: Likewise.
12571         * c-typeck.c: Likewise.
12572
12573 2001-08-01  H.J. Lu <hjl@gnu.org>
12574
12575         * config/mips/linux.h (ASM_OUTPUT_IDENT): Defined.
12576
12577 2001-08-01  H.J. Lu <hjl@gnu.org>
12578
12579         * gcc/config/mips/linux.h (ASM_OUTPUT_SOURCE_LINE): Defined.
12580
12581 2001-08-01  Ziemowit Laski  <zlaski@apple.com>
12582
12583         * c-parse.in (OBJC_NEED_RAW_IDENTIFIER): Define macro and flag for
12584         contextualizing Objective-C class name lookup by the lexer.
12585         (typespec_reserved_nonattr): Disable ObjC class name lookup after
12586         seeing a TYPESPEC.
12587         (protocoldef): Add support for forward @protocol declarations.
12588         (yylexname): Suppress ObjC class name lookup in certain contexts;
12589         re-enable after lookup is complete.
12590         (_yylex): Re-enable ObjC class name lookup when certain
12591         punctuation marks are seen.
12592
12593         * objc/objc-act.c (check_protocol_recursively): New function used
12594         for finding circular dependencies in protocols.
12595         (objc_declare_protocols): New function for handling forward
12596         @protocol declarations.
12597         (receiver_is_class_object): Detect the case when 'self' is used
12598         inside of a class method.
12599         (build_message_expr): Issue a warning if class method is desired
12600         but instance method is found instead.
12601         (conforms_to_protocol): Streamline.
12602         (objc_comptypes): Detect the fact that 'Bar<Foo> foo' conforms to
12603         protocol Foo, even if 'Bar foo' does not.
12604         (check_protocols): Streamline.
12605         (start_protocol): Add checks for circular and duplicate protocol
12606         definitions.
12607         (encode_aggregate_within): For typedefs of structs, encode the
12608         underlying struct.
12609         * objc/objc-act.h (PROTOCOL_DEFINED): New tree accessor.
12610         (objc_declare_protocols): New prototype.
12611
12612 2001-08-01  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12613
12614         * cpphash.h (struct cpp_reader): New members line, pseudo_newlines.
12615         * cpplex.c (handle_newline): Update prototype.  Maintain logical
12616         line number.
12617         (skip_escaped_newlines, skip_block_comment, parse_string):
12618         Update accordingly.
12619         (_cpp_lex_token): Update, and store token position within the token.
12620         * cpplib.h (struct cpp_token): Add line and column entries.
12621         * cppmacro.c (replace_args): Position stringified tokens correctly.
12622
12623 2001-08-01  Andreas Jaeger  <aj@suse.de>
12624
12625         * basic-block.h: Add prototype for last_loop_beg_note.
12626
12627 2001-07-31  Alexandre Petit-Bianco  <apbianco@redhat.com>
12628
12629         * expr.c (safe_from_p): Use WITH_CLEANUP_EXPR_RTL instead of
12630         RTL_EXPR_RTL while handling WITH_CLEANUP_EXPR nodes. Fixed typo in
12631         comment.
12632         (expand_expr): Use WITH_CLEANUP_EXPR_RTL instead of RTL_EXPR_RTL
12633         while handling WITH_CLEANUP_EXPR node. Use second operand calling
12634         expand_decl_cleanup.
12635         * tree.c (firt_rtl_op): The third operand of WITH_CLEANUP_EXPR is
12636         the first RTX.
12637         (simple_cst_equal): WITH_CLEANUP_EXPR node to use its second
12638         operand while calling simple_cst_equal.
12639         * tree.def (WITH_CLEANUP_EXPR): Switched operands: the second
12640         operand is the cleanup expression, the third is the RTL_EXPR.
12641         * tree.h (WITH_CLEANUP_EXPR_RTL): New macro.
12642
12643 2001-07-31  Jeff Sturm  <jsturm@one-point.com>
12644
12645         * except.c (duplicate_eh_regions): Test n_array[i] for NULL.
12646
12647 2001-07-31  matthew green  <mrg@eterna.com.au>
12648
12649         * config.gcc (i386-*-netbsdelf): New description.
12650         * config/i386/netbsd-elf.h: New file.
12651
12652 2001-07-30  Geoffrey Keating  <geoffk@redhat.com>
12653
12654         * loop.c (check_dbra_loop): Use single_set to compute
12655         jump_label.
12656
12657 2001-07-31  Daniel Berlin  <dan@cgsoftware.com>
12658
12659         PowerPC reorg and support for powerpc64-*-linux*.
12660
12661         Also fixes emitting of constants on 32 bit and 64 bit
12662         platforms.
12663
12664         * config.gcc: powerpc64-*-linux* is a new target.
12665         Things that needed aix.h now also include xcoff.h
12666
12667         * config/rs6000/rs6000.h: Split XCOFF specific stuff into
12668         xcoff.h.
12669         Move AIX specific stuff into aix.h.
12670         (TARGET_AIX): Renamed to TARGET_XCOFF, since the AIX ABI is used
12671         with more than just XCOFF now.
12672         (SET_ASM_OP): Remove, now defined where needed.
12673         (FUNCTION_PROLOGUE): New macro definition.
12674         (FUNCTION_EPILOGUE): New macro definition.
12675         (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): New macro definition.
12676
12677         * config/rs6000/xcoff.h: New file.
12678
12679         * config/rs6000/linux64.h: New file.
12680
12681         * config/rs6000/darwin.h: Copy needed AIX alignment definitions.
12682
12683 2001-07-31  Alan Modra  <amodra@bigpond.net.au>
12684
12685         * rs6000.c (print_operand_address): Handle ELF syntax.
12686         (output_toc): Simplify.  Use DOUBLE_INT_ASM_OP.
12687         * rs6000.md (load_toc_aix_di): Handle ELF syntax.
12688         * rs6000.h (ASM_OUTPUT_DOUBLE_INT, ASM_LONG): Use DOUBLE_INT_ASM_OP.
12689
12690 2001-07-31  David Edelsohn  <edelsohn@gnu.org>
12691
12692         * rs6000.c (rs6000_override_options): Only disable
12693         flag_function_sections for XCOFF.
12694         (exact_log2_cint_operand): New predicate.
12695         (reg_or_{add,sub}_cint64_operand): New predicates.
12696         (add_operand): Compare CONST_INT with fewer function calls.
12697         (rs6000_emit_set_const, rs6000_emit_set_long_const): New functions.
12698         (print_operand, case 'p'): Ensure positive operand.
12699         (rs6000_emit_load_toc_table): No load_toc_v4_pic_di.
12700         * rs6000.h (CONST_OK_FOR_LETTER_P, case 'N'): Ensure positive value.
12701         (PREDICATE_CODES): Add new predicates.
12702         * rs6000.md (addsi3): Split 32-bit constants more correctly.
12703         (divsi3, modsi3): Ensure positive power-of-2.
12704         (adddi3): Use new predicate.  Split 32-bit constants more
12705         correctly.  Re-arrange splitter to handle any constant.
12706         (subdi3): Use new predicate.
12707         (divdi3, moddi3): Ensure positive power-of-2.
12708         (movdi): Use rs6000_emit_set_const.
12709         (load_toc_v4_pic_di): Delete.
12710
12711 2001-07-31  Graham Stott <grahams@redhat.com>
12712
12713         * function.c (pad_below): Revert 2001-07-26 patch.
12714
12715 Tue Jul 31 15:37:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
12716
12717         * reg-stack (convert_regs_1): Fix best edge condition.
12718
12719 Tue Jul 31 15:33:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
12720
12721         * jump.c (duplicate_loop_exit_test): Better test for jumps
12722         entering the loop; create loop pre_header.
12723
12724 2001-07-31 Hartmut Penner <hpenner@de.ibm.com>
12725
12726         * doc/install.texi: Add s390 and s390x as new targets.
12727         * doc/invoke.texi: Add documentation of S/390 and zSeries
12728         target options.
12729         * doc/md.texi: Add documentation of S/390 and zSeries constraints.
12730
12731 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
12732
12733         * config/m68k/m68k.md: Replace all general_operand with
12734         nonimmediate_operand for all destinations.
12735         * config/m68k/m68k.c (not_sp_operand): Likewise.
12736
12737 Mon Jul 30 23:20:34 EDT 2001  John Wehle  (john@feith.com)
12738
12739         * flow.c (merge_blocks): Return 1 if an extra jump is inserted.
12740
12741 2001-07-30  Richard Henderson  <rth@redhat.com>
12742
12743         * config/ia64/ia64.h (DEBUG_RANGES_SECTION): New.
12744         * config/mips/iris6.h (DEBUG_RANGES_SECTION): New.
12745
12746 2001-07-30  Roman Zippel  <zippel@linux-m68k.org>
12747
12748         * config/m68k/m68k.h (TARGET_SWITCHES/TARGET_OPTIONS):
12749         Add missing doc strings
12750         * config/m68k/linux-aout.h (SUBTARGET_SWITCHES): Likewise
12751         * config/m68k/linux.h (SUBTARGET_SWITCHES): Likewise
12752
12753 Mon Jul 30 22:16:08 CEST 2001  Jan Hubicka  <jh@suse.cz>
12754
12755         * i386.c (ix86_output_main_function_alignment_hack): New function.
12756         (TARGET_ASM_FUNCTION_PROLOGUE): Default to it.
12757
12758         * flow.c (mark_dfs_back_edges): Move from loop_p ; mark back
12759         edges by EDGE_DFS_BACK flag.
12760         (dump_edge_info): Add dfs_back flag.
12761         * basic-block.h (EDGE_DFS_BACK): New constant.
12762         (mark_dfs_back_edges): Declare.
12763         * alias.c (loop_p): Remove.
12764         (mark_constant_function): Use mark_dfs_back_edges.
12765
12766         * reg-stack.c (block_info_def): Add predecessors counter and stack_out.
12767         (reg_to_stack): Call mark_dfs_back_edges; count the predecessors.
12768         (compensate_edge): Break out from ...
12769         (convert_regs_1): ... here; do smart choosing of stack_out to copy.
12770         (convert_regs_2): Set block_done once block is really done;
12771         Do updating of the predecessors counts.
12772
12773         * toplev.c (rest_of_compilation): Recompute block_for_insn
12774         before post-reload cfg_cleanup.
12775         * function.c (thread_prologue_epilogue_insns):
12776         Call set_block_for_new_insns when emitting prologue directly.
12777
12778 2001-07-30  Andreas Jaeger  <aj@suse.de>
12779
12780         * jump.c: Add prototype for mark_modified_reg.
12781
12782         * cse.c (set_live_p): Add unused attribute.
12783
12784         * gcov.c (calculate_branch_probs): Use gcov_type to avoid
12785         overflow.
12786         (scan_for_source_files): Use long for count to avoid overflow.
12787         (output_data): Likewise.
12788         (output_data): Don't use string concatatenation to silence gcc
12789         -traditional.
12790
12791         * predict.c: Fix typos and grammar.
12792
12793         * gcse.c (insert_insn_end_bb): Remove unused variables.
12794
12795 Mon Jul 30 21:54:53 CEST 2001  Jan Hubicka  <jh@suse.cz>
12796
12797         * flow.c (mark_set_1): Use REG_FREQ_FROM_BB.
12798         (attempt_auto_inc): LIkewise.
12799         (mark_used_reg): Likewise.
12800         (try_pre_increment_1): Likewise.
12801         * regclass.c (regclass): Likewise.
12802         * global.c (allocno_compare): Update comment; change scaling factor.
12803         * local-alloc.c (QTY_CMP_PRI): Likewise.
12804         * regs.h (REG_FREQ_FROM_BB): New.
12805         (REG_FREQ_MAX): Likewise.
12806
12807 2001-07-30  H.J. Lu <hjl@gnu.org>
12808
12809         * config/mips/linux.h (CPLUSPLUS_CPP_SPEC): Add
12810         -D_GNU_SOURCE.
12811
12812 2001-07-30  H.J. Lu  (hjl@gnu.org)
12813
12814         * config/mips/linux.h (ASM_DECLARE_FUNCTION_NAME): Defined.
12815         (ASM_DECLARE_FUNCTION_SIZE): Likewise.
12816         (FUNCTION_NAME_ALREADY_DECLARED): Likewise.
12817
12818 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
12819
12820         * config/arm/t-arm-elf (MULTILIB_EXCEPTIONS): Skip -mthumb as well
12821         as -mthumb-interwork when -mcpu=arm7 is specified.
12822
12823 Mon Jul 30 17:44:43 CEST 2001  Jan Hubicka  <jh@suse.cz>
12824
12825         * predict.def (noreturn, loop branch, loop exit): Mark as first
12826         match heuristics.
12827
12828 Mon Jul 30 12:52:11 CEST 2001  Jan Hubicka  <jh@suse.cz>
12829
12830         * combine.c (try_combine): Avoid barrier after noop jumps.
12831
12832 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12833
12834         * cpphash.h (struct cpp_reader): Remove import_warning.
12835         * cpplib.c (skip_rest_of_line): Don't bother turning off
12836         macro expansion.
12837         (parse_include): Move include handling to...
12838         (do_include_common): ... here.  Move import warning from...
12839         (do_import): ... here.
12840         (do_pragma_poison): Don't do a callback for poison identifiers.
12841         * cpplib.h (struct cpp_callbacks): Don't do poison callbacks.
12842         * cppmain.c (setup_callbacks): Similarly.
12843
12844 Sun Jul 29 23:26:50 CEST 2001  Jan Hubicka  <jh@suse.cz>
12845
12846         * rtlanal.c (parms_set, find_first_parameter_load): Break out from...;
12847         handle multiple sets.
12848         * except.c (sjlj_mark_call_sites): .... here.
12849         * gcse.c (insert_insn_end_bb): Use find_first_parameter_load.
12850
12851 Sun Jul 29 21:38:45 CEST 2001  Jan Hubicka  <jh@suse.cz>
12852
12853         Suggested by Richard Henderson and Richard Kenner:
12854         * combine.c (recog_for_combine): Use the fake recog
12855         only if instruction does not match.
12856         * rtl.h (NOOP_MOVE_INSN_CODE): New.
12857         * rtlanal.c (noop_move_p): Always return 1 for NOOP_MOVE_INSN_CODE.
12858
12859         * combine.c (try_combine): Discover noop jump as direct jump.
12860
12861 2001-07-29  Daniel Berlin  <dan@cgsoftware.com>
12862
12863         * df.c (df_rd_global_compute): Add successors to worklist, not
12864         current item.
12865         (df_ru_global_compute): Ditto.
12866
12867 2001-07-27  Daniel Berlin  <dan@cgsoftware.com>
12868
12869         * regclass.c (reg_scan_mark_refs): Increment REG_N_REFS when we
12870         increment REG_N_SETS.
12871
12872 2001-07-26  Daniel Berlin  <dan@cgsoftware.com>
12873
12874         * sbitmap.h: New prototype for sbitmap_a_xor_b.
12875
12876         * sbitmap.c (sbitmap_a_xor_b): New function.
12877         ifdef the basic block stuff on IN_GCC.
12878
12879 2001-07-29  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
12880
12881         * cppexp.c (parse_defined): Always record the macro name.
12882         (lex): Don't worry about identifiers, or special-case
12883         CPP_NOT here.
12884         (_cpp_parse_expr): Figure out at the end of the routine
12885         whether we saw a valid !defined() expression.
12886         * cppfiles.c (stack_include_file): Update for mi_valid.
12887         (_cpp_pop_file_buffer): Similarly.
12888         * cpplex.c (_cpp_lex_token): Similarly.
12889         * cpphash.h (enum mi_state, enum mi_ind, mi_state,
12890         mi_if_not_defined, mi_lexed): Remove.
12891         (mi_valid): New.
12892         * cpplib.c (do_if): Simplify.
12893         (do_endif, push_conditional, _cpp_handle_directive): Update
12894         for renaming of mi_state to mi_valid.
12895 doc:
12896         * cpp.texi: Add index entries for digraphs, and add comment
12897         that C++ refers to them as alternative tokens.
12898
12899 Sun Jul 29 18:59:13 CEST 2001  Jan Hubicka  <jh@suse.cz>
12900
12901         * basic-block.h (CLEANUP_PRE_LOOP): New.
12902         * except.c (finish_eh_generation): Update call of cleanup_cfg.
12903         * sibcall.c (optimize_sibling_calls): Likewise.
12904         * toplev.c (rest_of_compilation): Likewise.
12905         * flow.c (try_forward_edges): Take argument MODE;
12906         do not forward over loop pre-headers if CLEANUP_PRE_LOOP.
12907         (try_optimize_cfg): Update call of try_forward_edges.
12908
12909 Sun Jul 29 18:59:56 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
12910                                 Jan Hubicka  <jh@suse.cz>
12911
12912         * (validate_replace_rtx_1): Fix simplification of MINUS.
12913
12914 2001-07-29  Neil Booth  <neil@daikokuya.demon.co.uk>
12915
12916         PR preprocessor/3669
12917         * cppinit.c (init_dependency_output): Turn off dump requests
12918         if sending dependencies to stdout.
12919
12920 2001-07-28  Richard Henderson  <rth@redhat.com>
12921
12922         * flow.c (life_analysis): Elide PROP_ALLOW_CFG_CHANGES if
12923         not optimizing.
12924
12925 2001-07-28  Golubev I. N.  <gin@mo.msk.ru>
12926
12927         * config/i386/sco5.h (DWARF2_DEBUGGING_INFO): Define.
12928
12929 2001-07-28  Kazu Hirata  <kazu@hxi.com>
12930
12931         * config/h8300/h8300.h (ENCODE_SECTION_INFO): Check to see if DECL
12932         is VAR_DECL first to prevent an ICE.
12933
12934 2001-07-28  Richard Henderson  <rth@redhat.com>
12935
12936         * varasm.c (immed_real_const_1): Don't elide special cases for
12937         nested functions.
12938         (clear_const_double_mem): Clear const_tiny_rtx too.
12939
12940 2001-07-28  Richard Henderson  <rth@redhat.com>
12941
12942         * dwarf2out.c (dw_val_class_offset): New.
12943         (struct dw_ranges_struct, dw_ranges_ref): New.
12944         (ranges_table, ranges_table_allocated): New.
12945         (ranges_table_in_use, RANGES_TABLE_INCREMENT): New.
12946         (add_AT_offset, add_ranges, output_ranges): New.
12947         (print_die, output_die): Handle dw_val_class_offset.
12948         (attr_checksum, size_of_die, value_format): Likewise.
12949         (gen_lexical_block_die): Handle non-contiguous blocks.
12950         (gen_block_die): Likewise.
12951         (dwarf2out_finish): Add a DW_AT_entry_pc to the compilation unit
12952         if needed.  Dump the ranges table.
12953         * final.c (final_start_function): Remove unnecessary notes and
12954         rebuild the block tree before numbering the blocks.
12955         * function.c (reorder_blocks_0): Walk the existing block tree
12956         to unmark all blocks.
12957         (reorder_blocks_1): Create block fragments when duplicate block
12958         notes are seen.
12959         (reorder_fix_fragments): New.
12960         (reorder_blocks): Call it.
12961         * tree.h (BLOCK_FRAGMENT_ORIGIN, BLOCK_FRAGMENT_CHAIN): New.
12962
12963 2001-07-28  Richard Henderson  <rth@redhat.com>
12964
12965         * emit-rtl.c (adjust_address): Make a copy of the memory address.
12966
12967 2001-07-28  Richard Henderson  <rth@redhat.com>
12968
12969         * flow.c (add_to_mem_set_list): New function.
12970         (init_propagate_block_info): Use it.
12971         (mark_set_1): Likewise.
12972         (insn_dead_p): Canonicalize memory address for dead store
12973         comparison.  Allow wider mode stores to kill narrower mode stores.
12974         (invalidate_mems_from_autoinc): Use invalidate_mems_from_set.
12975         (invalidate_mems_from_set): Don't handle MEMs.
12976
12977 2001-07-28  Kazu Hirata  <kazu@hxi.com>
12978
12979         * config/h8300/h8300.h: Fix formatting.
12980
12981 Sat Jul 28 23:35:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
12982
12983         * basic-block.h (EDGE_FREQUENCY): New macro.
12984         * bb-reorder (fixup_reorder_chain): Set counts and frequencies
12985         for new BB/edges.
12986         * flow.c (find_sub_basic_blocks): Likewise.
12987         (try_crossjump_to_edge): Likewise; use EDGE_FREQUENCY
12988         (redirect_edge_and_branch): Use EDGE_FREQUENCY.
12989
12990         * predict.c (DEF_PREDICTOR): New argument FLAGS.
12991         (HITRATE): New macro.
12992         (PRED_FLAG_FIRST_MATCH): New constant.
12993         (predictor_info): New field flgags.
12994         (combine_predictions_for_insn): Use DS theory to combine
12995         probabilities; set the edge probabilities when finished.
12996         (estimate_probability): Avoid duplicated matches
12997         of LOOP_BRANCH heuristics for nested loops; update comment.
12998         * predict.def: Add flags for each prediction, set probabilities
12999         according to B&L paper.
13000         * predict.h (DEF_PREDICTOR): New argument FLAGS.
13001
13002         * profile.c (compute_branch_probabilities):  Cleanup way the edge
13003         probabilities are computed and REG_BR_PROB notes are dropped; if
13004         values does not match, emit error.
13005         (init_branch_prob): Do error instead of warning when profile driven
13006         feedback is missing or corrupt.
13007
13008 2001-07-27  DJ Delorie  <dj@redhat.com>
13009
13010         * ifcvt.c (noce_get_alt_condition): If the condition is a compare
13011         against a constant, try to adjust the compare to have the desired
13012         constant in it so that min/max optimizations happen more often.
13013
13014 Fri Jul 27 17:53:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
13015
13016         * flow.c (last_loop_beg_note): New function.
13017         (redirect_edge_and_branch): Use it.
13018         (split_edge): Likewise.
13019
13020         * alias.c (loop_p): Avoid uninitialized memory access.
13021
13022         * flow.c (try_forward_edges): Avoid accessing freed memory.
13023
13024         * flow.c (backward_edge_of_syntactic_loop_p): Avoid uninitialized
13025         variable access.
13026
13027 2001-07-26  Andrew Haley  <aph@redhat.com>
13028         Joern Rennecke <amylaar@redhat.com>
13029
13030         * config/sh/linux.h (CPP_DEFAULT_CPU_SPEC): New.
13031         (SUBTARGET_CPP_ENDIAN_SPEC): New.
13032         (SUBTARGET_CPP_SPEC): New.
13033         (CPP_SPEC): Remove.
13034         * config/sh/sh.h (SUBTARGET_CPP_ENDIAN_SPEC): New.
13035         (SUBTARGET_CPP_PTR_SPEC): New.
13036         (CPP_DEFAULT_CPU_SPEC): New.
13037         (EXTRA_SPECS): Add SUBTARGET_CPP_ENDIAN_SPEC,
13038         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
13039         (CPP_SPEC): Break out parts into SUBTARGET_CPP_ENDIAN_SPEC,
13040         SUBTARGET_CPP_PTR_SPEC, and CPP_DEFAULT_CPU_SPEC.
13041         (SUBTARGET_CPP_SPEC): Define as an empty string.
13042
13043 2001-07-27  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
13044
13045         * doc/install.texi (Configuration): Properly link the host
13046         specific instructions also when generating HTML.
13047
13048 Fri Jul 27 00:33:35 EDT 2001  John Wehle  (john@feith.com)
13049
13050         * flow.c (redirect_edge_and_branch_force): Test
13051         target->global_live_at_start.
13052
13053 2001-07-26  Richard Henderson  <rth@redhat.com>
13054
13055         * simplify-rtx.c (avoid_constant_pool_reference): Export.
13056         * rtl.h (avoid_constant_pool_reference): Declare it.
13057         * dwarf2out.c (add_location_or_const_value_attribute): Use it.
13058         (add_const_value_attribute): Use add_AT_unsigned for unsigned values.
13059
13060 Thu Jul 26 22:30:22 CEST 2001  Jan Hubicka  <jh@suse.cz>
13061
13062         * rtl.h (cleanup_barriers): Declare.
13063         * jump.c (cleanup_barriers): New function.
13064         * toplev.c (rest_of_compilation): Call cleanup_barriers
13065         before loop optimizer and after bb_reorder.
13066
13067         * flow.c (back_edge_of_syntactic_loop_p): New.
13068         (split_edge): Use it.
13069
13070 2001-07-26  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13071
13072         * glimits.h (_MACH_MACHLIMITS_H_): Delete.
13073
13074 Thu Jul 26 22:22:21 2001  Denis Chertykov  <denisc@overta.ru>
13075
13076         * cse.c (cse_process_notes): Replace any registers if the address
13077         remains valid.
13078
13079 Thu Jul 26 14:04:03 EDT 2001  John Wehle  (john@feith.com)
13080
13081         * basic-block.h (PROP_ALLOW_CFG_CHANGES): Define.
13082         (PROP_FINAL): Include PROP_ALLOW_CFG_CHANGES.
13083         (propagate_block): Update prototype.
13084         * flow.c (update_life_info): Simplify the CFG and
13085         recalculate the global regs which are alive when
13086         removing dead code during a global update.
13087         (propagate_block): Return non-zero if an INSN is
13088         deleted.
13089
13090 2001-07-26  Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
13091
13092         * Makefile.in (LIBICONV): Define.
13093
13094 2001-07-26  Catherine Moore  <clm@redhat.com>
13095
13096         * config/v850/v850.h (ENCODE_SECTION_INFO):  Change order
13097         of conditional to avoid tree checking errors.
13098
13099 2001-07-26  Kazu Hirata  <kazu@hxi.com>
13100
13101         * regmove.c (regmove_optimize): Don't replace a reg with
13102         another reg of a different mode.
13103
13104 2001-07-26  Andrew MacLeod  <amacleod@redhat.com>
13105
13106         * params.def (PARAM_MAX_PENDING_LIST_LENGTH): Add parameter to
13107         limit length of dependency flush list.
13108         * params.h (MAX_PENDING_LIST_LENGTH): Define.
13109         * sched-int.h  (struct deps): Add pending_flush_length field.
13110         * sched-deps.c (flush_pending_lists): Last_pending_memory_flush now
13111         has 1 element in it.
13112         (sched_analyze_1): Use MAX_PENDING_LIST_LENGTH.
13113         (sched_analyze): After a jump, if the pending memory flush list is too
13114         large, flush the pending lists.
13115         (init_deps): Initialize pending_flush_length to 0.
13116         * doc/invoke.texi (max_pending_list_length): Document parameter.
13117
13118 2001-07-26  Neil Booth  <neil@daikokuya.demon.co.uk>
13119
13120         * toplev.c, varasm.c, final.c: Include xcoffout.h if appropriate.
13121         * dbxout.c (dbxout_global_decl): Move outside #ifdef.
13122         * Makefile.in (varasm.o, final.o, toplev.o): Update dependencies.
13123
13124 2001-07-26  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13125
13126         * cpphash.h (struct_lexer_state): Delete was_skipping.
13127         Move skipping here from struct cpp_reader.
13128         * cpplex.c (parse_identifier): Update.
13129         (_cpp_lex_token): Don't skip tokens in a directive.
13130         * cpplib.c (struct if_stack): Update.
13131         (start_directive, end_directive): Don't change skipping state.
13132         (_cpp_handle_directive): Update.
13133         (do_ifdef, do_ifndef, do_if, do_elif): Similarly.
13134         (do_else, do_endif): Update; only check for excess tokens if not
13135         in a skipped conditional block.
13136         (push_conditional): Update for new struct if_stack.
13137
13138 2001-07-26  Graham Stott  <grahams@redhat.com>
13139
13140         * function.c (locate_and_pad_parm): Also pad initial offset
13141         so that the total argument size also includes the padding.
13142
13143 2001-07-26  Graham Stott <grahams@redhat.com>
13144
13145         * gensupport.c (alter_output_for_insn): Correct enable checking failure
13146         change XSTR to XTMPL.
13147
13148         (process_one_cond_exec): Likewise
13149
13150 2001-07-25  Richard Henderson  <rth@redhat.com>
13151
13152         * varasm.c (assemble_variable): Create DECL_RTL before setting
13153         TREE_ASM_WRITTEN.
13154
13155 Thu Jul 26 00:19:30 CEST 2001  Jan Hubicka  <jh@suse.cz>
13156
13157         * predict.c (estimate_probability): Avoid duplicated predictions.
13158
13159         * loop.c (find_and_verify_loops): Grok multiple barriers.
13160
13161 Wed Jul 25 18:00:05 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
13162
13163         * config/alpha/alpha.c (print_operand, case '/'): Don't write '/'.
13164
13165         * dbxout.c: Consistently use putc instead of fputc.
13166         (print_wide_int): New function; call instead of direct fprintf.
13167         (dbxout_type_index): Adjust calls of CHARS to be more accurate.
13168         (dbxout_type_fields, dbxout_type_method_1): Likewise.
13169         (dbxout_type_methods, dbxout_range_type, dbxout_type): Likewise.
13170         (print_int_cst_octal): Likewise.
13171         (print_octal): Show we wrote characters.
13172         (dbxout_type): Set have_used_extensions in more places.
13173
13174 2001-07-25  Catherine Moore  <clm@redhat.com>
13175
13176         * config/v850/v850.c (v850_va_arg):  Use addr
13177         instead of valist to build incr.
13178
13179 Wed Jul 25 22:48:59 CEST 2001  Jan Hubicka  <jh@suse.cz>
13180
13181         * flow.c (delete_dead_jumptables): New function.
13182         (life_analyzis): Call it.
13183         * bb-reorder.c (skip_insns_after_block): Handle contradictory
13184         sequences.
13185
13186 2001-07-25  Richard Henderson  <rth@redhat.com>
13187
13188         * except.c (reachable_handlers): Handle a region being removed
13189         out from under a RESX.
13190
13191 2001-07-25  Richard Henderson  <rth@redhat.com>
13192
13193         * config/alpha/alpha.c (alpha_emit_conditional_move): Always
13194         swap GE/GT if it is an fp comparison.
13195
13196 2001-07-25  Andrew Haley  <aph@cambridge.redhat.com>
13197
13198         * alias.c (rtx_equal_for_memref_p): Allow strings as types in
13199         operands.
13200
13201 Wed Jul 25 08:25:01 2001  Jeffrey A Law  (law@cygnus.com)
13202
13203         * ssa.c (rename_insn_1): Do not wrap an assignment to a
13204         paradoxical SUBREG inside a SEQUENCE.  Fix minor formatting
13205         glitch.
13206
13207         * ssa-ccp.c (visit_expression): Handle CALL_INSNs that can
13208         throw an exception.
13209         (visit_expression): When attempting to simplify an expression,
13210         retrieve any modes for arguments before they are simplified
13211         to constants.
13212
13213 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
13214             Janis Johnson  <janis@us.ibm.com>
13215
13216         * stmt.c (expand_goto): A nonlocal goto can be a call too.
13217         * builtins.c (expand_builtin_longjmp): Reverse label and static chain
13218         pointer parameters to match documented usage of nonlocal_goto.
13219         * config/ia64/ia64.md (nonlocal_goto): Revert label and static chain
13220         parameters to their correct order.
13221         * config/sparc/sparc.md (nonlocal_goto): Revert label and static chain
13222         parameters to their correct order.
13223
13224 2001-07-25  Andrew MacLeod  <amacleod@redhat.com>
13225
13226         * config/ia64/ia64.h (STRIP_NAME_ENCODING): Strip out '*' as well.
13227
13228 2001-07-25  Jan Hubicka  <jh@suse.cz>
13229             Richard Henderson  <rth@redhat.com>
13230
13231         * flow.c (find_sub_basic_blocks): Fix handling of the last BB in
13232         the sequence.
13233         (make_edges): New argument update_p; populate the edge cache if set.
13234         (find_basic_blocks): Update make_edges invocation.
13235
13236 2001-07-24  Joel Sherrill <joel@OARcorp.com>
13237
13238         * config/i960/i960.h (CPP_SPEC): Define _SOFT_FLOAT for -msoft-float.
13239
13240 2001-07-24  Joel Sherrill <joel@OARcorp.com>
13241
13242         * config/sparc/rtems.h (CPP_PREDEFINES): Remove redundant
13243         -Acpu and -Amachine.h.
13244         * config/sparc/rtemself.h (CPP_PREDEFINES): Likewise.
13245         Corrected header to say ELF not a.out.
13246         * config/sparc/sparc.h (CPP_CPU_SPEC): Define _SOFT_FLOAT
13247         when given -msoft-float.
13248
13249 2001-07-24  Joel Sherrill <joel@OARcorp.com>
13250
13251         * config.gcc (arm*-*-rtems*): Include crtinit.o and crtfini.o as
13252         extra multilib parts like arm-elf.
13253         (i960-*-coff*, i960-*-rtems): Should not use collect2.
13254         (m68020-*-elf*, m68k-*-elf*, m68k-*-rtems*): Include crtinit.o and
13255         crtfini.o as extra multilib parts.
13256
13257 2001-07-24  Joel Sherrill <joel@OARcorp.com>
13258
13259         * configure.in: Add rtems as a supported thread model.
13260         * gthr-rtems.h: Add missing entry point __gthread_active_p.
13261         * configure: Rebuilt.
13262
13263 2001-07-24  Lars Brinkhoff  <lars@nocrew.org>
13264
13265         * stor-layout.c (get_mode_alignment): make it work when
13266         BITS_PER_UNIT is not a power of two.
13267         * builtins.c (get_pointer_alignment): Likewise.
13268
13269 2001-07-24  Richard Henderson  <rth@redhat.com>
13270
13271         * simplify-rtx.c (avoid_constant_pool_reference): Coerce
13272         the retrieved constant into the expected mode.
13273
13274 Wed Jul 25 01:41:27 CEST 2001  Jan Hubicka  <jh@suse.cz>
13275
13276         * flow.c (try_simplify_condjump): Avoid duplicated edges.
13277         (verify_flow_info): Check for duplicated edges; clarify
13278         error reporting.
13279
13280         * flow.c (block_label): Update basic_block_for_insn.
13281         (commit_edge_insertions): Call compute_bb_for_insn.
13282
13283         * flow.c (purge_dead_edges): Handle conditional jumps and conditional
13284         returns too.
13285
13286         * flow.c (redirect_edge_and_branch,
13287         try_optimize_cfg): Use redirect_edge_succ_nodup
13288         (redirect_edge_succ_nodup): New.
13289         * basic_block.h (redirect_edge_succ_nodup): Declare.
13290
13291         * toplev.c (rest_of_compilation): Rebuild CFG before cfg_cleanup
13292         after gcse.
13293
13294 Wed Jul 25 00:32:49 CEST 2001  Jan Hubicka  <jh@suse.cz>
13295
13296         * flow.c (try_forward_edges): Accept fallthru edge; Update comment.
13297         (try_crossjump_to_edge): Update commetns.
13298         (try_crossjump_bb): Likewise.
13299
13300 2001-07-24  Richard Henderson  <rth@redhat.com>
13301
13302         * combine.c (distribute_notes): Move set of need_refresh
13303         for noop_move_p down to catch all cases.
13304
13305 Tue Jul 24 20:32:44 CEST 2001  Jan Hubicka  <jh@suse.cz>
13306
13307         * recog.c (split_all_insns_noflow): New.
13308         * rtl.h (split_all_insns_noflow): Declare.
13309         * ia64.c (ia64_reorg): Use split_all_insns_noflow.
13310         * m68hc11.c (m68hc11_reorg): Likewise.
13311         * sh.c (machine_dependent_reorg): Likewise.
13312         * toplev.c (rest_of_compilation): Likewise for last split_all_insns
13313         call.
13314
13315 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
13316
13317         * config/sh/sh.md (ashlsi3_std splitter): Split only after reload.
13318         (ashlsi3_n splitter): Likewise.
13319         (lshrsi3_n splitter): Likewise.
13320
13321         (GOTaddr2picreg): Make const SImode.
13322         (sym_label2reg): Likewise.
13323         (symGOT2reg): Likewise.
13324         (symGOTOFF2reg) Likewise.
13325
13326         (casesi_worker_0): Make unspec SImode.
13327
13328 2001-07-18  Andrew Haley  <aph@cambridge.redhat.com>
13329
13330         * config/sh/sh.c (barrier_align): Check that an operand really is
13331         an insn before extracting its INSN_CODE.
13332
13333 2001-07-24  Andrew Haley  <aph@cambridge.redhat.com>
13334
13335         * config/sh/sh.h (OVERRIDE_OPTIONS): Add braces to get rid of
13336         dangling else.
13337
13338         * config/sh/sh.h (INITIALIZE_TRAMPOLINE): Truncate operands
13339         for SImode to prevent overflow.
13340
13341 2001-07-24  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13342
13343         * config/mips/irix6-libc-compat.c: New file.
13344         * config/mips/t-iris6 (LIB2FUNCS_STATIC_EXTRA): Use it.
13345         * doc/install.texi (Specific, mips*-sgi-irix6): Mention structure
13346         passing workaround.
13347
13348 2001-07-24  lars brinkhoff  <lars@nocrew.org>
13349
13350         * rtl.texi (REG_POINTER): Document.
13351         (Machine Modes): Document BImode, OImode, PQImode, PHImode,
13352         QFmode, HFmode, TQFmode, QCmode, and HCmode.
13353
13354 Tue Jul 24 10:49:40 CEST 2001  Jan Hubicka  <jh@suse.cz>
13355
13356         * flow.c (delete_noop_moves): Do not confuse libcall regions.
13357
13358 2001-07-23  Richard Henderson  <rth@redhat.com>
13359
13360         * flow.c (try_simplify_condjump): Use tidy_fallthru_edge.
13361
13362 2001-07-23  Kazu Hirata  <kazu@hxi.com>
13363
13364         * config/h8300/h8300-protos.h: Add a prototype for
13365         general_operand_dst_push.
13366         * config/h8300/h8300.c (general_operand_dst_push): New.
13367         * config/h8300/h8300.h (OK_FOR_T): New.
13368         (EXTRA_CONSTRAINT): Use it.
13369         * config/h8300/h8300.md (movqi_push): Remove and integrate into
13370         the existing movqi pattern.
13371         (movhi_push): Likewise.
13372
13373         * reload.c: Fix comment typos.
13374
13375 Mon Jul 23 23:34:07 CEST 2001  Jan Hubicka  <jh@suse.cz>
13376
13377         * gcse.c (cprop_insn): Update call of cprop_cc0_jump.
13378
13379 2001-07-23  H.J. Lu  (hjl@gnu.org)
13380
13381         * doc/extend.texi: Update __builtin_return_address and
13382         __builtin_frame_address.
13383
13384 2001-07-23  Richard Henderson  <rth@redhat.com>
13385
13386         * config/i386/i386.c (ix86_expand_setcc): Don't use method 0
13387         before CSE.
13388         * config/i386/i386.md: New setcc+movzbl peephole2.
13389
13390 2001-07-23  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13391
13392         * objc/Make-lang.in (objc-act.o): Depend on debug.h.
13393         * objc/objc-act.c: Include debug.h.
13394         (synth_module_prologue): Save and restore debug hooks too.
13395
13396 2001-07-23  lars brinkhoff  <lars@nocrew.org>
13397
13398         * tm.texi (TARGET_FLOAT_FORMAT): Document IBM_FLOAT_FORMAT
13399         and C4X_FLOAT_FORMAT.
13400         (BOOL_TYPE_SIZE): Document.
13401
13402 Mon Jul 23 11:54:23 2001  Clinton Popetz  <cpopetz@cpopetz.com>
13403
13404         * unroll.c (loop_iterations): Fix miscalculation of initial
13405         giv offset.
13406
13407 2001-07-13  Andrew Haley  <aph@redhat.com>
13408
13409         * doc/tm.texi (MD_CAN_REDIRECT_BRANCH): New macro.
13410         * config/sh/sh.h (MD_CAN_REDIRECT_BRANCH): New macro.
13411         * config/sh/sh.c (sh_can_redirect_branch): New function.
13412         * config/sh/sh-protos.h (sh_can_redirect_branch): Declare.
13413         * reorg.c (steal_delay_list_from_target): Use
13414         MD_CAN_REDIRECT_BRANCH to see if redirection is possible.
13415
13416 Mon Jul 23 17:20:18 CEST 2001  Jan Hubicka  <jh@suse.cz>
13417
13418         * flow.c (try_simplify_condjump): Unlink insn chain on
13419         fallthru edge; use can_fallthru.
13420
13421 Mon Jul 23 16:03:19 CEST 2001  Jan Hubicka  <jh@suse.cz>
13422
13423         * basic-block.h (find_sub_basic_block): Declare.
13424         * flow.c (make_edges): New arguments MIN and MAX;
13425         (find_sub_basic_blocks): Revamp to use make_edges
13426         and purge_dead_edges.
13427         (find_basic_blocks): Update call of find_sub_basic_block.
13428
13429         * recog.c (split_all_insns): Always expect CFG to be consistent;
13430         call find_sub_basic_blocks in case something has changed.
13431         * toplev.c (rest_of_compilation): Always call split_all_insns once CFG
13432         has been built.
13433
13434         * basic-block.h (delete_noop_moves): Declare.
13435         * combine.c (combine_instructions): Call it.
13436         (recog_for_combine): Tolerate noop moves
13437         (distribute_notes): Force refresh when register dies at noop move.
13438         * flow.c (delete_noop_moves): Use BB structure; delete JUMP insns
13439         too.
13440         (life_analysis): Update delete_noop_moves call.
13441         (set_noop_p): Move too ...
13442         * rtlanal.c (noop_move_p): ... here.
13443         * rtl.h (noop_move_p): Declare.
13444
13445         * basic-block.h (purge_all_dead_edges, purge_dead_edges): New functions.
13446         * toplev.c (rest_of_compilation): Conditionally call purge_all_dead_edges
13447         after combine.
13448         * gcse.c (cprop_cc0_jump, cprop_insn): New argument "basic_block".
13449         (cprop_jump): Likewise; call purge_dead_edges if substitution succeeded.
13450
13451 2001-07-23  Hans-Peter Nilsson  <hp@bitrange.com>
13452
13453         * reload.c (push_reload): Fix typo in comment.
13454         (find_reloads_address): Ditto.
13455         (reg_overlap_mentioned_for_reload_p): Ditto in head comment.
13456
13457 2001-07-22  Richard Henderson  <rth@redhat.com>
13458
13459         * flow.c: Grammar check and clarify a lot of comments.
13460         (try_simplify_condjump): Rename variables to be clearer.
13461         (try_forward_edges): Skip complex and fallthru edges.
13462         Rearrange tests to avoid duplicate checks.
13463         (flow_find_cross_jump): Likewise.
13464         (outgoing_edges_match): Allow match if neither branch has
13465         probability data.  Loosen probability match to 5%.
13466         (try_crossjump_to_edge): Hoist repeated indirection into
13467         local variables.
13468         (try_crossjump_bb): Don't check complex edges.  Eliminate
13469         redundant crossjump tests.
13470         (try_optimize_cfg): Fix use of bool.  Reorganize cheaper
13471         checks before more expensive checks.
13472
13473 2001-07-22  Richard Henderson  <rth@redhat.com>
13474
13475         * fold-const.c (fold): Test vs FLOAT_TYPE_P instead of
13476         INTEGRAL_TYPE_P when folding comparisons with operand_equal_p
13477         arguments.
13478
13479 2001-07-22  Richard Henderson  <rth@redhat.com>
13480
13481         * m68k.c (const_uint32_operand): Abort if mode is <= 32 bits.
13482         (const_sint32_operand): Likewise.
13483         * m68k.md (anon mulsi pattern): Use const_int_operand not
13484         const_sint32_operand.
13485         (umulsi3_highpart): Zero extend a constant input.
13486         (smulsi3_highpart): Don't bother checking SImode constant.
13487         (const_umulsi3_highpart): Give op3 DImode.
13488         (const_smulsi3_highpart): Likewise.
13489
13490 2001-07-22  Richard Henderson  <rth@redhat.com>
13491
13492         * flow.c (split_block): Make sure bb_note is included in the
13493         new block when splitting before a label.
13494
13495 Sun Jul 22 23:28:56 CEST 2001  Jan Hubicka  <jh@suse.cz>
13496
13497         * basic-block.h (redirect_edge_and_branch_force,
13498         redirect_edge_and_branch, block_label, forwarder_block_p): Declare.
13499         * flow.c (redirect_edge_and_branch_force,
13500         redirect_edge_and_branch, block_label, forwarder_block_p): Make global.
13501         (redirect_edge_and_branch_force): Fix copying of lifeness information.
13502         (block_label): Handle EXIT_BLOCK_PTR by returning NULL.
13503         * ifcvt.c (dead_or_predictable): Take BB as an new destination
13504         instead of label; update CFG after transformation.
13505         (find_if_case_1): Update call, use redirect_edge_and_branch_force
13506         for finishing the transformation; handle even case where ELSE
13507         does not follow THEN.
13508         (find_if_case_2): Update call of dead_or_predictable; simplify
13509         CFG update.
13510
13511         * emit-rtl.c (split_branch_probability): New global variable.
13512         (try_split): Take care to set split_branch_probability and
13513         create REG_BR_PROB note for new jump insns.
13514         * md.texi (define_split): Document new feature.
13515
13516         * i386.c (ix86_split_fp_branch): Redistribute branch probability notes.
13517
13518 2001-07-22  Neil Booth  <neil@daikokuya.demon.co.uk>
13519
13520         * varasm.c: Don't inlcude dbxout.h, sdbout.h or xcoffout.h.
13521         (asm_out_file): Remove redundant declaration.
13522         (assemble_asm): Remove old #if 0 block.
13523         (assemble_variable): Remove end of function; debug output is
13524         now handled with global_decl.  Remove old #if 0 block.  Update.
13525         Remove saved_in_section and associated no-op code.
13526         * Makefile.in (varasm.o): Correct dependencies.
13527
13528 Sun Jul 22 17:55:11 2001  Alexandre Oliva  <aoliva@redhat.com>
13529
13530         * config/i386/freebsd-aout.h (ASM_PREFERRED_EH_DATA_FORMAT): Use
13531         the definition in defaults.h.
13532
13533 Sun Jul 22 21:31:04 CEST 2001  Jan Hubicka  <jh@suse.cz>
13534
13535         * jump.c: Update comments.
13536         (delete_barrier_successors, delete_unreferenced_labels,
13537         delete_noop_moves, tension_vector_labels, delete_from_jump_chain,
13538         delete_labelref_insn, redirect_tablejump, jump_optimize_1,
13539         jump_optimize, jump_optimize_minimal): Kill.
13540         (rebuild_jump_labels): Move code from jump_optimize_1.
13541         (purge_line_number_notes): Likewise.
13542         (copy_loop_headers): Likewise.
13543         * reg-stack.c: Update comment.
13544         * stmt.c: Likewise.
13545         * rtl.h (jump_optimize, jump_optimize_1, JUMP_NOOP_MOVES,
13546         JUMP_AFTER_REGSCAN): Kill.
13547         * toplev.c (rest_of_compilation): Use cleanup_cfg, call
13548         purge_line_number_notes and copy_loop_headers.
13549
13550 2001-07-22 Neil Booth  <neil@daikokuya.demon.co.uk>
13551            Richard Henderson  <rth@redhat.com>
13552
13553         * dbxout.c (dbxout_global_decl): New.
13554         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
13555         * sdbout.c (sdbout_finish): New.
13556         (sdbout_debug_hooks): Use it, add comments.
13557         (sdbout_global_decl): Defer initialised public vars to
13558         sdbout_finish.
13559         * varasm.c (assemble_variable): Don't output debug information
13560         for file-scope variables.
13561
13562 2001-07-22  Richard Henderson  <rth@redhat.com>
13563
13564         * config/alpha/alpha.c (get_trap_mode_suffix): New.
13565         (get_round_mode_suffix): New.
13566         (print_operand): Use them for [/].  Remove support for [&'`()+].
13567         * config/alpha/alpha.h (PRINT_OPERAND_PUNCT_VALID_P): Update.
13568         * config/alpha/alpha.md (attr round_suffix): New.
13569         (attr trap_suffix): New.
13570         (all insns): Set them appropriately.  Use %/ instead of the
13571         myriad punctuators.
13572
13573 2001-07-22  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
13574
13575         * dbxout.c, sdbout.c, varasm.c: Revert most recent debug patch.
13576
13577 2001-07-22  Richard Henderson  <rth@redhat.com>
13578
13579         * regrename.c (regrename_optimize): Compute nregs for each
13580         potential target register.
13581
13582 2001-07-21 Neil Booth  <neil@daikokuya.demon.co.uk>
13583            Richard Henderson  <rth@redhat.com>
13584
13585         * dbxout.c (dbxout_global_decl): New.
13586         (xcoff_debug_hooks, dbx_debug_hooks): Use it.
13587         * sdbout.c (sdbout_finish): New.
13588         (sdbout_debug_hooks): Use it, add comments.
13589         (sdbout_global_decl): Defer initialised public vars to
13590         sdbout_finish.
13591         * varasm.c (assemble_variable): Don't output debug information
13592         for file-scope variables.
13593
13594 2001-07-21  H.J. Lu  (hjl@gnu.org)
13595
13596         * config/mips/mips.c (mips_cpu): Moved into ...
13597         (override_options): Here.
13598
13599         * config/mips/mips.h (mips_cpu_attr): Replace mips_cpu with
13600         mips_tune.
13601         (mips_cpu): Removed.
13602
13603 2001-07-21  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13604
13605         * config/m68hc11/m68hc11.md ("andqi3"): Accept d as second operand.
13606         ("iorqi3"): Likewise.
13607         ("xorqi3"): Likewise.
13608         ("*addhi3"): Fix constraint to avoid reloading in a soft register.
13609         ("*subhi3_sp): Likewise.
13610         ("*subhi3"): Likewise.
13611         ("extendhisi2"): Accept D, X and Y as source operand to avoid
13612         reload problems.
13613
13614 2001-07-21  Nathan Sidwell  <nathan@codesourcery.com>
13615
13616         * doc/tm.texi: Remove DEFAULT_VTABLE_THUNKS.
13617         * config/freebsd.h: Likewise.
13618         * config/linux.h: Likewise.
13619         * config/openbsd.h: Likewise.
13620         * config/alpha/linux-elf.h: Likewise.
13621         * config/arm/linux-elf.h: Likewise.
13622         * config/d30v/d30v.h: Likewise.
13623         * config/fr30/fr30.h: Likewise.
13624         * config/ia64/aix.h: Likewise.
13625         * config/ia64/ia64.h: Likewise.
13626         * config/mips/linux.h: Likewise.
13627         * config/pj/pj.h: Likewise.
13628         * config/rs6000/linux.h: Likewise.
13629         * config/sparc/linux.h: Likewise.
13630         * config/sparc/linux64.h: Likewise.
13631
13632 2001-07-20  Bruce Korb  <bkorb@gnu.org>
13633
13634         * fixinc/fixincl.c(test_for_changes): force unsigned char comparisons
13635         because getc() and char* may disagree on signedness.
13636
13637 2001-07-20  Richard Henderson  <rth@redhat.com>
13638
13639         * doc/rtl.texi (REG_DEAD): Update for current semantics.
13640
13641         * flow.c (try_redirect_by_replacing_jump): Correctly compute which
13642         insns to delete in the presence of cc0 in a jump insn.
13643
13644 Fri Jul 20 22:14:49 CEST 2001  Roman Zippel  <zippel@linux-m68k.org>
13645                                 Jan Hubicka  <jh@suse.cz>
13646
13647         * m68k.md (zero_extend?i?i2 expander): Use gen_lowpart instead
13648         of doing the change by hand.
13649
13650 Fri Jul 20 21:59:42 CEST 2001  Jan Hubicka  <jh@suse.cz>
13651
13652         * rtlanal.c (set_noop_p): Return true for noop jumps.
13653
13654         * expr.c (emit_single_push_insn): Add call to push expander.
13655         * expr.h (optab_index): Add OTI_push
13656         (push_optab): New constant.
13657         * genopinit.c (optabs): Add push_optab.
13658         * optabs.c (init_optab): Init push optab.
13659         * md.texi (push??1): Document
13660
13661 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13662
13663         * config/m68hc11/m68hc11.md ("movdi", "movdi_internal"): Use an
13664         expand to emit the pattern; put a REG_INC note for push/pop
13665         instructions.
13666         ("movdf", "movdf_internal"): Likewise.
13667         ("movsi", "movsi_internal"): Likewise.
13668         ("movsf", "movsf_internal"): Likewise.
13669         ("movhi", "movqi"): Emit a REG_INC note for push/pop instructions.
13670
13671 2001-07-20  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
13672
13673         * config/m68hc11/m68hc11.c (m68hc11_gen_highpart): Don't use
13674         gen_highpart.
13675
13676 2001-07-20  Daniel Berlin  <dan@cgsoftware.com>
13677
13678         * params.def: Change default max inline insns to 100.
13679
13680 2001-07-20  Diego Novillo  <dnovillo@redhat.com>
13681
13682         * combine.c (combine_simplify_rtx): Generate a new shift operation
13683         when simplifying the first operand of a (neg (ashift)) expression.
13684
13685 2001-07-20  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
13686
13687         * regclass.c (N_REG_INTS): Use only 32 bits per element.
13688
13689 2001-07-20  Kelley Cook  <kelley.cook@home.com>
13690
13691         * doc/install.texi (sparc-sun-solaris*): Add in 4.x assembler bug
13692         information.   Move rest into ...
13693         (*-*-solaris): ... here.  Eliminate redundant information and
13694         reword necessary packages section.  Delete 4.x assembler bug info.
13695         (sparc-sun-*): Merge into ...
13696         (sparc-sun-sunos*): here.
13697
13698 2001-07-20  Catherine Moore  <clm@redhat.com>
13699
13700         * config/v850/v850.md (casesi): Generate LABEL_REF
13701         with Pmode.
13702
13703 Fri Jul 20 14:12:57 CEST 2001  Jan Hubicka  <jh@suse.cz>
13704
13705         * i386-protos.h (ix86_zero_extend_to_Pmode): Declare.
13706         * i386.c (ix86_zero_extend_to_Pmode): Make global.
13707         * i386.md (strclrsi expander): Use it.
13708
13709 Fri Jul 20 13:24:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13710
13711         * integrate.c (copy_insn_list): handle
13712         NOTE_INSN_DELETED_LABEL, as if it were CODE_LABEL.
13713         (copy_rtx_and_substitute): Likewise; behave to NOTE_INSN_DELETED_LABEL
13714         identically as to CODE_LABEL.
13715
13716         * fold-const (fold): Convert A/B/C to A/(B*C) and
13717         A/(B/C) to (A/B)*C
13718
13719         * except.c (connect_post_landing_pads): Delete the RESX insns.
13720
13721 2001-07-20  Aldy Hernandez  <aldyh@redhat.com>
13722
13723         * config/mips/mips.h (ISA_HAS_NMADD_NMSUB): New macro.
13724
13725         * config/mips/mips.md (nmadd/nmsub): Use macro.
13726
13727 2001-07-20  Nathan Sidwell  <nathan@codesourcery.com>
13728
13729         * cppinit.c (remove_dup_dir): Make static.
13730         (remove_dup_dirs): Make static. Only warn about preempting a
13731         system directory with a non-system directory.
13732
13733 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
13734
13735         * ifcvt.c (noce_try_store_flag_constants): Correct order
13736         of parameters to trunc_int_for_mode.
13737
13738 2001-07-19  Mark Mitchell  <mark@codesourcery.com>
13739
13740         * reorg.c (fill_simple_delay_slots): If an instruction might throw
13741         an exception that will be caught within this function, do not fill
13742         its delay slot with any subsequent instruction.
13743
13744 2001-07-19  Steve Ellcey <sje@cup.hp.com>
13745
13746         * tm.texi (POINTERS_EXTEND_UNSIGNED) Modify definition.
13747         * optabs.c (can_extend_p) Check HAVE_ptr_extend for a specialized
13748         pointer extension instruction.
13749         * combine.c (nonzero_bits,num_sign_bit_copies) Likewise.
13750         * simplify-rtx.c (simplify_unary_operation) Likewise.
13751         * explow.c (convert_memory_address) Check value of
13752         POINTERS_EXTEND_UNSIGNED to avoid some conversions when
13753         less than zero.
13754         * config/ia64/t-hpux (LIBGCC, INSTALL_LIBGCC, MULTILIB_OPTIONS,
13755         MULTILIB_DIRNAMES, MULTILIB_MATCHES) Add multilib support.
13756         * config/ia64/hpux.h (CPP_SPEC, ASM_SPEC, SUBTARGET_SWITCHES)
13757         Add Multilib Support.
13758         (POINTERS_EXTEND_UNSIGNED)  Define for ILP32 support.
13759         * config/ia64/ia64.h (MASK_ILP32, TARGET_ILP32, SUBTARGET_SWITCHES)
13760         Add Multilib Support.
13761         (POINTER_SIZE, LONG_TYPE_SIZE, MAX_LONG_TYPE_SIZE) Modify for ILP32
13762         support.
13763         * config/ia64/ia64.c (rtx_needs_barrier) Add support for addp4.
13764         * config/ia64/ia64.md (ptr_extend) New instruction to "swizzle"
13765         a 32 bit HP-UX pointer into a 64 bit HP-UX pointer.
13766
13767 2001-07-19  Alexandre Oliva  <aoliva@redhat.com>
13768
13769         * simplify-rtx.c (simplify_replace_rtx): Try to obtain mode from
13770         old and new operands in `<', `3' and `b'.
13771
13772 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13773
13774         * Makefile.in (emit-rtl.o, c-decl.o): Depend on debug.h.
13775         (final.o): Don't depend on xcoffout.h, dbxout.h or sdbout.h.
13776         (toplev.o): Don't depend on xcoffout.h.
13777         * c-decl.c: Include debug.h
13778         (duplicate_decls): Use debug hook.
13779         * dbxout.c (dbxout_source_file, dbxout_args): Make static.
13780         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13781         (dbxout_types): Remove.
13782         * dbxout.h (dbxout_source_file, dbxout_types, dbxout_args): Remove.
13783         * debug.c (do_nothing_debug_hooks): Update.
13784         (debug_true_tree, debug_nothing_rtx): New.
13785         * debug.h (struct rtx_def): New.
13786         (struct gcc_debug_hooks): New hooks ignore_block,
13787         outlining_inline_function and label.
13788         (debug_true_tree, debug_nothing_rtx, dwarf2out_frame_init,
13789         dwarf2out_frame_finish): New.
13790         * dwarf2out.c (dwarf2out_ignore_block, dwarf2out_abstract_function):
13791         Make static, update prototype.
13792         (dwarf2_debug_hooks): Update.
13793         * dwarf2out.h (dwarf2out_ignore_block, dwarf2out_abstract_function,
13794         dwarf2out_frame_init, dwarf2out_frame_finish): Remove.
13795         * dwarfout.c (dwarf_debug_hooks): Update.
13796         * emit-rtl.c: Include debug.h.
13797         (remove_unnecessary_notes): Use debug hook.
13798         * final.c: Don't include dbxout.h, xcoffout.h or sdbout.h.
13799         (final_scan_insn): Use debug hook.
13800         * integrate.c (output_inline_function): Use debug hook.
13801         * sdbout.c (sdbout_toplevel_data, sdbout_label): Make static.
13802         (sdb_debug_hooks): Update.
13803         * sdbout.h (sdbout_label, sdbout_toplevel_data): Remove.
13804         * toplev.c: Don't include xcoffout.h.
13805         (note_outlining_of_inline_function, debug_ignore_block): Remove.
13806         * toplev.h (note_outlining_of_inline_function, debug_ignore_block):
13807         Remove.
13808         * tree.h (dwarf2out_do_frame): Remove.
13809
13810 2001-07-19  Catherine Moore  <clm@cygnus.com>
13811
13812         * config/v850/v850.h (ASM_OUTPUT_LABELREF): Restore.
13813
13814 2001-07-19  Geoffrey Keating  <geoffk@redhat.com>
13815
13816         * reload1.c (eliminate_regs_in_insn): When updating a set
13817         to the frame pointer to the hardware frame pointer, perform
13818         the update always not just when REPLACE is set.
13819
13820         * reload1.c (choose_reload_regs): Don't inherit a reload
13821         that crosses multiple registers if registers past the first
13822         don't fit in the desired class.
13823
13824         * ifcvt.c (noce_try_store_flag_constants): Use trunc_int_for_mode
13825         when negating constants.
13826
13827 2001-07-19  Toon Moene  <toon@moene.indiv.nluug.nl>
13828
13829         * tree.def: Document restriction on {L|R}SHIFT_EXPR's second argument.
13830         * doc/tree.texi: Ditto.
13831
13832 2001-07-19  Mark Kettenis  <kettenis@wins.uva.nl>
13833             Jakub Jelinek  <jakub@redhat.com>
13834
13835         * unwind-dw2.c (_Unwind_FrameState): Add eh_ptr.
13836         (extract_cie_info): Handle "eh" augmentation properly,
13837         remember eh_ptr.
13838         (struct frame_state, __frame_state_for): New.
13839
13840 2001-07-19  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13841
13842         * config/alpha/osf.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL,
13843         HANDLE_SYSV_PRAGMA): Define.
13844         * mips-tfile.c (add_ext_symbol): Pass complete symbol ptr, inline
13845         previous args.
13846         (copy_object): Caller changed.
13847
13848 2001-07-19  Andreas Schwab  <schwab@suse.de>
13849
13850         * configure.in (assembler dwarf2 debug_line support): Define nop
13851         insn for m68k.
13852         * configure: Regenerated.
13853
13854 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13855
13856         * Makefile.in (toplev.o, dwarfout.o, final.o): Don't depend on
13857         dwarfout.h.
13858         * dbxout.c (dbxout_function): Rename dbxout_funciton_decl, move
13859         to conditionally compiled block.
13860         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13861         * dbxout.h (dbxout_function): Remove.
13862         * debug.c (do_nothing_debug_hooks): Update.
13863         * debug.h (struct gcc_debug_hooks): New hooks function_decl,
13864         global_decl, deferred_inline_function.
13865         * dwarf2out.c (dwarf2_debug_hooks): Update.
13866         (dwarf2out_global_decl): New.
13867         * dwarfout.c: Don't include dwarfout.h.
13868         (dwarfout_global_decl, dwarfout_function_decl,
13869         dwarfout_deferred_inline_function): New.
13870         (dwarf_debug_hooks): Update.
13871         * dwarfout.h: Remove.
13872         * final.c: Don't include dwarfout.h.
13873         * sdbout.c (sdbout_global_decl): New.
13874         (sdbout_debug_hooks): Update.
13875         * toplev.c: Don't include dwarfout.h.
13876         (check_global_declarations, rest_of_compilation): Use new debug hooks.
13877         (note_deferral_of_defined_inline_function): Remove.
13878         * toplev.h (note_deferral_of_defined_inline_function): Remove.
13879         * ch/Makefile.in (lex.o): No dependence on dwarfout.h.
13880         * ch/lex.c: Don't include dwarfout.h.
13881         * cp/Make-lang.in (decl2.o): No dependence on dwarfout.h, dwarf2out.h.
13882         (semantics.o, optimize.o): Depend on debug.h not dwarfout.h.
13883         * cp/decl2.c: Don't include dwarfout.h and dwarf2out.h.
13884         * cp/optimize.c: Include debug.h.
13885         (maybe_clone_body): Use debug hook.
13886         * cp/semantics.c: Include debug.h.
13887         (expand_body): Use debug hook.
13888         * po/POTFILES.in: Remove dwarfout.h.
13889
13890 2001-07-19  Neil Booth  <neil@daikokuya.demon.co.uk>
13891
13892         * c-lex.c (c_lex): Remove CPP_INT, CPP_FLOAT cases.
13893         * c-parse.in (yyerror, _yylex): Similarly.
13894         * cppexp.c (parse_number, parse_defined, lex, _cpp_parse_expr):
13895         Don't use CPP_INT, CPP_FLOAT; CPP_NUMBER is enough.
13896         Update comments.
13897         * cpplib.h (CPP_INT, CPP_FLOAT): Remove.
13898         * cp/spew.c (read_token, yyerror): Remove CPP_INT, CPP_FLOAT cases.
13899
13900 2001-07-18  Jeff Sturm  <jsturm@one-point.com>
13901
13902         * dwarf2out.c (dwarf2out_abstract_function): Don't emit
13903         in-class declaration at -g1.  Fixes c++/2814.
13904
13905 2001-07-18  Richard Henderson  <rth@redhat.com>
13906
13907         * doc/md.texi (reload_in/out): Document restrictions in predicates
13908         and constraints for these patterns.  Document empty string matching
13909         ALL_REGS.
13910
13911 2001-07-18  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
13912
13913         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Check for ASM_WEAKEN_LABEL.
13914
13915 Wed Jul 18 20:47:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
13916
13917         * cse.c: Undo my previous patch.
13918
13919 2001-07-18  Tom Tromey  <tromey@redhat.com>
13920
13921         For PR java/2812:
13922         * configure: Rebuilt.
13923         * configure.in: Don't check for iconv.h or iconv(); use AM_ICONV
13924         instead.
13925         * aclocal.m4 (AM_ICONV): New macro from Bruno Haible.
13926
13927 Wed Jul 18 18:46:30 CEST 2001  Richard Henderson <rth@cygnus.com>
13928                                 Jan Hubicka  <jh@suse.cz>
13929
13930         * flow.c (redirect_edge_and_branch): Bail out on complex edges.
13931         (try_optimize_cfg): Do not remove tail recursive labels before sibcall.
13932         * jump.c (mark_jump_label): Do not forward branches.
13933
13934 Wed Jul 18 18:35:01 CEST 2001  Jan Hubicka  <jh@suse.cz>
13935
13936         * cse.c (delete_trivially_dead_insns): Delete the libcall block
13937         when return value is unused.
13938
13939 Wed Jul 18 18:28:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
13940
13941         * gcse.c (pre_insert_copy_insn): Call update_ld_motion_stores.
13942
13943 Wed Jul 18 12:05:29 2001  Nicola Pero  <n.pero@mi.flashnet.it>
13944
13945         * gthr-posix.h (__gthread_objc_mutex_trylock): Fixed return value
13946         on error.  We can't blindly return the result of
13947         pthread_mutex_trylock because it returns a positive number on
13948         error, while we must return -1 on error.
13949         (__gthread_objc_mutex_lock, __gthread_objc_mutex_unlock): Similar
13950         fixes.
13951         Reported by Stephen Brandon <stephen@brandonitconsulting.co.uk>.
13952
13953 2001-07-18  Andreas Jaeger  <aj@suse.de>
13954
13955         * integrate.c (output_inline_function): Correct type of debug_hooks.
13956
13957 2001-07-18  Toon Moene  <toon@moene.indiv.nluug.nl>
13958
13959         * combine.c (combine_simplify_rtx): DIV can be treated
13960         associatively for floats if unsafe math optimisations are enabled.
13961
13962 2001-07-17  Richard Henderson  <rth@redhat.com>
13963
13964         * reload.c (push_secondary_reload): Accept empty-string for ALL_REGS.
13965
13966 2001-07-17  Richard Henderson  <rth@redhat.com>
13967
13968         * calls.c (prepare_call_address): New parameter SIBCALLP.  If true,
13969         don't force the function address into a register.
13970         (expand_call, emit_library_call_value_1): Update callers.
13971         * builtins.c (expand_builtin_apply): Likewise.
13972         * expr.h (prepare_call_address): Update decl.
13973
13974 2001-07-17  Chandrakala Chavva  <cchavva@redhat.com>
13975
13976         * config.gcc: For *-*-chorusos triplet, get chorus.h file from
13977         config directory.
13978         * config/i386/chorus.h: Move up.
13979         * config/sparc/chorus.h: Likewise.
13980         * config/rs6000/chorus.h: Likewise.
13981         * config/chorus.h: Moved here.
13982
13983 2001-07-17  Andreas Schwab  <schwab@suse.de>
13984
13985         * configure.in  (assembler eh_frame optimization): Handle big
13986         endian.
13987         * configure: Regenerated.
13988
13989 Tue Jul 17 23:43:31 CEST 2001  Jan Hubicka  <jh@suse.cz>
13990
13991         * expr.c (epxand_expr): Convert divisions into multiplications by
13992         reciprocals if -ffast-math.
13993
13994 2001-07-17  Neil Booth  <neil@daikokuya.demon.co.uk>
13995
13996         * dbxout.c (dbxout_really_begin_function): Rename to
13997         dbxout_begin_function.
13998         (dbx_debug_hooks, xcoff_debug_hooks): Update.
13999         (dbxout_begin_function): Remove.
14000         (dbxout_function): Update.
14001         (dbxout_source_line): Update prototype.
14002         * dbxout.h (dbxout_begin_function): Remove.
14003         * debug.c (do_nothing_debug_hooks): Update.
14004         (debug_nothing_tree): Update.
14005         (debug_nothing_charstar_rtx): Remove.
14006         * debug.h (union tree_node): Declare.
14007         (struct rtx_def): Remove.
14008         (gcc_debug_hooks): New hooks begin_prologue, end_prologue,
14009         begin_function.  Change source_line prototype.
14010         (debug_nothing_tree): New.
14011         (debug_nothing_charstar_rtx): Delete.
14012         (dwarf2out_begin_prologue): Moved from ...
14013         * tree.h: ... here.
14014         * dwarf2out.c (dwarf2_debug_hooks): Update.
14015         (dwarf2out_begin_prologue): Update prototype.  If genuine dwarf2
14016         debug info, call dwarf2out_source_line.
14017         (dwarf2out_souce_line): Update prototype.
14018         * dwarfout.c (dwarfout_begin_function): Rename dwarfout_end_prologue.
14019         Change prototype, make static.
14020         (dwarfout_source_line): Update prototype.
14021         (dwarf_debug_hooks): Update.
14022         * dwarfout.h (dwarfout_begin_function): Remove.
14023         * final.c (final_start_function, final_scan_insn): Use appropriate
14024         debug hooks, update to use notice_source_line.
14025         (output_source_line): Rename notice_source_line.  Don't call the
14026         source_line debug hook.
14027         * sdbout.c (sdbout_begin_function): Rename sdbout_begin_prologue,
14028         make static, update prototype.
14029         (sdbout_mark_begin_function): Rename sdbout_begin_function, update
14030         prototype.
14031         (sdbout_end_prologue): New.
14032         (sdbout_source_line): Update prototype.
14033         (sdbout_debug_hooks): Update.
14034         (sdbout_symbol): Remove unused var.
14035         * sdbout.h (sdbout_begin_function, sdbout_mark_begin_function):
14036         Delete.
14037         * varasm.c: Include debug.h.
14038         (assemble_start_function): Use begin_function debug_hook.
14039         * xcoffout.c (xcoffout_begin_prologue): Rename xcoffout_begin_function,
14040         update with prototype.
14041         (xcoffout_source_line): Update prototype.
14042         * xcoffout.h (xcoffout_begin_prologue): Rename xcoffout_begin_function,
14043         update prototype.
14044         (xcoffout_source_line): Update prototype.
14045
14046 2001-07-17  Richard Henderson  <rth@redhat.com>
14047
14048         * c-typeck.c (build_binary_op): Do not shorten unsigned
14049         right shift after sign extension.
14050
14051 Tue Jul 17 16:56:05 CEST 2001  Jan Hubicka  <jh@suse.cz>
14052
14053         * combine.c (combine_simplify_rtx): Attempt to simplify
14054         a*(b/c) as (a*b)/c for floats in unsafe_math mode.
14055
14056         * simplify-rtx.c (avoid_constatn_pool_reference): New static function.
14057         (simplify_binary_operation, simplify_unary_operation,
14058          simplify_relational_operation): Use it.
14059
14060         * combine.c (combine_simplify_rtx): Don't do associative law
14061         on divisions; allow associative law on floats.
14062
14063 2001-07-17  H.J. Lu <hjl@gnu.org>
14064             Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
14065
14066         * c-pragma.h (HANDLE_PRAGMA_WEAK): Define iff ASM_WEAKEN_LABEL and
14067         ASM_OUTPUT_WEAK_ALIAS are defined.
14068         * defaults.h (ASM_OUTPUT_WEAK_ALIAS): Define if possible.
14069         * config/mips/iris6.h (ASM_OUTPUT_WEAK_ALIAS, ASM_WEAKEN_LABEL):
14070         Moved ...
14071         * config/mips/iris5.h: ... here.
14072         (HANDLE_SYSV_PRAGMA): Defined as 1.
14073         * varasm.c (weak_finish): Use ASM_OUTPUT_WEAK_ALIAS.
14074         * doc/tm.texi (ASM_OUTPUT_WEAK_ALIAS): Support the undefined weak
14075         symbol.
14076
14077 2001-07-17  Joseph S. Myers  <jsm28@cam.ac.uk>
14078
14079         * c-parse.in (all_prefix_attributes): New variable.
14080         (PUSH_DECLSPEC_STACK, POP_DECLSPEC_STACK): New macros.
14081         (maybe_resetattrs): New production.
14082         (c_parse_init, datadef, fndef, datadecl, setspecs, setattrs, decl,
14083         maybe_type_quals_setattrs, initdecls, notype_initdecls, initdcl,
14084         notype_initdcl, nested_function, notype_nested_function,
14085         component_decl, components, components_notype,
14086         component_declarator, component_notype_declarator,
14087         absdcl_maybe_attribute, parm, firstparm, setspecs_fp, ivar_decl,
14088         ivars, mydecl, myparm): Update.  Avoid prefix attributes just
14089         after a comma being applied to more than one declarator.
14090         * doc/extend.texi (Attribute Syntax): Update.  Remove
14091         documentation of bugs that are no longer present.
14092
14093 2001-07-13  Eric Christopher  <echristo@redhat.com>
14094
14095         * config/mips/mips.h: Change TUNE_MIPS* options to use
14096         mips_tune.
14097         (EXTRA_SPECS): Add cc1_cpu_spec.
14098         * config/mips/mips.md (muldf3): Fix typo.
14099
14100 2001-07-16  Richard Henderson  <rth@redhat.com>
14101
14102         * config/m68k/m68k.c: Include expr.h and reload.h.
14103         (print_operand_address) [16 bit int]: Cast INTVAL to int for %d.
14104         [general int]: Use HOST_WIDE_INT_PRINT_DEC.
14105
14106 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
14107             Richard Henderson  <rth@redhat.com>
14108
14109         * cse.c (set_live_p): Take INSN argument for cc0; update callers.
14110         (insn_live_p): Fix fall off end of function.
14111         (dead_libcall_p): Remove COUNTS argument; update callers.
14112         (delete_trivially_dead_insns): Remove unused variables.
14113
14114 2001-07-17  Andreas Jaeger  <aj@suse.de>
14115
14116         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix output format for
14117         x86-64 pic support.
14118
14119         * lcm.c (optimize_mode_switching): Avoid warning for unused
14120         variable if !NORMAL_MODE.
14121
14122         * flow.c (try_crossjump_to_edge): Remove unused variable.
14123
14124 2001-07-16  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14125
14126         * inclhack.def (ultrix_atexit_param): New hack to fix ultrix 4.3
14127         atexit declaration in stdlib.h.
14128
14129 2001-07-16  Richard Begg  <Richard.Begg@colesmyer.com.au>
14130
14131         * fixinc/inclhack.def(hpux_vsnprintf): brokenness in stdio.h
14132
14133 Mon Jul 16 22:48:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
14134
14135         * basic-block.h (CLEANUP_PRE_SIBCALL): New constant.
14136         * except.c (finish_eh_generation): Update call of cleanup_cfg;
14137         do rebuild_jump_labels instead of jump_optimize
14138         * sibcall.c (optimize_sibling_and_tail_recursive_call): Likewise.
14139         * toplev.c (rest_of_compulation): Likewise for -Wreturn_type.
14140         * flow.c (try_optimize_cfg): Remove unneeded code_labels.
14141
14142         * flow.c: Include timevar.h
14143         (find_basic_block): Push/pop timevar;
14144         (cleanup_cfg): Likewise.
14145         * timevar.def (TV_CFG, TV_CLEANUP_CFG): New.
14146         * Makefile: Add dependencies on timevar.h
14147
14148         * integrate.c (save_for_inline): Kill all BASIC_BLOCK notes.
14149         (copy_insn_list): Avoid killing of BASIC_BLOCK notes.
14150
14151         * rtl.h (delete_trivially_dead_insns): Add new parameter.
14152         * toplev.c (rest_of_compilation): Update calls.
14153         * cse.c (set_live_p, insn_live_p, dead_libcall_p): Break out from ...
14154         (delete_trivially_dead_insns): ... here; accept new argument
14155         preserve_basic_blocks; preserve basic blocks if set.
14156
14157         * reg-stack.c (stack_regs_mentioned): Return 0 if
14158         stack_regs_mentioned_data is not initialized.
14159         (reg_to_stack): Make stack_regs_mentioned survive after the
14160         reg-stack is completted; do not call cleanup_cfg.
14161         * toplev.c (rest_of_compilation): Do cleanup_cfg before bb-reorder;
14162         make cleanup_cfg after bb-reorder to output to debug file.
14163
14164 2001-07-16  Richard Henderson  <rth@redhat.com>
14165
14166         * regclass.c (init_reg_sets): Use only 32 bits per initializer
14167         from int_reg_class_contents.
14168
14169 2001-07-16  Richard Henderson  <rth@redhat.com>
14170
14171         * hard-reg-set.h (regs_invalidated_by_call): Declare.
14172         * regclass.c (regs_invalidated_by_call): Move from cse.c.
14173         (init_reg_sets_1): Move initialization from cse_main.
14174         * cse.c (regs_invalidated_by_call): Move to regclass.c.
14175         (cse_main): Move its initialization also.
14176         * df.c (df_insn_refs_record): Use regs_invalidated_by_call.
14177         * flow.c (propagate_one_insn): Likewise.
14178         * gcse.c (compute_hash_table): Likewise.
14179         (compute_kill_rd, compute_store_table): Likewise.
14180         * sched-deps.c (sched_analyze_1): Likewise.
14181
14182 Mon Jul 16 18:07:07 2001  J"orn Rennecke <amylaar@redhat.com>
14183
14184         * gcse.c (pre_insert_copy_insn): Use gen_move_insn instead of
14185         gen_rtx_SET.
14186
14187 2001-07-16  Steve Ellcey <sje@cup.hp.com>
14188
14189         * dominance.c (calc_dfs_tree_nonrec): Reverse order of tests
14190         in if statement so we don't access undefined memory.
14191
14192 2001-07-16  Daniel Berlin  <dan@cgsoftware.com>
14193
14194         * gcse.c: Update comment at top.
14195         Update comment on mem handling.
14196         mem_last_set, mem_first_set, mem_set_in_block: gone.
14197         Declaration of reg_set_info: gone.
14198         (oprs_unchanged_p): Don't use mem_*set_* anymore. They are
14199         pointless with load_killed_in_block_p (they are *more*
14200         conservative then it, not less, and less accurate).
14201         (oprs_not_set_p): Ditto.
14202         (alloc_gcse_mem): Don't allocate mem_set_in_block
14203         (free_gcse_mem): Don't free it, either.
14204         (record_last_mem_set_info): Update comment in front, remove
14205         mem_*set_* stuff. Note the reason we don't handle stores directly
14206         here.
14207         (compute_hash_table): Update comments to reflect reality. Remove
14208         mem_*set_* references.
14209         (reset_opr_set_tables): Remove mem_*set_* references.
14210         (mark_call): Ditto.
14211         (mark_set): Ditto.  Also remove double sets of bitmaps for REG's.
14212         (mark_clobber): Ditto (on both parts, we double set here too).
14213         (expr_killed_p): Remove mem_set_in_block test.
14214         (compute_transp): Remove mem_set_in_block test.
14215
14216         * ssa-ccp.c: (optimize_unexecutable_edges): Add note about removal
14217         of edge, and removal of phi alternative to dump file.
14218         (ssa_ccp_substitute_constants): Add note about register now being
14219         constant, and which uses were replaced in what insns to dump file.
14220
14221 2001-07-16  Andreas Jaeger  <aj@suse.de>
14222
14223         * gcov.c (output_data): Use HOST_WIDEST_INT_PRINT_DEC to output
14224         variables of type HOST_WIDEST_INT.
14225
14226         * libgcc2.c (__bb_exit_func): Handle gcov_type as long long.
14227         (__bb_exit_func): Correct type of count_max to avoid overflow.
14228         (num_digits): Handle long long argument.
14229
14230         * combine.c (gen_lowpart_for_combine): Remove unused variable.
14231
14232 2001-07-16  Neil Booth  <neil@cat.daikokuya.demon.co.uk>
14233
14234         * output.h (sdb_begin_function_line): Restore as an extern
14235         variable.
14236         * sdbout.c (sdb_begin_function_line): Make extern.
14237
14238 2001-07-15  Richard Henderson  <rth@redhat.com>
14239
14240         * machmode.def (Pmode): Redefine if GENERATOR_FILE.
14241         * genrecog.c (maybe_both_true_mode): New.
14242         (maybe_both_true_2): Use it.
14243         (write_switch): Don't put Pmode in a switch.
14244         * rtl.c (mode arrays): Don't explicitly size them.
14245
14246 Sun Jul 15 14:07:36 CEST 2001  Jan Hubicka  <jh@suse.cz>
14247
14248         * toplev.c (rest_of_compilation): Fix register_life_up_to_date
14249         handling; move unconditional splitting before mode switching.
14250
14251         * i386.md (type): Add fistp type.
14252         (i387, length_attr, scheduling definitions): Handle this type.
14253         (fix_trunc?f?i2): Revamp to use mode switching.
14254         (fix_trunct?f?i_nonmemory, fix_trunc?f?i_memory): New patterns.
14255         * i386.h (fp_cw_mode): New enum
14256         (OPTIMIZE_MODE_SWITCHING, NUM_MODES_FOR_MODE_SWITCHING, MODE_NEEDED,
14257         MODE_PRIORITY_TO_MODE, ENUM_MODE_SET): New macros.
14258
14259 Sun Jul 15 12:53:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14260
14261         * Makefile.in (integrate.o): Add debug.h.
14262         * integrate.c (debug.h): Add.
14263         (output_inline_function): Save, reset, and restore debug_hooks.
14264
14265 2001-07-15  Richard Henderson  <rth@redhat.com>
14266
14267         * config/alpha/alpha.c (alpha_emit_xfloating_compare): Use CCmode
14268         instead of COMPARE for the EQUIV expression.
14269
14270 2001-07-15  Richard Henderson  <rth@redhat.com>
14271
14272         * flow.c (redirect_edge_and_branch_force): Initialize
14273         global_live_at_start and global_live_at_end.
14274         (allocate_bb_life_data): Export.
14275         * basic-block.h (allocate_bb_life_data): Declare.
14276         * toplev.c (rest_of_compilation): Call it.
14277
14278 2001-07-15  Richard Henderson  <rth@redhat.com>
14279
14280         * config/alpha/alpha.c (alpha_tablejump_addr_vec): New.
14281         (alpha_tablejump_best_label): New.
14282         * config/alpha/alpha-protos.h: Declare them.
14283         * config/alpha/alpha.md: Use braced strings for code blocks.
14284         (tablejump_osf): Break out add with r29.
14285         (tablejump_osf_internal): Remove.
14286         (tablejump_osf_nt_internal): Rename from tablejump_nt_internal,
14287         use alpha_tablejump_addr_vec and alpha_tablejump_best_label.
14288
14289 Sun Jul 15 00:53:35 CEST 2001  Jan Hubicka  <jh@suse.cz>
14290
14291         * loop.c (scan_loop): Add USEs inside PARALLELs into dependencies
14292         of the movable.
14293
14294         * toplev.c (rest_of_compilation): Allow new pseudoes for mode switching.
14295
14296         * i386-protos.h (ix86_split_fp_branch): Update prototype.
14297         (ix86_fp_jump_nontrivial_p): New.
14298         * i386.md (fp_jcc_?): Update call of split_fp_branch;
14299         use ix86_fp_jump_nontrivial_p.
14300         * i386.c (ix86_fp_jump_nontrivial_p): New.
14301         (ix86_split_fp_branch): Accept code instead of rtx.
14302         (ix86_expand_compare): Expand comparison early in case
14303         doing so is resonably cheap.
14304
14305 2001-07-15  Nick Clifton  <nickc@cambridge.redhat.com>
14306
14307         * config/rs6000/sysv4.h (CPP_ENDIAN_BIG_SPEC): Assert 'endian'
14308         not 'machine'.
14309         (CPP_ENDIAN_LITTLE_SPEC): Assert 'endian' not 'machine'.
14310         (CPP_ENDIAN_SOLARIS_SPEC): Assert 'endian' not 'machine'.
14311
14312 2001-07-15  Neil Booth  <neil@daikokuya.demon.co.uk>
14313
14314         * dbxout.c (dbxout_source_line): Make static, update prototype.
14315         (dbx_debug_hooks, xcoff_debug_hooks): Add new hooks.
14316         (dbxout_init, dbxout_finish, dbxout_source_line,
14317         dbxout_begin_block, dbxout_end_block): Update for new prototypes.
14318         * dbxout.h (dbxout_source_line): Delete.
14319         * debug.c (debug_nothing_file, debug_nothing_file_int,
14320         debug_nothing_file_charstar_rtx): New.
14321         (do_nothing_debug_hooks): Update.
14322         (debug_nothing_void, debug_nothing_charstar_rtx,
14323         dwarf2out_end_epilogue): New.
14324         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
14325         * debug.h (struct rtx_def): Declare.
14326         (gcc_debug_hooks): New hooks source_line, end_epilogue
14327         and end_function.
14328         (debug_nothing_void, debug_nothing_charstar_rtx,
14329         dwarf2out_end_epilogue): New.
14330         (debug_nothing_file_charstar, debug_nothing_file_int_int): Rename.
14331         * dwarf2out.c (dwarf2out_source_line): Make static, update prototype.
14332         (dwarf2_debug_hooks): Update.
14333         (dwarf2out_init, dwarf2out_finish, dwarf2out_source_line,
14334         dwarf2out_begin_block, dwarf2out_end_block): Update for new prototypes.
14335         * dwarf2out.h (dwarf2out_source_line): Remove.
14336         * dwarfout.c (dwarfout_end_epilogue, dwarfout_end_function):
14337         Make static, update prototype.
14338         (dwarfout_init, dwarfout_finish, dwarfout_source_line,
14339         dwarfout_begin_block, dwarfout_end_block): Update for new prototypes.
14340         (dwarf_debug_hooks): Update.
14341         * dwarfout.h (dwarfout_end_epilogue, dwarfout_source_line,
14342         dwarfout_end_function): Remove.
14343         * final.c (profile_function): Use debug hooks for ending functions
14344         and epilogues.
14345         (output_source_line, final_end_function): Update prototype,
14346         use debug hooks.
14347         (final_start_function, final_scan_insn): Update.
14348         * output.h (sdb_begin_function_line): Remove.
14349         (final_end_function): Update prototype.
14350         * sdbout.c (sdb_begin_function_line): Make static.
14351         (PUT_SDB_EPILOGUE_END): Move to sdbout_end_epilogue.
14352         (sdbout_source_line): New.
14353         (sdbout_end_epilogue, sdbout_end_function): Make static, update
14354         prototypes.
14355         (sdb_debug_hooks): Update.
14356         (sdbout_init, sdbout_source_line,
14357         sdbout_begin_block, sdbout_end_block): Update for new prototypes.
14358         * sdbout.h (sdbout_end_epilogue, sdbout_end_function): Remove.
14359         * toplev.c (compile_file, rest_of_compilation): Update.
14360         * tree.h (dwarf2out_end_epilogue): Move to debug.h.
14361         * xcoffout.c (xcoffout_source_line, xcoffout_begin_block,
14362         xcoffout_end_block, xcoffout_end_epilogue, xcoffout_end_function):
14363         Update for prototype changes.
14364         * xcoffout.h (xcoffout_source_line, xcoffout_begin_block,
14365         xcoffout_end_block, xcoffout_end_epilogue): Update prototypes.
14366
14367 2001-07-15  Richard Henderson  <rth@redhat.com>
14368
14369         * config/alpha/alpha.h (TARGET_ABI_OSF): New.
14370         (TARGET_ABI_WINDOWS_NT, TARGET_ABI_OPEN_VMS): Rename; update users.
14371         * config/alpha/alpha-protos.h: Update TARGET_ABI_* users.
14372         * config/alpha/alpha.c: Likewise.
14373         * config/alpha/alpha.md: Likewise.
14374         * config/alpha/alpha32.h: Likewise.
14375         * config/alpha/vms.h: Likewise.
14376         (OPEN_VMS): Remove.
14377
14378 2001-07-14  Richard Henderson  <rth@redhat.com>
14379
14380         * config/alpha/alpha.md: Use define_constants for unspec values.
14381         Substitute throughout.
14382
14383 2001-07-14  Tim Josling  <tej@melbpc.org.au>
14384
14385         * tree.def (EXPON_EXPR) remove. Never supported anyway.
14386
14387 2001-07-14  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14388
14389         * pa.md: Remove unused constraints from define_split's.
14390
14391 2001-04-14  Richard Henderson  <rth@redhat.com>
14392
14393         * ifcvt.c (find_cond_trap): Test for exit block.
14394
14395 Sun Jul 15 00:50:20 CEST 2001  Jan Hubicka  <jh@suse.cz>
14396
14397         Re-install recently reverted patch.
14398         * emit-rtl.c (try_split): Update mark_jump_label call.
14399         * flow.c (find_sub_basic_blocks): Likewise.
14400         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
14401         jump_back_p): Kill.
14402         (mark_all_labels): Kill second parameter.
14403         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
14404         (rebuild_jump_labels, jump_optimize_minimal): Update call
14405         of jump_optimize_1.
14406         (jump_optimize_1): Kill crossjumping code.
14407         (mark_jump_label): Kill cross_jump parameter.
14408         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
14409         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
14410         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
14411          splitting.
14412         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
14413         DFI_bpro.
14414         (dump_file_info): Likewise.
14415         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
14416         reorganize passes to do reg-stack first, bb-reorder second.
14417         * invoke.texi (-d letters doc): Remove the jump2 pass.
14418
14419 2001-07-14  Richard Henderson  <rth@redhat.com>
14420
14421         * ifcvt.c (find_cond_trap): New.
14422         (find_if_header): Call it.
14423         (merge_if_block): Relax existing jump sanity check.
14424         * jump.c (jump_optimize_1): Remove conditional trap handling.
14425
14426 2001-07-14  Alan Modra  <amodra@bigpond.net.au>
14427
14428         * config/pa/pa.c (emit_hpdiv_const): Return reg is r2 for 64-bit
14429         millicode.
14430         (insn_refs_are_delayed): Correct comment.
14431         * config/pa/pa.h (INSN_REFERENCES_ARE_DELAYED): Likewise.
14432         * config/pa/pa.md (mulsi3): If TARGET_64BIT, clobber r2
14433         instead of r31.  Make associated insn !TARGET_64BIT, and
14434         provide an additional 64-bit insn that clobbers r2.
14435         (divsi3): Likewise.
14436         (udivsi3): Likewise.
14437         (modsi3): Likewise.
14438         (umodsi3): Likewise.
14439
14440 Sat Jul 14 02:58:38 CEST 2001  Jan Hubicka  <jh@suse.cz>
14441
14442         * bb-reorder.c (skip_insn_after_block): Get past the line number notes.
14443
14444         * flow.c (redirect_edge_and_branch_force, split_edge,
14445         try_crossjump_to_edge): Use set_block_for_new_insns.
14446         * bb-reorder.c (emit_jump_to_block_after): Call set_block_for_new_insns.
14447
14448 2001-07-13  H.J. Lu  (hjl@gnu.org)
14449
14450         * config/elfos.h (UNIQUE_SECTION): Enable .bss section with
14451         the correct patch.
14452
14453 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
14454
14455         Revert H.J. Lu's UNIQUE_SECTION patch of 2001-07-13.
14456
14457 2001-07-13  Joseph S. Myers  <jsm28@cam.ac.uk>
14458
14459         * c-common.c (decl_attributes): Take a pointer to the node to
14460         which attributes are to be attached, and a flags argument.
14461         * c-common.h (enum attribute_flags): New.
14462         (decl_attributes): Update prototype.
14463         * c-decl.c (start_decl, push_parm_decl, finish_struct,
14464         finish_enum, start_function): Update calls to decl_attributes.
14465         * c-parse.in (component_declarator, component_notype_declarator,
14466         label): Update calls to decl_attributes.
14467
14468 Fri Jul 13 23:04:00 2001  Denis Chertykov  <denisc@overta.ru>
14469
14470         * config/avr/avr.md (strlenhi): PARALLEL keyword removed.
14471         * config/avr/avr.c (legitimate_address_p): Return value changed
14472         from letter to register classes. For better debugging.
14473
14474 2001-07-13  Kazu Hirata  <kazu@hxi.com>
14475
14476         * jump.c (reversed_comparison_code_parts): Fix comment typos.
14477
14478 2001-07-13  H.J. Lu  (hjl@gnu.org)
14479
14480         * config/elfos.h (UNIQUE_SECTION): Enable .bss section.
14481
14482 2001-07-13  Marc Espie  <espie@cvs.openbsd.org>
14483
14484         * config.gcc (*-*-openbsd*):  Add fragment to compile libgcc
14485         correctly for shared configurations.
14486         * config/t-libgcc-pic:  New.
14487         * config/{i386,m68k,sparc}/t-openbsd:  New.
14488         * config/openbsd.h:  Include cpu_spec in cpp_spec where needed.
14489         Support -shared.  Support debugging libraries with -g.
14490         * config/i386/openbsd.h:  Correct ASM_COMMENT_START.  Ensure dwarf2
14491         frame information does not emit pointer diffs.
14492         * config/sparc/openbsd.h:  Ensure dwarf2 frame information does not
14493         emit pointer diffs.
14494
14495 2001-07-13  Geoffrey Keating  <geoffk@redhat.com>
14496
14497         Revert Jan Hubicka's patch of Fri Jul 13 14:46:21 CEST 2001.
14498
14499 2001-07-13  David Edelsohn  <edelsohn@gnu.org>
14500
14501         * combine.c (try_combine): Ensure const_int pow2 is positive.
14502
14503 2001-07-13  Hartmut Penner  <hpenner@de.ibm.com>
14504
14505         * config.gcc: Add configuration for s/390.
14506         * config/s390/s390.c: New. Subroutines for code generation.
14507         * config/s390/s390.h: New. Definitions for s/390.
14508         * config/s390/s390-protos.h: New. Prototypes.
14509         * config/s390/linux.h: New. Definitions for linux for s/390.
14510         * config/s390/linux64.h: New. Definitions for linux for zSeries.
14511         * config/s390/t-linux: New. Makefile fragment.
14512         * config/s390/s390.md: New. Machine description for s/390 and zSeries.
14513         * config/s390/fixdfdi.h: New. Fix L_fix*di.
14514
14515 Fri Jul 13 14:46:21 CEST 2001  Jan Hubicka  <jh@suse.cz>
14516
14517         * emit-rtl.c (try_split): Update mark_jump_label call.
14518         * flow.c (find_sub_basic_blocks): Likewise.
14519         * jump.c (cross_jump_death_matters, find_cross_jump, do_cross_jump,
14520         jump_back_p): Kill.
14521         (mark_all_labels): Kill second parameter.
14522         (jump_optimize, jump_optimize_1): Kill cross_jump parameter.
14523         (rebuild_jump_labels, jump_optimize_minimal): Update call
14524         of jump_optimize_1.
14525         (jump_optimize_1): Kill crossjumping code.
14526         (mark_jump_label): Kill cross_jump parameter.
14527         * rtl.h (mark_jump_label, jump_optimize): Update prototypes.
14528         (JUMP_CROSS_JUMP, JUMP_CROSS_JUMP_DEATH_MATTERS): Kill.
14529         * reg-stack.c (reg_to_stack): Do not rebuild if not needed; do
14530          splitting.
14531         * toplev.c (enum dump_file_index): Kill DFI_jump2; put DFI_stack before
14532         DFI_bpro.
14533         (rest_of_compilation): Update calls to jump_optimize; kill jump2 pass;
14534         reorganize passes to do reg-stack first, bb-reorder second.
14535         * invoke.texi (-d letters doc): Remove the jump2 pass.
14536
14537 2001-07-12  Steve Ellcey <sje@cup.hp.com>
14538
14539         * toplev.c (compile_file): Put call of ASM_FILE_START inside ifdef.
14540
14541 Thu Jul 12 17:57:16 CEST 2001  Jan Hubicka  <jh@suse.cz>
14542
14543         * flow.c (try_optimize_cfg): Delete whole chain of trivially dead
14544         basic blocks.
14545         (verify_flow_info): Make diagnostics prettier.
14546
14547 Thu Jul 12 16:48:54 CEST 2001  Jan Hubicka  <jh@suse.cz>
14548
14549         * flow.c (find_basic_blocks_1): Do not emit NOP after call.
14550
14551         * flow.c (outgoing_edges_match): Return early if condition reversal
14552         failed.
14553
14554 2001-07-06  Richard Sandiford  <rsandifo@redhat.com>
14555
14556         * config/mips/mips.c (print_operand): Extend '%D' to memory operands.
14557         (mips_move_2words): When splitting a move into two instructions,
14558         prefix the second address operand with '%D'.
14559
14560 2001-07-12  Neil Booth  <neil@daikokuya.demon.co.uk>
14561
14562         * Makefile.in (final.o): Depend on debug.h.
14563         * dbxout.c (dbxout_begin_block, dbxout_end_block): New.
14564         (dbx_debug_hooks): Add new hooks.
14565         (xcoff_debug_hooks): New.
14566         * debug.c (debug_nothing_file_int_int): New.
14567         (do_nothing_debug_hooks): Update.
14568         * debug.h (gcc_debug_hooks): New hooks begin_block and end_block.
14569         (debug_nothing_file_int_int): New.
14570         * dwarf2out.c (dwarf2out_begin_block, dwarf2out_end_block): Make
14571         static, update prototype.
14572         (dwarf2_debug_hooks): Update.
14573         * dwarf2out.h (dwarf2out_begin_block, dwarf2out_end_block): Remove.
14574         * dwarfout.c (dwarfout_begin_block, dwarfout_end_block): Make
14575         static, update prototype.
14576         (dwarf_debug_hooks): Update.
14577         * dwarfout.h (dwarfout_begin_block, dwarfout_end_block): Remove.
14578         * final.c: Include debug.h.
14579         (final_scan_insn): Use debug hooks when beginning and ending blocks.
14580         * sdbout.c (sdbout_begin_block, sdbout_end_block): Make
14581         static, update prototype.
14582         (sdb_debug_hooks): Update.
14583         * sdbout.h (sdbout_begin_block, sdbout_end_block): Remove.
14584         * toplev.c: Distinguish between xcoff and dbx.
14585
14586         * f/lex.c (ffelex_file_pop_, ffelex_file_push_, ffelex_hash_):
14587         Call all debug hooks, not just dwarf ones.
14588
14589 2001-07-11  Timothy Wall  <twall@redhat.com>
14590
14591         * config.gcc: Add configuration for AIX5/IA64.
14592         * config/ia64/aix.h: New.  AIX5/IA64-specific configuration.
14593         * config/ia64/crt[in].asm: New.  Generic static ctor/dtor
14594         support prefix/suffix code.
14595         * config/ia64/t-aix: New.  Makefile fragment.
14596         * config/ia64/unwind-aix.c: New.  Unwind table entry lookup.
14597
14598 2001-07-11  Kazu Hirata  <kazu@hxi.com>
14599
14600         * recog.c (validate_change): Fix a comment typo.
14601
14602 2001-07-11  Neil Booth  <neil@daikokuya.demon.co.uk>
14603
14604         * Makefile.in (c-lex.o): Wrap long lines.  Depend on debug.h.
14605         * c-lex.c (cb_file_change, cb_define, cb_undef): Use debug
14606         hooks directly.
14607         * dbxout.c (dbx_debug_hooks): Add new hooks.
14608         (dbxout_start_new_source_file): Rename dbxout_start_source_file,
14609         make static.
14610         (dbxout_resume_previous_source_file): Rename dbxout_end_source_file,
14611         make static.
14612         * dbxout.h (dbxout_start_new_source_file,
14613         dbxout_resume_previous_source_file): Delete.
14614         * debug.c (do_nothing_debug_hooks): Add new hooks.
14615         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
14616         (debug_nothing_int_charstar, debug_nothing_int): New.
14617         * debug.h (gcc_debug_hooks): New hooks define, undef,
14618         start_source_file and end_source_file.
14619         (debug_nothing_init_finish): Rename debug_nothing_file_charstar.
14620         (debug_nothing_int_charstar, debug_nothing_int): New.
14621         * dwarf2out.c (dwarf2_debug_hooks): Add new hooks.  Move into
14622         the conditionally compiled section.
14623         (dwarf2out_start_source_file, dwarf2out_end_source_file,
14624         dwarf2out_define, dwarf2out_undef): Make static.
14625         * dwarf2out.h (dwarf2out_start_source_file, dwarf2out_end_source_file,
14626         dwarf2out_define, dwarf2out_undef): Remove.
14627         * dwarfout.c (dwarf_debug_hooks): Add new hooks.
14628         (dwarfout_start_source_file, dwarfout_end_source_file,
14629         dwarfout_define, dwarfout_undef): Make static.
14630         (dwarfout_start_source_file_check,
14631         dwarfout_end_source_file_check): New.
14632         (dwarfout_define, dwarfout_finish): Update.
14633         * dwarfout.h (dwarfout_start_new_source_file,
14634         dwarfout_resume_previous_source_file, dwarfout_define,
14635         dwarfout_undef): Remove.
14636         * sdbout.c (sdb_debug_hooks): Add new hooks.
14637         (sdbout_start_new_source_file): Rename sdbout_start_source_file,
14638         make static.
14639         (sdbout_resume_previous_source_file): Rename sdbout_end_source_file,
14640         make static, take an arg.
14641         * sdbout.h (sdbout_start_new_source_file,
14642         sdbout_resume_previous_source_file): Delete.
14643         * toplev.c (debug_start_source_file, debug_end_source_file,
14644         debug_define, debug_undef): Delete.
14645         * toplev.h (debug_start_source_file, debug_end_source_file,
14646         debug_define, debug_undef): Delete.
14647
14648         * java/jcf-parse.c: Include debug.h.
14649         (parse_class_file): Update to use debug hooks directly.
14650         * java/Make-lang.in (jcf-parse.o): Depend on debug.h.
14651
14652 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14653
14654         * alias.c (set_mem_alias_set): New function.
14655         * rtl.h (set_mem_alias_set): Declare it.
14656         * builtins.c (expand_builtin_return_addr): Call it instead of
14657         using MEM_ALIAS_SET accessor.
14658         (expand_builtin_setjmp_setup, expand_builtin_longjmp): Likewise.
14659         (get_memory_rtx, expand_builtin_va_arg): Likewise.
14660         (expand_builtin_va_copy):Likewise.
14661         * caller-save.c (setup_save_areas): Likewise.
14662         * calls.c (compute_argument_addresses): Likewise.
14663         * explow.c (set_mem_attributes): Likewise.
14664         * expr.c (emit_single_push_insn, emit_push_insn): Likewise.
14665         (expand_assignment, store_constructor_field, store_field): Likewise.
14666         (expand_expr_unaligned): Likewise.
14667         * function.c (assign_stack_temp_for_type): Likewise.
14668         (put_reg_into_stack, gen_mem_addressof): Likewise.
14669         * ifcvt.c (noce_try_cmove_arith): Likewise.
14670         * reload1.c (reload, alter_reg): Likewise.
14671         * config/alpha/alpha.c (get_aligned_mem): Likewise.
14672         (alpha_set_memflags_1, alpha_expand_unaligned_load): Likewise.
14673         (alpha_expand_unaligned_store): Likewise
14674         (alpha_expand_unaligned_load_words): Likewise.
14675         (alpha_expand_unaligned_store_words): Likewise.
14676         (alpha_expand_block_clear, alpha_expand_prologue): Likewise.
14677         (alpha_expand_epilogue): Likewise.
14678         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
14679         * config/clipper/clipper.c (clipper_builtin_saveregs): Likewise.
14680         * config/i386/i386.c (legitimize_pic_address): Likewise.
14681         * config/i960/i960.c (setup_incoming_varargs): Likewise.
14682         * config/ia64/ia64.c (spill_restore_mem): Likewise.
14683         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
14684         * config/m8k/m88k.c (m88k_builtin_saveregs): Likewise.
14685         * config/mips/mips.c (mips_va_arg): Likewise.
14686         * config/mn10300/mn10300.c (mn10300_builtin_saveregs): Likewise.
14687         * config/pa/pa.c (hppa_builtin_saveregs): Likewise.
14688         * config/rs6000/rs6000.c (rs6000_emit_move): Likewise.
14689         (setup_incoming_varargs, rs6000_va_arg): Likewise.
14690         (rs6000_emit_eh_toc_restore, rs6000_emit_prologue): Likewise.
14691         (rs6000_emit_epilogue): Likewise.
14692         * config/sh/sh.c (sh_builtin_saveregs): Likewise.
14693         * config/sparc/sparc.c (sparc_va_arg): Likewise.
14694         * config/v850/v850.c (v850_va_arg): Likewise.
14695
14696 Wed Jul 11 21:27:25 CEST 2001  Jan Hubicka  <jh@suse.cz>
14697
14698         * flow.c (merge_blocks_move_successor_nojumps): Do not crash
14699         when fallthru edge is present.
14700         (mege_blocks): Handle case where creation of jump insn
14701         is required.
14702
14703         * basic-block.h (CLEANUP_EXPENSIVE, CLEANUP_CROSSJUMP,
14704         CLEANUP_POST_REGSTACK): New constants.
14705         * except.c (finish_eh_generation): Update call of cleanup_cfg,
14706         * jump.c (rtx_renumbered_equal_p): Handle 't' fields.
14707         * output.h (cleanup_cfg): Update prototype.
14708         * reg-stack.c (reg_to_stack): Use cleanup_cfg instead of jump_optimize
14709         * sibcall.c (optimize_sibling_and_tail_recursive_call): Update
14710         cleanup_cfg call; kill missleading comment.
14711         * toplev.c (rest_of_compilation): Update all cleanup_cfg calls.
14712         * flow.c (merge_blocks, try_optimize_cfg, cleanup_cfg): Accept mode
14713         parameter; control optimizations performed using it.
14714         (flow_find_cross_jump, outgoing_edges_match, try_crossjump_to_edge,
14715         try_crossjump_bb): New functions.
14716
14717 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14718
14719         * pa.c (pa_output_function_prologue): Delete prototype.  Make function
14720         extern.
14721         * pa.h (ASM_OUTPUT_MI_THUNK): Rename output_function_prologue to
14722         pa_output_function_prologue.
14723         * pa-protos.h (pa_output_function_prologue): New prototype.
14724
14725 2001-07-11  John David Anglin  <dave@hiauly1.hia.nrc.ca>
14726
14727         * stmt.c (emit_case_nodes): Widen high and low instead of new_bound
14728         and low to get correct sign extension in low+high test.
14729
14730 2001-07-11  Janis Johnson <janis@us.ibm.com>
14731
14732         * gcov.c (arcdata): Use gcov_type to fix branch percentage
14733         for large hit count.
14734
14735         * profile.c (branch_prob): Fix .bbg info for computed gotos
14736         and C++ EH code.
14737
14738 2001-07-11  Mark Mitchell  <mark@codesourcery.com>
14739
14740         * stmt.c (parse_output_constraint): New function, split out
14741         from ...
14742         (expand_asm_operands): ... here.  Use parse_output_constraint.
14743         * tree.h (parse_output_constraint): Declare it.
14744
14745 2001-07-11  Richard Henderson  <rth@redhat.com>
14746
14747         * bitmap.c: Comment some functions; fiddle whitespace.
14748         (bitmap_free): Don't export.
14749         (bitmap_element_allocate): Use memset.
14750         * bitmap.h (bitmap_free): Don't declare.
14751
14752 2001-07-11  Daniel Berlin  <dan@cgsoftware.com>
14753
14754         * gcse.c, lcm.c, sched-deps.c:
14755         s/free on sbitmap vectors/sbitmap_vector_free on sbitmap vectors/g
14756
14757         * flow.c (flow_loops_find): Free dom if we found no loops, since
14758         we aren't going to save it.
14759
14760         * lcm.c (pre_edge_rev_lcm): Free st_antin, st_antout when we are
14761         done.
14762
14763 Wed Jul 11 09:00:48 2001  Jeffrey A Law  (law@cygnus.com)
14764
14765         * ssa-ccp.c (ssa_fast_dce): Free worklist when completed.
14766
14767 Wed Jul 11 10:07:18 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14768
14769         * dwarf2out.c (dwarf2out_init, dwarf2out_finish): Add dummy version
14770         #ifndef DWARF2_DEBUGGING_INFO.
14771
14772 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14773
14774         * simplify-rtx.c (simplify_gen_subreg): Return null for QUEUED rtxes.
14775
14776 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14777
14778         * config/mips/mips.c (gen_int_relational): Tell the caller not to
14779         reverse a branch if a NE comparison is implemented with GTU.
14780
14781 2001-07-11  Richard Sandiford  <rsandifo@redhat.com>
14782             H.J. Lu  <hjl@gnu.org>
14783
14784         * mips.md (call_internal1): Use CONSTANT_ADDRESS_P to check for
14785         constant addresses.
14786         (call_internal2): Likewise.
14787         (call_value_internal1): Likewise.
14788         (call_value_internal2): Likewise.
14789         (call_value_multiple_internal1): Likewise.
14790         (call_value_multiple_internal2): Likewise.
14791
14792 2001-07-10  Kazu Hirata  <kazu@hxi.com>
14793
14794         * calls.c (emit_library_call_value_1): Fix a comment typo.
14795         * dwarf2out.c (mem_loc_descriptor): Likewise.
14796         * config/i386/i386.c (ix86_expand_aligntest): Likewise.
14797
14798 2001-07-11  David Billinghurst <David.Billinghurst@riotinto.com>
14799
14800         * simplify-rtx.c (simplify_subreg): Fix typo in comment
14801
14802 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14803
14804         * recog.c (offsettable_address_p): Handle LO_SUM case.
14805         * config/mips/mips.c (double_memory_operand): Use adjust_address_nv
14806         instead of plus_constant.
14807
14808 2001-07-10  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
14809
14810         * reload1.c (merge_assigned_reloads): After a RELOAD_OTHER merge,
14811         fix setting of the reloads of that reload to RELOAD_FOR_OTHER_ADDRESS.
14812
14813 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14814
14815         * config/rs6000/rs6000.c (print_operand, case 'L', 'Y', 'Z'): Use
14816         adjust_address_nv instead of plus_constant.
14817
14818 2001-07-10  Neil Booth  <neil@daikokuya.demon.co.uk>
14819
14820         * Makefile.in (toplev.o, sdbout.o, dbxout.o, dwarfout.o,
14821         dwarf2out.o): Depend on debug.h, wrap long lines.
14822         * dbxout.c: Include debug.h.
14823         (dbx_debug_hooks): New.
14824         (dbxout_init): Make static, take just 2 args.
14825         (dbxout_finish): Make static.
14826         * dbxout.h (dbxout_init, dbxout_finish): Delete.
14827         * debug.c: New file.
14828         * debug.h: New file.
14829         * dwarf2out.c: Include debug.h.
14830         (dwarf2_debug_hooks): New.
14831         (dwarf2out_init): Make static.
14832         (dwarf2out_finish): Make static, take 2 args.
14833         * dwarf2out.h (dwarf2out_init, dwarf2out_finish): Delete.
14834         * dwarfout.c: Include debug.h.
14835         (dwarf_debug_hooks): New.
14836         (dwarfout_init): Make static.
14837         (dwarfout_finish): Make static, take 2 args.
14838         * dwarfout.h (dwarfout_init, dwarfout_finish): Delete.
14839         * sdbout.c: Include debug.h.
14840         (sdb_debug_hooks): New.
14841         (sdbout_init): Make static, take 2 args.
14842         * sdbout.h (sdbout_init): Delete.
14843         * toplev.c: Include debug.h.
14844         (debug_hooks): New.
14845         (compile_file): Set deubg_hooks based on command line options.
14846         Use the hooks unconditionally rather than conditional compilation.
14847
14848 Tue Jul 10 09:04:45 2001  Jeffrey A Law  (law@cygnus.com)
14849
14850         * ssa-ccp.c (first_phi_node): Remove.  Replace uses with calls to
14851         first_insn_after_basic_block_note instead.
14852
14853         * df.c (df_bb_refs_unlink): #if 0 out for now.
14854
14855 2001-07-10  David Billinghurst <David.Billinghurst@riotinto.com
14856
14857         * ssa.h: Add prototype for ssa_const_prop
14858         * ssa-ccp.c: Add prototype for ssa_fast_dce and mark_references
14859         (ssa_ccp_substitute_constants): Fix signed vs unsigned comparison
14860         (ssa_fast_dce): Remove unused variable
14861
14862 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
14863
14864         * diagnostic.c (finish_diagnostic): Rename to
14865         diagnostic_finish. Make it take an 'output_buffer *'.  Adjust
14866         calls thourghout.
14867
14868 2001-07-10  Jason Merrill  <jason_merrill@redhat.com>
14869
14870         * dwarf2out.c (dwarf2out_line): Emit -dA comment even when we have
14871         .loc support.
14872
14873         * collect2.c (main): Set COLLECT_NO_DEMANGLE for subprocesses.
14874         (dump_file): Only pad the demangled name with spaces if the
14875         mangled name was padded with spaces.
14876
14877 2001-07-10  Bernd Schmidt  <bernds@redhat.com>
14878
14879         * bb-reorder.c (make_reorder_chain_1): Correct branch/fallthru
14880         edge detection.
14881
14882 Tue Jul 10 07:27:53 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
14883
14884         * expr.c (expand_expr, case COMPONENT_REF): Don't force using bitfield
14885         extraction if no direct load if either EXPAND_CONST_ADDRESS or
14886         EXPAND_INITIALIZER.
14887
14888         * emit-rtl.c (adjust_address, adjust_address_nv): Change criteria for
14889         whether can put offset inside LO_SUM to check mode alignment, not size.
14890
14891 2001-07-10  Gabriel Dos Reis  <gdr@merlin.codesourcery.com>
14892
14893         * doc/tm.texi (Misc): Fix thinko.
14894
14895 2001-07-10  Jan van Male  <jan.vanmale@fenk.wau.nl>
14896
14897         * regmove.c (replace_in_call_usage): Fix warnings.
14898         * sched-deps.c (add_dependence): Fix warnings.
14899         * simplify-rtx.c (simplify_subreg): Likewise.
14900         Return NULL_RTX instead of NULL.
14901
14902         * reg-stack.c (emit_swap_insn): Eliminate warnings.
14903         (subst_asm_stack_regs): Likewise.
14904
14905         * combine.c (num_sign_bit_copies): Cast bitwidth to int to avoid
14906         warnings.
14907
14908         * dwarf2out.c (output_call_frame_info): Declare i as int.
14909         (build_abbrev_table): Declare n_alloc as int.
14910         (dwarf2out_finish): Initialize die.
14911         * except.c: Declare sjlj_funcdef_number as unsigned.
14912         (connect_post_landing_pads): Declare j as unsigned.
14913         (convert_to_eh_region_ranges): Initialize call_site.
14914         (output_function_exception_table): Initialize tt_format_size.
14915         * expr.c (move_by_pieces_1): Initialize to1.
14916         (store_constructor): Initialize minelt and maxelt.
14917         * flow.c (mark_regs_live_at_end): Declare i as unsigned.
14918         * function.c (instantiate_decls): Avoid signed/unsigned warning.
14919
14920         * c-decl.c (combine_parm_decls): Unused, remove.
14921         * c-tree.h: Remove prototype for combine_parm_decls.
14922
14923         * reload.c (push_reload): Fix warning.
14924         (regno_clobbered_p): Likewise.
14925         * reload1.c (replace_pseudos_in_call_usage): Likewise.
14926         (reload_combine): Likewise.
14927
14928         * bitmap.c: Rename bitmap_zero to bitmap_zero_bits to fix warnings.
14929         * bitmap.h: Rename bitmap_zero to bitmap_zero_bits to fix
14930         warnings.
14931         * bitmap.c (bitmap_operation): Change user.
14932         * bitmap.h (EXECUTE_IF_AND_COMPL_IN_BITMAP): Likewise.
14933
14934 2001-07-10  Eric Christopher  <echristo@redhat.com>
14935
14936         * config/mips/mips.c (override_options): Fix typo.
14937
14938 2001-07-09  Stan Shebs  <shebs@apple.com>
14939
14940         * target.h (struct gcc_target): New fields init_builtins and
14941         expand_builtin.
14942         * target-def.h (TARGET_INIT_BUILTINS): New macro.
14943         (TARGET_EXPAND_BUILTIN): New macro.
14944         (TARGET_INITIALIZER): Add them.
14945         * builtins.c: Include target.h.
14946         (expand_builtin): Use targetm.expand_builtin.
14947         (default_init_builtins): New function.
14948         (default_expand_builtin): New function.
14949         * expr.h (default_init_builtins): Declare.
14950         (default_expand_builtin): Declare.
14951         * c-common.c (c_common_nodes_and_builtins): Use
14952         targetm.init_builtins.
14953         * defaults.h (MD_INIT_BUILTINS): Remove.
14954         * Makefile.in (builtins.o): Depend on target.h.
14955
14956         * config/arm/arm.c (TARGET_INIT_BUILTINS): Define.
14957         (TARGET_EXPAND_BUILTIN): Define.
14958         * config/arm/arm.h (MD_INIT_BUILTINS): Remove.
14959         (MD_EXPAND_BUILTIN): Remove.
14960
14961         * config/c4x/c4x.c (TARGET_INIT_BUILTINS): Define.
14962         (TARGET_EXPAND_BUILTIN): Define.
14963         (c4x_init_builtins): Make endlink arg a local.
14964         (c4x_print_operand): Fix typos in adjust_address usages.
14965         * config/c4x/c4x-protos.h (c4x_init_builtins): Update decl.
14966         * config/c4x/c4x.h (MD_INIT_BUILTINS): Remove.
14967         (MD_EXPAND_BUILTIN): Remove.
14968
14969         * config/i386/i386.c (TARGET_INIT_BUILTINS): Define.
14970         (TARGET_EXPAND_BUILTIN): Define.
14971         (ix86_init_mmx_sse_builtins): New function, was ix86_init_builtins.
14972         (ix86_init_builtins): Call new function only if TARGET_MMX.
14973         * config/i386/i386-protos.h (ix86_init_mmx_sse_builtins): Declare.
14974         * config/i386/i386.h (MD_INIT_BUILTINS): Remove.
14975         (MD_EXPAND_BUILTIN): Remove.
14976
14977         * config/ia64/ia64.c (TARGET_INIT_BUILTINS): Define.
14978         (TARGET_EXPAND_BUILTIN): Define.
14979         * config/ia64/ia64.h (MD_INIT_BUILTINS): Remove.
14980         (MD_EXPAND_BUILTIN): Remove.
14981
14982         * doc/tm.texi: Document these changes.
14983
14984 2001-07-09  Diego Novillo  <dnovillo@redhat.com>
14985
14986         * basic-block.h (tree_node): Forward declare if needed.
14987         (struct basic_block_def): Add fields 'head_tree' and 'end_tree'.
14988         (BLOCK_HEAD_TREE): Define.
14989         (BLOCK_END_TREE): Define.
14990         (struct loops): Rename field 'tree' to 'tree_root'.
14991         * flow.c (entry_exit_blocks): Add initializers for 'head_tree' and
14992         'end_tree'.
14993         (flow_loops_tree_build): Rename reference to field 'tree' to
14994         'tree_root'.
14995         (flow_loops_level_compute): Ditto.
14996         * predict.c (estimate_bb_frequencies): Ditto.
14997         * tree.h (struct tree_common): Add field 'aux'.
14998
14999 2001-07-09  Stan Shebs  <shebs@apple.com>
15000
15001         * config/darwin.c (darwin_encode_section_info): Don't mark any
15002         DECL_EXTERNAL node as defined.
15003
15004 2001-07-09  John David Anglin  <dave@hiauly1.hia.nrc.ca>
15005
15006         * pa.c (pa_init_machine_status, pa_mark_machine_status,
15007         pa_free_machine_status, hppa_init_pic_save): Delete.
15008         (hppa_pic_save_rtx): New.  Use get_hard_reg_initial_val.
15009         (hppa_profile_hook): Use hppa_pic_save_rtx.
15010         * pa.h (struct machine_function, PIC_OFFSET_TABLE_SAVE_RTX,
15011         hppa_init_pic_save): Delete.
15012         (hppa_pic_save_rtx): Declare.
15013         * pa.md (call, call_value, sibcall, sibcall_value,
15014         builtin_setjmp_receiver): Use hppa_pic_save_rtx.
15015
15016 2001-07-09  Kazu Hirata  <kazu@hxi.com>
15017
15018         * config/h8300/t-h8300 (LIB1ASMFUNCS): Add _floatdisf and _fixsfdi.
15019         * config/mn10200/t-mn10200 (LIB1ASMFUNCS): Likewise.
15020
15021 2001-07-09  Andreas Jaeger  <aj@suse.de>
15022
15023         * output.h: Add declaration of final_forward_branch_p.
15024
15025         * config/i386/i386.c (output_fix_trunc): Remove unused variable.
15026
15027         * varray.c: Include errors.h for internal_error and trim_filename
15028         declarations.
15029
15030         * Makefile.in (varray.o): Add errors.h.
15031
15032 2001-07-09  Toon Moene  <toon@moene.indiv.nluug.nl>
15033
15034         * expr.h: Adjust prototypes for have_add2_insn, have_sub2_insn.
15035         * optabs.c (have_add2_insn): Check whether the add insn chosen
15036         really accepts the operands.  (have_sub2_insn): Ditto for sub insn.
15037         * reload1.c (reload_cse_move2add): Adjust calls of have_add2_insn.
15038
15039 Mon Jul  9 13:26:40 2001  Jeffrey A Law  (law@cygnus.com)
15040
15041         * Makefile.in (OBJS): Add ssa-ccp.o
15042         (ssa-ccp.o): Add dependencies.
15043         * toplev.c (DFI_ssa_ccp): New dump file enum.
15044         (dump_file): Add entry for dumping after SSA CCP.
15045         (flag_ssa_ccp): New flag variable.
15046         (f_options): Add -fssa-ccp.
15047         (rest_of_compilation): Run SSA CCP if requested.
15048         * timevar.def (TV_SSA_CCP): New timevar.
15049         * ssa.c (mark_phi_and_copy_regs): Handle deleted PHI nodes.
15050         * doc/gcc.texi (Passes): Add documentation for SSA CCP pass.
15051         Fix minor typo in SSA DCE documentation.
15052         * doc/invoke.texi: Add documentation for new flag -fssa-ccp.
15053         Add documentation for new dump option.  Renumber dump files
15054         appropriately.
15055
15056 Mon Jul  9 21:36:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15057
15058         * emit-rtl.c (gen_highpart_mode): New.
15059         * rtl.h (gen_highpart_mode): Declare.
15060         * sparc.md (insn splitters): Use gen_highpart_mode, whenever the
15061         operand can be VOIDmode constant.
15062
15063 Mon Jul  9 17:23:10 CEST 2001  Jan Hubicka  <jh@suse.cz>
15064
15065         * flow.c (redirect_edge_and_branch_force): New.
15066         (can_fallthru): Ensure that basic blocks are succeeding.
15067         (try_optimize_cfg): Do not delete basic block if it is the last one.
15068
15069         * flow.c (try_redirect_by_replacing_jump): Do not remove
15070         jumps with side effects, unlink chain on fallthru edge;
15071         set block for new jump instruction; avoid basic block to
15072         over by line number note.
15073
15074         * flow.c (try_simplify_condjump): Verify that the condjump
15075         is not always falling through.
15076
15077         Re-install patch:
15078         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
15079
15080         * flow.c (forwarder_block_p): Fix for fallthru blocks.
15081         (try_redirect_by_replacing_jump): Update properly the count
15082         and frequency information.
15083
15084 Mon Jul  9 06:41:07 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15085
15086         * emit-rtl.c (adjust_address, adjust_address_nv): Handle an
15087         address that is a LO_SUM specially.
15088         * explow.c (plus_constant_wide, case LO_SUM): Deleted.
15089
15090         * c-lang.c (start_cdtor): Remove extra parameter from start_function.
15091
15092         * emit-rtl.c (adjust_address_nv, replace_equiv_address_nv): New fcns.
15093         (operand_subword): Use them.
15094         (change_address_1): Renamed from change_address; new arg VALIDATE.
15095         * expr.h: Reflect above changes; change_address now macro.
15096         * alias.c (canon_rtx): Use replace_equiv_address_nv instead of
15097         making MEM.
15098         * cselib.c (add_mem_for_addr): Likewise.
15099         * expr.c (protect_from_queue, emit_move_insn_1): Likewise.
15100         * regmove.c (try_apply_stack_adjustment): Likewise.
15101         * reload.c (push_reload, make_memloc): Likewise.
15102         * reload1.c (eliminate_regs): Likewise.
15103         * simplify-rtx.c (simplify_replace_rtx): Likewise.
15104         * caller-save.c (setup_save_areas): Use adjust_address_nv instead of
15105         adjust_addess.
15106         * combine.c (make_extraction, simplify_shift_const): Likewise.
15107         (gen_lowpart_for_combine): Likewise.
15108         * cse.c (gen_lowpart_if_possible): Likewise.
15109         * function.c (fixup_var_refs_1, purge_addressof_1): Likewise.
15110         * expr.c (expand_expr, case COMPONENT_REF): Likewise.
15111         * optabs.c (gen_move_insn): Likewise.
15112         * reload1.c (alter_reg): Likewise.
15113         * simplify-rtx.c (simplify_subreg): Likewise.
15114         * stmt.c (expand_anon_union_decl): Likewise.
15115         * recog.c (validate_replace_rtx_1): Likewise.
15116         (expr.h): Include.
15117         * Makefile.in (recog.o): Add $(EXPR_H).
15118         * explow.c (stabilize): Call replace_equiv_address.
15119         * expr.c (move_by_pieces_1, store_by_pieces_2): Likewise.
15120         * final.c (alter_subreg): OFFSET is HOST_WIDE_INT.
15121
15122 2001-07-03  Andrew Haley  <aph@redhat.com>
15123
15124         * expmed.c (store_fixed_bit_field): Don't use a mode bigger than
15125         the mode of the memory location.
15126
15127 2001-07-09  Bo Thorsen  <bo@suse.co.uk>
15128
15129         * config/i386/unix.h (ASM_OUTPUT_MI_THUNK): Fix x86-64 vtable support.
15130
15131 2001-07-09  Neil Booth  <neil@daikokuya.demon.co.uk>
15132
15133         * final.c (output_addr_const): Use target opening and
15134         closing parentheses.
15135         * target-def.h: Define TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN
15136         defaults, add to TARGET_ASM_OUT.
15137         * target.h (struct gcc_target): Add open_paren and close_paren.
15138         * doc/md.texi: Update.
15139         * doc/tm.texi: Document TARGET_ASM_FUNCTION_END_PROLOGUE,
15140         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE, TARGET_ASM_OPEN_PAREN and
15141         TARGET_ASM_CLOSE_PAREN.
15142         * config/i386/i386.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
15143         Override.
15144         * config/pdp11/pdp11.c (TARGET_ASM_OPEN_PAREN, TARGET_ASM_CLOSE_PAREN):
15145         Override.
15146         * config/1750a/1750a.h (ASM_OPEN_PAREN, ASM_CLOSE_PAREN): Remove.
15147         * config/a29k/a29k.h: Similarly.
15148         * config/alpha/alpha.h: Similarly.
15149         * config/arc/arc.h: Similarly.
15150         * config/arm/aof.h: Similarly.
15151         * config/arm/aout.h: Similarly.
15152         * config/avr/avr.h: Similarly.
15153         * config/c4x/c4x.h: Similarly.
15154         * config/clipper/clipper.h: Similarly.
15155         * config/convex/convex.h: Similarly.
15156         * config/d30v/d30v.h: Similarly.
15157         * config/dsp16xx/dsp16xx.h: Similarly.
15158         * config/elxsi/elxsi.h: Similarly.
15159         * config/fr30/fr30.h: Similarly.
15160         * config/h8300/h8300.h: Similarly.
15161         * config/i370/i370.h: Similarly.
15162         * config/i386/i386.h: Similarly.
15163         * config/i860/i860.h: Similarly.
15164         * config/i960/i960.h: Similarly.
15165         * config/ia64/ia64.h: Similarly.
15166         * config/m32r/m32r.h: Similarly.
15167         * config/m68hc11/m68hc11.h: Similarly.
15168         * config/m68k/m68k.h: Similarly.
15169         * config/m88k/m88k.h: Similarly.
15170         * config/mcore/mcore.h: Similarly.
15171         * config/mips/mips.h: Similarly.
15172         * config/mn10200/mn10200.h: Similarly.
15173         * config/mn10300/mn10300.h: Similarly.
15174         * config/ns32k/ns32k.h: Similarly.
15175         * config/pa/pa.h: Similarly.
15176         * config/pdp11/pdp11.h: Similarly.
15177         * config/pj/pj.h: Similarly.
15178         * config/romp/romp.h: Similarly.
15179         * config/rs6000/rs6000.h: Similarly.
15180         * config/sh/sh.h: Similarly.
15181         * config/sparc/sparc.h: Similarly.
15182         * config/v850/v850.h: Similarly.
15183         * config/vax/vax.h: Similarly.
15184         * config/we32k/we32k.h: Similarly.
15185
15186 2001-07-09  Joseph S. Myers  <jsm28@cam.ac.uk>
15187
15188         * doc/c-tree.texi: Document representation of attributes.
15189
15190 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15191
15192         * doc/tm.texi: Update some places for the rename of target to
15193         targetm.  Fix typo.
15194
15195 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15196
15197         * target.h (struct gcc_target): Add insert_attributes.
15198         * target-def.h (TARGET_INSERT_ATTRIBUTES): Define.
15199         (TARGET_INITIALIZER): Update.
15200         * tree.c, tree.h (default_insert_attributes): New function.
15201         Update comments on other default functions to refer to targetm,
15202         not target.
15203         * doc/tm.texi (INSERT_ATTRIBUTES): Update to document
15204         TARGET_INSERT_ATTRIBUTES.
15205         (SET_DEFAULT_DECL_ATTRIBUTES): Remove.
15206         * c-common.c (decl_attributes): Use targetm.insert_attributes.
15207         Don't use PRAGMA_INSERT_ATTRIBUTES.
15208         * Makefile.in (c-common.o): Depend on $(TARGET_H).
15209         * c-decl.c (start_decl, start_function): Don't call
15210         SET_DEFAULT_DECL_ATTRIBUTES.
15211         * config/c4x/c4x.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
15212         * config/c4x/c4x-protos.h (c4x_set_default_attributes): Don't
15213         declare.
15214         * config/c4x/c4x.c (TARGET_INSERT_ATTRIBUTES): Define.
15215         (c4x_check_attribute): Avoid modifying attribute list itself.
15216         (c4x_set_default_attributes): Rename to c4x_insert_attributes.
15217         Make static.
15218         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Don't define.
15219         * config/sh/sh-protos.h (sh_pragma_insert_attributes): Don't
15220         declare.
15221         * config/sh/sh.c (TARGET_INSERT_ATTRIBUTES): Define.
15222         (sh_pragma_insert_attributes): Rename to sh_insert_attributes.
15223         Make static.
15224         * config/v850/v850.h (SET_DEFAULT_DECL_ATTRIBUTES): Don't define.
15225         * config/v850/v850-protos.h (v850_set_default_decl_attr): Don't
15226         declare.
15227         * config/v850/v850.c (TARGET_INSERT_ATTRIBUTES): Define.
15228         (v850_set_default_decl_attr): Rename to v850_insert_attributes.
15229         Adjust parameters.  Make static.
15230
15231 2001-07-08  Joseph S. Myers  <jsm28@cam.ac.uk>
15232
15233         * c-common.c (decl_attributes): Only take a single attributes
15234         parameter.
15235         * c-common.h (decl_attributes): Update prototype.
15236         * c-decl.c (start_decl, start_function): Only take a single
15237         attributes parameter.  Update calls to decl_attributes.
15238         (finish_struct, finish_enum): Update calls to decl_attributes.
15239         (push_parm_decl): Expect unified list of attributes.  Update call
15240         to decl_attributes.
15241         * c-parse.in (fndef, initdcl, notype_initdcl, nested_function,
15242         notype_nested_function, component_declarator,
15243         component_notype_declarator, label): Update calls to
15244         decl_attributes.
15245         (absdcl_maybe_attribute, parm, firstparm, myparm): Unify attribute
15246         lists that are passed to push_parm_decl.
15247         * c-tree.h (start_function, start_decl): Update prototypes.
15248         * config/sh/sh-protos.h, config/sh/sh.c
15249         (sh_pragma_insert_attributes): Only take a single attributes
15250         parameter.
15251         * config/sh/sh.h (PRAGMA_INSERT_ATTRIBUTES): Likewise.
15252         * doc/tm.texi (INSERT_ATTRIBUTES): Update.
15253         * objc/objc-act.c (define_decl, generate_objc_symtab_decl,
15254         build_module_descriptor, generate_static_references,
15255         generate_strings, build_selector_translation_table,
15256         generate_descriptor_table, generate_protocols,
15257         generate_ivars_list, generate_dispatch_table,
15258         generate_protocol_list, generate_category,
15259         generate_shared_structures, really_start_method, add_objc_decls,
15260         generate_classref_translation_entry): Update calls to start_decl
15261         and start_function.
15262         (build_tmp_function_decl, start_method_def): Unify attribute lists
15263         that are passed to push_parm_decl.
15264
15265 2001-07-08  Neil Booth  <neil@daikokuya.demon.co.uk>
15266
15267         * final.c (no_asm_to_stream): New.
15268         (final_scan_insn): Use target structures for prologue ends
15269         and epilogue starts.
15270         * output.h (no_asm_to_stream): New.
15271         * target-def.h (TARGET_ASM_FUNCTION_END_PROLOGUE,
15272         TARGET_ASM_FUNCTION_BEGIN_EPILOGUE): New.
15273         (TARGET_ASM_OUT): Update.
15274         * target.h (struct gcc_target): New members function_end_prologue
15275         and function_begin_epilogue.
15276         * config/1750/1750.h (ASM_OUTPUT_FUNNAM): Delete as unused.
15277         * config/alpha/alpha-protos.h (output_end_prologue): Delete.
15278         * config/alpha/alpha.c (output_end_prologue): Rename to
15279         alpha_output_function_end_prologue.  Use in target struct
15280         and make static.
15281         * config/alpha/alpha.h (FUNCTION_END_PROLOGUE): Delete.
15282         * config/ia64/ia64-protos.h (ia64_output_end_prologue): Delete.
15283         * config/ia64/ia64.c (ia64_output_end_prologue): Rename to
15284         ia64_output_function_end_prologue.  Use in target struct
15285         and make static.
15286         (ia64_function_prologue, ia64_funciton_epilogue): Rename
15287         mistyped prototypes.
15288         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE): Delete.
15289         * config/m88k/m88k-protos.h (m88k_end_prologue, m88k_begin_epilogue):
15290         Delete.
15291         * config/m88k/m88k.c (m88k_end_prologue, m88k_begin_epilogue): Rename
15292         an use in target struct, make static.
15293         * config/ia64/ia64.h (FUNCTION_END_PROLOGUE, FUNCTION_BEGIN_EPILOGUE):
15294         Delete.
15295
15296 2001-07-08  Richard Henderson  <rth@redhat.com>
15297
15298         * stmt.c (emit_case_nodes): Convert modes properly in low+high test.
15299
15300 2001-07-08  Richard Henderson  <rth@redhat.com>
15301
15302         * config/i386/i386.md: Remove constraints strings from define_split
15303         and define_peephole2 patterns.
15304         (eh_return_si, eh_return_di): Split eh_return_1 for modes.
15305         (eh_return): Use them.
15306
15307 2001-07-08  Richard Henderson  <rth@redhat.com>
15308
15309         * doc/tm.texi (Exception Handling): New subnode of Stack and Calling.
15310         Document MD_FALLBACK_FRAME_STATE_FOR.
15311
15312 2001-07-07  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15313
15314         * config/m68hc11/m68hc11.c (m68hc11_initial_elimination_offset):
15315         Take into account m68hc11_sp_correction for FRAME_POINTER_REGNUM
15316         elimination.
15317         * config/m68hc11/m68hc11.h (STARTING_FRAME_OFFSET): Use 0.
15318
15319 2001-07-07  Nick Clifton  <nickc@cambridge.redhat.com>
15320
15321         * config/ia64/sysv4.h (ASM_OUTPUT_LABELREF): Append # to end
15322         of the label inside NAME as opposed to just the end of NAME.
15323
15324 2001-07-07  Neil Booth  <neil@daikokuya.demon.co.uk>
15325
15326         * config/alpha/alpha-protos.h (vms_valid_decl_attribute_p): Delete.
15327         * config/alpha/alpha.c (alpha_init_machine_status,
15328         alpha_mark_machine_status, alpha_free_machine_status): Delete.
15329         (TARGET_VALID_DECL_ATTRIBUTE): Define for VMS.
15330         (vms_valid_decl_attribute_p): Make static, conditionally compile.
15331         * config/alpha/alpha.h (VALID_MACHINE_DECL_ATTRIBUTE): Delete.
15332
15333 2001-07-06  Stan Shebs  <shebs@apple.com>
15334
15335         * target.h (targetm): Rename global from "target", so as not to
15336         conflict with local variables.
15337         * c-decl.c: Ditto.
15338         * c-typeck.c: Ditto.
15339         * final.c: Ditto.
15340         * tree.c: Ditto.
15341         * cp/decl.c: Ditto.
15342         * cp/decl2.c: Ditto.
15343         * cp/typeck.c: Ditto.
15344         * 1750a/1750a.c: Ditto.
15345         * a29k/a29k.c: Ditto.
15346         * arc/arc.c: Ditto.
15347         * arm/arm.c: Ditto.
15348         * avr/avr.c: Ditto.
15349         * clipper/clipper.c: Ditto.
15350         * convex/convex.c: Ditto.
15351         * d30v/d30v.c: Ditto.
15352         * dsp16xx/dsp16xx.c: Ditto.
15353         * elxsi/elxsi.c: Ditto.
15354         * fr30/fr30.c: Ditto.
15355         * h8300/h8300.c: Ditto.
15356         * i370/i370.c: Ditto.
15357         * i386/i386.c: Ditto.
15358         * i860/i860.c: Ditto.
15359         * i960/i960.c: Ditto.
15360         * ia64/ia64.c: Ditto.
15361         * m32r/m32r.c: Ditto.
15362         * m68hc11/m68hc11.c: Ditto.
15363         * m68k/m68k.c: Ditto.
15364         * m88k/m88k.c: Ditto.
15365         * mips/mips.c: Ditto.
15366         * ns32k/ns32k.c: Ditto.
15367         * pa/pa.c: Ditto.
15368         * pdp11/pdp11.c: Ditto.
15369         * romp/romp.c: Ditto.
15370         * rs6000/rs6000.c: Ditto.
15371         * sh/sh.c: Ditto.
15372         * sparc/sparc.c: Ditto.
15373         * vax/vax.c: Ditto.
15374         * we32k/we32k.c: Ditto.
15375         * doc/tm.texi: Update the manual to match.
15376
15377 2001-07-06  Richard Henderson  <rth@redhat.com>
15378
15379         * except.h (MUST_USE_SJLJ_EXCEPTIONS): Examine the value of
15380         DWARF2_UNWIND_INFO not just whether it is defined.
15381
15382 2001-07-06  Diego Novillo  <dnovillo@redhat.com>
15383
15384         * combine.c (combine_simplify_rtx): Also recompute 'mode' if the
15385         call to simplify_binary_operation returns a new pattern.
15386
15387 2001-07-06  Roman Lechtchinsky  <rl@cs.tu-berlin.de>
15388
15389         * glimits.h (__SHRT_MAX__): New.
15390         (SHRT_MIN, USHRT_MAX): Define in terms of SHRT_MAX.
15391         (SHRT_MAX): Define in terms of __SHRT_MAX__.
15392
15393 2001-07-06  Jan van Male  <jan.vanmale@fenk.wau.nl>
15394
15395         * alias.c (base_alias_check): Cast GET_MODE_UNIT_SIZE to int to
15396         avoid warnings.
15397
15398 2001-07-06  Richard Henderson  <rth@redhat.com>
15399
15400         * bitmap.c (bitmap_release_memory): Move adjacent to the
15401         allocation functions.
15402         (bitmap_first_set_bit, bitmap_last_set_bit): Streamline knowing
15403         the implementation.  Binary search for the set bit.
15404         (bitmap_union_of_diff): Allocate the temporary on the stack
15405         instead of using xmalloc.
15406
15407 2001-07-06  Richard Henderson  <rth@redhat.com>
15408
15409         * genrecog.c (validate_pattern): Warn for constraints in
15410         define_{expand,split,peephole2}.  Remove strict_low_part
15411         before looking up match_dup.
15412
15413 2001-07-06  DJ Delorie  <dj@redhat.com>
15414
15415         * doc/gcc.texi (Makefile): Rename to be a more general purpose
15416         chapter about various build hints and history.  Add section
15417         talking about the various types of native and cross builds.
15418
15419 2001-07-06  Neil Booth  <neil@daikokuya.demon.co.uk>
15420
15421         * Makefile.in (final.o): Depend on target.h.
15422         * final.c: Include target.h.
15423         (default_function_pro_epilogue): New.
15424         (final_start_function): Use target structure for function prologues.
15425         (final_end_function): Use target structure for function epilogues.
15426         * fold-const.c (real_hex_to_f): Constify s and p.
15427         * output.h (default_function_pro_epilogue): New.
15428         * real.h (real_hex_to_f): Update prototype.
15429         * target-def.h (TARGET_ASM_FUNCTION_PROLOGUE,
15430         TARGET_ASM_FUNCTION_EPILOGUE, TARGET_ASM_OUT): New.
15431         (TARGET_INITIALIZER): Update.
15432         * target.h (gcc_target): Add struct asm_out.
15433         * doc/tm.texi: Update.
15434
15435 config:
15436         Update each arch to use TARGET_ASM_FUNCTION_PROLOGUE and
15437         TARGET_ASM_FUNCTION_EPILOGUE.  Move macro code to functions
15438         in cpu/cpu.c, or rename old functions consistently.  Take
15439         a HOST_WIDE INT not an int as the SIZE parameter.  Remove now
15440         redundant macros and prototypes.  Make new functions static.
15441
15442         * 1750a/1750a.c: Similarly.
15443         * 1750a/1750a.h: Similarly.
15444         * a29k/a29k-protos.h: Similarly.
15445         * a29k/a29k.c: Similarly.
15446         * a29k/a29k.h: Similarly.
15447         * arc/arc-protos.h: Similarly.
15448         * arc/arc.c: Similarly.
15449         * arc/arc.h: Similarly.
15450         * arm/arm-protos.h: Similarly.
15451         * arm/arm.c: Similarly.
15452         * arm/arm.h: Similarly.
15453         * avr/avr-protos.h: Similarly.
15454         * avr/avr.c: Similarly.
15455         * avr/avr.h: Similarly.
15456         * clipper/clipper-protos.h: Similarly.
15457         * clipper/clipper.c: Similarly.
15458         * clipper/clipper.h: Similarly.
15459         * convex/convex.c: Similarly.
15460         * convex/convex.h: Similarly.
15461         * d30v/d30v-protos.h: Similarly.
15462         * d30v/d30v.c: Similarly.
15463         * d30v/d30v.h: Similarly.
15464         * d30v/d30v.md: Similarly.
15465         * dsp16xx/dsp16xx-protos.h: Similarly.
15466         * dsp16xx/dsp16xx.c: Similarly.
15467         * dsp16xx/dsp16xx.h: Similarly.
15468         * elxsi/elxsi.c: Similarly.
15469         * elxsi/elxsi.h: Similarly.
15470         * fr30/fr30.c: Similarly.
15471         * fr30/fr30.md: Similarly.
15472         * h8300/h8300-protos.h: Similarly.
15473         * h8300/h8300.c: Similarly.
15474         * h8300/h8300.h: Similarly.
15475         * i370/i370-protos.h: Similarly.
15476         * i370/i370.c: Similarly.
15477         * i370/i370.h: Similarly.
15478         * i386/i386.c: Similarly.
15479         * i386/osf1elf.h: Similarly.
15480         * i386/osfrose.h: Similarly.
15481         * i860/i860-protos.h: Similarly.
15482         * i860/i860.c: Similarly.
15483         * i860/i860.h: Similarly.
15484         * i960/i960-protos.h: Similarly.
15485         * i960/i960.c: Similarly.
15486         * i960/i960.h: Similarly.
15487         * ia64/ia64-protos.h: Similarly.
15488         * ia64/ia64.c: Similarly.
15489         * ia64/ia64.h: Similarly.
15490         * m32r/m32r-protos.h: Similarly.
15491         * m32r/m32r.c: Similarly.
15492         * m32r/m32r.h: Similarly.
15493         * m68hc11/m68hc11-protos.h: Similarly.
15494         * m68hc11/m68hc11.c: Similarly.
15495         * m68hc11/m68hc11.h: Similarly.
15496         * m68k/crds.h: Similarly.
15497         * m68k/dpx2.h: Similarly.
15498         * m68k/m68k-protos.h: Similarly.
15499         * m68k/m68k.c: Similarly.
15500         * m68k/m68k.h: Similarly.
15501         * m68k/news.h: Similarly.
15502         * m88k/m88k-protos.h: Similarly.
15503         * m88k/m88k.c: Similarly.
15504         * m88k/m88k.h: Similarly.
15505         * mips/mips-protos.h: Similarly.
15506         * mips/mips.c: Similarly.
15507         * mips/mips.h: Similarly.
15508         * ns32k/merlin.h: Similarly.
15509         * ns32k/ns32k.c: Similarly.
15510         * ns32k/ns32k.h: Similarly.
15511         * ns32k/tek6000.h: Similarly.
15512         * pa/pa-protos.h: Similarly.
15513         * pa/pa.c: Similarly.
15514         * pa/pa.h: Similarly.
15515         * pdp11/2bsd.h: Similarly.
15516         * pdp11/pdp11-protos.h: Similarly.
15517         * pdp11/pdp11.c: Similarly.
15518         * pdp11/pdp11.h: Similarly.
15519         * romp/romp-protos.h: Similarly.
15520         * romp/romp.c: Similarly.
15521         * romp/romp.h: Similarly.
15522         * rs6000/rs6000-protos.h: Similarly.
15523         * rs6000/rs6000.c: Similarly.
15524         * rs6000/rs6000.h: Similarly.
15525         * rs6000/sysv4.h: Similarly.
15526         * sh/sh-protos.h: Similarly.
15527         * sh/sh.c: Similarly.
15528         * sh/sh.h: Similarly.
15529         * sparc/sparc-protos.h: Similarly.
15530         * sparc/sparc.c: Similarly.
15531         * sparc/sparc.h: Similarly.
15532         * vax/vax.c: Similarly.
15533         * vax/vax.h: Similarly.
15534         * vax/vms.h: Similarly.
15535         * we32k/we32k.c: Similarly.
15536         * we32k/we32k.h: Similarly.
15537
15538 Fri Jul  6 11:47:59 2001  Jeffrey A Law  (law@cygnus.com)
15539
15540         * basic-block.h (first_insn_after_basic_block_note): Declare.
15541         * flow.c (first_insn_after_basic_block_note): Define.  Moved
15542         from...
15543         * ssa.c (first_insn_after_basic_block_note): Remove.
15544         * ssa-dce.c (find_inherently_necessary): Consider BARRIERs
15545         necessary.
15546         (ssa_eliminate_dead_code): Properly update the CFG and PHI
15547         nodes when we find a dead conditional branch.  Insert BARRIERs
15548         after any blocks with no successors, but which do not have
15549         any BARRIERs.
15550
15551 2001-07-06  Zack Weinberg  <zackw@stanford.edu>
15552
15553         * varray.c (varray_check_failed): Use internal_error.
15554
15555 2001-07-05  Andrew Haley  <aph@redhat.com>
15556
15557         * Makefile.in (LIB2_DIVMOD_FUNCS): New.
15558         (LIB2FUNCS): Move divmod functions to LIB2_DIVMOD_FUNCS.
15559         * mklibgcc.in: Compile LIB2_DIVMOD_FUNCS.
15560
15561 2001-07-02  Jason Merrill  <jason_merrill@redhat.com>
15562
15563         * dwarf2out.c (mem_loc_descriptor): Only look through a constant pool
15564         reference if the target constant is also a SYMBOL_REF.
15565
15566 2001-07-05  Eric Christopher  <echristo@redhat.com>
15567
15568         * config/mips/mips.h (MASK_MIPS3900): Remove.
15569         (MASK_MIPS16,MASK_NO_CHECK_ZERO_DIV,MASK_CHECK_RANGE_DIV,
15570         MASK_UNINIT_CONST_IN_RODATA): Change for 3900 mask removal.
15571         (TARGET_MIPS3900): Change to use mips_arch.
15572         (TARGET_MIPS4000): New.
15573         (TARGET_MIPS4100): New.
15574         (TARGET_MIPS4300): New.
15575         (TARGET_SWITCHES): Change 3900 and 4650 options to NULL.
15576         (SUBTARGET_TARGET_OPTIONS): Add -march. Change help text
15577         for -mipsX.
15578         (GENERATE_BRANCHLIKELY): Move TARGET_MIPS3900.
15579         (ISA_HAS_BRANCHLIKELY): To here.
15580         (CC1_CPU_SPEC):  New.
15581         (CC1_SPEC): Use here.  Remove 4650 and 3900 options.
15582         (mips_arch_string): Declare.
15583         (mips_arch): Declare.
15584         (TARGET_OPTIONS): Add -march and -mtune.
15585
15586         * config/mips/mips.c (mips_arch_string): New.
15587         (mips_arch): New.
15588         (override_options): Handle -march for codegen and -mtune
15589         for scheduling. Use mips_arch. Move tx39 target default here.
15590         (mips_parse_cpu): Move error message to override_options.
15591
15592         * config/mips/r3900.h (TARGET_DEFAULT): Remove.
15593
15594         * config/mips/mips.md: Use TARGET_MIPS4000 and TARGET_MIPS4300.
15595
15596         * doc/invoke.texi (Option Summary): Add -march and -mtune entries.
15597         (MIPS Options): Ditto.  Change mcpu entry to historical text.
15598
15599 2001-07-05  H.J. Lu  (hjl@gnu.org)
15600
15601         * config/mips/mips.c (mips_parse_cpu): New function to parse
15602         -march=*/-mcpu=*.
15603
15604 2001-07-05  Jim Wilson  <wilson@redhat.com>
15605
15606         * config/ia64/lib1funcs.asm: Revert 2001-07-02 change.
15607         * config/ia64/t-ia64: Likewise.
15608         (LIB1ASMFUNCS): Update comment.
15609
15610 2001-07-05  David Edelsohn  <edelsohn@gnu.org>
15611
15612         * doc/install.texi (Install GCC: Binaries): Fix typo.
15613
15614 2001-07-04  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15615
15616         * config/m68hc11/m68hc11.md ("*ashlsi3"): Operand 1 can be a memory
15617         reference using the stack pointer, adjust it since we push Y
15618         temporarily.
15619         ("*ashrsi3"): Likewise.
15620         ("*lshrsi3"): Likewise.
15621
15622 2001-07-05  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
15623
15624         * config/m68hc11/m68hc11.h (RETURN_ADDR_RTX): Fix return address
15625         when -fomit-frame-pointer is used.
15626
15627 2001-07-05  Jeffrey Oldham  <oldham@codesourcery.com>
15628
15629         * flow.c: Reverse Jan Hubicka's patch of 02July2001.
15630         (try_redirect_by_replacing_jump): Reverse updating properly the
15631         count and frequency information.  Reverse removing cc0 setter.
15632         (forwarder_block_p): Reverse fixing for fallthru blocks.
15633
15634 2001-07-05  DJ Delorie  <dj@redhat.com>
15635
15636         * gcc.c (TARGET_OPTION_TRANSLATE_TABLE): New.
15637         (translate_options): If the above is defined, use it to map
15638         given options to new options.
15639         * doc/tm.texi: Document it.
15640
15641 2001-07-05  Brad Lucier <lucier@math.purdue.edu>
15642             Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15643
15644         * doc/invoke.texi (Optimize Options): Document that -fgcse may
15645         cause programs using computed gotos to run more slowly.
15646
15647 2001-07-05  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15648
15649         * doc/install.texi (Specific): Markup, spelling and typo fixes.
15650         Fixed sorting.
15651         Consistently require binutils 2.11.2, not prereleases.
15652         (Specific, decstation-*): Canonicalize as mips-dec-*.
15653         (Specific, i?86-*-sco3.2v5*): Remove make bootstrap requirement,
15654         always necessary.
15655         (Specific, m68k-altos): Removed reference to README.altos, deleted.
15656         (Specific, mips-*): Reword MIPS C compiler requirements.
15657         (Specific, powerpc*-*-*): New, mention --with-cpu once.
15658         (Specific, sunv5): Removed, obsolete.
15659
15660 2001-07-05  Nathan Sidwell  <nathan@codesourcery.com>
15661
15662         * dwarf2out.c (output_loc_list): Use an all ones mask for
15663         .text asm output and don't rely on long long
15664         literals. Reformat some long lines.
15665
15666 2001-07-05  Andreas Jaeger  <aj@suse.de>
15667
15668         * doc/gcc.texi (GNU/Linux): Remove accidental re-add of GPL
15669         section.
15670
15671 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15672
15673         * dwarf2out.c (dwarf2out_define): Update comment.
15674         (dwarf2out_undef): Ditto.
15675         (dwarf2out_start_source_file): Ditto.
15676         (dwarf2out_end_source_file): Ditto.
15677         (dwarf2out_finish): Output DW_MACINFO_end_file for primary file,
15678         since we never call the start/end debug hook for the primary file.
15679
15680 2001-07-04  Kazu Hirata  <kazu@hxi.com>
15681
15682         * config/h8300/h8300.c (get_shift_alg): Remove an extra operand
15683         from shll.
15684
15685 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
15686
15687         * cppinit.c (remove_dup_dirs): Inform if a system include
15688         directory is being reordered.
15689         * doc/invoke.texi (Directory Options): GCC warns if you hide a
15690         system include.
15691         * doc/cpp.texi (Search Paths): Likewise.
15692         * doc/gcc.texi (Interoperation): Remove information about
15693         -I/usr/include.
15694
15695 2001-07-04  Nathan Sidwell  <nathan@codesourcery.com>
15696
15697         * varray.h (VARRAY_TOP_GENERIC_PTR): Remove spurious parameter.
15698         (VARRAY_TOP_CHAR_PTR): Likewise.
15699
15700 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15701
15702         * gcc.c (process_command): Don't assign elements of a const char*.
15703
15704 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15705
15706         * emit-rtl.c (change_address): Don't abort if invalid address while
15707         reload is in progress.
15708
15709 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15710
15711         * c-lex.c (cb_file_change): Pass line number to
15712         debug_start_source_file.
15713         (cb_undefine): Pass correct line number to debug_undef.
15714
15715         * toplev.c (debug_start_source_file): Add line number to
15716         parameters. Pass it along to dwarf2out_start_source_file.
15717         (decode_g_option): Stop resetting debug level back to normal when
15718         we change debug formats, unless the current level is
15719         none. (Before, -g3 -gdwarf-2 would use debug level 2, rather than
15720         3).
15721
15722         * toplev.h (debug_start_source_file): Add line number to
15723         parameters.
15724
15725         * dwarf2out.h (dwarf2out_start_source_file): Add line number to
15726         parameters.
15727
15728         * dwarf2out.c (dwarf2out_start_source_file): Add line number to
15729         parameters.
15730         Output debug_macinfo data for starting file if requested.
15731         (dwarf2out_end_source_file): Output debug_macinfo data for ending
15732         file if requested.
15733         (dwarf2out_define): Output debug_macinfo data for defining a macro
15734         if requested.
15735         (dwarf2out_undef): Output debug_macinfo data for undefining a
15736         macro if requested.
15737         (DEBUG_MACINFO_SECTION): New. DWARF2 macro info section name.
15738         (DEBUG_MACINFO_SECTION_LABEL): New. DWARF2 macro info section label.
15739         (macinfo_section_label): New. DWARF2 macro info section label.
15740         (dwarf2out_init): If we want macro info, output the start label
15741         for the section.
15742         (dwarf2out_finish): If we want macro info, add a DW_AT_macro_info
15743         attribute to the compilation unit die pointing to the macro info.
15744
15745 2001-07-04  Daniel Berlin  <dan@cgsoftware.com>
15746
15747         * dwarf2out.c (new_loc_list): Move to inside #ifdef
15748         DWARF2_DEBUGGING_INFO.
15749         (add_loc_descr_to_loc_list): Ditto.
15750         (output_loc_list): Ditto.
15751         Also, fix thinko in curr not being initialized.
15752         (gen_internal_sym): Ditto.
15753
15754 Wed Jul  4 13:40:02 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15755
15756         * emit-rtl.c (replace_equiv_address): New function.
15757         * expr.h (replace_equiv_address): New declaration.
15758         * explow.c (validize_mem): Call it instead of change_address and
15759         also call if -fforce-addr and address is constant.
15760         * expr.c: Replace more calls to change_address with adjust_address
15761         and/or replace_equiv_address or to validize_mem.
15762         * function.c, regmove.c, config/alpha/alpha.c: Likewise.
15763         * config/arm/arm.md, config/clipper/clipper.md: Likewise.
15764         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15765         * config/i370/i370.md, config/i860/i860.md: Likewise.
15766         * config/i960/i960.md, config/mips/mips.c: Likewise.
15767         * config/mips/mips.md, config/pa/pa.md: Likewise.
15768         * config/pdp11/pdp11.md, config/rs6000/rs6000.c: Likewise.
15769         * config/rs6000/rs6000.md, config/sh/sh.md: Likewise.
15770
15771 2001-07-04  Kaveh R. Ghazi  <ghazi@caip.rutgers.edu>
15772
15773         * bitmap.c (bitmap_union_of_diff): Don't use BITMAP_ALLOCA.
15774
15775         * bitmap.h (BITMAP_ALLOCA): Don't pass alloca as an argument to a
15776         function.
15777
15778 2001-07-04  Joseph S. Myers  <jsm28@cam.ac.uk>
15779
15780         * doc/include: New directory.
15781         * doc/fdl.texi: Move to doc/include/fdl.texi.
15782         * doc/texinfo.tex: Move to doc/include/texinfo.tex.
15783         * doc/include/funding.texi, doc/include/gpl.texi: New files.
15784         * doc/gcc.texi: Use funding.texi and gpl.texi.
15785         * Makefile.in ($(docdir)/cpp.info, $(docdir)/gcc.info,
15786         $(docdir)/cppinternals.info, cpp.dvi. gcc.dvi. cppinternals.dvi):
15787         Update dependencies and use -I $(docdir)/include.
15788
15789 2001-07-04  Anthony Green  <green@redhat.com>
15790
15791         * config/v850/t-v850 (v850-c.o): Add missing dependencies.
15792
15793 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15794
15795         * doc/install.texi (sparc64-*-*): Remove garbage.
15796
15797 Wed Jul  4 09:07:44 2001  Jan van Male  <jan.vanmale@fenk.wau.nl>
15798
15799         * i386.c (ix86_expand_builtin, case IX86_BUILTIN_SETPS):
15800         Fix typo in last change to use adjust_address.
15801
15802 2001-07-04  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
15803
15804         * doc/install.texi (Specific): Update information for *-*-solaris*.
15805
15806 Tue Jul  3 22:33:15 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15807
15808         * explow.c (plus_constant_wide): Reinitialize Y for restart.
15809
15810 2001-07-03  Stan Shebs  <shebs@apple.com>
15811
15812         * config/darwin.h (SECTION_FUNCTION): Remove WAS_TEXT argument, remove
15813         case for flag_no_mach_text_sections.
15814         (EXTRA_SECTION_FUNCTIONS): Remove arg from uses of SECTION_FUNCTION.
15815         * config/darwin.c (flag_no_mach_text_sections): Remove.
15816         * config/darwin-protos.h (darwin_init_pragma): Remove decl.
15817
15818 Tue Jul  3 15:35:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15819
15820         * explow.c (plus_constant_wide, case PLUS): Call find_constant_term
15821         and avoid checking for constant as first operand.
15822         * recog.c (find_constant_term_loc): No longer static.
15823         (adj_offettable_operand): Delete.
15824         * rtl.h (adj_offsettable_operand): Delete declaration.
15825         (find_constant_term): Add declaration.
15826         * caller-save.c: Replace calls to adj_offsettable_operand with calls
15827         to adjust_address.
15828         * config/arm/arm.c, config/c4x/c4x.c: Likewise.
15829         * config/clipper/clipper.md, config/h8300/h8300.c: Likewise.
15830         * config/i386/i386.c, config/i386/i386.md: Likewise.
15831         * config/i860/i860.c, config/i960/i960.c: Likewise.
15832         * config/i960/i960.md, config/m68hc11/m68hc11.c: Likewise.
15833         * config/m68k/m68k.c, config/m68k/m68k.md: Likewise.
15834         * config/m88k/m88k.md, config/mcore/mcore.c: Likewise.
15835         * config/mips/mips.c, config/mips/mips.md: Likewise.
15836         * config/mn10200/mn10200.c, config/mn10300/mn10300.c: Likewise.
15837         * config/ns32k/ns32k.c, config/ns32k/ns32k.md: Likewise.
15838         * config/pa/pa.c, config/pdp11/pdp11.c: Likewise.
15839         * config/pdp11/pdp11.md, config/sh/sh.c, config/v850/v850.c: Likewise.
15840         * config/vax/vax.md, config/ns32k/ns32k.c: Likewise.
15841         * config/ns32k/ns32k.md: Likewise.
15842
15843 2001-07-03  Zack Weinberg  <zackw@stanford.edu>
15844
15845         * rtl.c (copy_rtx): Handle 'T' format letter.
15846         * gensupport.c (collect_insn_data): Likewise.
15847         * print-rtl.c (print_rtx): Print 'T' slots like 's'.
15848
15849 2001-07-03  Nick Clifton  <nickc@cambridge.redhat.com>
15850
15851         * doc/invoke.texi (Directory Options): Specifiy range for <N> in
15852         -B option.  Use 'dir' not 'foo' as example directory name.
15853
15854 2001-07-03  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15855
15856         * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Define.
15857         Fixes PRs bootstrap/3067, bootstrap/3249, bootstrap/3275.
15858
15859 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
15860
15861         * doc/cppinternals.texi: Improve formatting and logical markup.
15862
15863 2001-07-03  Andreas Jaeger  <aj@suse.de>
15864
15865         * Makefile.in (insn-recog.o): Add dependency on reload.h.
15866
15867         * genrecog.c (write_header): Include reload.h for prototypes in
15868         insn-recog.c.
15869
15870 2001-07-03  Neil Booth  <neil@daikokuya.demon.co.uk>
15871
15872 config:
15873         * i386/cygwin.h (VALID_MACHINE_DECL_ATTRIBUTE,
15874         VALID_MACHINE_TYPE_ATTRIBUTE): Remove.
15875         * i386/i386-protos.h (i386_pe_valid_decl_attribute_p,
15876         i386_pe_valid_type_attribute_p): Add.
15877         * i386/i386.c (TARGET_INITIALIZER): Override for cygwin targets.
15878         * i386/winnt.c (i386_valid_decl_attribute_p): Return directly.
15879
15880 Mon Jul  2 21:52:19 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15881
15882         * explow.c (plus_constant_wide, case LO_SUM): New case.
15883         (plus_constant_for_output_wide): Delete.
15884         * rtl.h (plus_constant_for_output): Delete.
15885         * alias.c (canon_rtx, init_alias_analysis): Call plus_constant
15886         instead of plus_constant_for_output.
15887         * recog.c (offsettable_address_p, adj_offsettable_operand): Likewise.
15888         * config/darwin.c, config/arm/arm.c, config/m68k/m68k.c: Likewise.
15889         * config/m88k/m88k.c, config/mips/mips.c, config/pa/pa.c: Likewise.
15890         * config/rs6000/rs6000.c, config/sparc/sparc.c: Likewise.
15891         * config/sparc/sparc.md: Likewise.
15892         Convert some change_address calls to adjust_address.
15893
15894 2001-07-03  Joseph S. Myers  <jsm28@cam.ac.uk>
15895
15896         * doc/extend.texi, doc/gcc.texi, doc/invoke.texi, doc/md.texi,
15897         doc/rtl.texi, doc/tm.texi: Improve formatting.  Improve
15898         documentation of -std and -Wwrite-strings.
15899
15900 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
15901
15902         * cse.c (canon_hash): Don't register registers in very small
15903         register classes, as extending their lifetime might cause
15904         reload to fail.
15905
15906 Mon Jul  2 23:14:00 CEST 2001  Jan Hubicka  <jh@suse.cz>
15907
15908         * flow.c (try_redirect_by_replacing_jump): Remove cc0 setter.
15909
15910         * flow.c (forwarder_block_p): Fix for fallthru blocks.
15911         (try_redirect_by_replacing_jump): Update properly the count
15912         and frequency information.
15913
15914 Mon Jul  2 14:20:13 2001  Jeffrey A Law  (law@cygnus.com)
15915
15916         * toplev.c (dump_file_index): Move SSA dumps just after first
15917         jump dump.
15918         (dump_file): Corresponding changes.
15919         (rest_of_compilation): Move SSA path to just after the first
15920         jump pass.
15921         * doc/gcc.texi (Passes): Update due to movement of SSA path.
15922         * doc/invoke.texi: Update dump file #s as they were completely
15923         out of date with reality.
15924
15925 2001-07-02  Geoffrey Keating  <geoffk@redhat.com>
15926
15927         * doc/tm.texi (Frame Layout): Document STACK_PUSH_CODE.
15928
15929         * expr.c (emit_move_insn_1): Deal with non-default
15930         STACK_PUSH_CODE.
15931
15932         * expr.c (emit_single_push_insn): Fix warning.
15933
15934 2001-07-02  Toshiyasu Morita  <toshiyasu.morita@hsa.hitachi.com>
15935
15936         * expr.c (emit_move_insn_1): Avoid modifying
15937         cfun->expr->x_stack_pointer when PUSH_ROUNDING is defined.
15938
15939 Mon Jul  2 15:33:31 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15940
15941         * emit-rtl.c (adjust_address): New function.
15942         * expr.h (adjust_address): Add declaration.
15943         * builtins.c: Replace some calls to change_address with calls to it
15944         or to validize_mem.
15945         * caller-save.c, dwarf2out.c, except.c, expmed.c, expr.c: Likewise.
15946         * function.c, config/a29k/a29k.md, config/alpha/alpha.c: Likewise.
15947         * config/arm/arm.c, config/convex/convex.c: Likewise.
15948         * config/dsp16xx/dsp16xx.md, config/fr30/fr30.c: Likewise.
15949         * config/i386/i386.c, config/i386/i386.md: Likewise.
15950         * config/ia64/ia64.c, config/ia64/ia64.md: Likewise.
15951         * config/m32r/m32r.c, config/m68k/m68k.md: Likewise.
15952         * config/m88k/m88k.c, config/mips/mips.md: Likewise.
15953         * config/ns32k/ns32k.c, config/rs6000/rs6000.c: Likewise.
15954         * config/sh/sh.c, config/sparc/sparc.md: Likewise.
15955
15956 2001-07-02  Jim Wilson  <wilson@redhat.com>
15957
15958         * config/ia64/ia64.h: Delete obsolete lib1funcs.asm comment.
15959
15960 2001-07-02  Steve Ellcey  <sje@cup.hp.com>
15961
15962         * config/ia64/t-ia64: Change LIB1ASMFUNCS to use single underscore.
15963         * config/ia64/lib1funcs.asm: Change macro names to match t-ia64.
15964
15965 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
15966
15967         * cppinit.c (lang_defaults): New table.
15968         (set_lang): Just read from lang_defaults into the live options
15969         structure.
15970
15971 2001-07-02  Zack Weinberg  <zackw@stanford.edu>
15972
15973         * Makefile.in (doc): Depend on $(GENERATED_MANPAGES).
15974         * doc/.cvsignore: Add gcc.1, cpp.1, gcov.1.
15975         * doc/gcc.1, doc/cpp.1, doc/gcov.1: Removed.
15976
15977 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15978
15979         * doc/install.texi: Various spelling and markup fixes.
15980         (Installing GCC): Component specific installation instructions are
15981         gone.
15982         Fix reference.
15983         Warn about removing old install dir in the presence of shared libs.
15984         (Configuration): Invoke with options target to match configure
15985         --help.
15986         Consistently refer to gas, gld pathnames.
15987         Invert --enable-multilib documentation.
15988         Remove references to old compiler versions.
15989
15990 Mon Jul  2 12:50:51 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
15991
15992         * flow.c (try_simplify_condjump): Fix typo in updating fallthru flags.
15993
15994 2001-07-02  Rainer Orth  <ro@TechFak.Uni-Bielefeld.DE>
15995
15996         * doc/install.texi (Specific, mips*-sgi-irix4): Split from IRIX 5
15997         section.
15998         (Specific, mips*-sgi-irix5): Note IDO download.
15999         Reworded MIPS C hints.
16000         Use GNU as instead of GAS.
16001         Markup fixes.
16002         Removed SGI Freeware reference, IRIX 6 only.
16003         (Specific, mips*-sgi-irix6): Removed ranlib caveats, obsolete.
16004         Note N64 library requirement/workaround.
16005         Update O32 hints.
16006         Complete list of structure passing bug victims.
16007
16008 2001-07-02  Gerald Pfeifer  <pfeifer@dbai.tuwien.ac.at>
16009
16010         * doc/install.texi: Remove CVS Id.
16011
16012 2001-07-02  Andreas Jaeger  <aj@suse.de>
16013
16014         * ssa-dce.c (note_inherently_necessary_set): Add unused attribute.
16015         (find_inherently_necessary): Remove unused variable.
16016
16017 2001-07-02  Nathan Sidwell  <nathan@codesourcery.com>
16018
16019         * c-common.h (TDI_inlined): New ast dump phase.
16020         (dump_flag_name): New function.
16021         * c-dump.c (dump_files): Add inlined phase.
16022         (dump_flag_name): Define.
16023         * doc/invoke.texi (-fdump-ast-inlined): Document.
16024
16025 Mon Jul  2 06:29:36 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16026
16027         * stor-layout.c (layout_decl): Revert change to handling of alignment
16028         in packed types.
16029
16030 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16031
16032         * c-common.c (decl_attributes, case A_MODE): Don't call layout_decl
16033         for FIELD_DECL.
16034
16035 2001-07-01  Geoffrey Keating  <geoffk@redhat.com>
16036
16037         * doc/tm.texi (FUNCTION_ARG): Document that the last call
16038         is special.
16039
16040 2001-07-01  Nathan Sidwell  <nathan@codesourcery.com>
16041
16042         * tlink.c (recompile_files): Remove COMPILER_PATH and
16043         LIBRARY_PATH from the environment.
16044
16045 2001-07-01  Zack Weinberg  <zackw@stanford.edu>
16046
16047         * c-common.h (enum rid): Add RID_FIRST_AT, RID_LAST_AT,
16048         RID_LAST_PQ.  Move RID_FIRST_PQ down with the other FIRST/LAST
16049         enumerators.
16050         (OBJC_IS_AT_KEYWORD, OBJC_IS_PQ_KEYWORD): New macros.
16051
16052         * c-parse.in (OBJC_STRING): Kill.
16053         (objc_string): Decompose to [objc_string] '@' STRING.
16054         (reswords): Take the leading '@' off all the Objective C keywords.
16055         (objc_rid_sans_at): Kill.
16056         (init_reswords): Don't initialize it.
16057         (yylexname): Use OBJC_IS_AT_KEYWORD and OBJC_IS_PQ_KEYWORD.
16058         (_yylex): Kill reconsider label.  Look ahead one token after
16059         an '@'; if we get an identifier, check whether it's an
16060         Objective C @-keyword.  If so, return the keyword.  Otherwise,
16061         put back the token and return the '@' as a terminal.
16062
16063         * cpplib.c (lex_macro_node): Remove unnecessary check for
16064         leading '@' on identifier.  Clarify control flow and commentary.
16065
16066 Sun Jul  1 11:53:52 2001  Richard Kenner  <kenner@vlsi1.ultra.nyu.edu>
16067
16068         * cse.c (new_label_ref): Variable deleted.
16069         (insert): Remove set of new_label_ref.
16070         (check_for_label_ref): New function.
16071         (cse_basic_block): Don't check new_label_ref; call check_for_label_ref.
16072
16073 See ChangeLog.5 for earlier changes.